Home | History | Annotate | Download | only in llvm
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
      4 #
      5 # Report bugs to <http://llvm.org/bugs/>.
      6 #
      7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 #
     12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
     13 ## --------------------- ##
     14 ## M4sh Initialization.  ##
     15 ## --------------------- ##
     16 
     17 # Be Bourne compatible
     18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     19   emulate sh
     20   NULLCMD=:
     21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22   # is contrary to our usage.  Disable this feature.
     23   alias -g '${1+"$@"}'='"$@"'
     24   setopt NO_GLOB_SUBST
     25 else
     26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     27 fi
     28 BIN_SH=xpg4; export BIN_SH # for Tru64
     29 DUALCASE=1; export DUALCASE # for MKS sh
     30 
     31 
     32 # PATH needs CR
     33 # Avoid depending upon Character Ranges.
     34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     37 as_cr_digits='0123456789'
     38 as_cr_alnum=$as_cr_Letters$as_cr_digits
     39 
     40 # The user is always right.
     41 if test "${PATH_SEPARATOR+set}" != set; then
     42   echo "#! /bin/sh" >conf$$.sh
     43   echo  "exit 0"   >>conf$$.sh
     44   chmod +x conf$$.sh
     45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     46     PATH_SEPARATOR=';'
     47   else
     48     PATH_SEPARATOR=:
     49   fi
     50   rm -f conf$$.sh
     51 fi
     52 
     53 # Support unset when possible.
     54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     55   as_unset=unset
     56 else
     57   as_unset=false
     58 fi
     59 
     60 
     61 # IFS
     62 # We need space, tab and new line, in precisely that order.  Quoting is
     63 # there to prevent editors from complaining about space-tab.
     64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     65 # splitting by setting IFS to empty value.)
     66 as_nl='
     67 '
     68 IFS=" ""	$as_nl"
     69 
     70 # Find who we are.  Look in the path if we contain no directory separator.
     71 case $0 in
     72   *[\\/]* ) as_myself=$0 ;;
     73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     74 for as_dir in $PATH
     75 do
     76   IFS=$as_save_IFS
     77   test -z "$as_dir" && as_dir=.
     78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     79 done
     80 IFS=$as_save_IFS
     81 
     82      ;;
     83 esac
     84 # We did not find ourselves, most probably we were run as `sh COMMAND'
     85 # in which case we are not to be found in the path.
     86 if test "x$as_myself" = x; then
     87   as_myself=$0
     88 fi
     89 if test ! -f "$as_myself"; then
     90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     91   { (exit 1); exit 1; }
     92 fi
     93 
     94 # Work around bugs in pre-3.0 UWIN ksh.
     95 for as_var in ENV MAIL MAILPATH
     96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     97 done
     98 PS1='$ '
     99 PS2='> '
    100 PS4='+ '
    101 
    102 # NLS nuisances.
    103 for as_var in \
    104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    106   LC_TELEPHONE LC_TIME
    107 do
    108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    109     eval $as_var=C; export $as_var
    110   else
    111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    112   fi
    113 done
    114 
    115 # Required to use basename.
    116 if expr a : '\(a\)' >/dev/null 2>&1 &&
    117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    118   as_expr=expr
    119 else
    120   as_expr=false
    121 fi
    122 
    123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    124   as_basename=basename
    125 else
    126   as_basename=false
    127 fi
    128 
    129 
    130 # Name of the executable.
    131 as_me=`$as_basename -- "$0" ||
    132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    133 	 X"$0" : 'X\(//\)$' \| \
    134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    135 echo X/"$0" |
    136     sed '/^.*\/\([^/][^/]*\)\/*$/{
    137 	    s//\1/
    138 	    q
    139 	  }
    140 	  /^X\/\(\/\/\)$/{
    141 	    s//\1/
    142 	    q
    143 	  }
    144 	  /^X\/\(\/\).*/{
    145 	    s//\1/
    146 	    q
    147 	  }
    148 	  s/.*/./; q'`
    149 
    150 # CDPATH.
    151 $as_unset CDPATH
    152 
    153 
    154 if test "x$CONFIG_SHELL" = x; then
    155   if (eval ":") 2>/dev/null; then
    156   as_have_required=yes
    157 else
    158   as_have_required=no
    159 fi
    160 
    161   if test $as_have_required = yes && 	 (eval ":
    162 (as_func_return () {
    163   (exit \$1)
    164 }
    165 as_func_success () {
    166   as_func_return 0
    167 }
    168 as_func_failure () {
    169   as_func_return 1
    170 }
    171 as_func_ret_success () {
    172   return 0
    173 }
    174 as_func_ret_failure () {
    175   return 1
    176 }
    177 
    178 exitcode=0
    179 if as_func_success; then
    180   :
    181 else
    182   exitcode=1
    183   echo as_func_success failed.
    184 fi
    185 
    186 if as_func_failure; then
    187   exitcode=1
    188   echo as_func_failure succeeded.
    189 fi
    190 
    191 if as_func_ret_success; then
    192   :
    193 else
    194   exitcode=1
    195   echo as_func_ret_success failed.
    196 fi
    197 
    198 if as_func_ret_failure; then
    199   exitcode=1
    200   echo as_func_ret_failure succeeded.
    201 fi
    202 
    203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    204   :
    205 else
    206   exitcode=1
    207   echo positional parameters were not saved.
    208 fi
    209 
    210 test \$exitcode = 0) || { (exit 1); exit 1; }
    211 
    212 (
    213   as_lineno_1=\$LINENO
    214   as_lineno_2=\$LINENO
    215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    217 ") 2> /dev/null; then
    218   :
    219 else
    220   as_candidate_shells=
    221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    223 do
    224   IFS=$as_save_IFS
    225   test -z "$as_dir" && as_dir=.
    226   case $as_dir in
    227 	 /*)
    228 	   for as_base in sh bash ksh sh5; do
    229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    230 	   done;;
    231        esac
    232 done
    233 IFS=$as_save_IFS
    234 
    235 
    236       for as_shell in $as_candidate_shells $SHELL; do
    237 	 # Try only shells that exist, to save several forks.
    238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    240 # Be Bourne compatible
    241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242   emulate sh
    243   NULLCMD=:
    244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245   # is contrary to our usage.  Disable this feature.
    246   alias -g '${1+"$@"}'='"$@"'
    247   setopt NO_GLOB_SUBST
    248 else
    249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    250 fi
    251 BIN_SH=xpg4; export BIN_SH # for Tru64
    252 DUALCASE=1; export DUALCASE # for MKS sh
    253 
    254 :
    255 _ASEOF
    256 }; then
    257   CONFIG_SHELL=$as_shell
    258 	       as_have_required=yes
    259 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    260 # Be Bourne compatible
    261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    262   emulate sh
    263   NULLCMD=:
    264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    265   # is contrary to our usage.  Disable this feature.
    266   alias -g '${1+"$@"}'='"$@"'
    267   setopt NO_GLOB_SUBST
    268 else
    269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    270 fi
    271 BIN_SH=xpg4; export BIN_SH # for Tru64
    272 DUALCASE=1; export DUALCASE # for MKS sh
    273 
    274 :
    275 (as_func_return () {
    276   (exit $1)
    277 }
    278 as_func_success () {
    279   as_func_return 0
    280 }
    281 as_func_failure () {
    282   as_func_return 1
    283 }
    284 as_func_ret_success () {
    285   return 0
    286 }
    287 as_func_ret_failure () {
    288   return 1
    289 }
    290 
    291 exitcode=0
    292 if as_func_success; then
    293   :
    294 else
    295   exitcode=1
    296   echo as_func_success failed.
    297 fi
    298 
    299 if as_func_failure; then
    300   exitcode=1
    301   echo as_func_failure succeeded.
    302 fi
    303 
    304 if as_func_ret_success; then
    305   :
    306 else
    307   exitcode=1
    308   echo as_func_ret_success failed.
    309 fi
    310 
    311 if as_func_ret_failure; then
    312   exitcode=1
    313   echo as_func_ret_failure succeeded.
    314 fi
    315 
    316 if ( set x; as_func_ret_success y && test x = "$1" ); then
    317   :
    318 else
    319   exitcode=1
    320   echo positional parameters were not saved.
    321 fi
    322 
    323 test $exitcode = 0) || { (exit 1); exit 1; }
    324 
    325 (
    326   as_lineno_1=$LINENO
    327   as_lineno_2=$LINENO
    328   test "x$as_lineno_1" != "x$as_lineno_2" &&
    329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    330 
    331 _ASEOF
    332 }; then
    333   break
    334 fi
    335 
    336 fi
    337 
    338       done
    339 
    340       if test "x$CONFIG_SHELL" != x; then
    341   for as_var in BASH_ENV ENV
    342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    343         done
    344         export CONFIG_SHELL
    345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    346 fi
    347 
    348 
    349     if test $as_have_required = no; then
    350   echo This script requires a shell more modern than all the
    351       echo shells that I found on your system.  Please install a
    352       echo modern shell, or manually run the script under such a
    353       echo shell if you do have one.
    354       { (exit 1); exit 1; }
    355 fi
    356 
    357 
    358 fi
    359 
    360 fi
    361 
    362 
    363 
    364 (eval "as_func_return () {
    365   (exit \$1)
    366 }
    367 as_func_success () {
    368   as_func_return 0
    369 }
    370 as_func_failure () {
    371   as_func_return 1
    372 }
    373 as_func_ret_success () {
    374   return 0
    375 }
    376 as_func_ret_failure () {
    377   return 1
    378 }
    379 
    380 exitcode=0
    381 if as_func_success; then
    382   :
    383 else
    384   exitcode=1
    385   echo as_func_success failed.
    386 fi
    387 
    388 if as_func_failure; then
    389   exitcode=1
    390   echo as_func_failure succeeded.
    391 fi
    392 
    393 if as_func_ret_success; then
    394   :
    395 else
    396   exitcode=1
    397   echo as_func_ret_success failed.
    398 fi
    399 
    400 if as_func_ret_failure; then
    401   exitcode=1
    402   echo as_func_ret_failure succeeded.
    403 fi
    404 
    405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    406   :
    407 else
    408   exitcode=1
    409   echo positional parameters were not saved.
    410 fi
    411 
    412 test \$exitcode = 0") || {
    413   echo No shell found that supports shell functions.
    414   echo Please tell autoconf@gnu.org about your system,
    415   echo including any error possibly output before this
    416   echo message
    417 }
    418 
    419 
    420 
    421   as_lineno_1=$LINENO
    422   as_lineno_2=$LINENO
    423   test "x$as_lineno_1" != "x$as_lineno_2" &&
    424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    425 
    426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    427   # uniformly replaced by the line number.  The first 'sed' inserts a
    428   # line-number line after each line using $LINENO; the second 'sed'
    429   # does the real work.  The second script uses 'N' to pair each
    430   # line-number line with the line containing $LINENO, and appends
    431   # trailing '-' during substitution so that $LINENO is not a special
    432   # case at line end.
    433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    435   # E. McMahon (1931-1989) for sed's syntax.  :-)
    436   sed -n '
    437     p
    438     /[$]LINENO/=
    439   ' <$as_myself |
    440     sed '
    441       s/[$]LINENO.*/&-/
    442       t lineno
    443       b
    444       :lineno
    445       N
    446       :loop
    447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    448       t loop
    449       s/-\n.*//
    450     ' >$as_me.lineno &&
    451   chmod +x "$as_me.lineno" ||
    452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    453    { (exit 1); exit 1; }; }
    454 
    455   # Don't try to exec as it changes $[0], causing all sort of problems
    456   # (the dirname of $[0] is not the place where we might find the
    457   # original and so on.  Autoconf is especially sensitive to this).
    458   . "./$as_me.lineno"
    459   # Exit status is that of the last command.
    460   exit
    461 }
    462 
    463 
    464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    465   as_dirname=dirname
    466 else
    467   as_dirname=false
    468 fi
    469 
    470 ECHO_C= ECHO_N= ECHO_T=
    471 case `echo -n x` in
    472 -n*)
    473   case `echo 'x\c'` in
    474   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    475   *)   ECHO_C='\c';;
    476   esac;;
    477 *)
    478   ECHO_N='-n';;
    479 esac
    480 
    481 if expr a : '\(a\)' >/dev/null 2>&1 &&
    482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    483   as_expr=expr
    484 else
    485   as_expr=false
    486 fi
    487 
    488 rm -f conf$$ conf$$.exe conf$$.file
    489 if test -d conf$$.dir; then
    490   rm -f conf$$.dir/conf$$.file
    491 else
    492   rm -f conf$$.dir
    493   mkdir conf$$.dir
    494 fi
    495 echo >conf$$.file
    496 if ln -s conf$$.file conf$$ 2>/dev/null; then
    497   as_ln_s='ln -s'
    498   # ... but there are two gotchas:
    499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    501   # In both cases, we have to default to `cp -p'.
    502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    503     as_ln_s='cp -p'
    504 elif ln conf$$.file conf$$ 2>/dev/null; then
    505   as_ln_s=ln
    506 else
    507   as_ln_s='cp -p'
    508 fi
    509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    510 rmdir conf$$.dir 2>/dev/null
    511 
    512 if mkdir -p . 2>/dev/null; then
    513   as_mkdir_p=:
    514 else
    515   test -d ./-p && rmdir ./-p
    516   as_mkdir_p=false
    517 fi
    518 
    519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
    520 # systems may use methods other than mode bits to determine executability.
    521 cat >conf$$.file <<_ASEOF
    522 #! /bin/sh
    523 exit 0
    524 _ASEOF
    525 chmod +x conf$$.file
    526 if test -x conf$$.file >/dev/null 2>&1; then
    527   as_executable_p="test -x"
    528 else
    529   as_executable_p=:
    530 fi
    531 rm -f conf$$.file
    532 
    533 # Sed expression to map a string onto a valid CPP name.
    534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    535 
    536 # Sed expression to map a string onto a valid variable name.
    537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    538 
    539 
    540 
    541 exec 7<&0 </dev/null 6>&1
    542 
    543 # Name of the host.
    544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    545 # so uname gets run too.
    546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    547 
    548 #
    549 # Initializations.
    550 #
    551 ac_default_prefix=/usr/local
    552 ac_clean_files=
    553 ac_config_libobj_dir=.
    554 LIBOBJS=
    555 cross_compiling=no
    556 subdirs=
    557 MFLAGS=
    558 MAKEFLAGS=
    559 SHELL=${CONFIG_SHELL-/bin/sh}
    560 
    561 # Identity of this package.
    562 PACKAGE_NAME='LLVM'
    563 PACKAGE_TARNAME='llvm'
    564 PACKAGE_VERSION='3.2svn'
    565 PACKAGE_STRING='LLVM 3.2svn'
    566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
    567 
    568 ac_unique_file="lib/VMCore/Module.cpp"
    569 # Factoring default headers for most tests.
    570 ac_includes_default="\
    571 #include <stdio.h>
    572 #if HAVE_SYS_TYPES_H
    573 # include <sys/types.h>
    574 #endif
    575 #if HAVE_SYS_STAT_H
    576 # include <sys/stat.h>
    577 #endif
    578 #if STDC_HEADERS
    579 # include <stdlib.h>
    580 # include <stddef.h>
    581 #else
    582 # if HAVE_STDLIB_H
    583 #  include <stdlib.h>
    584 # endif
    585 #endif
    586 #if HAVE_STRING_H
    587 # if !STDC_HEADERS && HAVE_MEMORY_H
    588 #  include <memory.h>
    589 # endif
    590 # include <string.h>
    591 #endif
    592 #if HAVE_STRINGS_H
    593 # include <strings.h>
    594 #endif
    595 #if HAVE_INTTYPES_H
    596 # include <inttypes.h>
    597 #endif
    598 #if HAVE_STDINT_H
    599 # include <stdint.h>
    600 #endif
    601 #if HAVE_UNISTD_H
    602 # include <unistd.h>
    603 #endif"
    604 
    605 ac_subst_vars='SHELL
    606 PATH_SEPARATOR
    607 PACKAGE_NAME
    608 PACKAGE_TARNAME
    609 PACKAGE_VERSION
    610 PACKAGE_STRING
    611 PACKAGE_BUGREPORT
    612 exec_prefix
    613 prefix
    614 program_transform_name
    615 bindir
    616 sbindir
    617 libexecdir
    618 datarootdir
    619 datadir
    620 sysconfdir
    621 sharedstatedir
    622 localstatedir
    623 includedir
    624 oldincludedir
    625 docdir
    626 infodir
    627 htmldir
    628 dvidir
    629 pdfdir
    630 psdir
    631 libdir
    632 localedir
    633 mandir
    634 DEFS
    635 ECHO_C
    636 ECHO_N
    637 ECHO_T
    638 LIBS
    639 build_alias
    640 host_alias
    641 target_alias
    642 LLVM_COPYRIGHT
    643 CC
    644 CFLAGS
    645 LDFLAGS
    646 CPPFLAGS
    647 ac_ct_CC
    648 EXEEXT
    649 OBJEXT
    650 CXX
    651 CXXFLAGS
    652 ac_ct_CXX
    653 CPP
    654 subdirs
    655 ENABLE_POLLY
    656 LLVM_HAS_POLLY
    657 build
    658 build_cpu
    659 build_vendor
    660 build_os
    661 host
    662 host_cpu
    663 host_vendor
    664 host_os
    665 target
    666 target_cpu
    667 target_vendor
    668 target_os
    669 OS
    670 HOST_OS
    671 TARGET_OS
    672 LINKALL
    673 NOLINKALL
    674 LLVM_ON_UNIX
    675 LLVM_ON_WIN32
    676 ARCH
    677 HOST_ARCH
    678 ENDIAN
    679 GREP
    680 EGREP
    681 LLVM_CROSS_COMPILING
    682 BUILD_CC
    683 BUILD_EXEEXT
    684 BUILD_CXX
    685 CVSBUILD
    686 ENABLE_LIBCPP
    687 ENABLE_CXX11
    688 ENABLE_OPTIMIZED
    689 ENABLE_PROFILING
    690 DISABLE_ASSERTIONS
    691 ENABLE_WERROR
    692 ENABLE_EXPENSIVE_CHECKS
    693 EXPENSIVE_CHECKS
    694 DEBUG_RUNTIME
    695 DEBUG_SYMBOLS
    696 KEEP_SYMBOLS
    697 JIT
    698 TARGET_HAS_JIT
    699 ENABLE_DOCS
    700 ENABLE_DOXYGEN
    701 LLVM_ENABLE_THREADS
    702 ENABLE_PTHREADS
    703 ENABLE_PIC
    704 ENABLE_SHARED
    705 ENABLE_EMBED_STDCXX
    706 ENABLE_TIMESTAMPS
    707 TARGETS_TO_BUILD
    708 LLVM_ENUM_TARGETS
    709 LLVM_ENUM_ASM_PRINTERS
    710 LLVM_ENUM_ASM_PARSERS
    711 LLVM_ENUM_DISASSEMBLERS
    712 OPTIMIZE_OPTION
    713 EXTRA_OPTIONS
    714 EXTRA_LD_OPTIONS
    715 CLANG_SRC_ROOT
    716 BINUTILS_INCDIR
    717 INTERNAL_PREFIX
    718 NM
    719 ifGNUmake
    720 LN_S
    721 CMP
    722 CP
    723 DATE
    724 FIND
    725 MKDIR
    726 MV
    727 RANLIB
    728 AR
    729 RM
    730 SED
    731 TAR
    732 BINPWD
    733 GRAPHVIZ
    734 DOT
    735 FDP
    736 NEATO
    737 TWOPI
    738 CIRCO
    739 GV
    740 DOTTY
    741 XDOT_PY
    742 INSTALL_PROGRAM
    743 INSTALL_SCRIPT
    744 INSTALL_DATA
    745 BZIP2
    746 CAT
    747 DOXYGEN
    748 GROFF
    749 GZIPBIN
    750 PDFROFF
    751 ZIP
    752 OCAMLC
    753 OCAMLOPT
    754 OCAMLDEP
    755 OCAMLDOC
    756 GAS
    757 HAVE_LINK_VERSION_SCRIPT
    758 INSTALL_LTDL_TRUE
    759 INSTALL_LTDL_FALSE
    760 CONVENIENCE_LTDL_TRUE
    761 CONVENIENCE_LTDL_FALSE
    762 LIBADD_DL
    763 NO_VARIADIC_MACROS
    764 NO_MISSING_FIELD_INITIALIZERS
    765 COVERED_SWITCH_DEFAULT
    766 USE_UDIS86
    767 USE_OPROFILE
    768 USE_INTEL_JITEVENTS
    769 INTEL_JITEVENTS_INCDIR
    770 INTEL_JITEVENTS_LIBDIR
    771 XML2CONFIG
    772 LIBXML2_LIBS
    773 LIBXML2_INC
    774 HAVE_PTHREAD
    775 HUGE_VAL_SANITY
    776 MMAP_FILE
    777 SHLIBEXT
    778 SHLIBPATH_VAR
    779 LLVM_PREFIX
    780 LLVM_BINDIR
    781 LLVM_LIBDIR
    782 LLVM_DATADIR
    783 LLVM_DOCSDIR
    784 LLVM_ETCDIR
    785 LLVM_INCLUDEDIR
    786 LLVM_INFODIR
    787 LLVM_MANDIR
    788 LLVM_CONFIGTIME
    789 BINDINGS_TO_BUILD
    790 ALL_BINDINGS
    791 OCAML_LIBDIR
    792 ENABLE_VISIBILITY_INLINES_HIDDEN
    793 RPATH
    794 RDYNAMIC
    795 LIBOBJS
    796 LTLIBOBJS'
    797 ac_subst_files=''
    798       ac_precious_vars='build_alias
    799 host_alias
    800 target_alias
    801 CC
    802 CFLAGS
    803 LDFLAGS
    804 CPPFLAGS
    805 CXX
    806 CXXFLAGS
    807 CCC
    808 CPP'
    809 ac_subdirs_all='projects/llvm-gcc
    810 projects/test-suite
    811 projects/llvm-test
    812 projects/poolalloc
    813 projects/llvm-poolalloc
    814 projects/sample
    815 projects/privbracket
    816 projects/llvm-stacker
    817 projects/llvm-reopt
    818 projects/llvm-java
    819 projects/llvm-tv
    820 projects/safecode
    821 projects/llvm-kernel
    822 tools/polly'
    823 
    824 # Initialize some variables set by options.
    825 ac_init_help=
    826 ac_init_version=false
    827 # The variables have the same names as the options, with
    828 # dashes changed to underlines.
    829 cache_file=/dev/null
    830 exec_prefix=NONE
    831 no_create=
    832 no_recursion=
    833 prefix=NONE
    834 program_prefix=NONE
    835 program_suffix=NONE
    836 program_transform_name=s,x,x,
    837 silent=
    838 site=
    839 srcdir=
    840 verbose=
    841 x_includes=NONE
    842 x_libraries=NONE
    843 
    844 # Installation directory options.
    845 # These are left unexpanded so users can "make install exec_prefix=/foo"
    846 # and all the variables that are supposed to be based on exec_prefix
    847 # by default will actually change.
    848 # Use braces instead of parens because sh, perl, etc. also accept them.
    849 # (The list follows the same order as the GNU Coding Standards.)
    850 bindir='${exec_prefix}/bin'
    851 sbindir='${exec_prefix}/sbin'
    852 libexecdir='${exec_prefix}/libexec'
    853 datarootdir='${prefix}/share'
    854 datadir='${datarootdir}'
    855 sysconfdir='${prefix}/etc'
    856 sharedstatedir='${prefix}/com'
    857 localstatedir='${prefix}/var'
    858 includedir='${prefix}/include'
    859 oldincludedir='/usr/include'
    860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    861 infodir='${datarootdir}/info'
    862 htmldir='${docdir}'
    863 dvidir='${docdir}'
    864 pdfdir='${docdir}'
    865 psdir='${docdir}'
    866 libdir='${exec_prefix}/lib'
    867 localedir='${datarootdir}/locale'
    868 mandir='${datarootdir}/man'
    869 
    870 ac_prev=
    871 ac_dashdash=
    872 for ac_option
    873 do
    874   # If the previous option needs an argument, assign it.
    875   if test -n "$ac_prev"; then
    876     eval $ac_prev=\$ac_option
    877     ac_prev=
    878     continue
    879   fi
    880 
    881   case $ac_option in
    882   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    883   *)	ac_optarg=yes ;;
    884   esac
    885 
    886   # Accept the important Cygnus configure options, so we can diagnose typos.
    887 
    888   case $ac_dashdash$ac_option in
    889   --)
    890     ac_dashdash=yes ;;
    891 
    892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    893     ac_prev=bindir ;;
    894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    895     bindir=$ac_optarg ;;
    896 
    897   -build | --build | --buil | --bui | --bu)
    898     ac_prev=build_alias ;;
    899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    900     build_alias=$ac_optarg ;;
    901 
    902   -cache-file | --cache-file | --cache-fil | --cache-fi \
    903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    904     ac_prev=cache_file ;;
    905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    907     cache_file=$ac_optarg ;;
    908 
    909   --config-cache | -C)
    910     cache_file=config.cache ;;
    911 
    912   -datadir | --datadir | --datadi | --datad)
    913     ac_prev=datadir ;;
    914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    915     datadir=$ac_optarg ;;
    916 
    917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    918   | --dataroo | --dataro | --datar)
    919     ac_prev=datarootdir ;;
    920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    922     datarootdir=$ac_optarg ;;
    923 
    924   -disable-* | --disable-*)
    925     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    926     # Reject names that are not valid shell variable names.
    927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    929    { (exit 1); exit 1; }; }
    930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    931     eval enable_$ac_feature=no ;;
    932 
    933   -docdir | --docdir | --docdi | --doc | --do)
    934     ac_prev=docdir ;;
    935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    936     docdir=$ac_optarg ;;
    937 
    938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    939     ac_prev=dvidir ;;
    940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    941     dvidir=$ac_optarg ;;
    942 
    943   -enable-* | --enable-*)
    944     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    945     # Reject names that are not valid shell variable names.
    946     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    947       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    948    { (exit 1); exit 1; }; }
    949     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    950     eval enable_$ac_feature=\$ac_optarg ;;
    951 
    952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    954   | --exec | --exe | --ex)
    955     ac_prev=exec_prefix ;;
    956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    958   | --exec=* | --exe=* | --ex=*)
    959     exec_prefix=$ac_optarg ;;
    960 
    961   -gas | --gas | --ga | --g)
    962     # Obsolete; use --with-gas.
    963     with_gas=yes ;;
    964 
    965   -help | --help | --hel | --he | -h)
    966     ac_init_help=long ;;
    967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    968     ac_init_help=recursive ;;
    969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    970     ac_init_help=short ;;
    971 
    972   -host | --host | --hos | --ho)
    973     ac_prev=host_alias ;;
    974   -host=* | --host=* | --hos=* | --ho=*)
    975     host_alias=$ac_optarg ;;
    976 
    977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    978     ac_prev=htmldir ;;
    979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    980   | --ht=*)
    981     htmldir=$ac_optarg ;;
    982 
    983   -includedir | --includedir | --includedi | --included | --include \
    984   | --includ | --inclu | --incl | --inc)
    985     ac_prev=includedir ;;
    986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    987   | --includ=* | --inclu=* | --incl=* | --inc=*)
    988     includedir=$ac_optarg ;;
    989 
    990   -infodir | --infodir | --infodi | --infod | --info | --inf)
    991     ac_prev=infodir ;;
    992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    993     infodir=$ac_optarg ;;
    994 
    995   -libdir | --libdir | --libdi | --libd)
    996     ac_prev=libdir ;;
    997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    998     libdir=$ac_optarg ;;
    999 
   1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1001   | --libexe | --libex | --libe)
   1002     ac_prev=libexecdir ;;
   1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1004   | --libexe=* | --libex=* | --libe=*)
   1005     libexecdir=$ac_optarg ;;
   1006 
   1007   -localedir | --localedir | --localedi | --localed | --locale)
   1008     ac_prev=localedir ;;
   1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1010     localedir=$ac_optarg ;;
   1011 
   1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1013   | --localstate | --localstat | --localsta | --localst | --locals)
   1014     ac_prev=localstatedir ;;
   1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1017     localstatedir=$ac_optarg ;;
   1018 
   1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1020     ac_prev=mandir ;;
   1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1022     mandir=$ac_optarg ;;
   1023 
   1024   -nfp | --nfp | --nf)
   1025     # Obsolete; use --without-fp.
   1026     with_fp=no ;;
   1027 
   1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1029   | --no-cr | --no-c | -n)
   1030     no_create=yes ;;
   1031 
   1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1034     no_recursion=yes ;;
   1035 
   1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1038   | --oldin | --oldi | --old | --ol | --o)
   1039     ac_prev=oldincludedir ;;
   1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1043     oldincludedir=$ac_optarg ;;
   1044 
   1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1046     ac_prev=prefix ;;
   1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1048     prefix=$ac_optarg ;;
   1049 
   1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1051   | --program-pre | --program-pr | --program-p)
   1052     ac_prev=program_prefix ;;
   1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1055     program_prefix=$ac_optarg ;;
   1056 
   1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1058   | --program-suf | --program-su | --program-s)
   1059     ac_prev=program_suffix ;;
   1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1062     program_suffix=$ac_optarg ;;
   1063 
   1064   -program-transform-name | --program-transform-name \
   1065   | --program-transform-nam | --program-transform-na \
   1066   | --program-transform-n | --program-transform- \
   1067   | --program-transform | --program-transfor \
   1068   | --program-transfo | --program-transf \
   1069   | --program-trans | --program-tran \
   1070   | --progr-tra | --program-tr | --program-t)
   1071     ac_prev=program_transform_name ;;
   1072   -program-transform-name=* | --program-transform-name=* \
   1073   | --program-transform-nam=* | --program-transform-na=* \
   1074   | --program-transform-n=* | --program-transform-=* \
   1075   | --program-transform=* | --program-transfor=* \
   1076   | --program-transfo=* | --program-transf=* \
   1077   | --program-trans=* | --program-tran=* \
   1078   | --progr-tra=* | --program-tr=* | --program-t=*)
   1079     program_transform_name=$ac_optarg ;;
   1080 
   1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1082     ac_prev=pdfdir ;;
   1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1084     pdfdir=$ac_optarg ;;
   1085 
   1086   -psdir | --psdir | --psdi | --psd | --ps)
   1087     ac_prev=psdir ;;
   1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1089     psdir=$ac_optarg ;;
   1090 
   1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1092   | -silent | --silent | --silen | --sile | --sil)
   1093     silent=yes ;;
   1094 
   1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1096     ac_prev=sbindir ;;
   1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1098   | --sbi=* | --sb=*)
   1099     sbindir=$ac_optarg ;;
   1100 
   1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1103   | --sharedst | --shareds | --shared | --share | --shar \
   1104   | --sha | --sh)
   1105     ac_prev=sharedstatedir ;;
   1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1109   | --sha=* | --sh=*)
   1110     sharedstatedir=$ac_optarg ;;
   1111 
   1112   -site | --site | --sit)
   1113     ac_prev=site ;;
   1114   -site=* | --site=* | --sit=*)
   1115     site=$ac_optarg ;;
   1116 
   1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1118     ac_prev=srcdir ;;
   1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1120     srcdir=$ac_optarg ;;
   1121 
   1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1123   | --syscon | --sysco | --sysc | --sys | --sy)
   1124     ac_prev=sysconfdir ;;
   1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1127     sysconfdir=$ac_optarg ;;
   1128 
   1129   -target | --target | --targe | --targ | --tar | --ta | --t)
   1130     ac_prev=target_alias ;;
   1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1132     target_alias=$ac_optarg ;;
   1133 
   1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1135     verbose=yes ;;
   1136 
   1137   -version | --version | --versio | --versi | --vers | -V)
   1138     ac_init_version=: ;;
   1139 
   1140   -with-* | --with-*)
   1141     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1142     # Reject names that are not valid shell variable names.
   1143     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1144       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1145    { (exit 1); exit 1; }; }
   1146     ac_package=`echo $ac_package| sed 's/-/_/g'`
   1147     eval with_$ac_package=\$ac_optarg ;;
   1148 
   1149   -without-* | --without-*)
   1150     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1151     # Reject names that are not valid shell variable names.
   1152     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1153       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1154    { (exit 1); exit 1; }; }
   1155     ac_package=`echo $ac_package | sed 's/-/_/g'`
   1156     eval with_$ac_package=no ;;
   1157 
   1158   --x)
   1159     # Obsolete; use --with-x.
   1160     with_x=yes ;;
   1161 
   1162   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1163   | --x-incl | --x-inc | --x-in | --x-i)
   1164     ac_prev=x_includes ;;
   1165   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1166   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1167     x_includes=$ac_optarg ;;
   1168 
   1169   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1170   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1171     ac_prev=x_libraries ;;
   1172   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1173   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1174     x_libraries=$ac_optarg ;;
   1175 
   1176   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1177 Try \`$0 --help' for more information." >&2
   1178    { (exit 1); exit 1; }; }
   1179     ;;
   1180 
   1181   *=*)
   1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1183     # Reject names that are not valid shell variable names.
   1184     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1185       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1186    { (exit 1); exit 1; }; }
   1187     eval $ac_envvar=\$ac_optarg
   1188     export $ac_envvar ;;
   1189 
   1190   *)
   1191     # FIXME: should be removed in autoconf 3.0.
   1192     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1193     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1194       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1195     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1196     ;;
   1197 
   1198   esac
   1199 done
   1200 
   1201 if test -n "$ac_prev"; then
   1202   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1203   { echo "$as_me: error: missing argument to $ac_option" >&2
   1204    { (exit 1); exit 1; }; }
   1205 fi
   1206 
   1207 # Be sure to have absolute directory names.
   1208 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1209 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1210 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1211 		libdir localedir mandir
   1212 do
   1213   eval ac_val=\$$ac_var
   1214   case $ac_val in
   1215     [\\/$]* | ?:[\\/]* )  continue;;
   1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1217   esac
   1218   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1219    { (exit 1); exit 1; }; }
   1220 done
   1221 
   1222 # There might be people who depend on the old broken behavior: `$host'
   1223 # used to hold the argument of --host etc.
   1224 # FIXME: To remove some day.
   1225 build=$build_alias
   1226 host=$host_alias
   1227 target=$target_alias
   1228 
   1229 # FIXME: To remove some day.
   1230 if test "x$host_alias" != x; then
   1231   if test "x$build_alias" = x; then
   1232     cross_compiling=maybe
   1233     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1234     If a cross compiler is detected then cross compile mode will be used." >&2
   1235   elif test "x$build_alias" != "x$host_alias"; then
   1236     cross_compiling=yes
   1237   fi
   1238 fi
   1239 
   1240 ac_tool_prefix=
   1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1242 
   1243 test "$silent" = yes && exec 6>/dev/null
   1244 
   1245 
   1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1247 ac_ls_di=`ls -di .` &&
   1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1249   { echo "$as_me: error: Working directory cannot be determined" >&2
   1250    { (exit 1); exit 1; }; }
   1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1252   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1253    { (exit 1); exit 1; }; }
   1254 
   1255 
   1256 # Find the source files, if location was not specified.
   1257 if test -z "$srcdir"; then
   1258   ac_srcdir_defaulted=yes
   1259   # Try the directory containing this script, then the parent directory.
   1260   ac_confdir=`$as_dirname -- "$0" ||
   1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1262 	 X"$0" : 'X\(//\)[^/]' \| \
   1263 	 X"$0" : 'X\(//\)$' \| \
   1264 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1265 echo X"$0" |
   1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1267 	    s//\1/
   1268 	    q
   1269 	  }
   1270 	  /^X\(\/\/\)[^/].*/{
   1271 	    s//\1/
   1272 	    q
   1273 	  }
   1274 	  /^X\(\/\/\)$/{
   1275 	    s//\1/
   1276 	    q
   1277 	  }
   1278 	  /^X\(\/\).*/{
   1279 	    s//\1/
   1280 	    q
   1281 	  }
   1282 	  s/.*/./; q'`
   1283   srcdir=$ac_confdir
   1284   if test ! -r "$srcdir/$ac_unique_file"; then
   1285     srcdir=..
   1286   fi
   1287 else
   1288   ac_srcdir_defaulted=no
   1289 fi
   1290 if test ! -r "$srcdir/$ac_unique_file"; then
   1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1292   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1293    { (exit 1); exit 1; }; }
   1294 fi
   1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1296 ac_abs_confdir=`(
   1297 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1298    { (exit 1); exit 1; }; }
   1299 	pwd)`
   1300 # When building in place, set srcdir=.
   1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1302   srcdir=.
   1303 fi
   1304 # Remove unnecessary trailing slashes from srcdir.
   1305 # Double slashes in file names in object file debugging info
   1306 # mess up M-x gdb in Emacs.
   1307 case $srcdir in
   1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1309 esac
   1310 for ac_var in $ac_precious_vars; do
   1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1312   eval ac_env_${ac_var}_value=\$${ac_var}
   1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1315 done
   1316 
   1317 #
   1318 # Report the --help message.
   1319 #
   1320 if test "$ac_init_help" = "long"; then
   1321   # Omit some internal or obsolete options to make the list less imposing.
   1322   # This message is too long to be a string in the A/UX 3.1 sh.
   1323   cat <<_ACEOF
   1324 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
   1325 
   1326 Usage: $0 [OPTION]... [VAR=VALUE]...
   1327 
   1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1330 
   1331 Defaults for the options are specified in brackets.
   1332 
   1333 Configuration:
   1334   -h, --help              display this help and exit
   1335       --help=short        display options specific to this package
   1336       --help=recursive    display the short help of all the included packages
   1337   -V, --version           display version information and exit
   1338   -q, --quiet, --silent   do not print \`checking...' messages
   1339       --cache-file=FILE   cache test results in FILE [disabled]
   1340   -C, --config-cache      alias for \`--cache-file=config.cache'
   1341   -n, --no-create         do not create output files
   1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1343 
   1344 Installation directories:
   1345   --prefix=PREFIX         install architecture-independent files in PREFIX
   1346 			  [$ac_default_prefix]
   1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1348 			  [PREFIX]
   1349 
   1350 By default, \`make install' will install all the files in
   1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1353 for instance \`--prefix=\$HOME'.
   1354 
   1355 For better control, use the options below.
   1356 
   1357 Fine tuning of the installation directories:
   1358   --bindir=DIR           user executables [EPREFIX/bin]
   1359   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1360   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1361   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1362   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1363   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1364   --libdir=DIR           object code libraries [EPREFIX/lib]
   1365   --includedir=DIR       C header files [PREFIX/include]
   1366   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1367   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1368   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1369   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1370   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1371   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1372   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
   1373   --htmldir=DIR          html documentation [DOCDIR]
   1374   --dvidir=DIR           dvi documentation [DOCDIR]
   1375   --pdfdir=DIR           pdf documentation [DOCDIR]
   1376   --psdir=DIR            ps documentation [DOCDIR]
   1377 _ACEOF
   1378 
   1379   cat <<\_ACEOF
   1380 
   1381 System types:
   1382   --build=BUILD     configure for building on BUILD [guessed]
   1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1384   --target=TARGET   configure for building compilers for TARGET [HOST]
   1385 _ACEOF
   1386 fi
   1387 
   1388 if test -n "$ac_init_help"; then
   1389   case $ac_init_help in
   1390      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
   1391    esac
   1392   cat <<\_ACEOF
   1393 
   1394 Optional Features:
   1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1397   --enable-polly          Use polly if available (default is YES)
   1398   --enable-libcpp         Use libc++ if available (default is NO)
   1399   --enable-cxx11          Use c++11 if available (default is NO)
   1400   --enable-optimized      Compile with optimizations enabled (default is NO)
   1401   --enable-profiling      Compile with profiling enabled (default is NO)
   1402   --enable-assertions     Compile with assertion checks enabled (default is
   1403                           YES)
   1404   --enable-werror         Compile with -Werror enabled (default is NO)
   1405   --enable-expensive-checks
   1406                           Compile with expensive debug checks enabled (default
   1407                           is NO)
   1408   --enable-debug-runtime  Build runtime libs with debug symbols (default is
   1409                           NO)
   1410   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
   1411                           optimization is on and YES if it's off)
   1412   --enable-keep-symbols   Do not strip installed executables)
   1413   --enable-jit            Enable Just In Time Compiling (default is YES)
   1414   --enable-docs           Build documents (default is YES)
   1415   --enable-doxygen        Build doxygen documentation (default is NO)
   1416   --enable-threads        Use threads if available (default is YES)
   1417   --enable-pthreads       Use pthreads if available (default is YES)
   1418   --enable-pic            Build LLVM with Position Independent Code (default
   1419                           is YES)
   1420   --enable-shared         Build a shared library and link tools against it
   1421                           (default is NO)
   1422   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
   1423                           Win32 DLL (default is NO)
   1424   --enable-timestamps     Enable embedding timestamp information in build
   1425                           (default is YES)
   1426   --enable-targets        Build specific host targets: all or
   1427                           target1,target2,... Valid targets are: host, x86,
   1428                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
   1429                           xcore, msp430, nvptx, and cpp (default=all)
   1430   --enable-experimental-targets
   1431                           Build experimental host targets: disable or
   1432                           target1,target2,... (default=disable)
   1433   --enable-bindings       Build specific language bindings:
   1434                           all,auto,none,{binding-name} (default=auto)
   1435   --enable-libffi         Check for the presence of libffi (default is NO)
   1436   --enable-ltdl-install   install libltdl
   1437 
   1438 Optional Packages:
   1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1441   --with-optimize-option  Select the compiler options to use for optimized
   1442                           builds
   1443   --with-extra-options    Specify additional options to compile LLVM with
   1444   --with-extra-ld-options Specify additional options to link LLVM with
   1445   --with-ocaml-libdir     Specify install location for ocaml bindings (default
   1446                           is stdlib)
   1447   --with-clang-srcdir     Directory to the out-of-tree Clang source
   1448   --with-clang-resource-dir
   1449                           Relative directory from the Clang binary for
   1450                           resource files
   1451   --with-c-include-dirs   Colon separated list of directories clang will
   1452                           search for headers
   1453   --with-gcc-toolchain    Directory where gcc is installed.
   1454   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
   1455   --with-binutils-include Specify path to binutils/include/ containing
   1456                           plugin-api.h file for gold plugin.
   1457   --with-bug-report-url   Specify the URL where bug reports should be
   1458                           submitted (default=http://llvm.org/bugs/)
   1459   --with-internal-prefix  Installation directory for internal files
   1460   --with-udis86=<path>    Use udis86 external x86 disassembler library
   1461   --with-oprofile=<prefix>
   1462                           Tell OProfile >= 0.9.4 how to symbolize JIT output
   1463   --with-intel-jitevents=<vtune-amplifier-dir>
   1464                           Specify location of run-time support library for
   1465                           Intel JIT API
   1466                           (default=/opt/intel/vtune_amplifier_xe_2011)
   1467 
   1468 Some influential environment variables:
   1469   CC          C compiler command
   1470   CFLAGS      C compiler flags
   1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1472               nonstandard directory <lib dir>
   1473   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1474               you have headers in a nonstandard directory <include dir>
   1475   CXX         C++ compiler command
   1476   CXXFLAGS    C++ compiler flags
   1477   CPP         C preprocessor
   1478 
   1479 Use these variables to override the choices made by `configure' or to help
   1480 it to find libraries and programs with nonstandard names/locations.
   1481 
   1482 Report bugs to <http://llvm.org/bugs/>.
   1483 _ACEOF
   1484 ac_status=$?
   1485 fi
   1486 
   1487 if test "$ac_init_help" = "recursive"; then
   1488   # If there are subdirs, report their specific --help.
   1489   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1490     test -d "$ac_dir" || continue
   1491     ac_builddir=.
   1492 
   1493 case "$ac_dir" in
   1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1495 *)
   1496   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1497   # A ".." for each directory in $ac_dir_suffix.
   1498   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1499   case $ac_top_builddir_sub in
   1500   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1501   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1502   esac ;;
   1503 esac
   1504 ac_abs_top_builddir=$ac_pwd
   1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1506 # for backward compatibility:
   1507 ac_top_builddir=$ac_top_build_prefix
   1508 
   1509 case $srcdir in
   1510   .)  # We are building in place.
   1511     ac_srcdir=.
   1512     ac_top_srcdir=$ac_top_builddir_sub
   1513     ac_abs_top_srcdir=$ac_pwd ;;
   1514   [\\/]* | ?:[\\/]* )  # Absolute name.
   1515     ac_srcdir=$srcdir$ac_dir_suffix;
   1516     ac_top_srcdir=$srcdir
   1517     ac_abs_top_srcdir=$srcdir ;;
   1518   *) # Relative name.
   1519     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1520     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1521     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1522 esac
   1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1524 
   1525     cd "$ac_dir" || { ac_status=$?; continue; }
   1526     # Check for guested configure.
   1527     if test -f "$ac_srcdir/configure.gnu"; then
   1528       echo &&
   1529       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1530     elif test -f "$ac_srcdir/configure"; then
   1531       echo &&
   1532       $SHELL "$ac_srcdir/configure" --help=recursive
   1533     else
   1534       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1535     fi || ac_status=$?
   1536     cd "$ac_pwd" || { ac_status=$?; break; }
   1537   done
   1538 fi
   1539 
   1540 test -n "$ac_init_help" && exit $ac_status
   1541 if $ac_init_version; then
   1542   cat <<\_ACEOF
   1543 LLVM configure 3.2svn
   1544 generated by GNU Autoconf 2.60
   1545 
   1546 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1547 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1548 This configure script is free software; the Free Software Foundation
   1549 gives unlimited permission to copy, distribute and modify it.
   1550 
   1551 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
   1552 _ACEOF
   1553   exit
   1554 fi
   1555 cat >config.log <<_ACEOF
   1556 This file contains any messages produced by compilers while
   1557 running configure, to aid debugging if configure makes a mistake.
   1558 
   1559 It was created by LLVM $as_me 3.2svn, which was
   1560 generated by GNU Autoconf 2.60.  Invocation command line was
   1561 
   1562   $ $0 $@
   1563 
   1564 _ACEOF
   1565 exec 5>>config.log
   1566 {
   1567 cat <<_ASUNAME
   1568 ## --------- ##
   1569 ## Platform. ##
   1570 ## --------- ##
   1571 
   1572 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1573 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1574 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1575 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1576 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1577 
   1578 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1579 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1580 
   1581 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1582 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1583 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1584 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1585 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1586 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1587 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1588 
   1589 _ASUNAME
   1590 
   1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1592 for as_dir in $PATH
   1593 do
   1594   IFS=$as_save_IFS
   1595   test -z "$as_dir" && as_dir=.
   1596   echo "PATH: $as_dir"
   1597 done
   1598 IFS=$as_save_IFS
   1599 
   1600 } >&5
   1601 
   1602 cat >&5 <<_ACEOF
   1603 
   1604 
   1605 ## ----------- ##
   1606 ## Core tests. ##
   1607 ## ----------- ##
   1608 
   1609 _ACEOF
   1610 
   1611 
   1612 # Keep a trace of the command line.
   1613 # Strip out --no-create and --no-recursion so they do not pile up.
   1614 # Strip out --silent because we don't want to record it for future runs.
   1615 # Also quote any args containing shell meta-characters.
   1616 # Make two passes to allow for proper duplicate-argument suppression.
   1617 ac_configure_args=
   1618 ac_configure_args0=
   1619 ac_configure_args1=
   1620 ac_must_keep_next=false
   1621 for ac_pass in 1 2
   1622 do
   1623   for ac_arg
   1624   do
   1625     case $ac_arg in
   1626     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1627     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1628     | -silent | --silent | --silen | --sile | --sil)
   1629       continue ;;
   1630     *\'*)
   1631       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1632     esac
   1633     case $ac_pass in
   1634     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1635     2)
   1636       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1637       if test $ac_must_keep_next = true; then
   1638 	ac_must_keep_next=false # Got value, back to normal.
   1639       else
   1640 	case $ac_arg in
   1641 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1642 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1643 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1644 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1645 	    case "$ac_configure_args0 " in
   1646 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1647 	    esac
   1648 	    ;;
   1649 	  -* ) ac_must_keep_next=true ;;
   1650 	esac
   1651       fi
   1652       ac_configure_args="$ac_configure_args '$ac_arg'"
   1653       ;;
   1654     esac
   1655   done
   1656 done
   1657 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1658 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1659 
   1660 # When interrupted or exit'd, cleanup temporary files, and complete
   1661 # config.log.  We remove comments because anyway the quotes in there
   1662 # would cause problems or look ugly.
   1663 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1664 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1665 trap 'exit_status=$?
   1666   # Save into config.log some information that might help in debugging.
   1667   {
   1668     echo
   1669 
   1670     cat <<\_ASBOX
   1671 ## ---------------- ##
   1672 ## Cache variables. ##
   1673 ## ---------------- ##
   1674 _ASBOX
   1675     echo
   1676     # The following way of writing the cache mishandles newlines in values,
   1677 (
   1678   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1679     eval ac_val=\$$ac_var
   1680     case $ac_val in #(
   1681     *${as_nl}*)
   1682       case $ac_var in #(
   1683       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1685       esac
   1686       case $ac_var in #(
   1687       _ | IFS | as_nl) ;; #(
   1688       *) $as_unset $ac_var ;;
   1689       esac ;;
   1690     esac
   1691   done
   1692   (set) 2>&1 |
   1693     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1694     *${as_nl}ac_space=\ *)
   1695       sed -n \
   1696 	"s/'\''/'\''\\\\'\'''\''/g;
   1697 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1698       ;; #(
   1699     *)
   1700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1701       ;;
   1702     esac |
   1703     sort
   1704 )
   1705     echo
   1706 
   1707     cat <<\_ASBOX
   1708 ## ----------------- ##
   1709 ## Output variables. ##
   1710 ## ----------------- ##
   1711 _ASBOX
   1712     echo
   1713     for ac_var in $ac_subst_vars
   1714     do
   1715       eval ac_val=\$$ac_var
   1716       case $ac_val in
   1717       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1718       esac
   1719       echo "$ac_var='\''$ac_val'\''"
   1720     done | sort
   1721     echo
   1722 
   1723     if test -n "$ac_subst_files"; then
   1724       cat <<\_ASBOX
   1725 ## ------------------- ##
   1726 ## File substitutions. ##
   1727 ## ------------------- ##
   1728 _ASBOX
   1729       echo
   1730       for ac_var in $ac_subst_files
   1731       do
   1732 	eval ac_val=\$$ac_var
   1733 	case $ac_val in
   1734 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1735 	esac
   1736 	echo "$ac_var='\''$ac_val'\''"
   1737       done | sort
   1738       echo
   1739     fi
   1740 
   1741     if test -s confdefs.h; then
   1742       cat <<\_ASBOX
   1743 ## ----------- ##
   1744 ## confdefs.h. ##
   1745 ## ----------- ##
   1746 _ASBOX
   1747       echo
   1748       cat confdefs.h
   1749       echo
   1750     fi
   1751     test "$ac_signal" != 0 &&
   1752       echo "$as_me: caught signal $ac_signal"
   1753     echo "$as_me: exit $exit_status"
   1754   } >&5
   1755   rm -f core *.core core.conftest.* &&
   1756     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1757     exit $exit_status
   1758 ' 0
   1759 for ac_signal in 1 2 13 15; do
   1760   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1761 done
   1762 ac_signal=0
   1763 
   1764 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1765 rm -f -r conftest* confdefs.h
   1766 
   1767 # Predefined preprocessor variables.
   1768 
   1769 cat >>confdefs.h <<_ACEOF
   1770 #define PACKAGE_NAME "$PACKAGE_NAME"
   1771 _ACEOF
   1772 
   1773 
   1774 cat >>confdefs.h <<_ACEOF
   1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1776 _ACEOF
   1777 
   1778 
   1779 cat >>confdefs.h <<_ACEOF
   1780 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1781 _ACEOF
   1782 
   1783 
   1784 cat >>confdefs.h <<_ACEOF
   1785 #define PACKAGE_STRING "$PACKAGE_STRING"
   1786 _ACEOF
   1787 
   1788 
   1789 cat >>confdefs.h <<_ACEOF
   1790 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1791 _ACEOF
   1792 
   1793 
   1794 # Let the site file select an alternate cache file if it wants to.
   1795 # Prefer explicitly selected file to automatically selected ones.
   1796 if test -n "$CONFIG_SITE"; then
   1797   set x "$CONFIG_SITE"
   1798 elif test "x$prefix" != xNONE; then
   1799   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1800 else
   1801   set x "$ac_default_prefix/share/config.site" \
   1802 	"$ac_default_prefix/etc/config.site"
   1803 fi
   1804 shift
   1805 for ac_site_file
   1806 do
   1807   if test -r "$ac_site_file"; then
   1808     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1809 echo "$as_me: loading site script $ac_site_file" >&6;}
   1810     sed 's/^/| /' "$ac_site_file" >&5
   1811     . "$ac_site_file"
   1812   fi
   1813 done
   1814 
   1815 if test -r "$cache_file"; then
   1816   # Some versions of bash will fail to source /dev/null (special
   1817   # files actually), so we avoid doing that.
   1818   if test -f "$cache_file"; then
   1819     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1820 echo "$as_me: loading cache $cache_file" >&6;}
   1821     case $cache_file in
   1822       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1823       *)                      . "./$cache_file";;
   1824     esac
   1825   fi
   1826 else
   1827   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1828 echo "$as_me: creating cache $cache_file" >&6;}
   1829   >$cache_file
   1830 fi
   1831 
   1832 # Check that the precious variables saved in the cache have kept the same
   1833 # value.
   1834 ac_cache_corrupted=false
   1835 for ac_var in $ac_precious_vars; do
   1836   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1837   eval ac_new_set=\$ac_env_${ac_var}_set
   1838   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1839   eval ac_new_val=\$ac_env_${ac_var}_value
   1840   case $ac_old_set,$ac_new_set in
   1841     set,)
   1842       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1843 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1844       ac_cache_corrupted=: ;;
   1845     ,set)
   1846       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1847 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1848       ac_cache_corrupted=: ;;
   1849     ,);;
   1850     *)
   1851       if test "x$ac_old_val" != "x$ac_new_val"; then
   1852 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1853 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1854 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1855 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1856 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1857 echo "$as_me:   current value: $ac_new_val" >&2;}
   1858 	ac_cache_corrupted=:
   1859       fi;;
   1860   esac
   1861   # Pass precious variables to config.status.
   1862   if test "$ac_new_set" = set; then
   1863     case $ac_new_val in
   1864     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1865     *) ac_arg=$ac_var=$ac_new_val ;;
   1866     esac
   1867     case " $ac_configure_args " in
   1868       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1869       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1870     esac
   1871   fi
   1872 done
   1873 if $ac_cache_corrupted; then
   1874   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1875 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1876   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1877 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1878    { (exit 1); exit 1; }; }
   1879 fi
   1880 
   1881 
   1882 
   1883 
   1884 
   1885 
   1886 
   1887 
   1888 
   1889 
   1890 
   1891 
   1892 
   1893 
   1894 
   1895 
   1896 
   1897 
   1898 
   1899 
   1900 
   1901 
   1902 
   1903 
   1904 
   1905 ac_ext=c
   1906 ac_cpp='$CPP $CPPFLAGS'
   1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1910 
   1911 
   1912 
   1913 cat >>confdefs.h <<\_ACEOF
   1914 #define LLVM_VERSION_MAJOR 3
   1915 _ACEOF
   1916 
   1917 
   1918 cat >>confdefs.h <<\_ACEOF
   1919 #define LLVM_VERSION_MINOR 2
   1920 _ACEOF
   1921 
   1922 
   1923 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
   1924 
   1925 
   1926 
   1927 
   1928 
   1929 
   1930 
   1931 ac_aux_dir=
   1932 for ac_dir in autoconf "$srcdir"/autoconf; do
   1933   if test -f "$ac_dir/install-sh"; then
   1934     ac_aux_dir=$ac_dir
   1935     ac_install_sh="$ac_aux_dir/install-sh -c"
   1936     break
   1937   elif test -f "$ac_dir/install.sh"; then
   1938     ac_aux_dir=$ac_dir
   1939     ac_install_sh="$ac_aux_dir/install.sh -c"
   1940     break
   1941   elif test -f "$ac_dir/shtool"; then
   1942     ac_aux_dir=$ac_dir
   1943     ac_install_sh="$ac_aux_dir/shtool install -c"
   1944     break
   1945   fi
   1946 done
   1947 if test -z "$ac_aux_dir"; then
   1948   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
   1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
   1950    { (exit 1); exit 1; }; }
   1951 fi
   1952 
   1953 # These three variables are undocumented and unsupported,
   1954 # and are intended to be withdrawn in a future Autoconf release.
   1955 # They can cause serious problems if a builder's source tree is in a directory
   1956 # whose full name contains unusual characters.
   1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1960 
   1961 
   1962 
   1963 if test ${srcdir} != "." ; then
   1964   if test -f ${srcdir}/include/llvm/Config/config.h ; then
   1965     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
   1966 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
   1967    { (exit 1); exit 1; }; }
   1968   fi
   1969 fi
   1970 
   1971 ac_ext=c
   1972 ac_cpp='$CPP $CPPFLAGS'
   1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1976 if test -n "$ac_tool_prefix"; then
   1977   for ac_prog in clang llvm-gcc gcc
   1978   do
   1979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1983 if test "${ac_cv_prog_CC+set}" = set; then
   1984   echo $ECHO_N "(cached) $ECHO_C" >&6
   1985 else
   1986   if test -n "$CC"; then
   1987   ac_cv_prog_CC="$CC" # Let the user override the test.
   1988 else
   1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1990 for as_dir in $PATH
   1991 do
   1992   IFS=$as_save_IFS
   1993   test -z "$as_dir" && as_dir=.
   1994   for ac_exec_ext in '' $ac_executable_extensions; do
   1995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   1996     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1998     break 2
   1999   fi
   2000 done
   2001 done
   2002 IFS=$as_save_IFS
   2003 
   2004 fi
   2005 fi
   2006 CC=$ac_cv_prog_CC
   2007 if test -n "$CC"; then
   2008   { echo "$as_me:$LINENO: result: $CC" >&5
   2009 echo "${ECHO_T}$CC" >&6; }
   2010 else
   2011   { echo "$as_me:$LINENO: result: no" >&5
   2012 echo "${ECHO_T}no" >&6; }
   2013 fi
   2014 
   2015 
   2016     test -n "$CC" && break
   2017   done
   2018 fi
   2019 if test -z "$CC"; then
   2020   ac_ct_CC=$CC
   2021   for ac_prog in clang llvm-gcc gcc
   2022 do
   2023   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2024 set dummy $ac_prog; ac_word=$2
   2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2028   echo $ECHO_N "(cached) $ECHO_C" >&6
   2029 else
   2030   if test -n "$ac_ct_CC"; then
   2031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2032 else
   2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2034 for as_dir in $PATH
   2035 do
   2036   IFS=$as_save_IFS
   2037   test -z "$as_dir" && as_dir=.
   2038   for ac_exec_ext in '' $ac_executable_extensions; do
   2039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2040     ac_cv_prog_ac_ct_CC="$ac_prog"
   2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2042     break 2
   2043   fi
   2044 done
   2045 done
   2046 IFS=$as_save_IFS
   2047 
   2048 fi
   2049 fi
   2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2051 if test -n "$ac_ct_CC"; then
   2052   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2054 else
   2055   { echo "$as_me:$LINENO: result: no" >&5
   2056 echo "${ECHO_T}no" >&6; }
   2057 fi
   2058 
   2059 
   2060   test -n "$ac_ct_CC" && break
   2061 done
   2062 
   2063   if test "x$ac_ct_CC" = x; then
   2064     CC=""
   2065   else
   2066     case $cross_compiling:$ac_tool_warned in
   2067 yes:)
   2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2069 whose name does not start with the host triplet.  If you think this
   2070 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2072 whose name does not start with the host triplet.  If you think this
   2073 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2074 ac_tool_warned=yes ;;
   2075 esac
   2076     CC=$ac_ct_CC
   2077   fi
   2078 fi
   2079 
   2080 
   2081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2082 See \`config.log' for more details." >&5
   2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2084 See \`config.log' for more details." >&2;}
   2085    { (exit 1); exit 1; }; }
   2086 
   2087 # Provide some information about the compiler.
   2088 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2089 ac_compiler=`set X $ac_compile; echo $2`
   2090 { (ac_try="$ac_compiler --version >&5"
   2091 case "(($ac_try" in
   2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2093   *) ac_try_echo=$ac_try;;
   2094 esac
   2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2096   (eval "$ac_compiler --version >&5") 2>&5
   2097   ac_status=$?
   2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2099   (exit $ac_status); }
   2100 { (ac_try="$ac_compiler -v >&5"
   2101 case "(($ac_try" in
   2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2103   *) ac_try_echo=$ac_try;;
   2104 esac
   2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2106   (eval "$ac_compiler -v >&5") 2>&5
   2107   ac_status=$?
   2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2109   (exit $ac_status); }
   2110 { (ac_try="$ac_compiler -V >&5"
   2111 case "(($ac_try" in
   2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2113   *) ac_try_echo=$ac_try;;
   2114 esac
   2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2116   (eval "$ac_compiler -V >&5") 2>&5
   2117   ac_status=$?
   2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2119   (exit $ac_status); }
   2120 
   2121 cat >conftest.$ac_ext <<_ACEOF
   2122 /* confdefs.h.  */
   2123 _ACEOF
   2124 cat confdefs.h >>conftest.$ac_ext
   2125 cat >>conftest.$ac_ext <<_ACEOF
   2126 /* end confdefs.h.  */
   2127 
   2128 int
   2129 main ()
   2130 {
   2131 
   2132   ;
   2133   return 0;
   2134 }
   2135 _ACEOF
   2136 ac_clean_files_save=$ac_clean_files
   2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2138 # Try to create an executable without -o first, disregard a.out.
   2139 # It will help us diagnose broken compilers, and finding out an intuition
   2140 # of exeext.
   2141 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2144 #
   2145 # List of possible output files, starting from the most likely.
   2146 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2147 # only as a last resort.  b.out is created by i960 compilers.
   2148 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2149 #
   2150 # The IRIX 6 linker writes into existing files which may not be
   2151 # executable, retaining their permissions.  Remove them first so a
   2152 # subsequent execution test works.
   2153 ac_rmfiles=
   2154 for ac_file in $ac_files
   2155 do
   2156   case $ac_file in
   2157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2158     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2159   esac
   2160 done
   2161 rm -f $ac_rmfiles
   2162 
   2163 if { (ac_try="$ac_link_default"
   2164 case "(($ac_try" in
   2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2166   *) ac_try_echo=$ac_try;;
   2167 esac
   2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2169   (eval "$ac_link_default") 2>&5
   2170   ac_status=$?
   2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2172   (exit $ac_status); }; then
   2173   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2175 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2176 # so that the user can short-circuit this test for compilers unknown to
   2177 # Autoconf.
   2178 for ac_file in $ac_files
   2179 do
   2180   test -f "$ac_file" || continue
   2181   case $ac_file in
   2182     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2183 	;;
   2184     [ab].out )
   2185 	# We found the default executable, but exeext='' is most
   2186 	# certainly right.
   2187 	break;;
   2188     *.* )
   2189         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2190 	then :; else
   2191 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2192 	fi
   2193 	# We set ac_cv_exeext here because the later test for it is not
   2194 	# safe: cross compilers may not add the suffix if given an `-o'
   2195 	# argument, so we may need to know it at that point already.
   2196 	# Even if this section looks crufty: it has the advantage of
   2197 	# actually working.
   2198 	break;;
   2199     * )
   2200 	break;;
   2201   esac
   2202 done
   2203 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2204 
   2205 else
   2206   echo "$as_me: failed program was:" >&5
   2207 sed 's/^/| /' conftest.$ac_ext >&5
   2208 
   2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2210 See \`config.log' for more details." >&5
   2211 echo "$as_me: error: C compiler cannot create executables
   2212 See \`config.log' for more details." >&2;}
   2213    { (exit 77); exit 77; }; }
   2214 fi
   2215 
   2216 ac_exeext=$ac_cv_exeext
   2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2218 echo "${ECHO_T}$ac_file" >&6; }
   2219 
   2220 # Check that the compiler produces executables we can run.  If not, either
   2221 # the compiler is broken, or we cross compile.
   2222 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2225 # If not cross compiling, check that we can run a simple program.
   2226 if test "$cross_compiling" != yes; then
   2227   if { ac_try='./$ac_file'
   2228   { (case "(($ac_try" in
   2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2230   *) ac_try_echo=$ac_try;;
   2231 esac
   2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2233   (eval "$ac_try") 2>&5
   2234   ac_status=$?
   2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2236   (exit $ac_status); }; }; then
   2237     cross_compiling=no
   2238   else
   2239     if test "$cross_compiling" = maybe; then
   2240 	cross_compiling=yes
   2241     else
   2242 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2243 If you meant to cross compile, use \`--host'.
   2244 See \`config.log' for more details." >&5
   2245 echo "$as_me: error: cannot run C compiled programs.
   2246 If you meant to cross compile, use \`--host'.
   2247 See \`config.log' for more details." >&2;}
   2248    { (exit 1); exit 1; }; }
   2249     fi
   2250   fi
   2251 fi
   2252 { echo "$as_me:$LINENO: result: yes" >&5
   2253 echo "${ECHO_T}yes" >&6; }
   2254 
   2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2256 ac_clean_files=$ac_clean_files_save
   2257 # Check that the compiler produces executables we can run.  If not, either
   2258 # the compiler is broken, or we cross compile.
   2259 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2261 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2262 echo "${ECHO_T}$cross_compiling" >&6; }
   2263 
   2264 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2266 if { (ac_try="$ac_link"
   2267 case "(($ac_try" in
   2268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2269   *) ac_try_echo=$ac_try;;
   2270 esac
   2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2272   (eval "$ac_link") 2>&5
   2273   ac_status=$?
   2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2275   (exit $ac_status); }; then
   2276   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2277 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2279 # `rm'.
   2280 for ac_file in conftest.exe conftest conftest.*; do
   2281   test -f "$ac_file" || continue
   2282   case $ac_file in
   2283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2284     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2285 	  break;;
   2286     * ) break;;
   2287   esac
   2288 done
   2289 else
   2290   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2291 See \`config.log' for more details." >&5
   2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2293 See \`config.log' for more details." >&2;}
   2294    { (exit 1); exit 1; }; }
   2295 fi
   2296 
   2297 rm -f conftest$ac_cv_exeext
   2298 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2299 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2300 
   2301 rm -f conftest.$ac_ext
   2302 EXEEXT=$ac_cv_exeext
   2303 ac_exeext=$EXEEXT
   2304 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2306 if test "${ac_cv_objext+set}" = set; then
   2307   echo $ECHO_N "(cached) $ECHO_C" >&6
   2308 else
   2309   cat >conftest.$ac_ext <<_ACEOF
   2310 /* confdefs.h.  */
   2311 _ACEOF
   2312 cat confdefs.h >>conftest.$ac_ext
   2313 cat >>conftest.$ac_ext <<_ACEOF
   2314 /* end confdefs.h.  */
   2315 
   2316 int
   2317 main ()
   2318 {
   2319 
   2320   ;
   2321   return 0;
   2322 }
   2323 _ACEOF
   2324 rm -f conftest.o conftest.obj
   2325 if { (ac_try="$ac_compile"
   2326 case "(($ac_try" in
   2327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2328   *) ac_try_echo=$ac_try;;
   2329 esac
   2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2331   (eval "$ac_compile") 2>&5
   2332   ac_status=$?
   2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2334   (exit $ac_status); }; then
   2335   for ac_file in conftest.o conftest.obj conftest.*; do
   2336   test -f "$ac_file" || continue;
   2337   case $ac_file in
   2338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2339     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2340        break;;
   2341   esac
   2342 done
   2343 else
   2344   echo "$as_me: failed program was:" >&5
   2345 sed 's/^/| /' conftest.$ac_ext >&5
   2346 
   2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2348 See \`config.log' for more details." >&5
   2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2350 See \`config.log' for more details." >&2;}
   2351    { (exit 1); exit 1; }; }
   2352 fi
   2353 
   2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2355 fi
   2356 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2357 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2358 OBJEXT=$ac_cv_objext
   2359 ac_objext=$OBJEXT
   2360 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2363   echo $ECHO_N "(cached) $ECHO_C" >&6
   2364 else
   2365   cat >conftest.$ac_ext <<_ACEOF
   2366 /* confdefs.h.  */
   2367 _ACEOF
   2368 cat confdefs.h >>conftest.$ac_ext
   2369 cat >>conftest.$ac_ext <<_ACEOF
   2370 /* end confdefs.h.  */
   2371 
   2372 int
   2373 main ()
   2374 {
   2375 #ifndef __GNUC__
   2376        choke me
   2377 #endif
   2378 
   2379   ;
   2380   return 0;
   2381 }
   2382 _ACEOF
   2383 rm -f conftest.$ac_objext
   2384 if { (ac_try="$ac_compile"
   2385 case "(($ac_try" in
   2386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2387   *) ac_try_echo=$ac_try;;
   2388 esac
   2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2390   (eval "$ac_compile") 2>conftest.er1
   2391   ac_status=$?
   2392   grep -v '^ *+' conftest.er1 >conftest.err
   2393   rm -f conftest.er1
   2394   cat conftest.err >&5
   2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2396   (exit $ac_status); } &&
   2397 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2398   { (case "(($ac_try" in
   2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2400   *) ac_try_echo=$ac_try;;
   2401 esac
   2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2403   (eval "$ac_try") 2>&5
   2404   ac_status=$?
   2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2406   (exit $ac_status); }; } &&
   2407 	 { ac_try='test -s conftest.$ac_objext'
   2408   { (case "(($ac_try" in
   2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2410   *) ac_try_echo=$ac_try;;
   2411 esac
   2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2413   (eval "$ac_try") 2>&5
   2414   ac_status=$?
   2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2416   (exit $ac_status); }; }; then
   2417   ac_compiler_gnu=yes
   2418 else
   2419   echo "$as_me: failed program was:" >&5
   2420 sed 's/^/| /' conftest.$ac_ext >&5
   2421 
   2422 	ac_compiler_gnu=no
   2423 fi
   2424 
   2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2427 
   2428 fi
   2429 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2431 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2432 ac_test_CFLAGS=${CFLAGS+set}
   2433 ac_save_CFLAGS=$CFLAGS
   2434 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2436 if test "${ac_cv_prog_cc_g+set}" = set; then
   2437   echo $ECHO_N "(cached) $ECHO_C" >&6
   2438 else
   2439   ac_save_c_werror_flag=$ac_c_werror_flag
   2440    ac_c_werror_flag=yes
   2441    ac_cv_prog_cc_g=no
   2442    CFLAGS="-g"
   2443    cat >conftest.$ac_ext <<_ACEOF
   2444 /* confdefs.h.  */
   2445 _ACEOF
   2446 cat confdefs.h >>conftest.$ac_ext
   2447 cat >>conftest.$ac_ext <<_ACEOF
   2448 /* end confdefs.h.  */
   2449 
   2450 int
   2451 main ()
   2452 {
   2453 
   2454   ;
   2455   return 0;
   2456 }
   2457 _ACEOF
   2458 rm -f conftest.$ac_objext
   2459 if { (ac_try="$ac_compile"
   2460 case "(($ac_try" in
   2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2462   *) ac_try_echo=$ac_try;;
   2463 esac
   2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2465   (eval "$ac_compile") 2>conftest.er1
   2466   ac_status=$?
   2467   grep -v '^ *+' conftest.er1 >conftest.err
   2468   rm -f conftest.er1
   2469   cat conftest.err >&5
   2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2471   (exit $ac_status); } &&
   2472 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2473   { (case "(($ac_try" in
   2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2475   *) ac_try_echo=$ac_try;;
   2476 esac
   2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2478   (eval "$ac_try") 2>&5
   2479   ac_status=$?
   2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2481   (exit $ac_status); }; } &&
   2482 	 { ac_try='test -s conftest.$ac_objext'
   2483   { (case "(($ac_try" in
   2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2485   *) ac_try_echo=$ac_try;;
   2486 esac
   2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2488   (eval "$ac_try") 2>&5
   2489   ac_status=$?
   2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2491   (exit $ac_status); }; }; then
   2492   ac_cv_prog_cc_g=yes
   2493 else
   2494   echo "$as_me: failed program was:" >&5
   2495 sed 's/^/| /' conftest.$ac_ext >&5
   2496 
   2497 	CFLAGS=""
   2498       cat >conftest.$ac_ext <<_ACEOF
   2499 /* confdefs.h.  */
   2500 _ACEOF
   2501 cat confdefs.h >>conftest.$ac_ext
   2502 cat >>conftest.$ac_ext <<_ACEOF
   2503 /* end confdefs.h.  */
   2504 
   2505 int
   2506 main ()
   2507 {
   2508 
   2509   ;
   2510   return 0;
   2511 }
   2512 _ACEOF
   2513 rm -f conftest.$ac_objext
   2514 if { (ac_try="$ac_compile"
   2515 case "(($ac_try" in
   2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2517   *) ac_try_echo=$ac_try;;
   2518 esac
   2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2520   (eval "$ac_compile") 2>conftest.er1
   2521   ac_status=$?
   2522   grep -v '^ *+' conftest.er1 >conftest.err
   2523   rm -f conftest.er1
   2524   cat conftest.err >&5
   2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2526   (exit $ac_status); } &&
   2527 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2528   { (case "(($ac_try" in
   2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2530   *) ac_try_echo=$ac_try;;
   2531 esac
   2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2533   (eval "$ac_try") 2>&5
   2534   ac_status=$?
   2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2536   (exit $ac_status); }; } &&
   2537 	 { ac_try='test -s conftest.$ac_objext'
   2538   { (case "(($ac_try" in
   2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2540   *) ac_try_echo=$ac_try;;
   2541 esac
   2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2543   (eval "$ac_try") 2>&5
   2544   ac_status=$?
   2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2546   (exit $ac_status); }; }; then
   2547   :
   2548 else
   2549   echo "$as_me: failed program was:" >&5
   2550 sed 's/^/| /' conftest.$ac_ext >&5
   2551 
   2552 	ac_c_werror_flag=$ac_save_c_werror_flag
   2553 	 CFLAGS="-g"
   2554 	 cat >conftest.$ac_ext <<_ACEOF
   2555 /* confdefs.h.  */
   2556 _ACEOF
   2557 cat confdefs.h >>conftest.$ac_ext
   2558 cat >>conftest.$ac_ext <<_ACEOF
   2559 /* end confdefs.h.  */
   2560 
   2561 int
   2562 main ()
   2563 {
   2564 
   2565   ;
   2566   return 0;
   2567 }
   2568 _ACEOF
   2569 rm -f conftest.$ac_objext
   2570 if { (ac_try="$ac_compile"
   2571 case "(($ac_try" in
   2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2573   *) ac_try_echo=$ac_try;;
   2574 esac
   2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2576   (eval "$ac_compile") 2>conftest.er1
   2577   ac_status=$?
   2578   grep -v '^ *+' conftest.er1 >conftest.err
   2579   rm -f conftest.er1
   2580   cat conftest.err >&5
   2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2582   (exit $ac_status); } &&
   2583 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2584   { (case "(($ac_try" in
   2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2586   *) ac_try_echo=$ac_try;;
   2587 esac
   2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2589   (eval "$ac_try") 2>&5
   2590   ac_status=$?
   2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2592   (exit $ac_status); }; } &&
   2593 	 { ac_try='test -s conftest.$ac_objext'
   2594   { (case "(($ac_try" in
   2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2596   *) ac_try_echo=$ac_try;;
   2597 esac
   2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2599   (eval "$ac_try") 2>&5
   2600   ac_status=$?
   2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2602   (exit $ac_status); }; }; then
   2603   ac_cv_prog_cc_g=yes
   2604 else
   2605   echo "$as_me: failed program was:" >&5
   2606 sed 's/^/| /' conftest.$ac_ext >&5
   2607 
   2608 
   2609 fi
   2610 
   2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2612 fi
   2613 
   2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2615 fi
   2616 
   2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2618    ac_c_werror_flag=$ac_save_c_werror_flag
   2619 fi
   2620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2622 if test "$ac_test_CFLAGS" = set; then
   2623   CFLAGS=$ac_save_CFLAGS
   2624 elif test $ac_cv_prog_cc_g = yes; then
   2625   if test "$GCC" = yes; then
   2626     CFLAGS="-g -O2"
   2627   else
   2628     CFLAGS="-g"
   2629   fi
   2630 else
   2631   if test "$GCC" = yes; then
   2632     CFLAGS="-O2"
   2633   else
   2634     CFLAGS=
   2635   fi
   2636 fi
   2637 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2638 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2639 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2640   echo $ECHO_N "(cached) $ECHO_C" >&6
   2641 else
   2642   ac_cv_prog_cc_c89=no
   2643 ac_save_CC=$CC
   2644 cat >conftest.$ac_ext <<_ACEOF
   2645 /* confdefs.h.  */
   2646 _ACEOF
   2647 cat confdefs.h >>conftest.$ac_ext
   2648 cat >>conftest.$ac_ext <<_ACEOF
   2649 /* end confdefs.h.  */
   2650 #include <stdarg.h>
   2651 #include <stdio.h>
   2652 #include <sys/types.h>
   2653 #include <sys/stat.h>
   2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2655 struct buf { int x; };
   2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2657 static char *e (p, i)
   2658      char **p;
   2659      int i;
   2660 {
   2661   return p[i];
   2662 }
   2663 static char *f (char * (*g) (char **, int), char **p, ...)
   2664 {
   2665   char *s;
   2666   va_list v;
   2667   va_start (v,p);
   2668   s = g (p, va_arg (v,int));
   2669   va_end (v);
   2670   return s;
   2671 }
   2672 
   2673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2674    function prototypes and stuff, but not '\xHH' hex character constants.
   2675    These don't provoke an error unfortunately, instead are silently treated
   2676    as 'x'.  The following induces an error, until -std is added to get
   2677    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2678    array size at least.  It's necessary to write '\x00'==0 to get something
   2679    that's true only with -std.  */
   2680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2681 
   2682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2683    inside strings and character constants.  */
   2684 #define FOO(x) 'x'
   2685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2686 
   2687 int test (int i, double x);
   2688 struct s1 {int (*f) (int a);};
   2689 struct s2 {int (*f) (double a);};
   2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2691 int argc;
   2692 char **argv;
   2693 int
   2694 main ()
   2695 {
   2696 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2697   ;
   2698   return 0;
   2699 }
   2700 _ACEOF
   2701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2702 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2703 do
   2704   CC="$ac_save_CC $ac_arg"
   2705   rm -f conftest.$ac_objext
   2706 if { (ac_try="$ac_compile"
   2707 case "(($ac_try" in
   2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2709   *) ac_try_echo=$ac_try;;
   2710 esac
   2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2712   (eval "$ac_compile") 2>conftest.er1
   2713   ac_status=$?
   2714   grep -v '^ *+' conftest.er1 >conftest.err
   2715   rm -f conftest.er1
   2716   cat conftest.err >&5
   2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2718   (exit $ac_status); } &&
   2719 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2720   { (case "(($ac_try" in
   2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2722   *) ac_try_echo=$ac_try;;
   2723 esac
   2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2725   (eval "$ac_try") 2>&5
   2726   ac_status=$?
   2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2728   (exit $ac_status); }; } &&
   2729 	 { ac_try='test -s conftest.$ac_objext'
   2730   { (case "(($ac_try" in
   2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2732   *) ac_try_echo=$ac_try;;
   2733 esac
   2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2735   (eval "$ac_try") 2>&5
   2736   ac_status=$?
   2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2738   (exit $ac_status); }; }; then
   2739   ac_cv_prog_cc_c89=$ac_arg
   2740 else
   2741   echo "$as_me: failed program was:" >&5
   2742 sed 's/^/| /' conftest.$ac_ext >&5
   2743 
   2744 
   2745 fi
   2746 
   2747 rm -f core conftest.err conftest.$ac_objext
   2748   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2749 done
   2750 rm -f conftest.$ac_ext
   2751 CC=$ac_save_CC
   2752 
   2753 fi
   2754 # AC_CACHE_VAL
   2755 case "x$ac_cv_prog_cc_c89" in
   2756   x)
   2757     { echo "$as_me:$LINENO: result: none needed" >&5
   2758 echo "${ECHO_T}none needed" >&6; } ;;
   2759   xno)
   2760     { echo "$as_me:$LINENO: result: unsupported" >&5
   2761 echo "${ECHO_T}unsupported" >&6; } ;;
   2762   *)
   2763     CC="$CC $ac_cv_prog_cc_c89"
   2764     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2765 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2766 esac
   2767 
   2768 
   2769 ac_ext=c
   2770 ac_cpp='$CPP $CPPFLAGS'
   2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2774 
   2775 ac_ext=cpp
   2776 ac_cpp='$CXXCPP $CPPFLAGS'
   2777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2780 if test -z "$CXX"; then
   2781   if test -n "$CCC"; then
   2782     CXX=$CCC
   2783   else
   2784     if test -n "$ac_tool_prefix"; then
   2785   for ac_prog in clang++ llvm-g++ g++
   2786   do
   2787     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2791 if test "${ac_cv_prog_CXX+set}" = set; then
   2792   echo $ECHO_N "(cached) $ECHO_C" >&6
   2793 else
   2794   if test -n "$CXX"; then
   2795   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2796 else
   2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2798 for as_dir in $PATH
   2799 do
   2800   IFS=$as_save_IFS
   2801   test -z "$as_dir" && as_dir=.
   2802   for ac_exec_ext in '' $ac_executable_extensions; do
   2803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2804     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2806     break 2
   2807   fi
   2808 done
   2809 done
   2810 IFS=$as_save_IFS
   2811 
   2812 fi
   2813 fi
   2814 CXX=$ac_cv_prog_CXX
   2815 if test -n "$CXX"; then
   2816   { echo "$as_me:$LINENO: result: $CXX" >&5
   2817 echo "${ECHO_T}$CXX" >&6; }
   2818 else
   2819   { echo "$as_me:$LINENO: result: no" >&5
   2820 echo "${ECHO_T}no" >&6; }
   2821 fi
   2822 
   2823 
   2824     test -n "$CXX" && break
   2825   done
   2826 fi
   2827 if test -z "$CXX"; then
   2828   ac_ct_CXX=$CXX
   2829   for ac_prog in clang++ llvm-g++ g++
   2830 do
   2831   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2832 set dummy $ac_prog; ac_word=$2
   2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2835 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2836   echo $ECHO_N "(cached) $ECHO_C" >&6
   2837 else
   2838   if test -n "$ac_ct_CXX"; then
   2839   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2840 else
   2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2842 for as_dir in $PATH
   2843 do
   2844   IFS=$as_save_IFS
   2845   test -z "$as_dir" && as_dir=.
   2846   for ac_exec_ext in '' $ac_executable_extensions; do
   2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2848     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2850     break 2
   2851   fi
   2852 done
   2853 done
   2854 IFS=$as_save_IFS
   2855 
   2856 fi
   2857 fi
   2858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2859 if test -n "$ac_ct_CXX"; then
   2860   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2861 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   2862 else
   2863   { echo "$as_me:$LINENO: result: no" >&5
   2864 echo "${ECHO_T}no" >&6; }
   2865 fi
   2866 
   2867 
   2868   test -n "$ac_ct_CXX" && break
   2869 done
   2870 
   2871   if test "x$ac_ct_CXX" = x; then
   2872     CXX="g++"
   2873   else
   2874     case $cross_compiling:$ac_tool_warned in
   2875 yes:)
   2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2877 whose name does not start with the host triplet.  If you think this
   2878 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2880 whose name does not start with the host triplet.  If you think this
   2881 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2882 ac_tool_warned=yes ;;
   2883 esac
   2884     CXX=$ac_ct_CXX
   2885   fi
   2886 fi
   2887 
   2888   fi
   2889 fi
   2890 # Provide some information about the compiler.
   2891 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   2892 ac_compiler=`set X $ac_compile; echo $2`
   2893 { (ac_try="$ac_compiler --version >&5"
   2894 case "(($ac_try" in
   2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2896   *) ac_try_echo=$ac_try;;
   2897 esac
   2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2899   (eval "$ac_compiler --version >&5") 2>&5
   2900   ac_status=$?
   2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2902   (exit $ac_status); }
   2903 { (ac_try="$ac_compiler -v >&5"
   2904 case "(($ac_try" in
   2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2906   *) ac_try_echo=$ac_try;;
   2907 esac
   2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2909   (eval "$ac_compiler -v >&5") 2>&5
   2910   ac_status=$?
   2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2912   (exit $ac_status); }
   2913 { (ac_try="$ac_compiler -V >&5"
   2914 case "(($ac_try" in
   2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2916   *) ac_try_echo=$ac_try;;
   2917 esac
   2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2919   (eval "$ac_compiler -V >&5") 2>&5
   2920   ac_status=$?
   2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2922   (exit $ac_status); }
   2923 
   2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2925 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   2926 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2927   echo $ECHO_N "(cached) $ECHO_C" >&6
   2928 else
   2929   cat >conftest.$ac_ext <<_ACEOF
   2930 /* confdefs.h.  */
   2931 _ACEOF
   2932 cat confdefs.h >>conftest.$ac_ext
   2933 cat >>conftest.$ac_ext <<_ACEOF
   2934 /* end confdefs.h.  */
   2935 
   2936 int
   2937 main ()
   2938 {
   2939 #ifndef __GNUC__
   2940        choke me
   2941 #endif
   2942 
   2943   ;
   2944   return 0;
   2945 }
   2946 _ACEOF
   2947 rm -f conftest.$ac_objext
   2948 if { (ac_try="$ac_compile"
   2949 case "(($ac_try" in
   2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2951   *) ac_try_echo=$ac_try;;
   2952 esac
   2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2954   (eval "$ac_compile") 2>conftest.er1
   2955   ac_status=$?
   2956   grep -v '^ *+' conftest.er1 >conftest.err
   2957   rm -f conftest.er1
   2958   cat conftest.err >&5
   2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2960   (exit $ac_status); } &&
   2961 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   2962   { (case "(($ac_try" in
   2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2964   *) ac_try_echo=$ac_try;;
   2965 esac
   2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2967   (eval "$ac_try") 2>&5
   2968   ac_status=$?
   2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2970   (exit $ac_status); }; } &&
   2971 	 { ac_try='test -s conftest.$ac_objext'
   2972   { (case "(($ac_try" in
   2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2974   *) ac_try_echo=$ac_try;;
   2975 esac
   2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2977   (eval "$ac_try") 2>&5
   2978   ac_status=$?
   2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2980   (exit $ac_status); }; }; then
   2981   ac_compiler_gnu=yes
   2982 else
   2983   echo "$as_me: failed program was:" >&5
   2984 sed 's/^/| /' conftest.$ac_ext >&5
   2985 
   2986 	ac_compiler_gnu=no
   2987 fi
   2988 
   2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2990 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2991 
   2992 fi
   2993 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2994 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   2995 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2996 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2997 ac_save_CXXFLAGS=$CXXFLAGS
   2998 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2999 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   3000 if test "${ac_cv_prog_cxx_g+set}" = set; then
   3001   echo $ECHO_N "(cached) $ECHO_C" >&6
   3002 else
   3003   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3004    ac_cxx_werror_flag=yes
   3005    ac_cv_prog_cxx_g=no
   3006    CXXFLAGS="-g"
   3007    cat >conftest.$ac_ext <<_ACEOF
   3008 /* confdefs.h.  */
   3009 _ACEOF
   3010 cat confdefs.h >>conftest.$ac_ext
   3011 cat >>conftest.$ac_ext <<_ACEOF
   3012 /* end confdefs.h.  */
   3013 
   3014 int
   3015 main ()
   3016 {
   3017 
   3018   ;
   3019   return 0;
   3020 }
   3021 _ACEOF
   3022 rm -f conftest.$ac_objext
   3023 if { (ac_try="$ac_compile"
   3024 case "(($ac_try" in
   3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3026   *) ac_try_echo=$ac_try;;
   3027 esac
   3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3029   (eval "$ac_compile") 2>conftest.er1
   3030   ac_status=$?
   3031   grep -v '^ *+' conftest.er1 >conftest.err
   3032   rm -f conftest.er1
   3033   cat conftest.err >&5
   3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3035   (exit $ac_status); } &&
   3036 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3037   { (case "(($ac_try" in
   3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3039   *) ac_try_echo=$ac_try;;
   3040 esac
   3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3042   (eval "$ac_try") 2>&5
   3043   ac_status=$?
   3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3045   (exit $ac_status); }; } &&
   3046 	 { ac_try='test -s conftest.$ac_objext'
   3047   { (case "(($ac_try" in
   3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3049   *) ac_try_echo=$ac_try;;
   3050 esac
   3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3052   (eval "$ac_try") 2>&5
   3053   ac_status=$?
   3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3055   (exit $ac_status); }; }; then
   3056   ac_cv_prog_cxx_g=yes
   3057 else
   3058   echo "$as_me: failed program was:" >&5
   3059 sed 's/^/| /' conftest.$ac_ext >&5
   3060 
   3061 	CXXFLAGS=""
   3062       cat >conftest.$ac_ext <<_ACEOF
   3063 /* confdefs.h.  */
   3064 _ACEOF
   3065 cat confdefs.h >>conftest.$ac_ext
   3066 cat >>conftest.$ac_ext <<_ACEOF
   3067 /* end confdefs.h.  */
   3068 
   3069 int
   3070 main ()
   3071 {
   3072 
   3073   ;
   3074   return 0;
   3075 }
   3076 _ACEOF
   3077 rm -f conftest.$ac_objext
   3078 if { (ac_try="$ac_compile"
   3079 case "(($ac_try" in
   3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3081   *) ac_try_echo=$ac_try;;
   3082 esac
   3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3084   (eval "$ac_compile") 2>conftest.er1
   3085   ac_status=$?
   3086   grep -v '^ *+' conftest.er1 >conftest.err
   3087   rm -f conftest.er1
   3088   cat conftest.err >&5
   3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3090   (exit $ac_status); } &&
   3091 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3092   { (case "(($ac_try" in
   3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3094   *) ac_try_echo=$ac_try;;
   3095 esac
   3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3097   (eval "$ac_try") 2>&5
   3098   ac_status=$?
   3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3100   (exit $ac_status); }; } &&
   3101 	 { ac_try='test -s conftest.$ac_objext'
   3102   { (case "(($ac_try" in
   3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3104   *) ac_try_echo=$ac_try;;
   3105 esac
   3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3107   (eval "$ac_try") 2>&5
   3108   ac_status=$?
   3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3110   (exit $ac_status); }; }; then
   3111   :
   3112 else
   3113   echo "$as_me: failed program was:" >&5
   3114 sed 's/^/| /' conftest.$ac_ext >&5
   3115 
   3116 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3117 	 CXXFLAGS="-g"
   3118 	 cat >conftest.$ac_ext <<_ACEOF
   3119 /* confdefs.h.  */
   3120 _ACEOF
   3121 cat confdefs.h >>conftest.$ac_ext
   3122 cat >>conftest.$ac_ext <<_ACEOF
   3123 /* end confdefs.h.  */
   3124 
   3125 int
   3126 main ()
   3127 {
   3128 
   3129   ;
   3130   return 0;
   3131 }
   3132 _ACEOF
   3133 rm -f conftest.$ac_objext
   3134 if { (ac_try="$ac_compile"
   3135 case "(($ac_try" in
   3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3137   *) ac_try_echo=$ac_try;;
   3138 esac
   3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3140   (eval "$ac_compile") 2>conftest.er1
   3141   ac_status=$?
   3142   grep -v '^ *+' conftest.er1 >conftest.err
   3143   rm -f conftest.er1
   3144   cat conftest.err >&5
   3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3146   (exit $ac_status); } &&
   3147 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3148   { (case "(($ac_try" in
   3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3150   *) ac_try_echo=$ac_try;;
   3151 esac
   3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3153   (eval "$ac_try") 2>&5
   3154   ac_status=$?
   3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3156   (exit $ac_status); }; } &&
   3157 	 { ac_try='test -s conftest.$ac_objext'
   3158   { (case "(($ac_try" in
   3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3160   *) ac_try_echo=$ac_try;;
   3161 esac
   3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3163   (eval "$ac_try") 2>&5
   3164   ac_status=$?
   3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3166   (exit $ac_status); }; }; then
   3167   ac_cv_prog_cxx_g=yes
   3168 else
   3169   echo "$as_me: failed program was:" >&5
   3170 sed 's/^/| /' conftest.$ac_ext >&5
   3171 
   3172 
   3173 fi
   3174 
   3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3176 fi
   3177 
   3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3179 fi
   3180 
   3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3182    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3183 fi
   3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3185 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3186 if test "$ac_test_CXXFLAGS" = set; then
   3187   CXXFLAGS=$ac_save_CXXFLAGS
   3188 elif test $ac_cv_prog_cxx_g = yes; then
   3189   if test "$GXX" = yes; then
   3190     CXXFLAGS="-g -O2"
   3191   else
   3192     CXXFLAGS="-g"
   3193   fi
   3194 else
   3195   if test "$GXX" = yes; then
   3196     CXXFLAGS="-O2"
   3197   else
   3198     CXXFLAGS=
   3199   fi
   3200 fi
   3201 ac_ext=c
   3202 ac_cpp='$CPP $CPPFLAGS'
   3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3206 
   3207 ac_ext=c
   3208 ac_cpp='$CPP $CPPFLAGS'
   3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3212 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3214 # On Suns, sometimes $CPP names a directory.
   3215 if test -n "$CPP" && test -d "$CPP"; then
   3216   CPP=
   3217 fi
   3218 if test -z "$CPP"; then
   3219   if test "${ac_cv_prog_CPP+set}" = set; then
   3220   echo $ECHO_N "(cached) $ECHO_C" >&6
   3221 else
   3222       # Double quotes because CPP needs to be expanded
   3223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3224     do
   3225       ac_preproc_ok=false
   3226 for ac_c_preproc_warn_flag in '' yes
   3227 do
   3228   # Use a header file that comes with gcc, so configuring glibc
   3229   # with a fresh cross-compiler works.
   3230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3231   # <limits.h> exists even on freestanding compilers.
   3232   # On the NeXT, cc -E runs the code through the compiler's parser,
   3233   # not just through cpp. "Syntax error" is here to catch this case.
   3234   cat >conftest.$ac_ext <<_ACEOF
   3235 /* confdefs.h.  */
   3236 _ACEOF
   3237 cat confdefs.h >>conftest.$ac_ext
   3238 cat >>conftest.$ac_ext <<_ACEOF
   3239 /* end confdefs.h.  */
   3240 #ifdef __STDC__
   3241 # include <limits.h>
   3242 #else
   3243 # include <assert.h>
   3244 #endif
   3245 		     Syntax error
   3246 _ACEOF
   3247 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3248 case "(($ac_try" in
   3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3250   *) ac_try_echo=$ac_try;;
   3251 esac
   3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3254   ac_status=$?
   3255   grep -v '^ *+' conftest.er1 >conftest.err
   3256   rm -f conftest.er1
   3257   cat conftest.err >&5
   3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3259   (exit $ac_status); } >/dev/null; then
   3260   if test -s conftest.err; then
   3261     ac_cpp_err=$ac_c_preproc_warn_flag
   3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3263   else
   3264     ac_cpp_err=
   3265   fi
   3266 else
   3267   ac_cpp_err=yes
   3268 fi
   3269 if test -z "$ac_cpp_err"; then
   3270   :
   3271 else
   3272   echo "$as_me: failed program was:" >&5
   3273 sed 's/^/| /' conftest.$ac_ext >&5
   3274 
   3275   # Broken: fails on valid input.
   3276 continue
   3277 fi
   3278 
   3279 rm -f conftest.err conftest.$ac_ext
   3280 
   3281   # OK, works on sane cases.  Now check whether nonexistent headers
   3282   # can be detected and how.
   3283   cat >conftest.$ac_ext <<_ACEOF
   3284 /* confdefs.h.  */
   3285 _ACEOF
   3286 cat confdefs.h >>conftest.$ac_ext
   3287 cat >>conftest.$ac_ext <<_ACEOF
   3288 /* end confdefs.h.  */
   3289 #include <ac_nonexistent.h>
   3290 _ACEOF
   3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3292 case "(($ac_try" in
   3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3294   *) ac_try_echo=$ac_try;;
   3295 esac
   3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3298   ac_status=$?
   3299   grep -v '^ *+' conftest.er1 >conftest.err
   3300   rm -f conftest.er1
   3301   cat conftest.err >&5
   3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3303   (exit $ac_status); } >/dev/null; then
   3304   if test -s conftest.err; then
   3305     ac_cpp_err=$ac_c_preproc_warn_flag
   3306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3307   else
   3308     ac_cpp_err=
   3309   fi
   3310 else
   3311   ac_cpp_err=yes
   3312 fi
   3313 if test -z "$ac_cpp_err"; then
   3314   # Broken: success on invalid input.
   3315 continue
   3316 else
   3317   echo "$as_me: failed program was:" >&5
   3318 sed 's/^/| /' conftest.$ac_ext >&5
   3319 
   3320   # Passes both tests.
   3321 ac_preproc_ok=:
   3322 break
   3323 fi
   3324 
   3325 rm -f conftest.err conftest.$ac_ext
   3326 
   3327 done
   3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3329 rm -f conftest.err conftest.$ac_ext
   3330 if $ac_preproc_ok; then
   3331   break
   3332 fi
   3333 
   3334     done
   3335     ac_cv_prog_CPP=$CPP
   3336 
   3337 fi
   3338   CPP=$ac_cv_prog_CPP
   3339 else
   3340   ac_cv_prog_CPP=$CPP
   3341 fi
   3342 { echo "$as_me:$LINENO: result: $CPP" >&5
   3343 echo "${ECHO_T}$CPP" >&6; }
   3344 ac_preproc_ok=false
   3345 for ac_c_preproc_warn_flag in '' yes
   3346 do
   3347   # Use a header file that comes with gcc, so configuring glibc
   3348   # with a fresh cross-compiler works.
   3349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3350   # <limits.h> exists even on freestanding compilers.
   3351   # On the NeXT, cc -E runs the code through the compiler's parser,
   3352   # not just through cpp. "Syntax error" is here to catch this case.
   3353   cat >conftest.$ac_ext <<_ACEOF
   3354 /* confdefs.h.  */
   3355 _ACEOF
   3356 cat confdefs.h >>conftest.$ac_ext
   3357 cat >>conftest.$ac_ext <<_ACEOF
   3358 /* end confdefs.h.  */
   3359 #ifdef __STDC__
   3360 # include <limits.h>
   3361 #else
   3362 # include <assert.h>
   3363 #endif
   3364 		     Syntax error
   3365 _ACEOF
   3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3367 case "(($ac_try" in
   3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3369   *) ac_try_echo=$ac_try;;
   3370 esac
   3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3373   ac_status=$?
   3374   grep -v '^ *+' conftest.er1 >conftest.err
   3375   rm -f conftest.er1
   3376   cat conftest.err >&5
   3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3378   (exit $ac_status); } >/dev/null; then
   3379   if test -s conftest.err; then
   3380     ac_cpp_err=$ac_c_preproc_warn_flag
   3381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3382   else
   3383     ac_cpp_err=
   3384   fi
   3385 else
   3386   ac_cpp_err=yes
   3387 fi
   3388 if test -z "$ac_cpp_err"; then
   3389   :
   3390 else
   3391   echo "$as_me: failed program was:" >&5
   3392 sed 's/^/| /' conftest.$ac_ext >&5
   3393 
   3394   # Broken: fails on valid input.
   3395 continue
   3396 fi
   3397 
   3398 rm -f conftest.err conftest.$ac_ext
   3399 
   3400   # OK, works on sane cases.  Now check whether nonexistent headers
   3401   # can be detected and how.
   3402   cat >conftest.$ac_ext <<_ACEOF
   3403 /* confdefs.h.  */
   3404 _ACEOF
   3405 cat confdefs.h >>conftest.$ac_ext
   3406 cat >>conftest.$ac_ext <<_ACEOF
   3407 /* end confdefs.h.  */
   3408 #include <ac_nonexistent.h>
   3409 _ACEOF
   3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3411 case "(($ac_try" in
   3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3413   *) ac_try_echo=$ac_try;;
   3414 esac
   3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3417   ac_status=$?
   3418   grep -v '^ *+' conftest.er1 >conftest.err
   3419   rm -f conftest.er1
   3420   cat conftest.err >&5
   3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3422   (exit $ac_status); } >/dev/null; then
   3423   if test -s conftest.err; then
   3424     ac_cpp_err=$ac_c_preproc_warn_flag
   3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3426   else
   3427     ac_cpp_err=
   3428   fi
   3429 else
   3430   ac_cpp_err=yes
   3431 fi
   3432 if test -z "$ac_cpp_err"; then
   3433   # Broken: success on invalid input.
   3434 continue
   3435 else
   3436   echo "$as_me: failed program was:" >&5
   3437 sed 's/^/| /' conftest.$ac_ext >&5
   3438 
   3439   # Passes both tests.
   3440 ac_preproc_ok=:
   3441 break
   3442 fi
   3443 
   3444 rm -f conftest.err conftest.$ac_ext
   3445 
   3446 done
   3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3448 rm -f conftest.err conftest.$ac_ext
   3449 if $ac_preproc_ok; then
   3450   :
   3451 else
   3452   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3453 See \`config.log' for more details." >&5
   3454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3455 See \`config.log' for more details." >&2;}
   3456    { (exit 1); exit 1; }; }
   3457 fi
   3458 
   3459 ac_ext=c
   3460 ac_cpp='$CPP $CPPFLAGS'
   3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3464 
   3465 
   3466 
   3467 
   3468 if test -d ${srcdir}/projects/llvm-gcc ; then
   3469   subdirs="$subdirs projects/llvm-gcc"
   3470 
   3471 fi
   3472 
   3473 if test -d ${srcdir}/projects/test-suite ; then
   3474   subdirs="$subdirs projects/test-suite"
   3475 
   3476 fi
   3477 
   3478 if test -d ${srcdir}/projects/llvm-test ; then
   3479   subdirs="$subdirs projects/llvm-test"
   3480 
   3481 fi
   3482 
   3483 if test -d ${srcdir}/projects/poolalloc ; then
   3484   subdirs="$subdirs projects/poolalloc"
   3485 
   3486 fi
   3487 
   3488 if test -d ${srcdir}/projects/llvm-poolalloc ; then
   3489   subdirs="$subdirs projects/llvm-poolalloc"
   3490 
   3491 fi
   3492 
   3493 for i in `ls ${srcdir}/projects`
   3494 do
   3495   if test -d ${srcdir}/projects/${i} ; then
   3496     case ${i} in
   3497       sample)       subdirs="$subdirs projects/sample"
   3498     ;;
   3499       privbracket)  subdirs="$subdirs projects/privbracket"
   3500  ;;
   3501       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
   3502  ;;
   3503       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
   3504 ;;
   3505       llvm-java)    subdirs="$subdirs projects/llvm-java"
   3506  ;;
   3507       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
   3508    ;;
   3509       safecode)     subdirs="$subdirs projects/safecode"
   3510  ;;
   3511       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
   3512  ;;
   3513       compiler-rt)       ;;
   3514       llvm-gcc)       ;;
   3515       test-suite)     ;;
   3516       llvm-test)      ;;
   3517       poolalloc)      ;;
   3518       llvm-poolalloc) ;;
   3519       *)
   3520         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
   3521 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
   3522         ;;
   3523     esac
   3524   fi
   3525 done
   3526 
   3527 # Check whether --enable-polly was given.
   3528 if test "${enable_polly+set}" = set; then
   3529   enableval=$enable_polly;
   3530 else
   3531   enableval=default
   3532 fi
   3533 
   3534 case "$enableval" in
   3535   yes) ENABLE_POLLY=1
   3536  ;;
   3537   no)  ENABLE_POLLY=0
   3538  ;;
   3539   default) ENABLE_POLLY=1
   3540  ;;
   3541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
   3542 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
   3543    { (exit 1); exit 1; }; } ;;
   3544 esac
   3545 
   3546 
   3547 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
   3548   LLVM_HAS_POLLY=1
   3549 
   3550   subdirs="$subdirs tools/polly"
   3551 
   3552 fi
   3553 
   3554 
   3555 # Make sure we can run config.sub.
   3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3557   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3558 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3559    { (exit 1); exit 1; }; }
   3560 
   3561 { echo "$as_me:$LINENO: checking build system type" >&5
   3562 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3563 if test "${ac_cv_build+set}" = set; then
   3564   echo $ECHO_N "(cached) $ECHO_C" >&6
   3565 else
   3566   ac_build_alias=$build_alias
   3567 test "x$ac_build_alias" = x &&
   3568   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3569 test "x$ac_build_alias" = x &&
   3570   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3572    { (exit 1); exit 1; }; }
   3573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3574   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3576    { (exit 1); exit 1; }; }
   3577 
   3578 fi
   3579 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3580 echo "${ECHO_T}$ac_cv_build" >&6; }
   3581 case $ac_cv_build in
   3582 *-*-*) ;;
   3583 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3584 echo "$as_me: error: invalid value of canonical build" >&2;}
   3585    { (exit 1); exit 1; }; };;
   3586 esac
   3587 build=$ac_cv_build
   3588 ac_save_IFS=$IFS; IFS='-'
   3589 set x $ac_cv_build
   3590 shift
   3591 build_cpu=$1
   3592 build_vendor=$2
   3593 shift; shift
   3594 # Remember, the first character of IFS is used to create $*,
   3595 # except with old shells:
   3596 build_os=$*
   3597 IFS=$ac_save_IFS
   3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3599 
   3600 
   3601 { echo "$as_me:$LINENO: checking host system type" >&5
   3602 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3603 if test "${ac_cv_host+set}" = set; then
   3604   echo $ECHO_N "(cached) $ECHO_C" >&6
   3605 else
   3606   if test "x$host_alias" = x; then
   3607   ac_cv_host=$ac_cv_build
   3608 else
   3609   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3610     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3611 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3612    { (exit 1); exit 1; }; }
   3613 fi
   3614 
   3615 fi
   3616 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3617 echo "${ECHO_T}$ac_cv_host" >&6; }
   3618 case $ac_cv_host in
   3619 *-*-*) ;;
   3620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3621 echo "$as_me: error: invalid value of canonical host" >&2;}
   3622    { (exit 1); exit 1; }; };;
   3623 esac
   3624 host=$ac_cv_host
   3625 ac_save_IFS=$IFS; IFS='-'
   3626 set x $ac_cv_host
   3627 shift
   3628 host_cpu=$1
   3629 host_vendor=$2
   3630 shift; shift
   3631 # Remember, the first character of IFS is used to create $*,
   3632 # except with old shells:
   3633 host_os=$*
   3634 IFS=$ac_save_IFS
   3635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3636 
   3637 
   3638 { echo "$as_me:$LINENO: checking target system type" >&5
   3639 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   3640 if test "${ac_cv_target+set}" = set; then
   3641   echo $ECHO_N "(cached) $ECHO_C" >&6
   3642 else
   3643   if test "x$target_alias" = x; then
   3644   ac_cv_target=$ac_cv_host
   3645 else
   3646   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3647     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   3648 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   3649    { (exit 1); exit 1; }; }
   3650 fi
   3651 
   3652 fi
   3653 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   3654 echo "${ECHO_T}$ac_cv_target" >&6; }
   3655 case $ac_cv_target in
   3656 *-*-*) ;;
   3657 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   3658 echo "$as_me: error: invalid value of canonical target" >&2;}
   3659    { (exit 1); exit 1; }; };;
   3660 esac
   3661 target=$ac_cv_target
   3662 ac_save_IFS=$IFS; IFS='-'
   3663 set x $ac_cv_target
   3664 shift
   3665 target_cpu=$1
   3666 target_vendor=$2
   3667 shift; shift
   3668 # Remember, the first character of IFS is used to create $*,
   3669 # except with old shells:
   3670 target_os=$*
   3671 IFS=$ac_save_IFS
   3672 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3673 
   3674 
   3675 # The aliases save the names the user supplied, while $host etc.
   3676 # will get canonicalized.
   3677 test -n "$target_alias" &&
   3678   test "$program_prefix$program_suffix$program_transform_name" = \
   3679     NONENONEs,x,x, &&
   3680   program_prefix=${target_alias}-
   3681 
   3682 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
   3683 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
   3684 if test "${llvm_cv_os_type+set}" = set; then
   3685   echo $ECHO_N "(cached) $ECHO_C" >&6
   3686 else
   3687   case $host in
   3688   *-*-aix*)
   3689     llvm_cv_link_all_option="-Wl,--whole-archive"
   3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3691     llvm_cv_os_type="AIX"
   3692     llvm_cv_platform_type="Unix" ;;
   3693   *-*-irix*)
   3694     llvm_cv_link_all_option="-Wl,--whole-archive"
   3695     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3696     llvm_cv_os_type="IRIX"
   3697     llvm_cv_platform_type="Unix" ;;
   3698   *-*-cygwin*)
   3699     llvm_cv_link_all_option="-Wl,--whole-archive"
   3700     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3701     llvm_cv_os_type="Cygwin"
   3702     llvm_cv_platform_type="Unix" ;;
   3703   *-*-darwin*)
   3704     llvm_cv_link_all_option="-Wl,-all_load"
   3705     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3706     llvm_cv_os_type="Darwin"
   3707     llvm_cv_platform_type="Unix" ;;
   3708   *-*-minix*)
   3709     llvm_cv_link_all_option="-Wl,-all_load"
   3710     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3711     llvm_cv_os_type="Minix"
   3712     llvm_cv_platform_type="Unix" ;;
   3713   *-*-freebsd* | *-*-kfreebsd-gnu)
   3714     llvm_cv_link_all_option="-Wl,--whole-archive"
   3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3716     llvm_cv_os_type="FreeBSD"
   3717     llvm_cv_platform_type="Unix" ;;
   3718   *-*-openbsd*)
   3719     llvm_cv_link_all_option="-Wl,--whole-archive"
   3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3721     llvm_cv_os_type="OpenBSD"
   3722     llvm_cv_platform_type="Unix" ;;
   3723   *-*-netbsd*)
   3724     llvm_cv_link_all_option="-Wl,--whole-archive"
   3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3726     llvm_cv_os_type="NetBSD"
   3727     llvm_cv_platform_type="Unix" ;;
   3728   *-*-dragonfly*)
   3729     llvm_cv_link_all_option="-Wl,--whole-archive"
   3730     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3731     llvm_cv_os_type="DragonFly"
   3732     llvm_cv_platform_type="Unix" ;;
   3733   *-*-hpux*)
   3734     llvm_cv_link_all_option="-Wl,--whole-archive"
   3735     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3736     llvm_cv_os_type="HP-UX"
   3737     llvm_cv_platform_type="Unix" ;;
   3738   *-*-interix*)
   3739     llvm_cv_link_all_option="-Wl,--whole-archive"
   3740     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3741     llvm_cv_os_type="Interix"
   3742     llvm_cv_platform_type="Unix" ;;
   3743   *-*-linux*)
   3744     llvm_cv_link_all_option="-Wl,--whole-archive"
   3745     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3746     llvm_cv_os_type="Linux"
   3747     llvm_cv_platform_type="Unix" ;;
   3748   *-*-gnu*)
   3749     llvm_cv_link_all_option="-Wl,--whole-archive"
   3750     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3751     llvm_cv_os_type="GNU"
   3752     llvm_cv_platform_type="Unix" ;;
   3753   *-*-solaris*)
   3754     llvm_cv_link_all_option="-Wl,-z,allextract"
   3755     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
   3756     llvm_cv_os_type="SunOS"
   3757     llvm_cv_platform_type="Unix" ;;
   3758   *-*-auroraux*)
   3759     llvm_cv_link_all_option="-Wl,-z,allextract"
   3760     llvm_cv_link_all_option="-Wl,-z,defaultextract"
   3761     llvm_cv_os_type="AuroraUX"
   3762     llvm_cv_platform_type="Unix" ;;
   3763   *-*-win32*)
   3764     llvm_cv_link_all_option="-Wl,--whole-archive"
   3765     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3766     llvm_cv_os_type="Win32"
   3767     llvm_cv_platform_type="Win32" ;;
   3768   *-*-mingw*)
   3769     llvm_cv_link_all_option="-Wl,--whole-archive"
   3770     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3771     llvm_cv_os_type="MingW"
   3772     llvm_cv_platform_type="Win32" ;;
   3773   *-*-haiku*)
   3774     llvm_cv_link_all_option="-Wl,--whole-archive"
   3775     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3776     llvm_cv_os_type="Haiku"
   3777     llvm_cv_platform_type="Unix" ;;
   3778   *-unknown-eabi*)
   3779     llvm_cv_link_all_option="-Wl,--whole-archive"
   3780     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3781     llvm_cv_os_type="Freestanding"
   3782     llvm_cv_platform_type="Unix" ;;
   3783   *-unknown-elf*)
   3784     llvm_cv_link_all_option="-Wl,--whole-archive"
   3785     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3786     llvm_cv_os_type="Freestanding"
   3787     llvm_cv_platform_type="Unix" ;;
   3788   *)
   3789     llvm_cv_link_all_option=""
   3790     llvm_cv_no_link_all_option=""
   3791     llvm_cv_os_type="Unknown"
   3792     llvm_cv_platform_type="Unknown" ;;
   3793 esac
   3794 fi
   3795 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
   3796 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
   3797 
   3798 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
   3799 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
   3800 if test "${llvm_cv_target_os_type+set}" = set; then
   3801   echo $ECHO_N "(cached) $ECHO_C" >&6
   3802 else
   3803   case $target in
   3804   *-*-aix*)
   3805     llvm_cv_target_os_type="AIX" ;;
   3806   *-*-irix*)
   3807     llvm_cv_target_os_type="IRIX" ;;
   3808   *-*-cygwin*)
   3809     llvm_cv_target_os_type="Cygwin" ;;
   3810   *-*-darwin*)
   3811     llvm_cv_target_os_type="Darwin" ;;
   3812   *-*-minix*)
   3813     llvm_cv_target_os_type="Minix" ;;
   3814   *-*-freebsd* | *-*-kfreebsd-gnu)
   3815     llvm_cv_target_os_type="FreeBSD" ;;
   3816   *-*-openbsd*)
   3817     llvm_cv_target_os_type="OpenBSD" ;;
   3818   *-*-netbsd*)
   3819     llvm_cv_target_os_type="NetBSD" ;;
   3820   *-*-dragonfly*)
   3821     llvm_cv_target_os_type="DragonFly" ;;
   3822   *-*-hpux*)
   3823     llvm_cv_target_os_type="HP-UX" ;;
   3824   *-*-interix*)
   3825     llvm_cv_target_os_type="Interix" ;;
   3826   *-*-linux*)
   3827     llvm_cv_target_os_type="Linux" ;;
   3828   *-*-gnu*)
   3829     llvm_cv_target_os_type="GNU" ;;
   3830   *-*-solaris*)
   3831     llvm_cv_target_os_type="SunOS" ;;
   3832   *-*-auroraux*)
   3833     llvm_cv_target_os_type="AuroraUX" ;;
   3834   *-*-win32*)
   3835     llvm_cv_target_os_type="Win32" ;;
   3836   *-*-mingw*)
   3837     llvm_cv_target_os_type="MingW" ;;
   3838   *-*-haiku*)
   3839     llvm_cv_target_os_type="Haiku" ;;
   3840   *-*-rtems*)
   3841     llvm_cv_target_os_type="RTEMS" ;;
   3842   *-*-nacl*)
   3843     llvm_cv_target_os_type="NativeClient" ;;
   3844   *-unknown-eabi*)
   3845     llvm_cv_target_os_type="Freestanding" ;;
   3846   *)
   3847     llvm_cv_target_os_type="Unknown" ;;
   3848 esac
   3849 fi
   3850 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
   3851 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
   3852 
   3853 if test "$llvm_cv_os_type" = "Unknown" ; then
   3854   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
   3855 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
   3856    { (exit 1); exit 1; }; }
   3857 fi
   3858 
   3859 OS=$llvm_cv_os_type
   3860 
   3861 HOST_OS=$llvm_cv_os_type
   3862 
   3863 TARGET_OS=$llvm_cv_target_os_type
   3864 
   3865 
   3866 LINKALL=$llvm_cv_link_all_option
   3867 
   3868 NOLINKALL=$llvm_cv_no_link_all_option
   3869 
   3870 
   3871 case $llvm_cv_platform_type in
   3872   Unix)
   3873 
   3874 cat >>confdefs.h <<\_ACEOF
   3875 #define LLVM_ON_UNIX 1
   3876 _ACEOF
   3877 
   3878     LLVM_ON_UNIX=1
   3879 
   3880     LLVM_ON_WIN32=0
   3881 
   3882     ;;
   3883   Win32)
   3884 
   3885 cat >>confdefs.h <<\_ACEOF
   3886 #define LLVM_ON_WIN32 1
   3887 _ACEOF
   3888 
   3889     LLVM_ON_UNIX=0
   3890 
   3891     LLVM_ON_WIN32=1
   3892 
   3893     ;;
   3894 esac
   3895 
   3896 { echo "$as_me:$LINENO: checking target architecture" >&5
   3897 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
   3898 if test "${llvm_cv_target_arch+set}" = set; then
   3899   echo $ECHO_N "(cached) $ECHO_C" >&6
   3900 else
   3901   case $target in
   3902   i?86-*)                 llvm_cv_target_arch="x86" ;;
   3903   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
   3904   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
   3905   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
   3906   arm*-*)                 llvm_cv_target_arch="ARM" ;;
   3907   mips-*)                 llvm_cv_target_arch="Mips" ;;
   3908   mipsel-*)               llvm_cv_target_arch="Mips" ;;
   3909   xcore-*)                llvm_cv_target_arch="XCore" ;;
   3910   msp430-*)               llvm_cv_target_arch="MSP430" ;;
   3911   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
   3912   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
   3913   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
   3914   *)                      llvm_cv_target_arch="Unknown" ;;
   3915 esac
   3916 fi
   3917 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
   3918 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
   3919 
   3920 if test "$llvm_cv_target_arch" = "Unknown" ; then
   3921   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
   3922 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
   3923 fi
   3924 
   3925 case "$llvm_cv_target_arch" in
   3926     x86)     LLVM_NATIVE_ARCH="X86" ;;
   3927     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
   3928     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
   3929 esac
   3930 
   3931 ARCH=$llvm_cv_target_arch
   3932 
   3933 
   3934 case $host in
   3935   i?86-*)                 host_arch="x86" ;;
   3936   amd64-* | x86_64-*)     host_arch="x86_64" ;;
   3937   sparc*-*)               host_arch="Sparc" ;;
   3938   powerpc*-*)             host_arch="PowerPC" ;;
   3939   arm*-*)                 host_arch="ARM" ;;
   3940   mips-*)                 host_arch="Mips" ;;
   3941   mipsel-*)               host_arch="Mips" ;;
   3942   xcore-*)                host_arch="XCore" ;;
   3943   msp430-*)               host_arch="MSP430" ;;
   3944   hexagon-*)              host_arch="Hexagon" ;;
   3945   mblaze-*)               host_arch="MBlaze" ;;
   3946   *)                      host_arch="Unknown" ;;
   3947 esac
   3948 
   3949 if test "$host_arch" = "Unknown" ; then
   3950   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
   3951 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
   3952 fi
   3953 
   3954 HOST_ARCH=$host_arch
   3955 
   3956 
   3957 
   3958 
   3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3961 if test "${ac_cv_path_GREP+set}" = set; then
   3962   echo $ECHO_N "(cached) $ECHO_C" >&6
   3963 else
   3964   # Extract the first word of "grep ggrep" to use in msg output
   3965 if test -z "$GREP"; then
   3966 set dummy grep ggrep; ac_prog_name=$2
   3967 if test "${ac_cv_path_GREP+set}" = set; then
   3968   echo $ECHO_N "(cached) $ECHO_C" >&6
   3969 else
   3970   ac_path_GREP_found=false
   3971 # Loop through the user's path and test for each of PROGNAME-LIST
   3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3974 do
   3975   IFS=$as_save_IFS
   3976   test -z "$as_dir" && as_dir=.
   3977   for ac_prog in grep ggrep; do
   3978   for ac_exec_ext in '' $ac_executable_extensions; do
   3979     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3980     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
   3981     # Check for GNU ac_path_GREP and select it if it is found.
   3982   # Check for GNU $ac_path_GREP
   3983 case `"$ac_path_GREP" --version 2>&1` in
   3984 *GNU*)
   3985   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3986 *)
   3987   ac_count=0
   3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3989   while :
   3990   do
   3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3992     mv "conftest.tmp" "conftest.in"
   3993     cp "conftest.in" "conftest.nl"
   3994     echo 'GREP' >> "conftest.nl"
   3995     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3997     ac_count=`expr $ac_count + 1`
   3998     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3999       # Best one so far, save it but keep looking for a better one
   4000       ac_cv_path_GREP="$ac_path_GREP"
   4001       ac_path_GREP_max=$ac_count
   4002     fi
   4003     # 10*(2^10) chars as input seems more than enough
   4004     test $ac_count -gt 10 && break
   4005   done
   4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4007 esac
   4008 
   4009 
   4010     $ac_path_GREP_found && break 3
   4011   done
   4012 done
   4013 
   4014 done
   4015 IFS=$as_save_IFS
   4016 
   4017 
   4018 fi
   4019 
   4020 GREP="$ac_cv_path_GREP"
   4021 if test -z "$GREP"; then
   4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4024    { (exit 1); exit 1; }; }
   4025 fi
   4026 
   4027 else
   4028   ac_cv_path_GREP=$GREP
   4029 fi
   4030 
   4031 
   4032 fi
   4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   4035  GREP="$ac_cv_path_GREP"
   4036 
   4037 
   4038 { echo "$as_me:$LINENO: checking for egrep" >&5
   4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   4040 if test "${ac_cv_path_EGREP+set}" = set; then
   4041   echo $ECHO_N "(cached) $ECHO_C" >&6
   4042 else
   4043   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4044    then ac_cv_path_EGREP="$GREP -E"
   4045    else
   4046      # Extract the first word of "egrep" to use in msg output
   4047 if test -z "$EGREP"; then
   4048 set dummy egrep; ac_prog_name=$2
   4049 if test "${ac_cv_path_EGREP+set}" = set; then
   4050   echo $ECHO_N "(cached) $ECHO_C" >&6
   4051 else
   4052   ac_path_EGREP_found=false
   4053 # Loop through the user's path and test for each of PROGNAME-LIST
   4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4056 do
   4057   IFS=$as_save_IFS
   4058   test -z "$as_dir" && as_dir=.
   4059   for ac_prog in egrep; do
   4060   for ac_exec_ext in '' $ac_executable_extensions; do
   4061     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4062     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
   4063     # Check for GNU ac_path_EGREP and select it if it is found.
   4064   # Check for GNU $ac_path_EGREP
   4065 case `"$ac_path_EGREP" --version 2>&1` in
   4066 *GNU*)
   4067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4068 *)
   4069   ac_count=0
   4070   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   4071   while :
   4072   do
   4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4074     mv "conftest.tmp" "conftest.in"
   4075     cp "conftest.in" "conftest.nl"
   4076     echo 'EGREP' >> "conftest.nl"
   4077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4079     ac_count=`expr $ac_count + 1`
   4080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4081       # Best one so far, save it but keep looking for a better one
   4082       ac_cv_path_EGREP="$ac_path_EGREP"
   4083       ac_path_EGREP_max=$ac_count
   4084     fi
   4085     # 10*(2^10) chars as input seems more than enough
   4086     test $ac_count -gt 10 && break
   4087   done
   4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4089 esac
   4090 
   4091 
   4092     $ac_path_EGREP_found && break 3
   4093   done
   4094 done
   4095 
   4096 done
   4097 IFS=$as_save_IFS
   4098 
   4099 
   4100 fi
   4101 
   4102 EGREP="$ac_cv_path_EGREP"
   4103 if test -z "$EGREP"; then
   4104   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4106    { (exit 1); exit 1; }; }
   4107 fi
   4108 
   4109 else
   4110   ac_cv_path_EGREP=$EGREP
   4111 fi
   4112 
   4113 
   4114    fi
   4115 fi
   4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   4118  EGREP="$ac_cv_path_EGREP"
   4119 
   4120 
   4121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4123 if test "${ac_cv_header_stdc+set}" = set; then
   4124   echo $ECHO_N "(cached) $ECHO_C" >&6
   4125 else
   4126   cat >conftest.$ac_ext <<_ACEOF
   4127 /* confdefs.h.  */
   4128 _ACEOF
   4129 cat confdefs.h >>conftest.$ac_ext
   4130 cat >>conftest.$ac_ext <<_ACEOF
   4131 /* end confdefs.h.  */
   4132 #include <stdlib.h>
   4133 #include <stdarg.h>
   4134 #include <string.h>
   4135 #include <float.h>
   4136 
   4137 int
   4138 main ()
   4139 {
   4140 
   4141   ;
   4142   return 0;
   4143 }
   4144 _ACEOF
   4145 rm -f conftest.$ac_objext
   4146 if { (ac_try="$ac_compile"
   4147 case "(($ac_try" in
   4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4149   *) ac_try_echo=$ac_try;;
   4150 esac
   4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4152   (eval "$ac_compile") 2>conftest.er1
   4153   ac_status=$?
   4154   grep -v '^ *+' conftest.er1 >conftest.err
   4155   rm -f conftest.er1
   4156   cat conftest.err >&5
   4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4158   (exit $ac_status); } &&
   4159 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4160   { (case "(($ac_try" in
   4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4162   *) ac_try_echo=$ac_try;;
   4163 esac
   4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4165   (eval "$ac_try") 2>&5
   4166   ac_status=$?
   4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4168   (exit $ac_status); }; } &&
   4169 	 { ac_try='test -s conftest.$ac_objext'
   4170   { (case "(($ac_try" in
   4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4172   *) ac_try_echo=$ac_try;;
   4173 esac
   4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4175   (eval "$ac_try") 2>&5
   4176   ac_status=$?
   4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4178   (exit $ac_status); }; }; then
   4179   ac_cv_header_stdc=yes
   4180 else
   4181   echo "$as_me: failed program was:" >&5
   4182 sed 's/^/| /' conftest.$ac_ext >&5
   4183 
   4184 	ac_cv_header_stdc=no
   4185 fi
   4186 
   4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4188 
   4189 if test $ac_cv_header_stdc = yes; then
   4190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4191   cat >conftest.$ac_ext <<_ACEOF
   4192 /* confdefs.h.  */
   4193 _ACEOF
   4194 cat confdefs.h >>conftest.$ac_ext
   4195 cat >>conftest.$ac_ext <<_ACEOF
   4196 /* end confdefs.h.  */
   4197 #include <string.h>
   4198 
   4199 _ACEOF
   4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4201   $EGREP "memchr" >/dev/null 2>&1; then
   4202   :
   4203 else
   4204   ac_cv_header_stdc=no
   4205 fi
   4206 rm -f conftest*
   4207 
   4208 fi
   4209 
   4210 if test $ac_cv_header_stdc = yes; then
   4211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4212   cat >conftest.$ac_ext <<_ACEOF
   4213 /* confdefs.h.  */
   4214 _ACEOF
   4215 cat confdefs.h >>conftest.$ac_ext
   4216 cat >>conftest.$ac_ext <<_ACEOF
   4217 /* end confdefs.h.  */
   4218 #include <stdlib.h>
   4219 
   4220 _ACEOF
   4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4222   $EGREP "free" >/dev/null 2>&1; then
   4223   :
   4224 else
   4225   ac_cv_header_stdc=no
   4226 fi
   4227 rm -f conftest*
   4228 
   4229 fi
   4230 
   4231 if test $ac_cv_header_stdc = yes; then
   4232   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4233   if test "$cross_compiling" = yes; then
   4234   :
   4235 else
   4236   cat >conftest.$ac_ext <<_ACEOF
   4237 /* confdefs.h.  */
   4238 _ACEOF
   4239 cat confdefs.h >>conftest.$ac_ext
   4240 cat >>conftest.$ac_ext <<_ACEOF
   4241 /* end confdefs.h.  */
   4242 #include <ctype.h>
   4243 #include <stdlib.h>
   4244 #if ((' ' & 0x0FF) == 0x020)
   4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4247 #else
   4248 # define ISLOWER(c) \
   4249 		   (('a' <= (c) && (c) <= 'i') \
   4250 		     || ('j' <= (c) && (c) <= 'r') \
   4251 		     || ('s' <= (c) && (c) <= 'z'))
   4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4253 #endif
   4254 
   4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4256 int
   4257 main ()
   4258 {
   4259   int i;
   4260   for (i = 0; i < 256; i++)
   4261     if (XOR (islower (i), ISLOWER (i))
   4262 	|| toupper (i) != TOUPPER (i))
   4263       return 2;
   4264   return 0;
   4265 }
   4266 _ACEOF
   4267 rm -f conftest$ac_exeext
   4268 if { (ac_try="$ac_link"
   4269 case "(($ac_try" in
   4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4271   *) ac_try_echo=$ac_try;;
   4272 esac
   4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4274   (eval "$ac_link") 2>&5
   4275   ac_status=$?
   4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4278   { (case "(($ac_try" in
   4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4280   *) ac_try_echo=$ac_try;;
   4281 esac
   4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4283   (eval "$ac_try") 2>&5
   4284   ac_status=$?
   4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4286   (exit $ac_status); }; }; then
   4287   :
   4288 else
   4289   echo "$as_me: program exited with status $ac_status" >&5
   4290 echo "$as_me: failed program was:" >&5
   4291 sed 's/^/| /' conftest.$ac_ext >&5
   4292 
   4293 ( exit $ac_status )
   4294 ac_cv_header_stdc=no
   4295 fi
   4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4297 fi
   4298 
   4299 
   4300 fi
   4301 fi
   4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4304 if test $ac_cv_header_stdc = yes; then
   4305 
   4306 cat >>confdefs.h <<\_ACEOF
   4307 #define STDC_HEADERS 1
   4308 _ACEOF
   4309 
   4310 fi
   4311 
   4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4313 
   4314 
   4315 
   4316 
   4317 
   4318 
   4319 
   4320 
   4321 
   4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4323 		  inttypes.h stdint.h unistd.h
   4324 do
   4325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4329   echo $ECHO_N "(cached) $ECHO_C" >&6
   4330 else
   4331   cat >conftest.$ac_ext <<_ACEOF
   4332 /* confdefs.h.  */
   4333 _ACEOF
   4334 cat confdefs.h >>conftest.$ac_ext
   4335 cat >>conftest.$ac_ext <<_ACEOF
   4336 /* end confdefs.h.  */
   4337 $ac_includes_default
   4338 
   4339 #include <$ac_header>
   4340 _ACEOF
   4341 rm -f conftest.$ac_objext
   4342 if { (ac_try="$ac_compile"
   4343 case "(($ac_try" in
   4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4345   *) ac_try_echo=$ac_try;;
   4346 esac
   4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4348   (eval "$ac_compile") 2>conftest.er1
   4349   ac_status=$?
   4350   grep -v '^ *+' conftest.er1 >conftest.err
   4351   rm -f conftest.er1
   4352   cat conftest.err >&5
   4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4354   (exit $ac_status); } &&
   4355 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4356   { (case "(($ac_try" in
   4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4358   *) ac_try_echo=$ac_try;;
   4359 esac
   4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4361   (eval "$ac_try") 2>&5
   4362   ac_status=$?
   4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4364   (exit $ac_status); }; } &&
   4365 	 { ac_try='test -s conftest.$ac_objext'
   4366   { (case "(($ac_try" in
   4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4368   *) ac_try_echo=$ac_try;;
   4369 esac
   4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4371   (eval "$ac_try") 2>&5
   4372   ac_status=$?
   4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4374   (exit $ac_status); }; }; then
   4375   eval "$as_ac_Header=yes"
   4376 else
   4377   echo "$as_me: failed program was:" >&5
   4378 sed 's/^/| /' conftest.$ac_ext >&5
   4379 
   4380 	eval "$as_ac_Header=no"
   4381 fi
   4382 
   4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4384 fi
   4385 ac_res=`eval echo '${'$as_ac_Header'}'`
   4386 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4387 echo "${ECHO_T}$ac_res" >&6; }
   4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4389   cat >>confdefs.h <<_ACEOF
   4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4391 _ACEOF
   4392 
   4393 fi
   4394 
   4395 done
   4396 
   4397 
   4398 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   4399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   4400 if test "${ac_cv_c_bigendian+set}" = set; then
   4401   echo $ECHO_N "(cached) $ECHO_C" >&6
   4402 else
   4403   # See if sys/param.h defines the BYTE_ORDER macro.
   4404 cat >conftest.$ac_ext <<_ACEOF
   4405 /* confdefs.h.  */
   4406 _ACEOF
   4407 cat confdefs.h >>conftest.$ac_ext
   4408 cat >>conftest.$ac_ext <<_ACEOF
   4409 /* end confdefs.h.  */
   4410 #include <sys/types.h>
   4411 #include <sys/param.h>
   4412 
   4413 int
   4414 main ()
   4415 {
   4416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
   4417  bogus endian macros
   4418 #endif
   4419 
   4420   ;
   4421   return 0;
   4422 }
   4423 _ACEOF
   4424 rm -f conftest.$ac_objext
   4425 if { (ac_try="$ac_compile"
   4426 case "(($ac_try" in
   4427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4428   *) ac_try_echo=$ac_try;;
   4429 esac
   4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4431   (eval "$ac_compile") 2>conftest.er1
   4432   ac_status=$?
   4433   grep -v '^ *+' conftest.er1 >conftest.err
   4434   rm -f conftest.er1
   4435   cat conftest.err >&5
   4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4437   (exit $ac_status); } &&
   4438 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4439   { (case "(($ac_try" in
   4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4441   *) ac_try_echo=$ac_try;;
   4442 esac
   4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4444   (eval "$ac_try") 2>&5
   4445   ac_status=$?
   4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4447   (exit $ac_status); }; } &&
   4448 	 { ac_try='test -s conftest.$ac_objext'
   4449   { (case "(($ac_try" in
   4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4451   *) ac_try_echo=$ac_try;;
   4452 esac
   4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4454   (eval "$ac_try") 2>&5
   4455   ac_status=$?
   4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4457   (exit $ac_status); }; }; then
   4458   # It does; now see whether it defined to BIG_ENDIAN or not.
   4459 cat >conftest.$ac_ext <<_ACEOF
   4460 /* confdefs.h.  */
   4461 _ACEOF
   4462 cat confdefs.h >>conftest.$ac_ext
   4463 cat >>conftest.$ac_ext <<_ACEOF
   4464 /* end confdefs.h.  */
   4465 #include <sys/types.h>
   4466 #include <sys/param.h>
   4467 
   4468 int
   4469 main ()
   4470 {
   4471 #if BYTE_ORDER != BIG_ENDIAN
   4472  not big endian
   4473 #endif
   4474 
   4475   ;
   4476   return 0;
   4477 }
   4478 _ACEOF
   4479 rm -f conftest.$ac_objext
   4480 if { (ac_try="$ac_compile"
   4481 case "(($ac_try" in
   4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4483   *) ac_try_echo=$ac_try;;
   4484 esac
   4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4486   (eval "$ac_compile") 2>conftest.er1
   4487   ac_status=$?
   4488   grep -v '^ *+' conftest.er1 >conftest.err
   4489   rm -f conftest.er1
   4490   cat conftest.err >&5
   4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4492   (exit $ac_status); } &&
   4493 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4494   { (case "(($ac_try" in
   4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4496   *) ac_try_echo=$ac_try;;
   4497 esac
   4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4499   (eval "$ac_try") 2>&5
   4500   ac_status=$?
   4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4502   (exit $ac_status); }; } &&
   4503 	 { ac_try='test -s conftest.$ac_objext'
   4504   { (case "(($ac_try" in
   4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4506   *) ac_try_echo=$ac_try;;
   4507 esac
   4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4509   (eval "$ac_try") 2>&5
   4510   ac_status=$?
   4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4512   (exit $ac_status); }; }; then
   4513   ac_cv_c_bigendian=yes
   4514 else
   4515   echo "$as_me: failed program was:" >&5
   4516 sed 's/^/| /' conftest.$ac_ext >&5
   4517 
   4518 	ac_cv_c_bigendian=no
   4519 fi
   4520 
   4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4522 else
   4523   echo "$as_me: failed program was:" >&5
   4524 sed 's/^/| /' conftest.$ac_ext >&5
   4525 
   4526 	# It does not; compile a test program.
   4527 if test "$cross_compiling" = yes; then
   4528   # try to guess the endianness by grepping values into an object file
   4529   ac_cv_c_bigendian=unknown
   4530   cat >conftest.$ac_ext <<_ACEOF
   4531 /* confdefs.h.  */
   4532 _ACEOF
   4533 cat confdefs.h >>conftest.$ac_ext
   4534 cat >>conftest.$ac_ext <<_ACEOF
   4535 /* end confdefs.h.  */
   4536 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4537 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4538 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   4539 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4540 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4541 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   4542 int
   4543 main ()
   4544 {
   4545  _ascii (); _ebcdic ();
   4546   ;
   4547   return 0;
   4548 }
   4549 _ACEOF
   4550 rm -f conftest.$ac_objext
   4551 if { (ac_try="$ac_compile"
   4552 case "(($ac_try" in
   4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4554   *) ac_try_echo=$ac_try;;
   4555 esac
   4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4557   (eval "$ac_compile") 2>conftest.er1
   4558   ac_status=$?
   4559   grep -v '^ *+' conftest.er1 >conftest.err
   4560   rm -f conftest.er1
   4561   cat conftest.err >&5
   4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4563   (exit $ac_status); } &&
   4564 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4565   { (case "(($ac_try" in
   4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4567   *) ac_try_echo=$ac_try;;
   4568 esac
   4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4570   (eval "$ac_try") 2>&5
   4571   ac_status=$?
   4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4573   (exit $ac_status); }; } &&
   4574 	 { ac_try='test -s conftest.$ac_objext'
   4575   { (case "(($ac_try" in
   4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4577   *) ac_try_echo=$ac_try;;
   4578 esac
   4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4580   (eval "$ac_try") 2>&5
   4581   ac_status=$?
   4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4583   (exit $ac_status); }; }; then
   4584   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   4585   ac_cv_c_bigendian=yes
   4586 fi
   4587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4588   if test "$ac_cv_c_bigendian" = unknown; then
   4589     ac_cv_c_bigendian=no
   4590   else
   4591     # finding both strings is unlikely to happen, but who knows?
   4592     ac_cv_c_bigendian=unknown
   4593   fi
   4594 fi
   4595 else
   4596   echo "$as_me: failed program was:" >&5
   4597 sed 's/^/| /' conftest.$ac_ext >&5
   4598 
   4599 
   4600 fi
   4601 
   4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4603 else
   4604   cat >conftest.$ac_ext <<_ACEOF
   4605 /* confdefs.h.  */
   4606 _ACEOF
   4607 cat confdefs.h >>conftest.$ac_ext
   4608 cat >>conftest.$ac_ext <<_ACEOF
   4609 /* end confdefs.h.  */
   4610 $ac_includes_default
   4611 int
   4612 main ()
   4613 {
   4614 
   4615   /* Are we little or big endian?  From Harbison&Steele.  */
   4616   union
   4617   {
   4618     long int l;
   4619     char c[sizeof (long int)];
   4620   } u;
   4621   u.l = 1;
   4622   return u.c[sizeof (long int) - 1] == 1;
   4623 
   4624   ;
   4625   return 0;
   4626 }
   4627 _ACEOF
   4628 rm -f conftest$ac_exeext
   4629 if { (ac_try="$ac_link"
   4630 case "(($ac_try" in
   4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4632   *) ac_try_echo=$ac_try;;
   4633 esac
   4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4635   (eval "$ac_link") 2>&5
   4636   ac_status=$?
   4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4639   { (case "(($ac_try" in
   4640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4641   *) ac_try_echo=$ac_try;;
   4642 esac
   4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4644   (eval "$ac_try") 2>&5
   4645   ac_status=$?
   4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4647   (exit $ac_status); }; }; then
   4648   ac_cv_c_bigendian=no
   4649 else
   4650   echo "$as_me: program exited with status $ac_status" >&5
   4651 echo "$as_me: failed program was:" >&5
   4652 sed 's/^/| /' conftest.$ac_ext >&5
   4653 
   4654 ( exit $ac_status )
   4655 ac_cv_c_bigendian=yes
   4656 fi
   4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4658 fi
   4659 
   4660 
   4661 fi
   4662 
   4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4664 fi
   4665 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   4666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   4667 case $ac_cv_c_bigendian in
   4668   yes)
   4669     ENDIAN=big
   4670  ;;
   4671   no)
   4672     ENDIAN=little
   4673  ;;
   4674   *)
   4675     { { echo "$as_me:$LINENO: error: unknown endianness
   4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   4677 echo "$as_me: error: unknown endianness
   4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   4679    { (exit 1); exit 1; }; } ;;
   4680 esac
   4681 
   4682 
   4683 if test "$cross_compiling" = yes; then
   4684   LLVM_CROSS_COMPILING=1
   4685 
   4686 
   4687 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
   4688 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
   4689 if test "${ac_cv_build_exeext+set}" = set; then
   4690   echo $ECHO_N "(cached) $ECHO_C" >&6
   4691 else
   4692   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
   4693   ac_cv_build_exeext=.exe
   4694 else
   4695   ac_build_prefix=${build_alias}-
   4696 
   4697   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
   4698 set dummy ${ac_build_prefix}gcc; ac_word=$2
   4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4702   echo $ECHO_N "(cached) $ECHO_C" >&6
   4703 else
   4704   if test -n "$BUILD_CC"; then
   4705   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4706 else
   4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4708 for as_dir in $PATH
   4709 do
   4710   IFS=$as_save_IFS
   4711   test -z "$as_dir" && as_dir=.
   4712   for ac_exec_ext in '' $ac_executable_extensions; do
   4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4714     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
   4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4716     break 2
   4717   fi
   4718 done
   4719 done
   4720 IFS=$as_save_IFS
   4721 
   4722 fi
   4723 fi
   4724 BUILD_CC=$ac_cv_prog_BUILD_CC
   4725 if test -n "$BUILD_CC"; then
   4726   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4727 echo "${ECHO_T}$BUILD_CC" >&6; }
   4728 else
   4729   { echo "$as_me:$LINENO: result: no" >&5
   4730 echo "${ECHO_T}no" >&6; }
   4731 fi
   4732 
   4733 
   4734   if test -z "$BUILD_CC"; then
   4735      # Extract the first word of "gcc", so it can be a program name with args.
   4736 set dummy gcc; ac_word=$2
   4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4740   echo $ECHO_N "(cached) $ECHO_C" >&6
   4741 else
   4742   if test -n "$BUILD_CC"; then
   4743   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4744 else
   4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4746 for as_dir in $PATH
   4747 do
   4748   IFS=$as_save_IFS
   4749   test -z "$as_dir" && as_dir=.
   4750   for ac_exec_ext in '' $ac_executable_extensions; do
   4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4752     ac_cv_prog_BUILD_CC="gcc"
   4753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4754     break 2
   4755   fi
   4756 done
   4757 done
   4758 IFS=$as_save_IFS
   4759 
   4760 fi
   4761 fi
   4762 BUILD_CC=$ac_cv_prog_BUILD_CC
   4763 if test -n "$BUILD_CC"; then
   4764   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4765 echo "${ECHO_T}$BUILD_CC" >&6; }
   4766 else
   4767   { echo "$as_me:$LINENO: result: no" >&5
   4768 echo "${ECHO_T}no" >&6; }
   4769 fi
   4770 
   4771 
   4772      if test -z "$BUILD_CC"; then
   4773        # Extract the first word of "cc", so it can be a program name with args.
   4774 set dummy cc; ac_word=$2
   4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4777 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4778   echo $ECHO_N "(cached) $ECHO_C" >&6
   4779 else
   4780   if test -n "$BUILD_CC"; then
   4781   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4782 else
   4783   ac_prog_rejected=no
   4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4785 for as_dir in $PATH
   4786 do
   4787   IFS=$as_save_IFS
   4788   test -z "$as_dir" && as_dir=.
   4789   for ac_exec_ext in '' $ac_executable_extensions; do
   4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4792        ac_prog_rejected=yes
   4793        continue
   4794      fi
   4795     ac_cv_prog_BUILD_CC="cc"
   4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4797     break 2
   4798   fi
   4799 done
   4800 done
   4801 IFS=$as_save_IFS
   4802 
   4803 if test $ac_prog_rejected = yes; then
   4804   # We found a bogon in the path, so make sure we never use it.
   4805   set dummy $ac_cv_prog_BUILD_CC
   4806   shift
   4807   if test $# != 0; then
   4808     # We chose a different compiler from the bogus one.
   4809     # However, it has the same basename, so the bogon will be chosen
   4810     # first if we set BUILD_CC to just the basename; use the full file name.
   4811     shift
   4812     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
   4813   fi
   4814 fi
   4815 fi
   4816 fi
   4817 BUILD_CC=$ac_cv_prog_BUILD_CC
   4818 if test -n "$BUILD_CC"; then
   4819   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4820 echo "${ECHO_T}$BUILD_CC" >&6; }
   4821 else
   4822   { echo "$as_me:$LINENO: result: no" >&5
   4823 echo "${ECHO_T}no" >&6; }
   4824 fi
   4825 
   4826 
   4827      fi
   4828   fi
   4829   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
   4830 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   4831    { (exit 1); exit 1; }; }
   4832   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4833   rm -f conftest*
   4834   echo 'int main () { return 0; }' > conftest.$ac_ext
   4835   ac_cv_build_exeext=
   4836   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
   4837   (eval $ac_build_link) 2>&5
   4838   ac_status=$?
   4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4840   (exit $ac_status); }; then
   4841     for file in conftest.*; do
   4842       case $file in
   4843       *.c | *.o | *.obj | *.dSYM) ;;
   4844       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
   4845       esac
   4846     done
   4847   else
   4848     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
   4849 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
   4850    { (exit 1); exit 1; }; }
   4851   fi
   4852   rm -f conftest*
   4853   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
   4854 fi
   4855 fi
   4856 
   4857 BUILD_EXEEXT=""
   4858 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
   4859 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
   4860 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
   4861 ac_build_exeext=$BUILD_EXEEXT
   4862 
   4863   ac_build_prefix=${build_alias}-
   4864   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
   4865 set dummy ${ac_build_prefix}g++; ac_word=$2
   4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4869   echo $ECHO_N "(cached) $ECHO_C" >&6
   4870 else
   4871   if test -n "$BUILD_CXX"; then
   4872   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4873 else
   4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4875 for as_dir in $PATH
   4876 do
   4877   IFS=$as_save_IFS
   4878   test -z "$as_dir" && as_dir=.
   4879   for ac_exec_ext in '' $ac_executable_extensions; do
   4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4881     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
   4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4883     break 2
   4884   fi
   4885 done
   4886 done
   4887 IFS=$as_save_IFS
   4888 
   4889 fi
   4890 fi
   4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4892 if test -n "$BUILD_CXX"; then
   4893   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4895 else
   4896   { echo "$as_me:$LINENO: result: no" >&5
   4897 echo "${ECHO_T}no" >&6; }
   4898 fi
   4899 
   4900 
   4901   if test -z "$BUILD_CXX"; then
   4902      # Extract the first word of "g++", so it can be a program name with args.
   4903 set dummy g++; ac_word=$2
   4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4907   echo $ECHO_N "(cached) $ECHO_C" >&6
   4908 else
   4909   if test -n "$BUILD_CXX"; then
   4910   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4911 else
   4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4913 for as_dir in $PATH
   4914 do
   4915   IFS=$as_save_IFS
   4916   test -z "$as_dir" && as_dir=.
   4917   for ac_exec_ext in '' $ac_executable_extensions; do
   4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4919     ac_cv_prog_BUILD_CXX="g++"
   4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4921     break 2
   4922   fi
   4923 done
   4924 done
   4925 IFS=$as_save_IFS
   4926 
   4927 fi
   4928 fi
   4929 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4930 if test -n "$BUILD_CXX"; then
   4931   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4932 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4933 else
   4934   { echo "$as_me:$LINENO: result: no" >&5
   4935 echo "${ECHO_T}no" >&6; }
   4936 fi
   4937 
   4938 
   4939      if test -z "$BUILD_CXX"; then
   4940        # Extract the first word of "c++", so it can be a program name with args.
   4941 set dummy c++; ac_word=$2
   4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4944 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4945   echo $ECHO_N "(cached) $ECHO_C" >&6
   4946 else
   4947   if test -n "$BUILD_CXX"; then
   4948   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4949 else
   4950   ac_prog_rejected=no
   4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4952 for as_dir in $PATH
   4953 do
   4954   IFS=$as_save_IFS
   4955   test -z "$as_dir" && as_dir=.
   4956   for ac_exec_ext in '' $ac_executable_extensions; do
   4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4958     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
   4959        ac_prog_rejected=yes
   4960        continue
   4961      fi
   4962     ac_cv_prog_BUILD_CXX="c++"
   4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4964     break 2
   4965   fi
   4966 done
   4967 done
   4968 IFS=$as_save_IFS
   4969 
   4970 if test $ac_prog_rejected = yes; then
   4971   # We found a bogon in the path, so make sure we never use it.
   4972   set dummy $ac_cv_prog_BUILD_CXX
   4973   shift
   4974   if test $# != 0; then
   4975     # We chose a different compiler from the bogus one.
   4976     # However, it has the same basename, so the bogon will be chosen
   4977     # first if we set BUILD_CXX to just the basename; use the full file name.
   4978     shift
   4979     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
   4980   fi
   4981 fi
   4982 fi
   4983 fi
   4984 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4985 if test -n "$BUILD_CXX"; then
   4986   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4987 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4988 else
   4989   { echo "$as_me:$LINENO: result: no" >&5
   4990 echo "${ECHO_T}no" >&6; }
   4991 fi
   4992 
   4993 
   4994      fi
   4995   fi
   4996 else
   4997   LLVM_CROSS_COMPILING=0
   4998 
   4999 fi
   5000 
   5001 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
   5002   cvsbuild="yes"
   5003   optimize="no"
   5004   CVSBUILD=CVSBUILD=1
   5005 
   5006 else
   5007   cvsbuild="no"
   5008   optimize="yes"
   5009 fi
   5010 
   5011 
   5012 # Check whether --enable-libcpp was given.
   5013 if test "${enable_libcpp+set}" = set; then
   5014   enableval=$enable_libcpp;
   5015 else
   5016   enableval=default
   5017 fi
   5018 
   5019 case "$enableval" in
   5020   yes) ENABLE_LIBCPP=1
   5021  ;;
   5022   no)  ENABLE_LIBCPP=0
   5023  ;;
   5024   default) ENABLE_LIBCPP=0
   5025 ;;
   5026   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
   5027 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
   5028    { (exit 1); exit 1; }; } ;;
   5029 esac
   5030 
   5031 # Check whether --enable-cxx11 was given.
   5032 if test "${enable_cxx11+set}" = set; then
   5033   enableval=$enable_cxx11;
   5034 else
   5035   enableval=default
   5036 fi
   5037 
   5038 case "$enableval" in
   5039   yes) ENABLE_CXX11=1
   5040  ;;
   5041   no)  ENABLE_CXX11=0
   5042  ;;
   5043   default) ENABLE_CXX11=0
   5044 ;;
   5045   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
   5046 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
   5047    { (exit 1); exit 1; }; } ;;
   5048 esac
   5049 
   5050 # Check whether --enable-optimized was given.
   5051 if test "${enable_optimized+set}" = set; then
   5052   enableval=$enable_optimized;
   5053 else
   5054   enableval=$optimize
   5055 fi
   5056 
   5057 if test ${enableval} = "no" ; then
   5058   ENABLE_OPTIMIZED=
   5059 
   5060 else
   5061   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
   5062 
   5063 fi
   5064 
   5065 # Check whether --enable-profiling was given.
   5066 if test "${enable_profiling+set}" = set; then
   5067   enableval=$enable_profiling;
   5068 else
   5069   enableval="no"
   5070 fi
   5071 
   5072 if test ${enableval} = "no" ; then
   5073   ENABLE_PROFILING=
   5074 
   5075 else
   5076   ENABLE_PROFILING=ENABLE_PROFILING=1
   5077 
   5078 fi
   5079 
   5080 # Check whether --enable-assertions was given.
   5081 if test "${enable_assertions+set}" = set; then
   5082   enableval=$enable_assertions;
   5083 else
   5084   enableval="yes"
   5085 fi
   5086 
   5087 if test ${enableval} = "yes" ; then
   5088   DISABLE_ASSERTIONS=
   5089 
   5090 else
   5091   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
   5092 
   5093 fi
   5094 
   5095 # Check whether --enable-werror was given.
   5096 if test "${enable_werror+set}" = set; then
   5097   enableval=$enable_werror;
   5098 else
   5099   enableval="no"
   5100 fi
   5101 
   5102 case "$enableval" in
   5103   yes) ENABLE_WERROR=1
   5104  ;;
   5105   no)  ENABLE_WERROR=0
   5106  ;;
   5107   default) ENABLE_WERROR=0
   5108 ;;
   5109   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
   5110 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
   5111    { (exit 1); exit 1; }; } ;;
   5112 esac
   5113 
   5114 # Check whether --enable-expensive-checks was given.
   5115 if test "${enable_expensive_checks+set}" = set; then
   5116   enableval=$enable_expensive_checks;
   5117 else
   5118   enableval="no"
   5119 fi
   5120 
   5121 if test ${enableval} = "yes" ; then
   5122   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
   5123 
   5124   EXPENSIVE_CHECKS=yes
   5125 
   5126 else
   5127   ENABLE_EXPENSIVE_CHECKS=
   5128 
   5129   EXPENSIVE_CHECKS=no
   5130 
   5131 fi
   5132 
   5133 # Check whether --enable-debug-runtime was given.
   5134 if test "${enable_debug_runtime+set}" = set; then
   5135   enableval=$enable_debug_runtime;
   5136 else
   5137   enableval=no
   5138 fi
   5139 
   5140 if test ${enableval} = "no" ; then
   5141   DEBUG_RUNTIME=
   5142 
   5143 else
   5144   DEBUG_RUNTIME=DEBUG_RUNTIME=1
   5145 
   5146 fi
   5147 
   5148 # Check whether --enable-debug-symbols was given.
   5149 if test "${enable_debug_symbols+set}" = set; then
   5150   enableval=$enable_debug_symbols;
   5151 else
   5152   enableval=no
   5153 fi
   5154 
   5155 if test ${enableval} = "no" ; then
   5156   DEBUG_SYMBOLS=
   5157 
   5158 else
   5159   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
   5160 
   5161 fi
   5162 
   5163 # Check whether --enable-keep-symbols was given.
   5164 if test "${enable_keep_symbols+set}" = set; then
   5165   enableval=$enable_keep_symbols;
   5166 else
   5167   enableval=no
   5168 fi
   5169 
   5170 if test ${enableval} = "no" ; then
   5171   KEEP_SYMBOLS=
   5172 
   5173 else
   5174   KEEP_SYMBOLS=KEEP_SYMBOLS=1
   5175 
   5176 fi
   5177 
   5178 # Check whether --enable-jit was given.
   5179 if test "${enable_jit+set}" = set; then
   5180   enableval=$enable_jit;
   5181 else
   5182   enableval=default
   5183 fi
   5184 
   5185 if test ${enableval} = "no"
   5186 then
   5187   JIT=
   5188 
   5189 else
   5190   case "$llvm_cv_target_arch" in
   5191     x86)         TARGET_HAS_JIT=1
   5192  ;;
   5193     Sparc)       TARGET_HAS_JIT=0
   5194  ;;
   5195     PowerPC)     TARGET_HAS_JIT=1
   5196  ;;
   5197     x86_64)      TARGET_HAS_JIT=1
   5198  ;;
   5199     ARM)         TARGET_HAS_JIT=1
   5200  ;;
   5201     Mips)        TARGET_HAS_JIT=1
   5202  ;;
   5203     XCore)       TARGET_HAS_JIT=0
   5204  ;;
   5205     MSP430)      TARGET_HAS_JIT=0
   5206  ;;
   5207     Hexagon)     TARGET_HAS_JIT=0
   5208  ;;
   5209     MBlaze)      TARGET_HAS_JIT=0
   5210  ;;
   5211     NVPTX)       TARGET_HAS_JIT=0
   5212  ;;
   5213     *)           TARGET_HAS_JIT=0
   5214  ;;
   5215   esac
   5216 fi
   5217 
   5218 # Check whether --enable-docs was given.
   5219 if test "${enable_docs+set}" = set; then
   5220   enableval=$enable_docs;
   5221 else
   5222   enableval=default
   5223 fi
   5224 
   5225 case "$enableval" in
   5226   yes) ENABLE_DOCS=1
   5227  ;;
   5228   no)  ENABLE_DOCS=0
   5229  ;;
   5230   default) ENABLE_DOCS=1
   5231  ;;
   5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
   5233 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
   5234    { (exit 1); exit 1; }; } ;;
   5235 esac
   5236 
   5237 # Check whether --enable-doxygen was given.
   5238 if test "${enable_doxygen+set}" = set; then
   5239   enableval=$enable_doxygen;
   5240 else
   5241   enableval=default
   5242 fi
   5243 
   5244 case "$enableval" in
   5245   yes) ENABLE_DOXYGEN=1
   5246  ;;
   5247   no)  ENABLE_DOXYGEN=0
   5248  ;;
   5249   default) ENABLE_DOXYGEN=0
   5250  ;;
   5251   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
   5252 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
   5253    { (exit 1); exit 1; }; } ;;
   5254 esac
   5255 
   5256 # Check whether --enable-threads was given.
   5257 if test "${enable_threads+set}" = set; then
   5258   enableval=$enable_threads;
   5259 else
   5260   enableval=default
   5261 fi
   5262 
   5263 case "$enableval" in
   5264   yes) LLVM_ENABLE_THREADS=1
   5265  ;;
   5266   no)  LLVM_ENABLE_THREADS=0
   5267  ;;
   5268   default) LLVM_ENABLE_THREADS=1
   5269  ;;
   5270   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
   5271 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
   5272    { (exit 1); exit 1; }; } ;;
   5273 esac
   5274 
   5275 cat >>confdefs.h <<_ACEOF
   5276 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
   5277 _ACEOF
   5278 
   5279 
   5280 # Check whether --enable-pthreads was given.
   5281 if test "${enable_pthreads+set}" = set; then
   5282   enableval=$enable_pthreads;
   5283 else
   5284   enableval=default
   5285 fi
   5286 
   5287 case "$enableval" in
   5288   yes) ENABLE_PTHREADS=1
   5289  ;;
   5290   no)  ENABLE_PTHREADS=0
   5291  ;;
   5292   default) ENABLE_PTHREADS=1
   5293  ;;
   5294   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
   5295 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
   5296    { (exit 1); exit 1; }; } ;;
   5297 esac
   5298 
   5299 # Check whether --enable-pic was given.
   5300 if test "${enable_pic+set}" = set; then
   5301   enableval=$enable_pic;
   5302 else
   5303   enableval=default
   5304 fi
   5305 
   5306 case "$enableval" in
   5307   yes) ENABLE_PIC=1
   5308  ;;
   5309   no)  ENABLE_PIC=0
   5310  ;;
   5311   default) ENABLE_PIC=1
   5312  ;;
   5313   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
   5314 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
   5315    { (exit 1); exit 1; }; } ;;
   5316 esac
   5317 
   5318 cat >>confdefs.h <<_ACEOF
   5319 #define ENABLE_PIC $ENABLE_PIC
   5320 _ACEOF
   5321 
   5322 
   5323 # Check whether --enable-shared was given.
   5324 if test "${enable_shared+set}" = set; then
   5325   enableval=$enable_shared;
   5326 else
   5327   enableval=default
   5328 fi
   5329 
   5330 case "$enableval" in
   5331   yes) ENABLE_SHARED=1
   5332  ;;
   5333   no)  ENABLE_SHARED=0
   5334  ;;
   5335   default) ENABLE_SHARED=0
   5336  ;;
   5337   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
   5338 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
   5339    { (exit 1); exit 1; }; } ;;
   5340 esac
   5341 
   5342 # Check whether --enable-embed-stdcxx was given.
   5343 if test "${enable_embed_stdcxx+set}" = set; then
   5344   enableval=$enable_embed_stdcxx;
   5345 else
   5346   enableval=default
   5347 fi
   5348 
   5349 case "$enableval" in
   5350   yes) ENABLE_EMBED_STDCXX=1
   5351  ;;
   5352   no)  ENABLE_EMBED_STDCXX=0
   5353  ;;
   5354   default) ENABLE_EMBED_STDCXX=0
   5355  ;;
   5356   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
   5357 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
   5358    { (exit 1); exit 1; }; } ;;
   5359 esac
   5360 
   5361 # Check whether --enable-timestamps was given.
   5362 if test "${enable_timestamps+set}" = set; then
   5363   enableval=$enable_timestamps;
   5364 else
   5365   enableval=default
   5366 fi
   5367 
   5368 case "$enableval" in
   5369   yes) ENABLE_TIMESTAMPS=1
   5370  ;;
   5371   no)  ENABLE_TIMESTAMPS=0
   5372  ;;
   5373   default) ENABLE_TIMESTAMPS=1
   5374  ;;
   5375   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
   5376 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
   5377    { (exit 1); exit 1; }; } ;;
   5378 esac
   5379 
   5380 cat >>confdefs.h <<_ACEOF
   5381 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
   5382 _ACEOF
   5383 
   5384 
   5385 TARGETS_TO_BUILD=""
   5386 # Check whether --enable-targets was given.
   5387 if test "${enable_targets+set}" = set; then
   5388   enableval=$enable_targets;
   5389 else
   5390   enableval=all
   5391 fi
   5392 
   5393 if test "$enableval" = host-only ; then
   5394   enableval=host
   5395 fi
   5396 case "$enableval" in
   5397   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
   5398   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5399       case "$a_target" in
   5400         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5401         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5402         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5403         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5404         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5405         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5406         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5407         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5408         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5409         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5410         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
   5411         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5412         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5413         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
   5414         host) case "$llvm_cv_target_arch" in
   5415             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5416             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5417             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5418             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5419             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5420             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5421             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5422             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5423             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5424             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5425             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5426             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
   5427             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
   5428 echo "$as_me: error: Can not set target to build" >&2;}
   5429    { (exit 1); exit 1; }; } ;;
   5430           esac ;;
   5431         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
   5432 echo "$as_me: error: Unrecognized target $a_target" >&2;}
   5433    { (exit 1); exit 1; }; } ;;
   5434       esac
   5435   done
   5436   ;;
   5437 esac
   5438 
   5439 # Check whether --enable-experimental-targets was given.
   5440 if test "${enable_experimental_targets+set}" = set; then
   5441   enableval=$enable_experimental_targets;
   5442 else
   5443   enableval=disable
   5444 fi
   5445 
   5446 
   5447 if test ${enableval} != "disable"
   5448 then
   5449   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
   5450 fi
   5451 
   5452 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
   5453 
   5454 
   5455 for a_target in $TARGETS_TO_BUILD; do
   5456   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
   5457 
   5458 cat >>confdefs.h <<_ACEOF
   5459 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
   5460 _ACEOF
   5461 
   5462     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
   5463     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
   5464     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
   5465     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
   5466     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5467       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
   5468     fi
   5469     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5470       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
   5471     fi
   5472 
   5473 cat >>confdefs.h <<_ACEOF
   5474 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
   5475 _ACEOF
   5476 
   5477 
   5478 cat >>confdefs.h <<_ACEOF
   5479 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
   5480 _ACEOF
   5481 
   5482 
   5483 cat >>confdefs.h <<_ACEOF
   5484 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
   5485 _ACEOF
   5486 
   5487 
   5488 cat >>confdefs.h <<_ACEOF
   5489 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
   5490 _ACEOF
   5491 
   5492     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5493 
   5494 cat >>confdefs.h <<_ACEOF
   5495 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
   5496 _ACEOF
   5497 
   5498     fi
   5499     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5500 
   5501 cat >>confdefs.h <<_ACEOF
   5502 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
   5503 _ACEOF
   5504 
   5505     fi
   5506   fi
   5507 done
   5508 
   5509 LLVM_ENUM_TARGETS=""
   5510 LLVM_ENUM_ASM_PRINTERS=""
   5511 LLVM_ENUM_ASM_PARSERS=""
   5512 LLVM_ENUM_DISASSEMBLERS=""
   5513 for target_to_build in $TARGETS_TO_BUILD; do
   5514   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
   5515   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
   5516     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
   5517   fi
   5518   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
   5519     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
   5520   fi
   5521   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
   5522     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
   5523   fi
   5524 done
   5525 
   5526 
   5527 
   5528 
   5529 
   5530 
   5531 # Check whether --with-optimize-option was given.
   5532 if test "${with_optimize_option+set}" = set; then
   5533   withval=$with_optimize_option;
   5534 else
   5535   withval=default
   5536 fi
   5537 
   5538 { echo "$as_me:$LINENO: checking optimization flags" >&5
   5539 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
   5540 case "$withval" in
   5541   default)
   5542     case "$llvm_cv_os_type" in
   5543     FreeBSD) optimize_option=-O2 ;;
   5544     MingW) optimize_option=-O2 ;;
   5545     *)     optimize_option=-O3 ;;
   5546     esac ;;
   5547   *) optimize_option="$withval" ;;
   5548 esac
   5549 OPTIMIZE_OPTION=$optimize_option
   5550 
   5551 { echo "$as_me:$LINENO: result: $optimize_option" >&5
   5552 echo "${ECHO_T}$optimize_option" >&6; }
   5553 
   5554 
   5555 # Check whether --with-extra-options was given.
   5556 if test "${with_extra_options+set}" = set; then
   5557   withval=$with_extra_options;
   5558 else
   5559   withval=default
   5560 fi
   5561 
   5562 case "$withval" in
   5563   default) EXTRA_OPTIONS= ;;
   5564   *) EXTRA_OPTIONS=$withval ;;
   5565 esac
   5566 EXTRA_OPTIONS=$EXTRA_OPTIONS
   5567 
   5568 
   5569 
   5570 # Check whether --with-extra-ld-options was given.
   5571 if test "${with_extra_ld_options+set}" = set; then
   5572   withval=$with_extra_ld_options;
   5573 else
   5574   withval=default
   5575 fi
   5576 
   5577 case "$withval" in
   5578   default) EXTRA_LD_OPTIONS= ;;
   5579   *) EXTRA_LD_OPTIONS=$withval ;;
   5580 esac
   5581 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
   5582 
   5583 
   5584 # Check whether --enable-bindings was given.
   5585 if test "${enable_bindings+set}" = set; then
   5586   enableval=$enable_bindings;
   5587 else
   5588   enableval=default
   5589 fi
   5590 
   5591 BINDINGS_TO_BUILD=""
   5592 case "$enableval" in
   5593   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
   5594   all ) BINDINGS_TO_BUILD="ocaml" ;;
   5595   none | no) BINDINGS_TO_BUILD="" ;;
   5596   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5597       case "$a_binding" in
   5598         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
   5599         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
   5600 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
   5601    { (exit 1); exit 1; }; } ;;
   5602       esac
   5603   done
   5604   ;;
   5605 esac
   5606 
   5607 
   5608 # Check whether --with-ocaml-libdir was given.
   5609 if test "${with_ocaml_libdir+set}" = set; then
   5610   withval=$with_ocaml_libdir;
   5611 else
   5612   withval=auto
   5613 fi
   5614 
   5615 case "$withval" in
   5616   auto) with_ocaml_libdir="$withval" ;;
   5617   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
   5618   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
   5619 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
   5620    { (exit 1); exit 1; }; } ;;
   5621 esac
   5622 
   5623 
   5624 # Check whether --with-clang-srcdir was given.
   5625 if test "${with_clang_srcdir+set}" = set; then
   5626   withval=$with_clang_srcdir;
   5627 else
   5628   withval="-"
   5629 fi
   5630 
   5631 case "$withval" in
   5632   -) clang_src_root="" ;;
   5633   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
   5634   *) clang_src_root="$ac_pwd/$withval" ;;
   5635 esac
   5636 CLANG_SRC_ROOT=$clang_src_root
   5637 
   5638 
   5639 
   5640 # Check whether --with-clang-resource-dir was given.
   5641 if test "${with_clang_resource_dir+set}" = set; then
   5642   withval=$with_clang_resource_dir;
   5643 else
   5644   withval=""
   5645 fi
   5646 
   5647 
   5648 cat >>confdefs.h <<_ACEOF
   5649 #define CLANG_RESOURCE_DIR "$withval"
   5650 _ACEOF
   5651 
   5652 
   5653 
   5654 # Check whether --with-c-include-dirs was given.
   5655 if test "${with_c_include_dirs+set}" = set; then
   5656   withval=$with_c_include_dirs;
   5657 else
   5658   withval=""
   5659 fi
   5660 
   5661 
   5662 cat >>confdefs.h <<_ACEOF
   5663 #define C_INCLUDE_DIRS "$withval"
   5664 _ACEOF
   5665 
   5666 
   5667 # Clang normally uses the system c++ headers and libraries. With this option,
   5668 # clang will use the ones provided by a gcc installation instead. This option should
   5669 # be passed the same value that was used with --prefix when configuring gcc.
   5670 
   5671 # Check whether --with-gcc-toolchain was given.
   5672 if test "${with_gcc_toolchain+set}" = set; then
   5673   withval=$with_gcc_toolchain;
   5674 else
   5675   withval=""
   5676 fi
   5677 
   5678 
   5679 cat >>confdefs.h <<_ACEOF
   5680 #define GCC_INSTALL_PREFIX "$withval"
   5681 _ACEOF
   5682 
   5683 
   5684 
   5685 # Check whether --with-default-sysroot was given.
   5686 if test "${with_default_sysroot+set}" = set; then
   5687   withval=$with_default_sysroot;
   5688 else
   5689   withval=""
   5690 fi
   5691 
   5692 
   5693 cat >>confdefs.h <<_ACEOF
   5694 #define DEFAULT_SYSROOT "$withval"
   5695 _ACEOF
   5696 
   5697 
   5698 
   5699 # Check whether --with-binutils-include was given.
   5700 if test "${with_binutils_include+set}" = set; then
   5701   withval=$with_binutils_include;
   5702 else
   5703   withval=default
   5704 fi
   5705 
   5706 case "$withval" in
   5707   default) WITH_BINUTILS_INCDIR=default ;;
   5708   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
   5709   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
   5710 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
   5711    { (exit 1); exit 1; }; } ;;
   5712 esac
   5713 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
   5714   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
   5715 
   5716   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
   5717      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
   5718      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
   5719 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
   5720    { (exit 1); exit 1; }; };
   5721   fi
   5722 fi
   5723 
   5724 
   5725 # Check whether --with-bug-report-url was given.
   5726 if test "${with_bug_report_url+set}" = set; then
   5727   withval=$with_bug_report_url;
   5728 else
   5729   withval="http://llvm.org/bugs/"
   5730 fi
   5731 
   5732 
   5733 cat >>confdefs.h <<_ACEOF
   5734 #define BUG_REPORT_URL "$withval"
   5735 _ACEOF
   5736 
   5737 
   5738 # Check whether --enable-libffi was given.
   5739 if test "${enable_libffi+set}" = set; then
   5740   enableval=$enable_libffi; case "$enableval" in
   5741     yes) llvm_cv_enable_libffi="yes" ;;
   5742     no)  llvm_cv_enable_libffi="no"  ;;
   5743     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
   5744 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
   5745    { (exit 1); exit 1; }; } ;;
   5746   esac
   5747 else
   5748   llvm_cv_enable_libffi=no
   5749 fi
   5750 
   5751 
   5752 
   5753 # Check whether --with-internal-prefix was given.
   5754 if test "${with_internal_prefix+set}" = set; then
   5755   withval=$with_internal_prefix;
   5756 else
   5757   withval=""
   5758 fi
   5759 
   5760 INTERNAL_PREFIX=$withval
   5761 
   5762 
   5763 
   5764 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   5765 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   5766 if test "${lt_cv_path_NM+set}" = set; then
   5767   echo $ECHO_N "(cached) $ECHO_C" >&6
   5768 else
   5769   if test -n "$NM"; then
   5770   # Let the user override the test.
   5771   lt_cv_path_NM="$NM"
   5772 else
   5773   lt_nm_to_check="${ac_tool_prefix}nm"
   5774   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5775     lt_nm_to_check="$lt_nm_to_check nm"
   5776   fi
   5777   for lt_tmp_nm in $lt_nm_to_check; do
   5778     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5779     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5780       IFS="$lt_save_ifs"
   5781       test -z "$ac_dir" && ac_dir=.
   5782       tmp_nm="$ac_dir/$lt_tmp_nm"
   5783       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5784 	# Check to see if the nm accepts a BSD-compat flag.
   5785 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   5786 	#   nm: unknown option "B" ignored
   5787 	# Tru64's nm complains that /dev/null is an invalid object file
   5788 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5789 	*/dev/null* | *'Invalid file or object type'*)
   5790 	  lt_cv_path_NM="$tmp_nm -B"
   5791 	  break
   5792 	  ;;
   5793 	*)
   5794 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5795 	  */dev/null*)
   5796 	    lt_cv_path_NM="$tmp_nm -p"
   5797 	    break
   5798 	    ;;
   5799 	  *)
   5800 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5801 	    continue # so that we can try to find one that supports BSD flags
   5802 	    ;;
   5803 	  esac
   5804 	  ;;
   5805 	esac
   5806       fi
   5807     done
   5808     IFS="$lt_save_ifs"
   5809   done
   5810   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   5811 fi
   5812 fi
   5813 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   5814 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   5815 NM="$lt_cv_path_NM"
   5816 
   5817 
   5818 
   5819 { echo "$as_me:$LINENO: checking for GNU make" >&5
   5820 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
   5821 if test "${llvm_cv_gnu_make_command+set}" = set; then
   5822   echo $ECHO_N "(cached) $ECHO_C" >&6
   5823 else
   5824   llvm_cv_gnu_make_command=''
   5825  for a in "$MAKE" make gmake gnumake ; do
   5826   if test -z "$a" ; then continue ; fi ;
   5827   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
   5828   then
   5829    llvm_cv_gnu_make_command=$a ;
   5830    break;
   5831   fi
   5832  done
   5833 fi
   5834 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
   5835 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
   5836  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
   5837    ifGNUmake='' ;
   5838  else
   5839    ifGNUmake='#' ;
   5840    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
   5841 echo "${ECHO_T}\"Not found\"" >&6; };
   5842  fi
   5843 
   5844 
   5845 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5846 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   5847 LN_S=$as_ln_s
   5848 if test "$LN_S" = "ln -s"; then
   5849   { echo "$as_me:$LINENO: result: yes" >&5
   5850 echo "${ECHO_T}yes" >&6; }
   5851 else
   5852   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5853 echo "${ECHO_T}no, using $LN_S" >&6; }
   5854 fi
   5855 
   5856 # Extract the first word of "cmp", so it can be a program name with args.
   5857 set dummy cmp; ac_word=$2
   5858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5860 if test "${ac_cv_path_CMP+set}" = set; then
   5861   echo $ECHO_N "(cached) $ECHO_C" >&6
   5862 else
   5863   case $CMP in
   5864   [\\/]* | ?:[\\/]*)
   5865   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
   5866   ;;
   5867   *)
   5868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5869 for as_dir in $PATH
   5870 do
   5871   IFS=$as_save_IFS
   5872   test -z "$as_dir" && as_dir=.
   5873   for ac_exec_ext in '' $ac_executable_extensions; do
   5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5875     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
   5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5877     break 2
   5878   fi
   5879 done
   5880 done
   5881 IFS=$as_save_IFS
   5882 
   5883   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
   5884   ;;
   5885 esac
   5886 fi
   5887 CMP=$ac_cv_path_CMP
   5888 if test -n "$CMP"; then
   5889   { echo "$as_me:$LINENO: result: $CMP" >&5
   5890 echo "${ECHO_T}$CMP" >&6; }
   5891 else
   5892   { echo "$as_me:$LINENO: result: no" >&5
   5893 echo "${ECHO_T}no" >&6; }
   5894 fi
   5895 
   5896 
   5897 # Extract the first word of "cp", so it can be a program name with args.
   5898 set dummy cp; ac_word=$2
   5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5901 if test "${ac_cv_path_CP+set}" = set; then
   5902   echo $ECHO_N "(cached) $ECHO_C" >&6
   5903 else
   5904   case $CP in
   5905   [\\/]* | ?:[\\/]*)
   5906   ac_cv_path_CP="$CP" # Let the user override the test with a path.
   5907   ;;
   5908   *)
   5909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5910 for as_dir in $PATH
   5911 do
   5912   IFS=$as_save_IFS
   5913   test -z "$as_dir" && as_dir=.
   5914   for ac_exec_ext in '' $ac_executable_extensions; do
   5915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5916     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
   5917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5918     break 2
   5919   fi
   5920 done
   5921 done
   5922 IFS=$as_save_IFS
   5923 
   5924   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
   5925   ;;
   5926 esac
   5927 fi
   5928 CP=$ac_cv_path_CP
   5929 if test -n "$CP"; then
   5930   { echo "$as_me:$LINENO: result: $CP" >&5
   5931 echo "${ECHO_T}$CP" >&6; }
   5932 else
   5933   { echo "$as_me:$LINENO: result: no" >&5
   5934 echo "${ECHO_T}no" >&6; }
   5935 fi
   5936 
   5937 
   5938 # Extract the first word of "date", so it can be a program name with args.
   5939 set dummy date; ac_word=$2
   5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5942 if test "${ac_cv_path_DATE+set}" = set; then
   5943   echo $ECHO_N "(cached) $ECHO_C" >&6
   5944 else
   5945   case $DATE in
   5946   [\\/]* | ?:[\\/]*)
   5947   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
   5948   ;;
   5949   *)
   5950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5951 for as_dir in $PATH
   5952 do
   5953   IFS=$as_save_IFS
   5954   test -z "$as_dir" && as_dir=.
   5955   for ac_exec_ext in '' $ac_executable_extensions; do
   5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5957     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
   5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5959     break 2
   5960   fi
   5961 done
   5962 done
   5963 IFS=$as_save_IFS
   5964 
   5965   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
   5966   ;;
   5967 esac
   5968 fi
   5969 DATE=$ac_cv_path_DATE
   5970 if test -n "$DATE"; then
   5971   { echo "$as_me:$LINENO: result: $DATE" >&5
   5972 echo "${ECHO_T}$DATE" >&6; }
   5973 else
   5974   { echo "$as_me:$LINENO: result: no" >&5
   5975 echo "${ECHO_T}no" >&6; }
   5976 fi
   5977 
   5978 
   5979 # Extract the first word of "find", so it can be a program name with args.
   5980 set dummy find; ac_word=$2
   5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5983 if test "${ac_cv_path_FIND+set}" = set; then
   5984   echo $ECHO_N "(cached) $ECHO_C" >&6
   5985 else
   5986   case $FIND in
   5987   [\\/]* | ?:[\\/]*)
   5988   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
   5989   ;;
   5990   *)
   5991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5992 for as_dir in $PATH
   5993 do
   5994   IFS=$as_save_IFS
   5995   test -z "$as_dir" && as_dir=.
   5996   for ac_exec_ext in '' $ac_executable_extensions; do
   5997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5998     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
   5999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6000     break 2
   6001   fi
   6002 done
   6003 done
   6004 IFS=$as_save_IFS
   6005 
   6006   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
   6007   ;;
   6008 esac
   6009 fi
   6010 FIND=$ac_cv_path_FIND
   6011 if test -n "$FIND"; then
   6012   { echo "$as_me:$LINENO: result: $FIND" >&5
   6013 echo "${ECHO_T}$FIND" >&6; }
   6014 else
   6015   { echo "$as_me:$LINENO: result: no" >&5
   6016 echo "${ECHO_T}no" >&6; }
   6017 fi
   6018 
   6019 
   6020 # Extract the first word of "grep", so it can be a program name with args.
   6021 set dummy grep; ac_word=$2
   6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6024 if test "${ac_cv_path_GREP+set}" = set; then
   6025   echo $ECHO_N "(cached) $ECHO_C" >&6
   6026 else
   6027   case $GREP in
   6028   [\\/]* | ?:[\\/]*)
   6029   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
   6030   ;;
   6031   *)
   6032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6033 for as_dir in $PATH
   6034 do
   6035   IFS=$as_save_IFS
   6036   test -z "$as_dir" && as_dir=.
   6037   for ac_exec_ext in '' $ac_executable_extensions; do
   6038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6039     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   6040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6041     break 2
   6042   fi
   6043 done
   6044 done
   6045 IFS=$as_save_IFS
   6046 
   6047   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
   6048   ;;
   6049 esac
   6050 fi
   6051 GREP=$ac_cv_path_GREP
   6052 if test -n "$GREP"; then
   6053   { echo "$as_me:$LINENO: result: $GREP" >&5
   6054 echo "${ECHO_T}$GREP" >&6; }
   6055 else
   6056   { echo "$as_me:$LINENO: result: no" >&5
   6057 echo "${ECHO_T}no" >&6; }
   6058 fi
   6059 
   6060 
   6061 # Extract the first word of "mkdir", so it can be a program name with args.
   6062 set dummy mkdir; ac_word=$2
   6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6065 if test "${ac_cv_path_MKDIR+set}" = set; then
   6066   echo $ECHO_N "(cached) $ECHO_C" >&6
   6067 else
   6068   case $MKDIR in
   6069   [\\/]* | ?:[\\/]*)
   6070   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
   6071   ;;
   6072   *)
   6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6074 for as_dir in $PATH
   6075 do
   6076   IFS=$as_save_IFS
   6077   test -z "$as_dir" && as_dir=.
   6078   for ac_exec_ext in '' $ac_executable_extensions; do
   6079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6080     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
   6081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6082     break 2
   6083   fi
   6084 done
   6085 done
   6086 IFS=$as_save_IFS
   6087 
   6088   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
   6089   ;;
   6090 esac
   6091 fi
   6092 MKDIR=$ac_cv_path_MKDIR
   6093 if test -n "$MKDIR"; then
   6094   { echo "$as_me:$LINENO: result: $MKDIR" >&5
   6095 echo "${ECHO_T}$MKDIR" >&6; }
   6096 else
   6097   { echo "$as_me:$LINENO: result: no" >&5
   6098 echo "${ECHO_T}no" >&6; }
   6099 fi
   6100 
   6101 
   6102 # Extract the first word of "mv", so it can be a program name with args.
   6103 set dummy mv; ac_word=$2
   6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6106 if test "${ac_cv_path_MV+set}" = set; then
   6107   echo $ECHO_N "(cached) $ECHO_C" >&6
   6108 else
   6109   case $MV in
   6110   [\\/]* | ?:[\\/]*)
   6111   ac_cv_path_MV="$MV" # Let the user override the test with a path.
   6112   ;;
   6113   *)
   6114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6115 for as_dir in $PATH
   6116 do
   6117   IFS=$as_save_IFS
   6118   test -z "$as_dir" && as_dir=.
   6119   for ac_exec_ext in '' $ac_executable_extensions; do
   6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6121     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
   6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6123     break 2
   6124   fi
   6125 done
   6126 done
   6127 IFS=$as_save_IFS
   6128 
   6129   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
   6130   ;;
   6131 esac
   6132 fi
   6133 MV=$ac_cv_path_MV
   6134 if test -n "$MV"; then
   6135   { echo "$as_me:$LINENO: result: $MV" >&5
   6136 echo "${ECHO_T}$MV" >&6; }
   6137 else
   6138   { echo "$as_me:$LINENO: result: no" >&5
   6139 echo "${ECHO_T}no" >&6; }
   6140 fi
   6141 
   6142 
   6143 if test -n "$ac_tool_prefix"; then
   6144   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6148 if test "${ac_cv_prog_RANLIB+set}" = set; then
   6149   echo $ECHO_N "(cached) $ECHO_C" >&6
   6150 else
   6151   if test -n "$RANLIB"; then
   6152   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6153 else
   6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6155 for as_dir in $PATH
   6156 do
   6157   IFS=$as_save_IFS
   6158   test -z "$as_dir" && as_dir=.
   6159   for ac_exec_ext in '' $ac_executable_extensions; do
   6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6161     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6163     break 2
   6164   fi
   6165 done
   6166 done
   6167 IFS=$as_save_IFS
   6168 
   6169 fi
   6170 fi
   6171 RANLIB=$ac_cv_prog_RANLIB
   6172 if test -n "$RANLIB"; then
   6173   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   6174 echo "${ECHO_T}$RANLIB" >&6; }
   6175 else
   6176   { echo "$as_me:$LINENO: result: no" >&5
   6177 echo "${ECHO_T}no" >&6; }
   6178 fi
   6179 
   6180 
   6181 fi
   6182 if test -z "$ac_cv_prog_RANLIB"; then
   6183   ac_ct_RANLIB=$RANLIB
   6184   # Extract the first word of "ranlib", so it can be a program name with args.
   6185 set dummy ranlib; ac_word=$2
   6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   6189   echo $ECHO_N "(cached) $ECHO_C" >&6
   6190 else
   6191   if test -n "$ac_ct_RANLIB"; then
   6192   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6193 else
   6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6195 for as_dir in $PATH
   6196 do
   6197   IFS=$as_save_IFS
   6198   test -z "$as_dir" && as_dir=.
   6199   for ac_exec_ext in '' $ac_executable_extensions; do
   6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6201     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6203     break 2
   6204   fi
   6205 done
   6206 done
   6207 IFS=$as_save_IFS
   6208 
   6209 fi
   6210 fi
   6211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6212 if test -n "$ac_ct_RANLIB"; then
   6213   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6214 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6215 else
   6216   { echo "$as_me:$LINENO: result: no" >&5
   6217 echo "${ECHO_T}no" >&6; }
   6218 fi
   6219 
   6220   if test "x$ac_ct_RANLIB" = x; then
   6221     RANLIB=":"
   6222   else
   6223     case $cross_compiling:$ac_tool_warned in
   6224 yes:)
   6225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6226 whose name does not start with the host triplet.  If you think this
   6227 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6229 whose name does not start with the host triplet.  If you think this
   6230 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6231 ac_tool_warned=yes ;;
   6232 esac
   6233     RANLIB=$ac_ct_RANLIB
   6234   fi
   6235 else
   6236   RANLIB="$ac_cv_prog_RANLIB"
   6237 fi
   6238 
   6239 if test -n "$ac_tool_prefix"; then
   6240   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6241 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6244 if test "${ac_cv_prog_AR+set}" = set; then
   6245   echo $ECHO_N "(cached) $ECHO_C" >&6
   6246 else
   6247   if test -n "$AR"; then
   6248   ac_cv_prog_AR="$AR" # Let the user override the test.
   6249 else
   6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6251 for as_dir in $PATH
   6252 do
   6253   IFS=$as_save_IFS
   6254   test -z "$as_dir" && as_dir=.
   6255   for ac_exec_ext in '' $ac_executable_extensions; do
   6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6257     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6259     break 2
   6260   fi
   6261 done
   6262 done
   6263 IFS=$as_save_IFS
   6264 
   6265 fi
   6266 fi
   6267 AR=$ac_cv_prog_AR
   6268 if test -n "$AR"; then
   6269   { echo "$as_me:$LINENO: result: $AR" >&5
   6270 echo "${ECHO_T}$AR" >&6; }
   6271 else
   6272   { echo "$as_me:$LINENO: result: no" >&5
   6273 echo "${ECHO_T}no" >&6; }
   6274 fi
   6275 
   6276 
   6277 fi
   6278 if test -z "$ac_cv_prog_AR"; then
   6279   ac_ct_AR=$AR
   6280   # Extract the first word of "ar", so it can be a program name with args.
   6281 set dummy ar; ac_word=$2
   6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6285   echo $ECHO_N "(cached) $ECHO_C" >&6
   6286 else
   6287   if test -n "$ac_ct_AR"; then
   6288   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6289 else
   6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6291 for as_dir in $PATH
   6292 do
   6293   IFS=$as_save_IFS
   6294   test -z "$as_dir" && as_dir=.
   6295   for ac_exec_ext in '' $ac_executable_extensions; do
   6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6297     ac_cv_prog_ac_ct_AR="ar"
   6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6299     break 2
   6300   fi
   6301 done
   6302 done
   6303 IFS=$as_save_IFS
   6304 
   6305 fi
   6306 fi
   6307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6308 if test -n "$ac_ct_AR"; then
   6309   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6310 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6311 else
   6312   { echo "$as_me:$LINENO: result: no" >&5
   6313 echo "${ECHO_T}no" >&6; }
   6314 fi
   6315 
   6316   if test "x$ac_ct_AR" = x; then
   6317     AR="false"
   6318   else
   6319     case $cross_compiling:$ac_tool_warned in
   6320 yes:)
   6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6322 whose name does not start with the host triplet.  If you think this
   6323 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6325 whose name does not start with the host triplet.  If you think this
   6326 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6327 ac_tool_warned=yes ;;
   6328 esac
   6329     AR=$ac_ct_AR
   6330   fi
   6331 else
   6332   AR="$ac_cv_prog_AR"
   6333 fi
   6334 
   6335 # Extract the first word of "rm", so it can be a program name with args.
   6336 set dummy rm; ac_word=$2
   6337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6339 if test "${ac_cv_path_RM+set}" = set; then
   6340   echo $ECHO_N "(cached) $ECHO_C" >&6
   6341 else
   6342   case $RM in
   6343   [\\/]* | ?:[\\/]*)
   6344   ac_cv_path_RM="$RM" # Let the user override the test with a path.
   6345   ;;
   6346   *)
   6347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6348 for as_dir in $PATH
   6349 do
   6350   IFS=$as_save_IFS
   6351   test -z "$as_dir" && as_dir=.
   6352   for ac_exec_ext in '' $ac_executable_extensions; do
   6353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6354     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
   6355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6356     break 2
   6357   fi
   6358 done
   6359 done
   6360 IFS=$as_save_IFS
   6361 
   6362   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
   6363   ;;
   6364 esac
   6365 fi
   6366 RM=$ac_cv_path_RM
   6367 if test -n "$RM"; then
   6368   { echo "$as_me:$LINENO: result: $RM" >&5
   6369 echo "${ECHO_T}$RM" >&6; }
   6370 else
   6371   { echo "$as_me:$LINENO: result: no" >&5
   6372 echo "${ECHO_T}no" >&6; }
   6373 fi
   6374 
   6375 
   6376 # Extract the first word of "sed", so it can be a program name with args.
   6377 set dummy sed; ac_word=$2
   6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6380 if test "${ac_cv_path_SED+set}" = set; then
   6381   echo $ECHO_N "(cached) $ECHO_C" >&6
   6382 else
   6383   case $SED in
   6384   [\\/]* | ?:[\\/]*)
   6385   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   6386   ;;
   6387   *)
   6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6389 for as_dir in $PATH
   6390 do
   6391   IFS=$as_save_IFS
   6392   test -z "$as_dir" && as_dir=.
   6393   for ac_exec_ext in '' $ac_executable_extensions; do
   6394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6395     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6397     break 2
   6398   fi
   6399 done
   6400 done
   6401 IFS=$as_save_IFS
   6402 
   6403   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
   6404   ;;
   6405 esac
   6406 fi
   6407 SED=$ac_cv_path_SED
   6408 if test -n "$SED"; then
   6409   { echo "$as_me:$LINENO: result: $SED" >&5
   6410 echo "${ECHO_T}$SED" >&6; }
   6411 else
   6412   { echo "$as_me:$LINENO: result: no" >&5
   6413 echo "${ECHO_T}no" >&6; }
   6414 fi
   6415 
   6416 
   6417 # Extract the first word of "tar", so it can be a program name with args.
   6418 set dummy tar; ac_word=$2
   6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6421 if test "${ac_cv_path_TAR+set}" = set; then
   6422   echo $ECHO_N "(cached) $ECHO_C" >&6
   6423 else
   6424   case $TAR in
   6425   [\\/]* | ?:[\\/]*)
   6426   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
   6427   ;;
   6428   *)
   6429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6430 for as_dir in $PATH
   6431 do
   6432   IFS=$as_save_IFS
   6433   test -z "$as_dir" && as_dir=.
   6434   for ac_exec_ext in '' $ac_executable_extensions; do
   6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6436     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6438     break 2
   6439   fi
   6440 done
   6441 done
   6442 IFS=$as_save_IFS
   6443 
   6444   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
   6445   ;;
   6446 esac
   6447 fi
   6448 TAR=$ac_cv_path_TAR
   6449 if test -n "$TAR"; then
   6450   { echo "$as_me:$LINENO: result: $TAR" >&5
   6451 echo "${ECHO_T}$TAR" >&6; }
   6452 else
   6453   { echo "$as_me:$LINENO: result: no" >&5
   6454 echo "${ECHO_T}no" >&6; }
   6455 fi
   6456 
   6457 
   6458 # Extract the first word of "pwd", so it can be a program name with args.
   6459 set dummy pwd; ac_word=$2
   6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6462 if test "${ac_cv_path_BINPWD+set}" = set; then
   6463   echo $ECHO_N "(cached) $ECHO_C" >&6
   6464 else
   6465   case $BINPWD in
   6466   [\\/]* | ?:[\\/]*)
   6467   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
   6468   ;;
   6469   *)
   6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6471 for as_dir in $PATH
   6472 do
   6473   IFS=$as_save_IFS
   6474   test -z "$as_dir" && as_dir=.
   6475   for ac_exec_ext in '' $ac_executable_extensions; do
   6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6477     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
   6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6479     break 2
   6480   fi
   6481 done
   6482 done
   6483 IFS=$as_save_IFS
   6484 
   6485   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
   6486   ;;
   6487 esac
   6488 fi
   6489 BINPWD=$ac_cv_path_BINPWD
   6490 if test -n "$BINPWD"; then
   6491   { echo "$as_me:$LINENO: result: $BINPWD" >&5
   6492 echo "${ECHO_T}$BINPWD" >&6; }
   6493 else
   6494   { echo "$as_me:$LINENO: result: no" >&5
   6495 echo "${ECHO_T}no" >&6; }
   6496 fi
   6497 
   6498 
   6499 
   6500 # Extract the first word of "Graphviz", so it can be a program name with args.
   6501 set dummy Graphviz; ac_word=$2
   6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6504 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
   6505   echo $ECHO_N "(cached) $ECHO_C" >&6
   6506 else
   6507   case $GRAPHVIZ in
   6508   [\\/]* | ?:[\\/]*)
   6509   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
   6510   ;;
   6511   *)
   6512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6513 for as_dir in $PATH
   6514 do
   6515   IFS=$as_save_IFS
   6516   test -z "$as_dir" && as_dir=.
   6517   for ac_exec_ext in '' $ac_executable_extensions; do
   6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6519     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
   6520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6521     break 2
   6522   fi
   6523 done
   6524 done
   6525 IFS=$as_save_IFS
   6526 
   6527   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
   6528   ;;
   6529 esac
   6530 fi
   6531 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
   6532 if test -n "$GRAPHVIZ"; then
   6533   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
   6534 echo "${ECHO_T}$GRAPHVIZ" >&6; }
   6535 else
   6536   { echo "$as_me:$LINENO: result: no" >&5
   6537 echo "${ECHO_T}no" >&6; }
   6538 fi
   6539 
   6540 
   6541 if test "$GRAPHVIZ" != "echo Graphviz" ; then
   6542 
   6543 cat >>confdefs.h <<\_ACEOF
   6544 #define HAVE_GRAPHVIZ 1
   6545 _ACEOF
   6546 
   6547     if test "$llvm_cv_os_type" = "MingW" ; then
   6548     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6549   fi
   6550 
   6551 cat >>confdefs.h <<_ACEOF
   6552 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
   6553 _ACEOF
   6554 
   6555 fi
   6556 # Extract the first word of "dot", so it can be a program name with args.
   6557 set dummy dot; ac_word=$2
   6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6560 if test "${ac_cv_path_DOT+set}" = set; then
   6561   echo $ECHO_N "(cached) $ECHO_C" >&6
   6562 else
   6563   case $DOT in
   6564   [\\/]* | ?:[\\/]*)
   6565   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
   6566   ;;
   6567   *)
   6568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6569 for as_dir in $PATH
   6570 do
   6571   IFS=$as_save_IFS
   6572   test -z "$as_dir" && as_dir=.
   6573   for ac_exec_ext in '' $ac_executable_extensions; do
   6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6575     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
   6576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6577     break 2
   6578   fi
   6579 done
   6580 done
   6581 IFS=$as_save_IFS
   6582 
   6583   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
   6584   ;;
   6585 esac
   6586 fi
   6587 DOT=$ac_cv_path_DOT
   6588 if test -n "$DOT"; then
   6589   { echo "$as_me:$LINENO: result: $DOT" >&5
   6590 echo "${ECHO_T}$DOT" >&6; }
   6591 else
   6592   { echo "$as_me:$LINENO: result: no" >&5
   6593 echo "${ECHO_T}no" >&6; }
   6594 fi
   6595 
   6596 
   6597 if test "$DOT" != "echo dot" ; then
   6598 
   6599 cat >>confdefs.h <<\_ACEOF
   6600 #define HAVE_DOT 1
   6601 _ACEOF
   6602 
   6603     if test "$llvm_cv_os_type" = "MingW" ; then
   6604     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6605   fi
   6606 
   6607 cat >>confdefs.h <<_ACEOF
   6608 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
   6609 _ACEOF
   6610 
   6611 fi
   6612 # Extract the first word of "fdp", so it can be a program name with args.
   6613 set dummy fdp; ac_word=$2
   6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6616 if test "${ac_cv_path_FDP+set}" = set; then
   6617   echo $ECHO_N "(cached) $ECHO_C" >&6
   6618 else
   6619   case $FDP in
   6620   [\\/]* | ?:[\\/]*)
   6621   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
   6622   ;;
   6623   *)
   6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6625 for as_dir in $PATH
   6626 do
   6627   IFS=$as_save_IFS
   6628   test -z "$as_dir" && as_dir=.
   6629   for ac_exec_ext in '' $ac_executable_extensions; do
   6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6631     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
   6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6633     break 2
   6634   fi
   6635 done
   6636 done
   6637 IFS=$as_save_IFS
   6638 
   6639   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
   6640   ;;
   6641 esac
   6642 fi
   6643 FDP=$ac_cv_path_FDP
   6644 if test -n "$FDP"; then
   6645   { echo "$as_me:$LINENO: result: $FDP" >&5
   6646 echo "${ECHO_T}$FDP" >&6; }
   6647 else
   6648   { echo "$as_me:$LINENO: result: no" >&5
   6649 echo "${ECHO_T}no" >&6; }
   6650 fi
   6651 
   6652 
   6653 if test "$FDP" != "echo fdp" ; then
   6654 
   6655 cat >>confdefs.h <<\_ACEOF
   6656 #define HAVE_FDP 1
   6657 _ACEOF
   6658 
   6659     if test "$llvm_cv_os_type" = "MingW" ; then
   6660     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6661   fi
   6662 
   6663 cat >>confdefs.h <<_ACEOF
   6664 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
   6665 _ACEOF
   6666 
   6667 fi
   6668 # Extract the first word of "neato", so it can be a program name with args.
   6669 set dummy neato; ac_word=$2
   6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6672 if test "${ac_cv_path_NEATO+set}" = set; then
   6673   echo $ECHO_N "(cached) $ECHO_C" >&6
   6674 else
   6675   case $NEATO in
   6676   [\\/]* | ?:[\\/]*)
   6677   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
   6678   ;;
   6679   *)
   6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6681 for as_dir in $PATH
   6682 do
   6683   IFS=$as_save_IFS
   6684   test -z "$as_dir" && as_dir=.
   6685   for ac_exec_ext in '' $ac_executable_extensions; do
   6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6687     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
   6688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6689     break 2
   6690   fi
   6691 done
   6692 done
   6693 IFS=$as_save_IFS
   6694 
   6695   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
   6696   ;;
   6697 esac
   6698 fi
   6699 NEATO=$ac_cv_path_NEATO
   6700 if test -n "$NEATO"; then
   6701   { echo "$as_me:$LINENO: result: $NEATO" >&5
   6702 echo "${ECHO_T}$NEATO" >&6; }
   6703 else
   6704   { echo "$as_me:$LINENO: result: no" >&5
   6705 echo "${ECHO_T}no" >&6; }
   6706 fi
   6707 
   6708 
   6709 if test "$NEATO" != "echo neato" ; then
   6710 
   6711 cat >>confdefs.h <<\_ACEOF
   6712 #define HAVE_NEATO 1
   6713 _ACEOF
   6714 
   6715     if test "$llvm_cv_os_type" = "MingW" ; then
   6716     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6717   fi
   6718 
   6719 cat >>confdefs.h <<_ACEOF
   6720 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
   6721 _ACEOF
   6722 
   6723 fi
   6724 # Extract the first word of "twopi", so it can be a program name with args.
   6725 set dummy twopi; ac_word=$2
   6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6728 if test "${ac_cv_path_TWOPI+set}" = set; then
   6729   echo $ECHO_N "(cached) $ECHO_C" >&6
   6730 else
   6731   case $TWOPI in
   6732   [\\/]* | ?:[\\/]*)
   6733   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
   6734   ;;
   6735   *)
   6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6737 for as_dir in $PATH
   6738 do
   6739   IFS=$as_save_IFS
   6740   test -z "$as_dir" && as_dir=.
   6741   for ac_exec_ext in '' $ac_executable_extensions; do
   6742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6743     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
   6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6745     break 2
   6746   fi
   6747 done
   6748 done
   6749 IFS=$as_save_IFS
   6750 
   6751   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
   6752   ;;
   6753 esac
   6754 fi
   6755 TWOPI=$ac_cv_path_TWOPI
   6756 if test -n "$TWOPI"; then
   6757   { echo "$as_me:$LINENO: result: $TWOPI" >&5
   6758 echo "${ECHO_T}$TWOPI" >&6; }
   6759 else
   6760   { echo "$as_me:$LINENO: result: no" >&5
   6761 echo "${ECHO_T}no" >&6; }
   6762 fi
   6763 
   6764 
   6765 if test "$TWOPI" != "echo twopi" ; then
   6766 
   6767 cat >>confdefs.h <<\_ACEOF
   6768 #define HAVE_TWOPI 1
   6769 _ACEOF
   6770 
   6771     if test "$llvm_cv_os_type" = "MingW" ; then
   6772     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6773   fi
   6774 
   6775 cat >>confdefs.h <<_ACEOF
   6776 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
   6777 _ACEOF
   6778 
   6779 fi
   6780 # Extract the first word of "circo", so it can be a program name with args.
   6781 set dummy circo; ac_word=$2
   6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6784 if test "${ac_cv_path_CIRCO+set}" = set; then
   6785   echo $ECHO_N "(cached) $ECHO_C" >&6
   6786 else
   6787   case $CIRCO in
   6788   [\\/]* | ?:[\\/]*)
   6789   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
   6790   ;;
   6791   *)
   6792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6793 for as_dir in $PATH
   6794 do
   6795   IFS=$as_save_IFS
   6796   test -z "$as_dir" && as_dir=.
   6797   for ac_exec_ext in '' $ac_executable_extensions; do
   6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6799     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
   6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6801     break 2
   6802   fi
   6803 done
   6804 done
   6805 IFS=$as_save_IFS
   6806 
   6807   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
   6808   ;;
   6809 esac
   6810 fi
   6811 CIRCO=$ac_cv_path_CIRCO
   6812 if test -n "$CIRCO"; then
   6813   { echo "$as_me:$LINENO: result: $CIRCO" >&5
   6814 echo "${ECHO_T}$CIRCO" >&6; }
   6815 else
   6816   { echo "$as_me:$LINENO: result: no" >&5
   6817 echo "${ECHO_T}no" >&6; }
   6818 fi
   6819 
   6820 
   6821 if test "$CIRCO" != "echo circo" ; then
   6822 
   6823 cat >>confdefs.h <<\_ACEOF
   6824 #define HAVE_CIRCO 1
   6825 _ACEOF
   6826 
   6827     if test "$llvm_cv_os_type" = "MingW" ; then
   6828     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6829   fi
   6830 
   6831 cat >>confdefs.h <<_ACEOF
   6832 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
   6833 _ACEOF
   6834 
   6835 fi
   6836 for ac_prog in gv gsview32
   6837 do
   6838   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6839 set dummy $ac_prog; ac_word=$2
   6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6842 if test "${ac_cv_path_GV+set}" = set; then
   6843   echo $ECHO_N "(cached) $ECHO_C" >&6
   6844 else
   6845   case $GV in
   6846   [\\/]* | ?:[\\/]*)
   6847   ac_cv_path_GV="$GV" # Let the user override the test with a path.
   6848   ;;
   6849   *)
   6850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6851 for as_dir in $PATH
   6852 do
   6853   IFS=$as_save_IFS
   6854   test -z "$as_dir" && as_dir=.
   6855   for ac_exec_ext in '' $ac_executable_extensions; do
   6856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6857     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
   6858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6859     break 2
   6860   fi
   6861 done
   6862 done
   6863 IFS=$as_save_IFS
   6864 
   6865   ;;
   6866 esac
   6867 fi
   6868 GV=$ac_cv_path_GV
   6869 if test -n "$GV"; then
   6870   { echo "$as_me:$LINENO: result: $GV" >&5
   6871 echo "${ECHO_T}$GV" >&6; }
   6872 else
   6873   { echo "$as_me:$LINENO: result: no" >&5
   6874 echo "${ECHO_T}no" >&6; }
   6875 fi
   6876 
   6877 
   6878   test -n "$GV" && break
   6879 done
   6880 test -n "$GV" || GV="echo gv"
   6881 
   6882 if test "$GV" != "echo gv" ; then
   6883 
   6884 cat >>confdefs.h <<\_ACEOF
   6885 #define HAVE_GV 1
   6886 _ACEOF
   6887 
   6888     if test "$llvm_cv_os_type" = "MingW" ; then
   6889     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6890   fi
   6891 
   6892 cat >>confdefs.h <<_ACEOF
   6893 #define LLVM_PATH_GV "$GV${EXEEXT}"
   6894 _ACEOF
   6895 
   6896 fi
   6897 # Extract the first word of "dotty", so it can be a program name with args.
   6898 set dummy dotty; ac_word=$2
   6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6901 if test "${ac_cv_path_DOTTY+set}" = set; then
   6902   echo $ECHO_N "(cached) $ECHO_C" >&6
   6903 else
   6904   case $DOTTY in
   6905   [\\/]* | ?:[\\/]*)
   6906   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
   6907   ;;
   6908   *)
   6909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6910 for as_dir in $PATH
   6911 do
   6912   IFS=$as_save_IFS
   6913   test -z "$as_dir" && as_dir=.
   6914   for ac_exec_ext in '' $ac_executable_extensions; do
   6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6916     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
   6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6918     break 2
   6919   fi
   6920 done
   6921 done
   6922 IFS=$as_save_IFS
   6923 
   6924   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
   6925   ;;
   6926 esac
   6927 fi
   6928 DOTTY=$ac_cv_path_DOTTY
   6929 if test -n "$DOTTY"; then
   6930   { echo "$as_me:$LINENO: result: $DOTTY" >&5
   6931 echo "${ECHO_T}$DOTTY" >&6; }
   6932 else
   6933   { echo "$as_me:$LINENO: result: no" >&5
   6934 echo "${ECHO_T}no" >&6; }
   6935 fi
   6936 
   6937 
   6938 if test "$DOTTY" != "echo dotty" ; then
   6939 
   6940 cat >>confdefs.h <<\_ACEOF
   6941 #define HAVE_DOTTY 1
   6942 _ACEOF
   6943 
   6944     if test "$llvm_cv_os_type" = "MingW" ; then
   6945     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6946   fi
   6947 
   6948 cat >>confdefs.h <<_ACEOF
   6949 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
   6950 _ACEOF
   6951 
   6952 fi
   6953 # Extract the first word of "xdot.py", so it can be a program name with args.
   6954 set dummy xdot.py; ac_word=$2
   6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6957 if test "${ac_cv_path_XDOT_PY+set}" = set; then
   6958   echo $ECHO_N "(cached) $ECHO_C" >&6
   6959 else
   6960   case $XDOT_PY in
   6961   [\\/]* | ?:[\\/]*)
   6962   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
   6963   ;;
   6964   *)
   6965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6966 for as_dir in $PATH
   6967 do
   6968   IFS=$as_save_IFS
   6969   test -z "$as_dir" && as_dir=.
   6970   for ac_exec_ext in '' $ac_executable_extensions; do
   6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6972     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
   6973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6974     break 2
   6975   fi
   6976 done
   6977 done
   6978 IFS=$as_save_IFS
   6979 
   6980   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
   6981   ;;
   6982 esac
   6983 fi
   6984 XDOT_PY=$ac_cv_path_XDOT_PY
   6985 if test -n "$XDOT_PY"; then
   6986   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
   6987 echo "${ECHO_T}$XDOT_PY" >&6; }
   6988 else
   6989   { echo "$as_me:$LINENO: result: no" >&5
   6990 echo "${ECHO_T}no" >&6; }
   6991 fi
   6992 
   6993 
   6994 if test "$XDOT_PY" != "echo xdot.py" ; then
   6995 
   6996 cat >>confdefs.h <<\_ACEOF
   6997 #define HAVE_XDOT_PY 1
   6998 _ACEOF
   6999 
   7000     if test "$llvm_cv_os_type" = "MingW" ; then
   7001     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   7002   fi
   7003 
   7004 cat >>confdefs.h <<_ACEOF
   7005 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
   7006 _ACEOF
   7007 
   7008 fi
   7009 
   7010 # Find a good install program.  We prefer a C program (faster),
   7011 # so one script is as good as another.  But avoid the broken or
   7012 # incompatible versions:
   7013 # SysV /etc/install, /usr/sbin/install
   7014 # SunOS /usr/etc/install
   7015 # IRIX /sbin/install
   7016 # AIX /bin/install
   7017 # AmigaOS /C/install, which installs bootblocks on floppy discs
   7018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   7019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   7020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   7021 # OS/2's system install, which has a completely different semantic
   7022 # ./install, which can be erroneously created by make from ./install.sh.
   7023 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   7024 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   7025 if test -z "$INSTALL"; then
   7026 if test "${ac_cv_path_install+set}" = set; then
   7027   echo $ECHO_N "(cached) $ECHO_C" >&6
   7028 else
   7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7030 for as_dir in $PATH
   7031 do
   7032   IFS=$as_save_IFS
   7033   test -z "$as_dir" && as_dir=.
   7034   # Account for people who put trailing slashes in PATH elements.
   7035 case $as_dir/ in
   7036   ./ | .// | /cC/* | \
   7037   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   7038   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   7039   /usr/ucb/* ) ;;
   7040   *)
   7041     # OSF1 and SCO ODT 3.0 have their own names for install.
   7042     # Don't use installbsd from OSF since it installs stuff as root
   7043     # by default.
   7044     for ac_prog in ginstall scoinst install; do
   7045       for ac_exec_ext in '' $ac_executable_extensions; do
   7046 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
   7047 	  if test $ac_prog = install &&
   7048 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7049 	    # AIX install.  It has an incompatible calling convention.
   7050 	    :
   7051 	  elif test $ac_prog = install &&
   7052 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7053 	    # program-specific install script used by HP pwplus--don't use.
   7054 	    :
   7055 	  else
   7056 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   7057 	    break 3
   7058 	  fi
   7059 	fi
   7060       done
   7061     done
   7062     ;;
   7063 esac
   7064 done
   7065 IFS=$as_save_IFS
   7066 
   7067 
   7068 fi
   7069   if test "${ac_cv_path_install+set}" = set; then
   7070     INSTALL=$ac_cv_path_install
   7071   else
   7072     # As a last resort, use the slow shell script.  Don't cache a
   7073     # value for INSTALL within a source directory, because that will
   7074     # break other packages using the cache if that directory is
   7075     # removed, or if the value is a relative name.
   7076     INSTALL=$ac_install_sh
   7077   fi
   7078 fi
   7079 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   7080 echo "${ECHO_T}$INSTALL" >&6; }
   7081 
   7082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   7083 # It thinks the first close brace ends the variable substitution.
   7084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   7085 
   7086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   7087 
   7088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   7089 
   7090 case "$INSTALL" in
   7091  [\\/$]* | ?:[\\/]* ) ;;
   7092  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
   7093 esac
   7094 
   7095 # Extract the first word of "bzip2", so it can be a program name with args.
   7096 set dummy bzip2; ac_word=$2
   7097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7099 if test "${ac_cv_path_BZIP2+set}" = set; then
   7100   echo $ECHO_N "(cached) $ECHO_C" >&6
   7101 else
   7102   case $BZIP2 in
   7103   [\\/]* | ?:[\\/]*)
   7104   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
   7105   ;;
   7106   *)
   7107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7108 for as_dir in $PATH
   7109 do
   7110   IFS=$as_save_IFS
   7111   test -z "$as_dir" && as_dir=.
   7112   for ac_exec_ext in '' $ac_executable_extensions; do
   7113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7114     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
   7115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7116     break 2
   7117   fi
   7118 done
   7119 done
   7120 IFS=$as_save_IFS
   7121 
   7122   ;;
   7123 esac
   7124 fi
   7125 BZIP2=$ac_cv_path_BZIP2
   7126 if test -n "$BZIP2"; then
   7127   { echo "$as_me:$LINENO: result: $BZIP2" >&5
   7128 echo "${ECHO_T}$BZIP2" >&6; }
   7129 else
   7130   { echo "$as_me:$LINENO: result: no" >&5
   7131 echo "${ECHO_T}no" >&6; }
   7132 fi
   7133 
   7134 
   7135 # Extract the first word of "cat", so it can be a program name with args.
   7136 set dummy cat; ac_word=$2
   7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7139 if test "${ac_cv_path_CAT+set}" = set; then
   7140   echo $ECHO_N "(cached) $ECHO_C" >&6
   7141 else
   7142   case $CAT in
   7143   [\\/]* | ?:[\\/]*)
   7144   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
   7145   ;;
   7146   *)
   7147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7148 for as_dir in $PATH
   7149 do
   7150   IFS=$as_save_IFS
   7151   test -z "$as_dir" && as_dir=.
   7152   for ac_exec_ext in '' $ac_executable_extensions; do
   7153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7154     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   7155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7156     break 2
   7157   fi
   7158 done
   7159 done
   7160 IFS=$as_save_IFS
   7161 
   7162   ;;
   7163 esac
   7164 fi
   7165 CAT=$ac_cv_path_CAT
   7166 if test -n "$CAT"; then
   7167   { echo "$as_me:$LINENO: result: $CAT" >&5
   7168 echo "${ECHO_T}$CAT" >&6; }
   7169 else
   7170   { echo "$as_me:$LINENO: result: no" >&5
   7171 echo "${ECHO_T}no" >&6; }
   7172 fi
   7173 
   7174 
   7175 # Extract the first word of "doxygen", so it can be a program name with args.
   7176 set dummy doxygen; ac_word=$2
   7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7179 if test "${ac_cv_path_DOXYGEN+set}" = set; then
   7180   echo $ECHO_N "(cached) $ECHO_C" >&6
   7181 else
   7182   case $DOXYGEN in
   7183   [\\/]* | ?:[\\/]*)
   7184   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   7185   ;;
   7186   *)
   7187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7188 for as_dir in $PATH
   7189 do
   7190   IFS=$as_save_IFS
   7191   test -z "$as_dir" && as_dir=.
   7192   for ac_exec_ext in '' $ac_executable_extensions; do
   7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7194     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   7195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7196     break 2
   7197   fi
   7198 done
   7199 done
   7200 IFS=$as_save_IFS
   7201 
   7202   ;;
   7203 esac
   7204 fi
   7205 DOXYGEN=$ac_cv_path_DOXYGEN
   7206 if test -n "$DOXYGEN"; then
   7207   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
   7208 echo "${ECHO_T}$DOXYGEN" >&6; }
   7209 else
   7210   { echo "$as_me:$LINENO: result: no" >&5
   7211 echo "${ECHO_T}no" >&6; }
   7212 fi
   7213 
   7214 
   7215 # Extract the first word of "groff", so it can be a program name with args.
   7216 set dummy groff; ac_word=$2
   7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7219 if test "${ac_cv_path_GROFF+set}" = set; then
   7220   echo $ECHO_N "(cached) $ECHO_C" >&6
   7221 else
   7222   case $GROFF in
   7223   [\\/]* | ?:[\\/]*)
   7224   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
   7225   ;;
   7226   *)
   7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7228 for as_dir in $PATH
   7229 do
   7230   IFS=$as_save_IFS
   7231   test -z "$as_dir" && as_dir=.
   7232   for ac_exec_ext in '' $ac_executable_extensions; do
   7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7234     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   7235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7236     break 2
   7237   fi
   7238 done
   7239 done
   7240 IFS=$as_save_IFS
   7241 
   7242   ;;
   7243 esac
   7244 fi
   7245 GROFF=$ac_cv_path_GROFF
   7246 if test -n "$GROFF"; then
   7247   { echo "$as_me:$LINENO: result: $GROFF" >&5
   7248 echo "${ECHO_T}$GROFF" >&6; }
   7249 else
   7250   { echo "$as_me:$LINENO: result: no" >&5
   7251 echo "${ECHO_T}no" >&6; }
   7252 fi
   7253 
   7254 
   7255 # Extract the first word of "gzip", so it can be a program name with args.
   7256 set dummy gzip; ac_word=$2
   7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7259 if test "${ac_cv_path_GZIPBIN+set}" = set; then
   7260   echo $ECHO_N "(cached) $ECHO_C" >&6
   7261 else
   7262   case $GZIPBIN in
   7263   [\\/]* | ?:[\\/]*)
   7264   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
   7265   ;;
   7266   *)
   7267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7268 for as_dir in $PATH
   7269 do
   7270   IFS=$as_save_IFS
   7271   test -z "$as_dir" && as_dir=.
   7272   for ac_exec_ext in '' $ac_executable_extensions; do
   7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7274     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
   7275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7276     break 2
   7277   fi
   7278 done
   7279 done
   7280 IFS=$as_save_IFS
   7281 
   7282   ;;
   7283 esac
   7284 fi
   7285 GZIPBIN=$ac_cv_path_GZIPBIN
   7286 if test -n "$GZIPBIN"; then
   7287   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
   7288 echo "${ECHO_T}$GZIPBIN" >&6; }
   7289 else
   7290   { echo "$as_me:$LINENO: result: no" >&5
   7291 echo "${ECHO_T}no" >&6; }
   7292 fi
   7293 
   7294 
   7295 # Extract the first word of "pdfroff", so it can be a program name with args.
   7296 set dummy pdfroff; ac_word=$2
   7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7299 if test "${ac_cv_path_PDFROFF+set}" = set; then
   7300   echo $ECHO_N "(cached) $ECHO_C" >&6
   7301 else
   7302   case $PDFROFF in
   7303   [\\/]* | ?:[\\/]*)
   7304   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
   7305   ;;
   7306   *)
   7307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7308 for as_dir in $PATH
   7309 do
   7310   IFS=$as_save_IFS
   7311   test -z "$as_dir" && as_dir=.
   7312   for ac_exec_ext in '' $ac_executable_extensions; do
   7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7314     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
   7315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7316     break 2
   7317   fi
   7318 done
   7319 done
   7320 IFS=$as_save_IFS
   7321 
   7322   ;;
   7323 esac
   7324 fi
   7325 PDFROFF=$ac_cv_path_PDFROFF
   7326 if test -n "$PDFROFF"; then
   7327   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
   7328 echo "${ECHO_T}$PDFROFF" >&6; }
   7329 else
   7330   { echo "$as_me:$LINENO: result: no" >&5
   7331 echo "${ECHO_T}no" >&6; }
   7332 fi
   7333 
   7334 
   7335 # Extract the first word of "zip", so it can be a program name with args.
   7336 set dummy zip; ac_word=$2
   7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7339 if test "${ac_cv_path_ZIP+set}" = set; then
   7340   echo $ECHO_N "(cached) $ECHO_C" >&6
   7341 else
   7342   case $ZIP in
   7343   [\\/]* | ?:[\\/]*)
   7344   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
   7345   ;;
   7346   *)
   7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7348 for as_dir in $PATH
   7349 do
   7350   IFS=$as_save_IFS
   7351   test -z "$as_dir" && as_dir=.
   7352   for ac_exec_ext in '' $ac_executable_extensions; do
   7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7354     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
   7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7356     break 2
   7357   fi
   7358 done
   7359 done
   7360 IFS=$as_save_IFS
   7361 
   7362   ;;
   7363 esac
   7364 fi
   7365 ZIP=$ac_cv_path_ZIP
   7366 if test -n "$ZIP"; then
   7367   { echo "$as_me:$LINENO: result: $ZIP" >&5
   7368 echo "${ECHO_T}$ZIP" >&6; }
   7369 else
   7370   { echo "$as_me:$LINENO: result: no" >&5
   7371 echo "${ECHO_T}no" >&6; }
   7372 fi
   7373 
   7374 
   7375 for ac_prog in ocamlc
   7376 do
   7377   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7378 set dummy $ac_prog; ac_word=$2
   7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7381 if test "${ac_cv_path_OCAMLC+set}" = set; then
   7382   echo $ECHO_N "(cached) $ECHO_C" >&6
   7383 else
   7384   case $OCAMLC in
   7385   [\\/]* | ?:[\\/]*)
   7386   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
   7387   ;;
   7388   *)
   7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7390 for as_dir in $PATH
   7391 do
   7392   IFS=$as_save_IFS
   7393   test -z "$as_dir" && as_dir=.
   7394   for ac_exec_ext in '' $ac_executable_extensions; do
   7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7396     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
   7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7398     break 2
   7399   fi
   7400 done
   7401 done
   7402 IFS=$as_save_IFS
   7403 
   7404   ;;
   7405 esac
   7406 fi
   7407 OCAMLC=$ac_cv_path_OCAMLC
   7408 if test -n "$OCAMLC"; then
   7409   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
   7410 echo "${ECHO_T}$OCAMLC" >&6; }
   7411 else
   7412   { echo "$as_me:$LINENO: result: no" >&5
   7413 echo "${ECHO_T}no" >&6; }
   7414 fi
   7415 
   7416 
   7417   test -n "$OCAMLC" && break
   7418 done
   7419 
   7420 for ac_prog in ocamlopt
   7421 do
   7422   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7423 set dummy $ac_prog; ac_word=$2
   7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7426 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
   7427   echo $ECHO_N "(cached) $ECHO_C" >&6
   7428 else
   7429   case $OCAMLOPT in
   7430   [\\/]* | ?:[\\/]*)
   7431   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
   7432   ;;
   7433   *)
   7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7435 for as_dir in $PATH
   7436 do
   7437   IFS=$as_save_IFS
   7438   test -z "$as_dir" && as_dir=.
   7439   for ac_exec_ext in '' $ac_executable_extensions; do
   7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7441     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
   7442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7443     break 2
   7444   fi
   7445 done
   7446 done
   7447 IFS=$as_save_IFS
   7448 
   7449   ;;
   7450 esac
   7451 fi
   7452 OCAMLOPT=$ac_cv_path_OCAMLOPT
   7453 if test -n "$OCAMLOPT"; then
   7454   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
   7455 echo "${ECHO_T}$OCAMLOPT" >&6; }
   7456 else
   7457   { echo "$as_me:$LINENO: result: no" >&5
   7458 echo "${ECHO_T}no" >&6; }
   7459 fi
   7460 
   7461 
   7462   test -n "$OCAMLOPT" && break
   7463 done
   7464 
   7465 for ac_prog in ocamldep
   7466 do
   7467   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7468 set dummy $ac_prog; ac_word=$2
   7469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7471 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
   7472   echo $ECHO_N "(cached) $ECHO_C" >&6
   7473 else
   7474   case $OCAMLDEP in
   7475   [\\/]* | ?:[\\/]*)
   7476   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
   7477   ;;
   7478   *)
   7479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7480 for as_dir in $PATH
   7481 do
   7482   IFS=$as_save_IFS
   7483   test -z "$as_dir" && as_dir=.
   7484   for ac_exec_ext in '' $ac_executable_extensions; do
   7485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7486     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
   7487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7488     break 2
   7489   fi
   7490 done
   7491 done
   7492 IFS=$as_save_IFS
   7493 
   7494   ;;
   7495 esac
   7496 fi
   7497 OCAMLDEP=$ac_cv_path_OCAMLDEP
   7498 if test -n "$OCAMLDEP"; then
   7499   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
   7500 echo "${ECHO_T}$OCAMLDEP" >&6; }
   7501 else
   7502   { echo "$as_me:$LINENO: result: no" >&5
   7503 echo "${ECHO_T}no" >&6; }
   7504 fi
   7505 
   7506 
   7507   test -n "$OCAMLDEP" && break
   7508 done
   7509 
   7510 for ac_prog in ocamldoc
   7511 do
   7512   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7513 set dummy $ac_prog; ac_word=$2
   7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7516 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
   7517   echo $ECHO_N "(cached) $ECHO_C" >&6
   7518 else
   7519   case $OCAMLDOC in
   7520   [\\/]* | ?:[\\/]*)
   7521   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
   7522   ;;
   7523   *)
   7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7525 for as_dir in $PATH
   7526 do
   7527   IFS=$as_save_IFS
   7528   test -z "$as_dir" && as_dir=.
   7529   for ac_exec_ext in '' $ac_executable_extensions; do
   7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7531     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
   7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7533     break 2
   7534   fi
   7535 done
   7536 done
   7537 IFS=$as_save_IFS
   7538 
   7539   ;;
   7540 esac
   7541 fi
   7542 OCAMLDOC=$ac_cv_path_OCAMLDOC
   7543 if test -n "$OCAMLDOC"; then
   7544   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
   7545 echo "${ECHO_T}$OCAMLDOC" >&6; }
   7546 else
   7547   { echo "$as_me:$LINENO: result: no" >&5
   7548 echo "${ECHO_T}no" >&6; }
   7549 fi
   7550 
   7551 
   7552   test -n "$OCAMLDOC" && break
   7553 done
   7554 
   7555 for ac_prog in gas as
   7556 do
   7557   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7558 set dummy $ac_prog; ac_word=$2
   7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7561 if test "${ac_cv_path_GAS+set}" = set; then
   7562   echo $ECHO_N "(cached) $ECHO_C" >&6
   7563 else
   7564   case $GAS in
   7565   [\\/]* | ?:[\\/]*)
   7566   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
   7567   ;;
   7568   *)
   7569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7570 for as_dir in $PATH
   7571 do
   7572   IFS=$as_save_IFS
   7573   test -z "$as_dir" && as_dir=.
   7574   for ac_exec_ext in '' $ac_executable_extensions; do
   7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7576     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
   7577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7578     break 2
   7579   fi
   7580 done
   7581 done
   7582 IFS=$as_save_IFS
   7583 
   7584   ;;
   7585 esac
   7586 fi
   7587 GAS=$ac_cv_path_GAS
   7588 if test -n "$GAS"; then
   7589   { echo "$as_me:$LINENO: result: $GAS" >&5
   7590 echo "${ECHO_T}$GAS" >&6; }
   7591 else
   7592   { echo "$as_me:$LINENO: result: no" >&5
   7593 echo "${ECHO_T}no" >&6; }
   7594 fi
   7595 
   7596 
   7597   test -n "$GAS" && break
   7598 done
   7599 
   7600 
   7601 { echo "$as_me:$LINENO: checking for linker version" >&5
   7602 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
   7603 if test "${llvm_cv_link_version+set}" = set; then
   7604   echo $ECHO_N "(cached) $ECHO_C" >&6
   7605 else
   7606 
   7607    version_string="$(ld -v 2>&1 | head -1)"
   7608 
   7609    # Check for ld64.
   7610    if (echo "$version_string" | grep -q "ld64"); then
   7611      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
   7612    else
   7613      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
   7614    fi
   7615 
   7616 fi
   7617 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
   7618 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
   7619 
   7620 cat >>confdefs.h <<_ACEOF
   7621 #define HOST_LINK_VERSION "$llvm_cv_link_version"
   7622 _ACEOF
   7623 
   7624 
   7625 
   7626 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
   7627 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
   7628 if test "${llvm_cv_link_use_r+set}" = set; then
   7629   echo $ECHO_N "(cached) $ECHO_C" >&6
   7630 else
   7631    ac_ext=c
   7632 ac_cpp='$CPP $CPPFLAGS'
   7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7636 
   7637   oldcflags="$CFLAGS"
   7638   CFLAGS="$CFLAGS -Wl,-R."
   7639   cat >conftest.$ac_ext <<_ACEOF
   7640 /* confdefs.h.  */
   7641 _ACEOF
   7642 cat confdefs.h >>conftest.$ac_ext
   7643 cat >>conftest.$ac_ext <<_ACEOF
   7644 /* end confdefs.h.  */
   7645 
   7646 int
   7647 main ()
   7648 {
   7649 
   7650   ;
   7651   return 0;
   7652 }
   7653 _ACEOF
   7654 rm -f conftest.$ac_objext conftest$ac_exeext
   7655 if { (ac_try="$ac_link"
   7656 case "(($ac_try" in
   7657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7658   *) ac_try_echo=$ac_try;;
   7659 esac
   7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7661   (eval "$ac_link") 2>conftest.er1
   7662   ac_status=$?
   7663   grep -v '^ *+' conftest.er1 >conftest.err
   7664   rm -f conftest.er1
   7665   cat conftest.err >&5
   7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7667   (exit $ac_status); } &&
   7668 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7669   { (case "(($ac_try" in
   7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7671   *) ac_try_echo=$ac_try;;
   7672 esac
   7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7674   (eval "$ac_try") 2>&5
   7675   ac_status=$?
   7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7677   (exit $ac_status); }; } &&
   7678 	 { ac_try='test -s conftest$ac_exeext'
   7679   { (case "(($ac_try" in
   7680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7681   *) ac_try_echo=$ac_try;;
   7682 esac
   7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7684   (eval "$ac_try") 2>&5
   7685   ac_status=$?
   7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7687   (exit $ac_status); }; }; then
   7688   llvm_cv_link_use_r=yes
   7689 else
   7690   echo "$as_me: failed program was:" >&5
   7691 sed 's/^/| /' conftest.$ac_ext >&5
   7692 
   7693 	llvm_cv_link_use_r=no
   7694 fi
   7695 
   7696 rm -f core conftest.err conftest.$ac_objext \
   7697       conftest$ac_exeext conftest.$ac_ext
   7698   CFLAGS="$oldcflags"
   7699   ac_ext=c
   7700 ac_cpp='$CPP $CPPFLAGS'
   7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7704 
   7705 
   7706 fi
   7707 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
   7708 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
   7709 if test "$llvm_cv_link_use_r" = yes ; then
   7710 
   7711 cat >>confdefs.h <<\_ACEOF
   7712 #define HAVE_LINK_R 1
   7713 _ACEOF
   7714 
   7715   fi
   7716 
   7717 
   7718 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
   7719 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
   7720 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
   7721   echo $ECHO_N "(cached) $ECHO_C" >&6
   7722 else
   7723    ac_ext=c
   7724 ac_cpp='$CPP $CPPFLAGS'
   7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7728 
   7729   oldcflags="$CFLAGS"
   7730   CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7731   cat >conftest.$ac_ext <<_ACEOF
   7732 /* confdefs.h.  */
   7733 _ACEOF
   7734 cat confdefs.h >>conftest.$ac_ext
   7735 cat >>conftest.$ac_ext <<_ACEOF
   7736 /* end confdefs.h.  */
   7737 
   7738 int
   7739 main ()
   7740 {
   7741 
   7742   ;
   7743   return 0;
   7744 }
   7745 _ACEOF
   7746 rm -f conftest.$ac_objext conftest$ac_exeext
   7747 if { (ac_try="$ac_link"
   7748 case "(($ac_try" in
   7749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7750   *) ac_try_echo=$ac_try;;
   7751 esac
   7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7753   (eval "$ac_link") 2>conftest.er1
   7754   ac_status=$?
   7755   grep -v '^ *+' conftest.er1 >conftest.err
   7756   rm -f conftest.er1
   7757   cat conftest.err >&5
   7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7759   (exit $ac_status); } &&
   7760 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7761   { (case "(($ac_try" in
   7762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7763   *) ac_try_echo=$ac_try;;
   7764 esac
   7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7766   (eval "$ac_try") 2>&5
   7767   ac_status=$?
   7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7769   (exit $ac_status); }; } &&
   7770 	 { ac_try='test -s conftest$ac_exeext'
   7771   { (case "(($ac_try" in
   7772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7773   *) ac_try_echo=$ac_try;;
   7774 esac
   7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7776   (eval "$ac_try") 2>&5
   7777   ac_status=$?
   7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7779   (exit $ac_status); }; }; then
   7780   llvm_cv_link_use_export_dynamic=yes
   7781 else
   7782   echo "$as_me: failed program was:" >&5
   7783 sed 's/^/| /' conftest.$ac_ext >&5
   7784 
   7785 	llvm_cv_link_use_export_dynamic=no
   7786 fi
   7787 
   7788 rm -f core conftest.err conftest.$ac_objext \
   7789       conftest$ac_exeext conftest.$ac_ext
   7790   CFLAGS="$oldcflags"
   7791   ac_ext=c
   7792 ac_cpp='$CPP $CPPFLAGS'
   7793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7796 
   7797 
   7798 fi
   7799 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
   7800 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
   7801 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
   7802 
   7803 cat >>confdefs.h <<\_ACEOF
   7804 #define HAVE_LINK_EXPORT_DYNAMIC 1
   7805 _ACEOF
   7806 
   7807   fi
   7808 
   7809 
   7810 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
   7811 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
   7812 if test "${llvm_cv_link_use_version_script+set}" = set; then
   7813   echo $ECHO_N "(cached) $ECHO_C" >&6
   7814 else
   7815    ac_ext=c
   7816 ac_cpp='$CPP $CPPFLAGS'
   7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7820 
   7821   oldcflags="$CFLAGS"
   7822 
   7823   # The following code is from the autoconf manual,
   7824   # "11.13: Limitations of Usual Tools".
   7825   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
   7826   # Use mktemp if possible; otherwise fall back on mkdir,
   7827   # with $RANDOM to make collisions less likely.
   7828   : ${TMPDIR=/tmp}
   7829   {
   7830     tmp=`
   7831       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   7832     ` &&
   7833     test -n "$tmp" && test -d "$tmp"
   7834   } || {
   7835     tmp=$TMPDIR/foo$$-$RANDOM
   7836     (umask 077 && mkdir "$tmp")
   7837   } || exit $?
   7838 
   7839   echo "{" > "$tmp/export.map"
   7840   echo "  global: main;" >> "$tmp/export.map"
   7841   echo "  local: *;" >> "$tmp/export.map"
   7842   echo "};" >> "$tmp/export.map"
   7843 
   7844   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
   7845   cat >conftest.$ac_ext <<_ACEOF
   7846 /* confdefs.h.  */
   7847 _ACEOF
   7848 cat confdefs.h >>conftest.$ac_ext
   7849 cat >>conftest.$ac_ext <<_ACEOF
   7850 /* end confdefs.h.  */
   7851 
   7852 int
   7853 main ()
   7854 {
   7855 
   7856   ;
   7857   return 0;
   7858 }
   7859 _ACEOF
   7860 rm -f conftest.$ac_objext conftest$ac_exeext
   7861 if { (ac_try="$ac_link"
   7862 case "(($ac_try" in
   7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7864   *) ac_try_echo=$ac_try;;
   7865 esac
   7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7867   (eval "$ac_link") 2>conftest.er1
   7868   ac_status=$?
   7869   grep -v '^ *+' conftest.er1 >conftest.err
   7870   rm -f conftest.er1
   7871   cat conftest.err >&5
   7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7873   (exit $ac_status); } &&
   7874 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7875   { (case "(($ac_try" in
   7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7877   *) ac_try_echo=$ac_try;;
   7878 esac
   7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7880   (eval "$ac_try") 2>&5
   7881   ac_status=$?
   7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7883   (exit $ac_status); }; } &&
   7884 	 { ac_try='test -s conftest$ac_exeext'
   7885   { (case "(($ac_try" in
   7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7887   *) ac_try_echo=$ac_try;;
   7888 esac
   7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7890   (eval "$ac_try") 2>&5
   7891   ac_status=$?
   7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7893   (exit $ac_status); }; }; then
   7894   llvm_cv_link_use_version_script=yes
   7895 else
   7896   echo "$as_me: failed program was:" >&5
   7897 sed 's/^/| /' conftest.$ac_ext >&5
   7898 
   7899 	llvm_cv_link_use_version_script=no
   7900 fi
   7901 
   7902 rm -f core conftest.err conftest.$ac_objext \
   7903       conftest$ac_exeext conftest.$ac_ext
   7904   rm "$tmp/export.map"
   7905   rmdir "$tmp"
   7906   CFLAGS="$oldcflags"
   7907   ac_ext=c
   7908 ac_cpp='$CPP $CPPFLAGS'
   7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7912 
   7913 
   7914 fi
   7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
   7916 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
   7917 if test "$llvm_cv_link_use_version_script" = yes ; then
   7918   HAVE_LINK_VERSION_SCRIPT=1
   7919 
   7920   fi
   7921 
   7922 
   7923 
   7924 
   7925 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   7926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   7927 if test "${ac_cv_c_const+set}" = set; then
   7928   echo $ECHO_N "(cached) $ECHO_C" >&6
   7929 else
   7930   cat >conftest.$ac_ext <<_ACEOF
   7931 /* confdefs.h.  */
   7932 _ACEOF
   7933 cat confdefs.h >>conftest.$ac_ext
   7934 cat >>conftest.$ac_ext <<_ACEOF
   7935 /* end confdefs.h.  */
   7936 
   7937 int
   7938 main ()
   7939 {
   7940 /* FIXME: Include the comments suggested by Paul. */
   7941 #ifndef __cplusplus
   7942   /* Ultrix mips cc rejects this.  */
   7943   typedef int charset[2];
   7944   const charset x;
   7945   /* SunOS 4.1.1 cc rejects this.  */
   7946   char const *const *ccp;
   7947   char **p;
   7948   /* NEC SVR4.0.2 mips cc rejects this.  */
   7949   struct point {int x, y;};
   7950   static struct point const zero = {0,0};
   7951   /* AIX XL C 1.02.0.0 rejects this.
   7952      It does not let you subtract one const X* pointer from another in
   7953      an arm of an if-expression whose if-part is not a constant
   7954      expression */
   7955   const char *g = "string";
   7956   ccp = &g + (g ? g-g : 0);
   7957   /* HPUX 7.0 cc rejects these. */
   7958   ++ccp;
   7959   p = (char**) ccp;
   7960   ccp = (char const *const *) p;
   7961   { /* SCO 3.2v4 cc rejects this.  */
   7962     char *t;
   7963     char const *s = 0 ? (char *) 0 : (char const *) 0;
   7964 
   7965     *t++ = 0;
   7966     if (s) return 0;
   7967   }
   7968   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   7969     int x[] = {25, 17};
   7970     const int *foo = &x[0];
   7971     ++foo;
   7972   }
   7973   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   7974     typedef const int *iptr;
   7975     iptr p = 0;
   7976     ++p;
   7977   }
   7978   { /* AIX XL C 1.02.0.0 rejects this saying
   7979        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   7980     struct s { int j; const int *ap[3]; };
   7981     struct s *b; b->j = 5;
   7982   }
   7983   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   7984     const int foo = 10;
   7985     if (!foo) return 0;
   7986   }
   7987   return !x[0] && !zero.x;
   7988 #endif
   7989 
   7990   ;
   7991   return 0;
   7992 }
   7993 _ACEOF
   7994 rm -f conftest.$ac_objext
   7995 if { (ac_try="$ac_compile"
   7996 case "(($ac_try" in
   7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7998   *) ac_try_echo=$ac_try;;
   7999 esac
   8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8001   (eval "$ac_compile") 2>conftest.er1
   8002   ac_status=$?
   8003   grep -v '^ *+' conftest.er1 >conftest.err
   8004   rm -f conftest.er1
   8005   cat conftest.err >&5
   8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8007   (exit $ac_status); } &&
   8008 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8009   { (case "(($ac_try" in
   8010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8011   *) ac_try_echo=$ac_try;;
   8012 esac
   8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8014   (eval "$ac_try") 2>&5
   8015   ac_status=$?
   8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8017   (exit $ac_status); }; } &&
   8018 	 { ac_try='test -s conftest.$ac_objext'
   8019   { (case "(($ac_try" in
   8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8021   *) ac_try_echo=$ac_try;;
   8022 esac
   8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8024   (eval "$ac_try") 2>&5
   8025   ac_status=$?
   8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8027   (exit $ac_status); }; }; then
   8028   ac_cv_c_const=yes
   8029 else
   8030   echo "$as_me: failed program was:" >&5
   8031 sed 's/^/| /' conftest.$ac_ext >&5
   8032 
   8033 	ac_cv_c_const=no
   8034 fi
   8035 
   8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8037 fi
   8038 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   8039 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   8040 if test $ac_cv_c_const = no; then
   8041 
   8042 cat >>confdefs.h <<\_ACEOF
   8043 #define const
   8044 _ACEOF
   8045 
   8046 fi
   8047 
   8048 
   8049 
   8050 
   8051 
   8052 
   8053 ac_header_dirent=no
   8054 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   8055   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   8056 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   8057 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   8058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8059   echo $ECHO_N "(cached) $ECHO_C" >&6
   8060 else
   8061   cat >conftest.$ac_ext <<_ACEOF
   8062 /* confdefs.h.  */
   8063 _ACEOF
   8064 cat confdefs.h >>conftest.$ac_ext
   8065 cat >>conftest.$ac_ext <<_ACEOF
   8066 /* end confdefs.h.  */
   8067 #include <sys/types.h>
   8068 #include <$ac_hdr>
   8069 
   8070 int
   8071 main ()
   8072 {
   8073 if ((DIR *) 0)
   8074 return 0;
   8075   ;
   8076   return 0;
   8077 }
   8078 _ACEOF
   8079 rm -f conftest.$ac_objext
   8080 if { (ac_try="$ac_compile"
   8081 case "(($ac_try" in
   8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8083   *) ac_try_echo=$ac_try;;
   8084 esac
   8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8086   (eval "$ac_compile") 2>conftest.er1
   8087   ac_status=$?
   8088   grep -v '^ *+' conftest.er1 >conftest.err
   8089   rm -f conftest.er1
   8090   cat conftest.err >&5
   8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8092   (exit $ac_status); } &&
   8093 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8094   { (case "(($ac_try" in
   8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8096   *) ac_try_echo=$ac_try;;
   8097 esac
   8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8099   (eval "$ac_try") 2>&5
   8100   ac_status=$?
   8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8102   (exit $ac_status); }; } &&
   8103 	 { ac_try='test -s conftest.$ac_objext'
   8104   { (case "(($ac_try" in
   8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8106   *) ac_try_echo=$ac_try;;
   8107 esac
   8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8109   (eval "$ac_try") 2>&5
   8110   ac_status=$?
   8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8112   (exit $ac_status); }; }; then
   8113   eval "$as_ac_Header=yes"
   8114 else
   8115   echo "$as_me: failed program was:" >&5
   8116 sed 's/^/| /' conftest.$ac_ext >&5
   8117 
   8118 	eval "$as_ac_Header=no"
   8119 fi
   8120 
   8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8122 fi
   8123 ac_res=`eval echo '${'$as_ac_Header'}'`
   8124 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8125 echo "${ECHO_T}$ac_res" >&6; }
   8126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8127   cat >>confdefs.h <<_ACEOF
   8128 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   8129 _ACEOF
   8130 
   8131 ac_header_dirent=$ac_hdr; break
   8132 fi
   8133 
   8134 done
   8135 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   8136 if test $ac_header_dirent = dirent.h; then
   8137   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8138 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8139 if test "${ac_cv_search_opendir+set}" = set; then
   8140   echo $ECHO_N "(cached) $ECHO_C" >&6
   8141 else
   8142   ac_func_search_save_LIBS=$LIBS
   8143 cat >conftest.$ac_ext <<_ACEOF
   8144 /* confdefs.h.  */
   8145 _ACEOF
   8146 cat confdefs.h >>conftest.$ac_ext
   8147 cat >>conftest.$ac_ext <<_ACEOF
   8148 /* end confdefs.h.  */
   8149 
   8150 /* Override any GCC internal prototype to avoid an error.
   8151    Use char because int might match the return type of a GCC
   8152    builtin and then its argument prototype would still apply.  */
   8153 #ifdef __cplusplus
   8154 extern "C"
   8155 #endif
   8156 char opendir ();
   8157 int
   8158 main ()
   8159 {
   8160 return opendir ();
   8161   ;
   8162   return 0;
   8163 }
   8164 _ACEOF
   8165 for ac_lib in '' dir; do
   8166   if test -z "$ac_lib"; then
   8167     ac_res="none required"
   8168   else
   8169     ac_res=-l$ac_lib
   8170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8171   fi
   8172   rm -f conftest.$ac_objext conftest$ac_exeext
   8173 if { (ac_try="$ac_link"
   8174 case "(($ac_try" in
   8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8176   *) ac_try_echo=$ac_try;;
   8177 esac
   8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8179   (eval "$ac_link") 2>conftest.er1
   8180   ac_status=$?
   8181   grep -v '^ *+' conftest.er1 >conftest.err
   8182   rm -f conftest.er1
   8183   cat conftest.err >&5
   8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8185   (exit $ac_status); } &&
   8186 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8187   { (case "(($ac_try" in
   8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8189   *) ac_try_echo=$ac_try;;
   8190 esac
   8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8192   (eval "$ac_try") 2>&5
   8193   ac_status=$?
   8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8195   (exit $ac_status); }; } &&
   8196 	 { ac_try='test -s conftest$ac_exeext'
   8197   { (case "(($ac_try" in
   8198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8199   *) ac_try_echo=$ac_try;;
   8200 esac
   8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8202   (eval "$ac_try") 2>&5
   8203   ac_status=$?
   8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8205   (exit $ac_status); }; }; then
   8206   ac_cv_search_opendir=$ac_res
   8207 else
   8208   echo "$as_me: failed program was:" >&5
   8209 sed 's/^/| /' conftest.$ac_ext >&5
   8210 
   8211 
   8212 fi
   8213 
   8214 rm -f core conftest.err conftest.$ac_objext \
   8215       conftest$ac_exeext
   8216   if test "${ac_cv_search_opendir+set}" = set; then
   8217   break
   8218 fi
   8219 done
   8220 if test "${ac_cv_search_opendir+set}" = set; then
   8221   :
   8222 else
   8223   ac_cv_search_opendir=no
   8224 fi
   8225 rm conftest.$ac_ext
   8226 LIBS=$ac_func_search_save_LIBS
   8227 fi
   8228 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8229 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8230 ac_res=$ac_cv_search_opendir
   8231 if test "$ac_res" != no; then
   8232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8233 
   8234 fi
   8235 
   8236 else
   8237   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8238 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8239 if test "${ac_cv_search_opendir+set}" = set; then
   8240   echo $ECHO_N "(cached) $ECHO_C" >&6
   8241 else
   8242   ac_func_search_save_LIBS=$LIBS
   8243 cat >conftest.$ac_ext <<_ACEOF
   8244 /* confdefs.h.  */
   8245 _ACEOF
   8246 cat confdefs.h >>conftest.$ac_ext
   8247 cat >>conftest.$ac_ext <<_ACEOF
   8248 /* end confdefs.h.  */
   8249 
   8250 /* Override any GCC internal prototype to avoid an error.
   8251    Use char because int might match the return type of a GCC
   8252    builtin and then its argument prototype would still apply.  */
   8253 #ifdef __cplusplus
   8254 extern "C"
   8255 #endif
   8256 char opendir ();
   8257 int
   8258 main ()
   8259 {
   8260 return opendir ();
   8261   ;
   8262   return 0;
   8263 }
   8264 _ACEOF
   8265 for ac_lib in '' x; do
   8266   if test -z "$ac_lib"; then
   8267     ac_res="none required"
   8268   else
   8269     ac_res=-l$ac_lib
   8270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8271   fi
   8272   rm -f conftest.$ac_objext conftest$ac_exeext
   8273 if { (ac_try="$ac_link"
   8274 case "(($ac_try" in
   8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8276   *) ac_try_echo=$ac_try;;
   8277 esac
   8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8279   (eval "$ac_link") 2>conftest.er1
   8280   ac_status=$?
   8281   grep -v '^ *+' conftest.er1 >conftest.err
   8282   rm -f conftest.er1
   8283   cat conftest.err >&5
   8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8285   (exit $ac_status); } &&
   8286 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8287   { (case "(($ac_try" in
   8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8289   *) ac_try_echo=$ac_try;;
   8290 esac
   8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8292   (eval "$ac_try") 2>&5
   8293   ac_status=$?
   8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8295   (exit $ac_status); }; } &&
   8296 	 { ac_try='test -s conftest$ac_exeext'
   8297   { (case "(($ac_try" in
   8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8299   *) ac_try_echo=$ac_try;;
   8300 esac
   8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8302   (eval "$ac_try") 2>&5
   8303   ac_status=$?
   8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8305   (exit $ac_status); }; }; then
   8306   ac_cv_search_opendir=$ac_res
   8307 else
   8308   echo "$as_me: failed program was:" >&5
   8309 sed 's/^/| /' conftest.$ac_ext >&5
   8310 
   8311 
   8312 fi
   8313 
   8314 rm -f core conftest.err conftest.$ac_objext \
   8315       conftest$ac_exeext
   8316   if test "${ac_cv_search_opendir+set}" = set; then
   8317   break
   8318 fi
   8319 done
   8320 if test "${ac_cv_search_opendir+set}" = set; then
   8321   :
   8322 else
   8323   ac_cv_search_opendir=no
   8324 fi
   8325 rm conftest.$ac_ext
   8326 LIBS=$ac_func_search_save_LIBS
   8327 fi
   8328 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8329 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8330 ac_res=$ac_cv_search_opendir
   8331 if test "$ac_res" != no; then
   8332   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8333 
   8334 fi
   8335 
   8336 fi
   8337 
   8338 
   8339 for ac_header in dlfcn.h
   8340 do
   8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8346   echo $ECHO_N "(cached) $ECHO_C" >&6
   8347 fi
   8348 ac_res=`eval echo '${'$as_ac_Header'}'`
   8349 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8350 echo "${ECHO_T}$ac_res" >&6; }
   8351 else
   8352   # Is the header compilable?
   8353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8355 cat >conftest.$ac_ext <<_ACEOF
   8356 /* confdefs.h.  */
   8357 _ACEOF
   8358 cat confdefs.h >>conftest.$ac_ext
   8359 cat >>conftest.$ac_ext <<_ACEOF
   8360 /* end confdefs.h.  */
   8361 $ac_includes_default
   8362 #include <$ac_header>
   8363 _ACEOF
   8364 rm -f conftest.$ac_objext
   8365 if { (ac_try="$ac_compile"
   8366 case "(($ac_try" in
   8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8368   *) ac_try_echo=$ac_try;;
   8369 esac
   8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8371   (eval "$ac_compile") 2>conftest.er1
   8372   ac_status=$?
   8373   grep -v '^ *+' conftest.er1 >conftest.err
   8374   rm -f conftest.er1
   8375   cat conftest.err >&5
   8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8377   (exit $ac_status); } &&
   8378 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8379   { (case "(($ac_try" in
   8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8381   *) ac_try_echo=$ac_try;;
   8382 esac
   8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8384   (eval "$ac_try") 2>&5
   8385   ac_status=$?
   8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8387   (exit $ac_status); }; } &&
   8388 	 { ac_try='test -s conftest.$ac_objext'
   8389   { (case "(($ac_try" in
   8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8391   *) ac_try_echo=$ac_try;;
   8392 esac
   8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8394   (eval "$ac_try") 2>&5
   8395   ac_status=$?
   8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8397   (exit $ac_status); }; }; then
   8398   ac_header_compiler=yes
   8399 else
   8400   echo "$as_me: failed program was:" >&5
   8401 sed 's/^/| /' conftest.$ac_ext >&5
   8402 
   8403 	ac_header_compiler=no
   8404 fi
   8405 
   8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8408 echo "${ECHO_T}$ac_header_compiler" >&6; }
   8409 
   8410 # Is the header present?
   8411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   8413 cat >conftest.$ac_ext <<_ACEOF
   8414 /* confdefs.h.  */
   8415 _ACEOF
   8416 cat confdefs.h >>conftest.$ac_ext
   8417 cat >>conftest.$ac_ext <<_ACEOF
   8418 /* end confdefs.h.  */
   8419 #include <$ac_header>
   8420 _ACEOF
   8421 if { (ac_try="$ac_cpp conftest.$ac_ext"
   8422 case "(($ac_try" in
   8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8424   *) ac_try_echo=$ac_try;;
   8425 esac
   8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8428   ac_status=$?
   8429   grep -v '^ *+' conftest.er1 >conftest.err
   8430   rm -f conftest.er1
   8431   cat conftest.err >&5
   8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8433   (exit $ac_status); } >/dev/null; then
   8434   if test -s conftest.err; then
   8435     ac_cpp_err=$ac_c_preproc_warn_flag
   8436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8437   else
   8438     ac_cpp_err=
   8439   fi
   8440 else
   8441   ac_cpp_err=yes
   8442 fi
   8443 if test -z "$ac_cpp_err"; then
   8444   ac_header_preproc=yes
   8445 else
   8446   echo "$as_me: failed program was:" >&5
   8447 sed 's/^/| /' conftest.$ac_ext >&5
   8448 
   8449   ac_header_preproc=no
   8450 fi
   8451 
   8452 rm -f conftest.err conftest.$ac_ext
   8453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8454 echo "${ECHO_T}$ac_header_preproc" >&6; }
   8455 
   8456 # So?  What about this header?
   8457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8458   yes:no: )
   8459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8463     ac_header_preproc=yes
   8464     ;;
   8465   no:yes:* )
   8466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8478     ( cat <<\_ASBOX
   8479 ## ------------------------------------ ##
   8480 ## Report this to http://llvm.org/bugs/ ##
   8481 ## ------------------------------------ ##
   8482 _ASBOX
   8483      ) | sed "s/^/$as_me: WARNING:     /" >&2
   8484     ;;
   8485 esac
   8486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8489   echo $ECHO_N "(cached) $ECHO_C" >&6
   8490 else
   8491   eval "$as_ac_Header=\$ac_header_preproc"
   8492 fi
   8493 ac_res=`eval echo '${'$as_ac_Header'}'`
   8494 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8495 echo "${ECHO_T}$ac_res" >&6; }
   8496 
   8497 fi
   8498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8499   cat >>confdefs.h <<_ACEOF
   8500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8501 _ACEOF
   8502 
   8503 fi
   8504 
   8505 done
   8506 
   8507 # Check whether --enable-ltdl-install was given.
   8508 if test "${enable_ltdl_install+set}" = set; then
   8509   enableval=$enable_ltdl_install;
   8510 fi
   8511 
   8512 
   8513 
   8514 
   8515 if test x"${enable_ltdl_install-no}" != xno; then
   8516   INSTALL_LTDL_TRUE=
   8517   INSTALL_LTDL_FALSE='#'
   8518 else
   8519   INSTALL_LTDL_TRUE='#'
   8520   INSTALL_LTDL_FALSE=
   8521 fi
   8522 
   8523 
   8524 
   8525 if test x"${enable_ltdl_convenience-no}" != xno; then
   8526   CONVENIENCE_LTDL_TRUE=
   8527   CONVENIENCE_LTDL_FALSE='#'
   8528 else
   8529   CONVENIENCE_LTDL_TRUE='#'
   8530   CONVENIENCE_LTDL_FALSE=
   8531 fi
   8532 
   8533 
   8534 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   8535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   8536 library_names_spec=
   8537 libname_spec='lib$name'
   8538 soname_spec=
   8539 shrext_cmds=".so"
   8540 postinstall_cmds=
   8541 postuninstall_cmds=
   8542 finish_cmds=
   8543 finish_eval=
   8544 shlibpath_var=
   8545 shlibpath_overrides_runpath=unknown
   8546 version_type=none
   8547 dynamic_linker="$host_os ld.so"
   8548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   8549 if test "$GCC" = yes; then
   8550   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8551   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   8552     # if the path contains ";" then we assume it to be the separator
   8553     # otherwise default to the standard path separator (i.e. ":") - it is
   8554     # assumed that no part of a normal pathname contains ";" but that should
   8555     # okay in the real world where ";" in dirpaths is itself problematic.
   8556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8557   else
   8558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8559   fi
   8560 else
   8561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   8562 fi
   8563 need_lib_prefix=unknown
   8564 hardcode_into_libs=no
   8565 
   8566 # when you set need_version to no, make sure it does not cause -set_version
   8567 # flags to be left without arguments
   8568 need_version=unknown
   8569 
   8570 case $host_os in
   8571 aix3*)
   8572   version_type=linux
   8573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   8574   shlibpath_var=LIBPATH
   8575 
   8576   # AIX 3 has no versioning support, so we append a major version to the name.
   8577   soname_spec='${libname}${release}${shared_ext}$major'
   8578   ;;
   8579 
   8580 aix4* | aix5*)
   8581   version_type=linux
   8582   need_lib_prefix=no
   8583   need_version=no
   8584   hardcode_into_libs=yes
   8585   if test "$host_cpu" = ia64; then
   8586     # AIX 5 supports IA64
   8587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   8588     shlibpath_var=LD_LIBRARY_PATH
   8589   else
   8590     # With GCC up to 2.95.x, collect2 would create an import file
   8591     # for dependence libraries.  The import file would start with
   8592     # the line `#! .'.  This would cause the generated library to
   8593     # depend on `.', always an invalid library.  This was fixed in
   8594     # development snapshots of GCC prior to 3.0.
   8595     case $host_os in
   8596       aix4 | aix4.[01] | aix4.[01].*)
   8597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   8598 	   echo ' yes '
   8599 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   8600 	:
   8601       else
   8602 	can_build_shared=no
   8603       fi
   8604       ;;
   8605     esac
   8606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   8607     # soname into executable. Probably we can add versioning support to
   8608     # collect2, so additional links can be useful in future.
   8609     if test "$aix_use_runtimelinking" = yes; then
   8610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   8611       # instead of lib<name>.a to let people know that these are not
   8612       # typical AIX shared libraries.
   8613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8614     else
   8615       # We preserve .a as extension for shared libraries through AIX4.2
   8616       # and later when we are not doing run time linking.
   8617       library_names_spec='${libname}${release}.a $libname.a'
   8618       soname_spec='${libname}${release}${shared_ext}$major'
   8619     fi
   8620     shlibpath_var=LIBPATH
   8621   fi
   8622   ;;
   8623 
   8624 amigaos*)
   8625   library_names_spec='$libname.ixlibrary $libname.a'
   8626   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   8627   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   8628   ;;
   8629 
   8630 beos*)
   8631   library_names_spec='${libname}${shared_ext}'
   8632   dynamic_linker="$host_os ld.so"
   8633   shlibpath_var=LIBRARY_PATH
   8634   ;;
   8635 
   8636 bsdi[45]*)
   8637   version_type=linux
   8638   need_version=no
   8639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8640   soname_spec='${libname}${release}${shared_ext}$major'
   8641   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   8642   shlibpath_var=LD_LIBRARY_PATH
   8643   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   8644   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   8645   # the default ld.so.conf also contains /usr/contrib/lib and
   8646   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   8647   # libtool to hard-code these into programs
   8648   ;;
   8649 
   8650 cygwin* | mingw* | pw32*)
   8651   version_type=windows
   8652   shrext_cmds=".dll"
   8653   need_version=no
   8654   need_lib_prefix=no
   8655 
   8656   case $GCC,$host_os in
   8657   yes,cygwin* | yes,mingw* | yes,pw32*)
   8658     library_names_spec='$libname.dll.a'
   8659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   8660     postinstall_cmds='base_file=`basename \${file}`~
   8661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   8662       dldir=$destdir/`dirname \$dlpath`~
   8663       test -d \$dldir || mkdir -p \$dldir~
   8664       $install_prog $dir/$dlname \$dldir/$dlname~
   8665       chmod a+x \$dldir/$dlname'
   8666     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   8667       dlpath=$dir/\$dldll~
   8668        $rm \$dlpath'
   8669     shlibpath_overrides_runpath=yes
   8670 
   8671     case $host_os in
   8672     cygwin*)
   8673       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   8674       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8675       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   8676       ;;
   8677     mingw*)
   8678       # MinGW DLLs use traditional 'lib' prefix
   8679       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8680       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8681       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   8682         # It is most probably a Windows format PATH printed by
   8683         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   8684         # path with ; separators, and with drive letters. We can handle the
   8685         # drive letters (cygwin fileutils understands them), so leave them,
   8686         # especially as we might pass files found there to a mingw objdump,
   8687         # which wouldn't understand a cygwinified path. Ahh.
   8688         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8689       else
   8690         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8691       fi
   8692       ;;
   8693     pw32*)
   8694       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8695       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8696       ;;
   8697     esac
   8698     ;;
   8699 
   8700   *)
   8701     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8702     ;;
   8703   esac
   8704   dynamic_linker='Win32 ld.exe'
   8705   # FIXME: first we should search . and the directory the executable is in
   8706   shlibpath_var=PATH
   8707   ;;
   8708 
   8709 darwin* | rhapsody*)
   8710   dynamic_linker="$host_os dyld"
   8711   version_type=darwin
   8712   need_lib_prefix=no
   8713   need_version=no
   8714   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8715   soname_spec='${libname}${release}${major}$shared_ext'
   8716   shlibpath_overrides_runpath=yes
   8717   shlibpath_var=DYLD_LIBRARY_PATH
   8718   shrext_cmds='.dylib'
   8719   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8720   if test "$GCC" = yes; then
   8721     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   8722   else
   8723     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8724   fi
   8725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8726   ;;
   8727 
   8728 dgux*)
   8729   version_type=linux
   8730   need_lib_prefix=no
   8731   need_version=no
   8732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8733   soname_spec='${libname}${release}${shared_ext}$major'
   8734   shlibpath_var=LD_LIBRARY_PATH
   8735   ;;
   8736 
   8737 freebsd1.*)
   8738   dynamic_linker=no
   8739   ;;
   8740 
   8741 kfreebsd*-gnu)
   8742   version_type=linux
   8743   need_lib_prefix=no
   8744   need_version=no
   8745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8746   soname_spec='${libname}${release}${shared_ext}$major'
   8747   shlibpath_var=LD_LIBRARY_PATH
   8748   shlibpath_overrides_runpath=no
   8749   hardcode_into_libs=yes
   8750   dynamic_linker='GNU ld.so'
   8751   ;;
   8752 
   8753 freebsd* | dragonfly*)
   8754   # DragonFly does not have aout.  When/if they implement a new
   8755   # versioning mechanism, adjust this.
   8756   if test -x /usr/bin/objformat; then
   8757     objformat=`/usr/bin/objformat`
   8758   else
   8759     case $host_os in
   8760     freebsd[123].*) objformat=aout ;;
   8761     *) objformat=elf ;;
   8762     esac
   8763   fi
   8764   version_type=freebsd-$objformat
   8765   case $version_type in
   8766     freebsd-elf*)
   8767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8768       need_version=no
   8769       need_lib_prefix=no
   8770       ;;
   8771     freebsd-*)
   8772       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8773       need_version=yes
   8774       ;;
   8775   esac
   8776   shlibpath_var=LD_LIBRARY_PATH
   8777   case $host_os in
   8778   freebsd2.*)
   8779     shlibpath_overrides_runpath=yes
   8780     ;;
   8781   freebsd3.[01]* | freebsdelf3.[01]*)
   8782     shlibpath_overrides_runpath=yes
   8783     hardcode_into_libs=yes
   8784     ;;
   8785   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   8786   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   8787     shlibpath_overrides_runpath=no
   8788     hardcode_into_libs=yes
   8789     ;;
   8790   freebsd*) # from 4.6 on
   8791     shlibpath_overrides_runpath=yes
   8792     hardcode_into_libs=yes
   8793     ;;
   8794   esac
   8795   ;;
   8796 
   8797 gnu*)
   8798   version_type=linux
   8799   need_lib_prefix=no
   8800   need_version=no
   8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8802   soname_spec='${libname}${release}${shared_ext}$major'
   8803   shlibpath_var=LD_LIBRARY_PATH
   8804   hardcode_into_libs=yes
   8805   ;;
   8806 
   8807 hpux9* | hpux10* | hpux11*)
   8808   # Give a soname corresponding to the major version so that dld.sl refuses to
   8809   # link against other versions.
   8810   version_type=sunos
   8811   need_lib_prefix=no
   8812   need_version=no
   8813   case $host_cpu in
   8814   ia64*)
   8815     shrext_cmds='.so'
   8816     hardcode_into_libs=yes
   8817     dynamic_linker="$host_os dld.so"
   8818     shlibpath_var=LD_LIBRARY_PATH
   8819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8821     soname_spec='${libname}${release}${shared_ext}$major'
   8822     if test "X$HPUX_IA64_MODE" = X32; then
   8823       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   8824     else
   8825       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   8826     fi
   8827     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8828     ;;
   8829    hppa*64*)
   8830      shrext_cmds='.sl'
   8831      hardcode_into_libs=yes
   8832      dynamic_linker="$host_os dld.sl"
   8833      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   8834      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8836      soname_spec='${libname}${release}${shared_ext}$major'
   8837      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   8838      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8839      ;;
   8840    *)
   8841     shrext_cmds='.sl'
   8842     dynamic_linker="$host_os dld.sl"
   8843     shlibpath_var=SHLIB_PATH
   8844     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   8845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8846     soname_spec='${libname}${release}${shared_ext}$major'
   8847     ;;
   8848   esac
   8849   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   8850   postinstall_cmds='chmod 555 $lib'
   8851   ;;
   8852 
   8853 interix3*)
   8854   version_type=linux
   8855   need_lib_prefix=no
   8856   need_version=no
   8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8858   soname_spec='${libname}${release}${shared_ext}$major'
   8859   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   8860   shlibpath_var=LD_LIBRARY_PATH
   8861   shlibpath_overrides_runpath=no
   8862   hardcode_into_libs=yes
   8863   ;;
   8864 
   8865 irix5* | irix6* | nonstopux*)
   8866   case $host_os in
   8867     nonstopux*) version_type=nonstopux ;;
   8868     *)
   8869 	if test "$lt_cv_prog_gnu_ld" = yes; then
   8870 		version_type=linux
   8871 	else
   8872 		version_type=irix
   8873 	fi ;;
   8874   esac
   8875   need_lib_prefix=no
   8876   need_version=no
   8877   soname_spec='${libname}${release}${shared_ext}$major'
   8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   8879   case $host_os in
   8880   irix5* | nonstopux*)
   8881     libsuff= shlibsuff=
   8882     ;;
   8883   *)
   8884     case $LD in # libtool.m4 will add one of these switches to LD
   8885     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   8886       libsuff= shlibsuff= libmagic=32-bit;;
   8887     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   8888       libsuff=32 shlibsuff=N32 libmagic=N32;;
   8889     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   8890       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   8891     *) libsuff= shlibsuff= libmagic=never-match;;
   8892     esac
   8893     ;;
   8894   esac
   8895   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   8896   shlibpath_overrides_runpath=no
   8897   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   8898   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   8899   hardcode_into_libs=yes
   8900   ;;
   8901 
   8902 # No shared lib support for Linux oldld, aout, or coff.
   8903 linux*oldld* | linux*aout* | linux*coff*)
   8904   dynamic_linker=no
   8905   ;;
   8906 
   8907 # This must be Linux ELF.
   8908 linux*)
   8909   version_type=linux
   8910   need_lib_prefix=no
   8911   need_version=no
   8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8913   soname_spec='${libname}${release}${shared_ext}$major'
   8914   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   8915   shlibpath_var=LD_LIBRARY_PATH
   8916   shlibpath_overrides_runpath=no
   8917   # This implies no fast_install, which is unacceptable.
   8918   # Some rework will be needed to allow for fast_install
   8919   # before this can be enabled.
   8920   hardcode_into_libs=yes
   8921 
   8922   # Append ld.so.conf contents to the search path
   8923   if test -f /etc/ld.so.conf; then
   8924     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   8925     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   8926   fi
   8927 
   8928   # We used to test for /lib/ld.so.1 and disable shared libraries on
   8929   # powerpc, because MkLinux only supported shared libraries with the
   8930   # GNU dynamic linker.  Since this was broken with cross compilers,
   8931   # most powerpc-linux boxes support dynamic linking these days and
   8932   # people can always --disable-shared, the test was removed, and we
   8933   # assume the GNU/Linux dynamic linker is in use.
   8934   dynamic_linker='GNU/Linux ld.so'
   8935   ;;
   8936 
   8937 knetbsd*-gnu)
   8938   version_type=linux
   8939   need_lib_prefix=no
   8940   need_version=no
   8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8942   soname_spec='${libname}${release}${shared_ext}$major'
   8943   shlibpath_var=LD_LIBRARY_PATH
   8944   shlibpath_overrides_runpath=no
   8945   hardcode_into_libs=yes
   8946   dynamic_linker='GNU ld.so'
   8947   ;;
   8948 
   8949 netbsd*)
   8950   version_type=sunos
   8951   need_lib_prefix=no
   8952   need_version=no
   8953   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   8954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8955     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8956     dynamic_linker='NetBSD (a.out) ld.so'
   8957   else
   8958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8959     soname_spec='${libname}${release}${shared_ext}$major'
   8960     dynamic_linker='NetBSD ld.elf_so'
   8961   fi
   8962   shlibpath_var=LD_LIBRARY_PATH
   8963   shlibpath_overrides_runpath=yes
   8964   hardcode_into_libs=yes
   8965   ;;
   8966 
   8967 newsos6)
   8968   version_type=linux
   8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8970   shlibpath_var=LD_LIBRARY_PATH
   8971   shlibpath_overrides_runpath=yes
   8972   ;;
   8973 
   8974 nto-qnx*)
   8975   version_type=linux
   8976   need_lib_prefix=no
   8977   need_version=no
   8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8979   soname_spec='${libname}${release}${shared_ext}$major'
   8980   shlibpath_var=LD_LIBRARY_PATH
   8981   shlibpath_overrides_runpath=yes
   8982   ;;
   8983 
   8984 openbsd* | bitrig*)
   8985   version_type=sunos
   8986   sys_lib_dlsearch_path_spec="/usr/lib"
   8987   need_lib_prefix=no
   8988   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   8989   case $host_os in
   8990     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   8991     *)                         need_version=no  ;;
   8992   esac
   8993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8994   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8995   shlibpath_var=LD_LIBRARY_PATH
   8996   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   8997     case $host_os in
   8998       openbsd2.[89] | openbsd2.[89].*)
   8999 	shlibpath_overrides_runpath=no
   9000 	;;
   9001       *)
   9002 	shlibpath_overrides_runpath=yes
   9003 	;;
   9004       esac
   9005   else
   9006     shlibpath_overrides_runpath=yes
   9007   fi
   9008   ;;
   9009 
   9010 os2*)
   9011   libname_spec='$name'
   9012   shrext_cmds=".dll"
   9013   need_lib_prefix=no
   9014   library_names_spec='$libname${shared_ext} $libname.a'
   9015   dynamic_linker='OS/2 ld.exe'
   9016   shlibpath_var=LIBPATH
   9017   ;;
   9018 
   9019 osf3* | osf4* | osf5*)
   9020   version_type=osf
   9021   need_lib_prefix=no
   9022   need_version=no
   9023   soname_spec='${libname}${release}${shared_ext}$major'
   9024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9025   shlibpath_var=LD_LIBRARY_PATH
   9026   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   9027   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   9028   ;;
   9029 
   9030 solaris*)
   9031   version_type=linux
   9032   need_lib_prefix=no
   9033   need_version=no
   9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9035   soname_spec='${libname}${release}${shared_ext}$major'
   9036   shlibpath_var=LD_LIBRARY_PATH
   9037   shlibpath_overrides_runpath=yes
   9038   hardcode_into_libs=yes
   9039   # ldd complains unless libraries are executable
   9040   postinstall_cmds='chmod +x $lib'
   9041   ;;
   9042 
   9043 sunos4*)
   9044   version_type=sunos
   9045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9046   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   9047   shlibpath_var=LD_LIBRARY_PATH
   9048   shlibpath_overrides_runpath=yes
   9049   if test "$with_gnu_ld" = yes; then
   9050     need_lib_prefix=no
   9051   fi
   9052   need_version=yes
   9053   ;;
   9054 
   9055 sysv4 | sysv4.3*)
   9056   version_type=linux
   9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9058   soname_spec='${libname}${release}${shared_ext}$major'
   9059   shlibpath_var=LD_LIBRARY_PATH
   9060   case $host_vendor in
   9061     sni)
   9062       shlibpath_overrides_runpath=no
   9063       need_lib_prefix=no
   9064       export_dynamic_flag_spec='${wl}-Blargedynsym'
   9065       runpath_var=LD_RUN_PATH
   9066       ;;
   9067     siemens)
   9068       need_lib_prefix=no
   9069       ;;
   9070     motorola)
   9071       need_lib_prefix=no
   9072       need_version=no
   9073       shlibpath_overrides_runpath=no
   9074       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   9075       ;;
   9076   esac
   9077   ;;
   9078 
   9079 sysv4*MP*)
   9080   if test -d /usr/nec ;then
   9081     version_type=linux
   9082     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   9083     soname_spec='$libname${shared_ext}.$major'
   9084     shlibpath_var=LD_LIBRARY_PATH
   9085   fi
   9086   ;;
   9087 
   9088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   9089   version_type=freebsd-elf
   9090   need_lib_prefix=no
   9091   need_version=no
   9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   9093   soname_spec='${libname}${release}${shared_ext}$major'
   9094   shlibpath_var=LD_LIBRARY_PATH
   9095   hardcode_into_libs=yes
   9096   if test "$with_gnu_ld" = yes; then
   9097     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   9098     shlibpath_overrides_runpath=no
   9099   else
   9100     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   9101     shlibpath_overrides_runpath=yes
   9102     case $host_os in
   9103       sco3.2v5*)
   9104         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   9105 	;;
   9106     esac
   9107   fi
   9108   sys_lib_dlsearch_path_spec='/usr/lib'
   9109   ;;
   9110 
   9111 uts4*)
   9112   version_type=linux
   9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9114   soname_spec='${libname}${release}${shared_ext}$major'
   9115   shlibpath_var=LD_LIBRARY_PATH
   9116   ;;
   9117 
   9118 *)
   9119   dynamic_linker=no
   9120   ;;
   9121 esac
   9122 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   9123 echo "${ECHO_T}$dynamic_linker" >&6; }
   9124 test "$dynamic_linker" = no && can_build_shared=no
   9125 
   9126 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   9127 if test "$GCC" = yes; then
   9128   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   9129 fi
   9130 
   9131 
   9132 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   9133 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   9134 if test "${libltdl_cv_shlibext+set}" = set; then
   9135   echo $ECHO_N "(cached) $ECHO_C" >&6
   9136 else
   9137 
   9138 module=yes
   9139 eval libltdl_cv_shlibext=$shrext_cmds
   9140 
   9141 fi
   9142 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   9143 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   9144 if test -n "$libltdl_cv_shlibext"; then
   9145 
   9146 cat >>confdefs.h <<_ACEOF
   9147 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   9148 _ACEOF
   9149 
   9150 fi
   9151 
   9152 
   9153 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   9154 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   9155 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   9156   echo $ECHO_N "(cached) $ECHO_C" >&6
   9157 else
   9158   libltdl_cv_shlibpath_var="$shlibpath_var"
   9159 fi
   9160 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   9161 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   9162 if test -n "$libltdl_cv_shlibpath_var"; then
   9163 
   9164 cat >>confdefs.h <<_ACEOF
   9165 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   9166 _ACEOF
   9167 
   9168 fi
   9169 
   9170 
   9171 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   9172 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   9173 if test "${libltdl_cv_sys_search_path+set}" = set; then
   9174   echo $ECHO_N "(cached) $ECHO_C" >&6
   9175 else
   9176   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   9177 fi
   9178 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   9179 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   9180 if test -n "$libltdl_cv_sys_search_path"; then
   9181   sys_search_path=
   9182   for dir in $libltdl_cv_sys_search_path; do
   9183     if test -z "$sys_search_path"; then
   9184       sys_search_path="$dir"
   9185     else
   9186       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   9187     fi
   9188   done
   9189 
   9190 cat >>confdefs.h <<_ACEOF
   9191 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   9192 _ACEOF
   9193 
   9194 fi
   9195 
   9196 { echo "$as_me:$LINENO: checking for objdir" >&5
   9197 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   9198 if test "${libltdl_cv_objdir+set}" = set; then
   9199   echo $ECHO_N "(cached) $ECHO_C" >&6
   9200 else
   9201   libltdl_cv_objdir="$objdir"
   9202   if test -n "$objdir"; then
   9203     :
   9204   else
   9205     rm -f .libs 2>/dev/null
   9206     mkdir .libs 2>/dev/null
   9207     if test -d .libs; then
   9208       libltdl_cv_objdir=.libs
   9209     else
   9210       # MS-DOS does not allow filenames that begin with a dot.
   9211       libltdl_cv_objdir=_libs
   9212     fi
   9213   rmdir .libs 2>/dev/null
   9214   fi
   9215 
   9216 fi
   9217 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   9218 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   9219 
   9220 cat >>confdefs.h <<_ACEOF
   9221 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   9222 _ACEOF
   9223 
   9224 
   9225 
   9226 
   9227 
   9228 
   9229 # Check for command to grab the raw symbol name followed by C symbol from nm.
   9230 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   9231 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   9232 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   9233   echo $ECHO_N "(cached) $ECHO_C" >&6
   9234 else
   9235 
   9236 # These are sane defaults that work on at least a few old systems.
   9237 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   9238 
   9239 # Character class describing NM global symbol codes.
   9240 symcode='[BCDEGRST]'
   9241 
   9242 # Regexp to match symbols that can be accessed directly from C.
   9243 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   9244 
   9245 # Transform an extracted symbol line into a proper C declaration
   9246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   9247 
   9248 # Transform an extracted symbol line into symbol name and symbol address
   9249 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'"
   9250 
   9251 # Define system-specific variables.
   9252 case $host_os in
   9253 aix*)
   9254   symcode='[BCDT]'
   9255   ;;
   9256 cygwin* | mingw* | pw32*)
   9257   symcode='[ABCDGISTW]'
   9258   ;;
   9259 hpux*) # Its linker distinguishes data from code symbols
   9260   if test "$host_cpu" = ia64; then
   9261     symcode='[ABCDEGRST]'
   9262   fi
   9263   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9264   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   9265   ;;
   9266 linux*)
   9267   if test "$host_cpu" = ia64; then
   9268     symcode='[ABCDGIRSTW]'
   9269     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9270     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   9271   fi
   9272   ;;
   9273 irix* | nonstopux*)
   9274   symcode='[BCDEGRST]'
   9275   ;;
   9276 osf*)
   9277   symcode='[BCDEGQRST]'
   9278   ;;
   9279 solaris*)
   9280   symcode='[BDRT]'
   9281   ;;
   9282 sco3.2v5*)
   9283   symcode='[DT]'
   9284   ;;
   9285 sysv4.2uw2*)
   9286   symcode='[DT]'
   9287   ;;
   9288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   9289   symcode='[ABDT]'
   9290   ;;
   9291 sysv4)
   9292   symcode='[DFNSTU]'
   9293   ;;
   9294 esac
   9295 
   9296 # Handle CRLF in mingw tool chain
   9297 opt_cr=
   9298 case $build_os in
   9299 mingw*)
   9300   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   9301   ;;
   9302 esac
   9303 
   9304 # If we're using GNU nm, then use its standard symbol codes.
   9305 case `$NM -V 2>&1` in
   9306 *GNU* | *'with BFD'*)
   9307   symcode='[ABCDGIRSTW]' ;;
   9308 esac
   9309 
   9310 # Try without a prefix undercore, then with it.
   9311 for ac_symprfx in "" "_"; do
   9312 
   9313   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   9314   symxfrm="\\1 $ac_symprfx\\2 \\2"
   9315 
   9316   # Write the raw and C identifiers.
   9317   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   9318 
   9319   # Check to see that the pipe works correctly.
   9320   pipe_works=no
   9321 
   9322   rm -f conftest*
   9323   cat > conftest.$ac_ext <<EOF
   9324 #ifdef __cplusplus
   9325 extern "C" {
   9326 #endif
   9327 char nm_test_var;
   9328 void nm_test_func(){}
   9329 #ifdef __cplusplus
   9330 }
   9331 #endif
   9332 int main(){nm_test_var='a';nm_test_func();return(0);}
   9333 EOF
   9334 
   9335   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9336   (eval $ac_compile) 2>&5
   9337   ac_status=$?
   9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9339   (exit $ac_status); }; then
   9340     # Now try to grab the symbols.
   9341     nlist=conftest.nm
   9342     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   9343   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   9344   ac_status=$?
   9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9346   (exit $ac_status); } && test -s "$nlist"; then
   9347       # Try sorting and uniquifying the output.
   9348       if sort "$nlist" | uniq > "$nlist"T; then
   9349 	mv -f "$nlist"T "$nlist"
   9350       else
   9351 	rm -f "$nlist"T
   9352       fi
   9353 
   9354       # Make sure that we snagged all the symbols we need.
   9355       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   9356 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   9357 	  cat <<EOF > conftest.$ac_ext
   9358 #ifdef __cplusplus
   9359 extern "C" {
   9360 #endif
   9361 
   9362 EOF
   9363 	  # Now generate the symbol file.
   9364 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   9365 
   9366 	  cat <<EOF >> conftest.$ac_ext
   9367 #if defined (__STDC__) && __STDC__
   9368 # define lt_ptr_t void *
   9369 #else
   9370 # define lt_ptr_t char *
   9371 # define const
   9372 #endif
   9373 
   9374 /* The mapping between symbol names and symbols. */
   9375 const struct {
   9376   const char *name;
   9377   lt_ptr_t address;
   9378 }
   9379 lt_preloaded_symbols[] =
   9380 {
   9381 EOF
   9382 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   9383 	  cat <<\EOF >> conftest.$ac_ext
   9384   {0, (lt_ptr_t) 0}
   9385 };
   9386 
   9387 #ifdef __cplusplus
   9388 }
   9389 #endif
   9390 EOF
   9391 	  # Now try linking the two files.
   9392 	  mv conftest.$ac_objext conftstm.$ac_objext
   9393 	  lt_save_LIBS="$LIBS"
   9394 	  lt_save_CFLAGS="$CFLAGS"
   9395 	  LIBS="conftstm.$ac_objext"
   9396 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   9397 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9398   (eval $ac_link) 2>&5
   9399   ac_status=$?
   9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9401   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   9402 	    pipe_works=yes
   9403 	  fi
   9404 	  LIBS="$lt_save_LIBS"
   9405 	  CFLAGS="$lt_save_CFLAGS"
   9406 	else
   9407 	  echo "cannot find nm_test_func in $nlist" >&5
   9408 	fi
   9409       else
   9410 	echo "cannot find nm_test_var in $nlist" >&5
   9411       fi
   9412     else
   9413       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   9414     fi
   9415   else
   9416     echo "$progname: failed program was:" >&5
   9417     cat conftest.$ac_ext >&5
   9418   fi
   9419   rm -f conftest* conftst*
   9420 
   9421   # Do not use the global_symbol_pipe unless it works.
   9422   if test "$pipe_works" = yes; then
   9423     break
   9424   else
   9425     lt_cv_sys_global_symbol_pipe=
   9426   fi
   9427 done
   9428 
   9429 fi
   9430 
   9431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   9432   lt_cv_sys_global_symbol_to_cdecl=
   9433 fi
   9434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   9435   { echo "$as_me:$LINENO: result: failed" >&5
   9436 echo "${ECHO_T}failed" >&6; }
   9437 else
   9438   { echo "$as_me:$LINENO: result: ok" >&5
   9439 echo "${ECHO_T}ok" >&6; }
   9440 fi
   9441 
   9442 
   9443 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   9444 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   9445 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   9446   echo $ECHO_N "(cached) $ECHO_C" >&6
   9447 else
   9448   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   9449     libltdl_cv_preloaded_symbols=yes
   9450   else
   9451     libltdl_cv_preloaded_symbols=no
   9452   fi
   9453 
   9454 fi
   9455 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   9456 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   9457 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   9458 
   9459 cat >>confdefs.h <<\_ACEOF
   9460 #define HAVE_PRELOADED_SYMBOLS 1
   9461 _ACEOF
   9462 
   9463 fi
   9464 
   9465 LIBADD_DL=
   9466 
   9467 ac_ext=c
   9468 ac_cpp='$CPP $CPPFLAGS'
   9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9472 
   9473 
   9474 { echo "$as_me:$LINENO: checking for shl_load" >&5
   9475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   9476 if test "${ac_cv_func_shl_load+set}" = set; then
   9477   echo $ECHO_N "(cached) $ECHO_C" >&6
   9478 else
   9479   cat >conftest.$ac_ext <<_ACEOF
   9480 /* confdefs.h.  */
   9481 _ACEOF
   9482 cat confdefs.h >>conftest.$ac_ext
   9483 cat >>conftest.$ac_ext <<_ACEOF
   9484 /* end confdefs.h.  */
   9485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   9486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9487 #define shl_load innocuous_shl_load
   9488 
   9489 /* System header to define __stub macros and hopefully few prototypes,
   9490     which can conflict with char shl_load (); below.
   9491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9492     <limits.h> exists even on freestanding compilers.  */
   9493 
   9494 #ifdef __STDC__
   9495 # include <limits.h>
   9496 #else
   9497 # include <assert.h>
   9498 #endif
   9499 
   9500 #undef shl_load
   9501 
   9502 /* Override any GCC internal prototype to avoid an error.
   9503    Use char because int might match the return type of a GCC
   9504    builtin and then its argument prototype would still apply.  */
   9505 #ifdef __cplusplus
   9506 extern "C"
   9507 #endif
   9508 char shl_load ();
   9509 /* The GNU C library defines this for functions which it implements
   9510     to always fail with ENOSYS.  Some functions are actually named
   9511     something starting with __ and the normal name is an alias.  */
   9512 #if defined __stub_shl_load || defined __stub___shl_load
   9513 choke me
   9514 #endif
   9515 
   9516 int
   9517 main ()
   9518 {
   9519 return shl_load ();
   9520   ;
   9521   return 0;
   9522 }
   9523 _ACEOF
   9524 rm -f conftest.$ac_objext conftest$ac_exeext
   9525 if { (ac_try="$ac_link"
   9526 case "(($ac_try" in
   9527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9528   *) ac_try_echo=$ac_try;;
   9529 esac
   9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9531   (eval "$ac_link") 2>conftest.er1
   9532   ac_status=$?
   9533   grep -v '^ *+' conftest.er1 >conftest.err
   9534   rm -f conftest.er1
   9535   cat conftest.err >&5
   9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9537   (exit $ac_status); } &&
   9538 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9539   { (case "(($ac_try" in
   9540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9541   *) ac_try_echo=$ac_try;;
   9542 esac
   9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9544   (eval "$ac_try") 2>&5
   9545   ac_status=$?
   9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9547   (exit $ac_status); }; } &&
   9548 	 { ac_try='test -s conftest$ac_exeext'
   9549   { (case "(($ac_try" in
   9550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9551   *) ac_try_echo=$ac_try;;
   9552 esac
   9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9554   (eval "$ac_try") 2>&5
   9555   ac_status=$?
   9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9557   (exit $ac_status); }; }; then
   9558   ac_cv_func_shl_load=yes
   9559 else
   9560   echo "$as_me: failed program was:" >&5
   9561 sed 's/^/| /' conftest.$ac_ext >&5
   9562 
   9563 	ac_cv_func_shl_load=no
   9564 fi
   9565 
   9566 rm -f core conftest.err conftest.$ac_objext \
   9567       conftest$ac_exeext conftest.$ac_ext
   9568 fi
   9569 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   9570 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   9571 if test $ac_cv_func_shl_load = yes; then
   9572 
   9573 cat >>confdefs.h <<\_ACEOF
   9574 #define HAVE_SHL_LOAD 1
   9575 _ACEOF
   9576 
   9577 else
   9578   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   9579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   9580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   9581   echo $ECHO_N "(cached) $ECHO_C" >&6
   9582 else
   9583   ac_check_lib_save_LIBS=$LIBS
   9584 LIBS="-ldld  $LIBS"
   9585 cat >conftest.$ac_ext <<_ACEOF
   9586 /* confdefs.h.  */
   9587 _ACEOF
   9588 cat confdefs.h >>conftest.$ac_ext
   9589 cat >>conftest.$ac_ext <<_ACEOF
   9590 /* end confdefs.h.  */
   9591 
   9592 /* Override any GCC internal prototype to avoid an error.
   9593    Use char because int might match the return type of a GCC
   9594    builtin and then its argument prototype would still apply.  */
   9595 #ifdef __cplusplus
   9596 extern "C"
   9597 #endif
   9598 char shl_load ();
   9599 int
   9600 main ()
   9601 {
   9602 return shl_load ();
   9603   ;
   9604   return 0;
   9605 }
   9606 _ACEOF
   9607 rm -f conftest.$ac_objext conftest$ac_exeext
   9608 if { (ac_try="$ac_link"
   9609 case "(($ac_try" in
   9610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9611   *) ac_try_echo=$ac_try;;
   9612 esac
   9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9614   (eval "$ac_link") 2>conftest.er1
   9615   ac_status=$?
   9616   grep -v '^ *+' conftest.er1 >conftest.err
   9617   rm -f conftest.er1
   9618   cat conftest.err >&5
   9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9620   (exit $ac_status); } &&
   9621 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9622   { (case "(($ac_try" in
   9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9624   *) ac_try_echo=$ac_try;;
   9625 esac
   9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9627   (eval "$ac_try") 2>&5
   9628   ac_status=$?
   9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9630   (exit $ac_status); }; } &&
   9631 	 { ac_try='test -s conftest$ac_exeext'
   9632   { (case "(($ac_try" in
   9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9634   *) ac_try_echo=$ac_try;;
   9635 esac
   9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9637   (eval "$ac_try") 2>&5
   9638   ac_status=$?
   9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9640   (exit $ac_status); }; }; then
   9641   ac_cv_lib_dld_shl_load=yes
   9642 else
   9643   echo "$as_me: failed program was:" >&5
   9644 sed 's/^/| /' conftest.$ac_ext >&5
   9645 
   9646 	ac_cv_lib_dld_shl_load=no
   9647 fi
   9648 
   9649 rm -f core conftest.err conftest.$ac_objext \
   9650       conftest$ac_exeext conftest.$ac_ext
   9651 LIBS=$ac_check_lib_save_LIBS
   9652 fi
   9653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   9654 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   9655 if test $ac_cv_lib_dld_shl_load = yes; then
   9656 
   9657 cat >>confdefs.h <<\_ACEOF
   9658 #define HAVE_SHL_LOAD 1
   9659 _ACEOF
   9660 
   9661 	LIBADD_DL="$LIBADD_DL -ldld"
   9662 else
   9663   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   9666   echo $ECHO_N "(cached) $ECHO_C" >&6
   9667 else
   9668   ac_check_lib_save_LIBS=$LIBS
   9669 LIBS="-ldl  $LIBS"
   9670 cat >conftest.$ac_ext <<_ACEOF
   9671 /* confdefs.h.  */
   9672 _ACEOF
   9673 cat confdefs.h >>conftest.$ac_ext
   9674 cat >>conftest.$ac_ext <<_ACEOF
   9675 /* end confdefs.h.  */
   9676 
   9677 /* Override any GCC internal prototype to avoid an error.
   9678    Use char because int might match the return type of a GCC
   9679    builtin and then its argument prototype would still apply.  */
   9680 #ifdef __cplusplus
   9681 extern "C"
   9682 #endif
   9683 char dlopen ();
   9684 int
   9685 main ()
   9686 {
   9687 return dlopen ();
   9688   ;
   9689   return 0;
   9690 }
   9691 _ACEOF
   9692 rm -f conftest.$ac_objext conftest$ac_exeext
   9693 if { (ac_try="$ac_link"
   9694 case "(($ac_try" in
   9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9696   *) ac_try_echo=$ac_try;;
   9697 esac
   9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9699   (eval "$ac_link") 2>conftest.er1
   9700   ac_status=$?
   9701   grep -v '^ *+' conftest.er1 >conftest.err
   9702   rm -f conftest.er1
   9703   cat conftest.err >&5
   9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9705   (exit $ac_status); } &&
   9706 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9707   { (case "(($ac_try" in
   9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9709   *) ac_try_echo=$ac_try;;
   9710 esac
   9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9712   (eval "$ac_try") 2>&5
   9713   ac_status=$?
   9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9715   (exit $ac_status); }; } &&
   9716 	 { ac_try='test -s conftest$ac_exeext'
   9717   { (case "(($ac_try" in
   9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9719   *) ac_try_echo=$ac_try;;
   9720 esac
   9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9722   (eval "$ac_try") 2>&5
   9723   ac_status=$?
   9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9725   (exit $ac_status); }; }; then
   9726   ac_cv_lib_dl_dlopen=yes
   9727 else
   9728   echo "$as_me: failed program was:" >&5
   9729 sed 's/^/| /' conftest.$ac_ext >&5
   9730 
   9731 	ac_cv_lib_dl_dlopen=no
   9732 fi
   9733 
   9734 rm -f core conftest.err conftest.$ac_objext \
   9735       conftest$ac_exeext conftest.$ac_ext
   9736 LIBS=$ac_check_lib_save_LIBS
   9737 fi
   9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   9739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   9740 if test $ac_cv_lib_dl_dlopen = yes; then
   9741 
   9742 cat >>confdefs.h <<\_ACEOF
   9743 #define HAVE_LIBDL 1
   9744 _ACEOF
   9745 
   9746 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   9747 else
   9748   cat >conftest.$ac_ext <<_ACEOF
   9749 /* confdefs.h.  */
   9750 _ACEOF
   9751 cat confdefs.h >>conftest.$ac_ext
   9752 cat >>conftest.$ac_ext <<_ACEOF
   9753 /* end confdefs.h.  */
   9754 #if HAVE_DLFCN_H
   9755 #  include <dlfcn.h>
   9756 #endif
   9757 
   9758 int
   9759 main ()
   9760 {
   9761 dlopen(0, 0);
   9762   ;
   9763   return 0;
   9764 }
   9765 _ACEOF
   9766 rm -f conftest.$ac_objext conftest$ac_exeext
   9767 if { (ac_try="$ac_link"
   9768 case "(($ac_try" in
   9769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9770   *) ac_try_echo=$ac_try;;
   9771 esac
   9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9773   (eval "$ac_link") 2>conftest.er1
   9774   ac_status=$?
   9775   grep -v '^ *+' conftest.er1 >conftest.err
   9776   rm -f conftest.er1
   9777   cat conftest.err >&5
   9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9779   (exit $ac_status); } &&
   9780 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9781   { (case "(($ac_try" in
   9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9783   *) ac_try_echo=$ac_try;;
   9784 esac
   9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9786   (eval "$ac_try") 2>&5
   9787   ac_status=$?
   9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9789   (exit $ac_status); }; } &&
   9790 	 { ac_try='test -s conftest$ac_exeext'
   9791   { (case "(($ac_try" in
   9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9793   *) ac_try_echo=$ac_try;;
   9794 esac
   9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9796   (eval "$ac_try") 2>&5
   9797   ac_status=$?
   9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9799   (exit $ac_status); }; }; then
   9800 
   9801 cat >>confdefs.h <<\_ACEOF
   9802 #define HAVE_LIBDL 1
   9803 _ACEOF
   9804  libltdl_cv_func_dlopen="yes"
   9805 else
   9806   echo "$as_me: failed program was:" >&5
   9807 sed 's/^/| /' conftest.$ac_ext >&5
   9808 
   9809 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   9810 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   9811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   9812   echo $ECHO_N "(cached) $ECHO_C" >&6
   9813 else
   9814   ac_check_lib_save_LIBS=$LIBS
   9815 LIBS="-lsvld  $LIBS"
   9816 cat >conftest.$ac_ext <<_ACEOF
   9817 /* confdefs.h.  */
   9818 _ACEOF
   9819 cat confdefs.h >>conftest.$ac_ext
   9820 cat >>conftest.$ac_ext <<_ACEOF
   9821 /* end confdefs.h.  */
   9822 
   9823 /* Override any GCC internal prototype to avoid an error.
   9824    Use char because int might match the return type of a GCC
   9825    builtin and then its argument prototype would still apply.  */
   9826 #ifdef __cplusplus
   9827 extern "C"
   9828 #endif
   9829 char dlopen ();
   9830 int
   9831 main ()
   9832 {
   9833 return dlopen ();
   9834   ;
   9835   return 0;
   9836 }
   9837 _ACEOF
   9838 rm -f conftest.$ac_objext conftest$ac_exeext
   9839 if { (ac_try="$ac_link"
   9840 case "(($ac_try" in
   9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9842   *) ac_try_echo=$ac_try;;
   9843 esac
   9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9845   (eval "$ac_link") 2>conftest.er1
   9846   ac_status=$?
   9847   grep -v '^ *+' conftest.er1 >conftest.err
   9848   rm -f conftest.er1
   9849   cat conftest.err >&5
   9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9851   (exit $ac_status); } &&
   9852 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9853   { (case "(($ac_try" in
   9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9855   *) ac_try_echo=$ac_try;;
   9856 esac
   9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9858   (eval "$ac_try") 2>&5
   9859   ac_status=$?
   9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9861   (exit $ac_status); }; } &&
   9862 	 { ac_try='test -s conftest$ac_exeext'
   9863   { (case "(($ac_try" in
   9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9865   *) ac_try_echo=$ac_try;;
   9866 esac
   9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9868   (eval "$ac_try") 2>&5
   9869   ac_status=$?
   9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9871   (exit $ac_status); }; }; then
   9872   ac_cv_lib_svld_dlopen=yes
   9873 else
   9874   echo "$as_me: failed program was:" >&5
   9875 sed 's/^/| /' conftest.$ac_ext >&5
   9876 
   9877 	ac_cv_lib_svld_dlopen=no
   9878 fi
   9879 
   9880 rm -f core conftest.err conftest.$ac_objext \
   9881       conftest$ac_exeext conftest.$ac_ext
   9882 LIBS=$ac_check_lib_save_LIBS
   9883 fi
   9884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   9885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   9886 if test $ac_cv_lib_svld_dlopen = yes; then
   9887 
   9888 cat >>confdefs.h <<\_ACEOF
   9889 #define HAVE_LIBDL 1
   9890 _ACEOF
   9891 
   9892 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   9893 else
   9894   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   9895 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   9896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   9897   echo $ECHO_N "(cached) $ECHO_C" >&6
   9898 else
   9899   ac_check_lib_save_LIBS=$LIBS
   9900 LIBS="-ldld  $LIBS"
   9901 cat >conftest.$ac_ext <<_ACEOF
   9902 /* confdefs.h.  */
   9903 _ACEOF
   9904 cat confdefs.h >>conftest.$ac_ext
   9905 cat >>conftest.$ac_ext <<_ACEOF
   9906 /* end confdefs.h.  */
   9907 
   9908 /* Override any GCC internal prototype to avoid an error.
   9909    Use char because int might match the return type of a GCC
   9910    builtin and then its argument prototype would still apply.  */
   9911 #ifdef __cplusplus
   9912 extern "C"
   9913 #endif
   9914 char dld_link ();
   9915 int
   9916 main ()
   9917 {
   9918 return dld_link ();
   9919   ;
   9920   return 0;
   9921 }
   9922 _ACEOF
   9923 rm -f conftest.$ac_objext conftest$ac_exeext
   9924 if { (ac_try="$ac_link"
   9925 case "(($ac_try" in
   9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9927   *) ac_try_echo=$ac_try;;
   9928 esac
   9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9930   (eval "$ac_link") 2>conftest.er1
   9931   ac_status=$?
   9932   grep -v '^ *+' conftest.er1 >conftest.err
   9933   rm -f conftest.er1
   9934   cat conftest.err >&5
   9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9936   (exit $ac_status); } &&
   9937 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   9938   { (case "(($ac_try" in
   9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9940   *) ac_try_echo=$ac_try;;
   9941 esac
   9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9943   (eval "$ac_try") 2>&5
   9944   ac_status=$?
   9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9946   (exit $ac_status); }; } &&
   9947 	 { ac_try='test -s conftest$ac_exeext'
   9948   { (case "(($ac_try" in
   9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9950   *) ac_try_echo=$ac_try;;
   9951 esac
   9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9953   (eval "$ac_try") 2>&5
   9954   ac_status=$?
   9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9956   (exit $ac_status); }; }; then
   9957   ac_cv_lib_dld_dld_link=yes
   9958 else
   9959   echo "$as_me: failed program was:" >&5
   9960 sed 's/^/| /' conftest.$ac_ext >&5
   9961 
   9962 	ac_cv_lib_dld_dld_link=no
   9963 fi
   9964 
   9965 rm -f core conftest.err conftest.$ac_objext \
   9966       conftest$ac_exeext conftest.$ac_ext
   9967 LIBS=$ac_check_lib_save_LIBS
   9968 fi
   9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   9970 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   9971 if test $ac_cv_lib_dld_dld_link = yes; then
   9972 
   9973 cat >>confdefs.h <<\_ACEOF
   9974 #define HAVE_DLD 1
   9975 _ACEOF
   9976 
   9977 	 	LIBADD_DL="$LIBADD_DL -ldld"
   9978 else
   9979   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   9980 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   9981 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   9982   echo $ECHO_N "(cached) $ECHO_C" >&6
   9983 else
   9984   cat >conftest.$ac_ext <<_ACEOF
   9985 /* confdefs.h.  */
   9986 _ACEOF
   9987 cat confdefs.h >>conftest.$ac_ext
   9988 cat >>conftest.$ac_ext <<_ACEOF
   9989 /* end confdefs.h.  */
   9990 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   9991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9992 #define _dyld_func_lookup innocuous__dyld_func_lookup
   9993 
   9994 /* System header to define __stub macros and hopefully few prototypes,
   9995     which can conflict with char _dyld_func_lookup (); below.
   9996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9997     <limits.h> exists even on freestanding compilers.  */
   9998 
   9999 #ifdef __STDC__
   10000 # include <limits.h>
   10001 #else
   10002 # include <assert.h>
   10003 #endif
   10004 
   10005 #undef _dyld_func_lookup
   10006 
   10007 /* Override any GCC internal prototype to avoid an error.
   10008    Use char because int might match the return type of a GCC
   10009    builtin and then its argument prototype would still apply.  */
   10010 #ifdef __cplusplus
   10011 extern "C"
   10012 #endif
   10013 char _dyld_func_lookup ();
   10014 /* The GNU C library defines this for functions which it implements
   10015     to always fail with ENOSYS.  Some functions are actually named
   10016     something starting with __ and the normal name is an alias.  */
   10017 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
   10018 choke me
   10019 #endif
   10020 
   10021 int
   10022 main ()
   10023 {
   10024 return _dyld_func_lookup ();
   10025   ;
   10026   return 0;
   10027 }
   10028 _ACEOF
   10029 rm -f conftest.$ac_objext conftest$ac_exeext
   10030 if { (ac_try="$ac_link"
   10031 case "(($ac_try" in
   10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10033   *) ac_try_echo=$ac_try;;
   10034 esac
   10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10036   (eval "$ac_link") 2>conftest.er1
   10037   ac_status=$?
   10038   grep -v '^ *+' conftest.er1 >conftest.err
   10039   rm -f conftest.er1
   10040   cat conftest.err >&5
   10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10042   (exit $ac_status); } &&
   10043 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10044   { (case "(($ac_try" in
   10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10046   *) ac_try_echo=$ac_try;;
   10047 esac
   10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10049   (eval "$ac_try") 2>&5
   10050   ac_status=$?
   10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10052   (exit $ac_status); }; } &&
   10053 	 { ac_try='test -s conftest$ac_exeext'
   10054   { (case "(($ac_try" in
   10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10056   *) ac_try_echo=$ac_try;;
   10057 esac
   10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10059   (eval "$ac_try") 2>&5
   10060   ac_status=$?
   10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10062   (exit $ac_status); }; }; then
   10063   ac_cv_func__dyld_func_lookup=yes
   10064 else
   10065   echo "$as_me: failed program was:" >&5
   10066 sed 's/^/| /' conftest.$ac_ext >&5
   10067 
   10068 	ac_cv_func__dyld_func_lookup=no
   10069 fi
   10070 
   10071 rm -f core conftest.err conftest.$ac_objext \
   10072       conftest$ac_exeext conftest.$ac_ext
   10073 fi
   10074 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   10075 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   10076 if test $ac_cv_func__dyld_func_lookup = yes; then
   10077 
   10078 cat >>confdefs.h <<\_ACEOF
   10079 #define HAVE_DYLD 1
   10080 _ACEOF
   10081 
   10082 fi
   10083 
   10084 
   10085 fi
   10086 
   10087 
   10088 fi
   10089 
   10090 
   10091 fi
   10092 
   10093 rm -f core conftest.err conftest.$ac_objext \
   10094       conftest$ac_exeext conftest.$ac_ext
   10095 
   10096 fi
   10097 
   10098 
   10099 fi
   10100 
   10101 
   10102 fi
   10103 
   10104 
   10105 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   10106 then
   10107   lt_save_LIBS="$LIBS"
   10108   LIBS="$LIBS $LIBADD_DL"
   10109 
   10110 for ac_func in dlerror
   10111 do
   10112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10116   echo $ECHO_N "(cached) $ECHO_C" >&6
   10117 else
   10118   cat >conftest.$ac_ext <<_ACEOF
   10119 /* confdefs.h.  */
   10120 _ACEOF
   10121 cat confdefs.h >>conftest.$ac_ext
   10122 cat >>conftest.$ac_ext <<_ACEOF
   10123 /* end confdefs.h.  */
   10124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10126 #define $ac_func innocuous_$ac_func
   10127 
   10128 /* System header to define __stub macros and hopefully few prototypes,
   10129     which can conflict with char $ac_func (); below.
   10130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10131     <limits.h> exists even on freestanding compilers.  */
   10132 
   10133 #ifdef __STDC__
   10134 # include <limits.h>
   10135 #else
   10136 # include <assert.h>
   10137 #endif
   10138 
   10139 #undef $ac_func
   10140 
   10141 /* Override any GCC internal prototype to avoid an error.
   10142    Use char because int might match the return type of a GCC
   10143    builtin and then its argument prototype would still apply.  */
   10144 #ifdef __cplusplus
   10145 extern "C"
   10146 #endif
   10147 char $ac_func ();
   10148 /* The GNU C library defines this for functions which it implements
   10149     to always fail with ENOSYS.  Some functions are actually named
   10150     something starting with __ and the normal name is an alias.  */
   10151 #if defined __stub_$ac_func || defined __stub___$ac_func
   10152 choke me
   10153 #endif
   10154 
   10155 int
   10156 main ()
   10157 {
   10158 return $ac_func ();
   10159   ;
   10160   return 0;
   10161 }
   10162 _ACEOF
   10163 rm -f conftest.$ac_objext conftest$ac_exeext
   10164 if { (ac_try="$ac_link"
   10165 case "(($ac_try" in
   10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10167   *) ac_try_echo=$ac_try;;
   10168 esac
   10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10170   (eval "$ac_link") 2>conftest.er1
   10171   ac_status=$?
   10172   grep -v '^ *+' conftest.er1 >conftest.err
   10173   rm -f conftest.er1
   10174   cat conftest.err >&5
   10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10176   (exit $ac_status); } &&
   10177 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10178   { (case "(($ac_try" in
   10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10180   *) ac_try_echo=$ac_try;;
   10181 esac
   10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10183   (eval "$ac_try") 2>&5
   10184   ac_status=$?
   10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10186   (exit $ac_status); }; } &&
   10187 	 { ac_try='test -s conftest$ac_exeext'
   10188   { (case "(($ac_try" in
   10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10190   *) ac_try_echo=$ac_try;;
   10191 esac
   10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10193   (eval "$ac_try") 2>&5
   10194   ac_status=$?
   10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10196   (exit $ac_status); }; }; then
   10197   eval "$as_ac_var=yes"
   10198 else
   10199   echo "$as_me: failed program was:" >&5
   10200 sed 's/^/| /' conftest.$ac_ext >&5
   10201 
   10202 	eval "$as_ac_var=no"
   10203 fi
   10204 
   10205 rm -f core conftest.err conftest.$ac_objext \
   10206       conftest$ac_exeext conftest.$ac_ext
   10207 fi
   10208 ac_res=`eval echo '${'$as_ac_var'}'`
   10209 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10210 echo "${ECHO_T}$ac_res" >&6; }
   10211 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10212   cat >>confdefs.h <<_ACEOF
   10213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10214 _ACEOF
   10215 
   10216 fi
   10217 done
   10218 
   10219   LIBS="$lt_save_LIBS"
   10220 fi
   10221 ac_ext=c
   10222 ac_cpp='$CPP $CPPFLAGS'
   10223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10226 
   10227 
   10228 
   10229 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   10230 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   10231 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   10232   echo $ECHO_N "(cached) $ECHO_C" >&6
   10233 else
   10234   ac_cv_sys_symbol_underscore=no
   10235   cat > conftest.$ac_ext <<EOF
   10236 void nm_test_func(){}
   10237 int main(){nm_test_func;return 0;}
   10238 EOF
   10239   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10240   (eval $ac_compile) 2>&5
   10241   ac_status=$?
   10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10243   (exit $ac_status); }; then
   10244     # Now try to grab the symbols.
   10245     ac_nlist=conftest.nm
   10246     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   10247   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   10248   ac_status=$?
   10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10250   (exit $ac_status); } && test -s "$ac_nlist"; then
   10251       # See whether the symbols have a leading underscore.
   10252       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   10253         ac_cv_sys_symbol_underscore=yes
   10254       else
   10255         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   10256 	  :
   10257         else
   10258 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   10259         fi
   10260       fi
   10261     else
   10262       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   10263     fi
   10264   else
   10265     echo "configure: failed program was:" >&5
   10266     cat conftest.c >&5
   10267   fi
   10268   rm -rf conftest*
   10269 
   10270 fi
   10271 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   10272 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   10273 
   10274 
   10275 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   10276   if test x"$libltdl_cv_func_dlopen" = xyes ||
   10277      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   10278 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   10279 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   10280 if test "${libltdl_cv_need_uscore+set}" = set; then
   10281   echo $ECHO_N "(cached) $ECHO_C" >&6
   10282 else
   10283   libltdl_cv_need_uscore=unknown
   10284           save_LIBS="$LIBS"
   10285           LIBS="$LIBS $LIBADD_DL"
   10286 	  if test "$cross_compiling" = yes; then :
   10287   libltdl_cv_need_uscore=cross
   10288 else
   10289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   10290   lt_status=$lt_dlunknown
   10291   cat > conftest.$ac_ext <<EOF
   10292 #line 10292 "configure"
   10293 #include "confdefs.h"
   10294 
   10295 #if HAVE_DLFCN_H
   10296 #include <dlfcn.h>
   10297 #endif
   10298 
   10299 #include <stdio.h>
   10300 
   10301 #ifdef RTLD_GLOBAL
   10302 #  define LT_DLGLOBAL		RTLD_GLOBAL
   10303 #else
   10304 #  ifdef DL_GLOBAL
   10305 #    define LT_DLGLOBAL		DL_GLOBAL
   10306 #  else
   10307 #    define LT_DLGLOBAL		0
   10308 #  endif
   10309 #endif
   10310 
   10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   10312    find out it does not work in some platform. */
   10313 #ifndef LT_DLLAZY_OR_NOW
   10314 #  ifdef RTLD_LAZY
   10315 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   10316 #  else
   10317 #    ifdef DL_LAZY
   10318 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   10319 #    else
   10320 #      ifdef RTLD_NOW
   10321 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   10322 #      else
   10323 #        ifdef DL_NOW
   10324 #          define LT_DLLAZY_OR_NOW	DL_NOW
   10325 #        else
   10326 #          define LT_DLLAZY_OR_NOW	0
   10327 #        endif
   10328 #      endif
   10329 #    endif
   10330 #  endif
   10331 #endif
   10332 
   10333 #ifdef __cplusplus
   10334 extern "C" void exit (int);
   10335 #endif
   10336 
   10337 void fnord() { int i=42;}
   10338 int main ()
   10339 {
   10340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   10341   int status = $lt_dlunknown;
   10342 
   10343   if (self)
   10344     {
   10345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   10346       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   10347       /* dlclose (self); */
   10348     }
   10349   else
   10350     puts (dlerror ());
   10351 
   10352     exit (status);
   10353 }
   10354 EOF
   10355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10356   (eval $ac_link) 2>&5
   10357   ac_status=$?
   10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   10360     (./conftest; exit; ) >&5 2>/dev/null
   10361     lt_status=$?
   10362     case x$lt_status in
   10363       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   10364       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   10365       x$lt_dlunknown|x*)  ;;
   10366     esac
   10367   else :
   10368     # compilation failed
   10369 
   10370   fi
   10371 fi
   10372 rm -fr conftest*
   10373 
   10374 	  LIBS="$save_LIBS"
   10375 
   10376 fi
   10377 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   10378 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   10379   fi
   10380 fi
   10381 
   10382 if test x"$libltdl_cv_need_uscore" = xyes; then
   10383 
   10384 cat >>confdefs.h <<\_ACEOF
   10385 #define NEED_USCORE 1
   10386 _ACEOF
   10387 
   10388 fi
   10389 
   10390 
   10391 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   10392 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   10393 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   10394   echo $ECHO_N "(cached) $ECHO_C" >&6
   10395 else
   10396   # PORTME does your system automatically load deplibs for dlopen?
   10397   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
   10398   # For now, we just catch OSes we know something about -- in the
   10399   # future, we'll try test this programmatically.
   10400   libltdl_cv_sys_dlopen_deplibs=unknown
   10401   case "$host_os" in
   10402   aix3*|aix4.1.*|aix4.2.*)
   10403     # Unknown whether this is true for these versions of AIX, but
   10404     # we want this `case' here to explicitly catch those versions.
   10405     libltdl_cv_sys_dlopen_deplibs=unknown
   10406     ;;
   10407   aix[45]*)
   10408     libltdl_cv_sys_dlopen_deplibs=yes
   10409     ;;
   10410   darwin*)
   10411     # Assuming the user has installed a libdl from somewhere, this is true
   10412     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
   10413     libltdl_cv_sys_dlopen_deplibs=yes
   10414     ;;
   10415   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
   10416     # GNU and its variants, using gnu ld.so (Glibc)
   10417     libltdl_cv_sys_dlopen_deplibs=yes
   10418     ;;
   10419   hpux10*|hpux11*)
   10420     libltdl_cv_sys_dlopen_deplibs=yes
   10421     ;;
   10422   interix*)
   10423     libltdl_cv_sys_dlopen_deplibs=yes
   10424     ;;
   10425   irix[12345]*|irix6.[01]*)
   10426     # Catch all versions of IRIX before 6.2, and indicate that we don't
   10427     # know how it worked for any of those versions.
   10428     libltdl_cv_sys_dlopen_deplibs=unknown
   10429     ;;
   10430   irix*)
   10431     # The case above catches anything before 6.2, and it's known that
   10432     # at 6.2 and later dlopen does load deplibs.
   10433     libltdl_cv_sys_dlopen_deplibs=yes
   10434     ;;
   10435   netbsd*)
   10436     libltdl_cv_sys_dlopen_deplibs=yes
   10437     ;;
   10438   openbsd*)
   10439     libltdl_cv_sys_dlopen_deplibs=yes
   10440     ;;
   10441   osf[1234]*)
   10442     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
   10443     # it did *not* use an RPATH in a shared library to find objects the
   10444     # library depends on, so we explicitly say `no'.
   10445     libltdl_cv_sys_dlopen_deplibs=no
   10446     ;;
   10447   osf5.0|osf5.0a|osf5.1)
   10448     # dlopen *does* load deplibs and with the right loader patch applied
   10449     # it even uses RPATH in a shared library to search for shared objects
   10450     # that the library depends on, but there's no easy way to know if that
   10451     # patch is installed.  Since this is the case, all we can really
   10452     # say is unknown -- it depends on the patch being installed.  If
   10453     # it is, this changes to `yes'.  Without it, it would be `no'.
   10454     libltdl_cv_sys_dlopen_deplibs=unknown
   10455     ;;
   10456   osf*)
   10457     # the two cases above should catch all versions of osf <= 5.1.  Read
   10458     # the comments above for what we know about them.
   10459     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
   10460     # is used to find them so we can finally say `yes'.
   10461     libltdl_cv_sys_dlopen_deplibs=yes
   10462     ;;
   10463   solaris*)
   10464     libltdl_cv_sys_dlopen_deplibs=yes
   10465     ;;
   10466   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10467     libltdl_cv_sys_dlopen_deplibs=yes
   10468     ;;
   10469   esac
   10470 
   10471 fi
   10472 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   10473 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   10474 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   10475 
   10476 cat >>confdefs.h <<\_ACEOF
   10477 #define LTDL_DLOPEN_DEPLIBS 1
   10478 _ACEOF
   10479 
   10480 fi
   10481 
   10482 
   10483 for ac_header in argz.h
   10484 do
   10485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10487   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10490   echo $ECHO_N "(cached) $ECHO_C" >&6
   10491 fi
   10492 ac_res=`eval echo '${'$as_ac_Header'}'`
   10493 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10494 echo "${ECHO_T}$ac_res" >&6; }
   10495 else
   10496   # Is the header compilable?
   10497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10499 cat >conftest.$ac_ext <<_ACEOF
   10500 /* confdefs.h.  */
   10501 _ACEOF
   10502 cat confdefs.h >>conftest.$ac_ext
   10503 cat >>conftest.$ac_ext <<_ACEOF
   10504 /* end confdefs.h.  */
   10505 $ac_includes_default
   10506 #include <$ac_header>
   10507 _ACEOF
   10508 rm -f conftest.$ac_objext
   10509 if { (ac_try="$ac_compile"
   10510 case "(($ac_try" in
   10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10512   *) ac_try_echo=$ac_try;;
   10513 esac
   10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10515   (eval "$ac_compile") 2>conftest.er1
   10516   ac_status=$?
   10517   grep -v '^ *+' conftest.er1 >conftest.err
   10518   rm -f conftest.er1
   10519   cat conftest.err >&5
   10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10521   (exit $ac_status); } &&
   10522 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10523   { (case "(($ac_try" in
   10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10525   *) ac_try_echo=$ac_try;;
   10526 esac
   10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10528   (eval "$ac_try") 2>&5
   10529   ac_status=$?
   10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10531   (exit $ac_status); }; } &&
   10532 	 { ac_try='test -s conftest.$ac_objext'
   10533   { (case "(($ac_try" in
   10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10535   *) ac_try_echo=$ac_try;;
   10536 esac
   10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10538   (eval "$ac_try") 2>&5
   10539   ac_status=$?
   10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10541   (exit $ac_status); }; }; then
   10542   ac_header_compiler=yes
   10543 else
   10544   echo "$as_me: failed program was:" >&5
   10545 sed 's/^/| /' conftest.$ac_ext >&5
   10546 
   10547 	ac_header_compiler=no
   10548 fi
   10549 
   10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10553 
   10554 # Is the header present?
   10555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10557 cat >conftest.$ac_ext <<_ACEOF
   10558 /* confdefs.h.  */
   10559 _ACEOF
   10560 cat confdefs.h >>conftest.$ac_ext
   10561 cat >>conftest.$ac_ext <<_ACEOF
   10562 /* end confdefs.h.  */
   10563 #include <$ac_header>
   10564 _ACEOF
   10565 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10566 case "(($ac_try" in
   10567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10568   *) ac_try_echo=$ac_try;;
   10569 esac
   10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10572   ac_status=$?
   10573   grep -v '^ *+' conftest.er1 >conftest.err
   10574   rm -f conftest.er1
   10575   cat conftest.err >&5
   10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10577   (exit $ac_status); } >/dev/null; then
   10578   if test -s conftest.err; then
   10579     ac_cpp_err=$ac_c_preproc_warn_flag
   10580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   10581   else
   10582     ac_cpp_err=
   10583   fi
   10584 else
   10585   ac_cpp_err=yes
   10586 fi
   10587 if test -z "$ac_cpp_err"; then
   10588   ac_header_preproc=yes
   10589 else
   10590   echo "$as_me: failed program was:" >&5
   10591 sed 's/^/| /' conftest.$ac_ext >&5
   10592 
   10593   ac_header_preproc=no
   10594 fi
   10595 
   10596 rm -f conftest.err conftest.$ac_ext
   10597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10598 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10599 
   10600 # So?  What about this header?
   10601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10602   yes:no: )
   10603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10607     ac_header_preproc=yes
   10608     ;;
   10609   no:yes:* )
   10610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10612     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10613 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10614     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10616     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10617 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10620     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10622     ( cat <<\_ASBOX
   10623 ## ------------------------------------ ##
   10624 ## Report this to http://llvm.org/bugs/ ##
   10625 ## ------------------------------------ ##
   10626 _ASBOX
   10627      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10628     ;;
   10629 esac
   10630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10633   echo $ECHO_N "(cached) $ECHO_C" >&6
   10634 else
   10635   eval "$as_ac_Header=\$ac_header_preproc"
   10636 fi
   10637 ac_res=`eval echo '${'$as_ac_Header'}'`
   10638 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10639 echo "${ECHO_T}$ac_res" >&6; }
   10640 
   10641 fi
   10642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10643   cat >>confdefs.h <<_ACEOF
   10644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10645 _ACEOF
   10646 
   10647 fi
   10648 
   10649 done
   10650 
   10651 
   10652 { echo "$as_me:$LINENO: checking for error_t" >&5
   10653 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   10654 if test "${ac_cv_type_error_t+set}" = set; then
   10655   echo $ECHO_N "(cached) $ECHO_C" >&6
   10656 else
   10657   cat >conftest.$ac_ext <<_ACEOF
   10658 /* confdefs.h.  */
   10659 _ACEOF
   10660 cat confdefs.h >>conftest.$ac_ext
   10661 cat >>conftest.$ac_ext <<_ACEOF
   10662 /* end confdefs.h.  */
   10663 #if HAVE_ARGZ_H
   10664 #  include <argz.h>
   10665 #endif
   10666 
   10667 typedef error_t ac__type_new_;
   10668 int
   10669 main ()
   10670 {
   10671 if ((ac__type_new_ *) 0)
   10672   return 0;
   10673 if (sizeof (ac__type_new_))
   10674   return 0;
   10675   ;
   10676   return 0;
   10677 }
   10678 _ACEOF
   10679 rm -f conftest.$ac_objext
   10680 if { (ac_try="$ac_compile"
   10681 case "(($ac_try" in
   10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10683   *) ac_try_echo=$ac_try;;
   10684 esac
   10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10686   (eval "$ac_compile") 2>conftest.er1
   10687   ac_status=$?
   10688   grep -v '^ *+' conftest.er1 >conftest.err
   10689   rm -f conftest.er1
   10690   cat conftest.err >&5
   10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10692   (exit $ac_status); } &&
   10693 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10694   { (case "(($ac_try" in
   10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10696   *) ac_try_echo=$ac_try;;
   10697 esac
   10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10699   (eval "$ac_try") 2>&5
   10700   ac_status=$?
   10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10702   (exit $ac_status); }; } &&
   10703 	 { ac_try='test -s conftest.$ac_objext'
   10704   { (case "(($ac_try" in
   10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10706   *) ac_try_echo=$ac_try;;
   10707 esac
   10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10709   (eval "$ac_try") 2>&5
   10710   ac_status=$?
   10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10712   (exit $ac_status); }; }; then
   10713   ac_cv_type_error_t=yes
   10714 else
   10715   echo "$as_me: failed program was:" >&5
   10716 sed 's/^/| /' conftest.$ac_ext >&5
   10717 
   10718 	ac_cv_type_error_t=no
   10719 fi
   10720 
   10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10722 fi
   10723 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   10724 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   10725 if test $ac_cv_type_error_t = yes; then
   10726 
   10727 cat >>confdefs.h <<_ACEOF
   10728 #define HAVE_ERROR_T 1
   10729 _ACEOF
   10730 
   10731 
   10732 else
   10733 
   10734 cat >>confdefs.h <<\_ACEOF
   10735 #define error_t int
   10736 _ACEOF
   10737 
   10738 fi
   10739 
   10740 
   10741 
   10742 
   10743 
   10744 
   10745 
   10746 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   10747 do
   10748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10752   echo $ECHO_N "(cached) $ECHO_C" >&6
   10753 else
   10754   cat >conftest.$ac_ext <<_ACEOF
   10755 /* confdefs.h.  */
   10756 _ACEOF
   10757 cat confdefs.h >>conftest.$ac_ext
   10758 cat >>conftest.$ac_ext <<_ACEOF
   10759 /* end confdefs.h.  */
   10760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10762 #define $ac_func innocuous_$ac_func
   10763 
   10764 /* System header to define __stub macros and hopefully few prototypes,
   10765     which can conflict with char $ac_func (); below.
   10766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10767     <limits.h> exists even on freestanding compilers.  */
   10768 
   10769 #ifdef __STDC__
   10770 # include <limits.h>
   10771 #else
   10772 # include <assert.h>
   10773 #endif
   10774 
   10775 #undef $ac_func
   10776 
   10777 /* Override any GCC internal prototype to avoid an error.
   10778    Use char because int might match the return type of a GCC
   10779    builtin and then its argument prototype would still apply.  */
   10780 #ifdef __cplusplus
   10781 extern "C"
   10782 #endif
   10783 char $ac_func ();
   10784 /* The GNU C library defines this for functions which it implements
   10785     to always fail with ENOSYS.  Some functions are actually named
   10786     something starting with __ and the normal name is an alias.  */
   10787 #if defined __stub_$ac_func || defined __stub___$ac_func
   10788 choke me
   10789 #endif
   10790 
   10791 int
   10792 main ()
   10793 {
   10794 return $ac_func ();
   10795   ;
   10796   return 0;
   10797 }
   10798 _ACEOF
   10799 rm -f conftest.$ac_objext conftest$ac_exeext
   10800 if { (ac_try="$ac_link"
   10801 case "(($ac_try" in
   10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10803   *) ac_try_echo=$ac_try;;
   10804 esac
   10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10806   (eval "$ac_link") 2>conftest.er1
   10807   ac_status=$?
   10808   grep -v '^ *+' conftest.er1 >conftest.err
   10809   rm -f conftest.er1
   10810   cat conftest.err >&5
   10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10812   (exit $ac_status); } &&
   10813 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10814   { (case "(($ac_try" in
   10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10816   *) ac_try_echo=$ac_try;;
   10817 esac
   10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10819   (eval "$ac_try") 2>&5
   10820   ac_status=$?
   10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10822   (exit $ac_status); }; } &&
   10823 	 { ac_try='test -s conftest$ac_exeext'
   10824   { (case "(($ac_try" in
   10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10826   *) ac_try_echo=$ac_try;;
   10827 esac
   10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10829   (eval "$ac_try") 2>&5
   10830   ac_status=$?
   10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10832   (exit $ac_status); }; }; then
   10833   eval "$as_ac_var=yes"
   10834 else
   10835   echo "$as_me: failed program was:" >&5
   10836 sed 's/^/| /' conftest.$ac_ext >&5
   10837 
   10838 	eval "$as_ac_var=no"
   10839 fi
   10840 
   10841 rm -f core conftest.err conftest.$ac_objext \
   10842       conftest$ac_exeext conftest.$ac_ext
   10843 fi
   10844 ac_res=`eval echo '${'$as_ac_var'}'`
   10845 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10846 echo "${ECHO_T}$ac_res" >&6; }
   10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10848   cat >>confdefs.h <<_ACEOF
   10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10850 _ACEOF
   10851 
   10852 fi
   10853 done
   10854 
   10855 
   10856 
   10857 
   10858 
   10859 
   10860 
   10861 
   10862 
   10863 
   10864 
   10865 
   10866 
   10867 
   10868 
   10869 
   10870 
   10871 
   10872 
   10873 
   10874 
   10875 
   10876 
   10877 
   10878 
   10879 
   10880 
   10881 
   10882 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   10883 		  stdio.h unistd.h
   10884 do
   10885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10887   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10890   echo $ECHO_N "(cached) $ECHO_C" >&6
   10891 fi
   10892 ac_res=`eval echo '${'$as_ac_Header'}'`
   10893 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10894 echo "${ECHO_T}$ac_res" >&6; }
   10895 else
   10896   # Is the header compilable?
   10897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10899 cat >conftest.$ac_ext <<_ACEOF
   10900 /* confdefs.h.  */
   10901 _ACEOF
   10902 cat confdefs.h >>conftest.$ac_ext
   10903 cat >>conftest.$ac_ext <<_ACEOF
   10904 /* end confdefs.h.  */
   10905 $ac_includes_default
   10906 #include <$ac_header>
   10907 _ACEOF
   10908 rm -f conftest.$ac_objext
   10909 if { (ac_try="$ac_compile"
   10910 case "(($ac_try" in
   10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10912   *) ac_try_echo=$ac_try;;
   10913 esac
   10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10915   (eval "$ac_compile") 2>conftest.er1
   10916   ac_status=$?
   10917   grep -v '^ *+' conftest.er1 >conftest.err
   10918   rm -f conftest.er1
   10919   cat conftest.err >&5
   10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10921   (exit $ac_status); } &&
   10922 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   10923   { (case "(($ac_try" in
   10924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10925   *) ac_try_echo=$ac_try;;
   10926 esac
   10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10928   (eval "$ac_try") 2>&5
   10929   ac_status=$?
   10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10931   (exit $ac_status); }; } &&
   10932 	 { ac_try='test -s conftest.$ac_objext'
   10933   { (case "(($ac_try" in
   10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10935   *) ac_try_echo=$ac_try;;
   10936 esac
   10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10938   (eval "$ac_try") 2>&5
   10939   ac_status=$?
   10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10941   (exit $ac_status); }; }; then
   10942   ac_header_compiler=yes
   10943 else
   10944   echo "$as_me: failed program was:" >&5
   10945 sed 's/^/| /' conftest.$ac_ext >&5
   10946 
   10947 	ac_header_compiler=no
   10948 fi
   10949 
   10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10952 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10953 
   10954 # Is the header present?
   10955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10957 cat >conftest.$ac_ext <<_ACEOF
   10958 /* confdefs.h.  */
   10959 _ACEOF
   10960 cat confdefs.h >>conftest.$ac_ext
   10961 cat >>conftest.$ac_ext <<_ACEOF
   10962 /* end confdefs.h.  */
   10963 #include <$ac_header>
   10964 _ACEOF
   10965 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10966 case "(($ac_try" in
   10967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10968   *) ac_try_echo=$ac_try;;
   10969 esac
   10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10972   ac_status=$?
   10973   grep -v '^ *+' conftest.er1 >conftest.err
   10974   rm -f conftest.er1
   10975   cat conftest.err >&5
   10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10977   (exit $ac_status); } >/dev/null; then
   10978   if test -s conftest.err; then
   10979     ac_cpp_err=$ac_c_preproc_warn_flag
   10980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   10981   else
   10982     ac_cpp_err=
   10983   fi
   10984 else
   10985   ac_cpp_err=yes
   10986 fi
   10987 if test -z "$ac_cpp_err"; then
   10988   ac_header_preproc=yes
   10989 else
   10990   echo "$as_me: failed program was:" >&5
   10991 sed 's/^/| /' conftest.$ac_ext >&5
   10992 
   10993   ac_header_preproc=no
   10994 fi
   10995 
   10996 rm -f conftest.err conftest.$ac_ext
   10997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10998 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10999 
   11000 # So?  What about this header?
   11001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11002   yes:no: )
   11003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11007     ac_header_preproc=yes
   11008     ;;
   11009   no:yes:* )
   11010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11022     ( cat <<\_ASBOX
   11023 ## ------------------------------------ ##
   11024 ## Report this to http://llvm.org/bugs/ ##
   11025 ## ------------------------------------ ##
   11026 _ASBOX
   11027      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11028     ;;
   11029 esac
   11030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11033   echo $ECHO_N "(cached) $ECHO_C" >&6
   11034 else
   11035   eval "$as_ac_Header=\$ac_header_preproc"
   11036 fi
   11037 ac_res=`eval echo '${'$as_ac_Header'}'`
   11038 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11039 echo "${ECHO_T}$ac_res" >&6; }
   11040 
   11041 fi
   11042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11043   cat >>confdefs.h <<_ACEOF
   11044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11045 _ACEOF
   11046 
   11047 fi
   11048 
   11049 done
   11050 
   11051 
   11052 
   11053 
   11054 
   11055 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   11056 do
   11057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11062   echo $ECHO_N "(cached) $ECHO_C" >&6
   11063 fi
   11064 ac_res=`eval echo '${'$as_ac_Header'}'`
   11065 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11066 echo "${ECHO_T}$ac_res" >&6; }
   11067 else
   11068   # Is the header compilable?
   11069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11071 cat >conftest.$ac_ext <<_ACEOF
   11072 /* confdefs.h.  */
   11073 _ACEOF
   11074 cat confdefs.h >>conftest.$ac_ext
   11075 cat >>conftest.$ac_ext <<_ACEOF
   11076 /* end confdefs.h.  */
   11077 $ac_includes_default
   11078 #include <$ac_header>
   11079 _ACEOF
   11080 rm -f conftest.$ac_objext
   11081 if { (ac_try="$ac_compile"
   11082 case "(($ac_try" in
   11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11084   *) ac_try_echo=$ac_try;;
   11085 esac
   11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11087   (eval "$ac_compile") 2>conftest.er1
   11088   ac_status=$?
   11089   grep -v '^ *+' conftest.er1 >conftest.err
   11090   rm -f conftest.er1
   11091   cat conftest.err >&5
   11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11093   (exit $ac_status); } &&
   11094 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11095   { (case "(($ac_try" in
   11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11097   *) ac_try_echo=$ac_try;;
   11098 esac
   11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11100   (eval "$ac_try") 2>&5
   11101   ac_status=$?
   11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11103   (exit $ac_status); }; } &&
   11104 	 { ac_try='test -s conftest.$ac_objext'
   11105   { (case "(($ac_try" in
   11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11107   *) ac_try_echo=$ac_try;;
   11108 esac
   11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11110   (eval "$ac_try") 2>&5
   11111   ac_status=$?
   11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11113   (exit $ac_status); }; }; then
   11114   ac_header_compiler=yes
   11115 else
   11116   echo "$as_me: failed program was:" >&5
   11117 sed 's/^/| /' conftest.$ac_ext >&5
   11118 
   11119 	ac_header_compiler=no
   11120 fi
   11121 
   11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11125 
   11126 # Is the header present?
   11127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11129 cat >conftest.$ac_ext <<_ACEOF
   11130 /* confdefs.h.  */
   11131 _ACEOF
   11132 cat confdefs.h >>conftest.$ac_ext
   11133 cat >>conftest.$ac_ext <<_ACEOF
   11134 /* end confdefs.h.  */
   11135 #include <$ac_header>
   11136 _ACEOF
   11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11138 case "(($ac_try" in
   11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11140   *) ac_try_echo=$ac_try;;
   11141 esac
   11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11144   ac_status=$?
   11145   grep -v '^ *+' conftest.er1 >conftest.err
   11146   rm -f conftest.er1
   11147   cat conftest.err >&5
   11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11149   (exit $ac_status); } >/dev/null; then
   11150   if test -s conftest.err; then
   11151     ac_cpp_err=$ac_c_preproc_warn_flag
   11152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11153   else
   11154     ac_cpp_err=
   11155   fi
   11156 else
   11157   ac_cpp_err=yes
   11158 fi
   11159 if test -z "$ac_cpp_err"; then
   11160   ac_header_preproc=yes
   11161 else
   11162   echo "$as_me: failed program was:" >&5
   11163 sed 's/^/| /' conftest.$ac_ext >&5
   11164 
   11165   ac_header_preproc=no
   11166 fi
   11167 
   11168 rm -f conftest.err conftest.$ac_ext
   11169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11171 
   11172 # So?  What about this header?
   11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11174   yes:no: )
   11175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11179     ac_header_preproc=yes
   11180     ;;
   11181   no:yes:* )
   11182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11194     ( cat <<\_ASBOX
   11195 ## ------------------------------------ ##
   11196 ## Report this to http://llvm.org/bugs/ ##
   11197 ## ------------------------------------ ##
   11198 _ASBOX
   11199      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11200     ;;
   11201 esac
   11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11205   echo $ECHO_N "(cached) $ECHO_C" >&6
   11206 else
   11207   eval "$as_ac_Header=\$ac_header_preproc"
   11208 fi
   11209 ac_res=`eval echo '${'$as_ac_Header'}'`
   11210 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11211 echo "${ECHO_T}$ac_res" >&6; }
   11212 
   11213 fi
   11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11215   cat >>confdefs.h <<_ACEOF
   11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11217 _ACEOF
   11218 
   11219 fi
   11220 
   11221 done
   11222 
   11223 
   11224 
   11225 for ac_header in string.h strings.h
   11226 do
   11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11229   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11232   echo $ECHO_N "(cached) $ECHO_C" >&6
   11233 fi
   11234 ac_res=`eval echo '${'$as_ac_Header'}'`
   11235 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11236 echo "${ECHO_T}$ac_res" >&6; }
   11237 else
   11238   # Is the header compilable?
   11239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11241 cat >conftest.$ac_ext <<_ACEOF
   11242 /* confdefs.h.  */
   11243 _ACEOF
   11244 cat confdefs.h >>conftest.$ac_ext
   11245 cat >>conftest.$ac_ext <<_ACEOF
   11246 /* end confdefs.h.  */
   11247 $ac_includes_default
   11248 #include <$ac_header>
   11249 _ACEOF
   11250 rm -f conftest.$ac_objext
   11251 if { (ac_try="$ac_compile"
   11252 case "(($ac_try" in
   11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11254   *) ac_try_echo=$ac_try;;
   11255 esac
   11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11257   (eval "$ac_compile") 2>conftest.er1
   11258   ac_status=$?
   11259   grep -v '^ *+' conftest.er1 >conftest.err
   11260   rm -f conftest.er1
   11261   cat conftest.err >&5
   11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11263   (exit $ac_status); } &&
   11264 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11265   { (case "(($ac_try" in
   11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11267   *) ac_try_echo=$ac_try;;
   11268 esac
   11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11270   (eval "$ac_try") 2>&5
   11271   ac_status=$?
   11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11273   (exit $ac_status); }; } &&
   11274 	 { ac_try='test -s conftest.$ac_objext'
   11275   { (case "(($ac_try" in
   11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11277   *) ac_try_echo=$ac_try;;
   11278 esac
   11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11280   (eval "$ac_try") 2>&5
   11281   ac_status=$?
   11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11283   (exit $ac_status); }; }; then
   11284   ac_header_compiler=yes
   11285 else
   11286   echo "$as_me: failed program was:" >&5
   11287 sed 's/^/| /' conftest.$ac_ext >&5
   11288 
   11289 	ac_header_compiler=no
   11290 fi
   11291 
   11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11294 echo "${ECHO_T}$ac_header_compiler" >&6; }
   11295 
   11296 # Is the header present?
   11297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11299 cat >conftest.$ac_ext <<_ACEOF
   11300 /* confdefs.h.  */
   11301 _ACEOF
   11302 cat confdefs.h >>conftest.$ac_ext
   11303 cat >>conftest.$ac_ext <<_ACEOF
   11304 /* end confdefs.h.  */
   11305 #include <$ac_header>
   11306 _ACEOF
   11307 if { (ac_try="$ac_cpp conftest.$ac_ext"
   11308 case "(($ac_try" in
   11309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11310   *) ac_try_echo=$ac_try;;
   11311 esac
   11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11314   ac_status=$?
   11315   grep -v '^ *+' conftest.er1 >conftest.err
   11316   rm -f conftest.er1
   11317   cat conftest.err >&5
   11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11319   (exit $ac_status); } >/dev/null; then
   11320   if test -s conftest.err; then
   11321     ac_cpp_err=$ac_c_preproc_warn_flag
   11322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   11323   else
   11324     ac_cpp_err=
   11325   fi
   11326 else
   11327   ac_cpp_err=yes
   11328 fi
   11329 if test -z "$ac_cpp_err"; then
   11330   ac_header_preproc=yes
   11331 else
   11332   echo "$as_me: failed program was:" >&5
   11333 sed 's/^/| /' conftest.$ac_ext >&5
   11334 
   11335   ac_header_preproc=no
   11336 fi
   11337 
   11338 rm -f conftest.err conftest.$ac_ext
   11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
   11341 
   11342 # So?  What about this header?
   11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11344   yes:no: )
   11345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11349     ac_header_preproc=yes
   11350     ;;
   11351   no:yes:* )
   11352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11364     ( cat <<\_ASBOX
   11365 ## ------------------------------------ ##
   11366 ## Report this to http://llvm.org/bugs/ ##
   11367 ## ------------------------------------ ##
   11368 _ASBOX
   11369      ) | sed "s/^/$as_me: WARNING:     /" >&2
   11370     ;;
   11371 esac
   11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11375   echo $ECHO_N "(cached) $ECHO_C" >&6
   11376 else
   11377   eval "$as_ac_Header=\$ac_header_preproc"
   11378 fi
   11379 ac_res=`eval echo '${'$as_ac_Header'}'`
   11380 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11381 echo "${ECHO_T}$ac_res" >&6; }
   11382 
   11383 fi
   11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11385   cat >>confdefs.h <<_ACEOF
   11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11387 _ACEOF
   11388  break
   11389 fi
   11390 
   11391 done
   11392 
   11393 
   11394 
   11395 
   11396 for ac_func in strchr index
   11397 do
   11398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11402   echo $ECHO_N "(cached) $ECHO_C" >&6
   11403 else
   11404   cat >conftest.$ac_ext <<_ACEOF
   11405 /* confdefs.h.  */
   11406 _ACEOF
   11407 cat confdefs.h >>conftest.$ac_ext
   11408 cat >>conftest.$ac_ext <<_ACEOF
   11409 /* end confdefs.h.  */
   11410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11412 #define $ac_func innocuous_$ac_func
   11413 
   11414 /* System header to define __stub macros and hopefully few prototypes,
   11415     which can conflict with char $ac_func (); below.
   11416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11417     <limits.h> exists even on freestanding compilers.  */
   11418 
   11419 #ifdef __STDC__
   11420 # include <limits.h>
   11421 #else
   11422 # include <assert.h>
   11423 #endif
   11424 
   11425 #undef $ac_func
   11426 
   11427 /* Override any GCC internal prototype to avoid an error.
   11428    Use char because int might match the return type of a GCC
   11429    builtin and then its argument prototype would still apply.  */
   11430 #ifdef __cplusplus
   11431 extern "C"
   11432 #endif
   11433 char $ac_func ();
   11434 /* The GNU C library defines this for functions which it implements
   11435     to always fail with ENOSYS.  Some functions are actually named
   11436     something starting with __ and the normal name is an alias.  */
   11437 #if defined __stub_$ac_func || defined __stub___$ac_func
   11438 choke me
   11439 #endif
   11440 
   11441 int
   11442 main ()
   11443 {
   11444 return $ac_func ();
   11445   ;
   11446   return 0;
   11447 }
   11448 _ACEOF
   11449 rm -f conftest.$ac_objext conftest$ac_exeext
   11450 if { (ac_try="$ac_link"
   11451 case "(($ac_try" in
   11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11453   *) ac_try_echo=$ac_try;;
   11454 esac
   11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11456   (eval "$ac_link") 2>conftest.er1
   11457   ac_status=$?
   11458   grep -v '^ *+' conftest.er1 >conftest.err
   11459   rm -f conftest.er1
   11460   cat conftest.err >&5
   11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11462   (exit $ac_status); } &&
   11463 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11464   { (case "(($ac_try" in
   11465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11466   *) ac_try_echo=$ac_try;;
   11467 esac
   11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11469   (eval "$ac_try") 2>&5
   11470   ac_status=$?
   11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11472   (exit $ac_status); }; } &&
   11473 	 { ac_try='test -s conftest$ac_exeext'
   11474   { (case "(($ac_try" in
   11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11476   *) ac_try_echo=$ac_try;;
   11477 esac
   11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11479   (eval "$ac_try") 2>&5
   11480   ac_status=$?
   11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11482   (exit $ac_status); }; }; then
   11483   eval "$as_ac_var=yes"
   11484 else
   11485   echo "$as_me: failed program was:" >&5
   11486 sed 's/^/| /' conftest.$ac_ext >&5
   11487 
   11488 	eval "$as_ac_var=no"
   11489 fi
   11490 
   11491 rm -f core conftest.err conftest.$ac_objext \
   11492       conftest$ac_exeext conftest.$ac_ext
   11493 fi
   11494 ac_res=`eval echo '${'$as_ac_var'}'`
   11495 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11496 echo "${ECHO_T}$ac_res" >&6; }
   11497 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11498   cat >>confdefs.h <<_ACEOF
   11499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11500 _ACEOF
   11501  break
   11502 fi
   11503 done
   11504 
   11505 
   11506 
   11507 for ac_func in strrchr rindex
   11508 do
   11509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11513   echo $ECHO_N "(cached) $ECHO_C" >&6
   11514 else
   11515   cat >conftest.$ac_ext <<_ACEOF
   11516 /* confdefs.h.  */
   11517 _ACEOF
   11518 cat confdefs.h >>conftest.$ac_ext
   11519 cat >>conftest.$ac_ext <<_ACEOF
   11520 /* end confdefs.h.  */
   11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11523 #define $ac_func innocuous_$ac_func
   11524 
   11525 /* System header to define __stub macros and hopefully few prototypes,
   11526     which can conflict with char $ac_func (); below.
   11527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11528     <limits.h> exists even on freestanding compilers.  */
   11529 
   11530 #ifdef __STDC__
   11531 # include <limits.h>
   11532 #else
   11533 # include <assert.h>
   11534 #endif
   11535 
   11536 #undef $ac_func
   11537 
   11538 /* Override any GCC internal prototype to avoid an error.
   11539    Use char because int might match the return type of a GCC
   11540    builtin and then its argument prototype would still apply.  */
   11541 #ifdef __cplusplus
   11542 extern "C"
   11543 #endif
   11544 char $ac_func ();
   11545 /* The GNU C library defines this for functions which it implements
   11546     to always fail with ENOSYS.  Some functions are actually named
   11547     something starting with __ and the normal name is an alias.  */
   11548 #if defined __stub_$ac_func || defined __stub___$ac_func
   11549 choke me
   11550 #endif
   11551 
   11552 int
   11553 main ()
   11554 {
   11555 return $ac_func ();
   11556   ;
   11557   return 0;
   11558 }
   11559 _ACEOF
   11560 rm -f conftest.$ac_objext conftest$ac_exeext
   11561 if { (ac_try="$ac_link"
   11562 case "(($ac_try" in
   11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11564   *) ac_try_echo=$ac_try;;
   11565 esac
   11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11567   (eval "$ac_link") 2>conftest.er1
   11568   ac_status=$?
   11569   grep -v '^ *+' conftest.er1 >conftest.err
   11570   rm -f conftest.er1
   11571   cat conftest.err >&5
   11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11573   (exit $ac_status); } &&
   11574 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11575   { (case "(($ac_try" in
   11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11577   *) ac_try_echo=$ac_try;;
   11578 esac
   11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11580   (eval "$ac_try") 2>&5
   11581   ac_status=$?
   11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11583   (exit $ac_status); }; } &&
   11584 	 { ac_try='test -s conftest$ac_exeext'
   11585   { (case "(($ac_try" in
   11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11587   *) ac_try_echo=$ac_try;;
   11588 esac
   11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11590   (eval "$ac_try") 2>&5
   11591   ac_status=$?
   11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11593   (exit $ac_status); }; }; then
   11594   eval "$as_ac_var=yes"
   11595 else
   11596   echo "$as_me: failed program was:" >&5
   11597 sed 's/^/| /' conftest.$ac_ext >&5
   11598 
   11599 	eval "$as_ac_var=no"
   11600 fi
   11601 
   11602 rm -f core conftest.err conftest.$ac_objext \
   11603       conftest$ac_exeext conftest.$ac_ext
   11604 fi
   11605 ac_res=`eval echo '${'$as_ac_var'}'`
   11606 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11607 echo "${ECHO_T}$ac_res" >&6; }
   11608 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11609   cat >>confdefs.h <<_ACEOF
   11610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11611 _ACEOF
   11612  break
   11613 fi
   11614 done
   11615 
   11616 
   11617 
   11618 for ac_func in memcpy bcopy
   11619 do
   11620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11624   echo $ECHO_N "(cached) $ECHO_C" >&6
   11625 else
   11626   cat >conftest.$ac_ext <<_ACEOF
   11627 /* confdefs.h.  */
   11628 _ACEOF
   11629 cat confdefs.h >>conftest.$ac_ext
   11630 cat >>conftest.$ac_ext <<_ACEOF
   11631 /* end confdefs.h.  */
   11632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11634 #define $ac_func innocuous_$ac_func
   11635 
   11636 /* System header to define __stub macros and hopefully few prototypes,
   11637     which can conflict with char $ac_func (); below.
   11638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11639     <limits.h> exists even on freestanding compilers.  */
   11640 
   11641 #ifdef __STDC__
   11642 # include <limits.h>
   11643 #else
   11644 # include <assert.h>
   11645 #endif
   11646 
   11647 #undef $ac_func
   11648 
   11649 /* Override any GCC internal prototype to avoid an error.
   11650    Use char because int might match the return type of a GCC
   11651    builtin and then its argument prototype would still apply.  */
   11652 #ifdef __cplusplus
   11653 extern "C"
   11654 #endif
   11655 char $ac_func ();
   11656 /* The GNU C library defines this for functions which it implements
   11657     to always fail with ENOSYS.  Some functions are actually named
   11658     something starting with __ and the normal name is an alias.  */
   11659 #if defined __stub_$ac_func || defined __stub___$ac_func
   11660 choke me
   11661 #endif
   11662 
   11663 int
   11664 main ()
   11665 {
   11666 return $ac_func ();
   11667   ;
   11668   return 0;
   11669 }
   11670 _ACEOF
   11671 rm -f conftest.$ac_objext conftest$ac_exeext
   11672 if { (ac_try="$ac_link"
   11673 case "(($ac_try" in
   11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11675   *) ac_try_echo=$ac_try;;
   11676 esac
   11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11678   (eval "$ac_link") 2>conftest.er1
   11679   ac_status=$?
   11680   grep -v '^ *+' conftest.er1 >conftest.err
   11681   rm -f conftest.er1
   11682   cat conftest.err >&5
   11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11684   (exit $ac_status); } &&
   11685 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11686   { (case "(($ac_try" in
   11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11688   *) ac_try_echo=$ac_try;;
   11689 esac
   11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11691   (eval "$ac_try") 2>&5
   11692   ac_status=$?
   11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11694   (exit $ac_status); }; } &&
   11695 	 { ac_try='test -s conftest$ac_exeext'
   11696   { (case "(($ac_try" in
   11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11698   *) ac_try_echo=$ac_try;;
   11699 esac
   11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11701   (eval "$ac_try") 2>&5
   11702   ac_status=$?
   11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11704   (exit $ac_status); }; }; then
   11705   eval "$as_ac_var=yes"
   11706 else
   11707   echo "$as_me: failed program was:" >&5
   11708 sed 's/^/| /' conftest.$ac_ext >&5
   11709 
   11710 	eval "$as_ac_var=no"
   11711 fi
   11712 
   11713 rm -f core conftest.err conftest.$ac_objext \
   11714       conftest$ac_exeext conftest.$ac_ext
   11715 fi
   11716 ac_res=`eval echo '${'$as_ac_var'}'`
   11717 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11718 echo "${ECHO_T}$ac_res" >&6; }
   11719 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11720   cat >>confdefs.h <<_ACEOF
   11721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11722 _ACEOF
   11723  break
   11724 fi
   11725 done
   11726 
   11727 
   11728 
   11729 for ac_func in memmove strcmp
   11730 do
   11731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11735   echo $ECHO_N "(cached) $ECHO_C" >&6
   11736 else
   11737   cat >conftest.$ac_ext <<_ACEOF
   11738 /* confdefs.h.  */
   11739 _ACEOF
   11740 cat confdefs.h >>conftest.$ac_ext
   11741 cat >>conftest.$ac_ext <<_ACEOF
   11742 /* end confdefs.h.  */
   11743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11745 #define $ac_func innocuous_$ac_func
   11746 
   11747 /* System header to define __stub macros and hopefully few prototypes,
   11748     which can conflict with char $ac_func (); below.
   11749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11750     <limits.h> exists even on freestanding compilers.  */
   11751 
   11752 #ifdef __STDC__
   11753 # include <limits.h>
   11754 #else
   11755 # include <assert.h>
   11756 #endif
   11757 
   11758 #undef $ac_func
   11759 
   11760 /* Override any GCC internal prototype to avoid an error.
   11761    Use char because int might match the return type of a GCC
   11762    builtin and then its argument prototype would still apply.  */
   11763 #ifdef __cplusplus
   11764 extern "C"
   11765 #endif
   11766 char $ac_func ();
   11767 /* The GNU C library defines this for functions which it implements
   11768     to always fail with ENOSYS.  Some functions are actually named
   11769     something starting with __ and the normal name is an alias.  */
   11770 #if defined __stub_$ac_func || defined __stub___$ac_func
   11771 choke me
   11772 #endif
   11773 
   11774 int
   11775 main ()
   11776 {
   11777 return $ac_func ();
   11778   ;
   11779   return 0;
   11780 }
   11781 _ACEOF
   11782 rm -f conftest.$ac_objext conftest$ac_exeext
   11783 if { (ac_try="$ac_link"
   11784 case "(($ac_try" in
   11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11786   *) ac_try_echo=$ac_try;;
   11787 esac
   11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11789   (eval "$ac_link") 2>conftest.er1
   11790   ac_status=$?
   11791   grep -v '^ *+' conftest.er1 >conftest.err
   11792   rm -f conftest.er1
   11793   cat conftest.err >&5
   11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11795   (exit $ac_status); } &&
   11796 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11797   { (case "(($ac_try" in
   11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11799   *) ac_try_echo=$ac_try;;
   11800 esac
   11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11802   (eval "$ac_try") 2>&5
   11803   ac_status=$?
   11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11805   (exit $ac_status); }; } &&
   11806 	 { ac_try='test -s conftest$ac_exeext'
   11807   { (case "(($ac_try" in
   11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11809   *) ac_try_echo=$ac_try;;
   11810 esac
   11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11812   (eval "$ac_try") 2>&5
   11813   ac_status=$?
   11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11815   (exit $ac_status); }; }; then
   11816   eval "$as_ac_var=yes"
   11817 else
   11818   echo "$as_me: failed program was:" >&5
   11819 sed 's/^/| /' conftest.$ac_ext >&5
   11820 
   11821 	eval "$as_ac_var=no"
   11822 fi
   11823 
   11824 rm -f core conftest.err conftest.$ac_objext \
   11825       conftest$ac_exeext conftest.$ac_ext
   11826 fi
   11827 ac_res=`eval echo '${'$as_ac_var'}'`
   11828 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11829 echo "${ECHO_T}$ac_res" >&6; }
   11830 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11831   cat >>confdefs.h <<_ACEOF
   11832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11833 _ACEOF
   11834 
   11835 fi
   11836 done
   11837 
   11838 
   11839 
   11840 
   11841 for ac_func in closedir opendir readdir
   11842 do
   11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11847   echo $ECHO_N "(cached) $ECHO_C" >&6
   11848 else
   11849   cat >conftest.$ac_ext <<_ACEOF
   11850 /* confdefs.h.  */
   11851 _ACEOF
   11852 cat confdefs.h >>conftest.$ac_ext
   11853 cat >>conftest.$ac_ext <<_ACEOF
   11854 /* end confdefs.h.  */
   11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11857 #define $ac_func innocuous_$ac_func
   11858 
   11859 /* System header to define __stub macros and hopefully few prototypes,
   11860     which can conflict with char $ac_func (); below.
   11861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11862     <limits.h> exists even on freestanding compilers.  */
   11863 
   11864 #ifdef __STDC__
   11865 # include <limits.h>
   11866 #else
   11867 # include <assert.h>
   11868 #endif
   11869 
   11870 #undef $ac_func
   11871 
   11872 /* Override any GCC internal prototype to avoid an error.
   11873    Use char because int might match the return type of a GCC
   11874    builtin and then its argument prototype would still apply.  */
   11875 #ifdef __cplusplus
   11876 extern "C"
   11877 #endif
   11878 char $ac_func ();
   11879 /* The GNU C library defines this for functions which it implements
   11880     to always fail with ENOSYS.  Some functions are actually named
   11881     something starting with __ and the normal name is an alias.  */
   11882 #if defined __stub_$ac_func || defined __stub___$ac_func
   11883 choke me
   11884 #endif
   11885 
   11886 int
   11887 main ()
   11888 {
   11889 return $ac_func ();
   11890   ;
   11891   return 0;
   11892 }
   11893 _ACEOF
   11894 rm -f conftest.$ac_objext conftest$ac_exeext
   11895 if { (ac_try="$ac_link"
   11896 case "(($ac_try" in
   11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11898   *) ac_try_echo=$ac_try;;
   11899 esac
   11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11901   (eval "$ac_link") 2>conftest.er1
   11902   ac_status=$?
   11903   grep -v '^ *+' conftest.er1 >conftest.err
   11904   rm -f conftest.er1
   11905   cat conftest.err >&5
   11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11907   (exit $ac_status); } &&
   11908 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   11909   { (case "(($ac_try" in
   11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11911   *) ac_try_echo=$ac_try;;
   11912 esac
   11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11914   (eval "$ac_try") 2>&5
   11915   ac_status=$?
   11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11917   (exit $ac_status); }; } &&
   11918 	 { ac_try='test -s conftest$ac_exeext'
   11919   { (case "(($ac_try" in
   11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11921   *) ac_try_echo=$ac_try;;
   11922 esac
   11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11924   (eval "$ac_try") 2>&5
   11925   ac_status=$?
   11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11927   (exit $ac_status); }; }; then
   11928   eval "$as_ac_var=yes"
   11929 else
   11930   echo "$as_me: failed program was:" >&5
   11931 sed 's/^/| /' conftest.$ac_ext >&5
   11932 
   11933 	eval "$as_ac_var=no"
   11934 fi
   11935 
   11936 rm -f core conftest.err conftest.$ac_objext \
   11937       conftest$ac_exeext conftest.$ac_ext
   11938 fi
   11939 ac_res=`eval echo '${'$as_ac_var'}'`
   11940 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11941 echo "${ECHO_T}$ac_res" >&6; }
   11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11943   cat >>confdefs.h <<_ACEOF
   11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11945 _ACEOF
   11946 
   11947 fi
   11948 done
   11949 
   11950 
   11951 
   11952 { echo "$as_me:$LINENO: checking tool compatibility" >&5
   11953 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
   11954 
   11955 ICC=no
   11956 IXX=no
   11957 case $CC in
   11958   icc*|icpc*)
   11959     ICC=yes
   11960     IXX=yes
   11961     ;;
   11962    *)
   11963     ;;
   11964 esac
   11965 
   11966 if test "$GCC" != "yes" && test "$ICC" != "yes"
   11967 then
   11968   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
   11969 echo "$as_me: error: gcc|icc required but not found" >&2;}
   11970    { (exit 1); exit 1; }; }
   11971 fi
   11972 
   11973 if test "$GXX" != "yes" && test "$IXX" != "yes"
   11974 then
   11975   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
   11976 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
   11977    { (exit 1); exit 1; }; }
   11978 fi
   11979 
   11980 if test "$GCC" = "yes"
   11981 then
   11982   cat >conftest.$ac_ext <<_ACEOF
   11983 #if !defined(__GNUC__) || __GNUC__ < 3
   11984 #error Unsupported GCC version
   11985 #endif
   11986 
   11987 _ACEOF
   11988 rm -f conftest.$ac_objext
   11989 if { (ac_try="$ac_compile"
   11990 case "(($ac_try" in
   11991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11992   *) ac_try_echo=$ac_try;;
   11993 esac
   11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11995   (eval "$ac_compile") 2>conftest.er1
   11996   ac_status=$?
   11997   grep -v '^ *+' conftest.er1 >conftest.err
   11998   rm -f conftest.er1
   11999   cat conftest.err >&5
   12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12001   (exit $ac_status); } &&
   12002 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12003   { (case "(($ac_try" in
   12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12005   *) ac_try_echo=$ac_try;;
   12006 esac
   12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12008   (eval "$ac_try") 2>&5
   12009   ac_status=$?
   12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12011   (exit $ac_status); }; } &&
   12012 	 { ac_try='test -s conftest.$ac_objext'
   12013   { (case "(($ac_try" in
   12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12015   *) ac_try_echo=$ac_try;;
   12016 esac
   12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12018   (eval "$ac_try") 2>&5
   12019   ac_status=$?
   12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12021   (exit $ac_status); }; }; then
   12022   :
   12023 else
   12024   echo "$as_me: failed program was:" >&5
   12025 sed 's/^/| /' conftest.$ac_ext >&5
   12026 
   12027 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
   12028 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
   12029    { (exit 1); exit 1; }; }
   12030 fi
   12031 
   12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12033 fi
   12034 
   12035 if test -z "$llvm_cv_gnu_make_command"
   12036 then
   12037   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
   12038 echo "$as_me: error: GNU Make required but not found" >&2;}
   12039    { (exit 1); exit 1; }; }
   12040 fi
   12041 
   12042 { echo "$as_me:$LINENO: result: ok" >&5
   12043 echo "${ECHO_T}ok" >&6; }
   12044 
   12045 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
   12046 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
   12047 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
   12048 
   12049 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
   12050 
   12051 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
   12052 
   12053 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
   12054 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
   12055 
   12056 
   12057 
   12058 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
   12059 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
   12060 if test "${ac_cv_lib_m_sin+set}" = set; then
   12061   echo $ECHO_N "(cached) $ECHO_C" >&6
   12062 else
   12063   ac_check_lib_save_LIBS=$LIBS
   12064 LIBS="-lm  $LIBS"
   12065 cat >conftest.$ac_ext <<_ACEOF
   12066 /* confdefs.h.  */
   12067 _ACEOF
   12068 cat confdefs.h >>conftest.$ac_ext
   12069 cat >>conftest.$ac_ext <<_ACEOF
   12070 /* end confdefs.h.  */
   12071 
   12072 /* Override any GCC internal prototype to avoid an error.
   12073    Use char because int might match the return type of a GCC
   12074    builtin and then its argument prototype would still apply.  */
   12075 #ifdef __cplusplus
   12076 extern "C"
   12077 #endif
   12078 char sin ();
   12079 int
   12080 main ()
   12081 {
   12082 return sin ();
   12083   ;
   12084   return 0;
   12085 }
   12086 _ACEOF
   12087 rm -f conftest.$ac_objext conftest$ac_exeext
   12088 if { (ac_try="$ac_link"
   12089 case "(($ac_try" in
   12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12091   *) ac_try_echo=$ac_try;;
   12092 esac
   12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12094   (eval "$ac_link") 2>conftest.er1
   12095   ac_status=$?
   12096   grep -v '^ *+' conftest.er1 >conftest.err
   12097   rm -f conftest.er1
   12098   cat conftest.err >&5
   12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12100   (exit $ac_status); } &&
   12101 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12102   { (case "(($ac_try" in
   12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12104   *) ac_try_echo=$ac_try;;
   12105 esac
   12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12107   (eval "$ac_try") 2>&5
   12108   ac_status=$?
   12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12110   (exit $ac_status); }; } &&
   12111 	 { ac_try='test -s conftest$ac_exeext'
   12112   { (case "(($ac_try" in
   12113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12114   *) ac_try_echo=$ac_try;;
   12115 esac
   12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12117   (eval "$ac_try") 2>&5
   12118   ac_status=$?
   12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12120   (exit $ac_status); }; }; then
   12121   ac_cv_lib_m_sin=yes
   12122 else
   12123   echo "$as_me: failed program was:" >&5
   12124 sed 's/^/| /' conftest.$ac_ext >&5
   12125 
   12126 	ac_cv_lib_m_sin=no
   12127 fi
   12128 
   12129 rm -f core conftest.err conftest.$ac_objext \
   12130       conftest$ac_exeext conftest.$ac_ext
   12131 LIBS=$ac_check_lib_save_LIBS
   12132 fi
   12133 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   12134 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
   12135 if test $ac_cv_lib_m_sin = yes; then
   12136   cat >>confdefs.h <<_ACEOF
   12137 #define HAVE_LIBM 1
   12138 _ACEOF
   12139 
   12140   LIBS="-lm $LIBS"
   12141 
   12142 fi
   12143 
   12144 if test "$llvm_cv_os_type" = "MingW" ; then
   12145 
   12146 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
   12147 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
   12148 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
   12149   echo $ECHO_N "(cached) $ECHO_C" >&6
   12150 else
   12151   ac_check_lib_save_LIBS=$LIBS
   12152 LIBS="-limagehlp  $LIBS"
   12153 cat >conftest.$ac_ext <<_ACEOF
   12154 /* confdefs.h.  */
   12155 _ACEOF
   12156 cat confdefs.h >>conftest.$ac_ext
   12157 cat >>conftest.$ac_ext <<_ACEOF
   12158 /* end confdefs.h.  */
   12159 
   12160 
   12161 int
   12162 main ()
   12163 {
   12164 return main ();
   12165   ;
   12166   return 0;
   12167 }
   12168 _ACEOF
   12169 rm -f conftest.$ac_objext conftest$ac_exeext
   12170 if { (ac_try="$ac_link"
   12171 case "(($ac_try" in
   12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12173   *) ac_try_echo=$ac_try;;
   12174 esac
   12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12176   (eval "$ac_link") 2>conftest.er1
   12177   ac_status=$?
   12178   grep -v '^ *+' conftest.er1 >conftest.err
   12179   rm -f conftest.er1
   12180   cat conftest.err >&5
   12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12182   (exit $ac_status); } &&
   12183 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12184   { (case "(($ac_try" in
   12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12186   *) ac_try_echo=$ac_try;;
   12187 esac
   12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12189   (eval "$ac_try") 2>&5
   12190   ac_status=$?
   12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12192   (exit $ac_status); }; } &&
   12193 	 { ac_try='test -s conftest$ac_exeext'
   12194   { (case "(($ac_try" in
   12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12196   *) ac_try_echo=$ac_try;;
   12197 esac
   12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12199   (eval "$ac_try") 2>&5
   12200   ac_status=$?
   12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12202   (exit $ac_status); }; }; then
   12203   ac_cv_lib_imagehlp_main=yes
   12204 else
   12205   echo "$as_me: failed program was:" >&5
   12206 sed 's/^/| /' conftest.$ac_ext >&5
   12207 
   12208 	ac_cv_lib_imagehlp_main=no
   12209 fi
   12210 
   12211 rm -f core conftest.err conftest.$ac_objext \
   12212       conftest$ac_exeext conftest.$ac_ext
   12213 LIBS=$ac_check_lib_save_LIBS
   12214 fi
   12215 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
   12216 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
   12217 if test $ac_cv_lib_imagehlp_main = yes; then
   12218   cat >>confdefs.h <<_ACEOF
   12219 #define HAVE_LIBIMAGEHLP 1
   12220 _ACEOF
   12221 
   12222   LIBS="-limagehlp $LIBS"
   12223 
   12224 fi
   12225 
   12226 
   12227 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
   12228 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
   12229 if test "${ac_cv_lib_psapi_main+set}" = set; then
   12230   echo $ECHO_N "(cached) $ECHO_C" >&6
   12231 else
   12232   ac_check_lib_save_LIBS=$LIBS
   12233 LIBS="-lpsapi  $LIBS"
   12234 cat >conftest.$ac_ext <<_ACEOF
   12235 /* confdefs.h.  */
   12236 _ACEOF
   12237 cat confdefs.h >>conftest.$ac_ext
   12238 cat >>conftest.$ac_ext <<_ACEOF
   12239 /* end confdefs.h.  */
   12240 
   12241 
   12242 int
   12243 main ()
   12244 {
   12245 return main ();
   12246   ;
   12247   return 0;
   12248 }
   12249 _ACEOF
   12250 rm -f conftest.$ac_objext conftest$ac_exeext
   12251 if { (ac_try="$ac_link"
   12252 case "(($ac_try" in
   12253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12254   *) ac_try_echo=$ac_try;;
   12255 esac
   12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12257   (eval "$ac_link") 2>conftest.er1
   12258   ac_status=$?
   12259   grep -v '^ *+' conftest.er1 >conftest.err
   12260   rm -f conftest.er1
   12261   cat conftest.err >&5
   12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12263   (exit $ac_status); } &&
   12264 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12265   { (case "(($ac_try" in
   12266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12267   *) ac_try_echo=$ac_try;;
   12268 esac
   12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12270   (eval "$ac_try") 2>&5
   12271   ac_status=$?
   12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12273   (exit $ac_status); }; } &&
   12274 	 { ac_try='test -s conftest$ac_exeext'
   12275   { (case "(($ac_try" in
   12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12277   *) ac_try_echo=$ac_try;;
   12278 esac
   12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12280   (eval "$ac_try") 2>&5
   12281   ac_status=$?
   12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12283   (exit $ac_status); }; }; then
   12284   ac_cv_lib_psapi_main=yes
   12285 else
   12286   echo "$as_me: failed program was:" >&5
   12287 sed 's/^/| /' conftest.$ac_ext >&5
   12288 
   12289 	ac_cv_lib_psapi_main=no
   12290 fi
   12291 
   12292 rm -f core conftest.err conftest.$ac_objext \
   12293       conftest$ac_exeext conftest.$ac_ext
   12294 LIBS=$ac_check_lib_save_LIBS
   12295 fi
   12296 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
   12297 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
   12298 if test $ac_cv_lib_psapi_main = yes; then
   12299   cat >>confdefs.h <<_ACEOF
   12300 #define HAVE_LIBPSAPI 1
   12301 _ACEOF
   12302 
   12303   LIBS="-lpsapi $LIBS"
   12304 
   12305 fi
   12306 
   12307 fi
   12308 
   12309 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
   12310 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
   12311 if test "${ac_cv_search_dlopen+set}" = set; then
   12312   echo $ECHO_N "(cached) $ECHO_C" >&6
   12313 else
   12314   ac_func_search_save_LIBS=$LIBS
   12315 cat >conftest.$ac_ext <<_ACEOF
   12316 /* confdefs.h.  */
   12317 _ACEOF
   12318 cat confdefs.h >>conftest.$ac_ext
   12319 cat >>conftest.$ac_ext <<_ACEOF
   12320 /* end confdefs.h.  */
   12321 
   12322 /* Override any GCC internal prototype to avoid an error.
   12323    Use char because int might match the return type of a GCC
   12324    builtin and then its argument prototype would still apply.  */
   12325 #ifdef __cplusplus
   12326 extern "C"
   12327 #endif
   12328 char dlopen ();
   12329 int
   12330 main ()
   12331 {
   12332 return dlopen ();
   12333   ;
   12334   return 0;
   12335 }
   12336 _ACEOF
   12337 for ac_lib in '' dl; do
   12338   if test -z "$ac_lib"; then
   12339     ac_res="none required"
   12340   else
   12341     ac_res=-l$ac_lib
   12342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12343   fi
   12344   rm -f conftest.$ac_objext conftest$ac_exeext
   12345 if { (ac_try="$ac_link"
   12346 case "(($ac_try" in
   12347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12348   *) ac_try_echo=$ac_try;;
   12349 esac
   12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12351   (eval "$ac_link") 2>conftest.er1
   12352   ac_status=$?
   12353   grep -v '^ *+' conftest.er1 >conftest.err
   12354   rm -f conftest.er1
   12355   cat conftest.err >&5
   12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12357   (exit $ac_status); } &&
   12358 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12359   { (case "(($ac_try" in
   12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12361   *) ac_try_echo=$ac_try;;
   12362 esac
   12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12364   (eval "$ac_try") 2>&5
   12365   ac_status=$?
   12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12367   (exit $ac_status); }; } &&
   12368 	 { ac_try='test -s conftest$ac_exeext'
   12369   { (case "(($ac_try" in
   12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12371   *) ac_try_echo=$ac_try;;
   12372 esac
   12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12374   (eval "$ac_try") 2>&5
   12375   ac_status=$?
   12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12377   (exit $ac_status); }; }; then
   12378   ac_cv_search_dlopen=$ac_res
   12379 else
   12380   echo "$as_me: failed program was:" >&5
   12381 sed 's/^/| /' conftest.$ac_ext >&5
   12382 
   12383 
   12384 fi
   12385 
   12386 rm -f core conftest.err conftest.$ac_objext \
   12387       conftest$ac_exeext
   12388   if test "${ac_cv_search_dlopen+set}" = set; then
   12389   break
   12390 fi
   12391 done
   12392 if test "${ac_cv_search_dlopen+set}" = set; then
   12393   :
   12394 else
   12395   ac_cv_search_dlopen=no
   12396 fi
   12397 rm conftest.$ac_ext
   12398 LIBS=$ac_func_search_save_LIBS
   12399 fi
   12400 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
   12401 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
   12402 ac_res=$ac_cv_search_dlopen
   12403 if test "$ac_res" != no; then
   12404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12405 
   12406 cat >>confdefs.h <<\_ACEOF
   12407 #define HAVE_DLOPEN 1
   12408 _ACEOF
   12409 
   12410 else
   12411   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
   12412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
   12413 fi
   12414 
   12415 
   12416 if test "$llvm_cv_enable_libffi" = "yes" ; then
   12417   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
   12418 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
   12419 if test "${ac_cv_search_ffi_call+set}" = set; then
   12420   echo $ECHO_N "(cached) $ECHO_C" >&6
   12421 else
   12422   ac_func_search_save_LIBS=$LIBS
   12423 cat >conftest.$ac_ext <<_ACEOF
   12424 /* confdefs.h.  */
   12425 _ACEOF
   12426 cat confdefs.h >>conftest.$ac_ext
   12427 cat >>conftest.$ac_ext <<_ACEOF
   12428 /* end confdefs.h.  */
   12429 
   12430 /* Override any GCC internal prototype to avoid an error.
   12431    Use char because int might match the return type of a GCC
   12432    builtin and then its argument prototype would still apply.  */
   12433 #ifdef __cplusplus
   12434 extern "C"
   12435 #endif
   12436 char ffi_call ();
   12437 int
   12438 main ()
   12439 {
   12440 return ffi_call ();
   12441   ;
   12442   return 0;
   12443 }
   12444 _ACEOF
   12445 for ac_lib in '' ffi; do
   12446   if test -z "$ac_lib"; then
   12447     ac_res="none required"
   12448   else
   12449     ac_res=-l$ac_lib
   12450     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12451   fi
   12452   rm -f conftest.$ac_objext conftest$ac_exeext
   12453 if { (ac_try="$ac_link"
   12454 case "(($ac_try" in
   12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12456   *) ac_try_echo=$ac_try;;
   12457 esac
   12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12459   (eval "$ac_link") 2>conftest.er1
   12460   ac_status=$?
   12461   grep -v '^ *+' conftest.er1 >conftest.err
   12462   rm -f conftest.er1
   12463   cat conftest.err >&5
   12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12465   (exit $ac_status); } &&
   12466 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12467   { (case "(($ac_try" in
   12468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12469   *) ac_try_echo=$ac_try;;
   12470 esac
   12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12472   (eval "$ac_try") 2>&5
   12473   ac_status=$?
   12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12475   (exit $ac_status); }; } &&
   12476 	 { ac_try='test -s conftest$ac_exeext'
   12477   { (case "(($ac_try" in
   12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12479   *) ac_try_echo=$ac_try;;
   12480 esac
   12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12482   (eval "$ac_try") 2>&5
   12483   ac_status=$?
   12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12485   (exit $ac_status); }; }; then
   12486   ac_cv_search_ffi_call=$ac_res
   12487 else
   12488   echo "$as_me: failed program was:" >&5
   12489 sed 's/^/| /' conftest.$ac_ext >&5
   12490 
   12491 
   12492 fi
   12493 
   12494 rm -f core conftest.err conftest.$ac_objext \
   12495       conftest$ac_exeext
   12496   if test "${ac_cv_search_ffi_call+set}" = set; then
   12497   break
   12498 fi
   12499 done
   12500 if test "${ac_cv_search_ffi_call+set}" = set; then
   12501   :
   12502 else
   12503   ac_cv_search_ffi_call=no
   12504 fi
   12505 rm conftest.$ac_ext
   12506 LIBS=$ac_func_search_save_LIBS
   12507 fi
   12508 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
   12509 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
   12510 ac_res=$ac_cv_search_ffi_call
   12511 if test "$ac_res" != no; then
   12512   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12513 
   12514 cat >>confdefs.h <<\_ACEOF
   12515 #define HAVE_FFI_CALL 1
   12516 _ACEOF
   12517 
   12518 else
   12519   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
   12520 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
   12521    { (exit 1); exit 1; }; }
   12522 fi
   12523 
   12524 fi
   12525 
   12526 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
   12527 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
   12528 if test "${ac_cv_search_mallinfo+set}" = set; then
   12529   echo $ECHO_N "(cached) $ECHO_C" >&6
   12530 else
   12531   ac_func_search_save_LIBS=$LIBS
   12532 cat >conftest.$ac_ext <<_ACEOF
   12533 /* confdefs.h.  */
   12534 _ACEOF
   12535 cat confdefs.h >>conftest.$ac_ext
   12536 cat >>conftest.$ac_ext <<_ACEOF
   12537 /* end confdefs.h.  */
   12538 
   12539 /* Override any GCC internal prototype to avoid an error.
   12540    Use char because int might match the return type of a GCC
   12541    builtin and then its argument prototype would still apply.  */
   12542 #ifdef __cplusplus
   12543 extern "C"
   12544 #endif
   12545 char mallinfo ();
   12546 int
   12547 main ()
   12548 {
   12549 return mallinfo ();
   12550   ;
   12551   return 0;
   12552 }
   12553 _ACEOF
   12554 for ac_lib in '' malloc; do
   12555   if test -z "$ac_lib"; then
   12556     ac_res="none required"
   12557   else
   12558     ac_res=-l$ac_lib
   12559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12560   fi
   12561   rm -f conftest.$ac_objext conftest$ac_exeext
   12562 if { (ac_try="$ac_link"
   12563 case "(($ac_try" in
   12564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12565   *) ac_try_echo=$ac_try;;
   12566 esac
   12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12568   (eval "$ac_link") 2>conftest.er1
   12569   ac_status=$?
   12570   grep -v '^ *+' conftest.er1 >conftest.err
   12571   rm -f conftest.er1
   12572   cat conftest.err >&5
   12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12574   (exit $ac_status); } &&
   12575 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12576   { (case "(($ac_try" in
   12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12578   *) ac_try_echo=$ac_try;;
   12579 esac
   12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12581   (eval "$ac_try") 2>&5
   12582   ac_status=$?
   12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12584   (exit $ac_status); }; } &&
   12585 	 { ac_try='test -s conftest$ac_exeext'
   12586   { (case "(($ac_try" in
   12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12588   *) ac_try_echo=$ac_try;;
   12589 esac
   12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12591   (eval "$ac_try") 2>&5
   12592   ac_status=$?
   12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12594   (exit $ac_status); }; }; then
   12595   ac_cv_search_mallinfo=$ac_res
   12596 else
   12597   echo "$as_me: failed program was:" >&5
   12598 sed 's/^/| /' conftest.$ac_ext >&5
   12599 
   12600 
   12601 fi
   12602 
   12603 rm -f core conftest.err conftest.$ac_objext \
   12604       conftest$ac_exeext
   12605   if test "${ac_cv_search_mallinfo+set}" = set; then
   12606   break
   12607 fi
   12608 done
   12609 if test "${ac_cv_search_mallinfo+set}" = set; then
   12610   :
   12611 else
   12612   ac_cv_search_mallinfo=no
   12613 fi
   12614 rm conftest.$ac_ext
   12615 LIBS=$ac_func_search_save_LIBS
   12616 fi
   12617 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
   12618 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
   12619 ac_res=$ac_cv_search_mallinfo
   12620 if test "$ac_res" != no; then
   12621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12622 
   12623 cat >>confdefs.h <<\_ACEOF
   12624 #define HAVE_MALLINFO 1
   12625 _ACEOF
   12626 
   12627 fi
   12628 
   12629 
   12630 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   12631 
   12632 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
   12633 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
   12634 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
   12635   echo $ECHO_N "(cached) $ECHO_C" >&6
   12636 else
   12637   ac_check_lib_save_LIBS=$LIBS
   12638 LIBS="-lpthread  $LIBS"
   12639 cat >conftest.$ac_ext <<_ACEOF
   12640 /* confdefs.h.  */
   12641 _ACEOF
   12642 cat confdefs.h >>conftest.$ac_ext
   12643 cat >>conftest.$ac_ext <<_ACEOF
   12644 /* end confdefs.h.  */
   12645 
   12646 /* Override any GCC internal prototype to avoid an error.
   12647    Use char because int might match the return type of a GCC
   12648    builtin and then its argument prototype would still apply.  */
   12649 #ifdef __cplusplus
   12650 extern "C"
   12651 #endif
   12652 char pthread_mutex_init ();
   12653 int
   12654 main ()
   12655 {
   12656 return pthread_mutex_init ();
   12657   ;
   12658   return 0;
   12659 }
   12660 _ACEOF
   12661 rm -f conftest.$ac_objext conftest$ac_exeext
   12662 if { (ac_try="$ac_link"
   12663 case "(($ac_try" in
   12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12665   *) ac_try_echo=$ac_try;;
   12666 esac
   12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12668   (eval "$ac_link") 2>conftest.er1
   12669   ac_status=$?
   12670   grep -v '^ *+' conftest.er1 >conftest.err
   12671   rm -f conftest.er1
   12672   cat conftest.err >&5
   12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12674   (exit $ac_status); } &&
   12675 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12676   { (case "(($ac_try" in
   12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12678   *) ac_try_echo=$ac_try;;
   12679 esac
   12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12681   (eval "$ac_try") 2>&5
   12682   ac_status=$?
   12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12684   (exit $ac_status); }; } &&
   12685 	 { ac_try='test -s conftest$ac_exeext'
   12686   { (case "(($ac_try" in
   12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12688   *) ac_try_echo=$ac_try;;
   12689 esac
   12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12691   (eval "$ac_try") 2>&5
   12692   ac_status=$?
   12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12694   (exit $ac_status); }; }; then
   12695   ac_cv_lib_pthread_pthread_mutex_init=yes
   12696 else
   12697   echo "$as_me: failed program was:" >&5
   12698 sed 's/^/| /' conftest.$ac_ext >&5
   12699 
   12700 	ac_cv_lib_pthread_pthread_mutex_init=no
   12701 fi
   12702 
   12703 rm -f core conftest.err conftest.$ac_objext \
   12704       conftest$ac_exeext conftest.$ac_ext
   12705 LIBS=$ac_check_lib_save_LIBS
   12706 fi
   12707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
   12708 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
   12709 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
   12710   cat >>confdefs.h <<_ACEOF
   12711 #define HAVE_LIBPTHREAD 1
   12712 _ACEOF
   12713 
   12714   LIBS="-lpthread $LIBS"
   12715 
   12716 fi
   12717 
   12718   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
   12719 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
   12720 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12721   echo $ECHO_N "(cached) $ECHO_C" >&6
   12722 else
   12723   ac_func_search_save_LIBS=$LIBS
   12724 cat >conftest.$ac_ext <<_ACEOF
   12725 /* confdefs.h.  */
   12726 _ACEOF
   12727 cat confdefs.h >>conftest.$ac_ext
   12728 cat >>conftest.$ac_ext <<_ACEOF
   12729 /* end confdefs.h.  */
   12730 
   12731 /* Override any GCC internal prototype to avoid an error.
   12732    Use char because int might match the return type of a GCC
   12733    builtin and then its argument prototype would still apply.  */
   12734 #ifdef __cplusplus
   12735 extern "C"
   12736 #endif
   12737 char pthread_mutex_lock ();
   12738 int
   12739 main ()
   12740 {
   12741 return pthread_mutex_lock ();
   12742   ;
   12743   return 0;
   12744 }
   12745 _ACEOF
   12746 for ac_lib in '' pthread; do
   12747   if test -z "$ac_lib"; then
   12748     ac_res="none required"
   12749   else
   12750     ac_res=-l$ac_lib
   12751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12752   fi
   12753   rm -f conftest.$ac_objext conftest$ac_exeext
   12754 if { (ac_try="$ac_link"
   12755 case "(($ac_try" in
   12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12757   *) ac_try_echo=$ac_try;;
   12758 esac
   12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12760   (eval "$ac_link") 2>conftest.er1
   12761   ac_status=$?
   12762   grep -v '^ *+' conftest.er1 >conftest.err
   12763   rm -f conftest.er1
   12764   cat conftest.err >&5
   12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12766   (exit $ac_status); } &&
   12767 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12768   { (case "(($ac_try" in
   12769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12770   *) ac_try_echo=$ac_try;;
   12771 esac
   12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12773   (eval "$ac_try") 2>&5
   12774   ac_status=$?
   12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12776   (exit $ac_status); }; } &&
   12777 	 { ac_try='test -s conftest$ac_exeext'
   12778   { (case "(($ac_try" in
   12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12780   *) ac_try_echo=$ac_try;;
   12781 esac
   12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12783   (eval "$ac_try") 2>&5
   12784   ac_status=$?
   12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12786   (exit $ac_status); }; }; then
   12787   ac_cv_search_pthread_mutex_lock=$ac_res
   12788 else
   12789   echo "$as_me: failed program was:" >&5
   12790 sed 's/^/| /' conftest.$ac_ext >&5
   12791 
   12792 
   12793 fi
   12794 
   12795 rm -f core conftest.err conftest.$ac_objext \
   12796       conftest$ac_exeext
   12797   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12798   break
   12799 fi
   12800 done
   12801 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12802   :
   12803 else
   12804   ac_cv_search_pthread_mutex_lock=no
   12805 fi
   12806 rm conftest.$ac_ext
   12807 LIBS=$ac_func_search_save_LIBS
   12808 fi
   12809 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
   12810 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
   12811 ac_res=$ac_cv_search_pthread_mutex_lock
   12812 if test "$ac_res" != no; then
   12813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12814 
   12815 cat >>confdefs.h <<\_ACEOF
   12816 #define HAVE_PTHREAD_MUTEX_LOCK 1
   12817 _ACEOF
   12818 
   12819 fi
   12820 
   12821   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
   12822 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
   12823 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12824   echo $ECHO_N "(cached) $ECHO_C" >&6
   12825 else
   12826   ac_func_search_save_LIBS=$LIBS
   12827 cat >conftest.$ac_ext <<_ACEOF
   12828 /* confdefs.h.  */
   12829 _ACEOF
   12830 cat confdefs.h >>conftest.$ac_ext
   12831 cat >>conftest.$ac_ext <<_ACEOF
   12832 /* end confdefs.h.  */
   12833 
   12834 /* Override any GCC internal prototype to avoid an error.
   12835    Use char because int might match the return type of a GCC
   12836    builtin and then its argument prototype would still apply.  */
   12837 #ifdef __cplusplus
   12838 extern "C"
   12839 #endif
   12840 char pthread_rwlock_init ();
   12841 int
   12842 main ()
   12843 {
   12844 return pthread_rwlock_init ();
   12845   ;
   12846   return 0;
   12847 }
   12848 _ACEOF
   12849 for ac_lib in '' pthread; do
   12850   if test -z "$ac_lib"; then
   12851     ac_res="none required"
   12852   else
   12853     ac_res=-l$ac_lib
   12854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12855   fi
   12856   rm -f conftest.$ac_objext conftest$ac_exeext
   12857 if { (ac_try="$ac_link"
   12858 case "(($ac_try" in
   12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12860   *) ac_try_echo=$ac_try;;
   12861 esac
   12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12863   (eval "$ac_link") 2>conftest.er1
   12864   ac_status=$?
   12865   grep -v '^ *+' conftest.er1 >conftest.err
   12866   rm -f conftest.er1
   12867   cat conftest.err >&5
   12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12869   (exit $ac_status); } &&
   12870 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12871   { (case "(($ac_try" in
   12872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12873   *) ac_try_echo=$ac_try;;
   12874 esac
   12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12876   (eval "$ac_try") 2>&5
   12877   ac_status=$?
   12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12879   (exit $ac_status); }; } &&
   12880 	 { ac_try='test -s conftest$ac_exeext'
   12881   { (case "(($ac_try" in
   12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12883   *) ac_try_echo=$ac_try;;
   12884 esac
   12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12886   (eval "$ac_try") 2>&5
   12887   ac_status=$?
   12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12889   (exit $ac_status); }; }; then
   12890   ac_cv_search_pthread_rwlock_init=$ac_res
   12891 else
   12892   echo "$as_me: failed program was:" >&5
   12893 sed 's/^/| /' conftest.$ac_ext >&5
   12894 
   12895 
   12896 fi
   12897 
   12898 rm -f core conftest.err conftest.$ac_objext \
   12899       conftest$ac_exeext
   12900   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12901   break
   12902 fi
   12903 done
   12904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12905   :
   12906 else
   12907   ac_cv_search_pthread_rwlock_init=no
   12908 fi
   12909 rm conftest.$ac_ext
   12910 LIBS=$ac_func_search_save_LIBS
   12911 fi
   12912 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
   12913 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
   12914 ac_res=$ac_cv_search_pthread_rwlock_init
   12915 if test "$ac_res" != no; then
   12916   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12917 
   12918 cat >>confdefs.h <<\_ACEOF
   12919 #define HAVE_PTHREAD_RWLOCK_INIT 1
   12920 _ACEOF
   12921 
   12922 fi
   12923 
   12924   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
   12925 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
   12926 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   12927   echo $ECHO_N "(cached) $ECHO_C" >&6
   12928 else
   12929   ac_func_search_save_LIBS=$LIBS
   12930 cat >conftest.$ac_ext <<_ACEOF
   12931 /* confdefs.h.  */
   12932 _ACEOF
   12933 cat confdefs.h >>conftest.$ac_ext
   12934 cat >>conftest.$ac_ext <<_ACEOF
   12935 /* end confdefs.h.  */
   12936 
   12937 /* Override any GCC internal prototype to avoid an error.
   12938    Use char because int might match the return type of a GCC
   12939    builtin and then its argument prototype would still apply.  */
   12940 #ifdef __cplusplus
   12941 extern "C"
   12942 #endif
   12943 char pthread_getspecific ();
   12944 int
   12945 main ()
   12946 {
   12947 return pthread_getspecific ();
   12948   ;
   12949   return 0;
   12950 }
   12951 _ACEOF
   12952 for ac_lib in '' pthread; do
   12953   if test -z "$ac_lib"; then
   12954     ac_res="none required"
   12955   else
   12956     ac_res=-l$ac_lib
   12957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12958   fi
   12959   rm -f conftest.$ac_objext conftest$ac_exeext
   12960 if { (ac_try="$ac_link"
   12961 case "(($ac_try" in
   12962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12963   *) ac_try_echo=$ac_try;;
   12964 esac
   12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12966   (eval "$ac_link") 2>conftest.er1
   12967   ac_status=$?
   12968   grep -v '^ *+' conftest.er1 >conftest.err
   12969   rm -f conftest.er1
   12970   cat conftest.err >&5
   12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12972   (exit $ac_status); } &&
   12973 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   12974   { (case "(($ac_try" in
   12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12976   *) ac_try_echo=$ac_try;;
   12977 esac
   12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12979   (eval "$ac_try") 2>&5
   12980   ac_status=$?
   12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12982   (exit $ac_status); }; } &&
   12983 	 { ac_try='test -s conftest$ac_exeext'
   12984   { (case "(($ac_try" in
   12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12986   *) ac_try_echo=$ac_try;;
   12987 esac
   12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12989   (eval "$ac_try") 2>&5
   12990   ac_status=$?
   12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12992   (exit $ac_status); }; }; then
   12993   ac_cv_search_pthread_getspecific=$ac_res
   12994 else
   12995   echo "$as_me: failed program was:" >&5
   12996 sed 's/^/| /' conftest.$ac_ext >&5
   12997 
   12998 
   12999 fi
   13000 
   13001 rm -f core conftest.err conftest.$ac_objext \
   13002       conftest$ac_exeext
   13003   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13004   break
   13005 fi
   13006 done
   13007 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   13008   :
   13009 else
   13010   ac_cv_search_pthread_getspecific=no
   13011 fi
   13012 rm conftest.$ac_ext
   13013 LIBS=$ac_func_search_save_LIBS
   13014 fi
   13015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
   13016 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
   13017 ac_res=$ac_cv_search_pthread_getspecific
   13018 if test "$ac_res" != no; then
   13019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13020 
   13021 cat >>confdefs.h <<\_ACEOF
   13022 #define HAVE_PTHREAD_GETSPECIFIC 1
   13023 _ACEOF
   13024 
   13025 fi
   13026 
   13027 fi
   13028 
   13029 
   13030 # Check whether --with-udis86 was given.
   13031 if test "${with_udis86+set}" = set; then
   13032   withval=$with_udis86;
   13033       USE_UDIS86=1
   13034 
   13035       case "$withval" in
   13036         /usr/lib|yes) ;;
   13037         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
   13038       esac
   13039 
   13040 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
   13041 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
   13042 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
   13043   echo $ECHO_N "(cached) $ECHO_C" >&6
   13044 else
   13045   ac_check_lib_save_LIBS=$LIBS
   13046 LIBS="-ludis86  $LIBS"
   13047 cat >conftest.$ac_ext <<_ACEOF
   13048 /* confdefs.h.  */
   13049 _ACEOF
   13050 cat confdefs.h >>conftest.$ac_ext
   13051 cat >>conftest.$ac_ext <<_ACEOF
   13052 /* end confdefs.h.  */
   13053 
   13054 /* Override any GCC internal prototype to avoid an error.
   13055    Use char because int might match the return type of a GCC
   13056    builtin and then its argument prototype would still apply.  */
   13057 #ifdef __cplusplus
   13058 extern "C"
   13059 #endif
   13060 char ud_init ();
   13061 int
   13062 main ()
   13063 {
   13064 return ud_init ();
   13065   ;
   13066   return 0;
   13067 }
   13068 _ACEOF
   13069 rm -f conftest.$ac_objext conftest$ac_exeext
   13070 if { (ac_try="$ac_link"
   13071 case "(($ac_try" in
   13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13073   *) ac_try_echo=$ac_try;;
   13074 esac
   13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13076   (eval "$ac_link") 2>conftest.er1
   13077   ac_status=$?
   13078   grep -v '^ *+' conftest.er1 >conftest.err
   13079   rm -f conftest.er1
   13080   cat conftest.err >&5
   13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13082   (exit $ac_status); } &&
   13083 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13084   { (case "(($ac_try" in
   13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13086   *) ac_try_echo=$ac_try;;
   13087 esac
   13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13089   (eval "$ac_try") 2>&5
   13090   ac_status=$?
   13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13092   (exit $ac_status); }; } &&
   13093 	 { ac_try='test -s conftest$ac_exeext'
   13094   { (case "(($ac_try" in
   13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13096   *) ac_try_echo=$ac_try;;
   13097 esac
   13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13099   (eval "$ac_try") 2>&5
   13100   ac_status=$?
   13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13102   (exit $ac_status); }; }; then
   13103   ac_cv_lib_udis86_ud_init=yes
   13104 else
   13105   echo "$as_me: failed program was:" >&5
   13106 sed 's/^/| /' conftest.$ac_ext >&5
   13107 
   13108 	ac_cv_lib_udis86_ud_init=no
   13109 fi
   13110 
   13111 rm -f core conftest.err conftest.$ac_objext \
   13112       conftest$ac_exeext conftest.$ac_ext
   13113 LIBS=$ac_check_lib_save_LIBS
   13114 fi
   13115 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
   13116 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
   13117 if test $ac_cv_lib_udis86_ud_init = yes; then
   13118   cat >>confdefs.h <<_ACEOF
   13119 #define HAVE_LIBUDIS86 1
   13120 _ACEOF
   13121 
   13122   LIBS="-ludis86 $LIBS"
   13123 
   13124 else
   13125 
   13126         echo "Error! You need to have libudis86 around."
   13127         exit -1
   13128 
   13129 fi
   13130 
   13131 
   13132 else
   13133   USE_UDIS86=0
   13134 
   13135 fi
   13136 
   13137 
   13138 cat >>confdefs.h <<_ACEOF
   13139 #define USE_UDIS86 $USE_UDIS86
   13140 _ACEOF
   13141 
   13142 
   13143 
   13144 # Check whether --with-oprofile was given.
   13145 if test "${with_oprofile+set}" = set; then
   13146   withval=$with_oprofile;
   13147       USE_OPROFILE=1
   13148 
   13149       case "$withval" in
   13150         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
   13151         no) llvm_cv_oppath=
   13152             USE_OPROFILE=0
   13153  ;;
   13154         *) llvm_cv_oppath="${withval}/lib/oprofile"
   13155            CPPFLAGS="-I${withval}/include";;
   13156       esac
   13157       case $llvm_cv_os_type in
   13158         Linux)
   13159           if test -n "$llvm_cv_oppath" ; then
   13160             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
   13161                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
   13162 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
   13163 if test "${ac_cv_search_bfd_init+set}" = set; then
   13164   echo $ECHO_N "(cached) $ECHO_C" >&6
   13165 else
   13166   ac_func_search_save_LIBS=$LIBS
   13167 cat >conftest.$ac_ext <<_ACEOF
   13168 /* confdefs.h.  */
   13169 _ACEOF
   13170 cat confdefs.h >>conftest.$ac_ext
   13171 cat >>conftest.$ac_ext <<_ACEOF
   13172 /* end confdefs.h.  */
   13173 
   13174 /* Override any GCC internal prototype to avoid an error.
   13175    Use char because int might match the return type of a GCC
   13176    builtin and then its argument prototype would still apply.  */
   13177 #ifdef __cplusplus
   13178 extern "C"
   13179 #endif
   13180 char bfd_init ();
   13181 int
   13182 main ()
   13183 {
   13184 return bfd_init ();
   13185   ;
   13186   return 0;
   13187 }
   13188 _ACEOF
   13189 for ac_lib in '' bfd; do
   13190   if test -z "$ac_lib"; then
   13191     ac_res="none required"
   13192   else
   13193     ac_res=-l$ac_lib
   13194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13195   fi
   13196   rm -f conftest.$ac_objext conftest$ac_exeext
   13197 if { (ac_try="$ac_link"
   13198 case "(($ac_try" in
   13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13200   *) ac_try_echo=$ac_try;;
   13201 esac
   13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13203   (eval "$ac_link") 2>conftest.er1
   13204   ac_status=$?
   13205   grep -v '^ *+' conftest.er1 >conftest.err
   13206   rm -f conftest.er1
   13207   cat conftest.err >&5
   13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13209   (exit $ac_status); } &&
   13210 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13211   { (case "(($ac_try" in
   13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13213   *) ac_try_echo=$ac_try;;
   13214 esac
   13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13216   (eval "$ac_try") 2>&5
   13217   ac_status=$?
   13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13219   (exit $ac_status); }; } &&
   13220 	 { ac_try='test -s conftest$ac_exeext'
   13221   { (case "(($ac_try" in
   13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13223   *) ac_try_echo=$ac_try;;
   13224 esac
   13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13226   (eval "$ac_try") 2>&5
   13227   ac_status=$?
   13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13229   (exit $ac_status); }; }; then
   13230   ac_cv_search_bfd_init=$ac_res
   13231 else
   13232   echo "$as_me: failed program was:" >&5
   13233 sed 's/^/| /' conftest.$ac_ext >&5
   13234 
   13235 
   13236 fi
   13237 
   13238 rm -f core conftest.err conftest.$ac_objext \
   13239       conftest$ac_exeext
   13240   if test "${ac_cv_search_bfd_init+set}" = set; then
   13241   break
   13242 fi
   13243 done
   13244 if test "${ac_cv_search_bfd_init+set}" = set; then
   13245   :
   13246 else
   13247   ac_cv_search_bfd_init=no
   13248 fi
   13249 rm conftest.$ac_ext
   13250 LIBS=$ac_func_search_save_LIBS
   13251 fi
   13252 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
   13253 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
   13254 ac_res=$ac_cv_search_bfd_init
   13255 if test "$ac_res" != no; then
   13256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13257 
   13258 fi
   13259 
   13260             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
   13261 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
   13262 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13263   echo $ECHO_N "(cached) $ECHO_C" >&6
   13264 else
   13265   ac_func_search_save_LIBS=$LIBS
   13266 cat >conftest.$ac_ext <<_ACEOF
   13267 /* confdefs.h.  */
   13268 _ACEOF
   13269 cat confdefs.h >>conftest.$ac_ext
   13270 cat >>conftest.$ac_ext <<_ACEOF
   13271 /* end confdefs.h.  */
   13272 
   13273 /* Override any GCC internal prototype to avoid an error.
   13274    Use char because int might match the return type of a GCC
   13275    builtin and then its argument prototype would still apply.  */
   13276 #ifdef __cplusplus
   13277 extern "C"
   13278 #endif
   13279 char op_open_agent ();
   13280 int
   13281 main ()
   13282 {
   13283 return op_open_agent ();
   13284   ;
   13285   return 0;
   13286 }
   13287 _ACEOF
   13288 for ac_lib in '' opagent; do
   13289   if test -z "$ac_lib"; then
   13290     ac_res="none required"
   13291   else
   13292     ac_res=-l$ac_lib
   13293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13294   fi
   13295   rm -f conftest.$ac_objext conftest$ac_exeext
   13296 if { (ac_try="$ac_link"
   13297 case "(($ac_try" in
   13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13299   *) ac_try_echo=$ac_try;;
   13300 esac
   13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13302   (eval "$ac_link") 2>conftest.er1
   13303   ac_status=$?
   13304   grep -v '^ *+' conftest.er1 >conftest.err
   13305   rm -f conftest.er1
   13306   cat conftest.err >&5
   13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13308   (exit $ac_status); } &&
   13309 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13310   { (case "(($ac_try" in
   13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13312   *) ac_try_echo=$ac_try;;
   13313 esac
   13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13315   (eval "$ac_try") 2>&5
   13316   ac_status=$?
   13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13318   (exit $ac_status); }; } &&
   13319 	 { ac_try='test -s conftest$ac_exeext'
   13320   { (case "(($ac_try" in
   13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13322   *) ac_try_echo=$ac_try;;
   13323 esac
   13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13325   (eval "$ac_try") 2>&5
   13326   ac_status=$?
   13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13328   (exit $ac_status); }; }; then
   13329   ac_cv_search_op_open_agent=$ac_res
   13330 else
   13331   echo "$as_me: failed program was:" >&5
   13332 sed 's/^/| /' conftest.$ac_ext >&5
   13333 
   13334 
   13335 fi
   13336 
   13337 rm -f core conftest.err conftest.$ac_objext \
   13338       conftest$ac_exeext
   13339   if test "${ac_cv_search_op_open_agent+set}" = set; then
   13340   break
   13341 fi
   13342 done
   13343 if test "${ac_cv_search_op_open_agent+set}" = set; then
   13344   :
   13345 else
   13346   ac_cv_search_op_open_agent=no
   13347 fi
   13348 rm conftest.$ac_ext
   13349 LIBS=$ac_func_search_save_LIBS
   13350 fi
   13351 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
   13352 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
   13353 ac_res=$ac_cv_search_op_open_agent
   13354 if test "$ac_res" != no; then
   13355   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13356 
   13357 else
   13358 
   13359               echo "Error! You need to have libopagent around."
   13360               exit -1
   13361 
   13362 fi
   13363 
   13364             if test "${ac_cv_header_opagent_h+set}" = set; then
   13365   { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13366 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13367 if test "${ac_cv_header_opagent_h+set}" = set; then
   13368   echo $ECHO_N "(cached) $ECHO_C" >&6
   13369 fi
   13370 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13371 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13372 else
   13373   # Is the header compilable?
   13374 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
   13375 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
   13376 cat >conftest.$ac_ext <<_ACEOF
   13377 /* confdefs.h.  */
   13378 _ACEOF
   13379 cat confdefs.h >>conftest.$ac_ext
   13380 cat >>conftest.$ac_ext <<_ACEOF
   13381 /* end confdefs.h.  */
   13382 $ac_includes_default
   13383 #include <opagent.h>
   13384 _ACEOF
   13385 rm -f conftest.$ac_objext
   13386 if { (ac_try="$ac_compile"
   13387 case "(($ac_try" in
   13388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13389   *) ac_try_echo=$ac_try;;
   13390 esac
   13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13392   (eval "$ac_compile") 2>conftest.er1
   13393   ac_status=$?
   13394   grep -v '^ *+' conftest.er1 >conftest.err
   13395   rm -f conftest.er1
   13396   cat conftest.err >&5
   13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13398   (exit $ac_status); } &&
   13399 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13400   { (case "(($ac_try" in
   13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13402   *) ac_try_echo=$ac_try;;
   13403 esac
   13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13405   (eval "$ac_try") 2>&5
   13406   ac_status=$?
   13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13408   (exit $ac_status); }; } &&
   13409 	 { ac_try='test -s conftest.$ac_objext'
   13410   { (case "(($ac_try" in
   13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13412   *) ac_try_echo=$ac_try;;
   13413 esac
   13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13415   (eval "$ac_try") 2>&5
   13416   ac_status=$?
   13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13418   (exit $ac_status); }; }; then
   13419   ac_header_compiler=yes
   13420 else
   13421   echo "$as_me: failed program was:" >&5
   13422 sed 's/^/| /' conftest.$ac_ext >&5
   13423 
   13424 	ac_header_compiler=no
   13425 fi
   13426 
   13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13429 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13430 
   13431 # Is the header present?
   13432 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
   13433 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
   13434 cat >conftest.$ac_ext <<_ACEOF
   13435 /* confdefs.h.  */
   13436 _ACEOF
   13437 cat confdefs.h >>conftest.$ac_ext
   13438 cat >>conftest.$ac_ext <<_ACEOF
   13439 /* end confdefs.h.  */
   13440 #include <opagent.h>
   13441 _ACEOF
   13442 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13443 case "(($ac_try" in
   13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13445   *) ac_try_echo=$ac_try;;
   13446 esac
   13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13449   ac_status=$?
   13450   grep -v '^ *+' conftest.er1 >conftest.err
   13451   rm -f conftest.er1
   13452   cat conftest.err >&5
   13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13454   (exit $ac_status); } >/dev/null; then
   13455   if test -s conftest.err; then
   13456     ac_cpp_err=$ac_c_preproc_warn_flag
   13457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   13458   else
   13459     ac_cpp_err=
   13460   fi
   13461 else
   13462   ac_cpp_err=yes
   13463 fi
   13464 if test -z "$ac_cpp_err"; then
   13465   ac_header_preproc=yes
   13466 else
   13467   echo "$as_me: failed program was:" >&5
   13468 sed 's/^/| /' conftest.$ac_ext >&5
   13469 
   13470   ac_header_preproc=no
   13471 fi
   13472 
   13473 rm -f conftest.err conftest.$ac_ext
   13474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13475 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13476 
   13477 # So?  What about this header?
   13478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13479   yes:no: )
   13480     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
   13481 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13482     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
   13483 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
   13484     ac_header_preproc=yes
   13485     ;;
   13486   no:yes:* )
   13487     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
   13488 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
   13489     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
   13490 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
   13491     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
   13492 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
   13493     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
   13494 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   13495     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
   13496 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
   13497     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
   13498 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
   13499     ( cat <<\_ASBOX
   13500 ## ------------------------------------ ##
   13501 ## Report this to http://llvm.org/bugs/ ##
   13502 ## ------------------------------------ ##
   13503 _ASBOX
   13504      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13505     ;;
   13506 esac
   13507 { echo "$as_me:$LINENO: checking for opagent.h" >&5
   13508 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   13509 if test "${ac_cv_header_opagent_h+set}" = set; then
   13510   echo $ECHO_N "(cached) $ECHO_C" >&6
   13511 else
   13512   ac_cv_header_opagent_h=$ac_header_preproc
   13513 fi
   13514 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   13515 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   13516 
   13517 fi
   13518 if test $ac_cv_header_opagent_h = yes; then
   13519   :
   13520 else
   13521 
   13522               echo "Error! You need to have opagent.h around."
   13523               exit -1
   13524 
   13525 fi
   13526 
   13527 
   13528           fi ;;
   13529         *)
   13530           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
   13531 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
   13532    { (exit 1); exit 1; }; } ;;
   13533       esac
   13534 
   13535 else
   13536 
   13537       USE_OPROFILE=0
   13538 
   13539 
   13540 fi
   13541 
   13542 
   13543 cat >>confdefs.h <<_ACEOF
   13544 #define LLVM_USE_OPROFILE $USE_OPROFILE
   13545 _ACEOF
   13546 
   13547 
   13548 
   13549 # Check whether --with-intel-jitevents was given.
   13550 if test "${with_intel_jitevents+set}" = set; then
   13551   withval=$with_intel_jitevents;
   13552       case $llvm_cv_os_type in
   13553         Linux|Win32|Cygwin|MingW) ;;
   13554         *)
   13555           { { echo "$as_me:$LINENO: error:
   13556             Intel JIT API support is available on Linux and Windows only.\"" >&5
   13557 echo "$as_me: error:
   13558             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
   13559    { (exit 1); exit 1; }; } ;;
   13560       esac
   13561 
   13562       USE_INTEL_JITEVENTS=1
   13563 
   13564       case "$llvm_cv_target_arch" in
   13565         x86)    llvm_intel_jitevents_archdir="lib32";;
   13566         x86_64) llvm_intel_jitevents_archdir="lib64";;
   13567         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
   13568                 exit -1;;
   13569       esac
   13570       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
   13571       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
   13572       case "$withval" in
   13573         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
   13574                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
   13575         *) ;;
   13576       esac
   13577 
   13578 
   13579 
   13580 
   13581       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
   13582       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
   13583 
   13584       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
   13585 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
   13586 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
   13587   echo $ECHO_N "(cached) $ECHO_C" >&6
   13588 else
   13589   ac_func_search_save_LIBS=$LIBS
   13590 cat >conftest.$ac_ext <<_ACEOF
   13591 /* confdefs.h.  */
   13592 _ACEOF
   13593 cat confdefs.h >>conftest.$ac_ext
   13594 cat >>conftest.$ac_ext <<_ACEOF
   13595 /* end confdefs.h.  */
   13596 
   13597 /* Override any GCC internal prototype to avoid an error.
   13598    Use char because int might match the return type of a GCC
   13599    builtin and then its argument prototype would still apply.  */
   13600 #ifdef __cplusplus
   13601 extern "C"
   13602 #endif
   13603 char iJIT_IsProfilingActive ();
   13604 int
   13605 main ()
   13606 {
   13607 return iJIT_IsProfilingActive ();
   13608   ;
   13609   return 0;
   13610 }
   13611 _ACEOF
   13612 for ac_lib in '' jitprofiling; do
   13613   if test -z "$ac_lib"; then
   13614     ac_res="none required"
   13615   else
   13616     ac_res=-l$ac_lib
   13617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13618   fi
   13619   rm -f conftest.$ac_objext conftest$ac_exeext
   13620 if { (ac_try="$ac_link"
   13621 case "(($ac_try" in
   13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13623   *) ac_try_echo=$ac_try;;
   13624 esac
   13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13626   (eval "$ac_link") 2>conftest.er1
   13627   ac_status=$?
   13628   grep -v '^ *+' conftest.er1 >conftest.err
   13629   rm -f conftest.er1
   13630   cat conftest.err >&5
   13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13632   (exit $ac_status); } &&
   13633 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13634   { (case "(($ac_try" in
   13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13636   *) ac_try_echo=$ac_try;;
   13637 esac
   13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13639   (eval "$ac_try") 2>&5
   13640   ac_status=$?
   13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13642   (exit $ac_status); }; } &&
   13643 	 { ac_try='test -s conftest$ac_exeext'
   13644   { (case "(($ac_try" in
   13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13646   *) ac_try_echo=$ac_try;;
   13647 esac
   13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13649   (eval "$ac_try") 2>&5
   13650   ac_status=$?
   13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13652   (exit $ac_status); }; }; then
   13653   ac_cv_search_iJIT_IsProfilingActive=$ac_res
   13654 else
   13655   echo "$as_me: failed program was:" >&5
   13656 sed 's/^/| /' conftest.$ac_ext >&5
   13657 
   13658 
   13659 fi
   13660 
   13661 rm -f core conftest.err conftest.$ac_objext \
   13662       conftest$ac_exeext
   13663   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
   13664   break
   13665 fi
   13666 done
   13667 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
   13668   :
   13669 else
   13670   ac_cv_search_iJIT_IsProfilingActive=no
   13671 fi
   13672 rm conftest.$ac_ext
   13673 LIBS=$ac_func_search_save_LIBS
   13674 fi
   13675 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
   13676 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
   13677 ac_res=$ac_cv_search_iJIT_IsProfilingActive
   13678 if test "$ac_res" != no; then
   13679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13680 
   13681 else
   13682 
   13683         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
   13684         exit -1
   13685 
   13686 fi
   13687 
   13688       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
   13689   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
   13690 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
   13691 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
   13692   echo $ECHO_N "(cached) $ECHO_C" >&6
   13693 fi
   13694 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
   13695 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
   13696 else
   13697   # Is the header compilable?
   13698 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
   13699 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
   13700 cat >conftest.$ac_ext <<_ACEOF
   13701 /* confdefs.h.  */
   13702 _ACEOF
   13703 cat confdefs.h >>conftest.$ac_ext
   13704 cat >>conftest.$ac_ext <<_ACEOF
   13705 /* end confdefs.h.  */
   13706 $ac_includes_default
   13707 #include <jitprofiling.h>
   13708 _ACEOF
   13709 rm -f conftest.$ac_objext
   13710 if { (ac_try="$ac_compile"
   13711 case "(($ac_try" in
   13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13713   *) ac_try_echo=$ac_try;;
   13714 esac
   13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13716   (eval "$ac_compile") 2>conftest.er1
   13717   ac_status=$?
   13718   grep -v '^ *+' conftest.er1 >conftest.err
   13719   rm -f conftest.er1
   13720   cat conftest.err >&5
   13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13722   (exit $ac_status); } &&
   13723 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13724   { (case "(($ac_try" in
   13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13726   *) ac_try_echo=$ac_try;;
   13727 esac
   13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13729   (eval "$ac_try") 2>&5
   13730   ac_status=$?
   13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13732   (exit $ac_status); }; } &&
   13733 	 { ac_try='test -s conftest.$ac_objext'
   13734   { (case "(($ac_try" in
   13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13736   *) ac_try_echo=$ac_try;;
   13737 esac
   13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13739   (eval "$ac_try") 2>&5
   13740   ac_status=$?
   13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13742   (exit $ac_status); }; }; then
   13743   ac_header_compiler=yes
   13744 else
   13745   echo "$as_me: failed program was:" >&5
   13746 sed 's/^/| /' conftest.$ac_ext >&5
   13747 
   13748 	ac_header_compiler=no
   13749 fi
   13750 
   13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13753 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13754 
   13755 # Is the header present?
   13756 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
   13757 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
   13758 cat >conftest.$ac_ext <<_ACEOF
   13759 /* confdefs.h.  */
   13760 _ACEOF
   13761 cat confdefs.h >>conftest.$ac_ext
   13762 cat >>conftest.$ac_ext <<_ACEOF
   13763 /* end confdefs.h.  */
   13764 #include <jitprofiling.h>
   13765 _ACEOF
   13766 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13767 case "(($ac_try" in
   13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13769   *) ac_try_echo=$ac_try;;
   13770 esac
   13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13773   ac_status=$?
   13774   grep -v '^ *+' conftest.er1 >conftest.err
   13775   rm -f conftest.er1
   13776   cat conftest.err >&5
   13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13778   (exit $ac_status); } >/dev/null; then
   13779   if test -s conftest.err; then
   13780     ac_cpp_err=$ac_c_preproc_warn_flag
   13781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   13782   else
   13783     ac_cpp_err=
   13784   fi
   13785 else
   13786   ac_cpp_err=yes
   13787 fi
   13788 if test -z "$ac_cpp_err"; then
   13789   ac_header_preproc=yes
   13790 else
   13791   echo "$as_me: failed program was:" >&5
   13792 sed 's/^/| /' conftest.$ac_ext >&5
   13793 
   13794   ac_header_preproc=no
   13795 fi
   13796 
   13797 rm -f conftest.err conftest.$ac_ext
   13798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13799 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13800 
   13801 # So?  What about this header?
   13802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13803   yes:no: )
   13804     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
   13805 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13806     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
   13807 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
   13808     ac_header_preproc=yes
   13809     ;;
   13810   no:yes:* )
   13811     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
   13812 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
   13813     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
   13814 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
   13815     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
   13816 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
   13817     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
   13818 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   13819     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
   13820 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
   13821     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
   13822 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
   13823     ( cat <<\_ASBOX
   13824 ## ------------------------------------ ##
   13825 ## Report this to http://llvm.org/bugs/ ##
   13826 ## ------------------------------------ ##
   13827 _ASBOX
   13828      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13829     ;;
   13830 esac
   13831 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
   13832 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
   13833 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
   13834   echo $ECHO_N "(cached) $ECHO_C" >&6
   13835 else
   13836   ac_cv_header_jitprofiling_h=$ac_header_preproc
   13837 fi
   13838 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
   13839 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
   13840 
   13841 fi
   13842 if test $ac_cv_header_jitprofiling_h = yes; then
   13843   :
   13844 else
   13845 
   13846         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
   13847         exit -1
   13848 
   13849 fi
   13850 
   13851 
   13852 
   13853 
   13854 else
   13855 
   13856       USE_INTEL_JITEVENTS=0
   13857 
   13858 
   13859 fi
   13860 
   13861 
   13862 cat >>confdefs.h <<_ACEOF
   13863 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
   13864 _ACEOF
   13865 
   13866 
   13867 for ac_prog in xml2-config
   13868 do
   13869   # Extract the first word of "$ac_prog", so it can be a program name with args.
   13870 set dummy $ac_prog; ac_word=$2
   13871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   13872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   13873 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
   13874   echo $ECHO_N "(cached) $ECHO_C" >&6
   13875 else
   13876   if test -n "$XML2CONFIG"; then
   13877   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
   13878 else
   13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13880 for as_dir in $PATH
   13881 do
   13882   IFS=$as_save_IFS
   13883   test -z "$as_dir" && as_dir=.
   13884   for ac_exec_ext in '' $ac_executable_extensions; do
   13885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   13886     ac_cv_prog_XML2CONFIG="$ac_prog"
   13887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   13888     break 2
   13889   fi
   13890 done
   13891 done
   13892 IFS=$as_save_IFS
   13893 
   13894 fi
   13895 fi
   13896 XML2CONFIG=$ac_cv_prog_XML2CONFIG
   13897 if test -n "$XML2CONFIG"; then
   13898   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
   13899 echo "${ECHO_T}$XML2CONFIG" >&6; }
   13900 else
   13901   { echo "$as_me:$LINENO: result: no" >&5
   13902 echo "${ECHO_T}no" >&6; }
   13903 fi
   13904 
   13905 
   13906   test -n "$XML2CONFIG" && break
   13907 done
   13908 
   13909 
   13910 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
   13911 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
   13912 if test "x$XML2CONFIG" = "x"; then
   13913  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
   13914 echo "${ECHO_T}xml2-config not found" >&6; }
   13915 else
   13916  LIBXML2_INC=`$XML2CONFIG --cflags`
   13917  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
   13918 echo "${ECHO_T}$LIBXML2_INC" >&6; }
   13919  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
   13920 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
   13921 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
   13922   echo $ECHO_N "(cached) $ECHO_C" >&6
   13923 else
   13924   ac_check_lib_save_LIBS=$LIBS
   13925 LIBS="-lxml2  $LIBS"
   13926 cat >conftest.$ac_ext <<_ACEOF
   13927 /* confdefs.h.  */
   13928 _ACEOF
   13929 cat confdefs.h >>conftest.$ac_ext
   13930 cat >>conftest.$ac_ext <<_ACEOF
   13931 /* end confdefs.h.  */
   13932 
   13933 /* Override any GCC internal prototype to avoid an error.
   13934    Use char because int might match the return type of a GCC
   13935    builtin and then its argument prototype would still apply.  */
   13936 #ifdef __cplusplus
   13937 extern "C"
   13938 #endif
   13939 char xmlReadFile ();
   13940 int
   13941 main ()
   13942 {
   13943 return xmlReadFile ();
   13944   ;
   13945   return 0;
   13946 }
   13947 _ACEOF
   13948 rm -f conftest.$ac_objext conftest$ac_exeext
   13949 if { (ac_try="$ac_link"
   13950 case "(($ac_try" in
   13951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13952   *) ac_try_echo=$ac_try;;
   13953 esac
   13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13955   (eval "$ac_link") 2>conftest.er1
   13956   ac_status=$?
   13957   grep -v '^ *+' conftest.er1 >conftest.err
   13958   rm -f conftest.er1
   13959   cat conftest.err >&5
   13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13961   (exit $ac_status); } &&
   13962 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   13963   { (case "(($ac_try" in
   13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13965   *) ac_try_echo=$ac_try;;
   13966 esac
   13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13968   (eval "$ac_try") 2>&5
   13969   ac_status=$?
   13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13971   (exit $ac_status); }; } &&
   13972 	 { ac_try='test -s conftest$ac_exeext'
   13973   { (case "(($ac_try" in
   13974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13975   *) ac_try_echo=$ac_try;;
   13976 esac
   13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13978   (eval "$ac_try") 2>&5
   13979   ac_status=$?
   13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13981   (exit $ac_status); }; }; then
   13982   ac_cv_lib_xml2_xmlReadFile=yes
   13983 else
   13984   echo "$as_me: failed program was:" >&5
   13985 sed 's/^/| /' conftest.$ac_ext >&5
   13986 
   13987 	ac_cv_lib_xml2_xmlReadFile=no
   13988 fi
   13989 
   13990 rm -f core conftest.err conftest.$ac_objext \
   13991       conftest$ac_exeext conftest.$ac_ext
   13992 LIBS=$ac_check_lib_save_LIBS
   13993 fi
   13994 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
   13995 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
   13996 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
   13997 
   13998 cat >>confdefs.h <<\_ACEOF
   13999 #define CLANG_HAVE_LIBXML 1
   14000 _ACEOF
   14001 
   14002                                 LIBXML2_LIBS="-lxml2"
   14003 fi
   14004 
   14005 fi
   14006 
   14007 
   14008 
   14009 
   14010 
   14011 
   14012 
   14013 
   14014 
   14015 ac_header_dirent=no
   14016 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   14017   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   14018 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   14019 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   14020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14021   echo $ECHO_N "(cached) $ECHO_C" >&6
   14022 else
   14023   cat >conftest.$ac_ext <<_ACEOF
   14024 /* confdefs.h.  */
   14025 _ACEOF
   14026 cat confdefs.h >>conftest.$ac_ext
   14027 cat >>conftest.$ac_ext <<_ACEOF
   14028 /* end confdefs.h.  */
   14029 #include <sys/types.h>
   14030 #include <$ac_hdr>
   14031 
   14032 int
   14033 main ()
   14034 {
   14035 if ((DIR *) 0)
   14036 return 0;
   14037   ;
   14038   return 0;
   14039 }
   14040 _ACEOF
   14041 rm -f conftest.$ac_objext
   14042 if { (ac_try="$ac_compile"
   14043 case "(($ac_try" in
   14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14045   *) ac_try_echo=$ac_try;;
   14046 esac
   14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14048   (eval "$ac_compile") 2>conftest.er1
   14049   ac_status=$?
   14050   grep -v '^ *+' conftest.er1 >conftest.err
   14051   rm -f conftest.er1
   14052   cat conftest.err >&5
   14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14054   (exit $ac_status); } &&
   14055 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14056   { (case "(($ac_try" in
   14057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14058   *) ac_try_echo=$ac_try;;
   14059 esac
   14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14061   (eval "$ac_try") 2>&5
   14062   ac_status=$?
   14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14064   (exit $ac_status); }; } &&
   14065 	 { ac_try='test -s conftest.$ac_objext'
   14066   { (case "(($ac_try" in
   14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14068   *) ac_try_echo=$ac_try;;
   14069 esac
   14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14071   (eval "$ac_try") 2>&5
   14072   ac_status=$?
   14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14074   (exit $ac_status); }; }; then
   14075   eval "$as_ac_Header=yes"
   14076 else
   14077   echo "$as_me: failed program was:" >&5
   14078 sed 's/^/| /' conftest.$ac_ext >&5
   14079 
   14080 	eval "$as_ac_Header=no"
   14081 fi
   14082 
   14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14084 fi
   14085 ac_res=`eval echo '${'$as_ac_Header'}'`
   14086 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14087 echo "${ECHO_T}$ac_res" >&6; }
   14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14089   cat >>confdefs.h <<_ACEOF
   14090 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   14091 _ACEOF
   14092 
   14093 ac_header_dirent=$ac_hdr; break
   14094 fi
   14095 
   14096 done
   14097 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   14098 if test $ac_header_dirent = dirent.h; then
   14099   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   14100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   14101 if test "${ac_cv_search_opendir+set}" = set; then
   14102   echo $ECHO_N "(cached) $ECHO_C" >&6
   14103 else
   14104   ac_func_search_save_LIBS=$LIBS
   14105 cat >conftest.$ac_ext <<_ACEOF
   14106 /* confdefs.h.  */
   14107 _ACEOF
   14108 cat confdefs.h >>conftest.$ac_ext
   14109 cat >>conftest.$ac_ext <<_ACEOF
   14110 /* end confdefs.h.  */
   14111 
   14112 /* Override any GCC internal prototype to avoid an error.
   14113    Use char because int might match the return type of a GCC
   14114    builtin and then its argument prototype would still apply.  */
   14115 #ifdef __cplusplus
   14116 extern "C"
   14117 #endif
   14118 char opendir ();
   14119 int
   14120 main ()
   14121 {
   14122 return opendir ();
   14123   ;
   14124   return 0;
   14125 }
   14126 _ACEOF
   14127 for ac_lib in '' dir; do
   14128   if test -z "$ac_lib"; then
   14129     ac_res="none required"
   14130   else
   14131     ac_res=-l$ac_lib
   14132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14133   fi
   14134   rm -f conftest.$ac_objext conftest$ac_exeext
   14135 if { (ac_try="$ac_link"
   14136 case "(($ac_try" in
   14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14138   *) ac_try_echo=$ac_try;;
   14139 esac
   14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14141   (eval "$ac_link") 2>conftest.er1
   14142   ac_status=$?
   14143   grep -v '^ *+' conftest.er1 >conftest.err
   14144   rm -f conftest.er1
   14145   cat conftest.err >&5
   14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14147   (exit $ac_status); } &&
   14148 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14149   { (case "(($ac_try" in
   14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14151   *) ac_try_echo=$ac_try;;
   14152 esac
   14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14154   (eval "$ac_try") 2>&5
   14155   ac_status=$?
   14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14157   (exit $ac_status); }; } &&
   14158 	 { ac_try='test -s conftest$ac_exeext'
   14159   { (case "(($ac_try" in
   14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14161   *) ac_try_echo=$ac_try;;
   14162 esac
   14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14164   (eval "$ac_try") 2>&5
   14165   ac_status=$?
   14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14167   (exit $ac_status); }; }; then
   14168   ac_cv_search_opendir=$ac_res
   14169 else
   14170   echo "$as_me: failed program was:" >&5
   14171 sed 's/^/| /' conftest.$ac_ext >&5
   14172 
   14173 
   14174 fi
   14175 
   14176 rm -f core conftest.err conftest.$ac_objext \
   14177       conftest$ac_exeext
   14178   if test "${ac_cv_search_opendir+set}" = set; then
   14179   break
   14180 fi
   14181 done
   14182 if test "${ac_cv_search_opendir+set}" = set; then
   14183   :
   14184 else
   14185   ac_cv_search_opendir=no
   14186 fi
   14187 rm conftest.$ac_ext
   14188 LIBS=$ac_func_search_save_LIBS
   14189 fi
   14190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   14191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   14192 ac_res=$ac_cv_search_opendir
   14193 if test "$ac_res" != no; then
   14194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14195 
   14196 fi
   14197 
   14198 else
   14199   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   14200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   14201 if test "${ac_cv_search_opendir+set}" = set; then
   14202   echo $ECHO_N "(cached) $ECHO_C" >&6
   14203 else
   14204   ac_func_search_save_LIBS=$LIBS
   14205 cat >conftest.$ac_ext <<_ACEOF
   14206 /* confdefs.h.  */
   14207 _ACEOF
   14208 cat confdefs.h >>conftest.$ac_ext
   14209 cat >>conftest.$ac_ext <<_ACEOF
   14210 /* end confdefs.h.  */
   14211 
   14212 /* Override any GCC internal prototype to avoid an error.
   14213    Use char because int might match the return type of a GCC
   14214    builtin and then its argument prototype would still apply.  */
   14215 #ifdef __cplusplus
   14216 extern "C"
   14217 #endif
   14218 char opendir ();
   14219 int
   14220 main ()
   14221 {
   14222 return opendir ();
   14223   ;
   14224   return 0;
   14225 }
   14226 _ACEOF
   14227 for ac_lib in '' x; do
   14228   if test -z "$ac_lib"; then
   14229     ac_res="none required"
   14230   else
   14231     ac_res=-l$ac_lib
   14232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14233   fi
   14234   rm -f conftest.$ac_objext conftest$ac_exeext
   14235 if { (ac_try="$ac_link"
   14236 case "(($ac_try" in
   14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14238   *) ac_try_echo=$ac_try;;
   14239 esac
   14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14241   (eval "$ac_link") 2>conftest.er1
   14242   ac_status=$?
   14243   grep -v '^ *+' conftest.er1 >conftest.err
   14244   rm -f conftest.er1
   14245   cat conftest.err >&5
   14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14247   (exit $ac_status); } &&
   14248 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14249   { (case "(($ac_try" in
   14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14251   *) ac_try_echo=$ac_try;;
   14252 esac
   14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14254   (eval "$ac_try") 2>&5
   14255   ac_status=$?
   14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14257   (exit $ac_status); }; } &&
   14258 	 { ac_try='test -s conftest$ac_exeext'
   14259   { (case "(($ac_try" in
   14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14261   *) ac_try_echo=$ac_try;;
   14262 esac
   14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14264   (eval "$ac_try") 2>&5
   14265   ac_status=$?
   14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14267   (exit $ac_status); }; }; then
   14268   ac_cv_search_opendir=$ac_res
   14269 else
   14270   echo "$as_me: failed program was:" >&5
   14271 sed 's/^/| /' conftest.$ac_ext >&5
   14272 
   14273 
   14274 fi
   14275 
   14276 rm -f core conftest.err conftest.$ac_objext \
   14277       conftest$ac_exeext
   14278   if test "${ac_cv_search_opendir+set}" = set; then
   14279   break
   14280 fi
   14281 done
   14282 if test "${ac_cv_search_opendir+set}" = set; then
   14283   :
   14284 else
   14285   ac_cv_search_opendir=no
   14286 fi
   14287 rm conftest.$ac_ext
   14288 LIBS=$ac_func_search_save_LIBS
   14289 fi
   14290 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   14291 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   14292 ac_res=$ac_cv_search_opendir
   14293 if test "$ac_res" != no; then
   14294   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14295 
   14296 fi
   14297 
   14298 fi
   14299 
   14300 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
   14301 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
   14302 if test "${ac_cv_header_mmap_anon+set}" = set; then
   14303   echo $ECHO_N "(cached) $ECHO_C" >&6
   14304 else
   14305    ac_ext=c
   14306 ac_cpp='$CPP $CPPFLAGS'
   14307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14310 
   14311   cat >conftest.$ac_ext <<_ACEOF
   14312 /* confdefs.h.  */
   14313 _ACEOF
   14314 cat confdefs.h >>conftest.$ac_ext
   14315 cat >>conftest.$ac_ext <<_ACEOF
   14316 /* end confdefs.h.  */
   14317 #include <sys/mman.h>
   14318 #include <unistd.h>
   14319 #include <fcntl.h>
   14320 int
   14321 main ()
   14322 {
   14323 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
   14324   ;
   14325   return 0;
   14326 }
   14327 _ACEOF
   14328 rm -f conftest.$ac_objext
   14329 if { (ac_try="$ac_compile"
   14330 case "(($ac_try" in
   14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14332   *) ac_try_echo=$ac_try;;
   14333 esac
   14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14335   (eval "$ac_compile") 2>conftest.er1
   14336   ac_status=$?
   14337   grep -v '^ *+' conftest.er1 >conftest.err
   14338   rm -f conftest.er1
   14339   cat conftest.err >&5
   14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14341   (exit $ac_status); } &&
   14342 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14343   { (case "(($ac_try" in
   14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14345   *) ac_try_echo=$ac_try;;
   14346 esac
   14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14348   (eval "$ac_try") 2>&5
   14349   ac_status=$?
   14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14351   (exit $ac_status); }; } &&
   14352 	 { ac_try='test -s conftest.$ac_objext'
   14353   { (case "(($ac_try" in
   14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14355   *) ac_try_echo=$ac_try;;
   14356 esac
   14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14358   (eval "$ac_try") 2>&5
   14359   ac_status=$?
   14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14361   (exit $ac_status); }; }; then
   14362   ac_cv_header_mmap_anon=yes
   14363 else
   14364   echo "$as_me: failed program was:" >&5
   14365 sed 's/^/| /' conftest.$ac_ext >&5
   14366 
   14367 	ac_cv_header_mmap_anon=no
   14368 fi
   14369 
   14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14371   ac_ext=c
   14372 ac_cpp='$CPP $CPPFLAGS'
   14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14376 
   14377 
   14378 fi
   14379 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
   14380 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
   14381 if test "$ac_cv_header_mmap_anon" = yes; then
   14382 
   14383 cat >>confdefs.h <<\_ACEOF
   14384 #define HAVE_MMAP_ANONYMOUS 1
   14385 _ACEOF
   14386 
   14387 fi
   14388 
   14389 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   14390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
   14391 if test "${ac_cv_header_stat_broken+set}" = set; then
   14392   echo $ECHO_N "(cached) $ECHO_C" >&6
   14393 else
   14394   cat >conftest.$ac_ext <<_ACEOF
   14395 /* confdefs.h.  */
   14396 _ACEOF
   14397 cat confdefs.h >>conftest.$ac_ext
   14398 cat >>conftest.$ac_ext <<_ACEOF
   14399 /* end confdefs.h.  */
   14400 #include <sys/types.h>
   14401 #include <sys/stat.h>
   14402 
   14403 #if defined S_ISBLK && defined S_IFDIR
   14404 # if S_ISBLK (S_IFDIR)
   14405 You lose.
   14406 # endif
   14407 #endif
   14408 
   14409 #if defined S_ISBLK && defined S_IFCHR
   14410 # if S_ISBLK (S_IFCHR)
   14411 You lose.
   14412 # endif
   14413 #endif
   14414 
   14415 #if defined S_ISLNK && defined S_IFREG
   14416 # if S_ISLNK (S_IFREG)
   14417 You lose.
   14418 # endif
   14419 #endif
   14420 
   14421 #if defined S_ISSOCK && defined S_IFREG
   14422 # if S_ISSOCK (S_IFREG)
   14423 You lose.
   14424 # endif
   14425 #endif
   14426 
   14427 _ACEOF
   14428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14429   $EGREP "You lose" >/dev/null 2>&1; then
   14430   ac_cv_header_stat_broken=yes
   14431 else
   14432   ac_cv_header_stat_broken=no
   14433 fi
   14434 rm -f conftest*
   14435 
   14436 fi
   14437 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   14438 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
   14439 if test $ac_cv_header_stat_broken = yes; then
   14440 
   14441 cat >>confdefs.h <<\_ACEOF
   14442 #define STAT_MACROS_BROKEN 1
   14443 _ACEOF
   14444 
   14445 fi
   14446 
   14447 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   14448 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
   14449 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   14450   echo $ECHO_N "(cached) $ECHO_C" >&6
   14451 else
   14452   cat >conftest.$ac_ext <<_ACEOF
   14453 /* confdefs.h.  */
   14454 _ACEOF
   14455 cat confdefs.h >>conftest.$ac_ext
   14456 cat >>conftest.$ac_ext <<_ACEOF
   14457 /* end confdefs.h.  */
   14458 #include <sys/types.h>
   14459 #include <sys/wait.h>
   14460 #ifndef WEXITSTATUS
   14461 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   14462 #endif
   14463 #ifndef WIFEXITED
   14464 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   14465 #endif
   14466 
   14467 int
   14468 main ()
   14469 {
   14470   int s;
   14471   wait (&s);
   14472   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   14473   ;
   14474   return 0;
   14475 }
   14476 _ACEOF
   14477 rm -f conftest.$ac_objext
   14478 if { (ac_try="$ac_compile"
   14479 case "(($ac_try" in
   14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14481   *) ac_try_echo=$ac_try;;
   14482 esac
   14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14484   (eval "$ac_compile") 2>conftest.er1
   14485   ac_status=$?
   14486   grep -v '^ *+' conftest.er1 >conftest.err
   14487   rm -f conftest.er1
   14488   cat conftest.err >&5
   14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14490   (exit $ac_status); } &&
   14491 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14492   { (case "(($ac_try" in
   14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14494   *) ac_try_echo=$ac_try;;
   14495 esac
   14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14497   (eval "$ac_try") 2>&5
   14498   ac_status=$?
   14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14500   (exit $ac_status); }; } &&
   14501 	 { ac_try='test -s conftest.$ac_objext'
   14502   { (case "(($ac_try" in
   14503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14504   *) ac_try_echo=$ac_try;;
   14505 esac
   14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14507   (eval "$ac_try") 2>&5
   14508   ac_status=$?
   14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14510   (exit $ac_status); }; }; then
   14511   ac_cv_header_sys_wait_h=yes
   14512 else
   14513   echo "$as_me: failed program was:" >&5
   14514 sed 's/^/| /' conftest.$ac_ext >&5
   14515 
   14516 	ac_cv_header_sys_wait_h=no
   14517 fi
   14518 
   14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14520 fi
   14521 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   14522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
   14523 if test $ac_cv_header_sys_wait_h = yes; then
   14524 
   14525 cat >>confdefs.h <<\_ACEOF
   14526 #define HAVE_SYS_WAIT_H 1
   14527 _ACEOF
   14528 
   14529 fi
   14530 
   14531 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   14532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   14533 if test "${ac_cv_header_time+set}" = set; then
   14534   echo $ECHO_N "(cached) $ECHO_C" >&6
   14535 else
   14536   cat >conftest.$ac_ext <<_ACEOF
   14537 /* confdefs.h.  */
   14538 _ACEOF
   14539 cat confdefs.h >>conftest.$ac_ext
   14540 cat >>conftest.$ac_ext <<_ACEOF
   14541 /* end confdefs.h.  */
   14542 #include <sys/types.h>
   14543 #include <sys/time.h>
   14544 #include <time.h>
   14545 
   14546 int
   14547 main ()
   14548 {
   14549 if ((struct tm *) 0)
   14550 return 0;
   14551   ;
   14552   return 0;
   14553 }
   14554 _ACEOF
   14555 rm -f conftest.$ac_objext
   14556 if { (ac_try="$ac_compile"
   14557 case "(($ac_try" in
   14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14559   *) ac_try_echo=$ac_try;;
   14560 esac
   14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14562   (eval "$ac_compile") 2>conftest.er1
   14563   ac_status=$?
   14564   grep -v '^ *+' conftest.er1 >conftest.err
   14565   rm -f conftest.er1
   14566   cat conftest.err >&5
   14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14568   (exit $ac_status); } &&
   14569 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14570   { (case "(($ac_try" in
   14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14572   *) ac_try_echo=$ac_try;;
   14573 esac
   14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14575   (eval "$ac_try") 2>&5
   14576   ac_status=$?
   14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14578   (exit $ac_status); }; } &&
   14579 	 { ac_try='test -s conftest.$ac_objext'
   14580   { (case "(($ac_try" in
   14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14582   *) ac_try_echo=$ac_try;;
   14583 esac
   14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14585   (eval "$ac_try") 2>&5
   14586   ac_status=$?
   14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14588   (exit $ac_status); }; }; then
   14589   ac_cv_header_time=yes
   14590 else
   14591   echo "$as_me: failed program was:" >&5
   14592 sed 's/^/| /' conftest.$ac_ext >&5
   14593 
   14594 	ac_cv_header_time=no
   14595 fi
   14596 
   14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14598 fi
   14599 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   14600 echo "${ECHO_T}$ac_cv_header_time" >&6; }
   14601 if test $ac_cv_header_time = yes; then
   14602 
   14603 cat >>confdefs.h <<\_ACEOF
   14604 #define TIME_WITH_SYS_TIME 1
   14605 _ACEOF
   14606 
   14607 fi
   14608 
   14609 
   14610 
   14611 
   14612 
   14613 
   14614 
   14615 
   14616 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
   14617 do
   14618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14623   echo $ECHO_N "(cached) $ECHO_C" >&6
   14624 fi
   14625 ac_res=`eval echo '${'$as_ac_Header'}'`
   14626 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14627 echo "${ECHO_T}$ac_res" >&6; }
   14628 else
   14629   # Is the header compilable?
   14630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14632 cat >conftest.$ac_ext <<_ACEOF
   14633 /* confdefs.h.  */
   14634 _ACEOF
   14635 cat confdefs.h >>conftest.$ac_ext
   14636 cat >>conftest.$ac_ext <<_ACEOF
   14637 /* end confdefs.h.  */
   14638 $ac_includes_default
   14639 #include <$ac_header>
   14640 _ACEOF
   14641 rm -f conftest.$ac_objext
   14642 if { (ac_try="$ac_compile"
   14643 case "(($ac_try" in
   14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14645   *) ac_try_echo=$ac_try;;
   14646 esac
   14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14648   (eval "$ac_compile") 2>conftest.er1
   14649   ac_status=$?
   14650   grep -v '^ *+' conftest.er1 >conftest.err
   14651   rm -f conftest.er1
   14652   cat conftest.err >&5
   14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14654   (exit $ac_status); } &&
   14655 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14656   { (case "(($ac_try" in
   14657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14658   *) ac_try_echo=$ac_try;;
   14659 esac
   14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14661   (eval "$ac_try") 2>&5
   14662   ac_status=$?
   14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14664   (exit $ac_status); }; } &&
   14665 	 { ac_try='test -s conftest.$ac_objext'
   14666   { (case "(($ac_try" in
   14667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14668   *) ac_try_echo=$ac_try;;
   14669 esac
   14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14671   (eval "$ac_try") 2>&5
   14672   ac_status=$?
   14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14674   (exit $ac_status); }; }; then
   14675   ac_header_compiler=yes
   14676 else
   14677   echo "$as_me: failed program was:" >&5
   14678 sed 's/^/| /' conftest.$ac_ext >&5
   14679 
   14680 	ac_header_compiler=no
   14681 fi
   14682 
   14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14685 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14686 
   14687 # Is the header present?
   14688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14690 cat >conftest.$ac_ext <<_ACEOF
   14691 /* confdefs.h.  */
   14692 _ACEOF
   14693 cat confdefs.h >>conftest.$ac_ext
   14694 cat >>conftest.$ac_ext <<_ACEOF
   14695 /* end confdefs.h.  */
   14696 #include <$ac_header>
   14697 _ACEOF
   14698 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14699 case "(($ac_try" in
   14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14701   *) ac_try_echo=$ac_try;;
   14702 esac
   14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14705   ac_status=$?
   14706   grep -v '^ *+' conftest.er1 >conftest.err
   14707   rm -f conftest.er1
   14708   cat conftest.err >&5
   14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14710   (exit $ac_status); } >/dev/null; then
   14711   if test -s conftest.err; then
   14712     ac_cpp_err=$ac_c_preproc_warn_flag
   14713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14714   else
   14715     ac_cpp_err=
   14716   fi
   14717 else
   14718   ac_cpp_err=yes
   14719 fi
   14720 if test -z "$ac_cpp_err"; then
   14721   ac_header_preproc=yes
   14722 else
   14723   echo "$as_me: failed program was:" >&5
   14724 sed 's/^/| /' conftest.$ac_ext >&5
   14725 
   14726   ac_header_preproc=no
   14727 fi
   14728 
   14729 rm -f conftest.err conftest.$ac_ext
   14730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14731 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14732 
   14733 # So?  What about this header?
   14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14735   yes:no: )
   14736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14740     ac_header_preproc=yes
   14741     ;;
   14742   no:yes:* )
   14743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14755     ( cat <<\_ASBOX
   14756 ## ------------------------------------ ##
   14757 ## Report this to http://llvm.org/bugs/ ##
   14758 ## ------------------------------------ ##
   14759 _ASBOX
   14760      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14761     ;;
   14762 esac
   14763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14766   echo $ECHO_N "(cached) $ECHO_C" >&6
   14767 else
   14768   eval "$as_ac_Header=\$ac_header_preproc"
   14769 fi
   14770 ac_res=`eval echo '${'$as_ac_Header'}'`
   14771 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14772 echo "${ECHO_T}$ac_res" >&6; }
   14773 
   14774 fi
   14775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14776   cat >>confdefs.h <<_ACEOF
   14777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14778 _ACEOF
   14779 
   14780 fi
   14781 
   14782 done
   14783 
   14784 
   14785 
   14786 
   14787 
   14788 
   14789 
   14790 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
   14791 do
   14792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14797   echo $ECHO_N "(cached) $ECHO_C" >&6
   14798 fi
   14799 ac_res=`eval echo '${'$as_ac_Header'}'`
   14800 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14801 echo "${ECHO_T}$ac_res" >&6; }
   14802 else
   14803   # Is the header compilable?
   14804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14806 cat >conftest.$ac_ext <<_ACEOF
   14807 /* confdefs.h.  */
   14808 _ACEOF
   14809 cat confdefs.h >>conftest.$ac_ext
   14810 cat >>conftest.$ac_ext <<_ACEOF
   14811 /* end confdefs.h.  */
   14812 $ac_includes_default
   14813 #include <$ac_header>
   14814 _ACEOF
   14815 rm -f conftest.$ac_objext
   14816 if { (ac_try="$ac_compile"
   14817 case "(($ac_try" in
   14818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14819   *) ac_try_echo=$ac_try;;
   14820 esac
   14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14822   (eval "$ac_compile") 2>conftest.er1
   14823   ac_status=$?
   14824   grep -v '^ *+' conftest.er1 >conftest.err
   14825   rm -f conftest.er1
   14826   cat conftest.err >&5
   14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14828   (exit $ac_status); } &&
   14829 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   14830   { (case "(($ac_try" in
   14831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14832   *) ac_try_echo=$ac_try;;
   14833 esac
   14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14835   (eval "$ac_try") 2>&5
   14836   ac_status=$?
   14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14838   (exit $ac_status); }; } &&
   14839 	 { ac_try='test -s conftest.$ac_objext'
   14840   { (case "(($ac_try" in
   14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14842   *) ac_try_echo=$ac_try;;
   14843 esac
   14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14845   (eval "$ac_try") 2>&5
   14846   ac_status=$?
   14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14848   (exit $ac_status); }; }; then
   14849   ac_header_compiler=yes
   14850 else
   14851   echo "$as_me: failed program was:" >&5
   14852 sed 's/^/| /' conftest.$ac_ext >&5
   14853 
   14854 	ac_header_compiler=no
   14855 fi
   14856 
   14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14859 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14860 
   14861 # Is the header present?
   14862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14864 cat >conftest.$ac_ext <<_ACEOF
   14865 /* confdefs.h.  */
   14866 _ACEOF
   14867 cat confdefs.h >>conftest.$ac_ext
   14868 cat >>conftest.$ac_ext <<_ACEOF
   14869 /* end confdefs.h.  */
   14870 #include <$ac_header>
   14871 _ACEOF
   14872 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14873 case "(($ac_try" in
   14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14875   *) ac_try_echo=$ac_try;;
   14876 esac
   14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14879   ac_status=$?
   14880   grep -v '^ *+' conftest.er1 >conftest.err
   14881   rm -f conftest.er1
   14882   cat conftest.err >&5
   14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14884   (exit $ac_status); } >/dev/null; then
   14885   if test -s conftest.err; then
   14886     ac_cpp_err=$ac_c_preproc_warn_flag
   14887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   14888   else
   14889     ac_cpp_err=
   14890   fi
   14891 else
   14892   ac_cpp_err=yes
   14893 fi
   14894 if test -z "$ac_cpp_err"; then
   14895   ac_header_preproc=yes
   14896 else
   14897   echo "$as_me: failed program was:" >&5
   14898 sed 's/^/| /' conftest.$ac_ext >&5
   14899 
   14900   ac_header_preproc=no
   14901 fi
   14902 
   14903 rm -f conftest.err conftest.$ac_ext
   14904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14905 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14906 
   14907 # So?  What about this header?
   14908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14909   yes:no: )
   14910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14914     ac_header_preproc=yes
   14915     ;;
   14916   no:yes:* )
   14917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14929     ( cat <<\_ASBOX
   14930 ## ------------------------------------ ##
   14931 ## Report this to http://llvm.org/bugs/ ##
   14932 ## ------------------------------------ ##
   14933 _ASBOX
   14934      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14935     ;;
   14936 esac
   14937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14940   echo $ECHO_N "(cached) $ECHO_C" >&6
   14941 else
   14942   eval "$as_ac_Header=\$ac_header_preproc"
   14943 fi
   14944 ac_res=`eval echo '${'$as_ac_Header'}'`
   14945 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14946 echo "${ECHO_T}$ac_res" >&6; }
   14947 
   14948 fi
   14949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14950   cat >>confdefs.h <<_ACEOF
   14951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14952 _ACEOF
   14953 
   14954 fi
   14955 
   14956 done
   14957 
   14958 
   14959 
   14960 for ac_header in utime.h windows.h
   14961 do
   14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14964   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14967   echo $ECHO_N "(cached) $ECHO_C" >&6
   14968 fi
   14969 ac_res=`eval echo '${'$as_ac_Header'}'`
   14970 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14971 echo "${ECHO_T}$ac_res" >&6; }
   14972 else
   14973   # Is the header compilable?
   14974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14976 cat >conftest.$ac_ext <<_ACEOF
   14977 /* confdefs.h.  */
   14978 _ACEOF
   14979 cat confdefs.h >>conftest.$ac_ext
   14980 cat >>conftest.$ac_ext <<_ACEOF
   14981 /* end confdefs.h.  */
   14982 $ac_includes_default
   14983 #include <$ac_header>
   14984 _ACEOF
   14985 rm -f conftest.$ac_objext
   14986 if { (ac_try="$ac_compile"
   14987 case "(($ac_try" in
   14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14989   *) ac_try_echo=$ac_try;;
   14990 esac
   14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14992   (eval "$ac_compile") 2>conftest.er1
   14993   ac_status=$?
   14994   grep -v '^ *+' conftest.er1 >conftest.err
   14995   rm -f conftest.er1
   14996   cat conftest.err >&5
   14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14998   (exit $ac_status); } &&
   14999 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15000   { (case "(($ac_try" in
   15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15002   *) ac_try_echo=$ac_try;;
   15003 esac
   15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15005   (eval "$ac_try") 2>&5
   15006   ac_status=$?
   15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15008   (exit $ac_status); }; } &&
   15009 	 { ac_try='test -s conftest.$ac_objext'
   15010   { (case "(($ac_try" in
   15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15012   *) ac_try_echo=$ac_try;;
   15013 esac
   15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15015   (eval "$ac_try") 2>&5
   15016   ac_status=$?
   15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15018   (exit $ac_status); }; }; then
   15019   ac_header_compiler=yes
   15020 else
   15021   echo "$as_me: failed program was:" >&5
   15022 sed 's/^/| /' conftest.$ac_ext >&5
   15023 
   15024 	ac_header_compiler=no
   15025 fi
   15026 
   15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15029 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15030 
   15031 # Is the header present?
   15032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15034 cat >conftest.$ac_ext <<_ACEOF
   15035 /* confdefs.h.  */
   15036 _ACEOF
   15037 cat confdefs.h >>conftest.$ac_ext
   15038 cat >>conftest.$ac_ext <<_ACEOF
   15039 /* end confdefs.h.  */
   15040 #include <$ac_header>
   15041 _ACEOF
   15042 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15043 case "(($ac_try" in
   15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15045   *) ac_try_echo=$ac_try;;
   15046 esac
   15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15049   ac_status=$?
   15050   grep -v '^ *+' conftest.er1 >conftest.err
   15051   rm -f conftest.er1
   15052   cat conftest.err >&5
   15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15054   (exit $ac_status); } >/dev/null; then
   15055   if test -s conftest.err; then
   15056     ac_cpp_err=$ac_c_preproc_warn_flag
   15057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15058   else
   15059     ac_cpp_err=
   15060   fi
   15061 else
   15062   ac_cpp_err=yes
   15063 fi
   15064 if test -z "$ac_cpp_err"; then
   15065   ac_header_preproc=yes
   15066 else
   15067   echo "$as_me: failed program was:" >&5
   15068 sed 's/^/| /' conftest.$ac_ext >&5
   15069 
   15070   ac_header_preproc=no
   15071 fi
   15072 
   15073 rm -f conftest.err conftest.$ac_ext
   15074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15075 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15076 
   15077 # So?  What about this header?
   15078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15079   yes:no: )
   15080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15084     ac_header_preproc=yes
   15085     ;;
   15086   no:yes:* )
   15087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15099     ( cat <<\_ASBOX
   15100 ## ------------------------------------ ##
   15101 ## Report this to http://llvm.org/bugs/ ##
   15102 ## ------------------------------------ ##
   15103 _ASBOX
   15104      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15105     ;;
   15106 esac
   15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15110   echo $ECHO_N "(cached) $ECHO_C" >&6
   15111 else
   15112   eval "$as_ac_Header=\$ac_header_preproc"
   15113 fi
   15114 ac_res=`eval echo '${'$as_ac_Header'}'`
   15115 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15116 echo "${ECHO_T}$ac_res" >&6; }
   15117 
   15118 fi
   15119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15120   cat >>confdefs.h <<_ACEOF
   15121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15122 _ACEOF
   15123 
   15124 fi
   15125 
   15126 done
   15127 
   15128 
   15129 
   15130 
   15131 
   15132 
   15133 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
   15134 do
   15135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15140   echo $ECHO_N "(cached) $ECHO_C" >&6
   15141 fi
   15142 ac_res=`eval echo '${'$as_ac_Header'}'`
   15143 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15144 echo "${ECHO_T}$ac_res" >&6; }
   15145 else
   15146   # Is the header compilable?
   15147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15149 cat >conftest.$ac_ext <<_ACEOF
   15150 /* confdefs.h.  */
   15151 _ACEOF
   15152 cat confdefs.h >>conftest.$ac_ext
   15153 cat >>conftest.$ac_ext <<_ACEOF
   15154 /* end confdefs.h.  */
   15155 $ac_includes_default
   15156 #include <$ac_header>
   15157 _ACEOF
   15158 rm -f conftest.$ac_objext
   15159 if { (ac_try="$ac_compile"
   15160 case "(($ac_try" in
   15161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15162   *) ac_try_echo=$ac_try;;
   15163 esac
   15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15165   (eval "$ac_compile") 2>conftest.er1
   15166   ac_status=$?
   15167   grep -v '^ *+' conftest.er1 >conftest.err
   15168   rm -f conftest.er1
   15169   cat conftest.err >&5
   15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15171   (exit $ac_status); } &&
   15172 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15173   { (case "(($ac_try" in
   15174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15175   *) ac_try_echo=$ac_try;;
   15176 esac
   15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15178   (eval "$ac_try") 2>&5
   15179   ac_status=$?
   15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15181   (exit $ac_status); }; } &&
   15182 	 { ac_try='test -s conftest.$ac_objext'
   15183   { (case "(($ac_try" in
   15184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15185   *) ac_try_echo=$ac_try;;
   15186 esac
   15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15188   (eval "$ac_try") 2>&5
   15189   ac_status=$?
   15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15191   (exit $ac_status); }; }; then
   15192   ac_header_compiler=yes
   15193 else
   15194   echo "$as_me: failed program was:" >&5
   15195 sed 's/^/| /' conftest.$ac_ext >&5
   15196 
   15197 	ac_header_compiler=no
   15198 fi
   15199 
   15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15202 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15203 
   15204 # Is the header present?
   15205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15207 cat >conftest.$ac_ext <<_ACEOF
   15208 /* confdefs.h.  */
   15209 _ACEOF
   15210 cat confdefs.h >>conftest.$ac_ext
   15211 cat >>conftest.$ac_ext <<_ACEOF
   15212 /* end confdefs.h.  */
   15213 #include <$ac_header>
   15214 _ACEOF
   15215 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15216 case "(($ac_try" in
   15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15218   *) ac_try_echo=$ac_try;;
   15219 esac
   15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15222   ac_status=$?
   15223   grep -v '^ *+' conftest.er1 >conftest.err
   15224   rm -f conftest.er1
   15225   cat conftest.err >&5
   15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15227   (exit $ac_status); } >/dev/null; then
   15228   if test -s conftest.err; then
   15229     ac_cpp_err=$ac_c_preproc_warn_flag
   15230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15231   else
   15232     ac_cpp_err=
   15233   fi
   15234 else
   15235   ac_cpp_err=yes
   15236 fi
   15237 if test -z "$ac_cpp_err"; then
   15238   ac_header_preproc=yes
   15239 else
   15240   echo "$as_me: failed program was:" >&5
   15241 sed 's/^/| /' conftest.$ac_ext >&5
   15242 
   15243   ac_header_preproc=no
   15244 fi
   15245 
   15246 rm -f conftest.err conftest.$ac_ext
   15247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15248 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15249 
   15250 # So?  What about this header?
   15251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15252   yes:no: )
   15253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15257     ac_header_preproc=yes
   15258     ;;
   15259   no:yes:* )
   15260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15272     ( cat <<\_ASBOX
   15273 ## ------------------------------------ ##
   15274 ## Report this to http://llvm.org/bugs/ ##
   15275 ## ------------------------------------ ##
   15276 _ASBOX
   15277      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15278     ;;
   15279 esac
   15280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15283   echo $ECHO_N "(cached) $ECHO_C" >&6
   15284 else
   15285   eval "$as_ac_Header=\$ac_header_preproc"
   15286 fi
   15287 ac_res=`eval echo '${'$as_ac_Header'}'`
   15288 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15289 echo "${ECHO_T}$ac_res" >&6; }
   15290 
   15291 fi
   15292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15293   cat >>confdefs.h <<_ACEOF
   15294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15295 _ACEOF
   15296 
   15297 fi
   15298 
   15299 done
   15300 
   15301 
   15302 
   15303 
   15304 
   15305 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
   15306 do
   15307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15312   echo $ECHO_N "(cached) $ECHO_C" >&6
   15313 fi
   15314 ac_res=`eval echo '${'$as_ac_Header'}'`
   15315 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15316 echo "${ECHO_T}$ac_res" >&6; }
   15317 else
   15318   # Is the header compilable?
   15319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15321 cat >conftest.$ac_ext <<_ACEOF
   15322 /* confdefs.h.  */
   15323 _ACEOF
   15324 cat confdefs.h >>conftest.$ac_ext
   15325 cat >>conftest.$ac_ext <<_ACEOF
   15326 /* end confdefs.h.  */
   15327 $ac_includes_default
   15328 #include <$ac_header>
   15329 _ACEOF
   15330 rm -f conftest.$ac_objext
   15331 if { (ac_try="$ac_compile"
   15332 case "(($ac_try" in
   15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15334   *) ac_try_echo=$ac_try;;
   15335 esac
   15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15337   (eval "$ac_compile") 2>conftest.er1
   15338   ac_status=$?
   15339   grep -v '^ *+' conftest.er1 >conftest.err
   15340   rm -f conftest.er1
   15341   cat conftest.err >&5
   15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15343   (exit $ac_status); } &&
   15344 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15345   { (case "(($ac_try" in
   15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15347   *) ac_try_echo=$ac_try;;
   15348 esac
   15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15350   (eval "$ac_try") 2>&5
   15351   ac_status=$?
   15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15353   (exit $ac_status); }; } &&
   15354 	 { ac_try='test -s conftest.$ac_objext'
   15355   { (case "(($ac_try" in
   15356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15357   *) ac_try_echo=$ac_try;;
   15358 esac
   15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15360   (eval "$ac_try") 2>&5
   15361   ac_status=$?
   15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15363   (exit $ac_status); }; }; then
   15364   ac_header_compiler=yes
   15365 else
   15366   echo "$as_me: failed program was:" >&5
   15367 sed 's/^/| /' conftest.$ac_ext >&5
   15368 
   15369 	ac_header_compiler=no
   15370 fi
   15371 
   15372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15374 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15375 
   15376 # Is the header present?
   15377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15379 cat >conftest.$ac_ext <<_ACEOF
   15380 /* confdefs.h.  */
   15381 _ACEOF
   15382 cat confdefs.h >>conftest.$ac_ext
   15383 cat >>conftest.$ac_ext <<_ACEOF
   15384 /* end confdefs.h.  */
   15385 #include <$ac_header>
   15386 _ACEOF
   15387 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15388 case "(($ac_try" in
   15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15390   *) ac_try_echo=$ac_try;;
   15391 esac
   15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15394   ac_status=$?
   15395   grep -v '^ *+' conftest.er1 >conftest.err
   15396   rm -f conftest.er1
   15397   cat conftest.err >&5
   15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15399   (exit $ac_status); } >/dev/null; then
   15400   if test -s conftest.err; then
   15401     ac_cpp_err=$ac_c_preproc_warn_flag
   15402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15403   else
   15404     ac_cpp_err=
   15405   fi
   15406 else
   15407   ac_cpp_err=yes
   15408 fi
   15409 if test -z "$ac_cpp_err"; then
   15410   ac_header_preproc=yes
   15411 else
   15412   echo "$as_me: failed program was:" >&5
   15413 sed 's/^/| /' conftest.$ac_ext >&5
   15414 
   15415   ac_header_preproc=no
   15416 fi
   15417 
   15418 rm -f conftest.err conftest.$ac_ext
   15419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15420 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15421 
   15422 # So?  What about this header?
   15423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15424   yes:no: )
   15425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15429     ac_header_preproc=yes
   15430     ;;
   15431   no:yes:* )
   15432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15444     ( cat <<\_ASBOX
   15445 ## ------------------------------------ ##
   15446 ## Report this to http://llvm.org/bugs/ ##
   15447 ## ------------------------------------ ##
   15448 _ASBOX
   15449      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15450     ;;
   15451 esac
   15452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15455   echo $ECHO_N "(cached) $ECHO_C" >&6
   15456 else
   15457   eval "$as_ac_Header=\$ac_header_preproc"
   15458 fi
   15459 ac_res=`eval echo '${'$as_ac_Header'}'`
   15460 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15461 echo "${ECHO_T}$ac_res" >&6; }
   15462 
   15463 fi
   15464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15465   cat >>confdefs.h <<_ACEOF
   15466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15467 _ACEOF
   15468 
   15469 fi
   15470 
   15471 done
   15472 
   15473 
   15474 for ac_header in valgrind/valgrind.h
   15475 do
   15476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15478   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15481   echo $ECHO_N "(cached) $ECHO_C" >&6
   15482 fi
   15483 ac_res=`eval echo '${'$as_ac_Header'}'`
   15484 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15485 echo "${ECHO_T}$ac_res" >&6; }
   15486 else
   15487   # Is the header compilable?
   15488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15490 cat >conftest.$ac_ext <<_ACEOF
   15491 /* confdefs.h.  */
   15492 _ACEOF
   15493 cat confdefs.h >>conftest.$ac_ext
   15494 cat >>conftest.$ac_ext <<_ACEOF
   15495 /* end confdefs.h.  */
   15496 $ac_includes_default
   15497 #include <$ac_header>
   15498 _ACEOF
   15499 rm -f conftest.$ac_objext
   15500 if { (ac_try="$ac_compile"
   15501 case "(($ac_try" in
   15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15503   *) ac_try_echo=$ac_try;;
   15504 esac
   15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15506   (eval "$ac_compile") 2>conftest.er1
   15507   ac_status=$?
   15508   grep -v '^ *+' conftest.er1 >conftest.err
   15509   rm -f conftest.er1
   15510   cat conftest.err >&5
   15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15512   (exit $ac_status); } &&
   15513 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15514   { (case "(($ac_try" in
   15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15516   *) ac_try_echo=$ac_try;;
   15517 esac
   15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15519   (eval "$ac_try") 2>&5
   15520   ac_status=$?
   15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15522   (exit $ac_status); }; } &&
   15523 	 { ac_try='test -s conftest.$ac_objext'
   15524   { (case "(($ac_try" in
   15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15526   *) ac_try_echo=$ac_try;;
   15527 esac
   15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15529   (eval "$ac_try") 2>&5
   15530   ac_status=$?
   15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15532   (exit $ac_status); }; }; then
   15533   ac_header_compiler=yes
   15534 else
   15535   echo "$as_me: failed program was:" >&5
   15536 sed 's/^/| /' conftest.$ac_ext >&5
   15537 
   15538 	ac_header_compiler=no
   15539 fi
   15540 
   15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15543 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15544 
   15545 # Is the header present?
   15546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15548 cat >conftest.$ac_ext <<_ACEOF
   15549 /* confdefs.h.  */
   15550 _ACEOF
   15551 cat confdefs.h >>conftest.$ac_ext
   15552 cat >>conftest.$ac_ext <<_ACEOF
   15553 /* end confdefs.h.  */
   15554 #include <$ac_header>
   15555 _ACEOF
   15556 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15557 case "(($ac_try" in
   15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15559   *) ac_try_echo=$ac_try;;
   15560 esac
   15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15563   ac_status=$?
   15564   grep -v '^ *+' conftest.er1 >conftest.err
   15565   rm -f conftest.er1
   15566   cat conftest.err >&5
   15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15568   (exit $ac_status); } >/dev/null; then
   15569   if test -s conftest.err; then
   15570     ac_cpp_err=$ac_c_preproc_warn_flag
   15571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15572   else
   15573     ac_cpp_err=
   15574   fi
   15575 else
   15576   ac_cpp_err=yes
   15577 fi
   15578 if test -z "$ac_cpp_err"; then
   15579   ac_header_preproc=yes
   15580 else
   15581   echo "$as_me: failed program was:" >&5
   15582 sed 's/^/| /' conftest.$ac_ext >&5
   15583 
   15584   ac_header_preproc=no
   15585 fi
   15586 
   15587 rm -f conftest.err conftest.$ac_ext
   15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15590 
   15591 # So?  What about this header?
   15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15593   yes:no: )
   15594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15598     ac_header_preproc=yes
   15599     ;;
   15600   no:yes:* )
   15601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15613     ( cat <<\_ASBOX
   15614 ## ------------------------------------ ##
   15615 ## Report this to http://llvm.org/bugs/ ##
   15616 ## ------------------------------------ ##
   15617 _ASBOX
   15618      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15619     ;;
   15620 esac
   15621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15624   echo $ECHO_N "(cached) $ECHO_C" >&6
   15625 else
   15626   eval "$as_ac_Header=\$ac_header_preproc"
   15627 fi
   15628 ac_res=`eval echo '${'$as_ac_Header'}'`
   15629 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15630 echo "${ECHO_T}$ac_res" >&6; }
   15631 
   15632 fi
   15633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15634   cat >>confdefs.h <<_ACEOF
   15635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15636 _ACEOF
   15637 
   15638 fi
   15639 
   15640 done
   15641 
   15642 
   15643 for ac_header in fenv.h
   15644 do
   15645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15647   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15650   echo $ECHO_N "(cached) $ECHO_C" >&6
   15651 fi
   15652 ac_res=`eval echo '${'$as_ac_Header'}'`
   15653 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15654 echo "${ECHO_T}$ac_res" >&6; }
   15655 else
   15656   # Is the header compilable?
   15657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15659 cat >conftest.$ac_ext <<_ACEOF
   15660 /* confdefs.h.  */
   15661 _ACEOF
   15662 cat confdefs.h >>conftest.$ac_ext
   15663 cat >>conftest.$ac_ext <<_ACEOF
   15664 /* end confdefs.h.  */
   15665 $ac_includes_default
   15666 #include <$ac_header>
   15667 _ACEOF
   15668 rm -f conftest.$ac_objext
   15669 if { (ac_try="$ac_compile"
   15670 case "(($ac_try" in
   15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15672   *) ac_try_echo=$ac_try;;
   15673 esac
   15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15675   (eval "$ac_compile") 2>conftest.er1
   15676   ac_status=$?
   15677   grep -v '^ *+' conftest.er1 >conftest.err
   15678   rm -f conftest.er1
   15679   cat conftest.err >&5
   15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15681   (exit $ac_status); } &&
   15682 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15683   { (case "(($ac_try" in
   15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15685   *) ac_try_echo=$ac_try;;
   15686 esac
   15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15688   (eval "$ac_try") 2>&5
   15689   ac_status=$?
   15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15691   (exit $ac_status); }; } &&
   15692 	 { ac_try='test -s conftest.$ac_objext'
   15693   { (case "(($ac_try" in
   15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15695   *) ac_try_echo=$ac_try;;
   15696 esac
   15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15698   (eval "$ac_try") 2>&5
   15699   ac_status=$?
   15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15701   (exit $ac_status); }; }; then
   15702   ac_header_compiler=yes
   15703 else
   15704   echo "$as_me: failed program was:" >&5
   15705 sed 's/^/| /' conftest.$ac_ext >&5
   15706 
   15707 	ac_header_compiler=no
   15708 fi
   15709 
   15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15712 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15713 
   15714 # Is the header present?
   15715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15717 cat >conftest.$ac_ext <<_ACEOF
   15718 /* confdefs.h.  */
   15719 _ACEOF
   15720 cat confdefs.h >>conftest.$ac_ext
   15721 cat >>conftest.$ac_ext <<_ACEOF
   15722 /* end confdefs.h.  */
   15723 #include <$ac_header>
   15724 _ACEOF
   15725 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15726 case "(($ac_try" in
   15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15728   *) ac_try_echo=$ac_try;;
   15729 esac
   15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15732   ac_status=$?
   15733   grep -v '^ *+' conftest.er1 >conftest.err
   15734   rm -f conftest.er1
   15735   cat conftest.err >&5
   15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15737   (exit $ac_status); } >/dev/null; then
   15738   if test -s conftest.err; then
   15739     ac_cpp_err=$ac_c_preproc_warn_flag
   15740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15741   else
   15742     ac_cpp_err=
   15743   fi
   15744 else
   15745   ac_cpp_err=yes
   15746 fi
   15747 if test -z "$ac_cpp_err"; then
   15748   ac_header_preproc=yes
   15749 else
   15750   echo "$as_me: failed program was:" >&5
   15751 sed 's/^/| /' conftest.$ac_ext >&5
   15752 
   15753   ac_header_preproc=no
   15754 fi
   15755 
   15756 rm -f conftest.err conftest.$ac_ext
   15757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15758 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15759 
   15760 # So?  What about this header?
   15761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15762   yes:no: )
   15763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15767     ac_header_preproc=yes
   15768     ;;
   15769   no:yes:* )
   15770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15782     ( cat <<\_ASBOX
   15783 ## ------------------------------------ ##
   15784 ## Report this to http://llvm.org/bugs/ ##
   15785 ## ------------------------------------ ##
   15786 _ASBOX
   15787      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15788     ;;
   15789 esac
   15790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15793   echo $ECHO_N "(cached) $ECHO_C" >&6
   15794 else
   15795   eval "$as_ac_Header=\$ac_header_preproc"
   15796 fi
   15797 ac_res=`eval echo '${'$as_ac_Header'}'`
   15798 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15799 echo "${ECHO_T}$ac_res" >&6; }
   15800 
   15801 fi
   15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15803   cat >>confdefs.h <<_ACEOF
   15804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15805 _ACEOF
   15806 
   15807 fi
   15808 
   15809 done
   15810 
   15811 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   15812 
   15813 for ac_header in pthread.h
   15814 do
   15815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15820   echo $ECHO_N "(cached) $ECHO_C" >&6
   15821 fi
   15822 ac_res=`eval echo '${'$as_ac_Header'}'`
   15823 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15824 echo "${ECHO_T}$ac_res" >&6; }
   15825 else
   15826   # Is the header compilable?
   15827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15829 cat >conftest.$ac_ext <<_ACEOF
   15830 /* confdefs.h.  */
   15831 _ACEOF
   15832 cat confdefs.h >>conftest.$ac_ext
   15833 cat >>conftest.$ac_ext <<_ACEOF
   15834 /* end confdefs.h.  */
   15835 $ac_includes_default
   15836 #include <$ac_header>
   15837 _ACEOF
   15838 rm -f conftest.$ac_objext
   15839 if { (ac_try="$ac_compile"
   15840 case "(($ac_try" in
   15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15842   *) ac_try_echo=$ac_try;;
   15843 esac
   15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15845   (eval "$ac_compile") 2>conftest.er1
   15846   ac_status=$?
   15847   grep -v '^ *+' conftest.er1 >conftest.err
   15848   rm -f conftest.er1
   15849   cat conftest.err >&5
   15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15851   (exit $ac_status); } &&
   15852 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   15853   { (case "(($ac_try" in
   15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15855   *) ac_try_echo=$ac_try;;
   15856 esac
   15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15858   (eval "$ac_try") 2>&5
   15859   ac_status=$?
   15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15861   (exit $ac_status); }; } &&
   15862 	 { ac_try='test -s conftest.$ac_objext'
   15863   { (case "(($ac_try" in
   15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15865   *) ac_try_echo=$ac_try;;
   15866 esac
   15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15868   (eval "$ac_try") 2>&5
   15869   ac_status=$?
   15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15871   (exit $ac_status); }; }; then
   15872   ac_header_compiler=yes
   15873 else
   15874   echo "$as_me: failed program was:" >&5
   15875 sed 's/^/| /' conftest.$ac_ext >&5
   15876 
   15877 	ac_header_compiler=no
   15878 fi
   15879 
   15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   15882 echo "${ECHO_T}$ac_header_compiler" >&6; }
   15883 
   15884 # Is the header present?
   15885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   15886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   15887 cat >conftest.$ac_ext <<_ACEOF
   15888 /* confdefs.h.  */
   15889 _ACEOF
   15890 cat confdefs.h >>conftest.$ac_ext
   15891 cat >>conftest.$ac_ext <<_ACEOF
   15892 /* end confdefs.h.  */
   15893 #include <$ac_header>
   15894 _ACEOF
   15895 if { (ac_try="$ac_cpp conftest.$ac_ext"
   15896 case "(($ac_try" in
   15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15898   *) ac_try_echo=$ac_try;;
   15899 esac
   15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   15902   ac_status=$?
   15903   grep -v '^ *+' conftest.er1 >conftest.err
   15904   rm -f conftest.er1
   15905   cat conftest.err >&5
   15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15907   (exit $ac_status); } >/dev/null; then
   15908   if test -s conftest.err; then
   15909     ac_cpp_err=$ac_c_preproc_warn_flag
   15910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   15911   else
   15912     ac_cpp_err=
   15913   fi
   15914 else
   15915   ac_cpp_err=yes
   15916 fi
   15917 if test -z "$ac_cpp_err"; then
   15918   ac_header_preproc=yes
   15919 else
   15920   echo "$as_me: failed program was:" >&5
   15921 sed 's/^/| /' conftest.$ac_ext >&5
   15922 
   15923   ac_header_preproc=no
   15924 fi
   15925 
   15926 rm -f conftest.err conftest.$ac_ext
   15927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   15928 echo "${ECHO_T}$ac_header_preproc" >&6; }
   15929 
   15930 # So?  What about this header?
   15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   15932   yes:no: )
   15933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   15935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   15937     ac_header_preproc=yes
   15938     ;;
   15939   no:yes:* )
   15940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   15942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   15943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   15944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   15946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   15947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   15948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   15950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   15952     ( cat <<\_ASBOX
   15953 ## ------------------------------------ ##
   15954 ## Report this to http://llvm.org/bugs/ ##
   15955 ## ------------------------------------ ##
   15956 _ASBOX
   15957      ) | sed "s/^/$as_me: WARNING:     /" >&2
   15958     ;;
   15959 esac
   15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15963   echo $ECHO_N "(cached) $ECHO_C" >&6
   15964 else
   15965   eval "$as_ac_Header=\$ac_header_preproc"
   15966 fi
   15967 ac_res=`eval echo '${'$as_ac_Header'}'`
   15968 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15969 echo "${ECHO_T}$ac_res" >&6; }
   15970 
   15971 fi
   15972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15973   cat >>confdefs.h <<_ACEOF
   15974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15975 _ACEOF
   15976  HAVE_PTHREAD=1
   15977 
   15978 else
   15979   HAVE_PTHREAD=0
   15980 
   15981 fi
   15982 
   15983 done
   15984 
   15985 else
   15986   HAVE_PTHREAD=0
   15987 
   15988 fi
   15989 
   15990 if test "$llvm_cv_enable_libffi" = "yes" ; then
   15991 
   15992 
   15993 for ac_header in ffi.h ffi/ffi.h
   15994 do
   15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16000   echo $ECHO_N "(cached) $ECHO_C" >&6
   16001 fi
   16002 ac_res=`eval echo '${'$as_ac_Header'}'`
   16003 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16004 echo "${ECHO_T}$ac_res" >&6; }
   16005 else
   16006   # Is the header compilable?
   16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   16009 cat >conftest.$ac_ext <<_ACEOF
   16010 /* confdefs.h.  */
   16011 _ACEOF
   16012 cat confdefs.h >>conftest.$ac_ext
   16013 cat >>conftest.$ac_ext <<_ACEOF
   16014 /* end confdefs.h.  */
   16015 $ac_includes_default
   16016 #include <$ac_header>
   16017 _ACEOF
   16018 rm -f conftest.$ac_objext
   16019 if { (ac_try="$ac_compile"
   16020 case "(($ac_try" in
   16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16022   *) ac_try_echo=$ac_try;;
   16023 esac
   16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16025   (eval "$ac_compile") 2>conftest.er1
   16026   ac_status=$?
   16027   grep -v '^ *+' conftest.er1 >conftest.err
   16028   rm -f conftest.er1
   16029   cat conftest.err >&5
   16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16031   (exit $ac_status); } &&
   16032 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16033   { (case "(($ac_try" in
   16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16035   *) ac_try_echo=$ac_try;;
   16036 esac
   16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16038   (eval "$ac_try") 2>&5
   16039   ac_status=$?
   16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16041   (exit $ac_status); }; } &&
   16042 	 { ac_try='test -s conftest.$ac_objext'
   16043   { (case "(($ac_try" in
   16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16045   *) ac_try_echo=$ac_try;;
   16046 esac
   16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16048   (eval "$ac_try") 2>&5
   16049   ac_status=$?
   16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16051   (exit $ac_status); }; }; then
   16052   ac_header_compiler=yes
   16053 else
   16054   echo "$as_me: failed program was:" >&5
   16055 sed 's/^/| /' conftest.$ac_ext >&5
   16056 
   16057 	ac_header_compiler=no
   16058 fi
   16059 
   16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16062 echo "${ECHO_T}$ac_header_compiler" >&6; }
   16063 
   16064 # Is the header present?
   16065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   16067 cat >conftest.$ac_ext <<_ACEOF
   16068 /* confdefs.h.  */
   16069 _ACEOF
   16070 cat confdefs.h >>conftest.$ac_ext
   16071 cat >>conftest.$ac_ext <<_ACEOF
   16072 /* end confdefs.h.  */
   16073 #include <$ac_header>
   16074 _ACEOF
   16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16076 case "(($ac_try" in
   16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16078   *) ac_try_echo=$ac_try;;
   16079 esac
   16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16082   ac_status=$?
   16083   grep -v '^ *+' conftest.er1 >conftest.err
   16084   rm -f conftest.er1
   16085   cat conftest.err >&5
   16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16087   (exit $ac_status); } >/dev/null; then
   16088   if test -s conftest.err; then
   16089     ac_cpp_err=$ac_c_preproc_warn_flag
   16090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   16091   else
   16092     ac_cpp_err=
   16093   fi
   16094 else
   16095   ac_cpp_err=yes
   16096 fi
   16097 if test -z "$ac_cpp_err"; then
   16098   ac_header_preproc=yes
   16099 else
   16100   echo "$as_me: failed program was:" >&5
   16101 sed 's/^/| /' conftest.$ac_ext >&5
   16102 
   16103   ac_header_preproc=no
   16104 fi
   16105 
   16106 rm -f conftest.err conftest.$ac_ext
   16107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16108 echo "${ECHO_T}$ac_header_preproc" >&6; }
   16109 
   16110 # So?  What about this header?
   16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16112   yes:no: )
   16113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16117     ac_header_preproc=yes
   16118     ;;
   16119   no:yes:* )
   16120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16132     ( cat <<\_ASBOX
   16133 ## ------------------------------------ ##
   16134 ## Report this to http://llvm.org/bugs/ ##
   16135 ## ------------------------------------ ##
   16136 _ASBOX
   16137      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16138     ;;
   16139 esac
   16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16143   echo $ECHO_N "(cached) $ECHO_C" >&6
   16144 else
   16145   eval "$as_ac_Header=\$ac_header_preproc"
   16146 fi
   16147 ac_res=`eval echo '${'$as_ac_Header'}'`
   16148 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16149 echo "${ECHO_T}$ac_res" >&6; }
   16150 
   16151 fi
   16152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   16153   cat >>confdefs.h <<_ACEOF
   16154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16155 _ACEOF
   16156 
   16157 fi
   16158 
   16159 done
   16160 
   16161 fi
   16162 
   16163 
   16164 for ac_header in CrashReporterClient.h
   16165 do
   16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16168   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16171   echo $ECHO_N "(cached) $ECHO_C" >&6
   16172 fi
   16173 ac_res=`eval echo '${'$as_ac_Header'}'`
   16174 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16175 echo "${ECHO_T}$ac_res" >&6; }
   16176 else
   16177   # Is the header compilable?
   16178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   16179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   16180 cat >conftest.$ac_ext <<_ACEOF
   16181 /* confdefs.h.  */
   16182 _ACEOF
   16183 cat confdefs.h >>conftest.$ac_ext
   16184 cat >>conftest.$ac_ext <<_ACEOF
   16185 /* end confdefs.h.  */
   16186 $ac_includes_default
   16187 #include <$ac_header>
   16188 _ACEOF
   16189 rm -f conftest.$ac_objext
   16190 if { (ac_try="$ac_compile"
   16191 case "(($ac_try" in
   16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16193   *) ac_try_echo=$ac_try;;
   16194 esac
   16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16196   (eval "$ac_compile") 2>conftest.er1
   16197   ac_status=$?
   16198   grep -v '^ *+' conftest.er1 >conftest.err
   16199   rm -f conftest.er1
   16200   cat conftest.err >&5
   16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16202   (exit $ac_status); } &&
   16203 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16204   { (case "(($ac_try" in
   16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16206   *) ac_try_echo=$ac_try;;
   16207 esac
   16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16209   (eval "$ac_try") 2>&5
   16210   ac_status=$?
   16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16212   (exit $ac_status); }; } &&
   16213 	 { ac_try='test -s conftest.$ac_objext'
   16214   { (case "(($ac_try" in
   16215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16216   *) ac_try_echo=$ac_try;;
   16217 esac
   16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16219   (eval "$ac_try") 2>&5
   16220   ac_status=$?
   16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16222   (exit $ac_status); }; }; then
   16223   ac_header_compiler=yes
   16224 else
   16225   echo "$as_me: failed program was:" >&5
   16226 sed 's/^/| /' conftest.$ac_ext >&5
   16227 
   16228 	ac_header_compiler=no
   16229 fi
   16230 
   16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16233 echo "${ECHO_T}$ac_header_compiler" >&6; }
   16234 
   16235 # Is the header present?
   16236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   16238 cat >conftest.$ac_ext <<_ACEOF
   16239 /* confdefs.h.  */
   16240 _ACEOF
   16241 cat confdefs.h >>conftest.$ac_ext
   16242 cat >>conftest.$ac_ext <<_ACEOF
   16243 /* end confdefs.h.  */
   16244 #include <$ac_header>
   16245 _ACEOF
   16246 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16247 case "(($ac_try" in
   16248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16249   *) ac_try_echo=$ac_try;;
   16250 esac
   16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16253   ac_status=$?
   16254   grep -v '^ *+' conftest.er1 >conftest.err
   16255   rm -f conftest.er1
   16256   cat conftest.err >&5
   16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16258   (exit $ac_status); } >/dev/null; then
   16259   if test -s conftest.err; then
   16260     ac_cpp_err=$ac_c_preproc_warn_flag
   16261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   16262   else
   16263     ac_cpp_err=
   16264   fi
   16265 else
   16266   ac_cpp_err=yes
   16267 fi
   16268 if test -z "$ac_cpp_err"; then
   16269   ac_header_preproc=yes
   16270 else
   16271   echo "$as_me: failed program was:" >&5
   16272 sed 's/^/| /' conftest.$ac_ext >&5
   16273 
   16274   ac_header_preproc=no
   16275 fi
   16276 
   16277 rm -f conftest.err conftest.$ac_ext
   16278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16279 echo "${ECHO_T}$ac_header_preproc" >&6; }
   16280 
   16281 # So?  What about this header?
   16282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16283   yes:no: )
   16284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16288     ac_header_preproc=yes
   16289     ;;
   16290   no:yes:* )
   16291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16303     ( cat <<\_ASBOX
   16304 ## ------------------------------------ ##
   16305 ## Report this to http://llvm.org/bugs/ ##
   16306 ## ------------------------------------ ##
   16307 _ASBOX
   16308      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16309     ;;
   16310 esac
   16311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16314   echo $ECHO_N "(cached) $ECHO_C" >&6
   16315 else
   16316   eval "$as_ac_Header=\$ac_header_preproc"
   16317 fi
   16318 ac_res=`eval echo '${'$as_ac_Header'}'`
   16319 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16320 echo "${ECHO_T}$ac_res" >&6; }
   16321 
   16322 fi
   16323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   16324   cat >>confdefs.h <<_ACEOF
   16325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16326 _ACEOF
   16327 
   16328 fi
   16329 
   16330 done
   16331 
   16332 
   16333 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
   16334 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
   16335 cat >conftest.$ac_ext <<_ACEOF
   16336 /* confdefs.h.  */
   16337 _ACEOF
   16338 cat confdefs.h >>conftest.$ac_ext
   16339 cat >>conftest.$ac_ext <<_ACEOF
   16340 /* end confdefs.h.  */
   16341 extern const char *__crashreporter_info__;
   16342       int main() {
   16343         __crashreporter_info__ = "test";
   16344         return 0;
   16345       }
   16346 
   16347 _ACEOF
   16348 rm -f conftest.$ac_objext conftest$ac_exeext
   16349 if { (ac_try="$ac_link"
   16350 case "(($ac_try" in
   16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16352   *) ac_try_echo=$ac_try;;
   16353 esac
   16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16355   (eval "$ac_link") 2>conftest.er1
   16356   ac_status=$?
   16357   grep -v '^ *+' conftest.er1 >conftest.err
   16358   rm -f conftest.er1
   16359   cat conftest.err >&5
   16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16361   (exit $ac_status); } &&
   16362 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16363   { (case "(($ac_try" in
   16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16365   *) ac_try_echo=$ac_try;;
   16366 esac
   16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16368   (eval "$ac_try") 2>&5
   16369   ac_status=$?
   16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16371   (exit $ac_status); }; } &&
   16372 	 { ac_try='test -s conftest$ac_exeext'
   16373   { (case "(($ac_try" in
   16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16375   *) ac_try_echo=$ac_try;;
   16376 esac
   16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16378   (eval "$ac_try") 2>&5
   16379   ac_status=$?
   16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16381   (exit $ac_status); }; }; then
   16382   { echo "$as_me:$LINENO: result: yes" >&5
   16383 echo "${ECHO_T}yes" >&6; }
   16384 
   16385 cat >>confdefs.h <<\_ACEOF
   16386 #define HAVE_CRASHREPORTER_INFO 1
   16387 _ACEOF
   16388 
   16389 else
   16390   echo "$as_me: failed program was:" >&5
   16391 sed 's/^/| /' conftest.$ac_ext >&5
   16392 
   16393 	{ echo "$as_me:$LINENO: result: no" >&5
   16394 echo "${ECHO_T}no" >&6; }
   16395 
   16396 cat >>confdefs.h <<\_ACEOF
   16397 #define HAVE_CRASHREPORTER_INFO 0
   16398 _ACEOF
   16399 
   16400 fi
   16401 
   16402 rm -f core conftest.err conftest.$ac_objext \
   16403       conftest$ac_exeext conftest.$ac_ext
   16404 
   16405 
   16406 
   16407 
   16408   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
   16409 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
   16410 if test "${ac_cv_huge_val_sanity+set}" = set; then
   16411   echo $ECHO_N "(cached) $ECHO_C" >&6
   16412 else
   16413 
   16414     ac_ext=cpp
   16415 ac_cpp='$CXXCPP $CPPFLAGS'
   16416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   16419 
   16420     ac_save_CXXFLAGS=$CXXFLAGS
   16421     CXXFLAGS="$CXXFLAGS -pedantic"
   16422     if test "$cross_compiling" = yes; then
   16423   ac_cv_huge_val_sanity=yes
   16424 else
   16425   cat >conftest.$ac_ext <<_ACEOF
   16426 /* confdefs.h.  */
   16427 _ACEOF
   16428 cat confdefs.h >>conftest.$ac_ext
   16429 cat >>conftest.$ac_ext <<_ACEOF
   16430 /* end confdefs.h.  */
   16431 #include <math.h>
   16432 int
   16433 main ()
   16434 {
   16435 double x = HUGE_VAL; return x != x;
   16436   ;
   16437   return 0;
   16438 }
   16439 _ACEOF
   16440 rm -f conftest$ac_exeext
   16441 if { (ac_try="$ac_link"
   16442 case "(($ac_try" in
   16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16444   *) ac_try_echo=$ac_try;;
   16445 esac
   16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16447   (eval "$ac_link") 2>&5
   16448   ac_status=$?
   16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   16451   { (case "(($ac_try" in
   16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16453   *) ac_try_echo=$ac_try;;
   16454 esac
   16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16456   (eval "$ac_try") 2>&5
   16457   ac_status=$?
   16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16459   (exit $ac_status); }; }; then
   16460   ac_cv_huge_val_sanity=yes
   16461 else
   16462   echo "$as_me: program exited with status $ac_status" >&5
   16463 echo "$as_me: failed program was:" >&5
   16464 sed 's/^/| /' conftest.$ac_ext >&5
   16465 
   16466 ( exit $ac_status )
   16467 ac_cv_huge_val_sanity=no
   16468 fi
   16469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   16470 fi
   16471 
   16472 
   16473     CXXFLAGS=$ac_save_CXXFLAGS
   16474     ac_ext=c
   16475 ac_cpp='$CPP $CPPFLAGS'
   16476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16479 
   16480 
   16481 fi
   16482 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
   16483 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
   16484   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
   16485 
   16486 
   16487 { echo "$as_me:$LINENO: checking for pid_t" >&5
   16488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
   16489 if test "${ac_cv_type_pid_t+set}" = set; then
   16490   echo $ECHO_N "(cached) $ECHO_C" >&6
   16491 else
   16492   cat >conftest.$ac_ext <<_ACEOF
   16493 /* confdefs.h.  */
   16494 _ACEOF
   16495 cat confdefs.h >>conftest.$ac_ext
   16496 cat >>conftest.$ac_ext <<_ACEOF
   16497 /* end confdefs.h.  */
   16498 $ac_includes_default
   16499 typedef pid_t ac__type_new_;
   16500 int
   16501 main ()
   16502 {
   16503 if ((ac__type_new_ *) 0)
   16504   return 0;
   16505 if (sizeof (ac__type_new_))
   16506   return 0;
   16507   ;
   16508   return 0;
   16509 }
   16510 _ACEOF
   16511 rm -f conftest.$ac_objext
   16512 if { (ac_try="$ac_compile"
   16513 case "(($ac_try" in
   16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16515   *) ac_try_echo=$ac_try;;
   16516 esac
   16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16518   (eval "$ac_compile") 2>conftest.er1
   16519   ac_status=$?
   16520   grep -v '^ *+' conftest.er1 >conftest.err
   16521   rm -f conftest.er1
   16522   cat conftest.err >&5
   16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16524   (exit $ac_status); } &&
   16525 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16526   { (case "(($ac_try" in
   16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16528   *) ac_try_echo=$ac_try;;
   16529 esac
   16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16531   (eval "$ac_try") 2>&5
   16532   ac_status=$?
   16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16534   (exit $ac_status); }; } &&
   16535 	 { ac_try='test -s conftest.$ac_objext'
   16536   { (case "(($ac_try" in
   16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16538   *) ac_try_echo=$ac_try;;
   16539 esac
   16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16541   (eval "$ac_try") 2>&5
   16542   ac_status=$?
   16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16544   (exit $ac_status); }; }; then
   16545   ac_cv_type_pid_t=yes
   16546 else
   16547   echo "$as_me: failed program was:" >&5
   16548 sed 's/^/| /' conftest.$ac_ext >&5
   16549 
   16550 	ac_cv_type_pid_t=no
   16551 fi
   16552 
   16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16554 fi
   16555 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   16556 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
   16557 if test $ac_cv_type_pid_t = yes; then
   16558   :
   16559 else
   16560 
   16561 cat >>confdefs.h <<_ACEOF
   16562 #define pid_t int
   16563 _ACEOF
   16564 
   16565 fi
   16566 
   16567 { echo "$as_me:$LINENO: checking for size_t" >&5
   16568 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
   16569 if test "${ac_cv_type_size_t+set}" = set; then
   16570   echo $ECHO_N "(cached) $ECHO_C" >&6
   16571 else
   16572   cat >conftest.$ac_ext <<_ACEOF
   16573 /* confdefs.h.  */
   16574 _ACEOF
   16575 cat confdefs.h >>conftest.$ac_ext
   16576 cat >>conftest.$ac_ext <<_ACEOF
   16577 /* end confdefs.h.  */
   16578 $ac_includes_default
   16579 typedef size_t ac__type_new_;
   16580 int
   16581 main ()
   16582 {
   16583 if ((ac__type_new_ *) 0)
   16584   return 0;
   16585 if (sizeof (ac__type_new_))
   16586   return 0;
   16587   ;
   16588   return 0;
   16589 }
   16590 _ACEOF
   16591 rm -f conftest.$ac_objext
   16592 if { (ac_try="$ac_compile"
   16593 case "(($ac_try" in
   16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16595   *) ac_try_echo=$ac_try;;
   16596 esac
   16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16598   (eval "$ac_compile") 2>conftest.er1
   16599   ac_status=$?
   16600   grep -v '^ *+' conftest.er1 >conftest.err
   16601   rm -f conftest.er1
   16602   cat conftest.err >&5
   16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16604   (exit $ac_status); } &&
   16605 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16606   { (case "(($ac_try" in
   16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16608   *) ac_try_echo=$ac_try;;
   16609 esac
   16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16611   (eval "$ac_try") 2>&5
   16612   ac_status=$?
   16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16614   (exit $ac_status); }; } &&
   16615 	 { ac_try='test -s conftest.$ac_objext'
   16616   { (case "(($ac_try" in
   16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16618   *) ac_try_echo=$ac_try;;
   16619 esac
   16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16621   (eval "$ac_try") 2>&5
   16622   ac_status=$?
   16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16624   (exit $ac_status); }; }; then
   16625   ac_cv_type_size_t=yes
   16626 else
   16627   echo "$as_me: failed program was:" >&5
   16628 sed 's/^/| /' conftest.$ac_ext >&5
   16629 
   16630 	ac_cv_type_size_t=no
   16631 fi
   16632 
   16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16634 fi
   16635 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
   16636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
   16637 if test $ac_cv_type_size_t = yes; then
   16638   :
   16639 else
   16640 
   16641 cat >>confdefs.h <<_ACEOF
   16642 #define size_t unsigned int
   16643 _ACEOF
   16644 
   16645 fi
   16646 
   16647 
   16648 cat >>confdefs.h <<_ACEOF
   16649 #define RETSIGTYPE void
   16650 _ACEOF
   16651 
   16652 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
   16653 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
   16654 if test "${ac_cv_struct_tm+set}" = set; then
   16655   echo $ECHO_N "(cached) $ECHO_C" >&6
   16656 else
   16657   cat >conftest.$ac_ext <<_ACEOF
   16658 /* confdefs.h.  */
   16659 _ACEOF
   16660 cat confdefs.h >>conftest.$ac_ext
   16661 cat >>conftest.$ac_ext <<_ACEOF
   16662 /* end confdefs.h.  */
   16663 #include <sys/types.h>
   16664 #include <time.h>
   16665 
   16666 int
   16667 main ()
   16668 {
   16669 struct tm *tp; tp->tm_sec;
   16670   ;
   16671   return 0;
   16672 }
   16673 _ACEOF
   16674 rm -f conftest.$ac_objext
   16675 if { (ac_try="$ac_compile"
   16676 case "(($ac_try" in
   16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16678   *) ac_try_echo=$ac_try;;
   16679 esac
   16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16681   (eval "$ac_compile") 2>conftest.er1
   16682   ac_status=$?
   16683   grep -v '^ *+' conftest.er1 >conftest.err
   16684   rm -f conftest.er1
   16685   cat conftest.err >&5
   16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16687   (exit $ac_status); } &&
   16688 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16689   { (case "(($ac_try" in
   16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16691   *) ac_try_echo=$ac_try;;
   16692 esac
   16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16694   (eval "$ac_try") 2>&5
   16695   ac_status=$?
   16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16697   (exit $ac_status); }; } &&
   16698 	 { ac_try='test -s conftest.$ac_objext'
   16699   { (case "(($ac_try" in
   16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16701   *) ac_try_echo=$ac_try;;
   16702 esac
   16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16704   (eval "$ac_try") 2>&5
   16705   ac_status=$?
   16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16707   (exit $ac_status); }; }; then
   16708   ac_cv_struct_tm=time.h
   16709 else
   16710   echo "$as_me: failed program was:" >&5
   16711 sed 's/^/| /' conftest.$ac_ext >&5
   16712 
   16713 	ac_cv_struct_tm=sys/time.h
   16714 fi
   16715 
   16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16717 fi
   16718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
   16719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
   16720 if test $ac_cv_struct_tm = sys/time.h; then
   16721 
   16722 cat >>confdefs.h <<\_ACEOF
   16723 #define TM_IN_SYS_TIME 1
   16724 _ACEOF
   16725 
   16726 fi
   16727 
   16728 { echo "$as_me:$LINENO: checking for int64_t" >&5
   16729 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   16730 if test "${ac_cv_type_int64_t+set}" = set; then
   16731   echo $ECHO_N "(cached) $ECHO_C" >&6
   16732 else
   16733   cat >conftest.$ac_ext <<_ACEOF
   16734 /* confdefs.h.  */
   16735 _ACEOF
   16736 cat confdefs.h >>conftest.$ac_ext
   16737 cat >>conftest.$ac_ext <<_ACEOF
   16738 /* end confdefs.h.  */
   16739 $ac_includes_default
   16740 typedef int64_t ac__type_new_;
   16741 int
   16742 main ()
   16743 {
   16744 if ((ac__type_new_ *) 0)
   16745   return 0;
   16746 if (sizeof (ac__type_new_))
   16747   return 0;
   16748   ;
   16749   return 0;
   16750 }
   16751 _ACEOF
   16752 rm -f conftest.$ac_objext
   16753 if { (ac_try="$ac_compile"
   16754 case "(($ac_try" in
   16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16756   *) ac_try_echo=$ac_try;;
   16757 esac
   16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16759   (eval "$ac_compile") 2>conftest.er1
   16760   ac_status=$?
   16761   grep -v '^ *+' conftest.er1 >conftest.err
   16762   rm -f conftest.er1
   16763   cat conftest.err >&5
   16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16765   (exit $ac_status); } &&
   16766 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16767   { (case "(($ac_try" in
   16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16769   *) ac_try_echo=$ac_try;;
   16770 esac
   16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16772   (eval "$ac_try") 2>&5
   16773   ac_status=$?
   16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16775   (exit $ac_status); }; } &&
   16776 	 { ac_try='test -s conftest.$ac_objext'
   16777   { (case "(($ac_try" in
   16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16779   *) ac_try_echo=$ac_try;;
   16780 esac
   16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16782   (eval "$ac_try") 2>&5
   16783   ac_status=$?
   16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16785   (exit $ac_status); }; }; then
   16786   ac_cv_type_int64_t=yes
   16787 else
   16788   echo "$as_me: failed program was:" >&5
   16789 sed 's/^/| /' conftest.$ac_ext >&5
   16790 
   16791 	ac_cv_type_int64_t=no
   16792 fi
   16793 
   16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16795 fi
   16796 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   16797 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   16798 if test $ac_cv_type_int64_t = yes; then
   16799 
   16800 cat >>confdefs.h <<_ACEOF
   16801 #define HAVE_INT64_T 1
   16802 _ACEOF
   16803 
   16804 
   16805 else
   16806   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
   16807 echo "$as_me: error: Type int64_t required but not found" >&2;}
   16808    { (exit 1); exit 1; }; }
   16809 fi
   16810 
   16811 { echo "$as_me:$LINENO: checking for uint64_t" >&5
   16812 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
   16813 if test "${ac_cv_type_uint64_t+set}" = set; then
   16814   echo $ECHO_N "(cached) $ECHO_C" >&6
   16815 else
   16816   cat >conftest.$ac_ext <<_ACEOF
   16817 /* confdefs.h.  */
   16818 _ACEOF
   16819 cat confdefs.h >>conftest.$ac_ext
   16820 cat >>conftest.$ac_ext <<_ACEOF
   16821 /* end confdefs.h.  */
   16822 $ac_includes_default
   16823 typedef uint64_t ac__type_new_;
   16824 int
   16825 main ()
   16826 {
   16827 if ((ac__type_new_ *) 0)
   16828   return 0;
   16829 if (sizeof (ac__type_new_))
   16830   return 0;
   16831   ;
   16832   return 0;
   16833 }
   16834 _ACEOF
   16835 rm -f conftest.$ac_objext
   16836 if { (ac_try="$ac_compile"
   16837 case "(($ac_try" in
   16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16839   *) ac_try_echo=$ac_try;;
   16840 esac
   16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16842   (eval "$ac_compile") 2>conftest.er1
   16843   ac_status=$?
   16844   grep -v '^ *+' conftest.er1 >conftest.err
   16845   rm -f conftest.er1
   16846   cat conftest.err >&5
   16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16848   (exit $ac_status); } &&
   16849 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16850   { (case "(($ac_try" in
   16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16852   *) ac_try_echo=$ac_try;;
   16853 esac
   16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16855   (eval "$ac_try") 2>&5
   16856   ac_status=$?
   16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16858   (exit $ac_status); }; } &&
   16859 	 { ac_try='test -s conftest.$ac_objext'
   16860   { (case "(($ac_try" in
   16861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16862   *) ac_try_echo=$ac_try;;
   16863 esac
   16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16865   (eval "$ac_try") 2>&5
   16866   ac_status=$?
   16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16868   (exit $ac_status); }; }; then
   16869   ac_cv_type_uint64_t=yes
   16870 else
   16871   echo "$as_me: failed program was:" >&5
   16872 sed 's/^/| /' conftest.$ac_ext >&5
   16873 
   16874 	ac_cv_type_uint64_t=no
   16875 fi
   16876 
   16877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16878 fi
   16879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
   16880 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
   16881 if test $ac_cv_type_uint64_t = yes; then
   16882 
   16883 cat >>confdefs.h <<_ACEOF
   16884 #define HAVE_UINT64_T 1
   16885 _ACEOF
   16886 
   16887 
   16888 else
   16889   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   16890 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   16891 if test "${ac_cv_type_u_int64_t+set}" = set; then
   16892   echo $ECHO_N "(cached) $ECHO_C" >&6
   16893 else
   16894   cat >conftest.$ac_ext <<_ACEOF
   16895 /* confdefs.h.  */
   16896 _ACEOF
   16897 cat confdefs.h >>conftest.$ac_ext
   16898 cat >>conftest.$ac_ext <<_ACEOF
   16899 /* end confdefs.h.  */
   16900 $ac_includes_default
   16901 typedef u_int64_t ac__type_new_;
   16902 int
   16903 main ()
   16904 {
   16905 if ((ac__type_new_ *) 0)
   16906   return 0;
   16907 if (sizeof (ac__type_new_))
   16908   return 0;
   16909   ;
   16910   return 0;
   16911 }
   16912 _ACEOF
   16913 rm -f conftest.$ac_objext
   16914 if { (ac_try="$ac_compile"
   16915 case "(($ac_try" in
   16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16917   *) ac_try_echo=$ac_try;;
   16918 esac
   16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16920   (eval "$ac_compile") 2>conftest.er1
   16921   ac_status=$?
   16922   grep -v '^ *+' conftest.er1 >conftest.err
   16923   rm -f conftest.er1
   16924   cat conftest.err >&5
   16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16926   (exit $ac_status); } &&
   16927 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   16928   { (case "(($ac_try" in
   16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16930   *) ac_try_echo=$ac_try;;
   16931 esac
   16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16933   (eval "$ac_try") 2>&5
   16934   ac_status=$?
   16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16936   (exit $ac_status); }; } &&
   16937 	 { ac_try='test -s conftest.$ac_objext'
   16938   { (case "(($ac_try" in
   16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16940   *) ac_try_echo=$ac_try;;
   16941 esac
   16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16943   (eval "$ac_try") 2>&5
   16944   ac_status=$?
   16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16946   (exit $ac_status); }; }; then
   16947   ac_cv_type_u_int64_t=yes
   16948 else
   16949   echo "$as_me: failed program was:" >&5
   16950 sed 's/^/| /' conftest.$ac_ext >&5
   16951 
   16952 	ac_cv_type_u_int64_t=no
   16953 fi
   16954 
   16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16956 fi
   16957 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   16958 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   16959 if test $ac_cv_type_u_int64_t = yes; then
   16960 
   16961 cat >>confdefs.h <<_ACEOF
   16962 #define HAVE_U_INT64_T 1
   16963 _ACEOF
   16964 
   16965 
   16966 else
   16967   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
   16968 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
   16969    { (exit 1); exit 1; }; }
   16970 fi
   16971 
   16972 fi
   16973 
   16974 
   16975 
   16976 
   16977 
   16978 
   16979 
   16980 
   16981 
   16982 
   16983 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
   16984 do
   16985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16989   echo $ECHO_N "(cached) $ECHO_C" >&6
   16990 else
   16991   cat >conftest.$ac_ext <<_ACEOF
   16992 /* confdefs.h.  */
   16993 _ACEOF
   16994 cat confdefs.h >>conftest.$ac_ext
   16995 cat >>conftest.$ac_ext <<_ACEOF
   16996 /* end confdefs.h.  */
   16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16999 #define $ac_func innocuous_$ac_func
   17000 
   17001 /* System header to define __stub macros and hopefully few prototypes,
   17002     which can conflict with char $ac_func (); below.
   17003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17004     <limits.h> exists even on freestanding compilers.  */
   17005 
   17006 #ifdef __STDC__
   17007 # include <limits.h>
   17008 #else
   17009 # include <assert.h>
   17010 #endif
   17011 
   17012 #undef $ac_func
   17013 
   17014 /* Override any GCC internal prototype to avoid an error.
   17015    Use char because int might match the return type of a GCC
   17016    builtin and then its argument prototype would still apply.  */
   17017 #ifdef __cplusplus
   17018 extern "C"
   17019 #endif
   17020 char $ac_func ();
   17021 /* The GNU C library defines this for functions which it implements
   17022     to always fail with ENOSYS.  Some functions are actually named
   17023     something starting with __ and the normal name is an alias.  */
   17024 #if defined __stub_$ac_func || defined __stub___$ac_func
   17025 choke me
   17026 #endif
   17027 
   17028 int
   17029 main ()
   17030 {
   17031 return $ac_func ();
   17032   ;
   17033   return 0;
   17034 }
   17035 _ACEOF
   17036 rm -f conftest.$ac_objext conftest$ac_exeext
   17037 if { (ac_try="$ac_link"
   17038 case "(($ac_try" in
   17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17040   *) ac_try_echo=$ac_try;;
   17041 esac
   17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17043   (eval "$ac_link") 2>conftest.er1
   17044   ac_status=$?
   17045   grep -v '^ *+' conftest.er1 >conftest.err
   17046   rm -f conftest.er1
   17047   cat conftest.err >&5
   17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17049   (exit $ac_status); } &&
   17050 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17051   { (case "(($ac_try" in
   17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17053   *) ac_try_echo=$ac_try;;
   17054 esac
   17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17056   (eval "$ac_try") 2>&5
   17057   ac_status=$?
   17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17059   (exit $ac_status); }; } &&
   17060 	 { ac_try='test -s conftest$ac_exeext'
   17061   { (case "(($ac_try" in
   17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17063   *) ac_try_echo=$ac_try;;
   17064 esac
   17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17066   (eval "$ac_try") 2>&5
   17067   ac_status=$?
   17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17069   (exit $ac_status); }; }; then
   17070   eval "$as_ac_var=yes"
   17071 else
   17072   echo "$as_me: failed program was:" >&5
   17073 sed 's/^/| /' conftest.$ac_ext >&5
   17074 
   17075 	eval "$as_ac_var=no"
   17076 fi
   17077 
   17078 rm -f core conftest.err conftest.$ac_objext \
   17079       conftest$ac_exeext conftest.$ac_ext
   17080 fi
   17081 ac_res=`eval echo '${'$as_ac_var'}'`
   17082 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17083 echo "${ECHO_T}$ac_res" >&6; }
   17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17085   cat >>confdefs.h <<_ACEOF
   17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17087 _ACEOF
   17088 
   17089 fi
   17090 done
   17091 
   17092 
   17093 
   17094 
   17095 
   17096 for ac_func in powf fmodf strtof round
   17097 do
   17098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17102   echo $ECHO_N "(cached) $ECHO_C" >&6
   17103 else
   17104   cat >conftest.$ac_ext <<_ACEOF
   17105 /* confdefs.h.  */
   17106 _ACEOF
   17107 cat confdefs.h >>conftest.$ac_ext
   17108 cat >>conftest.$ac_ext <<_ACEOF
   17109 /* end confdefs.h.  */
   17110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17112 #define $ac_func innocuous_$ac_func
   17113 
   17114 /* System header to define __stub macros and hopefully few prototypes,
   17115     which can conflict with char $ac_func (); below.
   17116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17117     <limits.h> exists even on freestanding compilers.  */
   17118 
   17119 #ifdef __STDC__
   17120 # include <limits.h>
   17121 #else
   17122 # include <assert.h>
   17123 #endif
   17124 
   17125 #undef $ac_func
   17126 
   17127 /* Override any GCC internal prototype to avoid an error.
   17128    Use char because int might match the return type of a GCC
   17129    builtin and then its argument prototype would still apply.  */
   17130 #ifdef __cplusplus
   17131 extern "C"
   17132 #endif
   17133 char $ac_func ();
   17134 /* The GNU C library defines this for functions which it implements
   17135     to always fail with ENOSYS.  Some functions are actually named
   17136     something starting with __ and the normal name is an alias.  */
   17137 #if defined __stub_$ac_func || defined __stub___$ac_func
   17138 choke me
   17139 #endif
   17140 
   17141 int
   17142 main ()
   17143 {
   17144 return $ac_func ();
   17145   ;
   17146   return 0;
   17147 }
   17148 _ACEOF
   17149 rm -f conftest.$ac_objext conftest$ac_exeext
   17150 if { (ac_try="$ac_link"
   17151 case "(($ac_try" in
   17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17153   *) ac_try_echo=$ac_try;;
   17154 esac
   17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17156   (eval "$ac_link") 2>conftest.er1
   17157   ac_status=$?
   17158   grep -v '^ *+' conftest.er1 >conftest.err
   17159   rm -f conftest.er1
   17160   cat conftest.err >&5
   17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17162   (exit $ac_status); } &&
   17163 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17164   { (case "(($ac_try" in
   17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17166   *) ac_try_echo=$ac_try;;
   17167 esac
   17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17169   (eval "$ac_try") 2>&5
   17170   ac_status=$?
   17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17172   (exit $ac_status); }; } &&
   17173 	 { ac_try='test -s conftest$ac_exeext'
   17174   { (case "(($ac_try" in
   17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17176   *) ac_try_echo=$ac_try;;
   17177 esac
   17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17179   (eval "$ac_try") 2>&5
   17180   ac_status=$?
   17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17182   (exit $ac_status); }; }; then
   17183   eval "$as_ac_var=yes"
   17184 else
   17185   echo "$as_me: failed program was:" >&5
   17186 sed 's/^/| /' conftest.$ac_ext >&5
   17187 
   17188 	eval "$as_ac_var=no"
   17189 fi
   17190 
   17191 rm -f core conftest.err conftest.$ac_objext \
   17192       conftest$ac_exeext conftest.$ac_ext
   17193 fi
   17194 ac_res=`eval echo '${'$as_ac_var'}'`
   17195 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17196 echo "${ECHO_T}$ac_res" >&6; }
   17197 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17198   cat >>confdefs.h <<_ACEOF
   17199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17200 _ACEOF
   17201 
   17202 fi
   17203 done
   17204 
   17205 
   17206 
   17207 
   17208 
   17209 
   17210 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
   17211 do
   17212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17216   echo $ECHO_N "(cached) $ECHO_C" >&6
   17217 else
   17218   cat >conftest.$ac_ext <<_ACEOF
   17219 /* confdefs.h.  */
   17220 _ACEOF
   17221 cat confdefs.h >>conftest.$ac_ext
   17222 cat >>conftest.$ac_ext <<_ACEOF
   17223 /* end confdefs.h.  */
   17224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17226 #define $ac_func innocuous_$ac_func
   17227 
   17228 /* System header to define __stub macros and hopefully few prototypes,
   17229     which can conflict with char $ac_func (); below.
   17230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17231     <limits.h> exists even on freestanding compilers.  */
   17232 
   17233 #ifdef __STDC__
   17234 # include <limits.h>
   17235 #else
   17236 # include <assert.h>
   17237 #endif
   17238 
   17239 #undef $ac_func
   17240 
   17241 /* Override any GCC internal prototype to avoid an error.
   17242    Use char because int might match the return type of a GCC
   17243    builtin and then its argument prototype would still apply.  */
   17244 #ifdef __cplusplus
   17245 extern "C"
   17246 #endif
   17247 char $ac_func ();
   17248 /* The GNU C library defines this for functions which it implements
   17249     to always fail with ENOSYS.  Some functions are actually named
   17250     something starting with __ and the normal name is an alias.  */
   17251 #if defined __stub_$ac_func || defined __stub___$ac_func
   17252 choke me
   17253 #endif
   17254 
   17255 int
   17256 main ()
   17257 {
   17258 return $ac_func ();
   17259   ;
   17260   return 0;
   17261 }
   17262 _ACEOF
   17263 rm -f conftest.$ac_objext conftest$ac_exeext
   17264 if { (ac_try="$ac_link"
   17265 case "(($ac_try" in
   17266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17267   *) ac_try_echo=$ac_try;;
   17268 esac
   17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17270   (eval "$ac_link") 2>conftest.er1
   17271   ac_status=$?
   17272   grep -v '^ *+' conftest.er1 >conftest.err
   17273   rm -f conftest.er1
   17274   cat conftest.err >&5
   17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17276   (exit $ac_status); } &&
   17277 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17278   { (case "(($ac_try" in
   17279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17280   *) ac_try_echo=$ac_try;;
   17281 esac
   17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17283   (eval "$ac_try") 2>&5
   17284   ac_status=$?
   17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17286   (exit $ac_status); }; } &&
   17287 	 { ac_try='test -s conftest$ac_exeext'
   17288   { (case "(($ac_try" in
   17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17290   *) ac_try_echo=$ac_try;;
   17291 esac
   17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17293   (eval "$ac_try") 2>&5
   17294   ac_status=$?
   17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17296   (exit $ac_status); }; }; then
   17297   eval "$as_ac_var=yes"
   17298 else
   17299   echo "$as_me: failed program was:" >&5
   17300 sed 's/^/| /' conftest.$ac_ext >&5
   17301 
   17302 	eval "$as_ac_var=no"
   17303 fi
   17304 
   17305 rm -f core conftest.err conftest.$ac_objext \
   17306       conftest$ac_exeext conftest.$ac_ext
   17307 fi
   17308 ac_res=`eval echo '${'$as_ac_var'}'`
   17309 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17310 echo "${ECHO_T}$ac_res" >&6; }
   17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17312   cat >>confdefs.h <<_ACEOF
   17313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17314 _ACEOF
   17315 
   17316 fi
   17317 done
   17318 
   17319 
   17320 
   17321 
   17322 for ac_func in isatty mkdtemp mkstemp
   17323 do
   17324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17328   echo $ECHO_N "(cached) $ECHO_C" >&6
   17329 else
   17330   cat >conftest.$ac_ext <<_ACEOF
   17331 /* confdefs.h.  */
   17332 _ACEOF
   17333 cat confdefs.h >>conftest.$ac_ext
   17334 cat >>conftest.$ac_ext <<_ACEOF
   17335 /* end confdefs.h.  */
   17336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17338 #define $ac_func innocuous_$ac_func
   17339 
   17340 /* System header to define __stub macros and hopefully few prototypes,
   17341     which can conflict with char $ac_func (); below.
   17342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17343     <limits.h> exists even on freestanding compilers.  */
   17344 
   17345 #ifdef __STDC__
   17346 # include <limits.h>
   17347 #else
   17348 # include <assert.h>
   17349 #endif
   17350 
   17351 #undef $ac_func
   17352 
   17353 /* Override any GCC internal prototype to avoid an error.
   17354    Use char because int might match the return type of a GCC
   17355    builtin and then its argument prototype would still apply.  */
   17356 #ifdef __cplusplus
   17357 extern "C"
   17358 #endif
   17359 char $ac_func ();
   17360 /* The GNU C library defines this for functions which it implements
   17361     to always fail with ENOSYS.  Some functions are actually named
   17362     something starting with __ and the normal name is an alias.  */
   17363 #if defined __stub_$ac_func || defined __stub___$ac_func
   17364 choke me
   17365 #endif
   17366 
   17367 int
   17368 main ()
   17369 {
   17370 return $ac_func ();
   17371   ;
   17372   return 0;
   17373 }
   17374 _ACEOF
   17375 rm -f conftest.$ac_objext conftest$ac_exeext
   17376 if { (ac_try="$ac_link"
   17377 case "(($ac_try" in
   17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17379   *) ac_try_echo=$ac_try;;
   17380 esac
   17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17382   (eval "$ac_link") 2>conftest.er1
   17383   ac_status=$?
   17384   grep -v '^ *+' conftest.er1 >conftest.err
   17385   rm -f conftest.er1
   17386   cat conftest.err >&5
   17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17388   (exit $ac_status); } &&
   17389 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17390   { (case "(($ac_try" in
   17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17392   *) ac_try_echo=$ac_try;;
   17393 esac
   17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17395   (eval "$ac_try") 2>&5
   17396   ac_status=$?
   17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17398   (exit $ac_status); }; } &&
   17399 	 { ac_try='test -s conftest$ac_exeext'
   17400   { (case "(($ac_try" in
   17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17402   *) ac_try_echo=$ac_try;;
   17403 esac
   17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17405   (eval "$ac_try") 2>&5
   17406   ac_status=$?
   17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17408   (exit $ac_status); }; }; then
   17409   eval "$as_ac_var=yes"
   17410 else
   17411   echo "$as_me: failed program was:" >&5
   17412 sed 's/^/| /' conftest.$ac_ext >&5
   17413 
   17414 	eval "$as_ac_var=no"
   17415 fi
   17416 
   17417 rm -f core conftest.err conftest.$ac_objext \
   17418       conftest$ac_exeext conftest.$ac_ext
   17419 fi
   17420 ac_res=`eval echo '${'$as_ac_var'}'`
   17421 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17422 echo "${ECHO_T}$ac_res" >&6; }
   17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17424   cat >>confdefs.h <<_ACEOF
   17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17426 _ACEOF
   17427 
   17428 fi
   17429 done
   17430 
   17431 
   17432 
   17433 
   17434 
   17435 
   17436 
   17437 
   17438 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
   17439 do
   17440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17444   echo $ECHO_N "(cached) $ECHO_C" >&6
   17445 else
   17446   cat >conftest.$ac_ext <<_ACEOF
   17447 /* confdefs.h.  */
   17448 _ACEOF
   17449 cat confdefs.h >>conftest.$ac_ext
   17450 cat >>conftest.$ac_ext <<_ACEOF
   17451 /* end confdefs.h.  */
   17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17454 #define $ac_func innocuous_$ac_func
   17455 
   17456 /* System header to define __stub macros and hopefully few prototypes,
   17457     which can conflict with char $ac_func (); below.
   17458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17459     <limits.h> exists even on freestanding compilers.  */
   17460 
   17461 #ifdef __STDC__
   17462 # include <limits.h>
   17463 #else
   17464 # include <assert.h>
   17465 #endif
   17466 
   17467 #undef $ac_func
   17468 
   17469 /* Override any GCC internal prototype to avoid an error.
   17470    Use char because int might match the return type of a GCC
   17471    builtin and then its argument prototype would still apply.  */
   17472 #ifdef __cplusplus
   17473 extern "C"
   17474 #endif
   17475 char $ac_func ();
   17476 /* The GNU C library defines this for functions which it implements
   17477     to always fail with ENOSYS.  Some functions are actually named
   17478     something starting with __ and the normal name is an alias.  */
   17479 #if defined __stub_$ac_func || defined __stub___$ac_func
   17480 choke me
   17481 #endif
   17482 
   17483 int
   17484 main ()
   17485 {
   17486 return $ac_func ();
   17487   ;
   17488   return 0;
   17489 }
   17490 _ACEOF
   17491 rm -f conftest.$ac_objext conftest$ac_exeext
   17492 if { (ac_try="$ac_link"
   17493 case "(($ac_try" in
   17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17495   *) ac_try_echo=$ac_try;;
   17496 esac
   17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17498   (eval "$ac_link") 2>conftest.er1
   17499   ac_status=$?
   17500   grep -v '^ *+' conftest.er1 >conftest.err
   17501   rm -f conftest.er1
   17502   cat conftest.err >&5
   17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17504   (exit $ac_status); } &&
   17505 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17506   { (case "(($ac_try" in
   17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17508   *) ac_try_echo=$ac_try;;
   17509 esac
   17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17511   (eval "$ac_try") 2>&5
   17512   ac_status=$?
   17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17514   (exit $ac_status); }; } &&
   17515 	 { ac_try='test -s conftest$ac_exeext'
   17516   { (case "(($ac_try" in
   17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17518   *) ac_try_echo=$ac_try;;
   17519 esac
   17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17521   (eval "$ac_try") 2>&5
   17522   ac_status=$?
   17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17524   (exit $ac_status); }; }; then
   17525   eval "$as_ac_var=yes"
   17526 else
   17527   echo "$as_me: failed program was:" >&5
   17528 sed 's/^/| /' conftest.$ac_ext >&5
   17529 
   17530 	eval "$as_ac_var=no"
   17531 fi
   17532 
   17533 rm -f core conftest.err conftest.$ac_objext \
   17534       conftest$ac_exeext conftest.$ac_ext
   17535 fi
   17536 ac_res=`eval echo '${'$as_ac_var'}'`
   17537 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17538 echo "${ECHO_T}$ac_res" >&6; }
   17539 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17540   cat >>confdefs.h <<_ACEOF
   17541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17542 _ACEOF
   17543 
   17544 fi
   17545 done
   17546 
   17547 
   17548 
   17549 
   17550 
   17551 for ac_func in strerror strerror_r setenv arc4random
   17552 do
   17553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17557   echo $ECHO_N "(cached) $ECHO_C" >&6
   17558 else
   17559   cat >conftest.$ac_ext <<_ACEOF
   17560 /* confdefs.h.  */
   17561 _ACEOF
   17562 cat confdefs.h >>conftest.$ac_ext
   17563 cat >>conftest.$ac_ext <<_ACEOF
   17564 /* end confdefs.h.  */
   17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17567 #define $ac_func innocuous_$ac_func
   17568 
   17569 /* System header to define __stub macros and hopefully few prototypes,
   17570     which can conflict with char $ac_func (); below.
   17571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17572     <limits.h> exists even on freestanding compilers.  */
   17573 
   17574 #ifdef __STDC__
   17575 # include <limits.h>
   17576 #else
   17577 # include <assert.h>
   17578 #endif
   17579 
   17580 #undef $ac_func
   17581 
   17582 /* Override any GCC internal prototype to avoid an error.
   17583    Use char because int might match the return type of a GCC
   17584    builtin and then its argument prototype would still apply.  */
   17585 #ifdef __cplusplus
   17586 extern "C"
   17587 #endif
   17588 char $ac_func ();
   17589 /* The GNU C library defines this for functions which it implements
   17590     to always fail with ENOSYS.  Some functions are actually named
   17591     something starting with __ and the normal name is an alias.  */
   17592 #if defined __stub_$ac_func || defined __stub___$ac_func
   17593 choke me
   17594 #endif
   17595 
   17596 int
   17597 main ()
   17598 {
   17599 return $ac_func ();
   17600   ;
   17601   return 0;
   17602 }
   17603 _ACEOF
   17604 rm -f conftest.$ac_objext conftest$ac_exeext
   17605 if { (ac_try="$ac_link"
   17606 case "(($ac_try" in
   17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17608   *) ac_try_echo=$ac_try;;
   17609 esac
   17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17611   (eval "$ac_link") 2>conftest.er1
   17612   ac_status=$?
   17613   grep -v '^ *+' conftest.er1 >conftest.err
   17614   rm -f conftest.er1
   17615   cat conftest.err >&5
   17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17617   (exit $ac_status); } &&
   17618 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17619   { (case "(($ac_try" in
   17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17621   *) ac_try_echo=$ac_try;;
   17622 esac
   17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17624   (eval "$ac_try") 2>&5
   17625   ac_status=$?
   17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17627   (exit $ac_status); }; } &&
   17628 	 { ac_try='test -s conftest$ac_exeext'
   17629   { (case "(($ac_try" in
   17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17631   *) ac_try_echo=$ac_try;;
   17632 esac
   17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17634   (eval "$ac_try") 2>&5
   17635   ac_status=$?
   17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17637   (exit $ac_status); }; }; then
   17638   eval "$as_ac_var=yes"
   17639 else
   17640   echo "$as_me: failed program was:" >&5
   17641 sed 's/^/| /' conftest.$ac_ext >&5
   17642 
   17643 	eval "$as_ac_var=no"
   17644 fi
   17645 
   17646 rm -f core conftest.err conftest.$ac_objext \
   17647       conftest$ac_exeext conftest.$ac_ext
   17648 fi
   17649 ac_res=`eval echo '${'$as_ac_var'}'`
   17650 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17651 echo "${ECHO_T}$ac_res" >&6; }
   17652 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17653   cat >>confdefs.h <<_ACEOF
   17654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17655 _ACEOF
   17656 
   17657 fi
   17658 done
   17659 
   17660 
   17661 
   17662 
   17663 
   17664 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
   17665 do
   17666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17670   echo $ECHO_N "(cached) $ECHO_C" >&6
   17671 else
   17672   cat >conftest.$ac_ext <<_ACEOF
   17673 /* confdefs.h.  */
   17674 _ACEOF
   17675 cat confdefs.h >>conftest.$ac_ext
   17676 cat >>conftest.$ac_ext <<_ACEOF
   17677 /* end confdefs.h.  */
   17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17680 #define $ac_func innocuous_$ac_func
   17681 
   17682 /* System header to define __stub macros and hopefully few prototypes,
   17683     which can conflict with char $ac_func (); below.
   17684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17685     <limits.h> exists even on freestanding compilers.  */
   17686 
   17687 #ifdef __STDC__
   17688 # include <limits.h>
   17689 #else
   17690 # include <assert.h>
   17691 #endif
   17692 
   17693 #undef $ac_func
   17694 
   17695 /* Override any GCC internal prototype to avoid an error.
   17696    Use char because int might match the return type of a GCC
   17697    builtin and then its argument prototype would still apply.  */
   17698 #ifdef __cplusplus
   17699 extern "C"
   17700 #endif
   17701 char $ac_func ();
   17702 /* The GNU C library defines this for functions which it implements
   17703     to always fail with ENOSYS.  Some functions are actually named
   17704     something starting with __ and the normal name is an alias.  */
   17705 #if defined __stub_$ac_func || defined __stub___$ac_func
   17706 choke me
   17707 #endif
   17708 
   17709 int
   17710 main ()
   17711 {
   17712 return $ac_func ();
   17713   ;
   17714   return 0;
   17715 }
   17716 _ACEOF
   17717 rm -f conftest.$ac_objext conftest$ac_exeext
   17718 if { (ac_try="$ac_link"
   17719 case "(($ac_try" in
   17720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17721   *) ac_try_echo=$ac_try;;
   17722 esac
   17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17724   (eval "$ac_link") 2>conftest.er1
   17725   ac_status=$?
   17726   grep -v '^ *+' conftest.er1 >conftest.err
   17727   rm -f conftest.er1
   17728   cat conftest.err >&5
   17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17730   (exit $ac_status); } &&
   17731 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17732   { (case "(($ac_try" in
   17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17734   *) ac_try_echo=$ac_try;;
   17735 esac
   17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17737   (eval "$ac_try") 2>&5
   17738   ac_status=$?
   17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17740   (exit $ac_status); }; } &&
   17741 	 { ac_try='test -s conftest$ac_exeext'
   17742   { (case "(($ac_try" in
   17743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17744   *) ac_try_echo=$ac_try;;
   17745 esac
   17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17747   (eval "$ac_try") 2>&5
   17748   ac_status=$?
   17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17750   (exit $ac_status); }; }; then
   17751   eval "$as_ac_var=yes"
   17752 else
   17753   echo "$as_me: failed program was:" >&5
   17754 sed 's/^/| /' conftest.$ac_ext >&5
   17755 
   17756 	eval "$as_ac_var=no"
   17757 fi
   17758 
   17759 rm -f core conftest.err conftest.$ac_objext \
   17760       conftest$ac_exeext conftest.$ac_ext
   17761 fi
   17762 ac_res=`eval echo '${'$as_ac_var'}'`
   17763 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17764 echo "${ECHO_T}$ac_res" >&6; }
   17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17766   cat >>confdefs.h <<_ACEOF
   17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17768 _ACEOF
   17769 
   17770 fi
   17771 done
   17772 
   17773 
   17774 
   17775 
   17776 
   17777 
   17778 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
   17779 do
   17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17784   echo $ECHO_N "(cached) $ECHO_C" >&6
   17785 else
   17786   cat >conftest.$ac_ext <<_ACEOF
   17787 /* confdefs.h.  */
   17788 _ACEOF
   17789 cat confdefs.h >>conftest.$ac_ext
   17790 cat >>conftest.$ac_ext <<_ACEOF
   17791 /* end confdefs.h.  */
   17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17794 #define $ac_func innocuous_$ac_func
   17795 
   17796 /* System header to define __stub macros and hopefully few prototypes,
   17797     which can conflict with char $ac_func (); below.
   17798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17799     <limits.h> exists even on freestanding compilers.  */
   17800 
   17801 #ifdef __STDC__
   17802 # include <limits.h>
   17803 #else
   17804 # include <assert.h>
   17805 #endif
   17806 
   17807 #undef $ac_func
   17808 
   17809 /* Override any GCC internal prototype to avoid an error.
   17810    Use char because int might match the return type of a GCC
   17811    builtin and then its argument prototype would still apply.  */
   17812 #ifdef __cplusplus
   17813 extern "C"
   17814 #endif
   17815 char $ac_func ();
   17816 /* The GNU C library defines this for functions which it implements
   17817     to always fail with ENOSYS.  Some functions are actually named
   17818     something starting with __ and the normal name is an alias.  */
   17819 #if defined __stub_$ac_func || defined __stub___$ac_func
   17820 choke me
   17821 #endif
   17822 
   17823 int
   17824 main ()
   17825 {
   17826 return $ac_func ();
   17827   ;
   17828   return 0;
   17829 }
   17830 _ACEOF
   17831 rm -f conftest.$ac_objext conftest$ac_exeext
   17832 if { (ac_try="$ac_link"
   17833 case "(($ac_try" in
   17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17835   *) ac_try_echo=$ac_try;;
   17836 esac
   17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17838   (eval "$ac_link") 2>conftest.er1
   17839   ac_status=$?
   17840   grep -v '^ *+' conftest.er1 >conftest.err
   17841   rm -f conftest.er1
   17842   cat conftest.err >&5
   17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17844   (exit $ac_status); } &&
   17845 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   17846   { (case "(($ac_try" in
   17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17848   *) ac_try_echo=$ac_try;;
   17849 esac
   17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17851   (eval "$ac_try") 2>&5
   17852   ac_status=$?
   17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17854   (exit $ac_status); }; } &&
   17855 	 { ac_try='test -s conftest$ac_exeext'
   17856   { (case "(($ac_try" in
   17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17858   *) ac_try_echo=$ac_try;;
   17859 esac
   17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17861   (eval "$ac_try") 2>&5
   17862   ac_status=$?
   17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17864   (exit $ac_status); }; }; then
   17865   eval "$as_ac_var=yes"
   17866 else
   17867   echo "$as_me: failed program was:" >&5
   17868 sed 's/^/| /' conftest.$ac_ext >&5
   17869 
   17870 	eval "$as_ac_var=no"
   17871 fi
   17872 
   17873 rm -f core conftest.err conftest.$ac_objext \
   17874       conftest$ac_exeext conftest.$ac_ext
   17875 fi
   17876 ac_res=`eval echo '${'$as_ac_var'}'`
   17877 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17878 echo "${ECHO_T}$ac_res" >&6; }
   17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17880   cat >>confdefs.h <<_ACEOF
   17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17882 _ACEOF
   17883 
   17884 fi
   17885 done
   17886 
   17887 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
   17888 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
   17889 if test "${llvm_cv_c_printf_a+set}" = set; then
   17890   echo $ECHO_N "(cached) $ECHO_C" >&6
   17891 else
   17892   ac_ext=c
   17893 ac_cpp='$CPP $CPPFLAGS'
   17894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17897 
   17898  if test "$cross_compiling" = yes; then
   17899   llvmac_cv_c_printf_a=no
   17900 else
   17901   cat >conftest.$ac_ext <<_ACEOF
   17902 
   17903   /* confdefs.h.  */
   17904 _ACEOF
   17905 cat confdefs.h >>conftest.$ac_ext
   17906 cat >>conftest.$ac_ext <<_ACEOF
   17907 /* end confdefs.h.  */
   17908 
   17909 #include <stdio.h>
   17910 #include <stdlib.h>
   17911 
   17912 int
   17913 main ()
   17914 {
   17915 
   17916 volatile double A, B;
   17917 char Buffer[100];
   17918 A = 1;
   17919 A /= 10.0;
   17920 sprintf(Buffer, "%a", A);
   17921 B = atof(Buffer);
   17922 if (A != B)
   17923   return (1);
   17924 if (A != 0x1.999999999999ap-4)
   17925   return (1);
   17926 return (0);
   17927   ;
   17928   return 0;
   17929 }
   17930 _ACEOF
   17931 rm -f conftest$ac_exeext
   17932 if { (ac_try="$ac_link"
   17933 case "(($ac_try" in
   17934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17935   *) ac_try_echo=$ac_try;;
   17936 esac
   17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17938   (eval "$ac_link") 2>&5
   17939   ac_status=$?
   17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   17942   { (case "(($ac_try" in
   17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17944   *) ac_try_echo=$ac_try;;
   17945 esac
   17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17947   (eval "$ac_try") 2>&5
   17948   ac_status=$?
   17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17950   (exit $ac_status); }; }; then
   17951   llvm_cv_c_printf_a=yes
   17952 else
   17953   echo "$as_me: program exited with status $ac_status" >&5
   17954 echo "$as_me: failed program was:" >&5
   17955 sed 's/^/| /' conftest.$ac_ext >&5
   17956 
   17957 ( exit $ac_status )
   17958 llvmac_cv_c_printf_a=no
   17959 fi
   17960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   17961 fi
   17962 
   17963 
   17964  ac_ext=c
   17965 ac_cpp='$CPP $CPPFLAGS'
   17966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17969 
   17970 fi
   17971 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
   17972 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
   17973  if test "$llvm_cv_c_printf_a" = "yes"; then
   17974 
   17975 cat >>confdefs.h <<\_ACEOF
   17976 #define HAVE_PRINTF_A 1
   17977 _ACEOF
   17978 
   17979  fi
   17980 
   17981 
   17982 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
   17983 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
   17984 if test "${ac_cv_func_rand48+set}" = set; then
   17985   echo $ECHO_N "(cached) $ECHO_C" >&6
   17986 else
   17987   ac_ext=cpp
   17988 ac_cpp='$CXXCPP $CPPFLAGS'
   17989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17992 
   17993    cat >conftest.$ac_ext <<_ACEOF
   17994 /* confdefs.h.  */
   17995 _ACEOF
   17996 cat confdefs.h >>conftest.$ac_ext
   17997 cat >>conftest.$ac_ext <<_ACEOF
   17998 /* end confdefs.h.  */
   17999 #include <stdlib.h>
   18000 int
   18001 main ()
   18002 {
   18003 srand48(0);lrand48();drand48();
   18004   ;
   18005   return 0;
   18006 }
   18007 _ACEOF
   18008 rm -f conftest.$ac_objext
   18009 if { (ac_try="$ac_compile"
   18010 case "(($ac_try" in
   18011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18012   *) ac_try_echo=$ac_try;;
   18013 esac
   18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18015   (eval "$ac_compile") 2>conftest.er1
   18016   ac_status=$?
   18017   grep -v '^ *+' conftest.er1 >conftest.err
   18018   rm -f conftest.er1
   18019   cat conftest.err >&5
   18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18021   (exit $ac_status); } &&
   18022 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   18023   { (case "(($ac_try" in
   18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18025   *) ac_try_echo=$ac_try;;
   18026 esac
   18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18028   (eval "$ac_try") 2>&5
   18029   ac_status=$?
   18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18031   (exit $ac_status); }; } &&
   18032 	 { ac_try='test -s conftest.$ac_objext'
   18033   { (case "(($ac_try" in
   18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18035   *) ac_try_echo=$ac_try;;
   18036 esac
   18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18038   (eval "$ac_try") 2>&5
   18039   ac_status=$?
   18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18041   (exit $ac_status); }; }; then
   18042   ac_cv_func_rand48=yes
   18043 else
   18044   echo "$as_me: failed program was:" >&5
   18045 sed 's/^/| /' conftest.$ac_ext >&5
   18046 
   18047 	ac_cv_func_rand48=no
   18048 fi
   18049 
   18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18051   ac_ext=c
   18052 ac_cpp='$CPP $CPPFLAGS'
   18053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18056 
   18057 fi
   18058 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
   18059 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
   18060 
   18061 if test "$ac_cv_func_rand48" = "yes" ; then
   18062 
   18063 cat >>confdefs.h <<\_ACEOF
   18064 #define HAVE_RAND48 1
   18065 _ACEOF
   18066 
   18067 fi
   18068 
   18069 
   18070 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
   18071 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
   18072 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
   18073   echo $ECHO_N "(cached) $ECHO_C" >&6
   18074 else
   18075   cat >conftest.$ac_ext <<_ACEOF
   18076 /* confdefs.h.  */
   18077 _ACEOF
   18078 cat confdefs.h >>conftest.$ac_ext
   18079 cat >>conftest.$ac_ext <<_ACEOF
   18080 /* end confdefs.h.  */
   18081 $ac_includes_default
   18082 int
   18083 main ()
   18084 {
   18085 #ifndef strerror_s
   18086   char *p = (char *) strerror_s;
   18087   return !p;
   18088 #endif
   18089 
   18090   ;
   18091   return 0;
   18092 }
   18093 _ACEOF
   18094 rm -f conftest.$ac_objext
   18095 if { (ac_try="$ac_compile"
   18096 case "(($ac_try" in
   18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18098   *) ac_try_echo=$ac_try;;
   18099 esac
   18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18101   (eval "$ac_compile") 2>conftest.er1
   18102   ac_status=$?
   18103   grep -v '^ *+' conftest.er1 >conftest.err
   18104   rm -f conftest.er1
   18105   cat conftest.err >&5
   18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18107   (exit $ac_status); } &&
   18108 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18109   { (case "(($ac_try" in
   18110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18111   *) ac_try_echo=$ac_try;;
   18112 esac
   18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18114   (eval "$ac_try") 2>&5
   18115   ac_status=$?
   18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18117   (exit $ac_status); }; } &&
   18118 	 { ac_try='test -s conftest.$ac_objext'
   18119   { (case "(($ac_try" in
   18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18121   *) ac_try_echo=$ac_try;;
   18122 esac
   18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18124   (eval "$ac_try") 2>&5
   18125   ac_status=$?
   18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18127   (exit $ac_status); }; }; then
   18128   ac_cv_have_decl_strerror_s=yes
   18129 else
   18130   echo "$as_me: failed program was:" >&5
   18131 sed 's/^/| /' conftest.$ac_ext >&5
   18132 
   18133 	ac_cv_have_decl_strerror_s=no
   18134 fi
   18135 
   18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18137 fi
   18138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
   18139 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
   18140 if test $ac_cv_have_decl_strerror_s = yes; then
   18141 
   18142 cat >>confdefs.h <<_ACEOF
   18143 #define HAVE_DECL_STRERROR_S 1
   18144 _ACEOF
   18145 
   18146 
   18147 else
   18148   cat >>confdefs.h <<_ACEOF
   18149 #define HAVE_DECL_STRERROR_S 0
   18150 _ACEOF
   18151 
   18152 
   18153 fi
   18154 
   18155 
   18156 
   18157 if test "$llvm_cv_os_type" = "MingW" ; then
   18158   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
   18159 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
   18160 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
   18161   echo $ECHO_N "(cached) $ECHO_C" >&6
   18162 else
   18163   ac_check_lib_save_LIBS=$LIBS
   18164 LIBS="-lgcc  $LIBS"
   18165 cat >conftest.$ac_ext <<_ACEOF
   18166 /* confdefs.h.  */
   18167 _ACEOF
   18168 cat confdefs.h >>conftest.$ac_ext
   18169 cat >>conftest.$ac_ext <<_ACEOF
   18170 /* end confdefs.h.  */
   18171 
   18172 /* Override any GCC internal prototype to avoid an error.
   18173    Use char because int might match the return type of a GCC
   18174    builtin and then its argument prototype would still apply.  */
   18175 #ifdef __cplusplus
   18176 extern "C"
   18177 #endif
   18178 char _alloca ();
   18179 int
   18180 main ()
   18181 {
   18182 return _alloca ();
   18183   ;
   18184   return 0;
   18185 }
   18186 _ACEOF
   18187 rm -f conftest.$ac_objext conftest$ac_exeext
   18188 if { (ac_try="$ac_link"
   18189 case "(($ac_try" in
   18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18191   *) ac_try_echo=$ac_try;;
   18192 esac
   18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18194   (eval "$ac_link") 2>conftest.er1
   18195   ac_status=$?
   18196   grep -v '^ *+' conftest.er1 >conftest.err
   18197   rm -f conftest.er1
   18198   cat conftest.err >&5
   18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18200   (exit $ac_status); } &&
   18201 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18202   { (case "(($ac_try" in
   18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18204   *) ac_try_echo=$ac_try;;
   18205 esac
   18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18207   (eval "$ac_try") 2>&5
   18208   ac_status=$?
   18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18210   (exit $ac_status); }; } &&
   18211 	 { ac_try='test -s conftest$ac_exeext'
   18212   { (case "(($ac_try" in
   18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18214   *) ac_try_echo=$ac_try;;
   18215 esac
   18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18217   (eval "$ac_try") 2>&5
   18218   ac_status=$?
   18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18220   (exit $ac_status); }; }; then
   18221   ac_cv_lib_gcc__alloca=yes
   18222 else
   18223   echo "$as_me: failed program was:" >&5
   18224 sed 's/^/| /' conftest.$ac_ext >&5
   18225 
   18226 	ac_cv_lib_gcc__alloca=no
   18227 fi
   18228 
   18229 rm -f core conftest.err conftest.$ac_objext \
   18230       conftest$ac_exeext conftest.$ac_ext
   18231 LIBS=$ac_check_lib_save_LIBS
   18232 fi
   18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
   18234 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
   18235 if test $ac_cv_lib_gcc__alloca = yes; then
   18236 
   18237 cat >>confdefs.h <<\_ACEOF
   18238 #define HAVE__ALLOCA 1
   18239 _ACEOF
   18240 
   18241 fi
   18242 
   18243   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
   18244 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
   18245 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
   18246   echo $ECHO_N "(cached) $ECHO_C" >&6
   18247 else
   18248   ac_check_lib_save_LIBS=$LIBS
   18249 LIBS="-lgcc  $LIBS"
   18250 cat >conftest.$ac_ext <<_ACEOF
   18251 /* confdefs.h.  */
   18252 _ACEOF
   18253 cat confdefs.h >>conftest.$ac_ext
   18254 cat >>conftest.$ac_ext <<_ACEOF
   18255 /* end confdefs.h.  */
   18256 
   18257 /* Override any GCC internal prototype to avoid an error.
   18258    Use char because int might match the return type of a GCC
   18259    builtin and then its argument prototype would still apply.  */
   18260 #ifdef __cplusplus
   18261 extern "C"
   18262 #endif
   18263 char __alloca ();
   18264 int
   18265 main ()
   18266 {
   18267 return __alloca ();
   18268   ;
   18269   return 0;
   18270 }
   18271 _ACEOF
   18272 rm -f conftest.$ac_objext conftest$ac_exeext
   18273 if { (ac_try="$ac_link"
   18274 case "(($ac_try" in
   18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18276   *) ac_try_echo=$ac_try;;
   18277 esac
   18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18279   (eval "$ac_link") 2>conftest.er1
   18280   ac_status=$?
   18281   grep -v '^ *+' conftest.er1 >conftest.err
   18282   rm -f conftest.er1
   18283   cat conftest.err >&5
   18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18285   (exit $ac_status); } &&
   18286 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18287   { (case "(($ac_try" in
   18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18289   *) ac_try_echo=$ac_try;;
   18290 esac
   18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18292   (eval "$ac_try") 2>&5
   18293   ac_status=$?
   18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18295   (exit $ac_status); }; } &&
   18296 	 { ac_try='test -s conftest$ac_exeext'
   18297   { (case "(($ac_try" in
   18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18299   *) ac_try_echo=$ac_try;;
   18300 esac
   18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18302   (eval "$ac_try") 2>&5
   18303   ac_status=$?
   18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18305   (exit $ac_status); }; }; then
   18306   ac_cv_lib_gcc___alloca=yes
   18307 else
   18308   echo "$as_me: failed program was:" >&5
   18309 sed 's/^/| /' conftest.$ac_ext >&5
   18310 
   18311 	ac_cv_lib_gcc___alloca=no
   18312 fi
   18313 
   18314 rm -f core conftest.err conftest.$ac_objext \
   18315       conftest$ac_exeext conftest.$ac_ext
   18316 LIBS=$ac_check_lib_save_LIBS
   18317 fi
   18318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
   18319 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
   18320 if test $ac_cv_lib_gcc___alloca = yes; then
   18321 
   18322 cat >>confdefs.h <<\_ACEOF
   18323 #define HAVE___ALLOCA 1
   18324 _ACEOF
   18325 
   18326 fi
   18327 
   18328   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
   18329 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
   18330 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
   18331   echo $ECHO_N "(cached) $ECHO_C" >&6
   18332 else
   18333   ac_check_lib_save_LIBS=$LIBS
   18334 LIBS="-lgcc  $LIBS"
   18335 cat >conftest.$ac_ext <<_ACEOF
   18336 /* confdefs.h.  */
   18337 _ACEOF
   18338 cat confdefs.h >>conftest.$ac_ext
   18339 cat >>conftest.$ac_ext <<_ACEOF
   18340 /* end confdefs.h.  */
   18341 
   18342 /* Override any GCC internal prototype to avoid an error.
   18343    Use char because int might match the return type of a GCC
   18344    builtin and then its argument prototype would still apply.  */
   18345 #ifdef __cplusplus
   18346 extern "C"
   18347 #endif
   18348 char __chkstk ();
   18349 int
   18350 main ()
   18351 {
   18352 return __chkstk ();
   18353   ;
   18354   return 0;
   18355 }
   18356 _ACEOF
   18357 rm -f conftest.$ac_objext conftest$ac_exeext
   18358 if { (ac_try="$ac_link"
   18359 case "(($ac_try" in
   18360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18361   *) ac_try_echo=$ac_try;;
   18362 esac
   18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18364   (eval "$ac_link") 2>conftest.er1
   18365   ac_status=$?
   18366   grep -v '^ *+' conftest.er1 >conftest.err
   18367   rm -f conftest.er1
   18368   cat conftest.err >&5
   18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18370   (exit $ac_status); } &&
   18371 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18372   { (case "(($ac_try" in
   18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18374   *) ac_try_echo=$ac_try;;
   18375 esac
   18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18377   (eval "$ac_try") 2>&5
   18378   ac_status=$?
   18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18380   (exit $ac_status); }; } &&
   18381 	 { ac_try='test -s conftest$ac_exeext'
   18382   { (case "(($ac_try" in
   18383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18384   *) ac_try_echo=$ac_try;;
   18385 esac
   18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18387   (eval "$ac_try") 2>&5
   18388   ac_status=$?
   18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18390   (exit $ac_status); }; }; then
   18391   ac_cv_lib_gcc___chkstk=yes
   18392 else
   18393   echo "$as_me: failed program was:" >&5
   18394 sed 's/^/| /' conftest.$ac_ext >&5
   18395 
   18396 	ac_cv_lib_gcc___chkstk=no
   18397 fi
   18398 
   18399 rm -f core conftest.err conftest.$ac_objext \
   18400       conftest$ac_exeext conftest.$ac_ext
   18401 LIBS=$ac_check_lib_save_LIBS
   18402 fi
   18403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
   18404 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
   18405 if test $ac_cv_lib_gcc___chkstk = yes; then
   18406 
   18407 cat >>confdefs.h <<\_ACEOF
   18408 #define HAVE___CHKSTK 1
   18409 _ACEOF
   18410 
   18411 fi
   18412 
   18413   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
   18414 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
   18415 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
   18416   echo $ECHO_N "(cached) $ECHO_C" >&6
   18417 else
   18418   ac_check_lib_save_LIBS=$LIBS
   18419 LIBS="-lgcc  $LIBS"
   18420 cat >conftest.$ac_ext <<_ACEOF
   18421 /* confdefs.h.  */
   18422 _ACEOF
   18423 cat confdefs.h >>conftest.$ac_ext
   18424 cat >>conftest.$ac_ext <<_ACEOF
   18425 /* end confdefs.h.  */
   18426 
   18427 /* Override any GCC internal prototype to avoid an error.
   18428    Use char because int might match the return type of a GCC
   18429    builtin and then its argument prototype would still apply.  */
   18430 #ifdef __cplusplus
   18431 extern "C"
   18432 #endif
   18433 char ___chkstk ();
   18434 int
   18435 main ()
   18436 {
   18437 return ___chkstk ();
   18438   ;
   18439   return 0;
   18440 }
   18441 _ACEOF
   18442 rm -f conftest.$ac_objext conftest$ac_exeext
   18443 if { (ac_try="$ac_link"
   18444 case "(($ac_try" in
   18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18446   *) ac_try_echo=$ac_try;;
   18447 esac
   18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18449   (eval "$ac_link") 2>conftest.er1
   18450   ac_status=$?
   18451   grep -v '^ *+' conftest.er1 >conftest.err
   18452   rm -f conftest.er1
   18453   cat conftest.err >&5
   18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18455   (exit $ac_status); } &&
   18456 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18457   { (case "(($ac_try" in
   18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18459   *) ac_try_echo=$ac_try;;
   18460 esac
   18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18462   (eval "$ac_try") 2>&5
   18463   ac_status=$?
   18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18465   (exit $ac_status); }; } &&
   18466 	 { ac_try='test -s conftest$ac_exeext'
   18467   { (case "(($ac_try" in
   18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18469   *) ac_try_echo=$ac_try;;
   18470 esac
   18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18472   (eval "$ac_try") 2>&5
   18473   ac_status=$?
   18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18475   (exit $ac_status); }; }; then
   18476   ac_cv_lib_gcc____chkstk=yes
   18477 else
   18478   echo "$as_me: failed program was:" >&5
   18479 sed 's/^/| /' conftest.$ac_ext >&5
   18480 
   18481 	ac_cv_lib_gcc____chkstk=no
   18482 fi
   18483 
   18484 rm -f core conftest.err conftest.$ac_objext \
   18485       conftest$ac_exeext conftest.$ac_ext
   18486 LIBS=$ac_check_lib_save_LIBS
   18487 fi
   18488 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
   18489 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
   18490 if test $ac_cv_lib_gcc____chkstk = yes; then
   18491 
   18492 cat >>confdefs.h <<\_ACEOF
   18493 #define HAVE____CHKSTK 1
   18494 _ACEOF
   18495 
   18496 fi
   18497 
   18498 
   18499   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
   18500 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
   18501 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
   18502   echo $ECHO_N "(cached) $ECHO_C" >&6
   18503 else
   18504   ac_check_lib_save_LIBS=$LIBS
   18505 LIBS="-lgcc  $LIBS"
   18506 cat >conftest.$ac_ext <<_ACEOF
   18507 /* confdefs.h.  */
   18508 _ACEOF
   18509 cat confdefs.h >>conftest.$ac_ext
   18510 cat >>conftest.$ac_ext <<_ACEOF
   18511 /* end confdefs.h.  */
   18512 
   18513 /* Override any GCC internal prototype to avoid an error.
   18514    Use char because int might match the return type of a GCC
   18515    builtin and then its argument prototype would still apply.  */
   18516 #ifdef __cplusplus
   18517 extern "C"
   18518 #endif
   18519 char __ashldi3 ();
   18520 int
   18521 main ()
   18522 {
   18523 return __ashldi3 ();
   18524   ;
   18525   return 0;
   18526 }
   18527 _ACEOF
   18528 rm -f conftest.$ac_objext conftest$ac_exeext
   18529 if { (ac_try="$ac_link"
   18530 case "(($ac_try" in
   18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18532   *) ac_try_echo=$ac_try;;
   18533 esac
   18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18535   (eval "$ac_link") 2>conftest.er1
   18536   ac_status=$?
   18537   grep -v '^ *+' conftest.er1 >conftest.err
   18538   rm -f conftest.er1
   18539   cat conftest.err >&5
   18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18541   (exit $ac_status); } &&
   18542 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18543   { (case "(($ac_try" in
   18544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18545   *) ac_try_echo=$ac_try;;
   18546 esac
   18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18548   (eval "$ac_try") 2>&5
   18549   ac_status=$?
   18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18551   (exit $ac_status); }; } &&
   18552 	 { ac_try='test -s conftest$ac_exeext'
   18553   { (case "(($ac_try" in
   18554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18555   *) ac_try_echo=$ac_try;;
   18556 esac
   18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18558   (eval "$ac_try") 2>&5
   18559   ac_status=$?
   18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18561   (exit $ac_status); }; }; then
   18562   ac_cv_lib_gcc___ashldi3=yes
   18563 else
   18564   echo "$as_me: failed program was:" >&5
   18565 sed 's/^/| /' conftest.$ac_ext >&5
   18566 
   18567 	ac_cv_lib_gcc___ashldi3=no
   18568 fi
   18569 
   18570 rm -f core conftest.err conftest.$ac_objext \
   18571       conftest$ac_exeext conftest.$ac_ext
   18572 LIBS=$ac_check_lib_save_LIBS
   18573 fi
   18574 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
   18575 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
   18576 if test $ac_cv_lib_gcc___ashldi3 = yes; then
   18577 
   18578 cat >>confdefs.h <<\_ACEOF
   18579 #define HAVE___ASHLDI3 1
   18580 _ACEOF
   18581 
   18582 fi
   18583 
   18584   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
   18585 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
   18586 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
   18587   echo $ECHO_N "(cached) $ECHO_C" >&6
   18588 else
   18589   ac_check_lib_save_LIBS=$LIBS
   18590 LIBS="-lgcc  $LIBS"
   18591 cat >conftest.$ac_ext <<_ACEOF
   18592 /* confdefs.h.  */
   18593 _ACEOF
   18594 cat confdefs.h >>conftest.$ac_ext
   18595 cat >>conftest.$ac_ext <<_ACEOF
   18596 /* end confdefs.h.  */
   18597 
   18598 /* Override any GCC internal prototype to avoid an error.
   18599    Use char because int might match the return type of a GCC
   18600    builtin and then its argument prototype would still apply.  */
   18601 #ifdef __cplusplus
   18602 extern "C"
   18603 #endif
   18604 char __ashrdi3 ();
   18605 int
   18606 main ()
   18607 {
   18608 return __ashrdi3 ();
   18609   ;
   18610   return 0;
   18611 }
   18612 _ACEOF
   18613 rm -f conftest.$ac_objext conftest$ac_exeext
   18614 if { (ac_try="$ac_link"
   18615 case "(($ac_try" in
   18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18617   *) ac_try_echo=$ac_try;;
   18618 esac
   18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18620   (eval "$ac_link") 2>conftest.er1
   18621   ac_status=$?
   18622   grep -v '^ *+' conftest.er1 >conftest.err
   18623   rm -f conftest.er1
   18624   cat conftest.err >&5
   18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18626   (exit $ac_status); } &&
   18627 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18628   { (case "(($ac_try" in
   18629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18630   *) ac_try_echo=$ac_try;;
   18631 esac
   18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18633   (eval "$ac_try") 2>&5
   18634   ac_status=$?
   18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18636   (exit $ac_status); }; } &&
   18637 	 { ac_try='test -s conftest$ac_exeext'
   18638   { (case "(($ac_try" in
   18639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18640   *) ac_try_echo=$ac_try;;
   18641 esac
   18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18643   (eval "$ac_try") 2>&5
   18644   ac_status=$?
   18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18646   (exit $ac_status); }; }; then
   18647   ac_cv_lib_gcc___ashrdi3=yes
   18648 else
   18649   echo "$as_me: failed program was:" >&5
   18650 sed 's/^/| /' conftest.$ac_ext >&5
   18651 
   18652 	ac_cv_lib_gcc___ashrdi3=no
   18653 fi
   18654 
   18655 rm -f core conftest.err conftest.$ac_objext \
   18656       conftest$ac_exeext conftest.$ac_ext
   18657 LIBS=$ac_check_lib_save_LIBS
   18658 fi
   18659 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
   18660 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
   18661 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
   18662 
   18663 cat >>confdefs.h <<\_ACEOF
   18664 #define HAVE___ASHRDI3 1
   18665 _ACEOF
   18666 
   18667 fi
   18668 
   18669   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
   18670 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
   18671 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
   18672   echo $ECHO_N "(cached) $ECHO_C" >&6
   18673 else
   18674   ac_check_lib_save_LIBS=$LIBS
   18675 LIBS="-lgcc  $LIBS"
   18676 cat >conftest.$ac_ext <<_ACEOF
   18677 /* confdefs.h.  */
   18678 _ACEOF
   18679 cat confdefs.h >>conftest.$ac_ext
   18680 cat >>conftest.$ac_ext <<_ACEOF
   18681 /* end confdefs.h.  */
   18682 
   18683 /* Override any GCC internal prototype to avoid an error.
   18684    Use char because int might match the return type of a GCC
   18685    builtin and then its argument prototype would still apply.  */
   18686 #ifdef __cplusplus
   18687 extern "C"
   18688 #endif
   18689 char __divdi3 ();
   18690 int
   18691 main ()
   18692 {
   18693 return __divdi3 ();
   18694   ;
   18695   return 0;
   18696 }
   18697 _ACEOF
   18698 rm -f conftest.$ac_objext conftest$ac_exeext
   18699 if { (ac_try="$ac_link"
   18700 case "(($ac_try" in
   18701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18702   *) ac_try_echo=$ac_try;;
   18703 esac
   18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18705   (eval "$ac_link") 2>conftest.er1
   18706   ac_status=$?
   18707   grep -v '^ *+' conftest.er1 >conftest.err
   18708   rm -f conftest.er1
   18709   cat conftest.err >&5
   18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18711   (exit $ac_status); } &&
   18712 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18713   { (case "(($ac_try" in
   18714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18715   *) ac_try_echo=$ac_try;;
   18716 esac
   18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18718   (eval "$ac_try") 2>&5
   18719   ac_status=$?
   18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18721   (exit $ac_status); }; } &&
   18722 	 { ac_try='test -s conftest$ac_exeext'
   18723   { (case "(($ac_try" in
   18724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18725   *) ac_try_echo=$ac_try;;
   18726 esac
   18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18728   (eval "$ac_try") 2>&5
   18729   ac_status=$?
   18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18731   (exit $ac_status); }; }; then
   18732   ac_cv_lib_gcc___divdi3=yes
   18733 else
   18734   echo "$as_me: failed program was:" >&5
   18735 sed 's/^/| /' conftest.$ac_ext >&5
   18736 
   18737 	ac_cv_lib_gcc___divdi3=no
   18738 fi
   18739 
   18740 rm -f core conftest.err conftest.$ac_objext \
   18741       conftest$ac_exeext conftest.$ac_ext
   18742 LIBS=$ac_check_lib_save_LIBS
   18743 fi
   18744 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
   18745 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
   18746 if test $ac_cv_lib_gcc___divdi3 = yes; then
   18747 
   18748 cat >>confdefs.h <<\_ACEOF
   18749 #define HAVE___DIVDI3 1
   18750 _ACEOF
   18751 
   18752 fi
   18753 
   18754   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
   18755 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
   18756 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
   18757   echo $ECHO_N "(cached) $ECHO_C" >&6
   18758 else
   18759   ac_check_lib_save_LIBS=$LIBS
   18760 LIBS="-lgcc  $LIBS"
   18761 cat >conftest.$ac_ext <<_ACEOF
   18762 /* confdefs.h.  */
   18763 _ACEOF
   18764 cat confdefs.h >>conftest.$ac_ext
   18765 cat >>conftest.$ac_ext <<_ACEOF
   18766 /* end confdefs.h.  */
   18767 
   18768 /* Override any GCC internal prototype to avoid an error.
   18769    Use char because int might match the return type of a GCC
   18770    builtin and then its argument prototype would still apply.  */
   18771 #ifdef __cplusplus
   18772 extern "C"
   18773 #endif
   18774 char __fixdfdi ();
   18775 int
   18776 main ()
   18777 {
   18778 return __fixdfdi ();
   18779   ;
   18780   return 0;
   18781 }
   18782 _ACEOF
   18783 rm -f conftest.$ac_objext conftest$ac_exeext
   18784 if { (ac_try="$ac_link"
   18785 case "(($ac_try" in
   18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18787   *) ac_try_echo=$ac_try;;
   18788 esac
   18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18790   (eval "$ac_link") 2>conftest.er1
   18791   ac_status=$?
   18792   grep -v '^ *+' conftest.er1 >conftest.err
   18793   rm -f conftest.er1
   18794   cat conftest.err >&5
   18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18796   (exit $ac_status); } &&
   18797 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18798   { (case "(($ac_try" in
   18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18800   *) ac_try_echo=$ac_try;;
   18801 esac
   18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18803   (eval "$ac_try") 2>&5
   18804   ac_status=$?
   18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18806   (exit $ac_status); }; } &&
   18807 	 { ac_try='test -s conftest$ac_exeext'
   18808   { (case "(($ac_try" in
   18809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18810   *) ac_try_echo=$ac_try;;
   18811 esac
   18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18813   (eval "$ac_try") 2>&5
   18814   ac_status=$?
   18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18816   (exit $ac_status); }; }; then
   18817   ac_cv_lib_gcc___fixdfdi=yes
   18818 else
   18819   echo "$as_me: failed program was:" >&5
   18820 sed 's/^/| /' conftest.$ac_ext >&5
   18821 
   18822 	ac_cv_lib_gcc___fixdfdi=no
   18823 fi
   18824 
   18825 rm -f core conftest.err conftest.$ac_objext \
   18826       conftest$ac_exeext conftest.$ac_ext
   18827 LIBS=$ac_check_lib_save_LIBS
   18828 fi
   18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
   18830 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
   18831 if test $ac_cv_lib_gcc___fixdfdi = yes; then
   18832 
   18833 cat >>confdefs.h <<\_ACEOF
   18834 #define HAVE___FIXDFDI 1
   18835 _ACEOF
   18836 
   18837 fi
   18838 
   18839   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
   18840 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
   18841 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
   18842   echo $ECHO_N "(cached) $ECHO_C" >&6
   18843 else
   18844   ac_check_lib_save_LIBS=$LIBS
   18845 LIBS="-lgcc  $LIBS"
   18846 cat >conftest.$ac_ext <<_ACEOF
   18847 /* confdefs.h.  */
   18848 _ACEOF
   18849 cat confdefs.h >>conftest.$ac_ext
   18850 cat >>conftest.$ac_ext <<_ACEOF
   18851 /* end confdefs.h.  */
   18852 
   18853 /* Override any GCC internal prototype to avoid an error.
   18854    Use char because int might match the return type of a GCC
   18855    builtin and then its argument prototype would still apply.  */
   18856 #ifdef __cplusplus
   18857 extern "C"
   18858 #endif
   18859 char __fixsfdi ();
   18860 int
   18861 main ()
   18862 {
   18863 return __fixsfdi ();
   18864   ;
   18865   return 0;
   18866 }
   18867 _ACEOF
   18868 rm -f conftest.$ac_objext conftest$ac_exeext
   18869 if { (ac_try="$ac_link"
   18870 case "(($ac_try" in
   18871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18872   *) ac_try_echo=$ac_try;;
   18873 esac
   18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18875   (eval "$ac_link") 2>conftest.er1
   18876   ac_status=$?
   18877   grep -v '^ *+' conftest.er1 >conftest.err
   18878   rm -f conftest.er1
   18879   cat conftest.err >&5
   18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18881   (exit $ac_status); } &&
   18882 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18883   { (case "(($ac_try" in
   18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18885   *) ac_try_echo=$ac_try;;
   18886 esac
   18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18888   (eval "$ac_try") 2>&5
   18889   ac_status=$?
   18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18891   (exit $ac_status); }; } &&
   18892 	 { ac_try='test -s conftest$ac_exeext'
   18893   { (case "(($ac_try" in
   18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18895   *) ac_try_echo=$ac_try;;
   18896 esac
   18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18898   (eval "$ac_try") 2>&5
   18899   ac_status=$?
   18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18901   (exit $ac_status); }; }; then
   18902   ac_cv_lib_gcc___fixsfdi=yes
   18903 else
   18904   echo "$as_me: failed program was:" >&5
   18905 sed 's/^/| /' conftest.$ac_ext >&5
   18906 
   18907 	ac_cv_lib_gcc___fixsfdi=no
   18908 fi
   18909 
   18910 rm -f core conftest.err conftest.$ac_objext \
   18911       conftest$ac_exeext conftest.$ac_ext
   18912 LIBS=$ac_check_lib_save_LIBS
   18913 fi
   18914 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
   18915 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
   18916 if test $ac_cv_lib_gcc___fixsfdi = yes; then
   18917 
   18918 cat >>confdefs.h <<\_ACEOF
   18919 #define HAVE___FIXSFDI 1
   18920 _ACEOF
   18921 
   18922 fi
   18923 
   18924   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
   18925 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
   18926 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
   18927   echo $ECHO_N "(cached) $ECHO_C" >&6
   18928 else
   18929   ac_check_lib_save_LIBS=$LIBS
   18930 LIBS="-lgcc  $LIBS"
   18931 cat >conftest.$ac_ext <<_ACEOF
   18932 /* confdefs.h.  */
   18933 _ACEOF
   18934 cat confdefs.h >>conftest.$ac_ext
   18935 cat >>conftest.$ac_ext <<_ACEOF
   18936 /* end confdefs.h.  */
   18937 
   18938 /* Override any GCC internal prototype to avoid an error.
   18939    Use char because int might match the return type of a GCC
   18940    builtin and then its argument prototype would still apply.  */
   18941 #ifdef __cplusplus
   18942 extern "C"
   18943 #endif
   18944 char __floatdidf ();
   18945 int
   18946 main ()
   18947 {
   18948 return __floatdidf ();
   18949   ;
   18950   return 0;
   18951 }
   18952 _ACEOF
   18953 rm -f conftest.$ac_objext conftest$ac_exeext
   18954 if { (ac_try="$ac_link"
   18955 case "(($ac_try" in
   18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18957   *) ac_try_echo=$ac_try;;
   18958 esac
   18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18960   (eval "$ac_link") 2>conftest.er1
   18961   ac_status=$?
   18962   grep -v '^ *+' conftest.er1 >conftest.err
   18963   rm -f conftest.er1
   18964   cat conftest.err >&5
   18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18966   (exit $ac_status); } &&
   18967 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   18968   { (case "(($ac_try" in
   18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18970   *) ac_try_echo=$ac_try;;
   18971 esac
   18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18973   (eval "$ac_try") 2>&5
   18974   ac_status=$?
   18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18976   (exit $ac_status); }; } &&
   18977 	 { ac_try='test -s conftest$ac_exeext'
   18978   { (case "(($ac_try" in
   18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18980   *) ac_try_echo=$ac_try;;
   18981 esac
   18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18983   (eval "$ac_try") 2>&5
   18984   ac_status=$?
   18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18986   (exit $ac_status); }; }; then
   18987   ac_cv_lib_gcc___floatdidf=yes
   18988 else
   18989   echo "$as_me: failed program was:" >&5
   18990 sed 's/^/| /' conftest.$ac_ext >&5
   18991 
   18992 	ac_cv_lib_gcc___floatdidf=no
   18993 fi
   18994 
   18995 rm -f core conftest.err conftest.$ac_objext \
   18996       conftest$ac_exeext conftest.$ac_ext
   18997 LIBS=$ac_check_lib_save_LIBS
   18998 fi
   18999 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
   19000 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
   19001 if test $ac_cv_lib_gcc___floatdidf = yes; then
   19002 
   19003 cat >>confdefs.h <<\_ACEOF
   19004 #define HAVE___FLOATDIDF 1
   19005 _ACEOF
   19006 
   19007 fi
   19008 
   19009   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
   19010 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
   19011 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
   19012   echo $ECHO_N "(cached) $ECHO_C" >&6
   19013 else
   19014   ac_check_lib_save_LIBS=$LIBS
   19015 LIBS="-lgcc  $LIBS"
   19016 cat >conftest.$ac_ext <<_ACEOF
   19017 /* confdefs.h.  */
   19018 _ACEOF
   19019 cat confdefs.h >>conftest.$ac_ext
   19020 cat >>conftest.$ac_ext <<_ACEOF
   19021 /* end confdefs.h.  */
   19022 
   19023 /* Override any GCC internal prototype to avoid an error.
   19024    Use char because int might match the return type of a GCC
   19025    builtin and then its argument prototype would still apply.  */
   19026 #ifdef __cplusplus
   19027 extern "C"
   19028 #endif
   19029 char __lshrdi3 ();
   19030 int
   19031 main ()
   19032 {
   19033 return __lshrdi3 ();
   19034   ;
   19035   return 0;
   19036 }
   19037 _ACEOF
   19038 rm -f conftest.$ac_objext conftest$ac_exeext
   19039 if { (ac_try="$ac_link"
   19040 case "(($ac_try" in
   19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19042   *) ac_try_echo=$ac_try;;
   19043 esac
   19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19045   (eval "$ac_link") 2>conftest.er1
   19046   ac_status=$?
   19047   grep -v '^ *+' conftest.er1 >conftest.err
   19048   rm -f conftest.er1
   19049   cat conftest.err >&5
   19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19051   (exit $ac_status); } &&
   19052 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19053   { (case "(($ac_try" in
   19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19055   *) ac_try_echo=$ac_try;;
   19056 esac
   19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19058   (eval "$ac_try") 2>&5
   19059   ac_status=$?
   19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19061   (exit $ac_status); }; } &&
   19062 	 { ac_try='test -s conftest$ac_exeext'
   19063   { (case "(($ac_try" in
   19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19065   *) ac_try_echo=$ac_try;;
   19066 esac
   19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19068   (eval "$ac_try") 2>&5
   19069   ac_status=$?
   19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19071   (exit $ac_status); }; }; then
   19072   ac_cv_lib_gcc___lshrdi3=yes
   19073 else
   19074   echo "$as_me: failed program was:" >&5
   19075 sed 's/^/| /' conftest.$ac_ext >&5
   19076 
   19077 	ac_cv_lib_gcc___lshrdi3=no
   19078 fi
   19079 
   19080 rm -f core conftest.err conftest.$ac_objext \
   19081       conftest$ac_exeext conftest.$ac_ext
   19082 LIBS=$ac_check_lib_save_LIBS
   19083 fi
   19084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
   19085 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
   19086 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
   19087 
   19088 cat >>confdefs.h <<\_ACEOF
   19089 #define HAVE___LSHRDI3 1
   19090 _ACEOF
   19091 
   19092 fi
   19093 
   19094   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
   19095 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
   19096 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
   19097   echo $ECHO_N "(cached) $ECHO_C" >&6
   19098 else
   19099   ac_check_lib_save_LIBS=$LIBS
   19100 LIBS="-lgcc  $LIBS"
   19101 cat >conftest.$ac_ext <<_ACEOF
   19102 /* confdefs.h.  */
   19103 _ACEOF
   19104 cat confdefs.h >>conftest.$ac_ext
   19105 cat >>conftest.$ac_ext <<_ACEOF
   19106 /* end confdefs.h.  */
   19107 
   19108 /* Override any GCC internal prototype to avoid an error.
   19109    Use char because int might match the return type of a GCC
   19110    builtin and then its argument prototype would still apply.  */
   19111 #ifdef __cplusplus
   19112 extern "C"
   19113 #endif
   19114 char __moddi3 ();
   19115 int
   19116 main ()
   19117 {
   19118 return __moddi3 ();
   19119   ;
   19120   return 0;
   19121 }
   19122 _ACEOF
   19123 rm -f conftest.$ac_objext conftest$ac_exeext
   19124 if { (ac_try="$ac_link"
   19125 case "(($ac_try" in
   19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19127   *) ac_try_echo=$ac_try;;
   19128 esac
   19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19130   (eval "$ac_link") 2>conftest.er1
   19131   ac_status=$?
   19132   grep -v '^ *+' conftest.er1 >conftest.err
   19133   rm -f conftest.er1
   19134   cat conftest.err >&5
   19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19136   (exit $ac_status); } &&
   19137 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19138   { (case "(($ac_try" in
   19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19140   *) ac_try_echo=$ac_try;;
   19141 esac
   19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19143   (eval "$ac_try") 2>&5
   19144   ac_status=$?
   19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19146   (exit $ac_status); }; } &&
   19147 	 { ac_try='test -s conftest$ac_exeext'
   19148   { (case "(($ac_try" in
   19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19150   *) ac_try_echo=$ac_try;;
   19151 esac
   19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19153   (eval "$ac_try") 2>&5
   19154   ac_status=$?
   19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19156   (exit $ac_status); }; }; then
   19157   ac_cv_lib_gcc___moddi3=yes
   19158 else
   19159   echo "$as_me: failed program was:" >&5
   19160 sed 's/^/| /' conftest.$ac_ext >&5
   19161 
   19162 	ac_cv_lib_gcc___moddi3=no
   19163 fi
   19164 
   19165 rm -f core conftest.err conftest.$ac_objext \
   19166       conftest$ac_exeext conftest.$ac_ext
   19167 LIBS=$ac_check_lib_save_LIBS
   19168 fi
   19169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
   19170 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
   19171 if test $ac_cv_lib_gcc___moddi3 = yes; then
   19172 
   19173 cat >>confdefs.h <<\_ACEOF
   19174 #define HAVE___MODDI3 1
   19175 _ACEOF
   19176 
   19177 fi
   19178 
   19179   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
   19180 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
   19181 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
   19182   echo $ECHO_N "(cached) $ECHO_C" >&6
   19183 else
   19184   ac_check_lib_save_LIBS=$LIBS
   19185 LIBS="-lgcc  $LIBS"
   19186 cat >conftest.$ac_ext <<_ACEOF
   19187 /* confdefs.h.  */
   19188 _ACEOF
   19189 cat confdefs.h >>conftest.$ac_ext
   19190 cat >>conftest.$ac_ext <<_ACEOF
   19191 /* end confdefs.h.  */
   19192 
   19193 /* Override any GCC internal prototype to avoid an error.
   19194    Use char because int might match the return type of a GCC
   19195    builtin and then its argument prototype would still apply.  */
   19196 #ifdef __cplusplus
   19197 extern "C"
   19198 #endif
   19199 char __udivdi3 ();
   19200 int
   19201 main ()
   19202 {
   19203 return __udivdi3 ();
   19204   ;
   19205   return 0;
   19206 }
   19207 _ACEOF
   19208 rm -f conftest.$ac_objext conftest$ac_exeext
   19209 if { (ac_try="$ac_link"
   19210 case "(($ac_try" in
   19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19212   *) ac_try_echo=$ac_try;;
   19213 esac
   19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19215   (eval "$ac_link") 2>conftest.er1
   19216   ac_status=$?
   19217   grep -v '^ *+' conftest.er1 >conftest.err
   19218   rm -f conftest.er1
   19219   cat conftest.err >&5
   19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19221   (exit $ac_status); } &&
   19222 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19223   { (case "(($ac_try" in
   19224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19225   *) ac_try_echo=$ac_try;;
   19226 esac
   19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19228   (eval "$ac_try") 2>&5
   19229   ac_status=$?
   19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19231   (exit $ac_status); }; } &&
   19232 	 { ac_try='test -s conftest$ac_exeext'
   19233   { (case "(($ac_try" in
   19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19235   *) ac_try_echo=$ac_try;;
   19236 esac
   19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19238   (eval "$ac_try") 2>&5
   19239   ac_status=$?
   19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19241   (exit $ac_status); }; }; then
   19242   ac_cv_lib_gcc___udivdi3=yes
   19243 else
   19244   echo "$as_me: failed program was:" >&5
   19245 sed 's/^/| /' conftest.$ac_ext >&5
   19246 
   19247 	ac_cv_lib_gcc___udivdi3=no
   19248 fi
   19249 
   19250 rm -f core conftest.err conftest.$ac_objext \
   19251       conftest$ac_exeext conftest.$ac_ext
   19252 LIBS=$ac_check_lib_save_LIBS
   19253 fi
   19254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
   19255 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
   19256 if test $ac_cv_lib_gcc___udivdi3 = yes; then
   19257 
   19258 cat >>confdefs.h <<\_ACEOF
   19259 #define HAVE___UDIVDI3 1
   19260 _ACEOF
   19261 
   19262 fi
   19263 
   19264   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
   19265 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
   19266 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
   19267   echo $ECHO_N "(cached) $ECHO_C" >&6
   19268 else
   19269   ac_check_lib_save_LIBS=$LIBS
   19270 LIBS="-lgcc  $LIBS"
   19271 cat >conftest.$ac_ext <<_ACEOF
   19272 /* confdefs.h.  */
   19273 _ACEOF
   19274 cat confdefs.h >>conftest.$ac_ext
   19275 cat >>conftest.$ac_ext <<_ACEOF
   19276 /* end confdefs.h.  */
   19277 
   19278 /* Override any GCC internal prototype to avoid an error.
   19279    Use char because int might match the return type of a GCC
   19280    builtin and then its argument prototype would still apply.  */
   19281 #ifdef __cplusplus
   19282 extern "C"
   19283 #endif
   19284 char __umoddi3 ();
   19285 int
   19286 main ()
   19287 {
   19288 return __umoddi3 ();
   19289   ;
   19290   return 0;
   19291 }
   19292 _ACEOF
   19293 rm -f conftest.$ac_objext conftest$ac_exeext
   19294 if { (ac_try="$ac_link"
   19295 case "(($ac_try" in
   19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19297   *) ac_try_echo=$ac_try;;
   19298 esac
   19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19300   (eval "$ac_link") 2>conftest.er1
   19301   ac_status=$?
   19302   grep -v '^ *+' conftest.er1 >conftest.err
   19303   rm -f conftest.er1
   19304   cat conftest.err >&5
   19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19306   (exit $ac_status); } &&
   19307 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19308   { (case "(($ac_try" in
   19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19310   *) ac_try_echo=$ac_try;;
   19311 esac
   19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19313   (eval "$ac_try") 2>&5
   19314   ac_status=$?
   19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19316   (exit $ac_status); }; } &&
   19317 	 { ac_try='test -s conftest$ac_exeext'
   19318   { (case "(($ac_try" in
   19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19320   *) ac_try_echo=$ac_try;;
   19321 esac
   19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19323   (eval "$ac_try") 2>&5
   19324   ac_status=$?
   19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19326   (exit $ac_status); }; }; then
   19327   ac_cv_lib_gcc___umoddi3=yes
   19328 else
   19329   echo "$as_me: failed program was:" >&5
   19330 sed 's/^/| /' conftest.$ac_ext >&5
   19331 
   19332 	ac_cv_lib_gcc___umoddi3=no
   19333 fi
   19334 
   19335 rm -f core conftest.err conftest.$ac_objext \
   19336       conftest$ac_exeext conftest.$ac_ext
   19337 LIBS=$ac_check_lib_save_LIBS
   19338 fi
   19339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
   19340 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
   19341 if test $ac_cv_lib_gcc___umoddi3 = yes; then
   19342 
   19343 cat >>confdefs.h <<\_ACEOF
   19344 #define HAVE___UMODDI3 1
   19345 _ACEOF
   19346 
   19347 fi
   19348 
   19349 
   19350   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
   19351 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
   19352 if test "${ac_cv_lib_gcc___main+set}" = set; then
   19353   echo $ECHO_N "(cached) $ECHO_C" >&6
   19354 else
   19355   ac_check_lib_save_LIBS=$LIBS
   19356 LIBS="-lgcc  $LIBS"
   19357 cat >conftest.$ac_ext <<_ACEOF
   19358 /* confdefs.h.  */
   19359 _ACEOF
   19360 cat confdefs.h >>conftest.$ac_ext
   19361 cat >>conftest.$ac_ext <<_ACEOF
   19362 /* end confdefs.h.  */
   19363 
   19364 /* Override any GCC internal prototype to avoid an error.
   19365    Use char because int might match the return type of a GCC
   19366    builtin and then its argument prototype would still apply.  */
   19367 #ifdef __cplusplus
   19368 extern "C"
   19369 #endif
   19370 char __main ();
   19371 int
   19372 main ()
   19373 {
   19374 return __main ();
   19375   ;
   19376   return 0;
   19377 }
   19378 _ACEOF
   19379 rm -f conftest.$ac_objext conftest$ac_exeext
   19380 if { (ac_try="$ac_link"
   19381 case "(($ac_try" in
   19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19383   *) ac_try_echo=$ac_try;;
   19384 esac
   19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19386   (eval "$ac_link") 2>conftest.er1
   19387   ac_status=$?
   19388   grep -v '^ *+' conftest.er1 >conftest.err
   19389   rm -f conftest.er1
   19390   cat conftest.err >&5
   19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19392   (exit $ac_status); } &&
   19393 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19394   { (case "(($ac_try" in
   19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19396   *) ac_try_echo=$ac_try;;
   19397 esac
   19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19399   (eval "$ac_try") 2>&5
   19400   ac_status=$?
   19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19402   (exit $ac_status); }; } &&
   19403 	 { ac_try='test -s conftest$ac_exeext'
   19404   { (case "(($ac_try" in
   19405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19406   *) ac_try_echo=$ac_try;;
   19407 esac
   19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19409   (eval "$ac_try") 2>&5
   19410   ac_status=$?
   19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19412   (exit $ac_status); }; }; then
   19413   ac_cv_lib_gcc___main=yes
   19414 else
   19415   echo "$as_me: failed program was:" >&5
   19416 sed 's/^/| /' conftest.$ac_ext >&5
   19417 
   19418 	ac_cv_lib_gcc___main=no
   19419 fi
   19420 
   19421 rm -f core conftest.err conftest.$ac_objext \
   19422       conftest$ac_exeext conftest.$ac_ext
   19423 LIBS=$ac_check_lib_save_LIBS
   19424 fi
   19425 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
   19426 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
   19427 if test $ac_cv_lib_gcc___main = yes; then
   19428 
   19429 cat >>confdefs.h <<\_ACEOF
   19430 #define HAVE___MAIN 1
   19431 _ACEOF
   19432 
   19433 fi
   19434 
   19435   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
   19436 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
   19437 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
   19438   echo $ECHO_N "(cached) $ECHO_C" >&6
   19439 else
   19440   ac_check_lib_save_LIBS=$LIBS
   19441 LIBS="-lgcc  $LIBS"
   19442 cat >conftest.$ac_ext <<_ACEOF
   19443 /* confdefs.h.  */
   19444 _ACEOF
   19445 cat confdefs.h >>conftest.$ac_ext
   19446 cat >>conftest.$ac_ext <<_ACEOF
   19447 /* end confdefs.h.  */
   19448 
   19449 /* Override any GCC internal prototype to avoid an error.
   19450    Use char because int might match the return type of a GCC
   19451    builtin and then its argument prototype would still apply.  */
   19452 #ifdef __cplusplus
   19453 extern "C"
   19454 #endif
   19455 char __cmpdi2 ();
   19456 int
   19457 main ()
   19458 {
   19459 return __cmpdi2 ();
   19460   ;
   19461   return 0;
   19462 }
   19463 _ACEOF
   19464 rm -f conftest.$ac_objext conftest$ac_exeext
   19465 if { (ac_try="$ac_link"
   19466 case "(($ac_try" in
   19467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19468   *) ac_try_echo=$ac_try;;
   19469 esac
   19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19471   (eval "$ac_link") 2>conftest.er1
   19472   ac_status=$?
   19473   grep -v '^ *+' conftest.er1 >conftest.err
   19474   rm -f conftest.er1
   19475   cat conftest.err >&5
   19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19477   (exit $ac_status); } &&
   19478 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19479   { (case "(($ac_try" in
   19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19481   *) ac_try_echo=$ac_try;;
   19482 esac
   19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19484   (eval "$ac_try") 2>&5
   19485   ac_status=$?
   19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19487   (exit $ac_status); }; } &&
   19488 	 { ac_try='test -s conftest$ac_exeext'
   19489   { (case "(($ac_try" in
   19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19491   *) ac_try_echo=$ac_try;;
   19492 esac
   19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19494   (eval "$ac_try") 2>&5
   19495   ac_status=$?
   19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19497   (exit $ac_status); }; }; then
   19498   ac_cv_lib_gcc___cmpdi2=yes
   19499 else
   19500   echo "$as_me: failed program was:" >&5
   19501 sed 's/^/| /' conftest.$ac_ext >&5
   19502 
   19503 	ac_cv_lib_gcc___cmpdi2=no
   19504 fi
   19505 
   19506 rm -f core conftest.err conftest.$ac_objext \
   19507       conftest$ac_exeext conftest.$ac_ext
   19508 LIBS=$ac_check_lib_save_LIBS
   19509 fi
   19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
   19511 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
   19512 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
   19513 
   19514 cat >>confdefs.h <<\_ACEOF
   19515 #define HAVE___CMPDI2 1
   19516 _ACEOF
   19517 
   19518 fi
   19519 
   19520 fi
   19521 
   19522 if test "$llvm_cv_os_type" = "MingW" ; then
   19523   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
   19524 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
   19525   cat >conftest.$ac_ext <<_ACEOF
   19526 #include <windows.h>
   19527 #include <imagehlp.h>
   19528 extern void foo(PENUMLOADED_MODULES_CALLBACK);
   19529 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
   19530 _ACEOF
   19531 rm -f conftest.$ac_objext
   19532 if { (ac_try="$ac_compile"
   19533 case "(($ac_try" in
   19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19535   *) ac_try_echo=$ac_try;;
   19536 esac
   19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19538   (eval "$ac_compile") 2>conftest.er1
   19539   ac_status=$?
   19540   grep -v '^ *+' conftest.er1 >conftest.err
   19541   rm -f conftest.er1
   19542   cat conftest.err >&5
   19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19544   (exit $ac_status); } &&
   19545 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   19546   { (case "(($ac_try" in
   19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19548   *) ac_try_echo=$ac_try;;
   19549 esac
   19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19551   (eval "$ac_try") 2>&5
   19552   ac_status=$?
   19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19554   (exit $ac_status); }; } &&
   19555 	 { ac_try='test -s conftest.$ac_objext'
   19556   { (case "(($ac_try" in
   19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19558   *) ac_try_echo=$ac_try;;
   19559 esac
   19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19561   (eval "$ac_try") 2>&5
   19562   ac_status=$?
   19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19564   (exit $ac_status); }; }; then
   19565 
   19566   { echo "$as_me:$LINENO: result: yes" >&5
   19567 echo "${ECHO_T}yes" >&6; }
   19568   llvm_cv_win32_elmcb_pcstr="PCSTR"
   19569 
   19570 else
   19571   echo "$as_me: failed program was:" >&5
   19572 sed 's/^/| /' conftest.$ac_ext >&5
   19573 
   19574 
   19575   { echo "$as_me:$LINENO: result: no" >&5
   19576 echo "${ECHO_T}no" >&6; }
   19577   llvm_cv_win32_elmcb_pcstr="PSTR"
   19578 
   19579 fi
   19580 
   19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19582 
   19583 cat >>confdefs.h <<_ACEOF
   19584 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
   19585 _ACEOF
   19586 
   19587 fi
   19588 
   19589 
   19590 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
   19591 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
   19592 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
   19593   echo $ECHO_N "(cached) $ECHO_C" >&6
   19594 else
   19595   ac_ext=cpp
   19596 ac_cpp='$CXXCPP $CPPFLAGS'
   19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19600 
   19601    cat >conftest.$ac_ext <<_ACEOF
   19602 /* confdefs.h.  */
   19603 _ACEOF
   19604 cat confdefs.h >>conftest.$ac_ext
   19605 cat >>conftest.$ac_ext <<_ACEOF
   19606 /* end confdefs.h.  */
   19607 #include <math.h>
   19608 int
   19609 main ()
   19610 {
   19611 float f; isnan(f);
   19612   ;
   19613   return 0;
   19614 }
   19615 _ACEOF
   19616 rm -f conftest.$ac_objext
   19617 if { (ac_try="$ac_compile"
   19618 case "(($ac_try" in
   19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19620   *) ac_try_echo=$ac_try;;
   19621 esac
   19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19623   (eval "$ac_compile") 2>conftest.er1
   19624   ac_status=$?
   19625   grep -v '^ *+' conftest.er1 >conftest.err
   19626   rm -f conftest.er1
   19627   cat conftest.err >&5
   19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19629   (exit $ac_status); } &&
   19630 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19631   { (case "(($ac_try" in
   19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19633   *) ac_try_echo=$ac_try;;
   19634 esac
   19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19636   (eval "$ac_try") 2>&5
   19637   ac_status=$?
   19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19639   (exit $ac_status); }; } &&
   19640 	 { ac_try='test -s conftest.$ac_objext'
   19641   { (case "(($ac_try" in
   19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19643   *) ac_try_echo=$ac_try;;
   19644 esac
   19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19646   (eval "$ac_try") 2>&5
   19647   ac_status=$?
   19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19649   (exit $ac_status); }; }; then
   19650   ac_cv_func_isnan_in_math_h=yes
   19651 else
   19652   echo "$as_me: failed program was:" >&5
   19653 sed 's/^/| /' conftest.$ac_ext >&5
   19654 
   19655 	ac_cv_func_isnan_in_math_h=no
   19656 fi
   19657 
   19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19659   ac_ext=c
   19660 ac_cpp='$CPP $CPPFLAGS'
   19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19664 
   19665 fi
   19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
   19667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
   19668 
   19669 
   19670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
   19671 
   19672 cat >>confdefs.h <<\_ACEOF
   19673 #define HAVE_ISNAN_IN_MATH_H 1
   19674 _ACEOF
   19675 
   19676 fi
   19677 
   19678 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
   19679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
   19680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
   19681   echo $ECHO_N "(cached) $ECHO_C" >&6
   19682 else
   19683   ac_ext=cpp
   19684 ac_cpp='$CXXCPP $CPPFLAGS'
   19685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19688 
   19689    cat >conftest.$ac_ext <<_ACEOF
   19690 /* confdefs.h.  */
   19691 _ACEOF
   19692 cat confdefs.h >>conftest.$ac_ext
   19693 cat >>conftest.$ac_ext <<_ACEOF
   19694 /* end confdefs.h.  */
   19695 #include <cmath>
   19696 int
   19697 main ()
   19698 {
   19699 float f; isnan(f);
   19700   ;
   19701   return 0;
   19702 }
   19703 _ACEOF
   19704 rm -f conftest.$ac_objext
   19705 if { (ac_try="$ac_compile"
   19706 case "(($ac_try" in
   19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19708   *) ac_try_echo=$ac_try;;
   19709 esac
   19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19711   (eval "$ac_compile") 2>conftest.er1
   19712   ac_status=$?
   19713   grep -v '^ *+' conftest.er1 >conftest.err
   19714   rm -f conftest.er1
   19715   cat conftest.err >&5
   19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19717   (exit $ac_status); } &&
   19718 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19719   { (case "(($ac_try" in
   19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19721   *) ac_try_echo=$ac_try;;
   19722 esac
   19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19724   (eval "$ac_try") 2>&5
   19725   ac_status=$?
   19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19727   (exit $ac_status); }; } &&
   19728 	 { ac_try='test -s conftest.$ac_objext'
   19729   { (case "(($ac_try" in
   19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19731   *) ac_try_echo=$ac_try;;
   19732 esac
   19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19734   (eval "$ac_try") 2>&5
   19735   ac_status=$?
   19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19737   (exit $ac_status); }; }; then
   19738   ac_cv_func_isnan_in_cmath=yes
   19739 else
   19740   echo "$as_me: failed program was:" >&5
   19741 sed 's/^/| /' conftest.$ac_ext >&5
   19742 
   19743 	ac_cv_func_isnan_in_cmath=no
   19744 fi
   19745 
   19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19747   ac_ext=c
   19748 ac_cpp='$CPP $CPPFLAGS'
   19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19752 
   19753 fi
   19754 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
   19755 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
   19756 
   19757 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
   19758 
   19759 cat >>confdefs.h <<\_ACEOF
   19760 #define HAVE_ISNAN_IN_CMATH 1
   19761 _ACEOF
   19762 
   19763 fi
   19764 
   19765 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
   19766 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
   19767 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
   19768   echo $ECHO_N "(cached) $ECHO_C" >&6
   19769 else
   19770   ac_ext=cpp
   19771 ac_cpp='$CXXCPP $CPPFLAGS'
   19772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19775 
   19776    cat >conftest.$ac_ext <<_ACEOF
   19777 /* confdefs.h.  */
   19778 _ACEOF
   19779 cat confdefs.h >>conftest.$ac_ext
   19780 cat >>conftest.$ac_ext <<_ACEOF
   19781 /* end confdefs.h.  */
   19782 #include <cmath>
   19783 int
   19784 main ()
   19785 {
   19786 float f; std::isnan(f);
   19787   ;
   19788   return 0;
   19789 }
   19790 _ACEOF
   19791 rm -f conftest.$ac_objext
   19792 if { (ac_try="$ac_compile"
   19793 case "(($ac_try" in
   19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19795   *) ac_try_echo=$ac_try;;
   19796 esac
   19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19798   (eval "$ac_compile") 2>conftest.er1
   19799   ac_status=$?
   19800   grep -v '^ *+' conftest.er1 >conftest.err
   19801   rm -f conftest.er1
   19802   cat conftest.err >&5
   19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19804   (exit $ac_status); } &&
   19805 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19806   { (case "(($ac_try" in
   19807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19808   *) ac_try_echo=$ac_try;;
   19809 esac
   19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19811   (eval "$ac_try") 2>&5
   19812   ac_status=$?
   19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19814   (exit $ac_status); }; } &&
   19815 	 { ac_try='test -s conftest.$ac_objext'
   19816   { (case "(($ac_try" in
   19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19818   *) ac_try_echo=$ac_try;;
   19819 esac
   19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19821   (eval "$ac_try") 2>&5
   19822   ac_status=$?
   19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19824   (exit $ac_status); }; }; then
   19825   ac_cv_func_std_isnan_in_cmath=yes
   19826 else
   19827   echo "$as_me: failed program was:" >&5
   19828 sed 's/^/| /' conftest.$ac_ext >&5
   19829 
   19830 	ac_cv_func_std_isnan_in_cmath=no
   19831 fi
   19832 
   19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19834   ac_ext=c
   19835 ac_cpp='$CPP $CPPFLAGS'
   19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19839 
   19840 fi
   19841 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
   19842 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
   19843 
   19844 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
   19845 
   19846 cat >>confdefs.h <<\_ACEOF
   19847 #define HAVE_STD_ISNAN_IN_CMATH 1
   19848 _ACEOF
   19849 
   19850 fi
   19851 
   19852 
   19853 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
   19854 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
   19855 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
   19856   echo $ECHO_N "(cached) $ECHO_C" >&6
   19857 else
   19858   ac_ext=cpp
   19859 ac_cpp='$CXXCPP $CPPFLAGS'
   19860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19863 
   19864    cat >conftest.$ac_ext <<_ACEOF
   19865 /* confdefs.h.  */
   19866 _ACEOF
   19867 cat confdefs.h >>conftest.$ac_ext
   19868 cat >>conftest.$ac_ext <<_ACEOF
   19869 /* end confdefs.h.  */
   19870 #include <math.h>
   19871 int
   19872 main ()
   19873 {
   19874 float f; isinf(f);
   19875   ;
   19876   return 0;
   19877 }
   19878 _ACEOF
   19879 rm -f conftest.$ac_objext
   19880 if { (ac_try="$ac_compile"
   19881 case "(($ac_try" in
   19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19883   *) ac_try_echo=$ac_try;;
   19884 esac
   19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19886   (eval "$ac_compile") 2>conftest.er1
   19887   ac_status=$?
   19888   grep -v '^ *+' conftest.er1 >conftest.err
   19889   rm -f conftest.er1
   19890   cat conftest.err >&5
   19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19892   (exit $ac_status); } &&
   19893 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19894   { (case "(($ac_try" in
   19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19896   *) ac_try_echo=$ac_try;;
   19897 esac
   19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19899   (eval "$ac_try") 2>&5
   19900   ac_status=$?
   19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19902   (exit $ac_status); }; } &&
   19903 	 { ac_try='test -s conftest.$ac_objext'
   19904   { (case "(($ac_try" in
   19905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19906   *) ac_try_echo=$ac_try;;
   19907 esac
   19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19909   (eval "$ac_try") 2>&5
   19910   ac_status=$?
   19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19912   (exit $ac_status); }; }; then
   19913   ac_cv_func_isinf_in_math_h=yes
   19914 else
   19915   echo "$as_me: failed program was:" >&5
   19916 sed 's/^/| /' conftest.$ac_ext >&5
   19917 
   19918 	ac_cv_func_isinf_in_math_h=no
   19919 fi
   19920 
   19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19922   ac_ext=c
   19923 ac_cpp='$CPP $CPPFLAGS'
   19924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19927 
   19928 fi
   19929 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
   19930 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
   19931 
   19932 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
   19933 
   19934 cat >>confdefs.h <<\_ACEOF
   19935 #define HAVE_ISINF_IN_MATH_H 1
   19936 _ACEOF
   19937 
   19938 fi
   19939 
   19940 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
   19941 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
   19942 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
   19943   echo $ECHO_N "(cached) $ECHO_C" >&6
   19944 else
   19945   ac_ext=cpp
   19946 ac_cpp='$CXXCPP $CPPFLAGS'
   19947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   19950 
   19951    cat >conftest.$ac_ext <<_ACEOF
   19952 /* confdefs.h.  */
   19953 _ACEOF
   19954 cat confdefs.h >>conftest.$ac_ext
   19955 cat >>conftest.$ac_ext <<_ACEOF
   19956 /* end confdefs.h.  */
   19957 #include <cmath>
   19958 int
   19959 main ()
   19960 {
   19961 float f; isinf(f);
   19962   ;
   19963   return 0;
   19964 }
   19965 _ACEOF
   19966 rm -f conftest.$ac_objext
   19967 if { (ac_try="$ac_compile"
   19968 case "(($ac_try" in
   19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19970   *) ac_try_echo=$ac_try;;
   19971 esac
   19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19973   (eval "$ac_compile") 2>conftest.er1
   19974   ac_status=$?
   19975   grep -v '^ *+' conftest.er1 >conftest.err
   19976   rm -f conftest.er1
   19977   cat conftest.err >&5
   19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19979   (exit $ac_status); } &&
   19980 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   19981   { (case "(($ac_try" in
   19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19983   *) ac_try_echo=$ac_try;;
   19984 esac
   19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19986   (eval "$ac_try") 2>&5
   19987   ac_status=$?
   19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19989   (exit $ac_status); }; } &&
   19990 	 { ac_try='test -s conftest.$ac_objext'
   19991   { (case "(($ac_try" in
   19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19993   *) ac_try_echo=$ac_try;;
   19994 esac
   19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19996   (eval "$ac_try") 2>&5
   19997   ac_status=$?
   19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19999   (exit $ac_status); }; }; then
   20000   ac_cv_func_isinf_in_cmath=yes
   20001 else
   20002   echo "$as_me: failed program was:" >&5
   20003 sed 's/^/| /' conftest.$ac_ext >&5
   20004 
   20005 	ac_cv_func_isinf_in_cmath=no
   20006 fi
   20007 
   20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20009   ac_ext=c
   20010 ac_cpp='$CPP $CPPFLAGS'
   20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20014 
   20015 fi
   20016 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
   20017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
   20018 
   20019 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
   20020 
   20021 cat >>confdefs.h <<\_ACEOF
   20022 #define HAVE_ISINF_IN_CMATH 1
   20023 _ACEOF
   20024 
   20025 fi
   20026 
   20027 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
   20028 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
   20029 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
   20030   echo $ECHO_N "(cached) $ECHO_C" >&6
   20031 else
   20032   ac_ext=cpp
   20033 ac_cpp='$CXXCPP $CPPFLAGS'
   20034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20037 
   20038    cat >conftest.$ac_ext <<_ACEOF
   20039 /* confdefs.h.  */
   20040 _ACEOF
   20041 cat confdefs.h >>conftest.$ac_ext
   20042 cat >>conftest.$ac_ext <<_ACEOF
   20043 /* end confdefs.h.  */
   20044 #include <cmath>
   20045 int
   20046 main ()
   20047 {
   20048 float f; std::isinf(f);
   20049   ;
   20050   return 0;
   20051 }
   20052 _ACEOF
   20053 rm -f conftest.$ac_objext
   20054 if { (ac_try="$ac_compile"
   20055 case "(($ac_try" in
   20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20057   *) ac_try_echo=$ac_try;;
   20058 esac
   20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20060   (eval "$ac_compile") 2>conftest.er1
   20061   ac_status=$?
   20062   grep -v '^ *+' conftest.er1 >conftest.err
   20063   rm -f conftest.er1
   20064   cat conftest.err >&5
   20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20066   (exit $ac_status); } &&
   20067 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   20068   { (case "(($ac_try" in
   20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20070   *) ac_try_echo=$ac_try;;
   20071 esac
   20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20073   (eval "$ac_try") 2>&5
   20074   ac_status=$?
   20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20076   (exit $ac_status); }; } &&
   20077 	 { ac_try='test -s conftest.$ac_objext'
   20078   { (case "(($ac_try" in
   20079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20080   *) ac_try_echo=$ac_try;;
   20081 esac
   20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20083   (eval "$ac_try") 2>&5
   20084   ac_status=$?
   20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20086   (exit $ac_status); }; }; then
   20087   ac_cv_func_std_isinf_in_cmath=yes
   20088 else
   20089   echo "$as_me: failed program was:" >&5
   20090 sed 's/^/| /' conftest.$ac_ext >&5
   20091 
   20092 	ac_cv_func_std_isinf_in_cmath=no
   20093 fi
   20094 
   20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20096   ac_ext=c
   20097 ac_cpp='$CPP $CPPFLAGS'
   20098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20101 
   20102 fi
   20103 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
   20104 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
   20105 
   20106 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
   20107 
   20108 cat >>confdefs.h <<\_ACEOF
   20109 #define HAVE_STD_ISINF_IN_CMATH 1
   20110 _ACEOF
   20111 
   20112 fi
   20113 
   20114 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
   20115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
   20116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
   20117   echo $ECHO_N "(cached) $ECHO_C" >&6
   20118 else
   20119   ac_ext=cpp
   20120 ac_cpp='$CXXCPP $CPPFLAGS'
   20121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20124 
   20125    cat >conftest.$ac_ext <<_ACEOF
   20126 /* confdefs.h.  */
   20127 _ACEOF
   20128 cat confdefs.h >>conftest.$ac_ext
   20129 cat >>conftest.$ac_ext <<_ACEOF
   20130 /* end confdefs.h.  */
   20131 #include <ieeefp.h>
   20132 int
   20133 main ()
   20134 {
   20135 float f; finite(f);
   20136   ;
   20137   return 0;
   20138 }
   20139 _ACEOF
   20140 rm -f conftest.$ac_objext
   20141 if { (ac_try="$ac_compile"
   20142 case "(($ac_try" in
   20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20144   *) ac_try_echo=$ac_try;;
   20145 esac
   20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20147   (eval "$ac_compile") 2>conftest.er1
   20148   ac_status=$?
   20149   grep -v '^ *+' conftest.er1 >conftest.err
   20150   rm -f conftest.er1
   20151   cat conftest.err >&5
   20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20153   (exit $ac_status); } &&
   20154 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   20155   { (case "(($ac_try" in
   20156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20157   *) ac_try_echo=$ac_try;;
   20158 esac
   20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20160   (eval "$ac_try") 2>&5
   20161   ac_status=$?
   20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20163   (exit $ac_status); }; } &&
   20164 	 { ac_try='test -s conftest.$ac_objext'
   20165   { (case "(($ac_try" in
   20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20167   *) ac_try_echo=$ac_try;;
   20168 esac
   20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20170   (eval "$ac_try") 2>&5
   20171   ac_status=$?
   20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20173   (exit $ac_status); }; }; then
   20174   ac_cv_func_finite_in_ieeefp_h=yes
   20175 else
   20176   echo "$as_me: failed program was:" >&5
   20177 sed 's/^/| /' conftest.$ac_ext >&5
   20178 
   20179 	ac_cv_func_finite_in_ieeefp_h=no
   20180 fi
   20181 
   20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20183   ac_ext=c
   20184 ac_cpp='$CPP $CPPFLAGS'
   20185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20188 
   20189 fi
   20190 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
   20191 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
   20192 
   20193 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
   20194 
   20195 cat >>confdefs.h <<\_ACEOF
   20196 #define HAVE_FINITE_IN_IEEEFP_H 1
   20197 _ACEOF
   20198 
   20199 fi
   20200 
   20201 
   20202 
   20203 if test "$llvm_cv_platform_type" = "Unix" ; then
   20204 
   20205 
   20206 for ac_header in stdlib.h unistd.h
   20207 do
   20208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20210   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20213   echo $ECHO_N "(cached) $ECHO_C" >&6
   20214 fi
   20215 ac_res=`eval echo '${'$as_ac_Header'}'`
   20216 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20217 echo "${ECHO_T}$ac_res" >&6; }
   20218 else
   20219   # Is the header compilable?
   20220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   20222 cat >conftest.$ac_ext <<_ACEOF
   20223 /* confdefs.h.  */
   20224 _ACEOF
   20225 cat confdefs.h >>conftest.$ac_ext
   20226 cat >>conftest.$ac_ext <<_ACEOF
   20227 /* end confdefs.h.  */
   20228 $ac_includes_default
   20229 #include <$ac_header>
   20230 _ACEOF
   20231 rm -f conftest.$ac_objext
   20232 if { (ac_try="$ac_compile"
   20233 case "(($ac_try" in
   20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20235   *) ac_try_echo=$ac_try;;
   20236 esac
   20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20238   (eval "$ac_compile") 2>conftest.er1
   20239   ac_status=$?
   20240   grep -v '^ *+' conftest.er1 >conftest.err
   20241   rm -f conftest.er1
   20242   cat conftest.err >&5
   20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20244   (exit $ac_status); } &&
   20245 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20246   { (case "(($ac_try" in
   20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20248   *) ac_try_echo=$ac_try;;
   20249 esac
   20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20251   (eval "$ac_try") 2>&5
   20252   ac_status=$?
   20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20254   (exit $ac_status); }; } &&
   20255 	 { ac_try='test -s conftest.$ac_objext'
   20256   { (case "(($ac_try" in
   20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20258   *) ac_try_echo=$ac_try;;
   20259 esac
   20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20261   (eval "$ac_try") 2>&5
   20262   ac_status=$?
   20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20264   (exit $ac_status); }; }; then
   20265   ac_header_compiler=yes
   20266 else
   20267   echo "$as_me: failed program was:" >&5
   20268 sed 's/^/| /' conftest.$ac_ext >&5
   20269 
   20270 	ac_header_compiler=no
   20271 fi
   20272 
   20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20275 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20276 
   20277 # Is the header present?
   20278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   20280 cat >conftest.$ac_ext <<_ACEOF
   20281 /* confdefs.h.  */
   20282 _ACEOF
   20283 cat confdefs.h >>conftest.$ac_ext
   20284 cat >>conftest.$ac_ext <<_ACEOF
   20285 /* end confdefs.h.  */
   20286 #include <$ac_header>
   20287 _ACEOF
   20288 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20289 case "(($ac_try" in
   20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20291   *) ac_try_echo=$ac_try;;
   20292 esac
   20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20295   ac_status=$?
   20296   grep -v '^ *+' conftest.er1 >conftest.err
   20297   rm -f conftest.er1
   20298   cat conftest.err >&5
   20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20300   (exit $ac_status); } >/dev/null; then
   20301   if test -s conftest.err; then
   20302     ac_cpp_err=$ac_c_preproc_warn_flag
   20303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   20304   else
   20305     ac_cpp_err=
   20306   fi
   20307 else
   20308   ac_cpp_err=yes
   20309 fi
   20310 if test -z "$ac_cpp_err"; then
   20311   ac_header_preproc=yes
   20312 else
   20313   echo "$as_me: failed program was:" >&5
   20314 sed 's/^/| /' conftest.$ac_ext >&5
   20315 
   20316   ac_header_preproc=no
   20317 fi
   20318 
   20319 rm -f conftest.err conftest.$ac_ext
   20320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20321 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20322 
   20323 # So?  What about this header?
   20324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20325   yes:no: )
   20326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20330     ac_header_preproc=yes
   20331     ;;
   20332   no:yes:* )
   20333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   20337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   20338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   20339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   20340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   20341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   20342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   20343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   20344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   20345     ( cat <<\_ASBOX
   20346 ## ------------------------------------ ##
   20347 ## Report this to http://llvm.org/bugs/ ##
   20348 ## ------------------------------------ ##
   20349 _ASBOX
   20350      ) | sed "s/^/$as_me: WARNING:     /" >&2
   20351     ;;
   20352 esac
   20353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20356   echo $ECHO_N "(cached) $ECHO_C" >&6
   20357 else
   20358   eval "$as_ac_Header=\$ac_header_preproc"
   20359 fi
   20360 ac_res=`eval echo '${'$as_ac_Header'}'`
   20361 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20362 echo "${ECHO_T}$ac_res" >&6; }
   20363 
   20364 fi
   20365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   20366   cat >>confdefs.h <<_ACEOF
   20367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20368 _ACEOF
   20369 
   20370 fi
   20371 
   20372 done
   20373 
   20374 
   20375 for ac_func in getpagesize
   20376 do
   20377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20381   echo $ECHO_N "(cached) $ECHO_C" >&6
   20382 else
   20383   cat >conftest.$ac_ext <<_ACEOF
   20384 /* confdefs.h.  */
   20385 _ACEOF
   20386 cat confdefs.h >>conftest.$ac_ext
   20387 cat >>conftest.$ac_ext <<_ACEOF
   20388 /* end confdefs.h.  */
   20389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20391 #define $ac_func innocuous_$ac_func
   20392 
   20393 /* System header to define __stub macros and hopefully few prototypes,
   20394     which can conflict with char $ac_func (); below.
   20395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20396     <limits.h> exists even on freestanding compilers.  */
   20397 
   20398 #ifdef __STDC__
   20399 # include <limits.h>
   20400 #else
   20401 # include <assert.h>
   20402 #endif
   20403 
   20404 #undef $ac_func
   20405 
   20406 /* Override any GCC internal prototype to avoid an error.
   20407    Use char because int might match the return type of a GCC
   20408    builtin and then its argument prototype would still apply.  */
   20409 #ifdef __cplusplus
   20410 extern "C"
   20411 #endif
   20412 char $ac_func ();
   20413 /* The GNU C library defines this for functions which it implements
   20414     to always fail with ENOSYS.  Some functions are actually named
   20415     something starting with __ and the normal name is an alias.  */
   20416 #if defined __stub_$ac_func || defined __stub___$ac_func
   20417 choke me
   20418 #endif
   20419 
   20420 int
   20421 main ()
   20422 {
   20423 return $ac_func ();
   20424   ;
   20425   return 0;
   20426 }
   20427 _ACEOF
   20428 rm -f conftest.$ac_objext conftest$ac_exeext
   20429 if { (ac_try="$ac_link"
   20430 case "(($ac_try" in
   20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20432   *) ac_try_echo=$ac_try;;
   20433 esac
   20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20435   (eval "$ac_link") 2>conftest.er1
   20436   ac_status=$?
   20437   grep -v '^ *+' conftest.er1 >conftest.err
   20438   rm -f conftest.er1
   20439   cat conftest.err >&5
   20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20441   (exit $ac_status); } &&
   20442 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20443   { (case "(($ac_try" in
   20444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20445   *) ac_try_echo=$ac_try;;
   20446 esac
   20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20448   (eval "$ac_try") 2>&5
   20449   ac_status=$?
   20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20451   (exit $ac_status); }; } &&
   20452 	 { ac_try='test -s conftest$ac_exeext'
   20453   { (case "(($ac_try" in
   20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20455   *) ac_try_echo=$ac_try;;
   20456 esac
   20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20458   (eval "$ac_try") 2>&5
   20459   ac_status=$?
   20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20461   (exit $ac_status); }; }; then
   20462   eval "$as_ac_var=yes"
   20463 else
   20464   echo "$as_me: failed program was:" >&5
   20465 sed 's/^/| /' conftest.$ac_ext >&5
   20466 
   20467 	eval "$as_ac_var=no"
   20468 fi
   20469 
   20470 rm -f core conftest.err conftest.$ac_objext \
   20471       conftest$ac_exeext conftest.$ac_ext
   20472 fi
   20473 ac_res=`eval echo '${'$as_ac_var'}'`
   20474 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20475 echo "${ECHO_T}$ac_res" >&6; }
   20476 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20477   cat >>confdefs.h <<_ACEOF
   20478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20479 _ACEOF
   20480 
   20481 fi
   20482 done
   20483 
   20484 { echo "$as_me:$LINENO: checking for working mmap" >&5
   20485 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
   20486 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   20487   echo $ECHO_N "(cached) $ECHO_C" >&6
   20488 else
   20489   if test "$cross_compiling" = yes; then
   20490   ac_cv_func_mmap_fixed_mapped=no
   20491 else
   20492   cat >conftest.$ac_ext <<_ACEOF
   20493 /* confdefs.h.  */
   20494 _ACEOF
   20495 cat confdefs.h >>conftest.$ac_ext
   20496 cat >>conftest.$ac_ext <<_ACEOF
   20497 /* end confdefs.h.  */
   20498 $ac_includes_default
   20499 /* malloc might have been renamed as rpl_malloc. */
   20500 #undef malloc
   20501 
   20502 /* Thanks to Mike Haertel and Jim Avera for this test.
   20503    Here is a matrix of mmap possibilities:
   20504 	mmap private not fixed
   20505 	mmap private fixed at somewhere currently unmapped
   20506 	mmap private fixed at somewhere already mapped
   20507 	mmap shared not fixed
   20508 	mmap shared fixed at somewhere currently unmapped
   20509 	mmap shared fixed at somewhere already mapped
   20510    For private mappings, we should verify that changes cannot be read()
   20511    back from the file, nor mmap's back from the file at a different
   20512    address.  (There have been systems where private was not correctly
   20513    implemented like the infamous i386 svr4.0, and systems where the
   20514    VM page cache was not coherent with the file system buffer cache
   20515    like early versions of FreeBSD and possibly contemporary NetBSD.)
   20516    For shared mappings, we should conversely verify that changes get
   20517    propagated back to all the places they're supposed to be.
   20518 
   20519    Grep wants private fixed already mapped.
   20520    The main things grep needs to know about mmap are:
   20521    * does it exist and is it safe to write into the mmap'd area
   20522    * how to use it (BSD variants)  */
   20523 
   20524 #include <fcntl.h>
   20525 #include <sys/mman.h>
   20526 
   20527 #if !STDC_HEADERS && !HAVE_STDLIB_H
   20528 char *malloc ();
   20529 #endif
   20530 
   20531 /* This mess was copied from the GNU getpagesize.h.  */
   20532 #if !HAVE_GETPAGESIZE
   20533 /* Assume that all systems that can run configure have sys/param.h.  */
   20534 # if !HAVE_SYS_PARAM_H
   20535 #  define HAVE_SYS_PARAM_H 1
   20536 # endif
   20537 
   20538 # ifdef _SC_PAGESIZE
   20539 #  define getpagesize() sysconf(_SC_PAGESIZE)
   20540 # else /* no _SC_PAGESIZE */
   20541 #  if HAVE_SYS_PARAM_H
   20542 #   include <sys/param.h>
   20543 #   ifdef EXEC_PAGESIZE
   20544 #    define getpagesize() EXEC_PAGESIZE
   20545 #   else /* no EXEC_PAGESIZE */
   20546 #    ifdef NBPG
   20547 #     define getpagesize() NBPG * CLSIZE
   20548 #     ifndef CLSIZE
   20549 #      define CLSIZE 1
   20550 #     endif /* no CLSIZE */
   20551 #    else /* no NBPG */
   20552 #     ifdef NBPC
   20553 #      define getpagesize() NBPC
   20554 #     else /* no NBPC */
   20555 #      ifdef PAGESIZE
   20556 #       define getpagesize() PAGESIZE
   20557 #      endif /* PAGESIZE */
   20558 #     endif /* no NBPC */
   20559 #    endif /* no NBPG */
   20560 #   endif /* no EXEC_PAGESIZE */
   20561 #  else /* no HAVE_SYS_PARAM_H */
   20562 #   define getpagesize() 8192	/* punt totally */
   20563 #  endif /* no HAVE_SYS_PARAM_H */
   20564 # endif /* no _SC_PAGESIZE */
   20565 
   20566 #endif /* no HAVE_GETPAGESIZE */
   20567 
   20568 int
   20569 main ()
   20570 {
   20571   char *data, *data2, *data3;
   20572   int i, pagesize;
   20573   int fd;
   20574 
   20575   pagesize = getpagesize ();
   20576 
   20577   /* First, make a file with some known garbage in it. */
   20578   data = (char *) malloc (pagesize);
   20579   if (!data)
   20580     return 1;
   20581   for (i = 0; i < pagesize; ++i)
   20582     *(data + i) = rand ();
   20583   umask (0);
   20584   fd = creat ("conftest.mmap", 0600);
   20585   if (fd < 0)
   20586     return 1;
   20587   if (write (fd, data, pagesize) != pagesize)
   20588     return 1;
   20589   close (fd);
   20590 
   20591   /* Next, try to mmap the file at a fixed address which already has
   20592      something else allocated at it.  If we can, also make sure that
   20593      we see the same garbage.  */
   20594   fd = open ("conftest.mmap", O_RDWR);
   20595   if (fd < 0)
   20596     return 1;
   20597   data2 = (char *) malloc (2 * pagesize);
   20598   if (!data2)
   20599     return 1;
   20600   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   20601   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   20602 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   20603     return 1;
   20604   for (i = 0; i < pagesize; ++i)
   20605     if (*(data + i) != *(data2 + i))
   20606       return 1;
   20607 
   20608   /* Finally, make sure that changes to the mapped area do not
   20609      percolate back to the file as seen by read().  (This is a bug on
   20610      some variants of i386 svr4.0.)  */
   20611   for (i = 0; i < pagesize; ++i)
   20612     *(data2 + i) = *(data2 + i) + 1;
   20613   data3 = (char *) malloc (pagesize);
   20614   if (!data3)
   20615     return 1;
   20616   if (read (fd, data3, pagesize) != pagesize)
   20617     return 1;
   20618   for (i = 0; i < pagesize; ++i)
   20619     if (*(data + i) != *(data3 + i))
   20620       return 1;
   20621   close (fd);
   20622   return 0;
   20623 }
   20624 _ACEOF
   20625 rm -f conftest$ac_exeext
   20626 if { (ac_try="$ac_link"
   20627 case "(($ac_try" in
   20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20629   *) ac_try_echo=$ac_try;;
   20630 esac
   20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20632   (eval "$ac_link") 2>&5
   20633   ac_status=$?
   20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20636   { (case "(($ac_try" in
   20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20638   *) ac_try_echo=$ac_try;;
   20639 esac
   20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20641   (eval "$ac_try") 2>&5
   20642   ac_status=$?
   20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20644   (exit $ac_status); }; }; then
   20645   ac_cv_func_mmap_fixed_mapped=yes
   20646 else
   20647   echo "$as_me: program exited with status $ac_status" >&5
   20648 echo "$as_me: failed program was:" >&5
   20649 sed 's/^/| /' conftest.$ac_ext >&5
   20650 
   20651 ( exit $ac_status )
   20652 ac_cv_func_mmap_fixed_mapped=no
   20653 fi
   20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20655 fi
   20656 
   20657 
   20658 fi
   20659 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   20660 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
   20661 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   20662 
   20663 cat >>confdefs.h <<\_ACEOF
   20664 #define HAVE_MMAP 1
   20665 _ACEOF
   20666 
   20667 fi
   20668 rm -f conftest.mmap
   20669 
   20670   { echo "$as_me:$LINENO: checking for mmap of files" >&5
   20671 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
   20672 if test "${ac_cv_func_mmap_file+set}" = set; then
   20673   echo $ECHO_N "(cached) $ECHO_C" >&6
   20674 else
   20675    ac_ext=c
   20676 ac_cpp='$CPP $CPPFLAGS'
   20677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20680 
   20681   if test "$cross_compiling" = yes; then
   20682   ac_cv_func_mmap_file=no
   20683 else
   20684   cat >conftest.$ac_ext <<_ACEOF
   20685 
   20686     /* confdefs.h.  */
   20687 _ACEOF
   20688 cat confdefs.h >>conftest.$ac_ext
   20689 cat >>conftest.$ac_ext <<_ACEOF
   20690 /* end confdefs.h.  */
   20691 
   20692 #include <sys/types.h>
   20693 #include <sys/mman.h>
   20694 #include <fcntl.h>
   20695 
   20696 int
   20697 main ()
   20698 {
   20699 
   20700   int fd;
   20701   fd = creat ("foo",0777);
   20702   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
   20703   unlink ("foo");
   20704   return (fd != (int) MAP_FAILED);
   20705   ;
   20706   return 0;
   20707 }
   20708 _ACEOF
   20709 rm -f conftest$ac_exeext
   20710 if { (ac_try="$ac_link"
   20711 case "(($ac_try" in
   20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20713   *) ac_try_echo=$ac_try;;
   20714 esac
   20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20716   (eval "$ac_link") 2>&5
   20717   ac_status=$?
   20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20720   { (case "(($ac_try" in
   20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20722   *) ac_try_echo=$ac_try;;
   20723 esac
   20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20725   (eval "$ac_try") 2>&5
   20726   ac_status=$?
   20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20728   (exit $ac_status); }; }; then
   20729   ac_cv_func_mmap_file=yes
   20730 else
   20731   echo "$as_me: program exited with status $ac_status" >&5
   20732 echo "$as_me: failed program was:" >&5
   20733 sed 's/^/| /' conftest.$ac_ext >&5
   20734 
   20735 ( exit $ac_status )
   20736 ac_cv_func_mmap_file=no
   20737 fi
   20738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20739 fi
   20740 
   20741 
   20742   ac_ext=c
   20743 ac_cpp='$CPP $CPPFLAGS'
   20744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20747 
   20748 
   20749 fi
   20750 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
   20751 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
   20752 if test "$ac_cv_func_mmap_file" = yes; then
   20753 
   20754 cat >>confdefs.h <<\_ACEOF
   20755 #define HAVE_MMAP_FILE
   20756 _ACEOF
   20757 
   20758    MMAP_FILE=yes
   20759 
   20760 fi
   20761 
   20762   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
   20763 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
   20764 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
   20765   echo $ECHO_N "(cached) $ECHO_C" >&6
   20766 else
   20767   if test "$llvm_cv_os_type" = "Interix" ; then
   20768    ac_cv_need_dev_zero_for_mmap=yes
   20769  else
   20770    ac_cv_need_dev_zero_for_mmap=no
   20771  fi
   20772 
   20773 fi
   20774 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
   20775 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
   20776 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
   20777 
   20778 cat >>confdefs.h <<\_ACEOF
   20779 #define NEED_DEV_ZERO_FOR_MMAP 1
   20780 _ACEOF
   20781 
   20782 fi
   20783 
   20784   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
   20785   then
   20786     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
   20787 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
   20788   fi
   20789   if test "$ac_cv_func_mmap_file" = "no"
   20790   then
   20791     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
   20792 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
   20793   fi
   20794 fi
   20795 
   20796 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
   20797 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
   20798 ac_ext=cpp
   20799 ac_cpp='$CXXCPP $CPPFLAGS'
   20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   20803 
   20804 cat >conftest.$ac_ext <<_ACEOF
   20805 /* confdefs.h.  */
   20806 _ACEOF
   20807 cat confdefs.h >>conftest.$ac_ext
   20808 cat >>conftest.$ac_ext <<_ACEOF
   20809 /* end confdefs.h.  */
   20810 int main() {
   20811         volatile unsigned long val = 1;
   20812         __sync_synchronize();
   20813         __sync_val_compare_and_swap(&val, 1, 0);
   20814         __sync_add_and_fetch(&val, 1);
   20815         __sync_sub_and_fetch(&val, 1);
   20816         return 0;
   20817       }
   20818 
   20819 _ACEOF
   20820 rm -f conftest.$ac_objext conftest$ac_exeext
   20821 if { (ac_try="$ac_link"
   20822 case "(($ac_try" in
   20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20824   *) ac_try_echo=$ac_try;;
   20825 esac
   20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20827   (eval "$ac_link") 2>conftest.er1
   20828   ac_status=$?
   20829   grep -v '^ *+' conftest.er1 >conftest.err
   20830   rm -f conftest.er1
   20831   cat conftest.err >&5
   20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20833   (exit $ac_status); } &&
   20834 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20835   { (case "(($ac_try" in
   20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20837   *) ac_try_echo=$ac_try;;
   20838 esac
   20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20840   (eval "$ac_try") 2>&5
   20841   ac_status=$?
   20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20843   (exit $ac_status); }; } &&
   20844 	 { ac_try='test -s conftest$ac_exeext'
   20845   { (case "(($ac_try" in
   20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20847   *) ac_try_echo=$ac_try;;
   20848 esac
   20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20850   (eval "$ac_try") 2>&5
   20851   ac_status=$?
   20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20853   (exit $ac_status); }; }; then
   20854   ac_ext=c
   20855 ac_cpp='$CPP $CPPFLAGS'
   20856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20859 
   20860   { echo "$as_me:$LINENO: result: yes" >&5
   20861 echo "${ECHO_T}yes" >&6; }
   20862 
   20863 cat >>confdefs.h <<\_ACEOF
   20864 #define LLVM_HAS_ATOMICS 1
   20865 _ACEOF
   20866 
   20867 else
   20868   echo "$as_me: failed program was:" >&5
   20869 sed 's/^/| /' conftest.$ac_ext >&5
   20870 
   20871 	{ echo "$as_me:$LINENO: result: no" >&5
   20872 echo "${ECHO_T}no" >&6; }
   20873 
   20874 cat >>confdefs.h <<\_ACEOF
   20875 #define LLVM_HAS_ATOMICS 0
   20876 _ACEOF
   20877 
   20878   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
   20879 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
   20880 fi
   20881 
   20882 rm -f core conftest.err conftest.$ac_objext \
   20883       conftest$ac_exeext conftest.$ac_ext
   20884 
   20885 
   20886 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
   20887   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
   20888 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
   20889 if test "${llvm_cv_linux_mixed+set}" = set; then
   20890   echo $ECHO_N "(cached) $ECHO_C" >&6
   20891 else
   20892    ac_ext=c
   20893 ac_cpp='$CPP $CPPFLAGS'
   20894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20897 
   20898   cat >conftest.$ac_ext <<_ACEOF
   20899 /* confdefs.h.  */
   20900 _ACEOF
   20901 cat confdefs.h >>conftest.$ac_ext
   20902 cat >>conftest.$ac_ext <<_ACEOF
   20903 /* end confdefs.h.  */
   20904 #ifndef __x86_64__
   20905        error: Not x86-64 even if uname says so!
   20906       #endif
   20907 
   20908 int
   20909 main ()
   20910 {
   20911 
   20912   ;
   20913   return 0;
   20914 }
   20915 _ACEOF
   20916 rm -f conftest.$ac_objext
   20917 if { (ac_try="$ac_compile"
   20918 case "(($ac_try" in
   20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20920   *) ac_try_echo=$ac_try;;
   20921 esac
   20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20923   (eval "$ac_compile") 2>conftest.er1
   20924   ac_status=$?
   20925   grep -v '^ *+' conftest.er1 >conftest.err
   20926   rm -f conftest.er1
   20927   cat conftest.err >&5
   20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20929   (exit $ac_status); } &&
   20930 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   20931   { (case "(($ac_try" in
   20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20933   *) ac_try_echo=$ac_try;;
   20934 esac
   20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20936   (eval "$ac_try") 2>&5
   20937   ac_status=$?
   20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20939   (exit $ac_status); }; } &&
   20940 	 { ac_try='test -s conftest.$ac_objext'
   20941   { (case "(($ac_try" in
   20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20943   *) ac_try_echo=$ac_try;;
   20944 esac
   20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20946   (eval "$ac_try") 2>&5
   20947   ac_status=$?
   20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20949   (exit $ac_status); }; }; then
   20950   llvm_cv_linux_mixed=no
   20951 else
   20952   echo "$as_me: failed program was:" >&5
   20953 sed 's/^/| /' conftest.$ac_ext >&5
   20954 
   20955 	llvm_cv_linux_mixed=yes
   20956 fi
   20957 
   20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20959   ac_ext=c
   20960 ac_cpp='$CPP $CPPFLAGS'
   20961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20964 
   20965 
   20966 fi
   20967 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
   20968 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
   20969 
   20970   if test "$llvm_cv_linux_mixed" = "yes"; then
   20971     llvm_cv_target_arch="x86"
   20972     ARCH="x86"
   20973   fi
   20974 fi
   20975 
   20976 
   20977 for ac_func in __dso_handle
   20978 do
   20979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20983   echo $ECHO_N "(cached) $ECHO_C" >&6
   20984 else
   20985   cat >conftest.$ac_ext <<_ACEOF
   20986 /* confdefs.h.  */
   20987 _ACEOF
   20988 cat confdefs.h >>conftest.$ac_ext
   20989 cat >>conftest.$ac_ext <<_ACEOF
   20990 /* end confdefs.h.  */
   20991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20993 #define $ac_func innocuous_$ac_func
   20994 
   20995 /* System header to define __stub macros and hopefully few prototypes,
   20996     which can conflict with char $ac_func (); below.
   20997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20998     <limits.h> exists even on freestanding compilers.  */
   20999 
   21000 #ifdef __STDC__
   21001 # include <limits.h>
   21002 #else
   21003 # include <assert.h>
   21004 #endif
   21005 
   21006 #undef $ac_func
   21007 
   21008 /* Override any GCC internal prototype to avoid an error.
   21009    Use char because int might match the return type of a GCC
   21010    builtin and then its argument prototype would still apply.  */
   21011 #ifdef __cplusplus
   21012 extern "C"
   21013 #endif
   21014 char $ac_func ();
   21015 /* The GNU C library defines this for functions which it implements
   21016     to always fail with ENOSYS.  Some functions are actually named
   21017     something starting with __ and the normal name is an alias.  */
   21018 #if defined __stub_$ac_func || defined __stub___$ac_func
   21019 choke me
   21020 #endif
   21021 
   21022 int
   21023 main ()
   21024 {
   21025 return $ac_func ();
   21026   ;
   21027   return 0;
   21028 }
   21029 _ACEOF
   21030 rm -f conftest.$ac_objext conftest$ac_exeext
   21031 if { (ac_try="$ac_link"
   21032 case "(($ac_try" in
   21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21034   *) ac_try_echo=$ac_try;;
   21035 esac
   21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21037   (eval "$ac_link") 2>conftest.er1
   21038   ac_status=$?
   21039   grep -v '^ *+' conftest.er1 >conftest.err
   21040   rm -f conftest.er1
   21041   cat conftest.err >&5
   21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21043   (exit $ac_status); } &&
   21044 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   21045   { (case "(($ac_try" in
   21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21047   *) ac_try_echo=$ac_try;;
   21048 esac
   21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21050   (eval "$ac_try") 2>&5
   21051   ac_status=$?
   21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21053   (exit $ac_status); }; } &&
   21054 	 { ac_try='test -s conftest$ac_exeext'
   21055   { (case "(($ac_try" in
   21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21057   *) ac_try_echo=$ac_try;;
   21058 esac
   21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21060   (eval "$ac_try") 2>&5
   21061   ac_status=$?
   21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21063   (exit $ac_status); }; }; then
   21064   eval "$as_ac_var=yes"
   21065 else
   21066   echo "$as_me: failed program was:" >&5
   21067 sed 's/^/| /' conftest.$ac_ext >&5
   21068 
   21069 	eval "$as_ac_var=no"
   21070 fi
   21071 
   21072 rm -f core conftest.err conftest.$ac_objext \
   21073       conftest$ac_exeext conftest.$ac_ext
   21074 fi
   21075 ac_res=`eval echo '${'$as_ac_var'}'`
   21076 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21077 echo "${ECHO_T}$ac_res" >&6; }
   21078 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21079   cat >>confdefs.h <<_ACEOF
   21080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21081 _ACEOF
   21082 
   21083 fi
   21084 done
   21085 
   21086 
   21087 SHLIBEXT=$libltdl_cv_shlibext
   21088 
   21089 
   21090 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
   21091 
   21092 
   21093 if test "${prefix}" = "NONE" ; then
   21094   prefix="/usr/local"
   21095 fi
   21096 eval LLVM_PREFIX="${prefix}";
   21097 eval LLVM_BINDIR="${prefix}/bin";
   21098 eval LLVM_LIBDIR="${prefix}/lib";
   21099 eval LLVM_DATADIR="${prefix}/share/llvm";
   21100 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
   21101 eval LLVM_ETCDIR="${prefix}/etc/llvm";
   21102 eval LLVM_INCLUDEDIR="${prefix}/include";
   21103 eval LLVM_INFODIR="${prefix}/info";
   21104 eval LLVM_MANDIR="${prefix}/man";
   21105 LLVM_CONFIGTIME=`date`
   21106 
   21107 
   21108 
   21109 
   21110 
   21111 
   21112 
   21113 
   21114 
   21115 
   21116 
   21117 if test "${ENABLE_TIMESTAMPS}" = "0"; then
   21118   LLVM_CONFIGTIME="(timestamp not enabled)"
   21119 fi
   21120 
   21121 
   21122 cat >>confdefs.h <<_ACEOF
   21123 #define LLVM_PREFIX "$LLVM_PREFIX"
   21124 _ACEOF
   21125 
   21126 
   21127 cat >>confdefs.h <<_ACEOF
   21128 #define LLVM_BINDIR "$LLVM_BINDIR"
   21129 _ACEOF
   21130 
   21131 
   21132 cat >>confdefs.h <<_ACEOF
   21133 #define LLVM_LIBDIR "$LLVM_LIBDIR"
   21134 _ACEOF
   21135 
   21136 
   21137 cat >>confdefs.h <<_ACEOF
   21138 #define LLVM_DATADIR "$LLVM_DATADIR"
   21139 _ACEOF
   21140 
   21141 
   21142 cat >>confdefs.h <<_ACEOF
   21143 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
   21144 _ACEOF
   21145 
   21146 
   21147 cat >>confdefs.h <<_ACEOF
   21148 #define LLVM_ETCDIR "$LLVM_ETCDIR"
   21149 _ACEOF
   21150 
   21151 
   21152 cat >>confdefs.h <<_ACEOF
   21153 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
   21154 _ACEOF
   21155 
   21156 
   21157 cat >>confdefs.h <<_ACEOF
   21158 #define LLVM_INFODIR "$LLVM_INFODIR"
   21159 _ACEOF
   21160 
   21161 
   21162 cat >>confdefs.h <<_ACEOF
   21163 #define LLVM_MANDIR "$LLVM_MANDIR"
   21164 _ACEOF
   21165 
   21166 
   21167 cat >>confdefs.h <<_ACEOF
   21168 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
   21169 _ACEOF
   21170 
   21171 
   21172 cat >>confdefs.h <<_ACEOF
   21173 #define LLVM_HOSTTRIPLE "$host"
   21174 _ACEOF
   21175 
   21176 
   21177 cat >>confdefs.h <<_ACEOF
   21178 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
   21179 _ACEOF
   21180 
   21181 
   21182 if test "$BINDINGS_TO_BUILD" = auto ; then
   21183   BINDINGS_TO_BUILD=""
   21184   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
   21185     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
   21186   fi
   21187 fi
   21188 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
   21189 
   21190 
   21191 ALL_BINDINGS=ocaml
   21192 
   21193 
   21194 binding_prereqs_failed=0
   21195 for a_binding in $BINDINGS_TO_BUILD ; do
   21196   case "$a_binding" in
   21197   ocaml)
   21198     if test "x$OCAMLC" = x ; then
   21199       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
   21200 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
   21201       binding_prereqs_failed=1
   21202     fi
   21203     if test "x$OCAMLDEP" = x ; then
   21204       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
   21205 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
   21206       binding_prereqs_failed=1
   21207     fi
   21208     if test "x$OCAMLOPT" = x ; then
   21209       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
   21210 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
   21211           fi
   21212     if test "x$with_ocaml_libdir" != xauto ; then
   21213       OCAML_LIBDIR=$with_ocaml_libdir
   21214 
   21215     else
   21216       ocaml_stdlib="`"$OCAMLC" -where`"
   21217       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
   21218       then
   21219         # ocaml stdlib is beneath our prefix; use stdlib
   21220         OCAML_LIBDIR=$ocaml_stdlib
   21221 
   21222       else
   21223         # ocaml stdlib is outside our prefix; use libdir/ocaml
   21224         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
   21225 
   21226       fi
   21227     fi
   21228     ;;
   21229   esac
   21230 done
   21231 if test "$binding_prereqs_failed" = 1 ; then
   21232   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
   21233 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
   21234    { (exit 1); exit 1; }; }
   21235 fi
   21236 
   21237 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
   21238 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
   21239 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
   21240   echo $ECHO_N "(cached) $ECHO_C" >&6
   21241 else
   21242    ac_ext=cpp
   21243 ac_cpp='$CXXCPP $CPPFLAGS'
   21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   21247 
   21248   oldcxxflags="$CXXFLAGS"
   21249   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
   21250   cat >conftest.$ac_ext <<_ACEOF
   21251 /* confdefs.h.  */
   21252 _ACEOF
   21253 cat confdefs.h >>conftest.$ac_ext
   21254 cat >>conftest.$ac_ext <<_ACEOF
   21255 /* end confdefs.h.  */
   21256 template <typename T> struct X { void __attribute__((noinline)) f() {} };
   21257 int
   21258 main ()
   21259 {
   21260 X<int>().f();
   21261   ;
   21262   return 0;
   21263 }
   21264 _ACEOF
   21265 rm -f conftest.$ac_objext
   21266 if { (ac_try="$ac_compile"
   21267 case "(($ac_try" in
   21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21269   *) ac_try_echo=$ac_try;;
   21270 esac
   21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21272   (eval "$ac_compile") 2>conftest.er1
   21273   ac_status=$?
   21274   grep -v '^ *+' conftest.er1 >conftest.err
   21275   rm -f conftest.er1
   21276   cat conftest.err >&5
   21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21278   (exit $ac_status); } &&
   21279 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   21280   { (case "(($ac_try" in
   21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21282   *) ac_try_echo=$ac_try;;
   21283 esac
   21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21285   (eval "$ac_try") 2>&5
   21286   ac_status=$?
   21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21288   (exit $ac_status); }; } &&
   21289 	 { ac_try='test -s conftest.$ac_objext'
   21290   { (case "(($ac_try" in
   21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21292   *) ac_try_echo=$ac_try;;
   21293 esac
   21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21295   (eval "$ac_try") 2>&5
   21296   ac_status=$?
   21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21298   (exit $ac_status); }; }; then
   21299   llvm_cv_cxx_visibility_inlines_hidden=yes
   21300 else
   21301   echo "$as_me: failed program was:" >&5
   21302 sed 's/^/| /' conftest.$ac_ext >&5
   21303 
   21304 	llvm_cv_cxx_visibility_inlines_hidden=no
   21305 fi
   21306 
   21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21308   CXXFLAGS="$oldcxxflags"
   21309   ac_ext=c
   21310 ac_cpp='$CPP $CPPFLAGS'
   21311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   21312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   21313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   21314 
   21315 
   21316 fi
   21317 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
   21318 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
   21319 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
   21320   ENABLE_VISIBILITY_INLINES_HIDDEN=1
   21321 
   21322 else
   21323   ENABLE_VISIBILITY_INLINES_HIDDEN=0
   21324 
   21325 fi
   21326 
   21327 
   21328 if test "$llvm_cv_link_use_r" = "yes" ; then
   21329   RPATH="-Wl,-R"
   21330 else
   21331   RPATH="-Wl,-rpath"
   21332 fi
   21333 
   21334 
   21335 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
   21336   RDYNAMIC="-Wl,-export-dynamic"
   21337 else
   21338   RDYNAMIC=""
   21339 fi
   21340 
   21341 
   21342 
   21343 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
   21344 
   21345 
   21346 
   21347 
   21348 
   21349 
   21350 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
   21351 
   21352 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
   21353 
   21354 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
   21355 
   21356 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
   21357 
   21358 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
   21359 
   21360 
   21361 ac_config_files="$ac_config_files Makefile.config"
   21362 
   21363 
   21364 ac_config_files="$ac_config_files llvm.spec"
   21365 
   21366 
   21367 ac_config_files="$ac_config_files docs/doxygen.cfg"
   21368 
   21369 
   21370 if test "${clang_src_root}" = ""; then
   21371   clang_src_root="$srcdir/tools/clang"
   21372 fi
   21373 if test -f ${clang_src_root}/README.txt; then
   21374     configh="include/clang/Config/config.h"
   21375   doxy="docs/doxygen.cfg"
   21376   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
   21377 
   21378   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
   21379 
   21380 fi
   21381 
   21382 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
   21383 
   21384 
   21385 ac_config_commands="$ac_config_commands setup"
   21386 
   21387 ac_config_commands="$ac_config_commands Makefile"
   21388 
   21389 
   21390 ac_config_commands="$ac_config_commands Makefile.common"
   21391 
   21392 
   21393 ac_config_commands="$ac_config_commands examples/Makefile"
   21394 
   21395 
   21396 ac_config_commands="$ac_config_commands lib/Makefile"
   21397 
   21398 
   21399 ac_config_commands="$ac_config_commands runtime/Makefile"
   21400 
   21401 
   21402 ac_config_commands="$ac_config_commands test/Makefile"
   21403 
   21404 
   21405 ac_config_commands="$ac_config_commands test/Makefile.tests"
   21406 
   21407 
   21408 ac_config_commands="$ac_config_commands unittests/Makefile"
   21409 
   21410 
   21411 ac_config_commands="$ac_config_commands tools/Makefile"
   21412 
   21413 
   21414 ac_config_commands="$ac_config_commands utils/Makefile"
   21415 
   21416 
   21417 ac_config_commands="$ac_config_commands projects/Makefile"
   21418 
   21419 
   21420 ac_config_commands="$ac_config_commands bindings/Makefile"
   21421 
   21422 
   21423 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
   21424 
   21425 
   21426 
   21427 cat >confcache <<\_ACEOF
   21428 # This file is a shell script that caches the results of configure
   21429 # tests run on this system so they can be shared between configure
   21430 # scripts and configure runs, see configure's option --config-cache.
   21431 # It is not useful on other systems.  If it contains results you don't
   21432 # want to keep, you may remove or edit it.
   21433 #
   21434 # config.status only pays attention to the cache file if you give it
   21435 # the --recheck option to rerun configure.
   21436 #
   21437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   21438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   21439 # following values.
   21440 
   21441 _ACEOF
   21442 
   21443 # The following way of writing the cache mishandles newlines in values,
   21444 # but we know of no workaround that is simple, portable, and efficient.
   21445 # So, we kill variables containing newlines.
   21446 # Ultrix sh set writes to stderr and can't be redirected directly,
   21447 # and sets the high bit in the cache file unless we assign to the vars.
   21448 (
   21449   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   21450     eval ac_val=\$$ac_var
   21451     case $ac_val in #(
   21452     *${as_nl}*)
   21453       case $ac_var in #(
   21454       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   21455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   21456       esac
   21457       case $ac_var in #(
   21458       _ | IFS | as_nl) ;; #(
   21459       *) $as_unset $ac_var ;;
   21460       esac ;;
   21461     esac
   21462   done
   21463 
   21464   (set) 2>&1 |
   21465     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   21466     *${as_nl}ac_space=\ *)
   21467       # `set' does not quote correctly, so add quotes (double-quote
   21468       # substitution turns \\\\ into \\, and sed turns \\ into \).
   21469       sed -n \
   21470 	"s/'/'\\\\''/g;
   21471 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   21472       ;; #(
   21473     *)
   21474       # `set' quotes correctly as required by POSIX, so do not add quotes.
   21475       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   21476       ;;
   21477     esac |
   21478     sort
   21479 ) |
   21480   sed '
   21481      /^ac_cv_env_/b end
   21482      t clear
   21483      :clear
   21484      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   21485      t end
   21486      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   21487      :end' >>confcache
   21488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   21489   if test -w "$cache_file"; then
   21490     test "x$cache_file" != "x/dev/null" &&
   21491       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   21492 echo "$as_me: updating cache $cache_file" >&6;}
   21493     cat confcache >$cache_file
   21494   else
   21495     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   21496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   21497   fi
   21498 fi
   21499 rm -f confcache
   21500 
   21501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   21502 # Let make expand exec_prefix.
   21503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   21504 
   21505 DEFS=-DHAVE_CONFIG_H
   21506 
   21507 ac_libobjs=
   21508 ac_ltlibobjs=
   21509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21510   # 1. Remove the extension, and $U if already installed.
   21511   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21512   ac_i=`echo "$ac_i" | sed "$ac_script"`
   21513   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21514   #    will be set to the directory where LIBOBJS objects are built.
   21515   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21516   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   21517 done
   21518 LIBOBJS=$ac_libobjs
   21519 
   21520 LTLIBOBJS=$ac_ltlibobjs
   21521 
   21522 
   21523 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
   21524   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
   21525 Usually this means the macro was only invoked conditionally." >&5
   21526 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
   21527 Usually this means the macro was only invoked conditionally." >&2;}
   21528    { (exit 1); exit 1; }; }
   21529 fi
   21530 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
   21531   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21532 Usually this means the macro was only invoked conditionally." >&5
   21533 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   21534 Usually this means the macro was only invoked conditionally." >&2;}
   21535    { (exit 1); exit 1; }; }
   21536 fi
   21537 
   21538 : ${CONFIG_STATUS=./config.status}
   21539 ac_clean_files_save=$ac_clean_files
   21540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21541 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   21542 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21543 cat >$CONFIG_STATUS <<_ACEOF
   21544 #! $SHELL
   21545 # Generated by $as_me.
   21546 # Run this file to recreate the current configuration.
   21547 # Compiler output produced by configure, useful for debugging
   21548 # configure, is in config.log if it exists.
   21549 
   21550 debug=false
   21551 ac_cs_recheck=false
   21552 ac_cs_silent=false
   21553 SHELL=\${CONFIG_SHELL-$SHELL}
   21554 _ACEOF
   21555 
   21556 cat >>$CONFIG_STATUS <<\_ACEOF
   21557 ## --------------------- ##
   21558 ## M4sh Initialization.  ##
   21559 ## --------------------- ##
   21560 
   21561 # Be Bourne compatible
   21562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   21563   emulate sh
   21564   NULLCMD=:
   21565   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   21566   # is contrary to our usage.  Disable this feature.
   21567   alias -g '${1+"$@"}'='"$@"'
   21568   setopt NO_GLOB_SUBST
   21569 else
   21570   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
   21571 fi
   21572 BIN_SH=xpg4; export BIN_SH # for Tru64
   21573 DUALCASE=1; export DUALCASE # for MKS sh
   21574 
   21575 
   21576 # PATH needs CR
   21577 # Avoid depending upon Character Ranges.
   21578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21581 as_cr_digits='0123456789'
   21582 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21583 
   21584 # The user is always right.
   21585 if test "${PATH_SEPARATOR+set}" != set; then
   21586   echo "#! /bin/sh" >conf$$.sh
   21587   echo  "exit 0"   >>conf$$.sh
   21588   chmod +x conf$$.sh
   21589   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   21590     PATH_SEPARATOR=';'
   21591   else
   21592     PATH_SEPARATOR=:
   21593   fi
   21594   rm -f conf$$.sh
   21595 fi
   21596 
   21597 # Support unset when possible.
   21598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   21599   as_unset=unset
   21600 else
   21601   as_unset=false
   21602 fi
   21603 
   21604 
   21605 # IFS
   21606 # We need space, tab and new line, in precisely that order.  Quoting is
   21607 # there to prevent editors from complaining about space-tab.
   21608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21609 # splitting by setting IFS to empty value.)
   21610 as_nl='
   21611 '
   21612 IFS=" ""	$as_nl"
   21613 
   21614 # Find who we are.  Look in the path if we contain no directory separator.
   21615 case $0 in
   21616   *[\\/]* ) as_myself=$0 ;;
   21617   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21618 for as_dir in $PATH
   21619 do
   21620   IFS=$as_save_IFS
   21621   test -z "$as_dir" && as_dir=.
   21622   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21623 done
   21624 IFS=$as_save_IFS
   21625 
   21626      ;;
   21627 esac
   21628 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21629 # in which case we are not to be found in the path.
   21630 if test "x$as_myself" = x; then
   21631   as_myself=$0
   21632 fi
   21633 if test ! -f "$as_myself"; then
   21634   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21635   { (exit 1); exit 1; }
   21636 fi
   21637 
   21638 # Work around bugs in pre-3.0 UWIN ksh.
   21639 for as_var in ENV MAIL MAILPATH
   21640 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21641 done
   21642 PS1='$ '
   21643 PS2='> '
   21644 PS4='+ '
   21645 
   21646 # NLS nuisances.
   21647 for as_var in \
   21648   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   21649   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   21650   LC_TELEPHONE LC_TIME
   21651 do
   21652   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   21653     eval $as_var=C; export $as_var
   21654   else
   21655     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   21656   fi
   21657 done
   21658 
   21659 # Required to use basename.
   21660 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21661    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21662   as_expr=expr
   21663 else
   21664   as_expr=false
   21665 fi
   21666 
   21667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21668   as_basename=basename
   21669 else
   21670   as_basename=false
   21671 fi
   21672 
   21673 
   21674 # Name of the executable.
   21675 as_me=`$as_basename -- "$0" ||
   21676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21677 	 X"$0" : 'X\(//\)$' \| \
   21678 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21679 echo X/"$0" |
   21680     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21681 	    s//\1/
   21682 	    q
   21683 	  }
   21684 	  /^X\/\(\/\/\)$/{
   21685 	    s//\1/
   21686 	    q
   21687 	  }
   21688 	  /^X\/\(\/\).*/{
   21689 	    s//\1/
   21690 	    q
   21691 	  }
   21692 	  s/.*/./; q'`
   21693 
   21694 # CDPATH.
   21695 $as_unset CDPATH
   21696 
   21697 
   21698 
   21699   as_lineno_1=$LINENO
   21700   as_lineno_2=$LINENO
   21701   test "x$as_lineno_1" != "x$as_lineno_2" &&
   21702   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   21703 
   21704   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   21705   # uniformly replaced by the line number.  The first 'sed' inserts a
   21706   # line-number line after each line using $LINENO; the second 'sed'
   21707   # does the real work.  The second script uses 'N' to pair each
   21708   # line-number line with the line containing $LINENO, and appends
   21709   # trailing '-' during substitution so that $LINENO is not a special
   21710   # case at line end.
   21711   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   21712   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   21713   # E. McMahon (1931-1989) for sed's syntax.  :-)
   21714   sed -n '
   21715     p
   21716     /[$]LINENO/=
   21717   ' <$as_myself |
   21718     sed '
   21719       s/[$]LINENO.*/&-/
   21720       t lineno
   21721       b
   21722       :lineno
   21723       N
   21724       :loop
   21725       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   21726       t loop
   21727       s/-\n.*//
   21728     ' >$as_me.lineno &&
   21729   chmod +x "$as_me.lineno" ||
   21730     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   21731    { (exit 1); exit 1; }; }
   21732 
   21733   # Don't try to exec as it changes $[0], causing all sort of problems
   21734   # (the dirname of $[0] is not the place where we might find the
   21735   # original and so on.  Autoconf is especially sensitive to this).
   21736   . "./$as_me.lineno"
   21737   # Exit status is that of the last command.
   21738   exit
   21739 }
   21740 
   21741 
   21742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21743   as_dirname=dirname
   21744 else
   21745   as_dirname=false
   21746 fi
   21747 
   21748 ECHO_C= ECHO_N= ECHO_T=
   21749 case `echo -n x` in
   21750 -n*)
   21751   case `echo 'x\c'` in
   21752   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21753   *)   ECHO_C='\c';;
   21754   esac;;
   21755 *)
   21756   ECHO_N='-n';;
   21757 esac
   21758 
   21759 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21760    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21761   as_expr=expr
   21762 else
   21763   as_expr=false
   21764 fi
   21765 
   21766 rm -f conf$$ conf$$.exe conf$$.file
   21767 if test -d conf$$.dir; then
   21768   rm -f conf$$.dir/conf$$.file
   21769 else
   21770   rm -f conf$$.dir
   21771   mkdir conf$$.dir
   21772 fi
   21773 echo >conf$$.file
   21774 if ln -s conf$$.file conf$$ 2>/dev/null; then
   21775   as_ln_s='ln -s'
   21776   # ... but there are two gotchas:
   21777   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21778   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21779   # In both cases, we have to default to `cp -p'.
   21780   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21781     as_ln_s='cp -p'
   21782 elif ln conf$$.file conf$$ 2>/dev/null; then
   21783   as_ln_s=ln
   21784 else
   21785   as_ln_s='cp -p'
   21786 fi
   21787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21788 rmdir conf$$.dir 2>/dev/null
   21789 
   21790 if mkdir -p . 2>/dev/null; then
   21791   as_mkdir_p=:
   21792 else
   21793   test -d ./-p && rmdir ./-p
   21794   as_mkdir_p=false
   21795 fi
   21796 
   21797 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
   21798 # systems may use methods other than mode bits to determine executability.
   21799 cat >conf$$.file <<_ASEOF
   21800 #! /bin/sh
   21801 exit 0
   21802 _ASEOF
   21803 chmod +x conf$$.file
   21804 if test -x conf$$.file >/dev/null 2>&1; then
   21805   as_executable_p="test -x"
   21806 else
   21807   as_executable_p=:
   21808 fi
   21809 rm -f conf$$.file
   21810 
   21811 # Sed expression to map a string onto a valid CPP name.
   21812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21813 
   21814 # Sed expression to map a string onto a valid variable name.
   21815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21816 
   21817 
   21818 exec 6>&1
   21819 
   21820 # Save the log message, to keep $[0] and so on meaningful, and to
   21821 # report actual input values of CONFIG_FILES etc. instead of their
   21822 # values after options handling.
   21823 ac_log="
   21824 This file was extended by LLVM $as_me 3.2svn, which was
   21825 generated by GNU Autoconf 2.60.  Invocation command line was
   21826 
   21827   CONFIG_FILES    = $CONFIG_FILES
   21828   CONFIG_HEADERS  = $CONFIG_HEADERS
   21829   CONFIG_LINKS    = $CONFIG_LINKS
   21830   CONFIG_COMMANDS = $CONFIG_COMMANDS
   21831   $ $0 $@
   21832 
   21833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   21834 "
   21835 
   21836 _ACEOF
   21837 
   21838 cat >>$CONFIG_STATUS <<_ACEOF
   21839 # Files that config.status was made for.
   21840 config_files="$ac_config_files"
   21841 config_headers="$ac_config_headers"
   21842 config_commands="$ac_config_commands"
   21843 
   21844 _ACEOF
   21845 
   21846 cat >>$CONFIG_STATUS <<\_ACEOF
   21847 ac_cs_usage="\
   21848 \`$as_me' instantiates files from templates according to the
   21849 current configuration.
   21850 
   21851 Usage: $0 [OPTIONS] [FILE]...
   21852 
   21853   -h, --help       print this help, then exit
   21854   -V, --version    print version number, then exit
   21855   -q, --quiet      do not print progress messages
   21856   -d, --debug      don't remove temporary files
   21857       --recheck    update $as_me by reconfiguring in the same conditions
   21858   --file=FILE[:TEMPLATE]
   21859 		   instantiate the configuration file FILE
   21860   --header=FILE[:TEMPLATE]
   21861 		   instantiate the configuration header FILE
   21862 
   21863 Configuration files:
   21864 $config_files
   21865 
   21866 Configuration headers:
   21867 $config_headers
   21868 
   21869 Configuration commands:
   21870 $config_commands
   21871 
   21872 Report bugs to <bug-autoconf@gnu.org>."
   21873 
   21874 _ACEOF
   21875 cat >>$CONFIG_STATUS <<_ACEOF
   21876 ac_cs_version="\\
   21877 LLVM config.status 3.2svn
   21878 configured by $0, generated by GNU Autoconf 2.60,
   21879   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   21880 
   21881 Copyright (C) 2006 Free Software Foundation, Inc.
   21882 This config.status script is free software; the Free Software Foundation
   21883 gives unlimited permission to copy, distribute and modify it."
   21884 
   21885 ac_pwd='$ac_pwd'
   21886 srcdir='$srcdir'
   21887 INSTALL='$INSTALL'
   21888 _ACEOF
   21889 
   21890 cat >>$CONFIG_STATUS <<\_ACEOF
   21891 # If no file are specified by the user, then we need to provide default
   21892 # value.  By we need to know if files were specified by the user.
   21893 ac_need_defaults=:
   21894 while test $# != 0
   21895 do
   21896   case $1 in
   21897   --*=*)
   21898     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21899     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   21900     ac_shift=:
   21901     ;;
   21902   *)
   21903     ac_option=$1
   21904     ac_optarg=$2
   21905     ac_shift=shift
   21906     ;;
   21907   esac
   21908 
   21909   case $ac_option in
   21910   # Handling of the options.
   21911   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   21912     ac_cs_recheck=: ;;
   21913   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   21914     echo "$ac_cs_version"; exit ;;
   21915   --debug | --debu | --deb | --de | --d | -d )
   21916     debug=: ;;
   21917   --file | --fil | --fi | --f )
   21918     $ac_shift
   21919     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   21920     ac_need_defaults=false;;
   21921   --header | --heade | --head | --hea )
   21922     $ac_shift
   21923     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   21924     ac_need_defaults=false;;
   21925   --he | --h)
   21926     # Conflict between --help and --header
   21927     { echo "$as_me: error: ambiguous option: $1
   21928 Try \`$0 --help' for more information." >&2
   21929    { (exit 1); exit 1; }; };;
   21930   --help | --hel | -h )
   21931     echo "$ac_cs_usage"; exit ;;
   21932   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   21933   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   21934     ac_cs_silent=: ;;
   21935 
   21936   # This is an error.
   21937   -*) { echo "$as_me: error: unrecognized option: $1
   21938 Try \`$0 --help' for more information." >&2
   21939    { (exit 1); exit 1; }; } ;;
   21940 
   21941   *) ac_config_targets="$ac_config_targets $1"
   21942      ac_need_defaults=false ;;
   21943 
   21944   esac
   21945   shift
   21946 done
   21947 
   21948 ac_configure_extra_args=
   21949 
   21950 if $ac_cs_silent; then
   21951   exec 6>/dev/null
   21952   ac_configure_extra_args="$ac_configure_extra_args --silent"
   21953 fi
   21954 
   21955 _ACEOF
   21956 cat >>$CONFIG_STATUS <<_ACEOF
   21957 if \$ac_cs_recheck; then
   21958   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   21959   CONFIG_SHELL=$SHELL
   21960   export CONFIG_SHELL
   21961   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   21962 fi
   21963 
   21964 _ACEOF
   21965 cat >>$CONFIG_STATUS <<\_ACEOF
   21966 exec 5>>config.log
   21967 {
   21968   echo
   21969   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   21970 ## Running $as_me. ##
   21971 _ASBOX
   21972   echo "$ac_log"
   21973 } >&5
   21974 
   21975 _ACEOF
   21976 cat >>$CONFIG_STATUS <<_ACEOF
   21977 #
   21978 # INIT-COMMANDS
   21979 #
   21980 llvm_src="${srcdir}"
   21981 
   21982 _ACEOF
   21983 
   21984 cat >>$CONFIG_STATUS <<\_ACEOF
   21985 
   21986 # Handling of arguments.
   21987 for ac_config_target in $ac_config_targets
   21988 do
   21989   case $ac_config_target in
   21990     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
   21991     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
   21992     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
   21993     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
   21994     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
   21995     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
   21996     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
   21997     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
   21998     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
   21999     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
   22000     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
   22001     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
   22002     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
   22003     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
   22004     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
   22005     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
   22006     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
   22007     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
   22008     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
   22009     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
   22010     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
   22011     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
   22012     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
   22013     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
   22014     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
   22015     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
   22016     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
   22017 
   22018   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   22019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   22020    { (exit 1); exit 1; }; };;
   22021   esac
   22022 done
   22023 
   22024 
   22025 # If the user did not use the arguments to specify the items to instantiate,
   22026 # then the envvar interface is used.  Set only those that are not.
   22027 # We use the long form for the default assignment because of an extremely
   22028 # bizarre bug on SunOS 4.1.3.
   22029 if $ac_need_defaults; then
   22030   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   22031   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   22032   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   22033 fi
   22034 
   22035 # Have a temporary directory for convenience.  Make it in the build tree
   22036 # simply because there is no reason against having it here, and in addition,
   22037 # creating and moving files from /tmp can sometimes cause problems.
   22038 # Hook for its removal unless debugging.
   22039 # Note that there is a small window in which the directory will not be cleaned:
   22040 # after its creation but before its name has been assigned to `$tmp'.
   22041 $debug ||
   22042 {
   22043   tmp=
   22044   trap 'exit_status=$?
   22045   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   22046 ' 0
   22047   trap '{ (exit 1); exit 1; }' 1 2 13 15
   22048 }
   22049 # Create a (secure) tmp directory for tmp files.
   22050 
   22051 {
   22052   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   22053   test -n "$tmp" && test -d "$tmp"
   22054 }  ||
   22055 {
   22056   tmp=./conf$$-$RANDOM
   22057   (umask 077 && mkdir "$tmp")
   22058 } ||
   22059 {
   22060    echo "$me: cannot create a temporary directory in ." >&2
   22061    { (exit 1); exit 1; }
   22062 }
   22063 
   22064 #
   22065 # Set up the sed scripts for CONFIG_FILES section.
   22066 #
   22067 
   22068 # No need to generate the scripts if there are no CONFIG_FILES.
   22069 # This happens for instance when ./config.status config.h
   22070 if test -n "$CONFIG_FILES"; then
   22071 
   22072 _ACEOF
   22073 
   22074 
   22075 
   22076 ac_delim='%!_!# '
   22077 for ac_last_try in false false false false false :; do
   22078   cat >conf$$subs.sed <<_ACEOF
   22079 SHELL!$SHELL$ac_delim
   22080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   22081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   22082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   22083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   22084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   22085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   22086 exec_prefix!$exec_prefix$ac_delim
   22087 prefix!$prefix$ac_delim
   22088 program_transform_name!$program_transform_name$ac_delim
   22089 bindir!$bindir$ac_delim
   22090 sbindir!$sbindir$ac_delim
   22091 libexecdir!$libexecdir$ac_delim
   22092 datarootdir!$datarootdir$ac_delim
   22093 datadir!$datadir$ac_delim
   22094 sysconfdir!$sysconfdir$ac_delim
   22095 sharedstatedir!$sharedstatedir$ac_delim
   22096 localstatedir!$localstatedir$ac_delim
   22097 includedir!$includedir$ac_delim
   22098 oldincludedir!$oldincludedir$ac_delim
   22099 docdir!$docdir$ac_delim
   22100 infodir!$infodir$ac_delim
   22101 htmldir!$htmldir$ac_delim
   22102 dvidir!$dvidir$ac_delim
   22103 pdfdir!$pdfdir$ac_delim
   22104 psdir!$psdir$ac_delim
   22105 libdir!$libdir$ac_delim
   22106 localedir!$localedir$ac_delim
   22107 mandir!$mandir$ac_delim
   22108 DEFS!$DEFS$ac_delim
   22109 ECHO_C!$ECHO_C$ac_delim
   22110 ECHO_N!$ECHO_N$ac_delim
   22111 ECHO_T!$ECHO_T$ac_delim
   22112 LIBS!$LIBS$ac_delim
   22113 build_alias!$build_alias$ac_delim
   22114 host_alias!$host_alias$ac_delim
   22115 target_alias!$target_alias$ac_delim
   22116 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
   22117 CC!$CC$ac_delim
   22118 CFLAGS!$CFLAGS$ac_delim
   22119 LDFLAGS!$LDFLAGS$ac_delim
   22120 CPPFLAGS!$CPPFLAGS$ac_delim
   22121 ac_ct_CC!$ac_ct_CC$ac_delim
   22122 EXEEXT!$EXEEXT$ac_delim
   22123 OBJEXT!$OBJEXT$ac_delim
   22124 CXX!$CXX$ac_delim
   22125 CXXFLAGS!$CXXFLAGS$ac_delim
   22126 ac_ct_CXX!$ac_ct_CXX$ac_delim
   22127 CPP!$CPP$ac_delim
   22128 subdirs!$subdirs$ac_delim
   22129 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
   22130 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
   22131 build!$build$ac_delim
   22132 build_cpu!$build_cpu$ac_delim
   22133 build_vendor!$build_vendor$ac_delim
   22134 build_os!$build_os$ac_delim
   22135 host!$host$ac_delim
   22136 host_cpu!$host_cpu$ac_delim
   22137 host_vendor!$host_vendor$ac_delim
   22138 host_os!$host_os$ac_delim
   22139 target!$target$ac_delim
   22140 target_cpu!$target_cpu$ac_delim
   22141 target_vendor!$target_vendor$ac_delim
   22142 target_os!$target_os$ac_delim
   22143 OS!$OS$ac_delim
   22144 HOST_OS!$HOST_OS$ac_delim
   22145 TARGET_OS!$TARGET_OS$ac_delim
   22146 LINKALL!$LINKALL$ac_delim
   22147 NOLINKALL!$NOLINKALL$ac_delim
   22148 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
   22149 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
   22150 ARCH!$ARCH$ac_delim
   22151 HOST_ARCH!$HOST_ARCH$ac_delim
   22152 ENDIAN!$ENDIAN$ac_delim
   22153 GREP!$GREP$ac_delim
   22154 EGREP!$EGREP$ac_delim
   22155 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
   22156 BUILD_CC!$BUILD_CC$ac_delim
   22157 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
   22158 BUILD_CXX!$BUILD_CXX$ac_delim
   22159 CVSBUILD!$CVSBUILD$ac_delim
   22160 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
   22161 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
   22162 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
   22163 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
   22164 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
   22165 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
   22166 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
   22167 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
   22168 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
   22169 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
   22170 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
   22171 JIT!$JIT$ac_delim
   22172 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
   22173 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
   22174 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
   22175 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
   22176 _ACEOF
   22177 
   22178   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   22179     break
   22180   elif $ac_last_try; then
   22181     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   22182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   22183    { (exit 1); exit 1; }; }
   22184   else
   22185     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22186   fi
   22187 done
   22188 
   22189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   22190 if test -n "$ac_eof"; then
   22191   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   22192   ac_eof=`expr $ac_eof + 1`
   22193 fi
   22194 
   22195 cat >>$CONFIG_STATUS <<_ACEOF
   22196 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   22197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22198 _ACEOF
   22199 sed '
   22200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   22201 s/^/s,@/; s/!/@,|#_!!_#|/
   22202 :n
   22203 t n
   22204 s/'"$ac_delim"'$/,g/; t
   22205 s/$/\\/; p
   22206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   22207 ' >>$CONFIG_STATUS <conf$$subs.sed
   22208 rm -f conf$$subs.sed
   22209 cat >>$CONFIG_STATUS <<_ACEOF
   22210 CEOF$ac_eof
   22211 _ACEOF
   22212 
   22213 
   22214 ac_delim='%!_!# '
   22215 for ac_last_try in false false false false false :; do
   22216   cat >conf$$subs.sed <<_ACEOF
   22217 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
   22218 ENABLE_PIC!$ENABLE_PIC$ac_delim
   22219 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
   22220 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
   22221 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
   22222 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
   22223 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
   22224 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
   22225 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
   22226 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
   22227 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
   22228 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
   22229 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
   22230 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
   22231 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
   22232 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
   22233 NM!$NM$ac_delim
   22234 ifGNUmake!$ifGNUmake$ac_delim
   22235 LN_S!$LN_S$ac_delim
   22236 CMP!$CMP$ac_delim
   22237 CP!$CP$ac_delim
   22238 DATE!$DATE$ac_delim
   22239 FIND!$FIND$ac_delim
   22240 MKDIR!$MKDIR$ac_delim
   22241 MV!$MV$ac_delim
   22242 RANLIB!$RANLIB$ac_delim
   22243 AR!$AR$ac_delim
   22244 RM!$RM$ac_delim
   22245 SED!$SED$ac_delim
   22246 TAR!$TAR$ac_delim
   22247 BINPWD!$BINPWD$ac_delim
   22248 GRAPHVIZ!$GRAPHVIZ$ac_delim
   22249 DOT!$DOT$ac_delim
   22250 FDP!$FDP$ac_delim
   22251 NEATO!$NEATO$ac_delim
   22252 TWOPI!$TWOPI$ac_delim
   22253 CIRCO!$CIRCO$ac_delim
   22254 GV!$GV$ac_delim
   22255 DOTTY!$DOTTY$ac_delim
   22256 XDOT_PY!$XDOT_PY$ac_delim
   22257 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   22258 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   22259 INSTALL_DATA!$INSTALL_DATA$ac_delim
   22260 BZIP2!$BZIP2$ac_delim
   22261 CAT!$CAT$ac_delim
   22262 DOXYGEN!$DOXYGEN$ac_delim
   22263 GROFF!$GROFF$ac_delim
   22264 GZIPBIN!$GZIPBIN$ac_delim
   22265 PDFROFF!$PDFROFF$ac_delim
   22266 ZIP!$ZIP$ac_delim
   22267 OCAMLC!$OCAMLC$ac_delim
   22268 OCAMLOPT!$OCAMLOPT$ac_delim
   22269 OCAMLDEP!$OCAMLDEP$ac_delim
   22270 OCAMLDOC!$OCAMLDOC$ac_delim
   22271 GAS!$GAS$ac_delim
   22272 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
   22273 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
   22274 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
   22275 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
   22276 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
   22277 LIBADD_DL!$LIBADD_DL$ac_delim
   22278 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
   22279 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
   22280 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
   22281 USE_UDIS86!$USE_UDIS86$ac_delim
   22282 USE_OPROFILE!$USE_OPROFILE$ac_delim
   22283 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
   22284 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
   22285 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
   22286 XML2CONFIG!$XML2CONFIG$ac_delim
   22287 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
   22288 LIBXML2_INC!$LIBXML2_INC$ac_delim
   22289 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
   22290 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
   22291 MMAP_FILE!$MMAP_FILE$ac_delim
   22292 SHLIBEXT!$SHLIBEXT$ac_delim
   22293 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
   22294 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
   22295 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
   22296 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
   22297 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
   22298 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
   22299 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
   22300 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
   22301 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
   22302 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
   22303 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
   22304 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
   22305 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
   22306 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
   22307 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
   22308 RPATH!$RPATH$ac_delim
   22309 RDYNAMIC!$RDYNAMIC$ac_delim
   22310 LIBOBJS!$LIBOBJS$ac_delim
   22311 LTLIBOBJS!$LTLIBOBJS$ac_delim
   22312 _ACEOF
   22313 
   22314   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
   22315     break
   22316   elif $ac_last_try; then
   22317     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   22318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   22319    { (exit 1); exit 1; }; }
   22320   else
   22321     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   22322   fi
   22323 done
   22324 
   22325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   22326 if test -n "$ac_eof"; then
   22327   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   22328   ac_eof=`expr $ac_eof + 1`
   22329 fi
   22330 
   22331 cat >>$CONFIG_STATUS <<_ACEOF
   22332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   22333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   22334 _ACEOF
   22335 sed '
   22336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   22337 s/^/s,@/; s/!/@,|#_!!_#|/
   22338 :n
   22339 t n
   22340 s/'"$ac_delim"'$/,g/; t
   22341 s/$/\\/; p
   22342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   22343 ' >>$CONFIG_STATUS <conf$$subs.sed
   22344 rm -f conf$$subs.sed
   22345 cat >>$CONFIG_STATUS <<_ACEOF
   22346 :end
   22347 s/|#_!!_#|//g
   22348 CEOF$ac_eof
   22349 _ACEOF
   22350 
   22351 
   22352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   22353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   22354 # trailing colons and then remove the whole line if VPATH becomes empty
   22355 # (actually we leave an empty line to preserve line numbers).
   22356 if test "x$srcdir" = x.; then
   22357   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   22358 s/:*\$(srcdir):*/:/
   22359 s/:*\${srcdir}:*/:/
   22360 s/:*@srcdir@:*/:/
   22361 s/^\([^=]*=[	 ]*\):*/\1/
   22362 s/:*$//
   22363 s/^[^=]*=[	 ]*$//
   22364 }'
   22365 fi
   22366 
   22367 cat >>$CONFIG_STATUS <<\_ACEOF
   22368 fi # test -n "$CONFIG_FILES"
   22369 
   22370 
   22371 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
   22372 do
   22373   case $ac_tag in
   22374   :[FHLC]) ac_mode=$ac_tag; continue;;
   22375   esac
   22376   case $ac_mode$ac_tag in
   22377   :[FHL]*:*);;
   22378   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   22379 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   22380    { (exit 1); exit 1; }; };;
   22381   :[FH]-) ac_tag=-:-;;
   22382   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   22383   esac
   22384   ac_save_IFS=$IFS
   22385   IFS=:
   22386   set x $ac_tag
   22387   IFS=$ac_save_IFS
   22388   shift
   22389   ac_file=$1
   22390   shift
   22391 
   22392   case $ac_mode in
   22393   :L) ac_source=$1;;
   22394   :[FH])
   22395     ac_file_inputs=
   22396     for ac_f
   22397     do
   22398       case $ac_f in
   22399       -) ac_f="$tmp/stdin";;
   22400       *) # Look for the file first in the build tree, then in the source tree
   22401 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   22402 	 # because $ac_f cannot contain `:'.
   22403 	 test -f "$ac_f" ||
   22404 	   case $ac_f in
   22405 	   [\\/$]*) false;;
   22406 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   22407 	   esac ||
   22408 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   22409 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   22410    { (exit 1); exit 1; }; };;
   22411       esac
   22412       ac_file_inputs="$ac_file_inputs $ac_f"
   22413     done
   22414 
   22415     # Let's still pretend it is `configure' which instantiates (i.e., don't
   22416     # use $as_me), people would be surprised to read:
   22417     #    /* config.h.  Generated by config.status.  */
   22418     configure_input="Generated from "`IFS=:
   22419 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   22420     if test x"$ac_file" != x-; then
   22421       configure_input="$ac_file.  $configure_input"
   22422       { echo "$as_me:$LINENO: creating $ac_file" >&5
   22423 echo "$as_me: creating $ac_file" >&6;}
   22424     fi
   22425 
   22426     case $ac_tag in
   22427     *:-:* | *:-) cat >"$tmp/stdin";;
   22428     esac
   22429     ;;
   22430   esac
   22431 
   22432   ac_dir=`$as_dirname -- "$ac_file" ||
   22433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22434 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   22435 	 X"$ac_file" : 'X\(//\)$' \| \
   22436 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   22437 echo X"$ac_file" |
   22438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22439 	    s//\1/
   22440 	    q
   22441 	  }
   22442 	  /^X\(\/\/\)[^/].*/{
   22443 	    s//\1/
   22444 	    q
   22445 	  }
   22446 	  /^X\(\/\/\)$/{
   22447 	    s//\1/
   22448 	    q
   22449 	  }
   22450 	  /^X\(\/\).*/{
   22451 	    s//\1/
   22452 	    q
   22453 	  }
   22454 	  s/.*/./; q'`
   22455   { as_dir="$ac_dir"
   22456   case $as_dir in #(
   22457   -*) as_dir=./$as_dir;;
   22458   esac
   22459   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   22460     as_dirs=
   22461     while :; do
   22462       case $as_dir in #(
   22463       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   22464       *) as_qdir=$as_dir;;
   22465       esac
   22466       as_dirs="'$as_qdir' $as_dirs"
   22467       as_dir=`$as_dirname -- "$as_dir" ||
   22468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22469 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22470 	 X"$as_dir" : 'X\(//\)$' \| \
   22471 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22472 echo X"$as_dir" |
   22473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22474 	    s//\1/
   22475 	    q
   22476 	  }
   22477 	  /^X\(\/\/\)[^/].*/{
   22478 	    s//\1/
   22479 	    q
   22480 	  }
   22481 	  /^X\(\/\/\)$/{
   22482 	    s//\1/
   22483 	    q
   22484 	  }
   22485 	  /^X\(\/\).*/{
   22486 	    s//\1/
   22487 	    q
   22488 	  }
   22489 	  s/.*/./; q'`
   22490       test -d "$as_dir" && break
   22491     done
   22492     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22493   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   22494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   22495    { (exit 1); exit 1; }; }; }
   22496   ac_builddir=.
   22497 
   22498 case "$ac_dir" in
   22499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22500 *)
   22501   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   22502   # A ".." for each directory in $ac_dir_suffix.
   22503   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   22504   case $ac_top_builddir_sub in
   22505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22507   esac ;;
   22508 esac
   22509 ac_abs_top_builddir=$ac_pwd
   22510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22511 # for backward compatibility:
   22512 ac_top_builddir=$ac_top_build_prefix
   22513 
   22514 case $srcdir in
   22515   .)  # We are building in place.
   22516     ac_srcdir=.
   22517     ac_top_srcdir=$ac_top_builddir_sub
   22518     ac_abs_top_srcdir=$ac_pwd ;;
   22519   [\\/]* | ?:[\\/]* )  # Absolute name.
   22520     ac_srcdir=$srcdir$ac_dir_suffix;
   22521     ac_top_srcdir=$srcdir
   22522     ac_abs_top_srcdir=$srcdir ;;
   22523   *) # Relative name.
   22524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22525     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22527 esac
   22528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22529 
   22530 
   22531   case $ac_mode in
   22532   :F)
   22533   #
   22534   # CONFIG_FILE
   22535   #
   22536 
   22537   case $INSTALL in
   22538   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   22539   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   22540   esac
   22541 _ACEOF
   22542 
   22543 cat >>$CONFIG_STATUS <<\_ACEOF
   22544 # If the template does not know about datarootdir, expand it.
   22545 # FIXME: This hack should be removed a few years after 2.60.
   22546 ac_datarootdir_hack=; ac_datarootdir_seen=
   22547 
   22548 case `sed -n '/datarootdir/ {
   22549   p
   22550   q
   22551 }
   22552 /@datadir@/p
   22553 /@docdir@/p
   22554 /@infodir@/p
   22555 /@localedir@/p
   22556 /@mandir@/p
   22557 ' $ac_file_inputs` in
   22558 *datarootdir*) ac_datarootdir_seen=yes;;
   22559 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   22560   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   22561 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   22562 _ACEOF
   22563 cat >>$CONFIG_STATUS <<_ACEOF
   22564   ac_datarootdir_hack='
   22565   s&@datadir@&$datadir&g
   22566   s&@docdir@&$docdir&g
   22567   s&@infodir@&$infodir&g
   22568   s&@localedir@&$localedir&g
   22569   s&@mandir@&$mandir&g
   22570     s&\\\${datarootdir}&$datarootdir&g' ;;
   22571 esac
   22572 _ACEOF
   22573 
   22574 # Neutralize VPATH when `$srcdir' = `.'.
   22575 # Shell code in configure.ac might set extrasub.
   22576 # FIXME: do we really want to maintain this feature?
   22577 cat >>$CONFIG_STATUS <<_ACEOF
   22578   sed "$ac_vpsub
   22579 $extrasub
   22580 _ACEOF
   22581 cat >>$CONFIG_STATUS <<\_ACEOF
   22582 :t
   22583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22584 s&@configure_input@&$configure_input&;t t
   22585 s&@top_builddir@&$ac_top_builddir_sub&;t t
   22586 s&@srcdir@&$ac_srcdir&;t t
   22587 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   22588 s&@top_srcdir@&$ac_top_srcdir&;t t
   22589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   22590 s&@builddir@&$ac_builddir&;t t
   22591 s&@abs_builddir@&$ac_abs_builddir&;t t
   22592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   22593 s&@INSTALL@&$ac_INSTALL&;t t
   22594 $ac_datarootdir_hack
   22595 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   22596 
   22597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   22598   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   22599   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   22600   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22601 which seems to be undefined.  Please make sure it is defined." >&5
   22602 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22603 which seems to be undefined.  Please make sure it is defined." >&2;}
   22604 
   22605   rm -f "$tmp/stdin"
   22606   case $ac_file in
   22607   -) cat "$tmp/out"; rm -f "$tmp/out";;
   22608   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   22609   esac
   22610  ;;
   22611   :H)
   22612   #
   22613   # CONFIG_HEADER
   22614   #
   22615 _ACEOF
   22616 
   22617 # Transform confdefs.h into a sed script `conftest.defines', that
   22618 # substitutes the proper values into config.h.in to produce config.h.
   22619 rm -f conftest.defines conftest.tail
   22620 # First, append a space to every undef/define line, to ease matching.
   22621 echo 's/$/ /' >conftest.defines
   22622 # Then, protect against being on the right side of a sed subst, or in
   22623 # an unquoted here document, in config.status.  If some macros were
   22624 # called several times there might be several #defines for the same
   22625 # symbol, which is useless.  But do not sort them, since the last
   22626 # AC_DEFINE must be honored.
   22627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   22628 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   22629 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   22630 # PARAMS is the parameter list in the macro definition--in most cases, it's
   22631 # just an empty string.
   22632 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   22633 ac_dB='\\)[	 (].*,\\1define\\2'
   22634 ac_dC=' '
   22635 ac_dD=' ,'
   22636 
   22637 uniq confdefs.h |
   22638   sed -n '
   22639 	t rset
   22640 	:rset
   22641 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   22642 	t ok
   22643 	d
   22644 	:ok
   22645 	s/[\\&,]/\\&/g
   22646 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   22647 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   22648   ' >>conftest.defines
   22649 
   22650 # Remove the space that was appended to ease matching.
   22651 # Then replace #undef with comments.  This is necessary, for
   22652 # example, in the case of _POSIX_SOURCE, which is predefined and required
   22653 # on some systems where configure will not decide to define it.
   22654 # (The regexp can be short, since the line contains either #define or #undef.)
   22655 echo 's/ $//
   22656 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   22657 
   22658 # Break up conftest.defines:
   22659 ac_max_sed_lines=50
   22660 
   22661 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   22662 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   22663 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   22664 # et cetera.
   22665 ac_in='$ac_file_inputs'
   22666 ac_out='"$tmp/out1"'
   22667 ac_nxt='"$tmp/out2"'
   22668 
   22669 while :
   22670 do
   22671   # Write a here document:
   22672     cat >>$CONFIG_STATUS <<_ACEOF
   22673     # First, check the format of the line:
   22674     cat >"\$tmp/defines.sed" <<\\CEOF
   22675 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   22676 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   22677 b
   22678 :def
   22679 _ACEOF
   22680   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   22681   echo 'CEOF
   22682     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   22683   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   22684   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   22685   grep . conftest.tail >/dev/null || break
   22686   rm -f conftest.defines
   22687   mv conftest.tail conftest.defines
   22688 done
   22689 rm -f conftest.defines conftest.tail
   22690 
   22691 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   22692 cat >>$CONFIG_STATUS <<\_ACEOF
   22693   if test x"$ac_file" != x-; then
   22694     echo "/* $configure_input  */" >"$tmp/config.h"
   22695     cat "$ac_result" >>"$tmp/config.h"
   22696     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   22697       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   22698 echo "$as_me: $ac_file is unchanged" >&6;}
   22699     else
   22700       rm -f $ac_file
   22701       mv "$tmp/config.h" $ac_file
   22702     fi
   22703   else
   22704     echo "/* $configure_input  */"
   22705     cat "$ac_result"
   22706   fi
   22707   rm -f "$tmp/out12"
   22708  ;;
   22709 
   22710   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   22711 echo "$as_me: executing $ac_file commands" >&6;}
   22712  ;;
   22713   esac
   22714 
   22715 
   22716   case $ac_file$ac_mode in
   22717     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
   22718    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
   22719     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
   22720    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
   22721     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
   22722    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
   22723     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
   22724    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
   22725     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
   22726    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
   22727     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
   22728    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
   22729     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
   22730    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
   22731     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
   22732    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
   22733     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
   22734    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
   22735     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
   22736    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
   22737     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
   22738    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
   22739     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
   22740    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
   22741     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
   22742    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
   22743 
   22744   esac
   22745 done # for ac_tag
   22746 
   22747 
   22748 { (exit 0); exit 0; }
   22749 _ACEOF
   22750 chmod +x $CONFIG_STATUS
   22751 ac_clean_files=$ac_clean_files_save
   22752 
   22753 
   22754 # configure is writing to config.log, and then calls config.status.
   22755 # config.status does its own redirection, appending to config.log.
   22756 # Unfortunately, on DOS this fails, as config.log is still kept open
   22757 # by configure, so config.status won't be able to write to it; its
   22758 # output is simply discarded.  So we exec the FD to /dev/null,
   22759 # effectively closing config.log, so it can be properly (re)opened and
   22760 # appended to by config.status.  When coming back to configure, we
   22761 # need to make the FD available again.
   22762 if test "$no_create" != yes; then
   22763   ac_cs_success=:
   22764   ac_config_status_args=
   22765   test "$silent" = yes &&
   22766     ac_config_status_args="$ac_config_status_args --quiet"
   22767   exec 5>/dev/null
   22768   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22769   exec 5>>config.log
   22770   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22771   # would make configure fail if this is the last instruction.
   22772   $ac_cs_success || { (exit 1); exit 1; }
   22773 fi
   22774 
   22775 #
   22776 # CONFIG_SUBDIRS section.
   22777 #
   22778 if test "$no_recursion" != yes; then
   22779 
   22780   # Remove --cache-file and --srcdir arguments so they do not pile up.
   22781   ac_sub_configure_args=
   22782   ac_prev=
   22783   eval "set x $ac_configure_args"
   22784   shift
   22785   for ac_arg
   22786   do
   22787     if test -n "$ac_prev"; then
   22788       ac_prev=
   22789       continue
   22790     fi
   22791     case $ac_arg in
   22792     -cache-file | --cache-file | --cache-fil | --cache-fi \
   22793     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   22794       ac_prev=cache_file ;;
   22795     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   22796     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   22797     | --c=*)
   22798       ;;
   22799     --config-cache | -C)
   22800       ;;
   22801     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   22802       ac_prev=srcdir ;;
   22803     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   22804       ;;
   22805     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   22806       ac_prev=prefix ;;
   22807     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   22808       ;;
   22809     *)
   22810       case $ac_arg in
   22811       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22812       esac
   22813       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
   22814     esac
   22815   done
   22816 
   22817   # Always prepend --prefix to ensure using the same prefix
   22818   # in subdir configurations.
   22819   ac_arg="--prefix=$prefix"
   22820   case $ac_arg in
   22821   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   22822   esac
   22823   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
   22824 
   22825   ac_popdir=`pwd`
   22826   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   22827 
   22828     # Do not complain, so a configure script can configure whichever
   22829     # parts of a large source tree are present.
   22830     test -d "$srcdir/$ac_dir" || continue
   22831 
   22832     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   22833     echo "$as_me:$LINENO: $ac_msg" >&5
   22834     echo "$ac_msg" >&6
   22835     { as_dir="$ac_dir"
   22836   case $as_dir in #(
   22837   -*) as_dir=./$as_dir;;
   22838   esac
   22839   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   22840     as_dirs=
   22841     while :; do
   22842       case $as_dir in #(
   22843       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   22844       *) as_qdir=$as_dir;;
   22845       esac
   22846       as_dirs="'$as_qdir' $as_dirs"
   22847       as_dir=`$as_dirname -- "$as_dir" ||
   22848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   22849 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   22850 	 X"$as_dir" : 'X\(//\)$' \| \
   22851 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   22852 echo X"$as_dir" |
   22853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   22854 	    s//\1/
   22855 	    q
   22856 	  }
   22857 	  /^X\(\/\/\)[^/].*/{
   22858 	    s//\1/
   22859 	    q
   22860 	  }
   22861 	  /^X\(\/\/\)$/{
   22862 	    s//\1/
   22863 	    q
   22864 	  }
   22865 	  /^X\(\/\).*/{
   22866 	    s//\1/
   22867 	    q
   22868 	  }
   22869 	  s/.*/./; q'`
   22870       test -d "$as_dir" && break
   22871     done
   22872     test -z "$as_dirs" || eval "mkdir $as_dirs"
   22873   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   22874 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   22875    { (exit 1); exit 1; }; }; }
   22876     ac_builddir=.
   22877 
   22878 case "$ac_dir" in
   22879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22880 *)
   22881   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   22882   # A ".." for each directory in $ac_dir_suffix.
   22883   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   22884   case $ac_top_builddir_sub in
   22885   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   22886   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   22887   esac ;;
   22888 esac
   22889 ac_abs_top_builddir=$ac_pwd
   22890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   22891 # for backward compatibility:
   22892 ac_top_builddir=$ac_top_build_prefix
   22893 
   22894 case $srcdir in
   22895   .)  # We are building in place.
   22896     ac_srcdir=.
   22897     ac_top_srcdir=$ac_top_builddir_sub
   22898     ac_abs_top_srcdir=$ac_pwd ;;
   22899   [\\/]* | ?:[\\/]* )  # Absolute name.
   22900     ac_srcdir=$srcdir$ac_dir_suffix;
   22901     ac_top_srcdir=$srcdir
   22902     ac_abs_top_srcdir=$srcdir ;;
   22903   *) # Relative name.
   22904     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   22905     ac_top_srcdir=$ac_top_build_prefix$srcdir
   22906     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   22907 esac
   22908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   22909 
   22910 
   22911     cd "$ac_dir"
   22912 
   22913     # Check for guested configure; otherwise get Cygnus style configure.
   22914     if test -f "$ac_srcdir/configure.gnu"; then
   22915       ac_sub_configure=$ac_srcdir/configure.gnu
   22916     elif test -f "$ac_srcdir/configure"; then
   22917       ac_sub_configure=$ac_srcdir/configure
   22918     elif test -f "$ac_srcdir/configure.in"; then
   22919       # This should be Cygnus configure.
   22920       ac_sub_configure=$ac_aux_dir/configure
   22921     else
   22922       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
   22923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   22924       ac_sub_configure=
   22925     fi
   22926 
   22927     # The recursion is here.
   22928     if test -n "$ac_sub_configure"; then
   22929       # Make the cache file name correct relative to the subdirectory.
   22930       case $cache_file in
   22931       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   22932       *) # Relative name.
   22933 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   22934       esac
   22935 
   22936       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   22937 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   22938       # The eval makes quoting arguments work.
   22939       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   22940 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   22941 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
   22942 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
   22943    { (exit 1); exit 1; }; }
   22944     fi
   22945 
   22946     cd "$ac_popdir"
   22947   done
   22948 fi
   22949 
   22950