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.61 for llvm 3.0.

      4 #

      5 # Report bugs to <llvmbugs (at] cs.uiuc.edu>.

      6 #

      7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,

      8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.

      9 # This configure script is free software; the Free Software Foundation

     10 # gives unlimited permission to copy, distribute and modify it.

     11 #

     12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.

     13 ## --------------------- ##

     14 ## M4sh Initialization.  ##

     15 ## --------------------- ##

     16 
     17 # Be more Bourne compatible

     18 DUALCASE=1; export DUALCASE # for MKS sh

     19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     20   emulate sh
     21   NULLCMD=:
     22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which

     23   # is contrary to our usage.  Disable this feature.

     24   alias -g '${1+"$@"}'='"$@"'
     25   setopt NO_GLOB_SUBST
     26 else
     27   case `(set -o) 2>/dev/null` in
     28   *posix*) set -o posix ;;
     29 esac
     30 
     31 fi
     32 
     33 
     34 
     35 
     36 # PATH needs CR

     37 # Avoid depending upon Character Ranges.

     38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     41 as_cr_digits='0123456789'
     42 as_cr_alnum=$as_cr_Letters$as_cr_digits
     43 
     44 # The user is always right.

     45 if test "${PATH_SEPARATOR+set}" != set; then
     46   echo "#! /bin/sh" >conf$$.sh
     47   echo  "exit 0"   >>conf$$.sh
     48   chmod +x conf$$.sh
     49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     50     PATH_SEPARATOR=';'
     51   else
     52     PATH_SEPARATOR=:
     53   fi
     54   rm -f conf$$.sh
     55 fi
     56 
     57 # Support unset when possible.

     58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     59   as_unset=unset
     60 else
     61   as_unset=false
     62 fi
     63 
     64 
     65 # IFS

     66 # We need space, tab and new line, in precisely that order.  Quoting is

     67 # there to prevent editors from complaining about space-tab.

     68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word

     69 # splitting by setting IFS to empty value.)

     70 as_nl='
     71 '
     72 IFS=" ""	$as_nl"
     73 
     74 # Find who we are.  Look in the path if we contain no directory separator.

     75 case $0 in
     76   *[\\/]* ) as_myself=$0 ;;
     77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     78 for as_dir in $PATH
     79 do
     80   IFS=$as_save_IFS
     81   test -z "$as_dir" && as_dir=.
     82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     83 done
     84 IFS=$as_save_IFS
     85 
     86      ;;
     87 esac
     88 # We did not find ourselves, most probably we were run as `sh COMMAND'

     89 # in which case we are not to be found in the path.

     90 if test "x$as_myself" = x; then
     91   as_myself=$0
     92 fi
     93 if test ! -f "$as_myself"; then
     94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     95   { (exit 1); exit 1; }
     96 fi
     97 
     98 # Work around bugs in pre-3.0 UWIN ksh.

     99 for as_var in ENV MAIL MAILPATH
    100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    101 done
    102 PS1='$ '
    103 PS2='> '
    104 PS4='+ '
    105 
    106 # NLS nuisances.

    107 for as_var in \
    108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    110   LC_TELEPHONE LC_TIME
    111 do
    112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    113     eval $as_var=C; export $as_var
    114   else
    115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    116   fi
    117 done
    118 
    119 # Required to use basename.

    120 if expr a : '\(a\)' >/dev/null 2>&1 &&
    121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    122   as_expr=expr
    123 else
    124   as_expr=false
    125 fi
    126 
    127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    128   as_basename=basename
    129 else
    130   as_basename=false
    131 fi
    132 
    133 
    134 # Name of the executable.

    135 as_me=`$as_basename -- "$0" ||
    136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    137 	 X"$0" : 'X\(//\)$' \| \
    138 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    139 echo X/"$0" |
    140     sed '/^.*\/\([^/][^/]*\)\/*$/{
    141 	    s//\1/
    142 	    q
    143 	  }
    144 	  /^X\/\(\/\/\)$/{
    145 	    s//\1/
    146 	    q
    147 	  }
    148 	  /^X\/\(\/\).*/{
    149 	    s//\1/
    150 	    q
    151 	  }
    152 	  s/.*/./; q'`
    153 
    154 # CDPATH.

    155 $as_unset CDPATH
    156 
    157 
    158 if test "x$CONFIG_SHELL" = x; then
    159   if (eval ":") 2>/dev/null; then
    160   as_have_required=yes
    161 else
    162   as_have_required=no
    163 fi
    164 
    165   if test $as_have_required = yes && 	 (eval ":
    166 (as_func_return () {
    167   (exit \$1)
    168 }
    169 as_func_success () {
    170   as_func_return 0
    171 }
    172 as_func_failure () {
    173   as_func_return 1
    174 }
    175 as_func_ret_success () {
    176   return 0
    177 }
    178 as_func_ret_failure () {
    179   return 1
    180 }
    181 
    182 exitcode=0
    183 if as_func_success; then
    184   :
    185 else
    186   exitcode=1
    187   echo as_func_success failed.
    188 fi
    189 
    190 if as_func_failure; then
    191   exitcode=1
    192   echo as_func_failure succeeded.
    193 fi
    194 
    195 if as_func_ret_success; then
    196   :
    197 else
    198   exitcode=1
    199   echo as_func_ret_success failed.
    200 fi
    201 
    202 if as_func_ret_failure; then
    203   exitcode=1
    204   echo as_func_ret_failure succeeded.
    205 fi
    206 
    207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    208   :
    209 else
    210   exitcode=1
    211   echo positional parameters were not saved.
    212 fi
    213 
    214 test \$exitcode = 0) || { (exit 1); exit 1; }
    215 
    216 (
    217   as_lineno_1=\$LINENO
    218   as_lineno_2=\$LINENO
    219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    221 ") 2> /dev/null; then
    222   :
    223 else
    224   as_candidate_shells=
    225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    227 do
    228   IFS=$as_save_IFS
    229   test -z "$as_dir" && as_dir=.
    230   case $as_dir in
    231 	 /*)
    232 	   for as_base in sh bash ksh sh5; do
    233 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    234 	   done;;
    235        esac
    236 done
    237 IFS=$as_save_IFS
    238 
    239 
    240       for as_shell in $as_candidate_shells $SHELL; do
    241 	 # Try only shells that exist, to save several forks.

    242 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    243 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    245   emulate sh
    246   NULLCMD=:
    247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which

    248   # is contrary to our usage.  Disable this feature.

    249   alias -g '${1+"$@"}'='"$@"'
    250   setopt NO_GLOB_SUBST
    251 else
    252   case `(set -o) 2>/dev/null` in
    253   *posix*) set -o posix ;;
    254 esac
    255 
    256 fi
    257 
    258 
    259 :
    260 _ASEOF
    261 }; then
    262   CONFIG_SHELL=$as_shell
    263 	       as_have_required=yes
    264 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    266   emulate sh
    267   NULLCMD=:
    268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which

    269   # is contrary to our usage.  Disable this feature.

    270   alias -g '${1+"$@"}'='"$@"'
    271   setopt NO_GLOB_SUBST
    272 else
    273   case `(set -o) 2>/dev/null` in
    274   *posix*) set -o posix ;;
    275 esac
    276 
    277 fi
    278 
    279 
    280 :
    281 (as_func_return () {
    282   (exit $1)
    283 }
    284 as_func_success () {
    285   as_func_return 0
    286 }
    287 as_func_failure () {
    288   as_func_return 1
    289 }
    290 as_func_ret_success () {
    291   return 0
    292 }
    293 as_func_ret_failure () {
    294   return 1
    295 }
    296 
    297 exitcode=0
    298 if as_func_success; then
    299   :
    300 else
    301   exitcode=1
    302   echo as_func_success failed.
    303 fi
    304 
    305 if as_func_failure; then
    306   exitcode=1
    307   echo as_func_failure succeeded.
    308 fi
    309 
    310 if as_func_ret_success; then
    311   :
    312 else
    313   exitcode=1
    314   echo as_func_ret_success failed.
    315 fi
    316 
    317 if as_func_ret_failure; then
    318   exitcode=1
    319   echo as_func_ret_failure succeeded.
    320 fi
    321 
    322 if ( set x; as_func_ret_success y && test x = "$1" ); then
    323   :
    324 else
    325   exitcode=1
    326   echo positional parameters were not saved.
    327 fi
    328 
    329 test $exitcode = 0) || { (exit 1); exit 1; }
    330 
    331 (
    332   as_lineno_1=$LINENO
    333   as_lineno_2=$LINENO
    334   test "x$as_lineno_1" != "x$as_lineno_2" &&
    335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    336 
    337 _ASEOF
    338 }; then
    339   break
    340 fi
    341 
    342 fi
    343 
    344       done
    345 
    346       if test "x$CONFIG_SHELL" != x; then
    347   for as_var in BASH_ENV ENV
    348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    349         done
    350         export CONFIG_SHELL
    351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    352 fi
    353 
    354 
    355     if test $as_have_required = no; then
    356   echo This script requires a shell more modern than all the
    357       echo shells that I found on your system.  Please install a
    358       echo modern shell, or manually run the script under such a
    359       echo shell if you do have one.
    360       { (exit 1); exit 1; }
    361 fi
    362 
    363 
    364 fi
    365 
    366 fi
    367 
    368 
    369 
    370 (eval "as_func_return () {
    371   (exit \$1)
    372 }
    373 as_func_success () {
    374   as_func_return 0
    375 }
    376 as_func_failure () {
    377   as_func_return 1
    378 }
    379 as_func_ret_success () {
    380   return 0
    381 }
    382 as_func_ret_failure () {
    383   return 1
    384 }
    385 
    386 exitcode=0
    387 if as_func_success; then
    388   :
    389 else
    390   exitcode=1
    391   echo as_func_success failed.
    392 fi
    393 
    394 if as_func_failure; then
    395   exitcode=1
    396   echo as_func_failure succeeded.
    397 fi
    398 
    399 if as_func_ret_success; then
    400   :
    401 else
    402   exitcode=1
    403   echo as_func_ret_success failed.
    404 fi
    405 
    406 if as_func_ret_failure; then
    407   exitcode=1
    408   echo as_func_ret_failure succeeded.
    409 fi
    410 
    411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    412   :
    413 else
    414   exitcode=1
    415   echo positional parameters were not saved.
    416 fi
    417 
    418 test \$exitcode = 0") || {
    419   echo No shell found that supports shell functions.
    420   echo Please tell autoconf@gnu.org about your system,
    421   echo including any error possibly output before this
    422   echo message
    423 }
    424 
    425 
    426 
    427   as_lineno_1=$LINENO
    428   as_lineno_2=$LINENO
    429   test "x$as_lineno_1" != "x$as_lineno_2" &&
    430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    431 
    432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO

    433   # uniformly replaced by the line number.  The first 'sed' inserts a

    434   # line-number line after each line using $LINENO; the second 'sed'

    435   # does the real work.  The second script uses 'N' to pair each

    436   # line-number line with the line containing $LINENO, and appends

    437   # trailing '-' during substitution so that $LINENO is not a special

    438   # case at line end.

    439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the

    440   # scripts with optimization help from Paolo Bonzini.  Blame Lee

    441   # E. McMahon (1931-1989) for sed's syntax.  :-)

    442   sed -n '
    443     p
    444     /[$]LINENO/=
    445   ' <$as_myself |
    446     sed '
    447       s/[$]LINENO.*/&-/
    448       t lineno
    449       b
    450       :lineno
    451       N
    452       :loop
    453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    454       t loop
    455       s/-\n.*//
    456     ' >$as_me.lineno &&
    457   chmod +x "$as_me.lineno" ||
    458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    459    { (exit 1); exit 1; }; }
    460 
    461   # Don't try to exec as it changes $[0], causing all sort of problems

    462   # (the dirname of $[0] is not the place where we might find the

    463   # original and so on.  Autoconf is especially sensitive to this).

    464   . "./$as_me.lineno"
    465   # Exit status is that of the last command.

    466   exit
    467 }
    468 
    469 
    470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    471   as_dirname=dirname
    472 else
    473   as_dirname=false
    474 fi
    475 
    476 ECHO_C= ECHO_N= ECHO_T=
    477 case `echo -n x` in
    478 -n*)
    479   case `echo 'x\c'` in
    480   *c*) ECHO_T='	';;	# ECHO_T is single tab character.

    481   *)   ECHO_C='\c';;
    482   esac;;
    483 *)
    484   ECHO_N='-n';;
    485 esac
    486 
    487 if expr a : '\(a\)' >/dev/null 2>&1 &&
    488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    489   as_expr=expr
    490 else
    491   as_expr=false
    492 fi
    493 
    494 rm -f conf$$ conf$$.exe conf$$.file
    495 if test -d conf$$.dir; then
    496   rm -f conf$$.dir/conf$$.file
    497 else
    498   rm -f conf$$.dir
    499   mkdir conf$$.dir
    500 fi
    501 echo >conf$$.file
    502 if ln -s conf$$.file conf$$ 2>/dev/null; then
    503   as_ln_s='ln -s'
    504   # ... but there are two gotchas:

    505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.

    506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.

    507   # In both cases, we have to default to `cp -p'.

    508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    509     as_ln_s='cp -p'
    510 elif ln conf$$.file conf$$ 2>/dev/null; then
    511   as_ln_s=ln
    512 else
    513   as_ln_s='cp -p'
    514 fi
    515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    516 rmdir conf$$.dir 2>/dev/null
    517 
    518 if mkdir -p . 2>/dev/null; then
    519   as_mkdir_p=:
    520 else
    521   test -d ./-p && rmdir ./-p
    522   as_mkdir_p=false
    523 fi
    524 
    525 if test -x / >/dev/null 2>&1; then
    526   as_test_x='test -x'
    527 else
    528   if ls -dL / >/dev/null 2>&1; then
    529     as_ls_L_option=L
    530   else
    531     as_ls_L_option=
    532   fi
    533   as_test_x='
    534     eval sh -c '\''
    535       if test -d "$1"; then
    536         test -d "$1/.";
    537       else
    538 	case $1 in
    539         -*)set "./$1";;
    540 	esac;
    541 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    542 	???[sx]*):;;*)false;;esac;fi
    543     '\'' sh
    544   '
    545 fi
    546 as_executable_p=$as_test_x
    547 
    548 # Sed expression to map a string onto a valid CPP name.
    549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    550 
    551 # Sed expression to map a string onto a valid variable name.
    552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    553 
    554 
    555 
    556 exec 7<&0 </dev/null 6>&1
    557 
    558 # Name of the host.
    559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    560 # so uname gets run too.
    561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    562 
    563 #
    564 # Initializations.
    565 #
    566 ac_default_prefix=/usr/local
    567 ac_clean_files=
    568 ac_config_libobj_dir=.
    569 LIBOBJS=
    570 cross_compiling=no
    571 subdirs=
    572 MFLAGS=
    573 MAKEFLAGS=
    574 SHELL=${CONFIG_SHELL-/bin/sh}
    575 
    576 # Identity of this package.
    577 PACKAGE_NAME='llvm'
    578 PACKAGE_TARNAME='-llvm-'
    579 PACKAGE_VERSION='3.0'
    580 PACKAGE_STRING='llvm 3.0'
    581 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
    582 
    583 ac_unique_file="lib/VMCore/Module.cpp"
    584 # Factoring default headers for most tests.
    585 ac_includes_default="\
    586 #include <stdio.h>
    587 #ifdef HAVE_SYS_TYPES_H
    588 # include <sys/types.h>
    589 #endif
    590 #ifdef HAVE_SYS_STAT_H
    591 # include <sys/stat.h>
    592 #endif
    593 #ifdef STDC_HEADERS
    594 # include <stdlib.h>
    595 # include <stddef.h>
    596 #else
    597 # ifdef HAVE_STDLIB_H
    598 #  include <stdlib.h>
    599 # endif
    600 #endif
    601 #ifdef HAVE_STRING_H
    602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    603 #  include <memory.h>
    604 # endif
    605 # include <string.h>
    606 #endif
    607 #ifdef HAVE_STRINGS_H
    608 # include <strings.h>
    609 #endif
    610 #ifdef HAVE_INTTYPES_H
    611 # include <inttypes.h>
    612 #endif
    613 #ifdef HAVE_STDINT_H
    614 # include <stdint.h>
    615 #endif
    616 #ifdef HAVE_UNISTD_H
    617 # include <unistd.h>
    618 #endif"
    619 
    620 ac_subst_vars='SHELL
    621 PATH_SEPARATOR
    622 PACKAGE_NAME
    623 PACKAGE_TARNAME
    624 PACKAGE_VERSION
    625 PACKAGE_STRING
    626 PACKAGE_BUGREPORT
    627 exec_prefix
    628 prefix
    629 program_transform_name
    630 bindir
    631 sbindir
    632 libexecdir
    633 datarootdir
    634 datadir
    635 sysconfdir
    636 sharedstatedir
    637 localstatedir
    638 includedir
    639 oldincludedir
    640 docdir
    641 infodir
    642 htmldir
    643 dvidir
    644 pdfdir
    645 psdir
    646 libdir
    647 localedir
    648 mandir
    649 DEFS
    650 ECHO_C
    651 ECHO_N
    652 ECHO_T
    653 LIBS
    654 build_alias
    655 host_alias
    656 target_alias
    657 LLVM_COPYRIGHT
    658 CC
    659 CFLAGS
    660 LDFLAGS
    661 CPPFLAGS
    662 ac_ct_CC
    663 EXEEXT
    664 OBJEXT
    665 CXX
    666 CXXFLAGS
    667 ac_ct_CXX
    668 CPP
    669 subdirs
    670 ENABLE_POLLY
    671 LLVM_HAS_POLLY
    672 build
    673 build_cpu
    674 build_vendor
    675 build_os
    676 host
    677 host_cpu
    678 host_vendor
    679 host_os
    680 target
    681 target_cpu
    682 target_vendor
    683 target_os
    684 OS
    685 HOST_OS
    686 TARGET_OS
    687 LINKALL
    688 NOLINKALL
    689 LLVM_ON_UNIX
    690 LLVM_ON_WIN32
    691 ARCH
    692 ENDIAN
    693 GREP
    694 EGREP
    695 LLVM_CROSS_COMPILING
    696 BUILD_CC
    697 BUILD_EXEEXT
    698 BUILD_CXX
    699 CVSBUILD
    700 ENABLE_OPTIMIZED
    701 ENABLE_PROFILING
    702 DISABLE_ASSERTIONS
    703 ENABLE_EXPENSIVE_CHECKS
    704 EXPENSIVE_CHECKS
    705 DEBUG_RUNTIME
    706 DEBUG_SYMBOLS
    707 JIT
    708 TARGET_HAS_JIT
    709 ENABLE_DOCS
    710 ENABLE_DOXYGEN
    711 ENABLE_THREADS
    712 ENABLE_PTHREADS
    713 ENABLE_PIC
    714 ENABLE_SHARED
    715 ENABLE_EMBED_STDCXX
    716 ENABLE_TIMESTAMPS
    717 TARGETS_TO_BUILD
    718 LLVM_ENUM_TARGETS
    719 LLVM_ENUM_ASM_PRINTERS
    720 LLVM_ENUM_ASM_PARSERS
    721 LLVM_ENUM_DISASSEMBLERS
    722 ENABLE_CBE_PRINTF_A
    723 OPTIMIZE_OPTION
    724 EXTRA_OPTIONS
    725 EXTRA_LD_OPTIONS
    726 BINUTILS_INCDIR
    727 NM
    728 ifGNUmake
    729 LN_S
    730 CMP
    731 CP
    732 DATE
    733 FIND
    734 MKDIR
    735 MV
    736 RANLIB
    737 AR
    738 RM
    739 SED
    740 TAR
    741 BINPWD
    742 GRAPHVIZ
    743 DOT
    744 FDP
    745 NEATO
    746 TWOPI
    747 CIRCO
    748 GV
    749 DOTTY
    750 XDOT_PY
    751 PERL
    752 HAVE_PERL
    753 INSTALL_PROGRAM
    754 INSTALL_SCRIPT
    755 INSTALL_DATA
    756 BZIP2
    757 CAT
    758 DOXYGEN
    759 GROFF
    760 GZIPBIN
    761 POD2HTML
    762 POD2MAN
    763 PDFROFF
    764 RUNTEST
    765 TCLSH
    766 ZIP
    767 OCAMLC
    768 OCAMLOPT
    769 OCAMLDEP
    770 OCAMLDOC
    771 GAS
    772 HAVE_LINK_VERSION_SCRIPT
    773 INSTALL_LTDL_TRUE
    774 INSTALL_LTDL_FALSE
    775 CONVENIENCE_LTDL_TRUE
    776 CONVENIENCE_LTDL_FALSE
    777 LIBADD_DL
    778 NO_VARIADIC_MACROS
    779 NO_MISSING_FIELD_INITIALIZERS
    780 USE_UDIS86
    781 USE_OPROFILE
    782 HAVE_PTHREAD
    783 HUGE_VAL_SANITY
    784 MMAP_FILE
    785 SHLIBEXT
    786 SHLIBPATH_VAR
    787 LLVM_PREFIX
    788 LLVM_BINDIR
    789 LLVM_LIBDIR
    790 LLVM_DATADIR
    791 LLVM_DOCSDIR
    792 LLVM_ETCDIR
    793 LLVM_INCLUDEDIR
    794 LLVM_INFODIR
    795 LLVM_MANDIR
    796 LLVM_CONFIGTIME
    797 BINDINGS_TO_BUILD
    798 ALL_BINDINGS
    799 OCAML_LIBDIR
    800 ENABLE_VISIBILITY_INLINES_HIDDEN
    801 RPATH
    802 RDYNAMIC
    803 LIBOBJS
    804 LTLIBOBJS'
    805 ac_subst_files=''
    806       ac_precious_vars='build_alias
    807 host_alias
    808 target_alias
    809 CC
    810 CFLAGS
    811 LDFLAGS
    812 LIBS
    813 CPPFLAGS
    814 CXX
    815 CXXFLAGS
    816 CCC
    817 CPP'
    818 ac_subdirs_all='projects/llvm-gcc
    819 projects/test-suite
    820 projects/llvm-test
    821 projects/poolalloc
    822 projects/llvm-poolalloc
    823 projects/sample
    824 projects/privbracket
    825 projects/llvm-stacker
    826 projects/llvm-reopt
    827 projects/llvm-java
    828 projects/llvm-tv
    829 projects/safecode
    830 projects/llvm-kernel
    831 tools/polly'
    832 
    833 # Initialize some variables set by options.
    834 ac_init_help=
    835 ac_init_version=false
    836 # The variables have the same names as the options, with
    837 # dashes changed to underlines.
    838 cache_file=/dev/null
    839 exec_prefix=NONE
    840 no_create=
    841 no_recursion=
    842 prefix=NONE
    843 program_prefix=NONE
    844 program_suffix=NONE
    845 program_transform_name=s,x,x,
    846 silent=
    847 site=
    848 srcdir=
    849 verbose=
    850 x_includes=NONE
    851 x_libraries=NONE
    852 
    853 # Installation directory options.
    854 # These are left unexpanded so users can "make install exec_prefix=/foo"
    855 # and all the variables that are supposed to be based on exec_prefix
    856 # by default will actually change.
    857 # Use braces instead of parens because sh, perl, etc. also accept them.
    858 # (The list follows the same order as the GNU Coding Standards.)
    859 bindir='${exec_prefix}/bin'
    860 sbindir='${exec_prefix}/sbin'
    861 libexecdir='${exec_prefix}/libexec'
    862 datarootdir='${prefix}/share'
    863 datadir='${datarootdir}'
    864 sysconfdir='${prefix}/etc'
    865 sharedstatedir='${prefix}/com'
    866 localstatedir='${prefix}/var'
    867 includedir='${prefix}/include'
    868 oldincludedir='/usr/include'
    869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    870 infodir='${datarootdir}/info'
    871 htmldir='${docdir}'
    872 dvidir='${docdir}'
    873 pdfdir='${docdir}'
    874 psdir='${docdir}'
    875 libdir='${exec_prefix}/lib'
    876 localedir='${datarootdir}/locale'
    877 mandir='${datarootdir}/man'
    878 
    879 ac_prev=
    880 ac_dashdash=
    881 for ac_option
    882 do
    883   # If the previous option needs an argument, assign it.
    884   if test -n "$ac_prev"; then
    885     eval $ac_prev=\$ac_option
    886     ac_prev=
    887     continue
    888   fi
    889 
    890   case $ac_option in
    891   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    892   *)	ac_optarg=yes ;;
    893   esac
    894 
    895   # Accept the important Cygnus configure options, so we can diagnose typos.
    896 
    897   case $ac_dashdash$ac_option in
    898   --)
    899     ac_dashdash=yes ;;
    900 
    901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    902     ac_prev=bindir ;;
    903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    904     bindir=$ac_optarg ;;
    905 
    906   -build | --build | --buil | --bui | --bu)
    907     ac_prev=build_alias ;;
    908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    909     build_alias=$ac_optarg ;;
    910 
    911   -cache-file | --cache-file | --cache-fil | --cache-fi \
    912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    913     ac_prev=cache_file ;;
    914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    916     cache_file=$ac_optarg ;;
    917 
    918   --config-cache | -C)
    919     cache_file=config.cache ;;
    920 
    921   -datadir | --datadir | --datadi | --datad)
    922     ac_prev=datadir ;;
    923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    924     datadir=$ac_optarg ;;
    925 
    926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    927   | --dataroo | --dataro | --datar)
    928     ac_prev=datarootdir ;;
    929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    931     datarootdir=$ac_optarg ;;
    932 
    933   -disable-* | --disable-*)
    934     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    935     # Reject names that are not valid shell variable names.
    936     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    937       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    938    { (exit 1); exit 1; }; }
    939     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    940     eval enable_$ac_feature=no ;;
    941 
    942   -docdir | --docdir | --docdi | --doc | --do)
    943     ac_prev=docdir ;;
    944   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    945     docdir=$ac_optarg ;;
    946 
    947   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    948     ac_prev=dvidir ;;
    949   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    950     dvidir=$ac_optarg ;;
    951 
    952   -enable-* | --enable-*)
    953     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    954     # Reject names that are not valid shell variable names.
    955     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    956       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    957    { (exit 1); exit 1; }; }
    958     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    959     eval enable_$ac_feature=\$ac_optarg ;;
    960 
    961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    963   | --exec | --exe | --ex)
    964     ac_prev=exec_prefix ;;
    965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    967   | --exec=* | --exe=* | --ex=*)
    968     exec_prefix=$ac_optarg ;;
    969 
    970   -gas | --gas | --ga | --g)
    971     # Obsolete; use --with-gas.
    972     with_gas=yes ;;
    973 
    974   -help | --help | --hel | --he | -h)
    975     ac_init_help=long ;;
    976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    977     ac_init_help=recursive ;;
    978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    979     ac_init_help=short ;;
    980 
    981   -host | --host | --hos | --ho)
    982     ac_prev=host_alias ;;
    983   -host=* | --host=* | --hos=* | --ho=*)
    984     host_alias=$ac_optarg ;;
    985 
    986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    987     ac_prev=htmldir ;;
    988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    989   | --ht=*)
    990     htmldir=$ac_optarg ;;
    991 
    992   -includedir | --includedir | --includedi | --included | --include \
    993   | --includ | --inclu | --incl | --inc)
    994     ac_prev=includedir ;;
    995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    996   | --includ=* | --inclu=* | --incl=* | --inc=*)
    997     includedir=$ac_optarg ;;
    998 
    999   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1000     ac_prev=infodir ;;
   1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1002     infodir=$ac_optarg ;;
   1003 
   1004   -libdir | --libdir | --libdi | --libd)
   1005     ac_prev=libdir ;;
   1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1007     libdir=$ac_optarg ;;
   1008 
   1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1010   | --libexe | --libex | --libe)
   1011     ac_prev=libexecdir ;;
   1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1013   | --libexe=* | --libex=* | --libe=*)
   1014     libexecdir=$ac_optarg ;;
   1015 
   1016   -localedir | --localedir | --localedi | --localed | --locale)
   1017     ac_prev=localedir ;;
   1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1019     localedir=$ac_optarg ;;
   1020 
   1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1022   | --localstate | --localstat | --localsta | --localst | --locals)
   1023     ac_prev=localstatedir ;;
   1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1026     localstatedir=$ac_optarg ;;
   1027 
   1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1029     ac_prev=mandir ;;
   1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1031     mandir=$ac_optarg ;;
   1032 
   1033   -nfp | --nfp | --nf)
   1034     # Obsolete; use --without-fp.
   1035     with_fp=no ;;
   1036 
   1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1038   | --no-cr | --no-c | -n)
   1039     no_create=yes ;;
   1040 
   1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1043     no_recursion=yes ;;
   1044 
   1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1047   | --oldin | --oldi | --old | --ol | --o)
   1048     ac_prev=oldincludedir ;;
   1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1052     oldincludedir=$ac_optarg ;;
   1053 
   1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1055     ac_prev=prefix ;;
   1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1057     prefix=$ac_optarg ;;
   1058 
   1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1060   | --program-pre | --program-pr | --program-p)
   1061     ac_prev=program_prefix ;;
   1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1064     program_prefix=$ac_optarg ;;
   1065 
   1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1067   | --program-suf | --program-su | --program-s)
   1068     ac_prev=program_suffix ;;
   1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1071     program_suffix=$ac_optarg ;;
   1072 
   1073   -program-transform-name | --program-transform-name \
   1074   | --program-transform-nam | --program-transform-na \
   1075   | --program-transform-n | --program-transform- \
   1076   | --program-transform | --program-transfor \
   1077   | --program-transfo | --program-transf \
   1078   | --program-trans | --program-tran \
   1079   | --progr-tra | --program-tr | --program-t)
   1080     ac_prev=program_transform_name ;;
   1081   -program-transform-name=* | --program-transform-name=* \
   1082   | --program-transform-nam=* | --program-transform-na=* \
   1083   | --program-transform-n=* | --program-transform-=* \
   1084   | --program-transform=* | --program-transfor=* \
   1085   | --program-transfo=* | --program-transf=* \
   1086   | --program-trans=* | --program-tran=* \
   1087   | --progr-tra=* | --program-tr=* | --program-t=*)
   1088     program_transform_name=$ac_optarg ;;
   1089 
   1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1091     ac_prev=pdfdir ;;
   1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1093     pdfdir=$ac_optarg ;;
   1094 
   1095   -psdir | --psdir | --psdi | --psd | --ps)
   1096     ac_prev=psdir ;;
   1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1098     psdir=$ac_optarg ;;
   1099 
   1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1101   | -silent | --silent | --silen | --sile | --sil)
   1102     silent=yes ;;
   1103 
   1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1105     ac_prev=sbindir ;;
   1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1107   | --sbi=* | --sb=*)
   1108     sbindir=$ac_optarg ;;
   1109 
   1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1112   | --sharedst | --shareds | --shared | --share | --shar \
   1113   | --sha | --sh)
   1114     ac_prev=sharedstatedir ;;
   1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1118   | --sha=* | --sh=*)
   1119     sharedstatedir=$ac_optarg ;;
   1120 
   1121   -site | --site | --sit)
   1122     ac_prev=site ;;
   1123   -site=* | --site=* | --sit=*)
   1124     site=$ac_optarg ;;
   1125 
   1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1127     ac_prev=srcdir ;;
   1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1129     srcdir=$ac_optarg ;;
   1130 
   1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1132   | --syscon | --sysco | --sysc | --sys | --sy)
   1133     ac_prev=sysconfdir ;;
   1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1136     sysconfdir=$ac_optarg ;;
   1137 
   1138   -target | --target | --targe | --targ | --tar | --ta | --t)
   1139     ac_prev=target_alias ;;
   1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1141     target_alias=$ac_optarg ;;
   1142 
   1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1144     verbose=yes ;;
   1145 
   1146   -version | --version | --versio | --versi | --vers | -V)
   1147     ac_init_version=: ;;
   1148 
   1149   -with-* | --with-*)
   1150     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   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=\$ac_optarg ;;
   1157 
   1158   -without-* | --without-*)
   1159     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1160     # Reject names that are not valid shell variable names.
   1161     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1162       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1163    { (exit 1); exit 1; }; }
   1164     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1165     eval with_$ac_package=no ;;
   1166 
   1167   --x)
   1168     # Obsolete; use --with-x.
   1169     with_x=yes ;;
   1170 
   1171   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1172   | --x-incl | --x-inc | --x-in | --x-i)
   1173     ac_prev=x_includes ;;
   1174   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1175   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1176     x_includes=$ac_optarg ;;
   1177 
   1178   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1179   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1180     ac_prev=x_libraries ;;
   1181   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1182   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1183     x_libraries=$ac_optarg ;;
   1184 
   1185   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1186 Try \`$0 --help' for more information." >&2
   1187    { (exit 1); exit 1; }; }
   1188     ;;
   1189 
   1190   *=*)
   1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1192     # Reject names that are not valid shell variable names.
   1193     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1194       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1195    { (exit 1); exit 1; }; }
   1196     eval $ac_envvar=\$ac_optarg
   1197     export $ac_envvar ;;
   1198 
   1199   *)
   1200     # FIXME: should be removed in autoconf 3.0.
   1201     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1202     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1203       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1204     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1205     ;;
   1206 
   1207   esac
   1208 done
   1209 
   1210 if test -n "$ac_prev"; then
   1211   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1212   { echo "$as_me: error: missing argument to $ac_option" >&2
   1213    { (exit 1); exit 1; }; }
   1214 fi
   1215 
   1216 # Be sure to have absolute directory names.
   1217 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1218 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1219 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1220 		libdir localedir mandir
   1221 do
   1222   eval ac_val=\$$ac_var
   1223   case $ac_val in
   1224     [\\/$]* | ?:[\\/]* )  continue;;
   1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1226   esac
   1227   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1228    { (exit 1); exit 1; }; }
   1229 done
   1230 
   1231 # There might be people who depend on the old broken behavior: `$host'
   1232 # used to hold the argument of --host etc.
   1233 # FIXME: To remove some day.
   1234 build=$build_alias
   1235 host=$host_alias
   1236 target=$target_alias
   1237 
   1238 # FIXME: To remove some day.
   1239 if test "x$host_alias" != x; then
   1240   if test "x$build_alias" = x; then
   1241     cross_compiling=maybe
   1242     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1243     If a cross compiler is detected then cross compile mode will be used." >&2
   1244   elif test "x$build_alias" != "x$host_alias"; then
   1245     cross_compiling=yes
   1246   fi
   1247 fi
   1248 
   1249 ac_tool_prefix=
   1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1251 
   1252 test "$silent" = yes && exec 6>/dev/null
   1253 
   1254 
   1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1256 ac_ls_di=`ls -di .` &&
   1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1258   { echo "$as_me: error: Working directory cannot be determined" >&2
   1259    { (exit 1); exit 1; }; }
   1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1261   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1262    { (exit 1); exit 1; }; }
   1263 
   1264 
   1265 # Find the source files, if location was not specified.
   1266 if test -z "$srcdir"; then
   1267   ac_srcdir_defaulted=yes
   1268   # Try the directory containing this script, then the parent directory.
   1269   ac_confdir=`$as_dirname -- "$0" ||
   1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1271 	 X"$0" : 'X\(//\)[^/]' \| \
   1272 	 X"$0" : 'X\(//\)$' \| \
   1273 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1274 echo X"$0" |
   1275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1276 	    s//\1/
   1277 	    q
   1278 	  }
   1279 	  /^X\(\/\/\)[^/].*/{
   1280 	    s//\1/
   1281 	    q
   1282 	  }
   1283 	  /^X\(\/\/\)$/{
   1284 	    s//\1/
   1285 	    q
   1286 	  }
   1287 	  /^X\(\/\).*/{
   1288 	    s//\1/
   1289 	    q
   1290 	  }
   1291 	  s/.*/./; q'`
   1292   srcdir=$ac_confdir
   1293   if test ! -r "$srcdir/$ac_unique_file"; then
   1294     srcdir=..
   1295   fi
   1296 else
   1297   ac_srcdir_defaulted=no
   1298 fi
   1299 if test ! -r "$srcdir/$ac_unique_file"; then
   1300   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1301   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1302    { (exit 1); exit 1; }; }
   1303 fi
   1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1305 ac_abs_confdir=`(
   1306 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1307    { (exit 1); exit 1; }; }
   1308 	pwd)`
   1309 # When building in place, set srcdir=.
   1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1311   srcdir=.
   1312 fi
   1313 # Remove unnecessary trailing slashes from srcdir.
   1314 # Double slashes in file names in object file debugging info
   1315 # mess up M-x gdb in Emacs.
   1316 case $srcdir in
   1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1318 esac
   1319 for ac_var in $ac_precious_vars; do
   1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1321   eval ac_env_${ac_var}_value=\$${ac_var}
   1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1324 done
   1325 
   1326 #
   1327 # Report the --help message.
   1328 #
   1329 if test "$ac_init_help" = "long"; then
   1330   # Omit some internal or obsolete options to make the list less imposing.
   1331   # This message is too long to be a string in the A/UX 3.1 sh.
   1332   cat <<_ACEOF
   1333 \`configure' configures llvm 3.0 to adapt to many kinds of systems.
   1334 
   1335 Usage: $0 [OPTION]... [VAR=VALUE]...
   1336 
   1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1339 
   1340 Defaults for the options are specified in brackets.
   1341 
   1342 Configuration:
   1343   -h, --help              display this help and exit
   1344       --help=short        display options specific to this package
   1345       --help=recursive    display the short help of all the included packages
   1346   -V, --version           display version information and exit
   1347   -q, --quiet, --silent   do not print \`checking...' messages
   1348       --cache-file=FILE   cache test results in FILE [disabled]
   1349   -C, --config-cache      alias for \`--cache-file=config.cache'
   1350   -n, --no-create         do not create output files
   1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1352 
   1353 Installation directories:
   1354   --prefix=PREFIX         install architecture-independent files in PREFIX
   1355 			  [$ac_default_prefix]
   1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1357 			  [PREFIX]
   1358 
   1359 By default, \`make install' will install all the files in
   1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1362 for instance \`--prefix=\$HOME'.
   1363 
   1364 For better control, use the options below.
   1365 
   1366 Fine tuning of the installation directories:
   1367   --bindir=DIR           user executables [EPREFIX/bin]
   1368   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1369   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1370   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1371   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1372   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1373   --libdir=DIR           object code libraries [EPREFIX/lib]
   1374   --includedir=DIR       C header files [PREFIX/include]
   1375   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1376   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1377   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1378   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1379   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1380   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1381   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
   1382   --htmldir=DIR          html documentation [DOCDIR]
   1383   --dvidir=DIR           dvi documentation [DOCDIR]
   1384   --pdfdir=DIR           pdf documentation [DOCDIR]
   1385   --psdir=DIR            ps documentation [DOCDIR]
   1386 _ACEOF
   1387 
   1388   cat <<\_ACEOF
   1389 
   1390 System types:
   1391   --build=BUILD     configure for building on BUILD [guessed]
   1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1393   --target=TARGET   configure for building compilers for TARGET [HOST]
   1394 _ACEOF
   1395 fi
   1396 
   1397 if test -n "$ac_init_help"; then
   1398   case $ac_init_help in
   1399      short | recursive ) echo "Configuration of llvm 3.0:";;
   1400    esac
   1401   cat <<\_ACEOF
   1402 
   1403 Optional Features:
   1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1406   --enable-polly          Use polly if available (default is YES)
   1407   --enable-optimized      Compile with optimizations enabled (default is YES)
   1408   --enable-profiling      Compile with profiling enabled (default is NO)
   1409   --enable-assertions     Compile with assertion checks enabled (default is
   1410                           NO)
   1411   --enable-expensive-checks
   1412                           Compile with expensive debug checks enabled (default
   1413                           is NO)
   1414   --enable-debug-runtime  Build runtime libs with debug symbols (default is
   1415                           NO)
   1416   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
   1417                           optimization is on and YES if it's off)
   1418   --enable-jit            Enable Just In Time Compiling (default is YES)
   1419   --enable-docs           Build documents (default is YES)
   1420   --enable-doxygen        Build doxygen documentation (default is NO)
   1421   --enable-threads        Use threads if available (default is YES)
   1422   --enable-pthreads       Use pthreads if available (default is YES)
   1423   --enable-pic            Build LLVM with Position Independent Code (default
   1424                           is YES)
   1425   --enable-shared         Build a shared library and link tools against it
   1426                           (default is NO)
   1427   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
   1428                           Win32 DLL (default is NO)
   1429   --enable-timestamps     Enable embedding timestamp information in build
   1430                           (default is YES)
   1431   --enable-targets        Build specific host targets: all or
   1432                           target1,target2,... Valid targets are: host, x86,
   1433                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
   1434                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
   1435                           (default=all)
   1436   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
   1437                           %a (default is YES)
   1438   --enable-bindings       Build specific language bindings:
   1439                           all,auto,none,{binding-name} (default=auto)
   1440   --enable-libffi         Check for the presence of libffi (default is NO)
   1441   --enable-ltdl-install   install libltdl
   1442 
   1443 Optional Packages:
   1444   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1445   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1446   --with-optimize-option  Select the compiler options to use for optimized
   1447                           builds
   1448   --with-extra-options    Specify additional options to compile LLVM with
   1449   --with-extra-ld-options Specify additional options to link LLVM with
   1450   --with-ocaml-libdir     Specify install location for ocaml bindings (default
   1451                           is stdlib)
   1452   --with-clang-resource-dir
   1453                           Relative directory from the Clang binary for
   1454                           resource files
   1455   --with-c-include-dirs   Colon separated list of directories clang will
   1456                           search for headers
   1457   --with-cxx-include-root Directory with the libstdc++ headers.
   1458   --with-cxx-include-arch Architecture of the libstdc++ headers.
   1459   --with-cxx-include-32bit-dir
   1460                           32 bit multilib dir.
   1461   --with-cxx-include-64bit-dir
   1462                           64 bit multilib directory.
   1463   --with-binutils-include Specify path to binutils/include/ containing
   1464                           plugin-api.h file for gold plugin.
   1465   --with-bug-report-url   Specify the URL where bug reports should be
   1466                           submitted (default=http://llvm.org/bugs/)
   1467   --with-tclinclude       directory where tcl headers are
   1468   --with-udis86=<path>    Use udis86 external x86 disassembler library
   1469   --with-oprofile=<prefix>
   1470                           Tell OProfile >= 0.9.4 how to symbolize JIT output
   1471 
   1472 Some influential environment variables:
   1473   CC          C compiler command
   1474   CFLAGS      C compiler flags
   1475   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1476               nonstandard directory <lib dir>
   1477   LIBS        libraries to pass to the linker, e.g. -l<library>
   1478   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1479               you have headers in a nonstandard directory <include dir>
   1480   CXX         C++ compiler command
   1481   CXXFLAGS    C++ compiler flags
   1482   CPP         C preprocessor
   1483 
   1484 Use these variables to override the choices made by `configure' or to help
   1485 it to find libraries and programs with nonstandard names/locations.
   1486 
   1487 Report bugs to <llvmbugs (at] cs.uiuc.edu>.
   1488 _ACEOF
   1489 ac_status=$?
   1490 fi
   1491 
   1492 if test "$ac_init_help" = "recursive"; then
   1493   # If there are subdirs, report their specific --help.
   1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1495     test -d "$ac_dir" || continue
   1496     ac_builddir=.
   1497 
   1498 case "$ac_dir" in
   1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1500 *)
   1501   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1502   # A ".." for each directory in $ac_dir_suffix.
   1503   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1504   case $ac_top_builddir_sub in
   1505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1507   esac ;;
   1508 esac
   1509 ac_abs_top_builddir=$ac_pwd
   1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1511 # for backward compatibility:
   1512 ac_top_builddir=$ac_top_build_prefix
   1513 
   1514 case $srcdir in
   1515   .)  # We are building in place.
   1516     ac_srcdir=.
   1517     ac_top_srcdir=$ac_top_builddir_sub
   1518     ac_abs_top_srcdir=$ac_pwd ;;
   1519   [\\/]* | ?:[\\/]* )  # Absolute name.
   1520     ac_srcdir=$srcdir$ac_dir_suffix;
   1521     ac_top_srcdir=$srcdir
   1522     ac_abs_top_srcdir=$srcdir ;;
   1523   *) # Relative name.
   1524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1525     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1527 esac
   1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1529 
   1530     cd "$ac_dir" || { ac_status=$?; continue; }
   1531     # Check for guested configure.
   1532     if test -f "$ac_srcdir/configure.gnu"; then
   1533       echo &&
   1534       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1535     elif test -f "$ac_srcdir/configure"; then
   1536       echo &&
   1537       $SHELL "$ac_srcdir/configure" --help=recursive
   1538     else
   1539       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1540     fi || ac_status=$?
   1541     cd "$ac_pwd" || { ac_status=$?; break; }
   1542   done
   1543 fi
   1544 
   1545 test -n "$ac_init_help" && exit $ac_status
   1546 if $ac_init_version; then
   1547   cat <<\_ACEOF
   1548 llvm configure 3.0
   1549 generated by GNU Autoconf 2.61
   1550 
   1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1552 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1553 This configure script is free software; the Free Software Foundation
   1554 gives unlimited permission to copy, distribute and modify it.
   1555 
   1556 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
   1557 _ACEOF
   1558   exit
   1559 fi
   1560 cat >config.log <<_ACEOF
   1561 This file contains any messages produced by compilers while
   1562 running configure, to aid debugging if configure makes a mistake.
   1563 
   1564 It was created by llvm $as_me 3.0, which was
   1565 generated by GNU Autoconf 2.61.  Invocation command line was
   1566 
   1567   $ $0 $@
   1568 
   1569 _ACEOF
   1570 exec 5>>config.log
   1571 {
   1572 cat <<_ASUNAME
   1573 ## --------- ##
   1574 ## Platform. ##
   1575 ## --------- ##
   1576 
   1577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1582 
   1583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1584 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1585 
   1586 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1587 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1589 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1590 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1591 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1592 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1593 
   1594 _ASUNAME
   1595 
   1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1597 for as_dir in $PATH
   1598 do
   1599   IFS=$as_save_IFS
   1600   test -z "$as_dir" && as_dir=.
   1601   echo "PATH: $as_dir"
   1602 done
   1603 IFS=$as_save_IFS
   1604 
   1605 } >&5
   1606 
   1607 cat >&5 <<_ACEOF
   1608 
   1609 
   1610 ## ----------- ##
   1611 ## Core tests. ##
   1612 ## ----------- ##
   1613 
   1614 _ACEOF
   1615 
   1616 
   1617 # Keep a trace of the command line.
   1618 # Strip out --no-create and --no-recursion so they do not pile up.
   1619 # Strip out --silent because we don't want to record it for future runs.
   1620 # Also quote any args containing shell meta-characters.
   1621 # Make two passes to allow for proper duplicate-argument suppression.
   1622 ac_configure_args=
   1623 ac_configure_args0=
   1624 ac_configure_args1=
   1625 ac_must_keep_next=false
   1626 for ac_pass in 1 2
   1627 do
   1628   for ac_arg
   1629   do
   1630     case $ac_arg in
   1631     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1632     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1633     | -silent | --silent | --silen | --sile | --sil)
   1634       continue ;;
   1635     *\'*)
   1636       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1637     esac
   1638     case $ac_pass in
   1639     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1640     2)
   1641       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1642       if test $ac_must_keep_next = true; then
   1643 	ac_must_keep_next=false # Got value, back to normal.
   1644       else
   1645 	case $ac_arg in
   1646 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1647 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1648 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1649 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1650 	    case "$ac_configure_args0 " in
   1651 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1652 	    esac
   1653 	    ;;
   1654 	  -* ) ac_must_keep_next=true ;;
   1655 	esac
   1656       fi
   1657       ac_configure_args="$ac_configure_args '$ac_arg'"
   1658       ;;
   1659     esac
   1660   done
   1661 done
   1662 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1663 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1664 
   1665 # When interrupted or exit'd, cleanup temporary files, and complete
   1666 # config.log.  We remove comments because anyway the quotes in there
   1667 # would cause problems or look ugly.
   1668 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1670 trap 'exit_status=$?
   1671   # Save into config.log some information that might help in debugging.
   1672   {
   1673     echo
   1674 
   1675     cat <<\_ASBOX
   1676 ## ---------------- ##
   1677 ## Cache variables. ##
   1678 ## ---------------- ##
   1679 _ASBOX
   1680     echo
   1681     # The following way of writing the cache mishandles newlines in values,
   1682 (
   1683   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1684     eval ac_val=\$$ac_var
   1685     case $ac_val in #(
   1686     *${as_nl}*)
   1687       case $ac_var in #(
   1688       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1689 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1690       esac
   1691       case $ac_var in #(
   1692       _ | IFS | as_nl) ;; #(
   1693       *) $as_unset $ac_var ;;
   1694       esac ;;
   1695     esac
   1696   done
   1697   (set) 2>&1 |
   1698     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1699     *${as_nl}ac_space=\ *)
   1700       sed -n \
   1701 	"s/'\''/'\''\\\\'\'''\''/g;
   1702 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1703       ;; #(
   1704     *)
   1705       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1706       ;;
   1707     esac |
   1708     sort
   1709 )
   1710     echo
   1711 
   1712     cat <<\_ASBOX
   1713 ## ----------------- ##
   1714 ## Output variables. ##
   1715 ## ----------------- ##
   1716 _ASBOX
   1717     echo
   1718     for ac_var in $ac_subst_vars
   1719     do
   1720       eval ac_val=\$$ac_var
   1721       case $ac_val in
   1722       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1723       esac
   1724       echo "$ac_var='\''$ac_val'\''"
   1725     done | sort
   1726     echo
   1727 
   1728     if test -n "$ac_subst_files"; then
   1729       cat <<\_ASBOX
   1730 ## ------------------- ##
   1731 ## File substitutions. ##
   1732 ## ------------------- ##
   1733 _ASBOX
   1734       echo
   1735       for ac_var in $ac_subst_files
   1736       do
   1737 	eval ac_val=\$$ac_var
   1738 	case $ac_val in
   1739 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1740 	esac
   1741 	echo "$ac_var='\''$ac_val'\''"
   1742       done | sort
   1743       echo
   1744     fi
   1745 
   1746     if test -s confdefs.h; then
   1747       cat <<\_ASBOX
   1748 ## ----------- ##
   1749 ## confdefs.h. ##
   1750 ## ----------- ##
   1751 _ASBOX
   1752       echo
   1753       cat confdefs.h
   1754       echo
   1755     fi
   1756     test "$ac_signal" != 0 &&
   1757       echo "$as_me: caught signal $ac_signal"
   1758     echo "$as_me: exit $exit_status"
   1759   } >&5
   1760   rm -f core *.core core.conftest.* &&
   1761     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1762     exit $exit_status
   1763 ' 0
   1764 for ac_signal in 1 2 13 15; do
   1765   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1766 done
   1767 ac_signal=0
   1768 
   1769 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1770 rm -f -r conftest* confdefs.h
   1771 
   1772 # Predefined preprocessor variables.
   1773 
   1774 cat >>confdefs.h <<_ACEOF
   1775 #define PACKAGE_NAME "$PACKAGE_NAME"
   1776 _ACEOF
   1777 
   1778 
   1779 cat >>confdefs.h <<_ACEOF
   1780 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1781 _ACEOF
   1782 
   1783 
   1784 cat >>confdefs.h <<_ACEOF
   1785 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1786 _ACEOF
   1787 
   1788 
   1789 cat >>confdefs.h <<_ACEOF
   1790 #define PACKAGE_STRING "$PACKAGE_STRING"
   1791 _ACEOF
   1792 
   1793 
   1794 cat >>confdefs.h <<_ACEOF
   1795 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1796 _ACEOF
   1797 
   1798 
   1799 # Let the site file select an alternate cache file if it wants to.
   1800 # Prefer explicitly selected file to automatically selected ones.
   1801 if test -n "$CONFIG_SITE"; then
   1802   set x "$CONFIG_SITE"
   1803 elif test "x$prefix" != xNONE; then
   1804   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1805 else
   1806   set x "$ac_default_prefix/share/config.site" \
   1807 	"$ac_default_prefix/etc/config.site"
   1808 fi
   1809 shift
   1810 for ac_site_file
   1811 do
   1812   if test -r "$ac_site_file"; then
   1813     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1814 echo "$as_me: loading site script $ac_site_file" >&6;}
   1815     sed 's/^/| /' "$ac_site_file" >&5
   1816     . "$ac_site_file"
   1817   fi
   1818 done
   1819 
   1820 if test -r "$cache_file"; then
   1821   # Some versions of bash will fail to source /dev/null (special
   1822   # files actually), so we avoid doing that.
   1823   if test -f "$cache_file"; then
   1824     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1825 echo "$as_me: loading cache $cache_file" >&6;}
   1826     case $cache_file in
   1827       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1828       *)                      . "./$cache_file";;
   1829     esac
   1830   fi
   1831 else
   1832   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1833 echo "$as_me: creating cache $cache_file" >&6;}
   1834   >$cache_file
   1835 fi
   1836 
   1837 # Check that the precious variables saved in the cache have kept the same
   1838 # value.
   1839 ac_cache_corrupted=false
   1840 for ac_var in $ac_precious_vars; do
   1841   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1842   eval ac_new_set=\$ac_env_${ac_var}_set
   1843   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1844   eval ac_new_val=\$ac_env_${ac_var}_value
   1845   case $ac_old_set,$ac_new_set in
   1846     set,)
   1847       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1848 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1849       ac_cache_corrupted=: ;;
   1850     ,set)
   1851       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1852 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1853       ac_cache_corrupted=: ;;
   1854     ,);;
   1855     *)
   1856       if test "x$ac_old_val" != "x$ac_new_val"; then
   1857 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1858 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1859 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1860 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1861 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1862 echo "$as_me:   current value: $ac_new_val" >&2;}
   1863 	ac_cache_corrupted=:
   1864       fi;;
   1865   esac
   1866   # Pass precious variables to config.status.
   1867   if test "$ac_new_set" = set; then
   1868     case $ac_new_val in
   1869     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1870     *) ac_arg=$ac_var=$ac_new_val ;;
   1871     esac
   1872     case " $ac_configure_args " in
   1873       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1874       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1875     esac
   1876   fi
   1877 done
   1878 if $ac_cache_corrupted; then
   1879   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1880 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1881   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1882 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1883    { (exit 1); exit 1; }; }
   1884 fi
   1885 
   1886 
   1887 
   1888 
   1889 
   1890 
   1891 
   1892 
   1893 
   1894 
   1895 
   1896 
   1897 
   1898 
   1899 
   1900 
   1901 
   1902 
   1903 
   1904 
   1905 
   1906 
   1907 
   1908 
   1909 
   1910 ac_ext=c
   1911 ac_cpp='$CPP $CPPFLAGS'
   1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1915 
   1916 
   1917 
   1918 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
   1919 
   1920 
   1921 
   1922 
   1923 
   1924 
   1925 
   1926 ac_aux_dir=
   1927 for ac_dir in autoconf "$srcdir"/autoconf; do
   1928   if test -f "$ac_dir/install-sh"; then
   1929     ac_aux_dir=$ac_dir
   1930     ac_install_sh="$ac_aux_dir/install-sh -c"
   1931     break
   1932   elif test -f "$ac_dir/install.sh"; then
   1933     ac_aux_dir=$ac_dir
   1934     ac_install_sh="$ac_aux_dir/install.sh -c"
   1935     break
   1936   elif test -f "$ac_dir/shtool"; then
   1937     ac_aux_dir=$ac_dir
   1938     ac_install_sh="$ac_aux_dir/shtool install -c"
   1939     break
   1940   fi
   1941 done
   1942 if test -z "$ac_aux_dir"; then
   1943   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
   1944 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
   1945    { (exit 1); exit 1; }; }
   1946 fi
   1947 
   1948 # These three variables are undocumented and unsupported,

   1949 # and are intended to be withdrawn in a future Autoconf release.

   1950 # They can cause serious problems if a builder's source tree is in a directory

   1951 # whose full name contains unusual characters.

   1952 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.

   1953 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.

   1954 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.

   1955 
   1956 
   1957 
   1958 if test ${srcdir} != "." ; then
   1959   if test -f ${srcdir}/include/llvm/Config/config.h ; then
   1960     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
   1961 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
   1962    { (exit 1); exit 1; }; }
   1963   fi
   1964 fi
   1965 
   1966 ac_ext=c
   1967 ac_cpp='$CPP $CPPFLAGS'
   1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1971 if test -n "$ac_tool_prefix"; then
   1972   for ac_prog in clang llvm-gcc gcc
   1973   do
   1974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.

   1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1978 if test "${ac_cv_prog_CC+set}" = set; then
   1979   echo $ECHO_N "(cached) $ECHO_C" >&6
   1980 else
   1981   if test -n "$CC"; then
   1982   ac_cv_prog_CC="$CC" # Let the user override the test.

   1983 else
   1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1985 for as_dir in $PATH
   1986 do
   1987   IFS=$as_save_IFS
   1988   test -z "$as_dir" && as_dir=.
   1989   for ac_exec_ext in '' $ac_executable_extensions; do
   1990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1993     break 2
   1994   fi
   1995 done
   1996 done
   1997 IFS=$as_save_IFS
   1998 
   1999 fi
   2000 fi
   2001 CC=$ac_cv_prog_CC
   2002 if test -n "$CC"; then
   2003   { echo "$as_me:$LINENO: result: $CC" >&5
   2004 echo "${ECHO_T}$CC" >&6; }
   2005 else
   2006   { echo "$as_me:$LINENO: result: no" >&5
   2007 echo "${ECHO_T}no" >&6; }
   2008 fi
   2009 
   2010 
   2011     test -n "$CC" && break
   2012   done
   2013 fi
   2014 if test -z "$CC"; then
   2015   ac_ct_CC=$CC
   2016   for ac_prog in clang llvm-gcc gcc
   2017 do
   2018   # Extract the first word of "$ac_prog", so it can be a program name with args.

   2019 set dummy $ac_prog; ac_word=$2
   2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2023   echo $ECHO_N "(cached) $ECHO_C" >&6
   2024 else
   2025   if test -n "$ac_ct_CC"; then
   2026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.

   2027 else
   2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2029 for as_dir in $PATH
   2030 do
   2031   IFS=$as_save_IFS
   2032   test -z "$as_dir" && as_dir=.
   2033   for ac_exec_ext in '' $ac_executable_extensions; do
   2034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2035     ac_cv_prog_ac_ct_CC="$ac_prog"
   2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2037     break 2
   2038   fi
   2039 done
   2040 done
   2041 IFS=$as_save_IFS
   2042 
   2043 fi
   2044 fi
   2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2046 if test -n "$ac_ct_CC"; then
   2047   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2049 else
   2050   { echo "$as_me:$LINENO: result: no" >&5
   2051 echo "${ECHO_T}no" >&6; }
   2052 fi
   2053 
   2054 
   2055   test -n "$ac_ct_CC" && break
   2056 done
   2057 
   2058   if test "x$ac_ct_CC" = x; then
   2059     CC=""
   2060   else
   2061     case $cross_compiling:$ac_tool_warned in
   2062 yes:)
   2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2064 whose name does not start with the host triplet.  If you think this
   2065 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2067 whose name does not start with the host triplet.  If you think this
   2068 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2069 ac_tool_warned=yes ;;
   2070 esac
   2071     CC=$ac_ct_CC
   2072   fi
   2073 fi
   2074 
   2075 
   2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2077 See \`config.log' for more details." >&5
   2078 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2079 See \`config.log' for more details." >&2;}
   2080    { (exit 1); exit 1; }; }
   2081 
   2082 # Provide some information about the compiler.
   2083 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2084 ac_compiler=`set X $ac_compile; echo $2`
   2085 { (ac_try="$ac_compiler --version >&5"
   2086 case "(($ac_try" in
   2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2088   *) ac_try_echo=$ac_try;;
   2089 esac
   2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2091   (eval "$ac_compiler --version >&5") 2>&5
   2092   ac_status=$?
   2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2094   (exit $ac_status); }
   2095 { (ac_try="$ac_compiler -v >&5"
   2096 case "(($ac_try" in
   2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2098   *) ac_try_echo=$ac_try;;
   2099 esac
   2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2101   (eval "$ac_compiler -v >&5") 2>&5
   2102   ac_status=$?
   2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2104   (exit $ac_status); }
   2105 { (ac_try="$ac_compiler -V >&5"
   2106 case "(($ac_try" in
   2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2108   *) ac_try_echo=$ac_try;;
   2109 esac
   2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2111   (eval "$ac_compiler -V >&5") 2>&5
   2112   ac_status=$?
   2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2114   (exit $ac_status); }
   2115 
   2116 cat >conftest.$ac_ext <<_ACEOF
   2117 /* confdefs.h.  */
   2118 _ACEOF
   2119 cat confdefs.h >>conftest.$ac_ext
   2120 cat >>conftest.$ac_ext <<_ACEOF
   2121 /* end confdefs.h.  */
   2122 
   2123 int
   2124 main ()
   2125 {
   2126 
   2127   ;
   2128   return 0;
   2129 }
   2130 _ACEOF
   2131 ac_clean_files_save=$ac_clean_files
   2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2133 # Try to create an executable without -o first, disregard a.out.

   2134 # It will help us diagnose broken compilers, and finding out an intuition

   2135 # of exeext.

   2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2139 #

   2140 # List of possible output files, starting from the most likely.

   2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)

   2142 # only as a last resort.  b.out is created by i960 compilers.

   2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2144 #

   2145 # The IRIX 6 linker writes into existing files which may not be

   2146 # executable, retaining their permissions.  Remove them first so a

   2147 # subsequent execution test works.

   2148 ac_rmfiles=
   2149 for ac_file in $ac_files
   2150 do
   2151   case $ac_file in
   2152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2153     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2154   esac
   2155 done
   2156 rm -f $ac_rmfiles
   2157 
   2158 if { (ac_try="$ac_link_default"
   2159 case "(($ac_try" in
   2160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2161   *) ac_try_echo=$ac_try;;
   2162 esac
   2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2164   (eval "$ac_link_default") 2>&5
   2165   ac_status=$?
   2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2167   (exit $ac_status); }; then
   2168   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.

   2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'

   2170 # in a Makefile.  We should not override ac_cv_exeext if it was cached,

   2171 # so that the user can short-circuit this test for compilers unknown to

   2172 # Autoconf.

   2173 for ac_file in $ac_files ''
   2174 do
   2175   test -f "$ac_file" || continue
   2176   case $ac_file in
   2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2178 	;;
   2179     [ab].out )
   2180 	# We found the default executable, but exeext='' is most

   2181 	# certainly right.

   2182 	break;;
   2183     *.* )
   2184         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2185 	then :; else
   2186 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2187 	fi
   2188 	# We set ac_cv_exeext here because the later test for it is not

   2189 	# safe: cross compilers may not add the suffix if given an `-o'

   2190 	# argument, so we may need to know it at that point already.

   2191 	# Even if this section looks crufty: it has the advantage of

   2192 	# actually working.

   2193 	break;;
   2194     * )
   2195 	break;;
   2196   esac
   2197 done
   2198 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2199 
   2200 else
   2201   ac_file=''
   2202 fi
   2203 
   2204 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2205 echo "${ECHO_T}$ac_file" >&6; }
   2206 if test -z "$ac_file"; then
   2207   echo "$as_me: failed program was:" >&5
   2208 sed 's/^/| /' conftest.$ac_ext >&5
   2209 
   2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2211 See \`config.log' for more details." >&5
   2212 echo "$as_me: error: C compiler cannot create executables
   2213 See \`config.log' for more details." >&2;}
   2214    { (exit 77); exit 77; }; }
   2215 fi
   2216 
   2217 ac_exeext=$ac_cv_exeext
   2218 
   2219 # Check that the compiler produces executables we can run.  If not, either
   2220 # the compiler is broken, or we cross compile.
   2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2224 # If not cross compiling, check that we can run a simple program.
   2225 if test "$cross_compiling" != yes; then
   2226   if { ac_try='./$ac_file'
   2227   { (case "(($ac_try" in
   2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2229   *) ac_try_echo=$ac_try;;
   2230 esac
   2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2232   (eval "$ac_try") 2>&5
   2233   ac_status=$?
   2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2235   (exit $ac_status); }; }; then
   2236     cross_compiling=no
   2237   else
   2238     if test "$cross_compiling" = maybe; then
   2239 	cross_compiling=yes
   2240     else
   2241 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2242 If you meant to cross compile, use \`--host'.
   2243 See \`config.log' for more details." >&5
   2244 echo "$as_me: error: cannot run C compiled programs.
   2245 If you meant to cross compile, use \`--host'.
   2246 See \`config.log' for more details." >&2;}
   2247    { (exit 1); exit 1; }; }
   2248     fi
   2249   fi
   2250 fi
   2251 { echo "$as_me:$LINENO: result: yes" >&5
   2252 echo "${ECHO_T}yes" >&6; }
   2253 
   2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2255 ac_clean_files=$ac_clean_files_save
   2256 # Check that the compiler produces executables we can run.  If not, either
   2257 # the compiler is broken, or we cross compile.
   2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2261 echo "${ECHO_T}$cross_compiling" >&6; }
   2262 
   2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2265 if { (ac_try="$ac_link"
   2266 case "(($ac_try" in
   2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2268   *) ac_try_echo=$ac_try;;
   2269 esac
   2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2271   (eval "$ac_link") 2>&5
   2272   ac_status=$?
   2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2274   (exit $ac_status); }; then
   2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)

   2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will

   2277 # work properly (i.e., refer to `conftest.exe'), while it won't with

   2278 # `rm'.

   2279 for ac_file in conftest.exe conftest conftest.*; do
   2280   test -f "$ac_file" || continue
   2281   case $ac_file in
   2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2284 	  break;;
   2285     * ) break;;
   2286   esac
   2287 done
   2288 else
   2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2290 See \`config.log' for more details." >&5
   2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2292 See \`config.log' for more details." >&2;}
   2293    { (exit 1); exit 1; }; }
   2294 fi
   2295 
   2296 rm -f conftest$ac_cv_exeext
   2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2299 
   2300 rm -f conftest.$ac_ext
   2301 EXEEXT=$ac_cv_exeext
   2302 ac_exeext=$EXEEXT
   2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2305 if test "${ac_cv_objext+set}" = set; then
   2306   echo $ECHO_N "(cached) $ECHO_C" >&6
   2307 else
   2308   cat >conftest.$ac_ext <<_ACEOF
   2309 /* confdefs.h.  */
   2310 _ACEOF
   2311 cat confdefs.h >>conftest.$ac_ext
   2312 cat >>conftest.$ac_ext <<_ACEOF
   2313 /* end confdefs.h.  */
   2314 
   2315 int
   2316 main ()
   2317 {
   2318 
   2319   ;
   2320   return 0;
   2321 }
   2322 _ACEOF
   2323 rm -f conftest.o conftest.obj
   2324 if { (ac_try="$ac_compile"
   2325 case "(($ac_try" in
   2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2327   *) ac_try_echo=$ac_try;;
   2328 esac
   2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2330   (eval "$ac_compile") 2>&5
   2331   ac_status=$?
   2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2333   (exit $ac_status); }; then
   2334   for ac_file in conftest.o conftest.obj conftest.*; do
   2335   test -f "$ac_file" || continue;
   2336   case $ac_file in
   2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2339        break;;
   2340   esac
   2341 done
   2342 else
   2343   echo "$as_me: failed program was:" >&5
   2344 sed 's/^/| /' conftest.$ac_ext >&5
   2345 
   2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2347 See \`config.log' for more details." >&5
   2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2349 See \`config.log' for more details." >&2;}
   2350    { (exit 1); exit 1; }; }
   2351 fi
   2352 
   2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2354 fi
   2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2357 OBJEXT=$ac_cv_objext
   2358 ac_objext=$OBJEXT
   2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2362   echo $ECHO_N "(cached) $ECHO_C" >&6
   2363 else
   2364   cat >conftest.$ac_ext <<_ACEOF
   2365 /* confdefs.h.  */
   2366 _ACEOF
   2367 cat confdefs.h >>conftest.$ac_ext
   2368 cat >>conftest.$ac_ext <<_ACEOF
   2369 /* end confdefs.h.  */
   2370 
   2371 int
   2372 main ()
   2373 {
   2374 #ifndef __GNUC__
   2375        choke me
   2376 #endif
   2377 
   2378   ;
   2379   return 0;
   2380 }
   2381 _ACEOF
   2382 rm -f conftest.$ac_objext
   2383 if { (ac_try="$ac_compile"
   2384 case "(($ac_try" in
   2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2386   *) ac_try_echo=$ac_try;;
   2387 esac
   2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2389   (eval "$ac_compile") 2>conftest.er1
   2390   ac_status=$?
   2391   grep -v '^ *+' conftest.er1 >conftest.err
   2392   rm -f conftest.er1
   2393   cat conftest.err >&5
   2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2395   (exit $ac_status); } && {
   2396 	 test -z "$ac_c_werror_flag" ||
   2397 	 test ! -s conftest.err
   2398        } && test -s conftest.$ac_objext; then
   2399   ac_compiler_gnu=yes
   2400 else
   2401   echo "$as_me: failed program was:" >&5
   2402 sed 's/^/| /' conftest.$ac_ext >&5
   2403 
   2404 	ac_compiler_gnu=no
   2405 fi
   2406 
   2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2409 
   2410 fi
   2411 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2414 ac_test_CFLAGS=${CFLAGS+set}
   2415 ac_save_CFLAGS=$CFLAGS
   2416 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2417 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2418 if test "${ac_cv_prog_cc_g+set}" = set; then
   2419   echo $ECHO_N "(cached) $ECHO_C" >&6
   2420 else
   2421   ac_save_c_werror_flag=$ac_c_werror_flag
   2422    ac_c_werror_flag=yes
   2423    ac_cv_prog_cc_g=no
   2424    CFLAGS="-g"
   2425    cat >conftest.$ac_ext <<_ACEOF
   2426 /* confdefs.h.  */
   2427 _ACEOF
   2428 cat confdefs.h >>conftest.$ac_ext
   2429 cat >>conftest.$ac_ext <<_ACEOF
   2430 /* end confdefs.h.  */
   2431 
   2432 int
   2433 main ()
   2434 {
   2435 
   2436   ;
   2437   return 0;
   2438 }
   2439 _ACEOF
   2440 rm -f conftest.$ac_objext
   2441 if { (ac_try="$ac_compile"
   2442 case "(($ac_try" in
   2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2444   *) ac_try_echo=$ac_try;;
   2445 esac
   2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2447   (eval "$ac_compile") 2>conftest.er1
   2448   ac_status=$?
   2449   grep -v '^ *+' conftest.er1 >conftest.err
   2450   rm -f conftest.er1
   2451   cat conftest.err >&5
   2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2453   (exit $ac_status); } && {
   2454 	 test -z "$ac_c_werror_flag" ||
   2455 	 test ! -s conftest.err
   2456        } && test -s conftest.$ac_objext; then
   2457   ac_cv_prog_cc_g=yes
   2458 else
   2459   echo "$as_me: failed program was:" >&5
   2460 sed 's/^/| /' conftest.$ac_ext >&5
   2461 
   2462 	CFLAGS=""
   2463       cat >conftest.$ac_ext <<_ACEOF
   2464 /* confdefs.h.  */
   2465 _ACEOF
   2466 cat confdefs.h >>conftest.$ac_ext
   2467 cat >>conftest.$ac_ext <<_ACEOF
   2468 /* end confdefs.h.  */
   2469 
   2470 int
   2471 main ()
   2472 {
   2473 
   2474   ;
   2475   return 0;
   2476 }
   2477 _ACEOF
   2478 rm -f conftest.$ac_objext
   2479 if { (ac_try="$ac_compile"
   2480 case "(($ac_try" in
   2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2482   *) ac_try_echo=$ac_try;;
   2483 esac
   2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2485   (eval "$ac_compile") 2>conftest.er1
   2486   ac_status=$?
   2487   grep -v '^ *+' conftest.er1 >conftest.err
   2488   rm -f conftest.er1
   2489   cat conftest.err >&5
   2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2491   (exit $ac_status); } && {
   2492 	 test -z "$ac_c_werror_flag" ||
   2493 	 test ! -s conftest.err
   2494        } && test -s conftest.$ac_objext; then
   2495   :
   2496 else
   2497   echo "$as_me: failed program was:" >&5
   2498 sed 's/^/| /' conftest.$ac_ext >&5
   2499 
   2500 	ac_c_werror_flag=$ac_save_c_werror_flag
   2501 	 CFLAGS="-g"
   2502 	 cat >conftest.$ac_ext <<_ACEOF
   2503 /* confdefs.h.  */
   2504 _ACEOF
   2505 cat confdefs.h >>conftest.$ac_ext
   2506 cat >>conftest.$ac_ext <<_ACEOF
   2507 /* end confdefs.h.  */
   2508 
   2509 int
   2510 main ()
   2511 {
   2512 
   2513   ;
   2514   return 0;
   2515 }
   2516 _ACEOF
   2517 rm -f conftest.$ac_objext
   2518 if { (ac_try="$ac_compile"
   2519 case "(($ac_try" in
   2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2521   *) ac_try_echo=$ac_try;;
   2522 esac
   2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2524   (eval "$ac_compile") 2>conftest.er1
   2525   ac_status=$?
   2526   grep -v '^ *+' conftest.er1 >conftest.err
   2527   rm -f conftest.er1
   2528   cat conftest.err >&5
   2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2530   (exit $ac_status); } && {
   2531 	 test -z "$ac_c_werror_flag" ||
   2532 	 test ! -s conftest.err
   2533        } && test -s conftest.$ac_objext; then
   2534   ac_cv_prog_cc_g=yes
   2535 else
   2536   echo "$as_me: failed program was:" >&5
   2537 sed 's/^/| /' conftest.$ac_ext >&5
   2538 
   2539 
   2540 fi
   2541 
   2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2543 fi
   2544 
   2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2546 fi
   2547 
   2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2549    ac_c_werror_flag=$ac_save_c_werror_flag
   2550 fi
   2551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2552 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2553 if test "$ac_test_CFLAGS" = set; then
   2554   CFLAGS=$ac_save_CFLAGS
   2555 elif test $ac_cv_prog_cc_g = yes; then
   2556   if test "$GCC" = yes; then
   2557     CFLAGS="-g -O2"
   2558   else
   2559     CFLAGS="-g"
   2560   fi
   2561 else
   2562   if test "$GCC" = yes; then
   2563     CFLAGS="-O2"
   2564   else
   2565     CFLAGS=
   2566   fi
   2567 fi
   2568 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2569 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2570 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2571   echo $ECHO_N "(cached) $ECHO_C" >&6
   2572 else
   2573   ac_cv_prog_cc_c89=no
   2574 ac_save_CC=$CC
   2575 cat >conftest.$ac_ext <<_ACEOF
   2576 /* confdefs.h.  */
   2577 _ACEOF
   2578 cat confdefs.h >>conftest.$ac_ext
   2579 cat >>conftest.$ac_ext <<_ACEOF
   2580 /* end confdefs.h.  */
   2581 #include <stdarg.h>

   2582 #include <stdio.h>

   2583 #include <sys/types.h>

   2584 #include <sys/stat.h>

   2585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2586 struct buf { int x; };
   2587 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2588 static char *e (p, i)
   2589      char **p;
   2590      int i;
   2591 {
   2592   return p[i];
   2593 }
   2594 static char *f (char * (*g) (char **, int), char **p, ...)
   2595 {
   2596   char *s;
   2597   va_list v;
   2598   va_start (v,p);
   2599   s = g (p, va_arg (v,int));
   2600   va_end (v);
   2601   return s;
   2602 }
   2603 
   2604 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2605    function prototypes and stuff, but not '\xHH' hex character constants.
   2606    These don't provoke an error unfortunately, instead are silently treated
   2607    as 'x'.  The following induces an error, until -std is added to get
   2608    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2609    array size at least.  It's necessary to write '\x00'==0 to get something
   2610    that's true only with -std.  */
   2611 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2612 
   2613 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2614    inside strings and character constants.  */
   2615 #define FOO(x) 'x'

   2616 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2617 
   2618 int test (int i, double x);
   2619 struct s1 {int (*f) (int a);};
   2620 struct s2 {int (*f) (double a);};
   2621 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2622 int argc;
   2623 char **argv;
   2624 int
   2625 main ()
   2626 {
   2627 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2628   ;
   2629   return 0;
   2630 }
   2631 _ACEOF
   2632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2633 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2634 do
   2635   CC="$ac_save_CC $ac_arg"
   2636   rm -f conftest.$ac_objext
   2637 if { (ac_try="$ac_compile"
   2638 case "(($ac_try" in
   2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2640   *) ac_try_echo=$ac_try;;
   2641 esac
   2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2643   (eval "$ac_compile") 2>conftest.er1
   2644   ac_status=$?
   2645   grep -v '^ *+' conftest.er1 >conftest.err
   2646   rm -f conftest.er1
   2647   cat conftest.err >&5
   2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2649   (exit $ac_status); } && {
   2650 	 test -z "$ac_c_werror_flag" ||
   2651 	 test ! -s conftest.err
   2652        } && test -s conftest.$ac_objext; then
   2653   ac_cv_prog_cc_c89=$ac_arg
   2654 else
   2655   echo "$as_me: failed program was:" >&5
   2656 sed 's/^/| /' conftest.$ac_ext >&5
   2657 
   2658 
   2659 fi
   2660 
   2661 rm -f core conftest.err conftest.$ac_objext
   2662   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2663 done
   2664 rm -f conftest.$ac_ext
   2665 CC=$ac_save_CC
   2666 
   2667 fi
   2668 # AC_CACHE_VAL

   2669 case "x$ac_cv_prog_cc_c89" in
   2670   x)
   2671     { echo "$as_me:$LINENO: result: none needed" >&5
   2672 echo "${ECHO_T}none needed" >&6; } ;;
   2673   xno)
   2674     { echo "$as_me:$LINENO: result: unsupported" >&5
   2675 echo "${ECHO_T}unsupported" >&6; } ;;
   2676   *)
   2677     CC="$CC $ac_cv_prog_cc_c89"
   2678     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2679 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2680 esac
   2681 
   2682 
   2683 ac_ext=c
   2684 ac_cpp='$CPP $CPPFLAGS'
   2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2688 
   2689 ac_ext=cpp
   2690 ac_cpp='$CXXCPP $CPPFLAGS'
   2691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2694 if test -z "$CXX"; then
   2695   if test -n "$CCC"; then
   2696     CXX=$CCC
   2697   else
   2698     if test -n "$ac_tool_prefix"; then
   2699   for ac_prog in clang++ llvm-g++ g++
   2700   do
   2701     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.

   2702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2705 if test "${ac_cv_prog_CXX+set}" = set; then
   2706   echo $ECHO_N "(cached) $ECHO_C" >&6
   2707 else
   2708   if test -n "$CXX"; then
   2709   ac_cv_prog_CXX="$CXX" # Let the user override the test.

   2710 else
   2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2712 for as_dir in $PATH
   2713 do
   2714   IFS=$as_save_IFS
   2715   test -z "$as_dir" && as_dir=.
   2716   for ac_exec_ext in '' $ac_executable_extensions; do
   2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2718     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2720     break 2
   2721   fi
   2722 done
   2723 done
   2724 IFS=$as_save_IFS
   2725 
   2726 fi
   2727 fi
   2728 CXX=$ac_cv_prog_CXX
   2729 if test -n "$CXX"; then
   2730   { echo "$as_me:$LINENO: result: $CXX" >&5
   2731 echo "${ECHO_T}$CXX" >&6; }
   2732 else
   2733   { echo "$as_me:$LINENO: result: no" >&5
   2734 echo "${ECHO_T}no" >&6; }
   2735 fi
   2736 
   2737 
   2738     test -n "$CXX" && break
   2739   done
   2740 fi
   2741 if test -z "$CXX"; then
   2742   ac_ct_CXX=$CXX
   2743   for ac_prog in clang++ llvm-g++ g++
   2744 do
   2745   # Extract the first word of "$ac_prog", so it can be a program name with args.

   2746 set dummy $ac_prog; ac_word=$2
   2747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2749 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2750   echo $ECHO_N "(cached) $ECHO_C" >&6
   2751 else
   2752   if test -n "$ac_ct_CXX"; then
   2753   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.

   2754 else
   2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2756 for as_dir in $PATH
   2757 do
   2758   IFS=$as_save_IFS
   2759   test -z "$as_dir" && as_dir=.
   2760   for ac_exec_ext in '' $ac_executable_extensions; do
   2761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2762     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2764     break 2
   2765   fi
   2766 done
   2767 done
   2768 IFS=$as_save_IFS
   2769 
   2770 fi
   2771 fi
   2772 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2773 if test -n "$ac_ct_CXX"; then
   2774   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2775 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   2776 else
   2777   { echo "$as_me:$LINENO: result: no" >&5
   2778 echo "${ECHO_T}no" >&6; }
   2779 fi
   2780 
   2781 
   2782   test -n "$ac_ct_CXX" && break
   2783 done
   2784 
   2785   if test "x$ac_ct_CXX" = x; then
   2786     CXX="g++"
   2787   else
   2788     case $cross_compiling:$ac_tool_warned in
   2789 yes:)
   2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2791 whose name does not start with the host triplet.  If you think this
   2792 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2794 whose name does not start with the host triplet.  If you think this
   2795 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2796 ac_tool_warned=yes ;;
   2797 esac
   2798     CXX=$ac_ct_CXX
   2799   fi
   2800 fi
   2801 
   2802   fi
   2803 fi
   2804 # Provide some information about the compiler.

   2805 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   2806 ac_compiler=`set X $ac_compile; echo $2`
   2807 { (ac_try="$ac_compiler --version >&5"
   2808 case "(($ac_try" in
   2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2810   *) ac_try_echo=$ac_try;;
   2811 esac
   2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2813   (eval "$ac_compiler --version >&5") 2>&5
   2814   ac_status=$?
   2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2816   (exit $ac_status); }
   2817 { (ac_try="$ac_compiler -v >&5"
   2818 case "(($ac_try" in
   2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2820   *) ac_try_echo=$ac_try;;
   2821 esac
   2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2823   (eval "$ac_compiler -v >&5") 2>&5
   2824   ac_status=$?
   2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2826   (exit $ac_status); }
   2827 { (ac_try="$ac_compiler -V >&5"
   2828 case "(($ac_try" in
   2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2830   *) ac_try_echo=$ac_try;;
   2831 esac
   2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2833   (eval "$ac_compiler -V >&5") 2>&5
   2834   ac_status=$?
   2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2836   (exit $ac_status); }
   2837 
   2838 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2839 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   2840 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2841   echo $ECHO_N "(cached) $ECHO_C" >&6
   2842 else
   2843   cat >conftest.$ac_ext <<_ACEOF
   2844 /* confdefs.h.  */
   2845 _ACEOF
   2846 cat confdefs.h >>conftest.$ac_ext
   2847 cat >>conftest.$ac_ext <<_ACEOF
   2848 /* end confdefs.h.  */
   2849 
   2850 int
   2851 main ()
   2852 {
   2853 #ifndef __GNUC__

   2854        choke me
   2855 #endif

   2856 
   2857   ;
   2858   return 0;
   2859 }
   2860 _ACEOF
   2861 rm -f conftest.$ac_objext
   2862 if { (ac_try="$ac_compile"
   2863 case "(($ac_try" in
   2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2865   *) ac_try_echo=$ac_try;;
   2866 esac
   2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2868   (eval "$ac_compile") 2>conftest.er1
   2869   ac_status=$?
   2870   grep -v '^ *+' conftest.er1 >conftest.err
   2871   rm -f conftest.er1
   2872   cat conftest.err >&5
   2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2874   (exit $ac_status); } && {
   2875 	 test -z "$ac_cxx_werror_flag" ||
   2876 	 test ! -s conftest.err
   2877        } && test -s conftest.$ac_objext; then
   2878   ac_compiler_gnu=yes
   2879 else
   2880   echo "$as_me: failed program was:" >&5
   2881 sed 's/^/| /' conftest.$ac_ext >&5
   2882 
   2883 	ac_compiler_gnu=no
   2884 fi
   2885 
   2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2887 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2888 
   2889 fi
   2890 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2891 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   2892 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2893 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2894 ac_save_CXXFLAGS=$CXXFLAGS
   2895 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2896 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   2897 if test "${ac_cv_prog_cxx_g+set}" = set; then
   2898   echo $ECHO_N "(cached) $ECHO_C" >&6
   2899 else
   2900   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2901    ac_cxx_werror_flag=yes
   2902    ac_cv_prog_cxx_g=no
   2903    CXXFLAGS="-g"
   2904    cat >conftest.$ac_ext <<_ACEOF
   2905 /* confdefs.h.  */
   2906 _ACEOF
   2907 cat confdefs.h >>conftest.$ac_ext
   2908 cat >>conftest.$ac_ext <<_ACEOF
   2909 /* end confdefs.h.  */
   2910 
   2911 int
   2912 main ()
   2913 {
   2914 
   2915   ;
   2916   return 0;
   2917 }
   2918 _ACEOF
   2919 rm -f conftest.$ac_objext
   2920 if { (ac_try="$ac_compile"
   2921 case "(($ac_try" in
   2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2923   *) ac_try_echo=$ac_try;;
   2924 esac
   2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2926   (eval "$ac_compile") 2>conftest.er1
   2927   ac_status=$?
   2928   grep -v '^ *+' conftest.er1 >conftest.err
   2929   rm -f conftest.er1
   2930   cat conftest.err >&5
   2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2932   (exit $ac_status); } && {
   2933 	 test -z "$ac_cxx_werror_flag" ||
   2934 	 test ! -s conftest.err
   2935        } && test -s conftest.$ac_objext; then
   2936   ac_cv_prog_cxx_g=yes
   2937 else
   2938   echo "$as_me: failed program was:" >&5
   2939 sed 's/^/| /' conftest.$ac_ext >&5
   2940 
   2941 	CXXFLAGS=""
   2942       cat >conftest.$ac_ext <<_ACEOF
   2943 /* confdefs.h.  */
   2944 _ACEOF
   2945 cat confdefs.h >>conftest.$ac_ext
   2946 cat >>conftest.$ac_ext <<_ACEOF
   2947 /* end confdefs.h.  */
   2948 
   2949 int
   2950 main ()
   2951 {
   2952 
   2953   ;
   2954   return 0;
   2955 }
   2956 _ACEOF
   2957 rm -f conftest.$ac_objext
   2958 if { (ac_try="$ac_compile"
   2959 case "(($ac_try" in
   2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2961   *) ac_try_echo=$ac_try;;
   2962 esac
   2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2964   (eval "$ac_compile") 2>conftest.er1
   2965   ac_status=$?
   2966   grep -v '^ *+' conftest.er1 >conftest.err
   2967   rm -f conftest.er1
   2968   cat conftest.err >&5
   2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2970   (exit $ac_status); } && {
   2971 	 test -z "$ac_cxx_werror_flag" ||
   2972 	 test ! -s conftest.err
   2973        } && test -s conftest.$ac_objext; then
   2974   :
   2975 else
   2976   echo "$as_me: failed program was:" >&5
   2977 sed 's/^/| /' conftest.$ac_ext >&5
   2978 
   2979 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2980 	 CXXFLAGS="-g"
   2981 	 cat >conftest.$ac_ext <<_ACEOF
   2982 /* confdefs.h.  */
   2983 _ACEOF
   2984 cat confdefs.h >>conftest.$ac_ext
   2985 cat >>conftest.$ac_ext <<_ACEOF
   2986 /* end confdefs.h.  */
   2987 
   2988 int
   2989 main ()
   2990 {
   2991 
   2992   ;
   2993   return 0;
   2994 }
   2995 _ACEOF
   2996 rm -f conftest.$ac_objext
   2997 if { (ac_try="$ac_compile"
   2998 case "(($ac_try" in
   2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3000   *) ac_try_echo=$ac_try;;
   3001 esac
   3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3003   (eval "$ac_compile") 2>conftest.er1
   3004   ac_status=$?
   3005   grep -v '^ *+' conftest.er1 >conftest.err
   3006   rm -f conftest.er1
   3007   cat conftest.err >&5
   3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3009   (exit $ac_status); } && {
   3010 	 test -z "$ac_cxx_werror_flag" ||
   3011 	 test ! -s conftest.err
   3012        } && test -s conftest.$ac_objext; then
   3013   ac_cv_prog_cxx_g=yes
   3014 else
   3015   echo "$as_me: failed program was:" >&5
   3016 sed 's/^/| /' conftest.$ac_ext >&5
   3017 
   3018 
   3019 fi
   3020 
   3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3022 fi
   3023 
   3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3025 fi
   3026 
   3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3028    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3029 fi
   3030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3031 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3032 if test "$ac_test_CXXFLAGS" = set; then
   3033   CXXFLAGS=$ac_save_CXXFLAGS
   3034 elif test $ac_cv_prog_cxx_g = yes; then
   3035   if test "$GXX" = yes; then
   3036     CXXFLAGS="-g -O2"
   3037   else
   3038     CXXFLAGS="-g"
   3039   fi
   3040 else
   3041   if test "$GXX" = yes; then
   3042     CXXFLAGS="-O2"
   3043   else
   3044     CXXFLAGS=
   3045   fi
   3046 fi
   3047 ac_ext=c
   3048 ac_cpp='$CPP $CPPFLAGS'
   3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3052 
   3053 ac_ext=c
   3054 ac_cpp='$CPP $CPPFLAGS'
   3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3058 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3059 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3060 # On Suns, sometimes $CPP names a directory.

   3061 if test -n "$CPP" && test -d "$CPP"; then
   3062   CPP=
   3063 fi
   3064 if test -z "$CPP"; then
   3065   if test "${ac_cv_prog_CPP+set}" = set; then
   3066   echo $ECHO_N "(cached) $ECHO_C" >&6
   3067 else
   3068       # Double quotes because CPP needs to be expanded

   3069     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3070     do
   3071       ac_preproc_ok=false
   3072 for ac_c_preproc_warn_flag in '' yes
   3073 do
   3074   # Use a header file that comes with gcc, so configuring glibc

   3075   # with a fresh cross-compiler works.

   3076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since

   3077   # <limits.h> exists even on freestanding compilers.

   3078   # On the NeXT, cc -E runs the code through the compiler's parser,

   3079   # not just through cpp. "Syntax error" is here to catch this case.

   3080   cat >conftest.$ac_ext <<_ACEOF
   3081 /* confdefs.h.  */
   3082 _ACEOF
   3083 cat confdefs.h >>conftest.$ac_ext
   3084 cat >>conftest.$ac_ext <<_ACEOF
   3085 /* end confdefs.h.  */
   3086 #ifdef __STDC__

   3087 # include <limits.h>

   3088 #else

   3089 # include <assert.h>

   3090 #endif

   3091 		     Syntax error
   3092 _ACEOF
   3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3094 case "(($ac_try" in
   3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3096   *) ac_try_echo=$ac_try;;
   3097 esac
   3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3100   ac_status=$?
   3101   grep -v '^ *+' conftest.er1 >conftest.err
   3102   rm -f conftest.er1
   3103   cat conftest.err >&5
   3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3105   (exit $ac_status); } >/dev/null && {
   3106 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3107 	 test ! -s conftest.err
   3108        }; then
   3109   :
   3110 else
   3111   echo "$as_me: failed program was:" >&5
   3112 sed 's/^/| /' conftest.$ac_ext >&5
   3113 
   3114   # Broken: fails on valid input.

   3115 continue
   3116 fi
   3117 
   3118 rm -f conftest.err conftest.$ac_ext
   3119 
   3120   # OK, works on sane cases.  Now check whether nonexistent headers

   3121   # can be detected and how.

   3122   cat >conftest.$ac_ext <<_ACEOF
   3123 /* confdefs.h.  */
   3124 _ACEOF
   3125 cat confdefs.h >>conftest.$ac_ext
   3126 cat >>conftest.$ac_ext <<_ACEOF
   3127 /* end confdefs.h.  */
   3128 #include <ac_nonexistent.h>

   3129 _ACEOF
   3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3131 case "(($ac_try" in
   3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3133   *) ac_try_echo=$ac_try;;
   3134 esac
   3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3137   ac_status=$?
   3138   grep -v '^ *+' conftest.er1 >conftest.err
   3139   rm -f conftest.er1
   3140   cat conftest.err >&5
   3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3142   (exit $ac_status); } >/dev/null && {
   3143 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3144 	 test ! -s conftest.err
   3145        }; then
   3146   # Broken: success on invalid input.

   3147 continue
   3148 else
   3149   echo "$as_me: failed program was:" >&5
   3150 sed 's/^/| /' conftest.$ac_ext >&5
   3151 
   3152   # Passes both tests.

   3153 ac_preproc_ok=:
   3154 break
   3155 fi
   3156 
   3157 rm -f conftest.err conftest.$ac_ext
   3158 
   3159 done
   3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.

   3161 rm -f conftest.err conftest.$ac_ext
   3162 if $ac_preproc_ok; then
   3163   break
   3164 fi
   3165 
   3166     done
   3167     ac_cv_prog_CPP=$CPP
   3168 
   3169 fi
   3170   CPP=$ac_cv_prog_CPP
   3171 else
   3172   ac_cv_prog_CPP=$CPP
   3173 fi
   3174 { echo "$as_me:$LINENO: result: $CPP" >&5
   3175 echo "${ECHO_T}$CPP" >&6; }
   3176 ac_preproc_ok=false
   3177 for ac_c_preproc_warn_flag in '' yes
   3178 do
   3179   # Use a header file that comes with gcc, so configuring glibc

   3180   # with a fresh cross-compiler works.

   3181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since

   3182   # <limits.h> exists even on freestanding compilers.

   3183   # On the NeXT, cc -E runs the code through the compiler's parser,

   3184   # not just through cpp. "Syntax error" is here to catch this case.

   3185   cat >conftest.$ac_ext <<_ACEOF
   3186 /* confdefs.h.  */
   3187 _ACEOF
   3188 cat confdefs.h >>conftest.$ac_ext
   3189 cat >>conftest.$ac_ext <<_ACEOF
   3190 /* end confdefs.h.  */
   3191 #ifdef __STDC__

   3192 # include <limits.h>

   3193 #else

   3194 # include <assert.h>

   3195 #endif

   3196 		     Syntax error
   3197 _ACEOF
   3198 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3199 case "(($ac_try" in
   3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3201   *) ac_try_echo=$ac_try;;
   3202 esac
   3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3205   ac_status=$?
   3206   grep -v '^ *+' conftest.er1 >conftest.err
   3207   rm -f conftest.er1
   3208   cat conftest.err >&5
   3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3210   (exit $ac_status); } >/dev/null && {
   3211 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3212 	 test ! -s conftest.err
   3213        }; then
   3214   :
   3215 else
   3216   echo "$as_me: failed program was:" >&5
   3217 sed 's/^/| /' conftest.$ac_ext >&5
   3218 
   3219   # Broken: fails on valid input.

   3220 continue
   3221 fi
   3222 
   3223 rm -f conftest.err conftest.$ac_ext
   3224 
   3225   # OK, works on sane cases.  Now check whether nonexistent headers

   3226   # can be detected and how.

   3227   cat >conftest.$ac_ext <<_ACEOF
   3228 /* confdefs.h.  */
   3229 _ACEOF
   3230 cat confdefs.h >>conftest.$ac_ext
   3231 cat >>conftest.$ac_ext <<_ACEOF
   3232 /* end confdefs.h.  */
   3233 #include <ac_nonexistent.h>

   3234 _ACEOF
   3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3236 case "(($ac_try" in
   3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3238   *) ac_try_echo=$ac_try;;
   3239 esac
   3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3242   ac_status=$?
   3243   grep -v '^ *+' conftest.er1 >conftest.err
   3244   rm -f conftest.er1
   3245   cat conftest.err >&5
   3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3247   (exit $ac_status); } >/dev/null && {
   3248 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3249 	 test ! -s conftest.err
   3250        }; then
   3251   # Broken: success on invalid input.

   3252 continue
   3253 else
   3254   echo "$as_me: failed program was:" >&5
   3255 sed 's/^/| /' conftest.$ac_ext >&5
   3256 
   3257   # Passes both tests.

   3258 ac_preproc_ok=:
   3259 break
   3260 fi
   3261 
   3262 rm -f conftest.err conftest.$ac_ext
   3263 
   3264 done
   3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.

   3266 rm -f conftest.err conftest.$ac_ext
   3267 if $ac_preproc_ok; then
   3268   :
   3269 else
   3270   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3271 See \`config.log' for more details." >&5
   3272 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3273 See \`config.log' for more details." >&2;}
   3274    { (exit 1); exit 1; }; }
   3275 fi
   3276 
   3277 ac_ext=c
   3278 ac_cpp='$CPP $CPPFLAGS'
   3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3282 
   3283 
   3284 
   3285 
   3286 if test -d ${srcdir}/projects/llvm-gcc ; then
   3287   subdirs="$subdirs projects/llvm-gcc"
   3288 
   3289 fi
   3290 
   3291 if test -d ${srcdir}/projects/test-suite ; then
   3292   subdirs="$subdirs projects/test-suite"
   3293 
   3294 fi
   3295 
   3296 if test -d ${srcdir}/projects/llvm-test ; then
   3297   subdirs="$subdirs projects/llvm-test"
   3298 
   3299 fi
   3300 
   3301 if test -d ${srcdir}/projects/poolalloc ; then
   3302   subdirs="$subdirs projects/poolalloc"
   3303 
   3304 fi
   3305 
   3306 if test -d ${srcdir}/projects/llvm-poolalloc ; then
   3307   subdirs="$subdirs projects/llvm-poolalloc"
   3308 
   3309 fi
   3310 
   3311 for i in `ls ${srcdir}/projects`
   3312 do
   3313   if test -d ${srcdir}/projects/${i} ; then
   3314     case ${i} in
   3315       sample)       subdirs="$subdirs projects/sample"
   3316     ;;
   3317       privbracket)  subdirs="$subdirs projects/privbracket"
   3318  ;;
   3319       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
   3320  ;;
   3321       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
   3322 ;;
   3323       llvm-java)    subdirs="$subdirs projects/llvm-java"
   3324  ;;
   3325       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
   3326    ;;
   3327       safecode)     subdirs="$subdirs projects/safecode"
   3328  ;;
   3329       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
   3330  ;;
   3331       llvm-gcc)       ;;
   3332       test-suite)     ;;
   3333       llvm-test)      ;;
   3334       poolalloc)      ;;
   3335       llvm-poolalloc) ;;
   3336       *)
   3337         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
   3338 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
   3339         ;;
   3340     esac
   3341   fi
   3342 done
   3343 
   3344 # Check whether --enable-polly was given.
   3345 if test "${enable_polly+set}" = set; then
   3346   enableval=$enable_polly;
   3347 else
   3348   enableval=default
   3349 fi
   3350 
   3351 case "$enableval" in
   3352   yes) ENABLE_POLLY=1
   3353  ;;
   3354   no)  ENABLE_POLLY=0
   3355  ;;
   3356   default) ENABLE_POLLY=1
   3357  ;;
   3358   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
   3359 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
   3360    { (exit 1); exit 1; }; } ;;
   3361 esac
   3362 
   3363 
   3364 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
   3365   LLVM_HAS_POLLY=1
   3366 
   3367   subdirs="$subdirs tools/polly"
   3368 
   3369 fi
   3370 
   3371 
   3372 # Make sure we can run config.sub.

   3373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3374   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3375 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3376    { (exit 1); exit 1; }; }
   3377 
   3378 { echo "$as_me:$LINENO: checking build system type" >&5
   3379 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3380 if test "${ac_cv_build+set}" = set; then
   3381   echo $ECHO_N "(cached) $ECHO_C" >&6
   3382 else
   3383   ac_build_alias=$build_alias
   3384 test "x$ac_build_alias" = x &&
   3385   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3386 test "x$ac_build_alias" = x &&
   3387   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3388 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3389    { (exit 1); exit 1; }; }
   3390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3391   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3392 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3393    { (exit 1); exit 1; }; }
   3394 
   3395 fi
   3396 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3397 echo "${ECHO_T}$ac_cv_build" >&6; }
   3398 case $ac_cv_build in
   3399 *-*-*) ;;
   3400 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3401 echo "$as_me: error: invalid value of canonical build" >&2;}
   3402    { (exit 1); exit 1; }; };;
   3403 esac
   3404 build=$ac_cv_build
   3405 ac_save_IFS=$IFS; IFS='-'
   3406 set x $ac_cv_build
   3407 shift
   3408 build_cpu=$1
   3409 build_vendor=$2
   3410 shift; shift
   3411 # Remember, the first character of IFS is used to create $*,

   3412 # except with old shells:

   3413 build_os=$*
   3414 IFS=$ac_save_IFS
   3415 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3416 
   3417 
   3418 { echo "$as_me:$LINENO: checking host system type" >&5
   3419 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3420 if test "${ac_cv_host+set}" = set; then
   3421   echo $ECHO_N "(cached) $ECHO_C" >&6
   3422 else
   3423   if test "x$host_alias" = x; then
   3424   ac_cv_host=$ac_cv_build
   3425 else
   3426   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3427     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3428 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3429    { (exit 1); exit 1; }; }
   3430 fi
   3431 
   3432 fi
   3433 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3434 echo "${ECHO_T}$ac_cv_host" >&6; }
   3435 case $ac_cv_host in
   3436 *-*-*) ;;
   3437 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3438 echo "$as_me: error: invalid value of canonical host" >&2;}
   3439    { (exit 1); exit 1; }; };;
   3440 esac
   3441 host=$ac_cv_host
   3442 ac_save_IFS=$IFS; IFS='-'
   3443 set x $ac_cv_host
   3444 shift
   3445 host_cpu=$1
   3446 host_vendor=$2
   3447 shift; shift
   3448 # Remember, the first character of IFS is used to create $*,

   3449 # except with old shells:

   3450 host_os=$*
   3451 IFS=$ac_save_IFS
   3452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3453 
   3454 
   3455 { echo "$as_me:$LINENO: checking target system type" >&5
   3456 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   3457 if test "${ac_cv_target+set}" = set; then
   3458   echo $ECHO_N "(cached) $ECHO_C" >&6
   3459 else
   3460   if test "x$target_alias" = x; then
   3461   ac_cv_target=$ac_cv_host
   3462 else
   3463   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3464     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   3465 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   3466    { (exit 1); exit 1; }; }
   3467 fi
   3468 
   3469 fi
   3470 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   3471 echo "${ECHO_T}$ac_cv_target" >&6; }
   3472 case $ac_cv_target in
   3473 *-*-*) ;;
   3474 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   3475 echo "$as_me: error: invalid value of canonical target" >&2;}
   3476    { (exit 1); exit 1; }; };;
   3477 esac
   3478 target=$ac_cv_target
   3479 ac_save_IFS=$IFS; IFS='-'
   3480 set x $ac_cv_target
   3481 shift
   3482 target_cpu=$1
   3483 target_vendor=$2
   3484 shift; shift
   3485 # Remember, the first character of IFS is used to create $*,

   3486 # except with old shells:

   3487 target_os=$*
   3488 IFS=$ac_save_IFS
   3489 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3490 
   3491 
   3492 # The aliases save the names the user supplied, while $host etc.

   3493 # will get canonicalized.

   3494 test -n "$target_alias" &&
   3495   test "$program_prefix$program_suffix$program_transform_name" = \
   3496     NONENONEs,x,x, &&
   3497   program_prefix=${target_alias}-
   3498 
   3499 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
   3500 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
   3501 if test "${llvm_cv_os_type+set}" = set; then
   3502   echo $ECHO_N "(cached) $ECHO_C" >&6
   3503 else
   3504   case $host in
   3505   *-*-aix*)
   3506     llvm_cv_link_all_option="-Wl,--whole-archive"
   3507     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3508     llvm_cv_os_type="AIX"
   3509     llvm_cv_platform_type="Unix" ;;
   3510   *-*-irix*)
   3511     llvm_cv_link_all_option="-Wl,--whole-archive"
   3512     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3513     llvm_cv_os_type="IRIX"
   3514     llvm_cv_platform_type="Unix" ;;
   3515   *-*-cygwin*)
   3516     llvm_cv_link_all_option="-Wl,--whole-archive"
   3517     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3518     llvm_cv_os_type="Cygwin"
   3519     llvm_cv_platform_type="Unix" ;;
   3520   *-*-darwin*)
   3521     llvm_cv_link_all_option="-Wl,-all_load"
   3522     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3523     llvm_cv_os_type="Darwin"
   3524     llvm_cv_platform_type="Unix" ;;
   3525   *-*-minix*)
   3526     llvm_cv_link_all_option="-Wl,-all_load"
   3527     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3528     llvm_cv_os_type="Minix"
   3529     llvm_cv_platform_type="Unix" ;;
   3530   *-*-freebsd*)
   3531     llvm_cv_link_all_option="-Wl,--whole-archive"
   3532     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3533     llvm_cv_os_type="FreeBSD"
   3534     llvm_cv_platform_type="Unix" ;;
   3535   *-*-openbsd*)
   3536     llvm_cv_link_all_option="-Wl,--whole-archive"
   3537     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3538     llvm_cv_os_type="OpenBSD"
   3539     llvm_cv_platform_type="Unix" ;;
   3540   *-*-netbsd*)
   3541     llvm_cv_link_all_option="-Wl,--whole-archive"
   3542     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3543     llvm_cv_os_type="NetBSD"
   3544     llvm_cv_platform_type="Unix" ;;
   3545   *-*-dragonfly*)
   3546     llvm_cv_link_all_option="-Wl,--whole-archive"
   3547     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3548     llvm_cv_os_type="DragonFly"
   3549     llvm_cv_platform_type="Unix" ;;
   3550   *-*-hpux*)
   3551     llvm_cv_link_all_option="-Wl,--whole-archive"
   3552     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3553     llvm_cv_os_type="HP-UX"
   3554     llvm_cv_platform_type="Unix" ;;
   3555   *-*-interix*)
   3556     llvm_cv_link_all_option="-Wl,--whole-archive"
   3557     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3558     llvm_cv_os_type="Interix"
   3559     llvm_cv_platform_type="Unix" ;;
   3560   *-*-linux*)
   3561     llvm_cv_link_all_option="-Wl,--whole-archive"
   3562     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3563     llvm_cv_os_type="Linux"
   3564     llvm_cv_platform_type="Unix" ;;
   3565   *-*-solaris*)
   3566     llvm_cv_link_all_option="-Wl,-z,allextract"
   3567     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
   3568     llvm_cv_os_type="SunOS"
   3569     llvm_cv_platform_type="Unix" ;;
   3570   *-*-auroraux*)
   3571     llvm_cv_link_all_option="-Wl,-z,allextract"
   3572     llvm_cv_link_all_option="-Wl,-z,defaultextract"
   3573     llvm_cv_os_type="AuroraUX"
   3574     llvm_cv_platform_type="Unix" ;;
   3575   *-*-win32*)
   3576     llvm_cv_link_all_option="-Wl,--whole-archive"
   3577     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3578     llvm_cv_os_type="Win32"
   3579     llvm_cv_platform_type="Win32" ;;
   3580   *-*-mingw*)
   3581     llvm_cv_link_all_option="-Wl,--whole-archive"
   3582     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3583     llvm_cv_os_type="MingW"
   3584     llvm_cv_platform_type="Win32" ;;
   3585   *-*-haiku*)
   3586     llvm_cv_link_all_option="-Wl,--whole-archive"
   3587     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3588     llvm_cv_os_type="Haiku"
   3589     llvm_cv_platform_type="Unix" ;;
   3590   *-unknown-eabi*)
   3591     llvm_cv_link_all_option="-Wl,--whole-archive"
   3592     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3593     llvm_cv_os_type="Freestanding"
   3594     llvm_cv_platform_type="Unix" ;;
   3595   *-unknown-elf*)
   3596     llvm_cv_link_all_option="-Wl,--whole-archive"
   3597     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3598     llvm_cv_os_type="Freestanding"
   3599     llvm_cv_platform_type="Unix" ;;
   3600   *)
   3601     llvm_cv_link_all_option=""
   3602     llvm_cv_no_link_all_option=""
   3603     llvm_cv_os_type="Unknown"
   3604     llvm_cv_platform_type="Unknown" ;;
   3605 esac
   3606 fi
   3607 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
   3608 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
   3609 
   3610 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
   3611 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
   3612 if test "${llvm_cv_target_os_type+set}" = set; then
   3613   echo $ECHO_N "(cached) $ECHO_C" >&6
   3614 else
   3615   case $target in
   3616   *-*-aix*)
   3617     llvm_cv_target_os_type="AIX" ;;
   3618   *-*-irix*)
   3619     llvm_cv_target_os_type="IRIX" ;;
   3620   *-*-cygwin*)
   3621     llvm_cv_target_os_type="Cygwin" ;;
   3622   *-*-darwin*)
   3623     llvm_cv_target_os_type="Darwin" ;;
   3624   *-*-minix*)
   3625     llvm_cv_target_os_type="Minix" ;;
   3626   *-*-freebsd*)
   3627     llvm_cv_target_os_type="FreeBSD" ;;
   3628   *-*-openbsd*)
   3629     llvm_cv_target_os_type="OpenBSD" ;;
   3630   *-*-netbsd*)
   3631     llvm_cv_target_os_type="NetBSD" ;;
   3632   *-*-dragonfly*)
   3633     llvm_cv_target_os_type="DragonFly" ;;
   3634   *-*-hpux*)
   3635     llvm_cv_target_os_type="HP-UX" ;;
   3636   *-*-interix*)
   3637     llvm_cv_target_os_type="Interix" ;;
   3638   *-*-linux*)
   3639     llvm_cv_target_os_type="Linux" ;;
   3640   *-*-solaris*)
   3641     llvm_cv_target_os_type="SunOS" ;;
   3642   *-*-auroraux*)
   3643     llvm_cv_target_os_type="AuroraUX" ;;
   3644   *-*-win32*)
   3645     llvm_cv_target_os_type="Win32" ;;
   3646   *-*-mingw*)
   3647     llvm_cv_target_os_type="MingW" ;;
   3648   *-*-haiku*)
   3649     llvm_cv_target_os_type="Haiku" ;;
   3650   *-*-rtems*)
   3651     llvm_cv_target_os_type="RTEMS" ;;
   3652   *-*-nacl*)
   3653     llvm_cv_target_os_type="NativeClient" ;;
   3654   *-unknown-eabi*)
   3655     llvm_cv_target_os_type="Freestanding" ;;
   3656   *)
   3657     llvm_cv_target_os_type="Unknown" ;;
   3658 esac
   3659 fi
   3660 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
   3661 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
   3662 
   3663 if test "$llvm_cv_os_type" = "Unknown" ; then
   3664   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
   3665 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
   3666    { (exit 1); exit 1; }; }
   3667 fi
   3668 
   3669 OS=$llvm_cv_os_type
   3670 
   3671 HOST_OS=$llvm_cv_os_type
   3672 
   3673 TARGET_OS=$llvm_cv_target_os_type
   3674 
   3675 
   3676 LINKALL=$llvm_cv_link_all_option
   3677 
   3678 NOLINKALL=$llvm_cv_no_link_all_option
   3679 
   3680 
   3681 case $llvm_cv_platform_type in
   3682   Unix)
   3683 
   3684 cat >>confdefs.h <<\_ACEOF
   3685 #define LLVM_ON_UNIX 1

   3686 _ACEOF
   3687 
   3688     LLVM_ON_UNIX=1
   3689 
   3690     LLVM_ON_WIN32=0
   3691 
   3692     ;;
   3693   Win32)
   3694 
   3695 cat >>confdefs.h <<\_ACEOF
   3696 #define LLVM_ON_WIN32 1

   3697 _ACEOF
   3698 
   3699     LLVM_ON_UNIX=0
   3700 
   3701     LLVM_ON_WIN32=1
   3702 
   3703     ;;
   3704 esac
   3705 
   3706 { echo "$as_me:$LINENO: checking target architecture" >&5
   3707 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
   3708 if test "${llvm_cv_target_arch+set}" = set; then
   3709   echo $ECHO_N "(cached) $ECHO_C" >&6
   3710 else
   3711   case $target in
   3712   i?86-*)                 llvm_cv_target_arch="x86" ;;
   3713   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
   3714   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
   3715   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
   3716   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
   3717   arm*-*)                 llvm_cv_target_arch="ARM" ;;
   3718   mips-*)                 llvm_cv_target_arch="Mips" ;;
   3719   xcore-*)                llvm_cv_target_arch="XCore" ;;
   3720   msp430-*)               llvm_cv_target_arch="MSP430" ;;
   3721   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
   3722   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
   3723   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
   3724   ptx-*)                  llvm_cv_target_arch="PTX" ;;
   3725   *)                      llvm_cv_target_arch="Unknown" ;;
   3726 esac
   3727 fi
   3728 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
   3729 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
   3730 
   3731 if test "$llvm_cv_target_arch" = "Unknown" ; then
   3732   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
   3733 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
   3734 fi
   3735 
   3736 # Determine the LLVM native architecture for the target

   3737 case "$llvm_cv_target_arch" in
   3738     x86)     LLVM_NATIVE_ARCH="X86" ;;
   3739     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
   3740     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
   3741 esac
   3742 
   3743 ARCH=$llvm_cv_target_arch
   3744 
   3745 
   3746 
   3747 
   3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3750 if test "${ac_cv_path_GREP+set}" = set; then
   3751   echo $ECHO_N "(cached) $ECHO_C" >&6
   3752 else
   3753   # Extract the first word of "grep ggrep" to use in msg output

   3754 if test -z "$GREP"; then
   3755 set dummy grep ggrep; ac_prog_name=$2
   3756 if test "${ac_cv_path_GREP+set}" = set; then
   3757   echo $ECHO_N "(cached) $ECHO_C" >&6
   3758 else
   3759   ac_path_GREP_found=false
   3760 # Loop through the user's path and test for each of PROGNAME-LIST

   3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3763 do
   3764   IFS=$as_save_IFS
   3765   test -z "$as_dir" && as_dir=.
   3766   for ac_prog in grep ggrep; do
   3767   for ac_exec_ext in '' $ac_executable_extensions; do
   3768     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3769     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3770     # Check for GNU ac_path_GREP and select it if it is found.

   3771   # Check for GNU $ac_path_GREP

   3772 case `"$ac_path_GREP" --version 2>&1` in
   3773 *GNU*)
   3774   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3775 *)
   3776   ac_count=0
   3777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3778   while :
   3779   do
   3780     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3781     mv "conftest.tmp" "conftest.in"
   3782     cp "conftest.in" "conftest.nl"
   3783     echo 'GREP' >> "conftest.nl"
   3784     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3786     ac_count=`expr $ac_count + 1`
   3787     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3788       # Best one so far, save it but keep looking for a better one

   3789       ac_cv_path_GREP="$ac_path_GREP"
   3790       ac_path_GREP_max=$ac_count
   3791     fi
   3792     # 10*(2^10) chars as input seems more than enough

   3793     test $ac_count -gt 10 && break
   3794   done
   3795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3796 esac
   3797 
   3798 
   3799     $ac_path_GREP_found && break 3
   3800   done
   3801 done
   3802 
   3803 done
   3804 IFS=$as_save_IFS
   3805 
   3806 
   3807 fi
   3808 
   3809 GREP="$ac_cv_path_GREP"
   3810 if test -z "$GREP"; then
   3811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3813    { (exit 1); exit 1; }; }
   3814 fi
   3815 
   3816 else
   3817   ac_cv_path_GREP=$GREP
   3818 fi
   3819 
   3820 
   3821 fi
   3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3824  GREP="$ac_cv_path_GREP"
   3825 
   3826 
   3827 { echo "$as_me:$LINENO: checking for egrep" >&5
   3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3829 if test "${ac_cv_path_EGREP+set}" = set; then
   3830   echo $ECHO_N "(cached) $ECHO_C" >&6
   3831 else
   3832   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3833    then ac_cv_path_EGREP="$GREP -E"
   3834    else
   3835      # Extract the first word of "egrep" to use in msg output

   3836 if test -z "$EGREP"; then
   3837 set dummy egrep; ac_prog_name=$2
   3838 if test "${ac_cv_path_EGREP+set}" = set; then
   3839   echo $ECHO_N "(cached) $ECHO_C" >&6
   3840 else
   3841   ac_path_EGREP_found=false
   3842 # Loop through the user's path and test for each of PROGNAME-LIST

   3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3845 do
   3846   IFS=$as_save_IFS
   3847   test -z "$as_dir" && as_dir=.
   3848   for ac_prog in egrep; do
   3849   for ac_exec_ext in '' $ac_executable_extensions; do
   3850     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3851     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3852     # Check for GNU ac_path_EGREP and select it if it is found.

   3853   # Check for GNU $ac_path_EGREP

   3854 case `"$ac_path_EGREP" --version 2>&1` in
   3855 *GNU*)
   3856   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3857 *)
   3858   ac_count=0
   3859   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3860   while :
   3861   do
   3862     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3863     mv "conftest.tmp" "conftest.in"
   3864     cp "conftest.in" "conftest.nl"
   3865     echo 'EGREP' >> "conftest.nl"
   3866     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3868     ac_count=`expr $ac_count + 1`
   3869     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3870       # Best one so far, save it but keep looking for a better one

   3871       ac_cv_path_EGREP="$ac_path_EGREP"
   3872       ac_path_EGREP_max=$ac_count
   3873     fi
   3874     # 10*(2^10) chars as input seems more than enough

   3875     test $ac_count -gt 10 && break
   3876   done
   3877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3878 esac
   3879 
   3880 
   3881     $ac_path_EGREP_found && break 3
   3882   done
   3883 done
   3884 
   3885 done
   3886 IFS=$as_save_IFS
   3887 
   3888 
   3889 fi
   3890 
   3891 EGREP="$ac_cv_path_EGREP"
   3892 if test -z "$EGREP"; then
   3893   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3895    { (exit 1); exit 1; }; }
   3896 fi
   3897 
   3898 else
   3899   ac_cv_path_EGREP=$EGREP
   3900 fi
   3901 
   3902 
   3903    fi
   3904 fi
   3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3907  EGREP="$ac_cv_path_EGREP"
   3908 
   3909 
   3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   3912 if test "${ac_cv_header_stdc+set}" = set; then
   3913   echo $ECHO_N "(cached) $ECHO_C" >&6
   3914 else
   3915   cat >conftest.$ac_ext <<_ACEOF
   3916 /* confdefs.h.  */
   3917 _ACEOF
   3918 cat confdefs.h >>conftest.$ac_ext
   3919 cat >>conftest.$ac_ext <<_ACEOF
   3920 /* end confdefs.h.  */
   3921 #include <stdlib.h>

   3922 #include <stdarg.h>

   3923 #include <string.h>

   3924 #include <float.h>

   3925 
   3926 int
   3927 main ()
   3928 {
   3929 
   3930   ;
   3931   return 0;
   3932 }
   3933 _ACEOF
   3934 rm -f conftest.$ac_objext
   3935 if { (ac_try="$ac_compile"
   3936 case "(($ac_try" in
   3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3938   *) ac_try_echo=$ac_try;;
   3939 esac
   3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3941   (eval "$ac_compile") 2>conftest.er1
   3942   ac_status=$?
   3943   grep -v '^ *+' conftest.er1 >conftest.err
   3944   rm -f conftest.er1
   3945   cat conftest.err >&5
   3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3947   (exit $ac_status); } && {
   3948 	 test -z "$ac_c_werror_flag" ||
   3949 	 test ! -s conftest.err
   3950        } && test -s conftest.$ac_objext; then
   3951   ac_cv_header_stdc=yes
   3952 else
   3953   echo "$as_me: failed program was:" >&5
   3954 sed 's/^/| /' conftest.$ac_ext >&5
   3955 
   3956 	ac_cv_header_stdc=no
   3957 fi
   3958 
   3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3960 
   3961 if test $ac_cv_header_stdc = yes; then
   3962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.

   3963   cat >conftest.$ac_ext <<_ACEOF
   3964 /* confdefs.h.  */
   3965 _ACEOF
   3966 cat confdefs.h >>conftest.$ac_ext
   3967 cat >>conftest.$ac_ext <<_ACEOF
   3968 /* end confdefs.h.  */
   3969 #include <string.h>

   3970 
   3971 _ACEOF
   3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3973   $EGREP "memchr" >/dev/null 2>&1; then
   3974   :
   3975 else
   3976   ac_cv_header_stdc=no
   3977 fi
   3978 rm -f -r conftest*
   3979 
   3980 fi
   3981 
   3982 if test $ac_cv_header_stdc = yes; then
   3983   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.

   3984   cat >conftest.$ac_ext <<_ACEOF
   3985 /* confdefs.h.  */
   3986 _ACEOF
   3987 cat confdefs.h >>conftest.$ac_ext
   3988 cat >>conftest.$ac_ext <<_ACEOF
   3989 /* end confdefs.h.  */
   3990 #include <stdlib.h>

   3991 
   3992 _ACEOF
   3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3994   $EGREP "free" >/dev/null 2>&1; then
   3995   :
   3996 else
   3997   ac_cv_header_stdc=no
   3998 fi
   3999 rm -f -r conftest*
   4000 
   4001 fi
   4002 
   4003 if test $ac_cv_header_stdc = yes; then
   4004   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.

   4005   if test "$cross_compiling" = yes; then
   4006   :
   4007 else
   4008   cat >conftest.$ac_ext <<_ACEOF
   4009 /* confdefs.h.  */
   4010 _ACEOF
   4011 cat confdefs.h >>conftest.$ac_ext
   4012 cat >>conftest.$ac_ext <<_ACEOF
   4013 /* end confdefs.h.  */
   4014 #include <ctype.h>

   4015 #include <stdlib.h>

   4016 #if ((' ' & 0x0FF) == 0x020)

   4017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')

   4018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))

   4019 #else

   4020 # define ISLOWER(c) \

   4021 		   (('a' <= (c) && (c) <= 'i') \
   4022 		     || ('j' <= (c) && (c) <= 'r') \
   4023 		     || ('s' <= (c) && (c) <= 'z'))
   4024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))

   4025 #endif

   4026 
   4027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))

   4028 int
   4029 main ()
   4030 {
   4031   int i;
   4032   for (i = 0; i < 256; i++)
   4033     if (XOR (islower (i), ISLOWER (i))
   4034 	|| toupper (i) != TOUPPER (i))
   4035       return 2;
   4036   return 0;
   4037 }
   4038 _ACEOF
   4039 rm -f conftest$ac_exeext
   4040 if { (ac_try="$ac_link"
   4041 case "(($ac_try" in
   4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4043   *) ac_try_echo=$ac_try;;
   4044 esac
   4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4046   (eval "$ac_link") 2>&5
   4047   ac_status=$?
   4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4050   { (case "(($ac_try" in
   4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4052   *) ac_try_echo=$ac_try;;
   4053 esac
   4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4055   (eval "$ac_try") 2>&5
   4056   ac_status=$?
   4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4058   (exit $ac_status); }; }; then
   4059   :
   4060 else
   4061   echo "$as_me: program exited with status $ac_status" >&5
   4062 echo "$as_me: failed program was:" >&5
   4063 sed 's/^/| /' conftest.$ac_ext >&5
   4064 
   4065 ( exit $ac_status )
   4066 ac_cv_header_stdc=no
   4067 fi
   4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4069 fi
   4070 
   4071 
   4072 fi
   4073 fi
   4074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4076 if test $ac_cv_header_stdc = yes; then
   4077 
   4078 cat >>confdefs.h <<\_ACEOF
   4079 #define STDC_HEADERS 1

   4080 _ACEOF
   4081 
   4082 fi
   4083 
   4084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.

   4085 
   4086 
   4087 
   4088 
   4089 
   4090 
   4091 
   4092 
   4093 
   4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4095 		  inttypes.h stdint.h unistd.h
   4096 do
   4097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4101   echo $ECHO_N "(cached) $ECHO_C" >&6
   4102 else
   4103   cat >conftest.$ac_ext <<_ACEOF
   4104 /* confdefs.h.  */
   4105 _ACEOF
   4106 cat confdefs.h >>conftest.$ac_ext
   4107 cat >>conftest.$ac_ext <<_ACEOF
   4108 /* end confdefs.h.  */
   4109 $ac_includes_default
   4110 
   4111 #include <$ac_header>

   4112 _ACEOF
   4113 rm -f conftest.$ac_objext
   4114 if { (ac_try="$ac_compile"
   4115 case "(($ac_try" in
   4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4117   *) ac_try_echo=$ac_try;;
   4118 esac
   4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4120   (eval "$ac_compile") 2>conftest.er1
   4121   ac_status=$?
   4122   grep -v '^ *+' conftest.er1 >conftest.err
   4123   rm -f conftest.er1
   4124   cat conftest.err >&5
   4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4126   (exit $ac_status); } && {
   4127 	 test -z "$ac_c_werror_flag" ||
   4128 	 test ! -s conftest.err
   4129        } && test -s conftest.$ac_objext; then
   4130   eval "$as_ac_Header=yes"
   4131 else
   4132   echo "$as_me: failed program was:" >&5
   4133 sed 's/^/| /' conftest.$ac_ext >&5
   4134 
   4135 	eval "$as_ac_Header=no"
   4136 fi
   4137 
   4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4139 fi
   4140 ac_res=`eval echo '${'$as_ac_Header'}'`
   4141 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4142 echo "${ECHO_T}$ac_res" >&6; }
   4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4144   cat >>confdefs.h <<_ACEOF
   4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   4146 _ACEOF
   4147 
   4148 fi
   4149 
   4150 done
   4151 
   4152 
   4153 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   4154 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   4155 if test "${ac_cv_c_bigendian+set}" = set; then
   4156   echo $ECHO_N "(cached) $ECHO_C" >&6
   4157 else
   4158   # See if sys/param.h defines the BYTE_ORDER macro.

   4159 cat >conftest.$ac_ext <<_ACEOF
   4160 /* confdefs.h.  */
   4161 _ACEOF
   4162 cat confdefs.h >>conftest.$ac_ext
   4163 cat >>conftest.$ac_ext <<_ACEOF
   4164 /* end confdefs.h.  */
   4165 #include <sys/types.h>

   4166 #include <sys/param.h>

   4167 
   4168 int
   4169 main ()
   4170 {
   4171 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \

   4172 	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
   4173  bogus endian macros
   4174 #endif

   4175 
   4176   ;
   4177   return 0;
   4178 }
   4179 _ACEOF
   4180 rm -f conftest.$ac_objext
   4181 if { (ac_try="$ac_compile"
   4182 case "(($ac_try" in
   4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4184   *) ac_try_echo=$ac_try;;
   4185 esac
   4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4187   (eval "$ac_compile") 2>conftest.er1
   4188   ac_status=$?
   4189   grep -v '^ *+' conftest.er1 >conftest.err
   4190   rm -f conftest.er1
   4191   cat conftest.err >&5
   4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4193   (exit $ac_status); } && {
   4194 	 test -z "$ac_c_werror_flag" ||
   4195 	 test ! -s conftest.err
   4196        } && test -s conftest.$ac_objext; then
   4197   # It does; now see whether it defined to BIG_ENDIAN or not.

   4198 cat >conftest.$ac_ext <<_ACEOF
   4199 /* confdefs.h.  */
   4200 _ACEOF
   4201 cat confdefs.h >>conftest.$ac_ext
   4202 cat >>conftest.$ac_ext <<_ACEOF
   4203 /* end confdefs.h.  */
   4204 #include <sys/types.h>

   4205 #include <sys/param.h>

   4206 
   4207 int
   4208 main ()
   4209 {
   4210 #if BYTE_ORDER != BIG_ENDIAN

   4211  not big endian
   4212 #endif

   4213 
   4214   ;
   4215   return 0;
   4216 }
   4217 _ACEOF
   4218 rm -f conftest.$ac_objext
   4219 if { (ac_try="$ac_compile"
   4220 case "(($ac_try" in
   4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4222   *) ac_try_echo=$ac_try;;
   4223 esac
   4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4225   (eval "$ac_compile") 2>conftest.er1
   4226   ac_status=$?
   4227   grep -v '^ *+' conftest.er1 >conftest.err
   4228   rm -f conftest.er1
   4229   cat conftest.err >&5
   4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4231   (exit $ac_status); } && {
   4232 	 test -z "$ac_c_werror_flag" ||
   4233 	 test ! -s conftest.err
   4234        } && test -s conftest.$ac_objext; then
   4235   ac_cv_c_bigendian=yes
   4236 else
   4237   echo "$as_me: failed program was:" >&5
   4238 sed 's/^/| /' conftest.$ac_ext >&5
   4239 
   4240 	ac_cv_c_bigendian=no
   4241 fi
   4242 
   4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4244 else
   4245   echo "$as_me: failed program was:" >&5
   4246 sed 's/^/| /' conftest.$ac_ext >&5
   4247 
   4248 	# It does not; compile a test program.

   4249 if test "$cross_compiling" = yes; then
   4250   # try to guess the endianness by grepping values into an object file

   4251   ac_cv_c_bigendian=unknown
   4252   cat >conftest.$ac_ext <<_ACEOF
   4253 /* confdefs.h.  */
   4254 _ACEOF
   4255 cat confdefs.h >>conftest.$ac_ext
   4256 cat >>conftest.$ac_ext <<_ACEOF
   4257 /* end confdefs.h.  */
   4258 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4259 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4260 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   4261 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4262 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4263 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   4264 int
   4265 main ()
   4266 {
   4267  _ascii (); _ebcdic ();
   4268   ;
   4269   return 0;
   4270 }
   4271 _ACEOF
   4272 rm -f conftest.$ac_objext
   4273 if { (ac_try="$ac_compile"
   4274 case "(($ac_try" in
   4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4276   *) ac_try_echo=$ac_try;;
   4277 esac
   4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4279   (eval "$ac_compile") 2>conftest.er1
   4280   ac_status=$?
   4281   grep -v '^ *+' conftest.er1 >conftest.err
   4282   rm -f conftest.er1
   4283   cat conftest.err >&5
   4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4285   (exit $ac_status); } && {
   4286 	 test -z "$ac_c_werror_flag" ||
   4287 	 test ! -s conftest.err
   4288        } && test -s conftest.$ac_objext; then
   4289   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   4290   ac_cv_c_bigendian=yes
   4291 fi
   4292 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4293   if test "$ac_cv_c_bigendian" = unknown; then
   4294     ac_cv_c_bigendian=no
   4295   else
   4296     # finding both strings is unlikely to happen, but who knows?

   4297     ac_cv_c_bigendian=unknown
   4298   fi
   4299 fi
   4300 else
   4301   echo "$as_me: failed program was:" >&5
   4302 sed 's/^/| /' conftest.$ac_ext >&5
   4303 
   4304 
   4305 fi
   4306 
   4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4308 else
   4309   cat >conftest.$ac_ext <<_ACEOF
   4310 /* confdefs.h.  */
   4311 _ACEOF
   4312 cat confdefs.h >>conftest.$ac_ext
   4313 cat >>conftest.$ac_ext <<_ACEOF
   4314 /* end confdefs.h.  */
   4315 $ac_includes_default
   4316 int
   4317 main ()
   4318 {
   4319 
   4320   /* Are we little or big endian?  From Harbison&Steele.  */
   4321   union
   4322   {
   4323     long int l;
   4324     char c[sizeof (long int)];
   4325   } u;
   4326   u.l = 1;
   4327   return u.c[sizeof (long int) - 1] == 1;
   4328 
   4329   ;
   4330   return 0;
   4331 }
   4332 _ACEOF
   4333 rm -f conftest$ac_exeext
   4334 if { (ac_try="$ac_link"
   4335 case "(($ac_try" in
   4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4337   *) ac_try_echo=$ac_try;;
   4338 esac
   4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4340   (eval "$ac_link") 2>&5
   4341   ac_status=$?
   4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4344   { (case "(($ac_try" in
   4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4346   *) ac_try_echo=$ac_try;;
   4347 esac
   4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4349   (eval "$ac_try") 2>&5
   4350   ac_status=$?
   4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4352   (exit $ac_status); }; }; then
   4353   ac_cv_c_bigendian=no
   4354 else
   4355   echo "$as_me: program exited with status $ac_status" >&5
   4356 echo "$as_me: failed program was:" >&5
   4357 sed 's/^/| /' conftest.$ac_ext >&5
   4358 
   4359 ( exit $ac_status )
   4360 ac_cv_c_bigendian=yes
   4361 fi
   4362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4363 fi
   4364 
   4365 
   4366 fi
   4367 
   4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4369 fi
   4370 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   4371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   4372 case $ac_cv_c_bigendian in
   4373   yes)
   4374     ENDIAN=big
   4375  ;;
   4376   no)
   4377     ENDIAN=little
   4378  ;;
   4379   *)
   4380     { { echo "$as_me:$LINENO: error: unknown endianness
   4381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   4382 echo "$as_me: error: unknown endianness
   4383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   4384    { (exit 1); exit 1; }; } ;;
   4385 esac
   4386 
   4387 
   4388 if test "$cross_compiling" = yes; then
   4389   LLVM_CROSS_COMPILING=1
   4390 
   4391 
   4392 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
   4393 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
   4394 if test "${ac_cv_build_exeext+set}" = set; then
   4395   echo $ECHO_N "(cached) $ECHO_C" >&6
   4396 else
   4397   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
   4398   ac_cv_build_exeext=.exe
   4399 else
   4400   ac_build_prefix=${build_alias}-
   4401 
   4402   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.

   4403 set dummy ${ac_build_prefix}gcc; ac_word=$2
   4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4406 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4407   echo $ECHO_N "(cached) $ECHO_C" >&6
   4408 else
   4409   if test -n "$BUILD_CC"; then
   4410   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.

   4411 else
   4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4413 for as_dir in $PATH
   4414 do
   4415   IFS=$as_save_IFS
   4416   test -z "$as_dir" && as_dir=.
   4417   for ac_exec_ext in '' $ac_executable_extensions; do
   4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4419     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
   4420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4421     break 2
   4422   fi
   4423 done
   4424 done
   4425 IFS=$as_save_IFS
   4426 
   4427 fi
   4428 fi
   4429 BUILD_CC=$ac_cv_prog_BUILD_CC
   4430 if test -n "$BUILD_CC"; then
   4431   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4432 echo "${ECHO_T}$BUILD_CC" >&6; }
   4433 else
   4434   { echo "$as_me:$LINENO: result: no" >&5
   4435 echo "${ECHO_T}no" >&6; }
   4436 fi
   4437 
   4438 
   4439   if test -z "$BUILD_CC"; then
   4440      # Extract the first word of "gcc", so it can be a program name with args.

   4441 set dummy gcc; ac_word=$2
   4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4444 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4445   echo $ECHO_N "(cached) $ECHO_C" >&6
   4446 else
   4447   if test -n "$BUILD_CC"; then
   4448   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.

   4449 else
   4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4451 for as_dir in $PATH
   4452 do
   4453   IFS=$as_save_IFS
   4454   test -z "$as_dir" && as_dir=.
   4455   for ac_exec_ext in '' $ac_executable_extensions; do
   4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4457     ac_cv_prog_BUILD_CC="gcc"
   4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4459     break 2
   4460   fi
   4461 done
   4462 done
   4463 IFS=$as_save_IFS
   4464 
   4465 fi
   4466 fi
   4467 BUILD_CC=$ac_cv_prog_BUILD_CC
   4468 if test -n "$BUILD_CC"; then
   4469   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4470 echo "${ECHO_T}$BUILD_CC" >&6; }
   4471 else
   4472   { echo "$as_me:$LINENO: result: no" >&5
   4473 echo "${ECHO_T}no" >&6; }
   4474 fi
   4475 
   4476 
   4477      if test -z "$BUILD_CC"; then
   4478        # Extract the first word of "cc", so it can be a program name with args.

   4479 set dummy cc; ac_word=$2
   4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4482 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4483   echo $ECHO_N "(cached) $ECHO_C" >&6
   4484 else
   4485   if test -n "$BUILD_CC"; then
   4486   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.

   4487 else
   4488   ac_prog_rejected=no
   4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4490 for as_dir in $PATH
   4491 do
   4492   IFS=$as_save_IFS
   4493   test -z "$as_dir" && as_dir=.
   4494   for ac_exec_ext in '' $ac_executable_extensions; do
   4495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4497        ac_prog_rejected=yes
   4498        continue
   4499      fi
   4500     ac_cv_prog_BUILD_CC="cc"
   4501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4502     break 2
   4503   fi
   4504 done
   4505 done
   4506 IFS=$as_save_IFS
   4507 
   4508 if test $ac_prog_rejected = yes; then
   4509   # We found a bogon in the path, so make sure we never use it.

   4510   set dummy $ac_cv_prog_BUILD_CC
   4511   shift
   4512   if test $# != 0; then

   4513     # We chose a different compiler from the bogus one.

   4514     # However, it has the same basename, so the bogon will be chosen

   4515     # first if we set BUILD_CC to just the basename; use the full file name.

   4516     shift
   4517     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
   4518   fi
   4519 fi
   4520 fi
   4521 fi
   4522 BUILD_CC=$ac_cv_prog_BUILD_CC
   4523 if test -n "$BUILD_CC"; then
   4524   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4525 echo "${ECHO_T}$BUILD_CC" >&6; }
   4526 else
   4527   { echo "$as_me:$LINENO: result: no" >&5
   4528 echo "${ECHO_T}no" >&6; }
   4529 fi
   4530 
   4531 
   4532      fi
   4533   fi
   4534   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
   4535 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   4536    { (exit 1); exit 1; }; }
   4537   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4538   rm -f conftest*
   4539   echo 'int main () { return 0; }' > conftest.$ac_ext
   4540   ac_cv_build_exeext=
   4541   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
   4542   (eval $ac_build_link) 2>&5
   4543   ac_status=$?
   4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4545   (exit $ac_status); }; then
   4546     for file in conftest.*; do
   4547       case $file in
   4548       *.c | *.o | *.obj | *.dSYM) ;;
   4549       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
   4550       esac
   4551     done
   4552   else
   4553     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
   4554 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
   4555    { (exit 1); exit 1; }; }
   4556   fi
   4557   rm -f conftest*
   4558   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
   4559 fi
   4560 fi
   4561 
   4562 BUILD_EXEEXT=""
   4563 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
   4564 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
   4565 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
   4566 ac_build_exeext=$BUILD_EXEEXT
   4567 
   4568   ac_build_prefix=${build_alias}-
   4569   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.

   4570 set dummy ${ac_build_prefix}g++; ac_word=$2
   4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4573 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4574   echo $ECHO_N "(cached) $ECHO_C" >&6
   4575 else
   4576   if test -n "$BUILD_CXX"; then
   4577   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.

   4578 else
   4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4580 for as_dir in $PATH
   4581 do
   4582   IFS=$as_save_IFS
   4583   test -z "$as_dir" && as_dir=.
   4584   for ac_exec_ext in '' $ac_executable_extensions; do
   4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4586     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
   4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4588     break 2
   4589   fi
   4590 done
   4591 done
   4592 IFS=$as_save_IFS
   4593 
   4594 fi
   4595 fi
   4596 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4597 if test -n "$BUILD_CXX"; then
   4598   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4599 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4600 else
   4601   { echo "$as_me:$LINENO: result: no" >&5
   4602 echo "${ECHO_T}no" >&6; }
   4603 fi
   4604 
   4605 
   4606   if test -z "$BUILD_CXX"; then
   4607      # Extract the first word of "g++", so it can be a program name with args.

   4608 set dummy g++; ac_word=$2
   4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4611 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4612   echo $ECHO_N "(cached) $ECHO_C" >&6
   4613 else
   4614   if test -n "$BUILD_CXX"; then
   4615   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.

   4616 else
   4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4618 for as_dir in $PATH
   4619 do
   4620   IFS=$as_save_IFS
   4621   test -z "$as_dir" && as_dir=.
   4622   for ac_exec_ext in '' $ac_executable_extensions; do
   4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4624     ac_cv_prog_BUILD_CXX="g++"
   4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4626     break 2
   4627   fi
   4628 done
   4629 done
   4630 IFS=$as_save_IFS
   4631 
   4632 fi
   4633 fi
   4634 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4635 if test -n "$BUILD_CXX"; then
   4636   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4637 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4638 else
   4639   { echo "$as_me:$LINENO: result: no" >&5
   4640 echo "${ECHO_T}no" >&6; }
   4641 fi
   4642 
   4643 
   4644      if test -z "$BUILD_CXX"; then
   4645        # Extract the first word of "c++", so it can be a program name with args.

   4646 set dummy c++; ac_word=$2
   4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4649 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4650   echo $ECHO_N "(cached) $ECHO_C" >&6
   4651 else
   4652   if test -n "$BUILD_CXX"; then
   4653   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.

   4654 else
   4655   ac_prog_rejected=no
   4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4657 for as_dir in $PATH
   4658 do
   4659   IFS=$as_save_IFS
   4660   test -z "$as_dir" && as_dir=.
   4661   for ac_exec_ext in '' $ac_executable_extensions; do
   4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4663     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
   4664        ac_prog_rejected=yes
   4665        continue
   4666      fi
   4667     ac_cv_prog_BUILD_CXX="c++"
   4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4669     break 2
   4670   fi
   4671 done
   4672 done
   4673 IFS=$as_save_IFS
   4674 
   4675 if test $ac_prog_rejected = yes; then
   4676   # We found a bogon in the path, so make sure we never use it.

   4677   set dummy $ac_cv_prog_BUILD_CXX
   4678   shift
   4679   if test $# != 0; then

   4680     # We chose a different compiler from the bogus one.

   4681     # However, it has the same basename, so the bogon will be chosen

   4682     # first if we set BUILD_CXX to just the basename; use the full file name.

   4683     shift
   4684     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
   4685   fi
   4686 fi
   4687 fi
   4688 fi
   4689 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4690 if test -n "$BUILD_CXX"; then
   4691   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4692 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4693 else
   4694   { echo "$as_me:$LINENO: result: no" >&5
   4695 echo "${ECHO_T}no" >&6; }
   4696 fi
   4697 
   4698 
   4699      fi
   4700   fi
   4701 else
   4702   LLVM_CROSS_COMPILING=0
   4703 
   4704 fi
   4705 
   4706 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
   4707   cvsbuild="yes"
   4708   optimize="no"
   4709   CVSBUILD=CVSBUILD=1
   4710 
   4711 else
   4712   cvsbuild="no"
   4713   optimize="yes"
   4714 fi
   4715 
   4716 
   4717 # Check whether --enable-optimized was given.

   4718 if test "${enable_optimized+set}" = set; then
   4719   enableval=$enable_optimized;
   4720 else
   4721   enableval=$optimize
   4722 fi
   4723 
   4724 if test ${enableval} = "no" ; then
   4725   ENABLE_OPTIMIZED=
   4726 
   4727 else
   4728   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
   4729 
   4730 fi
   4731 
   4732 # Check whether --enable-profiling was given.

   4733 if test "${enable_profiling+set}" = set; then
   4734   enableval=$enable_profiling;
   4735 else
   4736   enableval="no"
   4737 fi
   4738 
   4739 if test ${enableval} = "no" ; then
   4740   ENABLE_PROFILING=
   4741 
   4742 else
   4743   ENABLE_PROFILING=ENABLE_PROFILING=1
   4744 
   4745 fi
   4746 
   4747 # Check whether --enable-assertions was given.

   4748 if test "${enable_assertions+set}" = set; then
   4749   enableval=$enable_assertions;
   4750 else
   4751   enableval="no"
   4752 fi
   4753 
   4754 if test ${enableval} = "yes" ; then
   4755   DISABLE_ASSERTIONS=
   4756 
   4757 else
   4758   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
   4759 
   4760 fi
   4761 
   4762 # Check whether --enable-expensive-checks was given.

   4763 if test "${enable_expensive_checks+set}" = set; then
   4764   enableval=$enable_expensive_checks;
   4765 else
   4766   enableval="no"
   4767 fi
   4768 
   4769 if test ${enableval} = "yes" ; then
   4770   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
   4771 
   4772   EXPENSIVE_CHECKS=yes
   4773 
   4774 else
   4775   ENABLE_EXPENSIVE_CHECKS=
   4776 
   4777   EXPENSIVE_CHECKS=no
   4778 
   4779 fi
   4780 
   4781 # Check whether --enable-debug-runtime was given.

   4782 if test "${enable_debug_runtime+set}" = set; then
   4783   enableval=$enable_debug_runtime;
   4784 else
   4785   enableval=no
   4786 fi
   4787 
   4788 if test ${enableval} = "no" ; then
   4789   DEBUG_RUNTIME=
   4790 
   4791 else
   4792   DEBUG_RUNTIME=DEBUG_RUNTIME=1
   4793 
   4794 fi
   4795 
   4796 # Check whether --enable-debug-symbols was given.

   4797 if test "${enable_debug_symbols+set}" = set; then
   4798   enableval=$enable_debug_symbols;
   4799 else
   4800   enableval=no
   4801 fi
   4802 
   4803 if test ${enableval} = "no" ; then
   4804   DEBUG_SYMBOLS=
   4805 
   4806 else
   4807   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
   4808 
   4809 fi
   4810 
   4811 # Check whether --enable-jit was given.

   4812 if test "${enable_jit+set}" = set; then
   4813   enableval=$enable_jit;
   4814 else
   4815   enableval=default
   4816 fi
   4817 
   4818 if test ${enableval} = "no"
   4819 then
   4820   JIT=
   4821 
   4822 else
   4823   case "$llvm_cv_target_arch" in
   4824     x86)         TARGET_HAS_JIT=1
   4825  ;;
   4826     Sparc)       TARGET_HAS_JIT=0
   4827  ;;
   4828     PowerPC)     TARGET_HAS_JIT=1
   4829  ;;
   4830     x86_64)      TARGET_HAS_JIT=1
   4831  ;;
   4832     Alpha)       TARGET_HAS_JIT=0
   4833  ;;
   4834     ARM)         TARGET_HAS_JIT=1
   4835  ;;
   4836     Mips)        TARGET_HAS_JIT=1
   4837  ;;
   4838     XCore)       TARGET_HAS_JIT=0
   4839  ;;
   4840     MSP430)      TARGET_HAS_JIT=0
   4841  ;;
   4842     SystemZ)     TARGET_HAS_JIT=0
   4843  ;;
   4844     Blackfin)    TARGET_HAS_JIT=0
   4845  ;;
   4846     MBlaze)      TARGET_HAS_JIT=0
   4847  ;;
   4848     PTX)         TARGET_HAS_JIT=0
   4849  ;;
   4850     *)           TARGET_HAS_JIT=0
   4851  ;;
   4852   esac
   4853 fi
   4854 
   4855 # Check whether --enable-docs was given.

   4856 if test "${enable_docs+set}" = set; then
   4857   enableval=$enable_docs;
   4858 else
   4859   enableval=default
   4860 fi
   4861 
   4862 case "$enableval" in
   4863   yes) ENABLE_DOCS=1
   4864  ;;
   4865   no)  ENABLE_DOCS=0
   4866  ;;
   4867   default) ENABLE_DOCS=1
   4868  ;;
   4869   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
   4870 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
   4871    { (exit 1); exit 1; }; } ;;
   4872 esac
   4873 
   4874 # Check whether --enable-doxygen was given.

   4875 if test "${enable_doxygen+set}" = set; then
   4876   enableval=$enable_doxygen;
   4877 else
   4878   enableval=default
   4879 fi
   4880 
   4881 case "$enableval" in
   4882   yes) ENABLE_DOXYGEN=1
   4883  ;;
   4884   no)  ENABLE_DOXYGEN=0
   4885  ;;
   4886   default) ENABLE_DOXYGEN=0
   4887  ;;
   4888   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
   4889 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
   4890    { (exit 1); exit 1; }; } ;;
   4891 esac
   4892 
   4893 # Check whether --enable-threads was given.

   4894 if test "${enable_threads+set}" = set; then
   4895   enableval=$enable_threads;
   4896 else
   4897   enableval=default
   4898 fi
   4899 
   4900 case "$enableval" in
   4901   yes) ENABLE_THREADS=1
   4902  ;;
   4903   no)  ENABLE_THREADS=0
   4904  ;;
   4905   default) ENABLE_THREADS=1
   4906  ;;
   4907   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
   4908 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
   4909    { (exit 1); exit 1; }; } ;;
   4910 esac
   4911 
   4912 cat >>confdefs.h <<_ACEOF
   4913 #define ENABLE_THREADS $ENABLE_THREADS

   4914 _ACEOF
   4915 
   4916 
   4917 # Check whether --enable-pthreads was given.

   4918 if test "${enable_pthreads+set}" = set; then
   4919   enableval=$enable_pthreads;
   4920 else
   4921   enableval=default
   4922 fi
   4923 
   4924 case "$enableval" in
   4925   yes) ENABLE_PTHREADS=1
   4926  ;;
   4927   no)  ENABLE_PTHREADS=0
   4928  ;;
   4929   default) ENABLE_PTHREADS=1
   4930  ;;
   4931   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
   4932 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
   4933    { (exit 1); exit 1; }; } ;;
   4934 esac
   4935 
   4936 # Check whether --enable-pic was given.

   4937 if test "${enable_pic+set}" = set; then
   4938   enableval=$enable_pic;
   4939 else
   4940   enableval=default
   4941 fi
   4942 
   4943 case "$enableval" in
   4944   yes) ENABLE_PIC=1
   4945  ;;
   4946   no)  ENABLE_PIC=0
   4947  ;;
   4948   default) ENABLE_PIC=1
   4949  ;;
   4950   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
   4951 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
   4952    { (exit 1); exit 1; }; } ;;
   4953 esac
   4954 
   4955 cat >>confdefs.h <<_ACEOF
   4956 #define ENABLE_PIC $ENABLE_PIC

   4957 _ACEOF
   4958 
   4959 
   4960 # Check whether --enable-shared was given.

   4961 if test "${enable_shared+set}" = set; then
   4962   enableval=$enable_shared;
   4963 else
   4964   enableval=default
   4965 fi
   4966 
   4967 case "$enableval" in
   4968   yes) ENABLE_SHARED=1
   4969  ;;
   4970   no)  ENABLE_SHARED=0
   4971  ;;
   4972   default) ENABLE_SHARED=0
   4973  ;;
   4974   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
   4975 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
   4976    { (exit 1); exit 1; }; } ;;
   4977 esac
   4978 
   4979 # Check whether --enable-embed-stdcxx was given.

   4980 if test "${enable_embed_stdcxx+set}" = set; then
   4981   enableval=$enable_embed_stdcxx;
   4982 else
   4983   enableval=default
   4984 fi
   4985 
   4986 case "$enableval" in
   4987   yes) ENABLE_EMBED_STDCXX=1
   4988  ;;
   4989   no)  ENABLE_EMBED_STDCXX=0
   4990  ;;
   4991   default) ENABLE_EMBED_STDCXX=0
   4992  ;;
   4993   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
   4994 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
   4995    { (exit 1); exit 1; }; } ;;
   4996 esac
   4997 
   4998 # Check whether --enable-timestamps was given.

   4999 if test "${enable_timestamps+set}" = set; then
   5000   enableval=$enable_timestamps;
   5001 else
   5002   enableval=default
   5003 fi
   5004 
   5005 case "$enableval" in
   5006   yes) ENABLE_TIMESTAMPS=1
   5007  ;;
   5008   no)  ENABLE_TIMESTAMPS=0
   5009  ;;
   5010   default) ENABLE_TIMESTAMPS=1
   5011  ;;
   5012   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
   5013 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
   5014    { (exit 1); exit 1; }; } ;;
   5015 esac
   5016 
   5017 cat >>confdefs.h <<_ACEOF
   5018 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS

   5019 _ACEOF
   5020 
   5021 
   5022 TARGETS_TO_BUILD=""
   5023 # Check whether --enable-targets was given.

   5024 if test "${enable_targets+set}" = set; then
   5025   enableval=$enable_targets;
   5026 else
   5027   enableval=all
   5028 fi
   5029 
   5030 if test "$enableval" = host-only ; then
   5031   enableval=host
   5032 fi
   5033 case "$enableval" in
   5034   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
   5035   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5036       case "$a_target" in
   5037         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5038         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5039         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5040         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5041         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
   5042         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5043         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5044         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5045         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5046         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5047         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
   5048         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
   5049         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
   5050         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
   5051         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5052         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5053         host) case "$llvm_cv_target_arch" in
   5054             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5055             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5056             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5057             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5058             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
   5059             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5060             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5061             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5062             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
   5063             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5064             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5065             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
   5066             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
   5067             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
   5068             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
   5069 echo "$as_me: error: Can not set target to build" >&2;}
   5070    { (exit 1); exit 1; }; } ;;
   5071           esac ;;
   5072         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
   5073 echo "$as_me: error: Unrecognized target $a_target" >&2;}
   5074    { (exit 1); exit 1; }; } ;;
   5075       esac
   5076   done
   5077   ;;
   5078 esac
   5079 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
   5080 
   5081 
   5082 # Determine whether we are building LLVM support for the native architecture.

   5083 # If so, define LLVM_NATIVE_ARCH to that LLVM target.

   5084 for a_target in $TARGETS_TO_BUILD; do
   5085   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
   5086 
   5087 cat >>confdefs.h <<_ACEOF
   5088 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH

   5089 _ACEOF
   5090 
   5091     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
   5092     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
   5093     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
   5094     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
   5095     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5096       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
   5097     fi
   5098 
   5099 cat >>confdefs.h <<_ACEOF
   5100 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET

   5101 _ACEOF
   5102 
   5103 
   5104 cat >>confdefs.h <<_ACEOF
   5105 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO

   5106 _ACEOF
   5107 
   5108 
   5109 cat >>confdefs.h <<_ACEOF
   5110 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC

   5111 _ACEOF
   5112 
   5113 
   5114 cat >>confdefs.h <<_ACEOF
   5115 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER

   5116 _ACEOF
   5117 
   5118     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5119 
   5120 cat >>confdefs.h <<_ACEOF
   5121 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER

   5122 _ACEOF
   5123 
   5124     fi
   5125   fi
   5126 done
   5127 
   5128 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual

   5129 # target feature def files.

   5130 LLVM_ENUM_TARGETS=""
   5131 LLVM_ENUM_ASM_PRINTERS=""
   5132 LLVM_ENUM_ASM_PARSERS=""
   5133 LLVM_ENUM_DISASSEMBLERS=""
   5134 for target_to_build in $TARGETS_TO_BUILD; do
   5135   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
   5136   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
   5137     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
   5138   fi
   5139   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
   5140     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
   5141   fi
   5142   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
   5143     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
   5144   fi
   5145 done
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 # Check whether --enable-cbe-printf-a was given.

   5152 if test "${enable_cbe_printf_a+set}" = set; then
   5153   enableval=$enable_cbe_printf_a;
   5154 else
   5155   enableval=default
   5156 fi
   5157 
   5158 case "$enableval" in
   5159   yes) ENABLE_CBE_PRINTF_A=1
   5160  ;;
   5161   no)  ENABLE_CBE_PRINTF_A=0
   5162  ;;
   5163   default)  ENABLE_CBE_PRINTF_A=1
   5164  ;;
   5165   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
   5166 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
   5167    { (exit 1); exit 1; }; } ;;
   5168 esac
   5169 
   5170 cat >>confdefs.h <<_ACEOF
   5171 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A

   5172 _ACEOF
   5173 
   5174 
   5175 
   5176 # Check whether --with-optimize-option was given.

   5177 if test "${with_optimize_option+set}" = set; then
   5178   withval=$with_optimize_option;
   5179 else
   5180   withval=default
   5181 fi
   5182 
   5183 { echo "$as_me:$LINENO: checking optimization flags" >&5
   5184 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
   5185 case "$withval" in
   5186   default)
   5187     case "$llvm_cv_os_type" in
   5188     FreeBSD) optimize_option=-O2 ;;
   5189     MingW) optimize_option=-O2 ;;
   5190     *)     optimize_option=-O3 ;;
   5191     esac ;;
   5192   *) optimize_option="$withval" ;;
   5193 esac
   5194 OPTIMIZE_OPTION=$optimize_option
   5195 
   5196 { echo "$as_me:$LINENO: result: $optimize_option" >&5
   5197 echo "${ECHO_T}$optimize_option" >&6; }
   5198 
   5199 
   5200 # Check whether --with-extra-options was given.

   5201 if test "${with_extra_options+set}" = set; then
   5202   withval=$with_extra_options;
   5203 else
   5204   withval=default
   5205 fi
   5206 
   5207 case "$withval" in
   5208   default) EXTRA_OPTIONS= ;;
   5209   *) EXTRA_OPTIONS=$withval ;;
   5210 esac
   5211 EXTRA_OPTIONS=$EXTRA_OPTIONS
   5212 
   5213 
   5214 
   5215 # Check whether --with-extra-ld-options was given.

   5216 if test "${with_extra_ld_options+set}" = set; then
   5217   withval=$with_extra_ld_options;
   5218 else
   5219   withval=default
   5220 fi
   5221 
   5222 case "$withval" in
   5223   default) EXTRA_LD_OPTIONS= ;;
   5224   *) EXTRA_LD_OPTIONS=$withval ;;
   5225 esac
   5226 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
   5227 
   5228 
   5229 # Check whether --enable-bindings was given.

   5230 if test "${enable_bindings+set}" = set; then
   5231   enableval=$enable_bindings;
   5232 else
   5233   enableval=default
   5234 fi
   5235 
   5236 BINDINGS_TO_BUILD=""
   5237 case "$enableval" in
   5238   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
   5239   all ) BINDINGS_TO_BUILD="ocaml" ;;
   5240   none | no) BINDINGS_TO_BUILD="" ;;
   5241   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5242       case "$a_binding" in
   5243         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
   5244         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
   5245 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
   5246    { (exit 1); exit 1; }; } ;;
   5247       esac
   5248   done
   5249   ;;
   5250 esac
   5251 
   5252 
   5253 # Check whether --with-ocaml-libdir was given.

   5254 if test "${with_ocaml_libdir+set}" = set; then
   5255   withval=$with_ocaml_libdir;
   5256 else
   5257   withval=auto
   5258 fi
   5259 
   5260 case "$withval" in
   5261   auto) with_ocaml_libdir="$withval" ;;
   5262   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
   5263   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
   5264 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
   5265    { (exit 1); exit 1; }; } ;;
   5266 esac
   5267 
   5268 
   5269 # Check whether --with-clang-resource-dir was given.

   5270 if test "${with_clang_resource_dir+set}" = set; then
   5271   withval=$with_clang_resource_dir;
   5272 else
   5273   withval=""
   5274 fi
   5275 
   5276 
   5277 cat >>confdefs.h <<_ACEOF
   5278 #define CLANG_RESOURCE_DIR "$withval"

   5279 _ACEOF
   5280 
   5281 
   5282 
   5283 # Check whether --with-c-include-dirs was given.

   5284 if test "${with_c_include_dirs+set}" = set; then
   5285   withval=$with_c_include_dirs;
   5286 else
   5287   withval=""
   5288 fi
   5289 
   5290 
   5291 cat >>confdefs.h <<_ACEOF
   5292 #define C_INCLUDE_DIRS "$withval"

   5293 _ACEOF
   5294 
   5295 
   5296 
   5297 # Check whether --with-cxx-include-root was given.

   5298 if test "${with_cxx_include_root+set}" = set; then
   5299   withval=$with_cxx_include_root;
   5300 else
   5301   withval=""
   5302 fi
   5303 
   5304 
   5305 cat >>confdefs.h <<_ACEOF
   5306 #define CXX_INCLUDE_ROOT "$withval"

   5307 _ACEOF
   5308 
   5309 
   5310 
   5311 # Check whether --with-cxx-include-arch was given.

   5312 if test "${with_cxx_include_arch+set}" = set; then
   5313   withval=$with_cxx_include_arch;
   5314 else
   5315   withval=""
   5316 fi
   5317 
   5318 
   5319 cat >>confdefs.h <<_ACEOF
   5320 #define CXX_INCLUDE_ARCH "$withval"

   5321 _ACEOF
   5322 
   5323 
   5324 
   5325 # Check whether --with-cxx-include-32bit-dir was given.

   5326 if test "${with_cxx_include_32bit_dir+set}" = set; then
   5327   withval=$with_cxx_include_32bit_dir;
   5328 else
   5329   withval=""
   5330 fi
   5331 
   5332 
   5333 cat >>confdefs.h <<_ACEOF
   5334 #define CXX_INCLUDE_32BIT_DIR "$withval"

   5335 _ACEOF
   5336 
   5337 
   5338 
   5339 # Check whether --with-cxx-include-64bit-dir was given.

   5340 if test "${with_cxx_include_64bit_dir+set}" = set; then
   5341   withval=$with_cxx_include_64bit_dir;
   5342 else
   5343   withval=""
   5344 fi
   5345 
   5346 
   5347 cat >>confdefs.h <<_ACEOF
   5348 #define CXX_INCLUDE_64BIT_DIR "$withval"

   5349 _ACEOF
   5350 
   5351 
   5352 
   5353 # Check whether --with-binutils-include was given.

   5354 if test "${with_binutils_include+set}" = set; then
   5355   withval=$with_binutils_include;
   5356 else
   5357   withval=default
   5358 fi
   5359 
   5360 case "$withval" in
   5361   default) WITH_BINUTILS_INCDIR=default ;;
   5362   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
   5363   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
   5364 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
   5365    { (exit 1); exit 1; }; } ;;
   5366 esac
   5367 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
   5368   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
   5369 
   5370   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
   5371      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
   5372      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
   5373 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
   5374    { (exit 1); exit 1; }; };
   5375   fi
   5376 fi
   5377 
   5378 
   5379 # Check whether --with-bug-report-url was given.

   5380 if test "${with_bug_report_url+set}" = set; then
   5381   withval=$with_bug_report_url;
   5382 else
   5383   withval="http://llvm.org/bugs/"
   5384 fi
   5385 
   5386 
   5387 cat >>confdefs.h <<_ACEOF
   5388 #define BUG_REPORT_URL "$withval"

   5389 _ACEOF
   5390 
   5391 
   5392 # Check whether --enable-libffi was given.

   5393 if test "${enable_libffi+set}" = set; then
   5394   enableval=$enable_libffi; case "$enableval" in
   5395     yes) llvm_cv_enable_libffi="yes" ;;
   5396     no)  llvm_cv_enable_libffi="no"  ;;
   5397     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
   5398 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
   5399    { (exit 1); exit 1; }; } ;;
   5400   esac
   5401 else
   5402   llvm_cv_enable_libffi=no
   5403 fi
   5404 
   5405 
   5406 
   5407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   5408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   5409 if test "${lt_cv_path_NM+set}" = set; then
   5410   echo $ECHO_N "(cached) $ECHO_C" >&6
   5411 else
   5412   if test -n "$NM"; then
   5413   # Let the user override the test.

   5414   lt_cv_path_NM="$NM"
   5415 else
   5416   lt_nm_to_check="${ac_tool_prefix}nm"
   5417   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5418     lt_nm_to_check="$lt_nm_to_check nm"
   5419   fi
   5420   for lt_tmp_nm in $lt_nm_to_check; do
   5421     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5422     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5423       IFS="$lt_save_ifs"
   5424       test -z "$ac_dir" && ac_dir=.
   5425       tmp_nm="$ac_dir/$lt_tmp_nm"
   5426       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5427 	# Check to see if the nm accepts a BSD-compat flag.

   5428 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:

   5429 	#   nm: unknown option "B" ignored

   5430 	# Tru64's nm complains that /dev/null is an invalid object file

   5431 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5432 	*/dev/null* | *'Invalid file or object type'*)
   5433 	  lt_cv_path_NM="$tmp_nm -B"
   5434 	  break
   5435 	  ;;
   5436 	*)
   5437 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5438 	  */dev/null*)
   5439 	    lt_cv_path_NM="$tmp_nm -p"
   5440 	    break
   5441 	    ;;
   5442 	  *)
   5443 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but

   5444 	    continue # so that we can try to find one that supports BSD flags

   5445 	    ;;
   5446 	  esac
   5447 	  ;;
   5448 	esac
   5449       fi
   5450     done
   5451     IFS="$lt_save_ifs"
   5452   done
   5453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   5454 fi
   5455 fi
   5456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   5457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   5458 NM="$lt_cv_path_NM"
   5459 
   5460 
   5461 
   5462 { echo "$as_me:$LINENO: checking for GNU make" >&5
   5463 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
   5464 if test "${llvm_cv_gnu_make_command+set}" = set; then
   5465   echo $ECHO_N "(cached) $ECHO_C" >&6
   5466 else
   5467   llvm_cv_gnu_make_command=''
   5468  for a in "$MAKE" make gmake gnumake ; do
   5469   if test -z "$a" ; then continue ; fi ;
   5470   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
   5471   then
   5472    llvm_cv_gnu_make_command=$a ;
   5473    break;
   5474   fi
   5475  done
   5476 fi
   5477 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
   5478 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
   5479  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
   5480    ifGNUmake='' ;
   5481  else
   5482    ifGNUmake='#' ;
   5483    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
   5484 echo "${ECHO_T}\"Not found\"" >&6; };
   5485  fi
   5486 
   5487 
   5488 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5489 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   5490 LN_S=$as_ln_s
   5491 if test "$LN_S" = "ln -s"; then
   5492   { echo "$as_me:$LINENO: result: yes" >&5
   5493 echo "${ECHO_T}yes" >&6; }
   5494 else
   5495   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5496 echo "${ECHO_T}no, using $LN_S" >&6; }
   5497 fi
   5498 
   5499 # Extract the first word of "cmp", so it can be a program name with args.

   5500 set dummy cmp; ac_word=$2
   5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5503 if test "${ac_cv_path_CMP+set}" = set; then
   5504   echo $ECHO_N "(cached) $ECHO_C" >&6
   5505 else
   5506   case $CMP in
   5507   [\\/]* | ?:[\\/]*)
   5508   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.

   5509   ;;
   5510   *)
   5511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5512 for as_dir in $PATH
   5513 do
   5514   IFS=$as_save_IFS
   5515   test -z "$as_dir" && as_dir=.
   5516   for ac_exec_ext in '' $ac_executable_extensions; do
   5517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5518     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
   5519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5520     break 2
   5521   fi
   5522 done
   5523 done
   5524 IFS=$as_save_IFS
   5525 
   5526   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
   5527   ;;
   5528 esac
   5529 fi
   5530 CMP=$ac_cv_path_CMP
   5531 if test -n "$CMP"; then
   5532   { echo "$as_me:$LINENO: result: $CMP" >&5
   5533 echo "${ECHO_T}$CMP" >&6; }
   5534 else
   5535   { echo "$as_me:$LINENO: result: no" >&5
   5536 echo "${ECHO_T}no" >&6; }
   5537 fi
   5538 
   5539 
   5540 # Extract the first word of "cp", so it can be a program name with args.

   5541 set dummy cp; ac_word=$2
   5542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5544 if test "${ac_cv_path_CP+set}" = set; then
   5545   echo $ECHO_N "(cached) $ECHO_C" >&6
   5546 else
   5547   case $CP in
   5548   [\\/]* | ?:[\\/]*)
   5549   ac_cv_path_CP="$CP" # Let the user override the test with a path.

   5550   ;;
   5551   *)
   5552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5553 for as_dir in $PATH
   5554 do
   5555   IFS=$as_save_IFS
   5556   test -z "$as_dir" && as_dir=.
   5557   for ac_exec_ext in '' $ac_executable_extensions; do
   5558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5559     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
   5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5561     break 2
   5562   fi
   5563 done
   5564 done
   5565 IFS=$as_save_IFS
   5566 
   5567   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
   5568   ;;
   5569 esac
   5570 fi
   5571 CP=$ac_cv_path_CP
   5572 if test -n "$CP"; then
   5573   { echo "$as_me:$LINENO: result: $CP" >&5
   5574 echo "${ECHO_T}$CP" >&6; }
   5575 else
   5576   { echo "$as_me:$LINENO: result: no" >&5
   5577 echo "${ECHO_T}no" >&6; }
   5578 fi
   5579 
   5580 
   5581 # Extract the first word of "date", so it can be a program name with args.

   5582 set dummy date; ac_word=$2
   5583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5585 if test "${ac_cv_path_DATE+set}" = set; then
   5586   echo $ECHO_N "(cached) $ECHO_C" >&6
   5587 else
   5588   case $DATE in
   5589   [\\/]* | ?:[\\/]*)
   5590   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.

   5591   ;;
   5592   *)
   5593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5594 for as_dir in $PATH
   5595 do
   5596   IFS=$as_save_IFS
   5597   test -z "$as_dir" && as_dir=.
   5598   for ac_exec_ext in '' $ac_executable_extensions; do
   5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5600     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
   5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5602     break 2
   5603   fi
   5604 done
   5605 done
   5606 IFS=$as_save_IFS
   5607 
   5608   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
   5609   ;;
   5610 esac
   5611 fi
   5612 DATE=$ac_cv_path_DATE
   5613 if test -n "$DATE"; then
   5614   { echo "$as_me:$LINENO: result: $DATE" >&5
   5615 echo "${ECHO_T}$DATE" >&6; }
   5616 else
   5617   { echo "$as_me:$LINENO: result: no" >&5
   5618 echo "${ECHO_T}no" >&6; }
   5619 fi
   5620 
   5621 
   5622 # Extract the first word of "find", so it can be a program name with args.

   5623 set dummy find; ac_word=$2
   5624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5626 if test "${ac_cv_path_FIND+set}" = set; then
   5627   echo $ECHO_N "(cached) $ECHO_C" >&6
   5628 else
   5629   case $FIND in
   5630   [\\/]* | ?:[\\/]*)
   5631   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.

   5632   ;;
   5633   *)
   5634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5635 for as_dir in $PATH
   5636 do
   5637   IFS=$as_save_IFS
   5638   test -z "$as_dir" && as_dir=.
   5639   for ac_exec_ext in '' $ac_executable_extensions; do
   5640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5641     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
   5642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5643     break 2
   5644   fi
   5645 done
   5646 done
   5647 IFS=$as_save_IFS
   5648 
   5649   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
   5650   ;;
   5651 esac
   5652 fi
   5653 FIND=$ac_cv_path_FIND
   5654 if test -n "$FIND"; then
   5655   { echo "$as_me:$LINENO: result: $FIND" >&5
   5656 echo "${ECHO_T}$FIND" >&6; }
   5657 else
   5658   { echo "$as_me:$LINENO: result: no" >&5
   5659 echo "${ECHO_T}no" >&6; }
   5660 fi
   5661 
   5662 
   5663 # Extract the first word of "grep", so it can be a program name with args.

   5664 set dummy grep; ac_word=$2
   5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5667 if test "${ac_cv_path_GREP+set}" = set; then
   5668   echo $ECHO_N "(cached) $ECHO_C" >&6
   5669 else
   5670   case $GREP in
   5671   [\\/]* | ?:[\\/]*)
   5672   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.

   5673   ;;
   5674   *)
   5675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5676 for as_dir in $PATH
   5677 do
   5678   IFS=$as_save_IFS
   5679   test -z "$as_dir" && as_dir=.
   5680   for ac_exec_ext in '' $ac_executable_extensions; do
   5681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5682     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   5683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5684     break 2
   5685   fi
   5686 done
   5687 done
   5688 IFS=$as_save_IFS
   5689 
   5690   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
   5691   ;;
   5692 esac
   5693 fi
   5694 GREP=$ac_cv_path_GREP
   5695 if test -n "$GREP"; then
   5696   { echo "$as_me:$LINENO: result: $GREP" >&5
   5697 echo "${ECHO_T}$GREP" >&6; }
   5698 else
   5699   { echo "$as_me:$LINENO: result: no" >&5
   5700 echo "${ECHO_T}no" >&6; }
   5701 fi
   5702 
   5703 
   5704 # Extract the first word of "mkdir", so it can be a program name with args.

   5705 set dummy mkdir; ac_word=$2
   5706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5708 if test "${ac_cv_path_MKDIR+set}" = set; then
   5709   echo $ECHO_N "(cached) $ECHO_C" >&6
   5710 else
   5711   case $MKDIR in
   5712   [\\/]* | ?:[\\/]*)
   5713   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.

   5714   ;;
   5715   *)
   5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5717 for as_dir in $PATH
   5718 do
   5719   IFS=$as_save_IFS
   5720   test -z "$as_dir" && as_dir=.
   5721   for ac_exec_ext in '' $ac_executable_extensions; do
   5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5723     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
   5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5725     break 2
   5726   fi
   5727 done
   5728 done
   5729 IFS=$as_save_IFS
   5730 
   5731   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
   5732   ;;
   5733 esac
   5734 fi
   5735 MKDIR=$ac_cv_path_MKDIR
   5736 if test -n "$MKDIR"; then
   5737   { echo "$as_me:$LINENO: result: $MKDIR" >&5
   5738 echo "${ECHO_T}$MKDIR" >&6; }
   5739 else
   5740   { echo "$as_me:$LINENO: result: no" >&5
   5741 echo "${ECHO_T}no" >&6; }
   5742 fi
   5743 
   5744 
   5745 # Extract the first word of "mv", so it can be a program name with args.

   5746 set dummy mv; ac_word=$2
   5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5749 if test "${ac_cv_path_MV+set}" = set; then
   5750   echo $ECHO_N "(cached) $ECHO_C" >&6
   5751 else
   5752   case $MV in
   5753   [\\/]* | ?:[\\/]*)
   5754   ac_cv_path_MV="$MV" # Let the user override the test with a path.

   5755   ;;
   5756   *)
   5757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5758 for as_dir in $PATH
   5759 do
   5760   IFS=$as_save_IFS
   5761   test -z "$as_dir" && as_dir=.
   5762   for ac_exec_ext in '' $ac_executable_extensions; do
   5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5764     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
   5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5766     break 2
   5767   fi
   5768 done
   5769 done
   5770 IFS=$as_save_IFS
   5771 
   5772   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
   5773   ;;
   5774 esac
   5775 fi
   5776 MV=$ac_cv_path_MV
   5777 if test -n "$MV"; then
   5778   { echo "$as_me:$LINENO: result: $MV" >&5
   5779 echo "${ECHO_T}$MV" >&6; }
   5780 else
   5781   { echo "$as_me:$LINENO: result: no" >&5
   5782 echo "${ECHO_T}no" >&6; }
   5783 fi
   5784 
   5785 
   5786 if test -n "$ac_tool_prefix"; then
   5787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.

   5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5791 if test "${ac_cv_prog_RANLIB+set}" = set; then
   5792   echo $ECHO_N "(cached) $ECHO_C" >&6
   5793 else
   5794   if test -n "$RANLIB"; then
   5795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.

   5796 else
   5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5798 for as_dir in $PATH
   5799 do
   5800   IFS=$as_save_IFS
   5801   test -z "$as_dir" && as_dir=.
   5802   for ac_exec_ext in '' $ac_executable_extensions; do
   5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5806     break 2
   5807   fi
   5808 done
   5809 done
   5810 IFS=$as_save_IFS
   5811 
   5812 fi
   5813 fi
   5814 RANLIB=$ac_cv_prog_RANLIB
   5815 if test -n "$RANLIB"; then
   5816   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   5817 echo "${ECHO_T}$RANLIB" >&6; }
   5818 else
   5819   { echo "$as_me:$LINENO: result: no" >&5
   5820 echo "${ECHO_T}no" >&6; }
   5821 fi
   5822 
   5823 
   5824 fi
   5825 if test -z "$ac_cv_prog_RANLIB"; then
   5826   ac_ct_RANLIB=$RANLIB
   5827   # Extract the first word of "ranlib", so it can be a program name with args.

   5828 set dummy ranlib; ac_word=$2
   5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5832   echo $ECHO_N "(cached) $ECHO_C" >&6
   5833 else
   5834   if test -n "$ac_ct_RANLIB"; then
   5835   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.

   5836 else
   5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5838 for as_dir in $PATH
   5839 do
   5840   IFS=$as_save_IFS
   5841   test -z "$as_dir" && as_dir=.
   5842   for ac_exec_ext in '' $ac_executable_extensions; do
   5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5844     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5846     break 2
   5847   fi
   5848 done
   5849 done
   5850 IFS=$as_save_IFS
   5851 
   5852 fi
   5853 fi
   5854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5855 if test -n "$ac_ct_RANLIB"; then
   5856   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   5857 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   5858 else
   5859   { echo "$as_me:$LINENO: result: no" >&5
   5860 echo "${ECHO_T}no" >&6; }
   5861 fi
   5862 
   5863   if test "x$ac_ct_RANLIB" = x; then
   5864     RANLIB=":"
   5865   else
   5866     case $cross_compiling:$ac_tool_warned in
   5867 yes:)
   5868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5869 whose name does not start with the host triplet.  If you think this
   5870 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5872 whose name does not start with the host triplet.  If you think this
   5873 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5874 ac_tool_warned=yes ;;
   5875 esac
   5876     RANLIB=$ac_ct_RANLIB
   5877   fi
   5878 else
   5879   RANLIB="$ac_cv_prog_RANLIB"
   5880 fi
   5881 
   5882 if test -n "$ac_tool_prefix"; then
   5883   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.

   5884 set dummy ${ac_tool_prefix}ar; ac_word=$2
   5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5887 if test "${ac_cv_prog_AR+set}" = set; then
   5888   echo $ECHO_N "(cached) $ECHO_C" >&6
   5889 else
   5890   if test -n "$AR"; then
   5891   ac_cv_prog_AR="$AR" # Let the user override the test.

   5892 else
   5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5894 for as_dir in $PATH
   5895 do
   5896   IFS=$as_save_IFS
   5897   test -z "$as_dir" && as_dir=.
   5898   for ac_exec_ext in '' $ac_executable_extensions; do
   5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5900     ac_cv_prog_AR="${ac_tool_prefix}ar"
   5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5902     break 2
   5903   fi
   5904 done
   5905 done
   5906 IFS=$as_save_IFS
   5907 
   5908 fi
   5909 fi
   5910 AR=$ac_cv_prog_AR
   5911 if test -n "$AR"; then
   5912   { echo "$as_me:$LINENO: result: $AR" >&5
   5913 echo "${ECHO_T}$AR" >&6; }
   5914 else
   5915   { echo "$as_me:$LINENO: result: no" >&5
   5916 echo "${ECHO_T}no" >&6; }
   5917 fi
   5918 
   5919 
   5920 fi
   5921 if test -z "$ac_cv_prog_AR"; then
   5922   ac_ct_AR=$AR
   5923   # Extract the first word of "ar", so it can be a program name with args.

   5924 set dummy ar; ac_word=$2
   5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   5928   echo $ECHO_N "(cached) $ECHO_C" >&6
   5929 else
   5930   if test -n "$ac_ct_AR"; then
   5931   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.

   5932 else
   5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5934 for as_dir in $PATH
   5935 do
   5936   IFS=$as_save_IFS
   5937   test -z "$as_dir" && as_dir=.
   5938   for ac_exec_ext in '' $ac_executable_extensions; do
   5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5940     ac_cv_prog_ac_ct_AR="ar"
   5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5942     break 2
   5943   fi
   5944 done
   5945 done
   5946 IFS=$as_save_IFS
   5947 
   5948 fi
   5949 fi
   5950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5951 if test -n "$ac_ct_AR"; then
   5952   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   5953 echo "${ECHO_T}$ac_ct_AR" >&6; }
   5954 else
   5955   { echo "$as_me:$LINENO: result: no" >&5
   5956 echo "${ECHO_T}no" >&6; }
   5957 fi
   5958 
   5959   if test "x$ac_ct_AR" = x; then
   5960     AR="false"
   5961   else
   5962     case $cross_compiling:$ac_tool_warned in
   5963 yes:)
   5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5965 whose name does not start with the host triplet.  If you think this
   5966 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5968 whose name does not start with the host triplet.  If you think this
   5969 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5970 ac_tool_warned=yes ;;
   5971 esac
   5972     AR=$ac_ct_AR
   5973   fi
   5974 else
   5975   AR="$ac_cv_prog_AR"
   5976 fi
   5977 
   5978 # Extract the first word of "rm", so it can be a program name with args.

   5979 set dummy rm; ac_word=$2
   5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5982 if test "${ac_cv_path_RM+set}" = set; then
   5983   echo $ECHO_N "(cached) $ECHO_C" >&6
   5984 else
   5985   case $RM in
   5986   [\\/]* | ?:[\\/]*)
   5987   ac_cv_path_RM="$RM" # Let the user override the test with a path.

   5988   ;;
   5989   *)
   5990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5991 for as_dir in $PATH
   5992 do
   5993   IFS=$as_save_IFS
   5994   test -z "$as_dir" && as_dir=.
   5995   for ac_exec_ext in '' $ac_executable_extensions; do
   5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5997     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
   5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5999     break 2
   6000   fi
   6001 done
   6002 done
   6003 IFS=$as_save_IFS
   6004 
   6005   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
   6006   ;;
   6007 esac
   6008 fi
   6009 RM=$ac_cv_path_RM
   6010 if test -n "$RM"; then
   6011   { echo "$as_me:$LINENO: result: $RM" >&5
   6012 echo "${ECHO_T}$RM" >&6; }
   6013 else
   6014   { echo "$as_me:$LINENO: result: no" >&5
   6015 echo "${ECHO_T}no" >&6; }
   6016 fi
   6017 
   6018 
   6019 # Extract the first word of "sed", so it can be a program name with args.

   6020 set dummy sed; ac_word=$2
   6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6023 if test "${ac_cv_path_SED+set}" = set; then
   6024   echo $ECHO_N "(cached) $ECHO_C" >&6
   6025 else
   6026   case $SED in
   6027   [\\/]* | ?:[\\/]*)
   6028   ac_cv_path_SED="$SED" # Let the user override the test with a path.

   6029   ;;
   6030   *)
   6031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6032 for as_dir in $PATH
   6033 do
   6034   IFS=$as_save_IFS
   6035   test -z "$as_dir" && as_dir=.
   6036   for ac_exec_ext in '' $ac_executable_extensions; do
   6037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6038     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   6039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6040     break 2
   6041   fi
   6042 done
   6043 done
   6044 IFS=$as_save_IFS
   6045 
   6046   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
   6047   ;;
   6048 esac
   6049 fi
   6050 SED=$ac_cv_path_SED
   6051 if test -n "$SED"; then
   6052   { echo "$as_me:$LINENO: result: $SED" >&5
   6053 echo "${ECHO_T}$SED" >&6; }
   6054 else
   6055   { echo "$as_me:$LINENO: result: no" >&5
   6056 echo "${ECHO_T}no" >&6; }
   6057 fi
   6058 
   6059 
   6060 # Extract the first word of "tar", so it can be a program name with args.

   6061 set dummy tar; ac_word=$2
   6062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6064 if test "${ac_cv_path_TAR+set}" = set; then
   6065   echo $ECHO_N "(cached) $ECHO_C" >&6
   6066 else
   6067   case $TAR in
   6068   [\\/]* | ?:[\\/]*)
   6069   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.

   6070   ;;
   6071   *)
   6072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6073 for as_dir in $PATH
   6074 do
   6075   IFS=$as_save_IFS
   6076   test -z "$as_dir" && as_dir=.
   6077   for ac_exec_ext in '' $ac_executable_extensions; do
   6078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6079     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   6080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6081     break 2
   6082   fi
   6083 done
   6084 done
   6085 IFS=$as_save_IFS
   6086 
   6087   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
   6088   ;;
   6089 esac
   6090 fi
   6091 TAR=$ac_cv_path_TAR
   6092 if test -n "$TAR"; then
   6093   { echo "$as_me:$LINENO: result: $TAR" >&5
   6094 echo "${ECHO_T}$TAR" >&6; }
   6095 else
   6096   { echo "$as_me:$LINENO: result: no" >&5
   6097 echo "${ECHO_T}no" >&6; }
   6098 fi
   6099 
   6100 
   6101 # Extract the first word of "pwd", so it can be a program name with args.

   6102 set dummy pwd; ac_word=$2
   6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6105 if test "${ac_cv_path_BINPWD+set}" = set; then
   6106   echo $ECHO_N "(cached) $ECHO_C" >&6
   6107 else
   6108   case $BINPWD in
   6109   [\\/]* | ?:[\\/]*)
   6110   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.

   6111   ;;
   6112   *)
   6113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6114 for as_dir in $PATH
   6115 do
   6116   IFS=$as_save_IFS
   6117   test -z "$as_dir" && as_dir=.
   6118   for ac_exec_ext in '' $ac_executable_extensions; do
   6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6120     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
   6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6122     break 2
   6123   fi
   6124 done
   6125 done
   6126 IFS=$as_save_IFS
   6127 
   6128   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
   6129   ;;
   6130 esac
   6131 fi
   6132 BINPWD=$ac_cv_path_BINPWD
   6133 if test -n "$BINPWD"; then
   6134   { echo "$as_me:$LINENO: result: $BINPWD" >&5
   6135 echo "${ECHO_T}$BINPWD" >&6; }
   6136 else
   6137   { echo "$as_me:$LINENO: result: no" >&5
   6138 echo "${ECHO_T}no" >&6; }
   6139 fi
   6140 
   6141 
   6142 
   6143 # Extract the first word of "Graphviz", so it can be a program name with args.

   6144 set dummy Graphviz; ac_word=$2
   6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6147 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
   6148   echo $ECHO_N "(cached) $ECHO_C" >&6
   6149 else
   6150   case $GRAPHVIZ in
   6151   [\\/]* | ?:[\\/]*)
   6152   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.

   6153   ;;
   6154   *)
   6155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6156 for as_dir in $PATH
   6157 do
   6158   IFS=$as_save_IFS
   6159   test -z "$as_dir" && as_dir=.
   6160   for ac_exec_ext in '' $ac_executable_extensions; do
   6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6162     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
   6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6164     break 2
   6165   fi
   6166 done
   6167 done
   6168 IFS=$as_save_IFS
   6169 
   6170   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
   6171   ;;
   6172 esac
   6173 fi
   6174 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
   6175 if test -n "$GRAPHVIZ"; then
   6176   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
   6177 echo "${ECHO_T}$GRAPHVIZ" >&6; }
   6178 else
   6179   { echo "$as_me:$LINENO: result: no" >&5
   6180 echo "${ECHO_T}no" >&6; }
   6181 fi
   6182 
   6183 
   6184 if test "$GRAPHVIZ" != "echo Graphviz" ; then
   6185 
   6186 cat >>confdefs.h <<\_ACEOF
   6187 #define HAVE_GRAPHVIZ 1

   6188 _ACEOF
   6189 
   6190     if test "$llvm_cv_os_type" = "MingW" ; then
   6191     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6192   fi
   6193 
   6194 cat >>confdefs.h <<_ACEOF
   6195 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"

   6196 _ACEOF
   6197 
   6198 fi
   6199 # Extract the first word of "dot", so it can be a program name with args.

   6200 set dummy dot; ac_word=$2
   6201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6203 if test "${ac_cv_path_DOT+set}" = set; then
   6204   echo $ECHO_N "(cached) $ECHO_C" >&6
   6205 else
   6206   case $DOT in
   6207   [\\/]* | ?:[\\/]*)
   6208   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.

   6209   ;;
   6210   *)
   6211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6212 for as_dir in $PATH
   6213 do
   6214   IFS=$as_save_IFS
   6215   test -z "$as_dir" && as_dir=.
   6216   for ac_exec_ext in '' $ac_executable_extensions; do
   6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6218     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
   6219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6220     break 2
   6221   fi
   6222 done
   6223 done
   6224 IFS=$as_save_IFS
   6225 
   6226   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
   6227   ;;
   6228 esac
   6229 fi
   6230 DOT=$ac_cv_path_DOT
   6231 if test -n "$DOT"; then
   6232   { echo "$as_me:$LINENO: result: $DOT" >&5
   6233 echo "${ECHO_T}$DOT" >&6; }
   6234 else
   6235   { echo "$as_me:$LINENO: result: no" >&5
   6236 echo "${ECHO_T}no" >&6; }
   6237 fi
   6238 
   6239 
   6240 if test "$DOT" != "echo dot" ; then
   6241 
   6242 cat >>confdefs.h <<\_ACEOF
   6243 #define HAVE_DOT 1

   6244 _ACEOF
   6245 
   6246     if test "$llvm_cv_os_type" = "MingW" ; then
   6247     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6248   fi
   6249 
   6250 cat >>confdefs.h <<_ACEOF
   6251 #define LLVM_PATH_DOT "$DOT${EXEEXT}"

   6252 _ACEOF
   6253 
   6254 fi
   6255 # Extract the first word of "fdp", so it can be a program name with args.

   6256 set dummy fdp; ac_word=$2
   6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6259 if test "${ac_cv_path_FDP+set}" = set; then
   6260   echo $ECHO_N "(cached) $ECHO_C" >&6
   6261 else
   6262   case $FDP in
   6263   [\\/]* | ?:[\\/]*)
   6264   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.

   6265   ;;
   6266   *)
   6267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6268 for as_dir in $PATH
   6269 do
   6270   IFS=$as_save_IFS
   6271   test -z "$as_dir" && as_dir=.
   6272   for ac_exec_ext in '' $ac_executable_extensions; do
   6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6274     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
   6275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6276     break 2
   6277   fi
   6278 done
   6279 done
   6280 IFS=$as_save_IFS
   6281 
   6282   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
   6283   ;;
   6284 esac
   6285 fi
   6286 FDP=$ac_cv_path_FDP
   6287 if test -n "$FDP"; then
   6288   { echo "$as_me:$LINENO: result: $FDP" >&5
   6289 echo "${ECHO_T}$FDP" >&6; }
   6290 else
   6291   { echo "$as_me:$LINENO: result: no" >&5
   6292 echo "${ECHO_T}no" >&6; }
   6293 fi
   6294 
   6295 
   6296 if test "$FDP" != "echo fdp" ; then
   6297 
   6298 cat >>confdefs.h <<\_ACEOF
   6299 #define HAVE_FDP 1

   6300 _ACEOF
   6301 
   6302     if test "$llvm_cv_os_type" = "MingW" ; then
   6303     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6304   fi
   6305 
   6306 cat >>confdefs.h <<_ACEOF
   6307 #define LLVM_PATH_FDP "$FDP${EXEEXT}"

   6308 _ACEOF
   6309 
   6310 fi
   6311 # Extract the first word of "neato", so it can be a program name with args.

   6312 set dummy neato; ac_word=$2
   6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6315 if test "${ac_cv_path_NEATO+set}" = set; then
   6316   echo $ECHO_N "(cached) $ECHO_C" >&6
   6317 else
   6318   case $NEATO in
   6319   [\\/]* | ?:[\\/]*)
   6320   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.

   6321   ;;
   6322   *)
   6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6324 for as_dir in $PATH
   6325 do
   6326   IFS=$as_save_IFS
   6327   test -z "$as_dir" && as_dir=.
   6328   for ac_exec_ext in '' $ac_executable_extensions; do
   6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6330     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
   6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6332     break 2
   6333   fi
   6334 done
   6335 done
   6336 IFS=$as_save_IFS
   6337 
   6338   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
   6339   ;;
   6340 esac
   6341 fi
   6342 NEATO=$ac_cv_path_NEATO
   6343 if test -n "$NEATO"; then
   6344   { echo "$as_me:$LINENO: result: $NEATO" >&5
   6345 echo "${ECHO_T}$NEATO" >&6; }
   6346 else
   6347   { echo "$as_me:$LINENO: result: no" >&5
   6348 echo "${ECHO_T}no" >&6; }
   6349 fi
   6350 
   6351 
   6352 if test "$NEATO" != "echo neato" ; then
   6353 
   6354 cat >>confdefs.h <<\_ACEOF
   6355 #define HAVE_NEATO 1

   6356 _ACEOF
   6357 
   6358     if test "$llvm_cv_os_type" = "MingW" ; then
   6359     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6360   fi
   6361 
   6362 cat >>confdefs.h <<_ACEOF
   6363 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"

   6364 _ACEOF
   6365 
   6366 fi
   6367 # Extract the first word of "twopi", so it can be a program name with args.

   6368 set dummy twopi; ac_word=$2
   6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6371 if test "${ac_cv_path_TWOPI+set}" = set; then
   6372   echo $ECHO_N "(cached) $ECHO_C" >&6
   6373 else
   6374   case $TWOPI in
   6375   [\\/]* | ?:[\\/]*)
   6376   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.

   6377   ;;
   6378   *)
   6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6380 for as_dir in $PATH
   6381 do
   6382   IFS=$as_save_IFS
   6383   test -z "$as_dir" && as_dir=.
   6384   for ac_exec_ext in '' $ac_executable_extensions; do
   6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6386     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
   6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6388     break 2
   6389   fi
   6390 done
   6391 done
   6392 IFS=$as_save_IFS
   6393 
   6394   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
   6395   ;;
   6396 esac
   6397 fi
   6398 TWOPI=$ac_cv_path_TWOPI
   6399 if test -n "$TWOPI"; then
   6400   { echo "$as_me:$LINENO: result: $TWOPI" >&5
   6401 echo "${ECHO_T}$TWOPI" >&6; }
   6402 else
   6403   { echo "$as_me:$LINENO: result: no" >&5
   6404 echo "${ECHO_T}no" >&6; }
   6405 fi
   6406 
   6407 
   6408 if test "$TWOPI" != "echo twopi" ; then
   6409 
   6410 cat >>confdefs.h <<\_ACEOF
   6411 #define HAVE_TWOPI 1

   6412 _ACEOF
   6413 
   6414     if test "$llvm_cv_os_type" = "MingW" ; then
   6415     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6416   fi
   6417 
   6418 cat >>confdefs.h <<_ACEOF
   6419 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"

   6420 _ACEOF
   6421 
   6422 fi
   6423 # Extract the first word of "circo", so it can be a program name with args.

   6424 set dummy circo; ac_word=$2
   6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6427 if test "${ac_cv_path_CIRCO+set}" = set; then
   6428   echo $ECHO_N "(cached) $ECHO_C" >&6
   6429 else
   6430   case $CIRCO in
   6431   [\\/]* | ?:[\\/]*)
   6432   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.

   6433   ;;
   6434   *)
   6435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6436 for as_dir in $PATH
   6437 do
   6438   IFS=$as_save_IFS
   6439   test -z "$as_dir" && as_dir=.
   6440   for ac_exec_ext in '' $ac_executable_extensions; do
   6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6442     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
   6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6444     break 2
   6445   fi
   6446 done
   6447 done
   6448 IFS=$as_save_IFS
   6449 
   6450   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
   6451   ;;
   6452 esac
   6453 fi
   6454 CIRCO=$ac_cv_path_CIRCO
   6455 if test -n "$CIRCO"; then
   6456   { echo "$as_me:$LINENO: result: $CIRCO" >&5
   6457 echo "${ECHO_T}$CIRCO" >&6; }
   6458 else
   6459   { echo "$as_me:$LINENO: result: no" >&5
   6460 echo "${ECHO_T}no" >&6; }
   6461 fi
   6462 
   6463 
   6464 if test "$CIRCO" != "echo circo" ; then
   6465 
   6466 cat >>confdefs.h <<\_ACEOF
   6467 #define HAVE_CIRCO 1

   6468 _ACEOF
   6469 
   6470     if test "$llvm_cv_os_type" = "MingW" ; then
   6471     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6472   fi
   6473 
   6474 cat >>confdefs.h <<_ACEOF
   6475 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"

   6476 _ACEOF
   6477 
   6478 fi
   6479 for ac_prog in gv gsview32
   6480 do
   6481   # Extract the first word of "$ac_prog", so it can be a program name with args.

   6482 set dummy $ac_prog; ac_word=$2
   6483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6485 if test "${ac_cv_path_GV+set}" = set; then
   6486   echo $ECHO_N "(cached) $ECHO_C" >&6
   6487 else
   6488   case $GV in
   6489   [\\/]* | ?:[\\/]*)
   6490   ac_cv_path_GV="$GV" # Let the user override the test with a path.

   6491   ;;
   6492   *)
   6493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6494 for as_dir in $PATH
   6495 do
   6496   IFS=$as_save_IFS
   6497   test -z "$as_dir" && as_dir=.
   6498   for ac_exec_ext in '' $ac_executable_extensions; do
   6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6500     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
   6501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6502     break 2
   6503   fi
   6504 done
   6505 done
   6506 IFS=$as_save_IFS
   6507 
   6508   ;;
   6509 esac
   6510 fi
   6511 GV=$ac_cv_path_GV
   6512 if test -n "$GV"; then
   6513   { echo "$as_me:$LINENO: result: $GV" >&5
   6514 echo "${ECHO_T}$GV" >&6; }
   6515 else
   6516   { echo "$as_me:$LINENO: result: no" >&5
   6517 echo "${ECHO_T}no" >&6; }
   6518 fi
   6519 
   6520 
   6521   test -n "$GV" && break
   6522 done
   6523 test -n "$GV" || GV="echo gv"
   6524 
   6525 if test "$GV" != "echo gv" ; then
   6526 
   6527 cat >>confdefs.h <<\_ACEOF
   6528 #define HAVE_GV 1

   6529 _ACEOF
   6530 
   6531     if test "$llvm_cv_os_type" = "MingW" ; then
   6532     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6533   fi
   6534 
   6535 cat >>confdefs.h <<_ACEOF
   6536 #define LLVM_PATH_GV "$GV${EXEEXT}"

   6537 _ACEOF
   6538 
   6539 fi
   6540 # Extract the first word of "dotty", so it can be a program name with args.

   6541 set dummy dotty; ac_word=$2
   6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6544 if test "${ac_cv_path_DOTTY+set}" = set; then
   6545   echo $ECHO_N "(cached) $ECHO_C" >&6
   6546 else
   6547   case $DOTTY in
   6548   [\\/]* | ?:[\\/]*)
   6549   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.

   6550   ;;
   6551   *)
   6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6553 for as_dir in $PATH
   6554 do
   6555   IFS=$as_save_IFS
   6556   test -z "$as_dir" && as_dir=.
   6557   for ac_exec_ext in '' $ac_executable_extensions; do
   6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6559     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
   6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6561     break 2
   6562   fi
   6563 done
   6564 done
   6565 IFS=$as_save_IFS
   6566 
   6567   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
   6568   ;;
   6569 esac
   6570 fi
   6571 DOTTY=$ac_cv_path_DOTTY
   6572 if test -n "$DOTTY"; then
   6573   { echo "$as_me:$LINENO: result: $DOTTY" >&5
   6574 echo "${ECHO_T}$DOTTY" >&6; }
   6575 else
   6576   { echo "$as_me:$LINENO: result: no" >&5
   6577 echo "${ECHO_T}no" >&6; }
   6578 fi
   6579 
   6580 
   6581 if test "$DOTTY" != "echo dotty" ; then
   6582 
   6583 cat >>confdefs.h <<\_ACEOF
   6584 #define HAVE_DOTTY 1

   6585 _ACEOF
   6586 
   6587     if test "$llvm_cv_os_type" = "MingW" ; then
   6588     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6589   fi
   6590 
   6591 cat >>confdefs.h <<_ACEOF
   6592 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"

   6593 _ACEOF
   6594 
   6595 fi
   6596 # Extract the first word of "xdot.py", so it can be a program name with args.

   6597 set dummy xdot.py; ac_word=$2
   6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6600 if test "${ac_cv_path_XDOT_PY+set}" = set; then
   6601   echo $ECHO_N "(cached) $ECHO_C" >&6
   6602 else
   6603   case $XDOT_PY in
   6604   [\\/]* | ?:[\\/]*)
   6605   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.

   6606   ;;
   6607   *)
   6608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6609 for as_dir in $PATH
   6610 do
   6611   IFS=$as_save_IFS
   6612   test -z "$as_dir" && as_dir=.
   6613   for ac_exec_ext in '' $ac_executable_extensions; do
   6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6615     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
   6616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6617     break 2
   6618   fi
   6619 done
   6620 done
   6621 IFS=$as_save_IFS
   6622 
   6623   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
   6624   ;;
   6625 esac
   6626 fi
   6627 XDOT_PY=$ac_cv_path_XDOT_PY
   6628 if test -n "$XDOT_PY"; then
   6629   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
   6630 echo "${ECHO_T}$XDOT_PY" >&6; }
   6631 else
   6632   { echo "$as_me:$LINENO: result: no" >&5
   6633 echo "${ECHO_T}no" >&6; }
   6634 fi
   6635 
   6636 
   6637 if test "$XDOT_PY" != "echo xdot.py" ; then
   6638 
   6639 cat >>confdefs.h <<\_ACEOF
   6640 #define HAVE_XDOT_PY 1

   6641 _ACEOF
   6642 
   6643     if test "$llvm_cv_os_type" = "MingW" ; then
   6644     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6645   fi
   6646 
   6647 cat >>confdefs.h <<_ACEOF
   6648 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"

   6649 _ACEOF
   6650 
   6651 fi
   6652 
   6653 
   6654 # Extract the first word of "perl", so it can be a program name with args.

   6655 set dummy perl; ac_word=$2
   6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6658 if test "${ac_cv_path_PERL+set}" = set; then
   6659   echo $ECHO_N "(cached) $ECHO_C" >&6
   6660 else
   6661   case $PERL in
   6662   [\\/]* | ?:[\\/]*)
   6663   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.

   6664   ;;
   6665   *)
   6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6667 for as_dir in $PATH
   6668 do
   6669   IFS=$as_save_IFS
   6670   test -z "$as_dir" && as_dir=.
   6671   for ac_exec_ext in '' $ac_executable_extensions; do
   6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6673     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6675     break 2
   6676   fi
   6677 done
   6678 done
   6679 IFS=$as_save_IFS
   6680 
   6681   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
   6682   ;;
   6683 esac
   6684 fi
   6685 PERL=$ac_cv_path_PERL
   6686 if test -n "$PERL"; then
   6687   { echo "$as_me:$LINENO: result: $PERL" >&5
   6688 echo "${ECHO_T}$PERL" >&6; }
   6689 else
   6690   { echo "$as_me:$LINENO: result: no" >&5
   6691 echo "${ECHO_T}no" >&6; }
   6692 fi
   6693 
   6694 
   6695 if test "$PERL" != "none"; then
   6696   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
   6697 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
   6698   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
   6699     { echo "$as_me:$LINENO: result: yes" >&5
   6700 echo "${ECHO_T}yes" >&6; }
   6701   else
   6702     PERL=none
   6703     { echo "$as_me:$LINENO: result: not found" >&5
   6704 echo "${ECHO_T}not found" >&6; }
   6705   fi
   6706 fi
   6707 
   6708 
   6709 if test x"$PERL" = xnone; then
   6710    HAVE_PERL=0
   6711 
   6712    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
   6713 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
   6714    { (exit 1); exit 1; }; }
   6715 else
   6716    HAVE_PERL=1
   6717 
   6718 fi
   6719 
   6720 # Find a good install program.  We prefer a C program (faster),

   6721 # so one script is as good as another.  But avoid the broken or

   6722 # incompatible versions:

   6723 # SysV /etc/install, /usr/sbin/install

   6724 # SunOS /usr/etc/install

   6725 # IRIX /sbin/install

   6726 # AIX /bin/install

   6727 # AmigaOS /C/install, which installs bootblocks on floppy discs

   6728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag

   6729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args

   6730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"

   6731 # OS/2's system install, which has a completely different semantic

   6732 # ./install, which can be erroneously created by make from ./install.sh.

   6733 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   6734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   6735 if test -z "$INSTALL"; then
   6736 if test "${ac_cv_path_install+set}" = set; then
   6737   echo $ECHO_N "(cached) $ECHO_C" >&6
   6738 else
   6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6740 for as_dir in $PATH
   6741 do
   6742   IFS=$as_save_IFS
   6743   test -z "$as_dir" && as_dir=.
   6744   # Account for people who put trailing slashes in PATH elements.

   6745 case $as_dir/ in
   6746   ./ | .// | /cC/* | \
   6747   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6748   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   6749   /usr/ucb/* ) ;;
   6750   *)
   6751     # OSF1 and SCO ODT 3.0 have their own names for install.

   6752     # Don't use installbsd from OSF since it installs stuff as root

   6753     # by default.

   6754     for ac_prog in ginstall scoinst install; do
   6755       for ac_exec_ext in '' $ac_executable_extensions; do
   6756 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   6757 	  if test $ac_prog = install &&
   6758 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6759 	    # AIX install.  It has an incompatible calling convention.

   6760 	    :
   6761 	  elif test $ac_prog = install &&
   6762 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6763 	    # program-specific install script used by HP pwplus--don't use.

   6764 	    :
   6765 	  else
   6766 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6767 	    break 3
   6768 	  fi
   6769 	fi
   6770       done
   6771     done
   6772     ;;
   6773 esac
   6774 done
   6775 IFS=$as_save_IFS
   6776 
   6777 
   6778 fi
   6779   if test "${ac_cv_path_install+set}" = set; then
   6780     INSTALL=$ac_cv_path_install
   6781   else
   6782     # As a last resort, use the slow shell script.  Don't cache a

   6783     # value for INSTALL within a source directory, because that will

   6784     # break other packages using the cache if that directory is

   6785     # removed, or if the value is a relative name.

   6786     INSTALL=$ac_install_sh
   6787   fi
   6788 fi
   6789 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   6790 echo "${ECHO_T}$INSTALL" >&6; }
   6791 
   6792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.

   6793 # It thinks the first close brace ends the variable substitution.

   6794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6795 
   6796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6797 
   6798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6799 
   6800 case "$INSTALL" in
   6801  [\\/$]* | ?:[\\/]* ) ;;
   6802  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
   6803 esac
   6804 
   6805 # Extract the first word of "bzip2", so it can be a program name with args.

   6806 set dummy bzip2; ac_word=$2
   6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6809 if test "${ac_cv_path_BZIP2+set}" = set; then
   6810   echo $ECHO_N "(cached) $ECHO_C" >&6
   6811 else
   6812   case $BZIP2 in
   6813   [\\/]* | ?:[\\/]*)
   6814   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.

   6815   ;;
   6816   *)
   6817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6818 for as_dir in $PATH
   6819 do
   6820   IFS=$as_save_IFS
   6821   test -z "$as_dir" && as_dir=.
   6822   for ac_exec_ext in '' $ac_executable_extensions; do
   6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6824     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
   6825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6826     break 2
   6827   fi
   6828 done
   6829 done
   6830 IFS=$as_save_IFS
   6831 
   6832   ;;
   6833 esac
   6834 fi
   6835 BZIP2=$ac_cv_path_BZIP2
   6836 if test -n "$BZIP2"; then
   6837   { echo "$as_me:$LINENO: result: $BZIP2" >&5
   6838 echo "${ECHO_T}$BZIP2" >&6; }
   6839 else
   6840   { echo "$as_me:$LINENO: result: no" >&5
   6841 echo "${ECHO_T}no" >&6; }
   6842 fi
   6843 
   6844 
   6845 # Extract the first word of "cat", so it can be a program name with args.

   6846 set dummy cat; ac_word=$2
   6847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6849 if test "${ac_cv_path_CAT+set}" = set; then
   6850   echo $ECHO_N "(cached) $ECHO_C" >&6
   6851 else
   6852   case $CAT in
   6853   [\\/]* | ?:[\\/]*)
   6854   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.

   6855   ;;
   6856   *)
   6857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6858 for as_dir in $PATH
   6859 do
   6860   IFS=$as_save_IFS
   6861   test -z "$as_dir" && as_dir=.
   6862   for ac_exec_ext in '' $ac_executable_extensions; do
   6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6864     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   6865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6866     break 2
   6867   fi
   6868 done
   6869 done
   6870 IFS=$as_save_IFS
   6871 
   6872   ;;
   6873 esac
   6874 fi
   6875 CAT=$ac_cv_path_CAT
   6876 if test -n "$CAT"; then
   6877   { echo "$as_me:$LINENO: result: $CAT" >&5
   6878 echo "${ECHO_T}$CAT" >&6; }
   6879 else
   6880   { echo "$as_me:$LINENO: result: no" >&5
   6881 echo "${ECHO_T}no" >&6; }
   6882 fi
   6883 
   6884 
   6885 # Extract the first word of "doxygen", so it can be a program name with args.

   6886 set dummy doxygen; ac_word=$2
   6887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6889 if test "${ac_cv_path_DOXYGEN+set}" = set; then
   6890   echo $ECHO_N "(cached) $ECHO_C" >&6
   6891 else
   6892   case $DOXYGEN in
   6893   [\\/]* | ?:[\\/]*)
   6894   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.

   6895   ;;
   6896   *)
   6897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6898 for as_dir in $PATH
   6899 do
   6900   IFS=$as_save_IFS
   6901   test -z "$as_dir" && as_dir=.
   6902   for ac_exec_ext in '' $ac_executable_extensions; do
   6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6904     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   6905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6906     break 2
   6907   fi
   6908 done
   6909 done
   6910 IFS=$as_save_IFS
   6911 
   6912   ;;
   6913 esac
   6914 fi
   6915 DOXYGEN=$ac_cv_path_DOXYGEN
   6916 if test -n "$DOXYGEN"; then
   6917   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
   6918 echo "${ECHO_T}$DOXYGEN" >&6; }
   6919 else
   6920   { echo "$as_me:$LINENO: result: no" >&5
   6921 echo "${ECHO_T}no" >&6; }
   6922 fi
   6923 
   6924 
   6925 # Extract the first word of "groff", so it can be a program name with args.

   6926 set dummy groff; ac_word=$2
   6927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6929 if test "${ac_cv_path_GROFF+set}" = set; then
   6930   echo $ECHO_N "(cached) $ECHO_C" >&6
   6931 else
   6932   case $GROFF in
   6933   [\\/]* | ?:[\\/]*)
   6934   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.

   6935   ;;
   6936   *)
   6937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6938 for as_dir in $PATH
   6939 do
   6940   IFS=$as_save_IFS
   6941   test -z "$as_dir" && as_dir=.
   6942   for ac_exec_ext in '' $ac_executable_extensions; do
   6943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6944     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   6945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6946     break 2
   6947   fi
   6948 done
   6949 done
   6950 IFS=$as_save_IFS
   6951 
   6952   ;;
   6953 esac
   6954 fi
   6955 GROFF=$ac_cv_path_GROFF
   6956 if test -n "$GROFF"; then
   6957   { echo "$as_me:$LINENO: result: $GROFF" >&5
   6958 echo "${ECHO_T}$GROFF" >&6; }
   6959 else
   6960   { echo "$as_me:$LINENO: result: no" >&5
   6961 echo "${ECHO_T}no" >&6; }
   6962 fi
   6963 
   6964 
   6965 # Extract the first word of "gzip", so it can be a program name with args.

   6966 set dummy gzip; ac_word=$2
   6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6969 if test "${ac_cv_path_GZIPBIN+set}" = set; then
   6970   echo $ECHO_N "(cached) $ECHO_C" >&6
   6971 else
   6972   case $GZIPBIN in
   6973   [\\/]* | ?:[\\/]*)
   6974   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.

   6975   ;;
   6976   *)
   6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6978 for as_dir in $PATH
   6979 do
   6980   IFS=$as_save_IFS
   6981   test -z "$as_dir" && as_dir=.
   6982   for ac_exec_ext in '' $ac_executable_extensions; do
   6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6984     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
   6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6986     break 2
   6987   fi
   6988 done
   6989 done
   6990 IFS=$as_save_IFS
   6991 
   6992   ;;
   6993 esac
   6994 fi
   6995 GZIPBIN=$ac_cv_path_GZIPBIN
   6996 if test -n "$GZIPBIN"; then
   6997   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
   6998 echo "${ECHO_T}$GZIPBIN" >&6; }
   6999 else
   7000   { echo "$as_me:$LINENO: result: no" >&5
   7001 echo "${ECHO_T}no" >&6; }
   7002 fi
   7003 
   7004 
   7005 # Extract the first word of "pod2html", so it can be a program name with args.

   7006 set dummy pod2html; ac_word=$2
   7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7009 if test "${ac_cv_path_POD2HTML+set}" = set; then
   7010   echo $ECHO_N "(cached) $ECHO_C" >&6
   7011 else
   7012   case $POD2HTML in
   7013   [\\/]* | ?:[\\/]*)
   7014   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.

   7015   ;;
   7016   *)
   7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7018 for as_dir in $PATH
   7019 do
   7020   IFS=$as_save_IFS
   7021   test -z "$as_dir" && as_dir=.
   7022   for ac_exec_ext in '' $ac_executable_extensions; do
   7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7024     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
   7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7026     break 2
   7027   fi
   7028 done
   7029 done
   7030 IFS=$as_save_IFS
   7031 
   7032   ;;
   7033 esac
   7034 fi
   7035 POD2HTML=$ac_cv_path_POD2HTML
   7036 if test -n "$POD2HTML"; then
   7037   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
   7038 echo "${ECHO_T}$POD2HTML" >&6; }
   7039 else
   7040   { echo "$as_me:$LINENO: result: no" >&5
   7041 echo "${ECHO_T}no" >&6; }
   7042 fi
   7043 
   7044 
   7045 # Extract the first word of "pod2man", so it can be a program name with args.

   7046 set dummy pod2man; ac_word=$2
   7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7049 if test "${ac_cv_path_POD2MAN+set}" = set; then
   7050   echo $ECHO_N "(cached) $ECHO_C" >&6
   7051 else
   7052   case $POD2MAN in
   7053   [\\/]* | ?:[\\/]*)
   7054   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.

   7055   ;;
   7056   *)
   7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7058 for as_dir in $PATH
   7059 do
   7060   IFS=$as_save_IFS
   7061   test -z "$as_dir" && as_dir=.
   7062   for ac_exec_ext in '' $ac_executable_extensions; do
   7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7064     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
   7065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7066     break 2
   7067   fi
   7068 done
   7069 done
   7070 IFS=$as_save_IFS
   7071 
   7072   ;;
   7073 esac
   7074 fi
   7075 POD2MAN=$ac_cv_path_POD2MAN
   7076 if test -n "$POD2MAN"; then
   7077   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
   7078 echo "${ECHO_T}$POD2MAN" >&6; }
   7079 else
   7080   { echo "$as_me:$LINENO: result: no" >&5
   7081 echo "${ECHO_T}no" >&6; }
   7082 fi
   7083 
   7084 
   7085 # Extract the first word of "pdfroff", so it can be a program name with args.

   7086 set dummy pdfroff; ac_word=$2
   7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7089 if test "${ac_cv_path_PDFROFF+set}" = set; then
   7090   echo $ECHO_N "(cached) $ECHO_C" >&6
   7091 else
   7092   case $PDFROFF in
   7093   [\\/]* | ?:[\\/]*)
   7094   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.

   7095   ;;
   7096   *)
   7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7098 for as_dir in $PATH
   7099 do
   7100   IFS=$as_save_IFS
   7101   test -z "$as_dir" && as_dir=.
   7102   for ac_exec_ext in '' $ac_executable_extensions; do
   7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7104     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
   7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7106     break 2
   7107   fi
   7108 done
   7109 done
   7110 IFS=$as_save_IFS
   7111 
   7112   ;;
   7113 esac
   7114 fi
   7115 PDFROFF=$ac_cv_path_PDFROFF
   7116 if test -n "$PDFROFF"; then
   7117   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
   7118 echo "${ECHO_T}$PDFROFF" >&6; }
   7119 else
   7120   { echo "$as_me:$LINENO: result: no" >&5
   7121 echo "${ECHO_T}no" >&6; }
   7122 fi
   7123 
   7124 
   7125 # Extract the first word of "runtest", so it can be a program name with args.

   7126 set dummy runtest; ac_word=$2
   7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7129 if test "${ac_cv_path_RUNTEST+set}" = set; then
   7130   echo $ECHO_N "(cached) $ECHO_C" >&6
   7131 else
   7132   case $RUNTEST in
   7133   [\\/]* | ?:[\\/]*)
   7134   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.

   7135   ;;
   7136   *)
   7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7138 for as_dir in $PATH
   7139 do
   7140   IFS=$as_save_IFS
   7141   test -z "$as_dir" && as_dir=.
   7142   for ac_exec_ext in '' $ac_executable_extensions; do
   7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7144     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
   7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7146     break 2
   7147   fi
   7148 done
   7149 done
   7150 IFS=$as_save_IFS
   7151 
   7152   ;;
   7153 esac
   7154 fi
   7155 RUNTEST=$ac_cv_path_RUNTEST
   7156 if test -n "$RUNTEST"; then
   7157   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
   7158 echo "${ECHO_T}$RUNTEST" >&6; }
   7159 else
   7160   { echo "$as_me:$LINENO: result: no" >&5
   7161 echo "${ECHO_T}no" >&6; }
   7162 fi
   7163 
   7164 
   7165 
   7166 no_itcl=true
   7167 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
   7168 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
   7169 
   7170 # Check whether --with-tclinclude was given.

   7171 if test "${with_tclinclude+set}" = set; then
   7172   withval=$with_tclinclude; with_tclinclude=${withval}
   7173 else
   7174   with_tclinclude=''
   7175 fi
   7176 
   7177 if test "${ac_cv_path_tclsh+set}" = set; then
   7178   echo $ECHO_N "(cached) $ECHO_C" >&6
   7179 else
   7180 
   7181 if test x"${with_tclinclude}" != x ; then
   7182   if test -f ${with_tclinclude}/tclsh ; then
   7183     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
   7184   elif test -f ${with_tclinclude}/src/tclsh ; then
   7185     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
   7186   else
   7187     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
   7188 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
   7189    { (exit 1); exit 1; }; }
   7190   fi
   7191 fi
   7192 fi
   7193 
   7194 
   7195 if test x"${ac_cv_path_tclsh}" = x ; then
   7196   { echo "$as_me:$LINENO: result: none" >&5
   7197 echo "${ECHO_T}none" >&6; }
   7198   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
   7199 do
   7200   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7201 set dummy $ac_prog; ac_word=$2
   7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7204 if test "${ac_cv_path_TCLSH+set}" = set; then
   7205   echo $ECHO_N "(cached) $ECHO_C" >&6
   7206 else
   7207   case $TCLSH in
   7208   [\\/]* | ?:[\\/]*)
   7209   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.

   7210   ;;
   7211   *)
   7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7213 for as_dir in $PATH
   7214 do
   7215   IFS=$as_save_IFS
   7216   test -z "$as_dir" && as_dir=.
   7217   for ac_exec_ext in '' $ac_executable_extensions; do
   7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7219     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
   7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7221     break 2
   7222   fi
   7223 done
   7224 done
   7225 IFS=$as_save_IFS
   7226 
   7227   ;;
   7228 esac
   7229 fi
   7230 TCLSH=$ac_cv_path_TCLSH
   7231 if test -n "$TCLSH"; then
   7232   { echo "$as_me:$LINENO: result: $TCLSH" >&5
   7233 echo "${ECHO_T}$TCLSH" >&6; }
   7234 else
   7235   { echo "$as_me:$LINENO: result: no" >&5
   7236 echo "${ECHO_T}no" >&6; }
   7237 fi
   7238 
   7239 
   7240   test -n "$TCLSH" && break
   7241 done
   7242 
   7243   if test x"${TCLSH}" = x ; then
   7244     ac_cv_path_tclsh='';
   7245   else
   7246     ac_cv_path_tclsh="${TCLSH}";
   7247   fi
   7248 else
   7249   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
   7250 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
   7251   TCLSH="${ac_cv_path_tclsh}"
   7252 
   7253 fi
   7254 
   7255 # Extract the first word of "zip", so it can be a program name with args.

   7256 set dummy zip; 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_ZIP+set}" = set; then
   7260   echo $ECHO_N "(cached) $ECHO_C" >&6
   7261 else
   7262   case $ZIP in
   7263   [\\/]* | ?:[\\/]*)
   7264   ac_cv_path_ZIP="$ZIP" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7274     ac_cv_path_ZIP="$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 ZIP=$ac_cv_path_ZIP
   7286 if test -n "$ZIP"; then
   7287   { echo "$as_me:$LINENO: result: $ZIP" >&5
   7288 echo "${ECHO_T}$ZIP" >&6; }
   7289 else
   7290   { echo "$as_me:$LINENO: result: no" >&5
   7291 echo "${ECHO_T}no" >&6; }
   7292 fi
   7293 
   7294 
   7295 for ac_prog in ocamlc
   7296 do
   7297   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7298 set dummy $ac_prog; ac_word=$2
   7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7301 if test "${ac_cv_path_OCAMLC+set}" = set; then
   7302   echo $ECHO_N "(cached) $ECHO_C" >&6
   7303 else
   7304   case $OCAMLC in
   7305   [\\/]* | ?:[\\/]*)
   7306   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.

   7307   ;;
   7308   *)
   7309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7310 for as_dir in $PATH
   7311 do
   7312   IFS=$as_save_IFS
   7313   test -z "$as_dir" && as_dir=.
   7314   for ac_exec_ext in '' $ac_executable_extensions; do
   7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7316     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
   7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7318     break 2
   7319   fi
   7320 done
   7321 done
   7322 IFS=$as_save_IFS
   7323 
   7324   ;;
   7325 esac
   7326 fi
   7327 OCAMLC=$ac_cv_path_OCAMLC
   7328 if test -n "$OCAMLC"; then
   7329   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
   7330 echo "${ECHO_T}$OCAMLC" >&6; }
   7331 else
   7332   { echo "$as_me:$LINENO: result: no" >&5
   7333 echo "${ECHO_T}no" >&6; }
   7334 fi
   7335 
   7336 
   7337   test -n "$OCAMLC" && break
   7338 done
   7339 
   7340 for ac_prog in ocamlopt
   7341 do
   7342   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7343 set dummy $ac_prog; ac_word=$2
   7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7346 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
   7347   echo $ECHO_N "(cached) $ECHO_C" >&6
   7348 else
   7349   case $OCAMLOPT in
   7350   [\\/]* | ?:[\\/]*)
   7351   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.

   7352   ;;
   7353   *)
   7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7355 for as_dir in $PATH
   7356 do
   7357   IFS=$as_save_IFS
   7358   test -z "$as_dir" && as_dir=.
   7359   for ac_exec_ext in '' $ac_executable_extensions; do
   7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7361     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
   7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7363     break 2
   7364   fi
   7365 done
   7366 done
   7367 IFS=$as_save_IFS
   7368 
   7369   ;;
   7370 esac
   7371 fi
   7372 OCAMLOPT=$ac_cv_path_OCAMLOPT
   7373 if test -n "$OCAMLOPT"; then
   7374   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
   7375 echo "${ECHO_T}$OCAMLOPT" >&6; }
   7376 else
   7377   { echo "$as_me:$LINENO: result: no" >&5
   7378 echo "${ECHO_T}no" >&6; }
   7379 fi
   7380 
   7381 
   7382   test -n "$OCAMLOPT" && break
   7383 done
   7384 
   7385 for ac_prog in ocamldep
   7386 do
   7387   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7388 set dummy $ac_prog; ac_word=$2
   7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7391 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
   7392   echo $ECHO_N "(cached) $ECHO_C" >&6
   7393 else
   7394   case $OCAMLDEP in
   7395   [\\/]* | ?:[\\/]*)
   7396   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.

   7397   ;;
   7398   *)
   7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7400 for as_dir in $PATH
   7401 do
   7402   IFS=$as_save_IFS
   7403   test -z "$as_dir" && as_dir=.
   7404   for ac_exec_ext in '' $ac_executable_extensions; do
   7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7406     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
   7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7408     break 2
   7409   fi
   7410 done
   7411 done
   7412 IFS=$as_save_IFS
   7413 
   7414   ;;
   7415 esac
   7416 fi
   7417 OCAMLDEP=$ac_cv_path_OCAMLDEP
   7418 if test -n "$OCAMLDEP"; then
   7419   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
   7420 echo "${ECHO_T}$OCAMLDEP" >&6; }
   7421 else
   7422   { echo "$as_me:$LINENO: result: no" >&5
   7423 echo "${ECHO_T}no" >&6; }
   7424 fi
   7425 
   7426 
   7427   test -n "$OCAMLDEP" && break
   7428 done
   7429 
   7430 for ac_prog in ocamldoc
   7431 do
   7432   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7433 set dummy $ac_prog; ac_word=$2
   7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7436 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
   7437   echo $ECHO_N "(cached) $ECHO_C" >&6
   7438 else
   7439   case $OCAMLDOC in
   7440   [\\/]* | ?:[\\/]*)
   7441   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.

   7442   ;;
   7443   *)
   7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7445 for as_dir in $PATH
   7446 do
   7447   IFS=$as_save_IFS
   7448   test -z "$as_dir" && as_dir=.
   7449   for ac_exec_ext in '' $ac_executable_extensions; do
   7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7451     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
   7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7453     break 2
   7454   fi
   7455 done
   7456 done
   7457 IFS=$as_save_IFS
   7458 
   7459   ;;
   7460 esac
   7461 fi
   7462 OCAMLDOC=$ac_cv_path_OCAMLDOC
   7463 if test -n "$OCAMLDOC"; then
   7464   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
   7465 echo "${ECHO_T}$OCAMLDOC" >&6; }
   7466 else
   7467   { echo "$as_me:$LINENO: result: no" >&5
   7468 echo "${ECHO_T}no" >&6; }
   7469 fi
   7470 
   7471 
   7472   test -n "$OCAMLDOC" && break
   7473 done
   7474 
   7475 for ac_prog in gas as
   7476 do
   7477   # Extract the first word of "$ac_prog", so it can be a program name with args.

   7478 set dummy $ac_prog; ac_word=$2
   7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7481 if test "${ac_cv_path_GAS+set}" = set; then
   7482   echo $ECHO_N "(cached) $ECHO_C" >&6
   7483 else
   7484   case $GAS in
   7485   [\\/]* | ?:[\\/]*)
   7486   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.

   7487   ;;
   7488   *)
   7489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7490 for as_dir in $PATH
   7491 do
   7492   IFS=$as_save_IFS
   7493   test -z "$as_dir" && as_dir=.
   7494   for ac_exec_ext in '' $ac_executable_extensions; do
   7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7496     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
   7497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7498     break 2
   7499   fi
   7500 done
   7501 done
   7502 IFS=$as_save_IFS
   7503 
   7504   ;;
   7505 esac
   7506 fi
   7507 GAS=$ac_cv_path_GAS
   7508 if test -n "$GAS"; then
   7509   { echo "$as_me:$LINENO: result: $GAS" >&5
   7510 echo "${ECHO_T}$GAS" >&6; }
   7511 else
   7512   { echo "$as_me:$LINENO: result: no" >&5
   7513 echo "${ECHO_T}no" >&6; }
   7514 fi
   7515 
   7516 
   7517   test -n "$GAS" && break
   7518 done
   7519 
   7520 
   7521 { echo "$as_me:$LINENO: checking for linker version" >&5
   7522 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
   7523 if test "${llvm_cv_link_version+set}" = set; then
   7524   echo $ECHO_N "(cached) $ECHO_C" >&6
   7525 else
   7526 
   7527    version_string="$(ld -v 2>&1 | head -1)"
   7528 
   7529    # Check for ld64.

   7530    if (echo "$version_string" | grep -q "ld64"); then
   7531      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
   7532    else
   7533      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
   7534    fi
   7535 
   7536 fi
   7537 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
   7538 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
   7539 
   7540 cat >>confdefs.h <<_ACEOF
   7541 #define HOST_LINK_VERSION "$llvm_cv_link_version"

   7542 _ACEOF
   7543 
   7544 
   7545 
   7546 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
   7547 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
   7548 if test "${llvm_cv_link_use_r+set}" = set; then
   7549   echo $ECHO_N "(cached) $ECHO_C" >&6
   7550 else
   7551    ac_ext=c
   7552 ac_cpp='$CPP $CPPFLAGS'
   7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7556 
   7557   oldcflags="$CFLAGS"
   7558   CFLAGS="$CFLAGS -Wl,-R."
   7559   cat >conftest.$ac_ext <<_ACEOF
   7560 /* confdefs.h.  */
   7561 _ACEOF
   7562 cat confdefs.h >>conftest.$ac_ext
   7563 cat >>conftest.$ac_ext <<_ACEOF
   7564 /* end confdefs.h.  */
   7565 
   7566 int
   7567 main ()
   7568 {
   7569 
   7570   ;
   7571   return 0;
   7572 }
   7573 _ACEOF
   7574 rm -f conftest.$ac_objext conftest$ac_exeext
   7575 if { (ac_try="$ac_link"
   7576 case "(($ac_try" in
   7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7578   *) ac_try_echo=$ac_try;;
   7579 esac
   7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7581   (eval "$ac_link") 2>conftest.er1
   7582   ac_status=$?
   7583   grep -v '^ *+' conftest.er1 >conftest.err
   7584   rm -f conftest.er1
   7585   cat conftest.err >&5
   7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7587   (exit $ac_status); } && {
   7588 	 test -z "$ac_c_werror_flag" ||
   7589 	 test ! -s conftest.err
   7590        } && test -s conftest$ac_exeext &&
   7591        $as_test_x conftest$ac_exeext; then
   7592   llvm_cv_link_use_r=yes
   7593 else
   7594   echo "$as_me: failed program was:" >&5
   7595 sed 's/^/| /' conftest.$ac_ext >&5
   7596 
   7597 	llvm_cv_link_use_r=no
   7598 fi
   7599 
   7600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7601       conftest$ac_exeext conftest.$ac_ext
   7602   CFLAGS="$oldcflags"
   7603   ac_ext=c
   7604 ac_cpp='$CPP $CPPFLAGS'
   7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7608 
   7609 
   7610 fi
   7611 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
   7612 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
   7613 if test "$llvm_cv_link_use_r" = yes ; then
   7614 
   7615 cat >>confdefs.h <<\_ACEOF
   7616 #define HAVE_LINK_R 1

   7617 _ACEOF
   7618 
   7619   fi
   7620 
   7621 
   7622 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
   7623 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
   7624 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
   7625   echo $ECHO_N "(cached) $ECHO_C" >&6
   7626 else
   7627    ac_ext=c
   7628 ac_cpp='$CPP $CPPFLAGS'
   7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7632 
   7633   oldcflags="$CFLAGS"
   7634   CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7635   cat >conftest.$ac_ext <<_ACEOF
   7636 /* confdefs.h.  */
   7637 _ACEOF
   7638 cat confdefs.h >>conftest.$ac_ext
   7639 cat >>conftest.$ac_ext <<_ACEOF
   7640 /* end confdefs.h.  */
   7641 
   7642 int
   7643 main ()
   7644 {
   7645 
   7646   ;
   7647   return 0;
   7648 }
   7649 _ACEOF
   7650 rm -f conftest.$ac_objext conftest$ac_exeext
   7651 if { (ac_try="$ac_link"
   7652 case "(($ac_try" in
   7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7654   *) ac_try_echo=$ac_try;;
   7655 esac
   7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7657   (eval "$ac_link") 2>conftest.er1
   7658   ac_status=$?
   7659   grep -v '^ *+' conftest.er1 >conftest.err
   7660   rm -f conftest.er1
   7661   cat conftest.err >&5
   7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7663   (exit $ac_status); } && {
   7664 	 test -z "$ac_c_werror_flag" ||
   7665 	 test ! -s conftest.err
   7666        } && test -s conftest$ac_exeext &&
   7667        $as_test_x conftest$ac_exeext; then
   7668   llvm_cv_link_use_export_dynamic=yes
   7669 else
   7670   echo "$as_me: failed program was:" >&5
   7671 sed 's/^/| /' conftest.$ac_ext >&5
   7672 
   7673 	llvm_cv_link_use_export_dynamic=no
   7674 fi
   7675 
   7676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7677       conftest$ac_exeext conftest.$ac_ext
   7678   CFLAGS="$oldcflags"
   7679   ac_ext=c
   7680 ac_cpp='$CPP $CPPFLAGS'
   7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7684 
   7685 
   7686 fi
   7687 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
   7688 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
   7689 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
   7690 
   7691 cat >>confdefs.h <<\_ACEOF
   7692 #define HAVE_LINK_EXPORT_DYNAMIC 1

   7693 _ACEOF
   7694 
   7695   fi
   7696 
   7697 
   7698 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
   7699 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
   7700 if test "${llvm_cv_link_use_version_script+set}" = set; then
   7701   echo $ECHO_N "(cached) $ECHO_C" >&6
   7702 else
   7703    ac_ext=c
   7704 ac_cpp='$CPP $CPPFLAGS'
   7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7708 
   7709   oldcflags="$CFLAGS"
   7710 
   7711   # The following code is from the autoconf manual,

   7712   # "11.13: Limitations of Usual Tools".

   7713   # Create a temporary directory $tmp in $TMPDIR (default /tmp).

   7714   # Use mktemp if possible; otherwise fall back on mkdir,

   7715   # with $RANDOM to make collisions less likely.

   7716   : ${TMPDIR=/tmp}
   7717   {
   7718     tmp=`
   7719       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   7720     ` &&
   7721     test -n "$tmp" && test -d "$tmp"
   7722   } || {
   7723     tmp=$TMPDIR/foo$$-$RANDOM
   7724     (umask 077 && mkdir "$tmp")
   7725   } || exit $?
   7726 
   7727   echo "{" > "$tmp/export.map"
   7728   echo "  global: main;" >> "$tmp/export.map"
   7729   echo "  local: *;" >> "$tmp/export.map"
   7730   echo "};" >> "$tmp/export.map"
   7731 
   7732   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
   7733   cat >conftest.$ac_ext <<_ACEOF
   7734 /* confdefs.h.  */
   7735 _ACEOF
   7736 cat confdefs.h >>conftest.$ac_ext
   7737 cat >>conftest.$ac_ext <<_ACEOF
   7738 /* end confdefs.h.  */
   7739 
   7740 int
   7741 main ()
   7742 {
   7743 
   7744   ;
   7745   return 0;
   7746 }
   7747 _ACEOF
   7748 rm -f conftest.$ac_objext conftest$ac_exeext
   7749 if { (ac_try="$ac_link"
   7750 case "(($ac_try" in
   7751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7752   *) ac_try_echo=$ac_try;;
   7753 esac
   7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7755   (eval "$ac_link") 2>conftest.er1
   7756   ac_status=$?
   7757   grep -v '^ *+' conftest.er1 >conftest.err
   7758   rm -f conftest.er1
   7759   cat conftest.err >&5
   7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7761   (exit $ac_status); } && {
   7762 	 test -z "$ac_c_werror_flag" ||
   7763 	 test ! -s conftest.err
   7764        } && test -s conftest$ac_exeext &&
   7765        $as_test_x conftest$ac_exeext; then
   7766   llvm_cv_link_use_version_script=yes
   7767 else
   7768   echo "$as_me: failed program was:" >&5
   7769 sed 's/^/| /' conftest.$ac_ext >&5
   7770 
   7771 	llvm_cv_link_use_version_script=no
   7772 fi
   7773 
   7774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7775       conftest$ac_exeext conftest.$ac_ext
   7776   rm "$tmp/export.map"
   7777   rmdir "$tmp"
   7778   CFLAGS="$oldcflags"
   7779   ac_ext=c
   7780 ac_cpp='$CPP $CPPFLAGS'
   7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7784 
   7785 
   7786 fi
   7787 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
   7788 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
   7789 if test "$llvm_cv_link_use_version_script" = yes ; then
   7790   HAVE_LINK_VERSION_SCRIPT=1
   7791 
   7792   fi
   7793 
   7794 
   7795 
   7796 
   7797 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   7798 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   7799 if test "${ac_cv_c_const+set}" = set; then
   7800   echo $ECHO_N "(cached) $ECHO_C" >&6
   7801 else
   7802   cat >conftest.$ac_ext <<_ACEOF
   7803 /* confdefs.h.  */
   7804 _ACEOF
   7805 cat confdefs.h >>conftest.$ac_ext
   7806 cat >>conftest.$ac_ext <<_ACEOF
   7807 /* end confdefs.h.  */
   7808 
   7809 int
   7810 main ()
   7811 {
   7812 /* FIXME: Include the comments suggested by Paul. */
   7813 #ifndef __cplusplus

   7814   /* Ultrix mips cc rejects this.  */
   7815   typedef int charset[2];
   7816   const charset cs;
   7817   /* SunOS 4.1.1 cc rejects this.  */
   7818   char const *const *pcpcc;
   7819   char **ppc;
   7820   /* NEC SVR4.0.2 mips cc rejects this.  */
   7821   struct point {int x, y;};
   7822   static struct point const zero = {0,0};
   7823   /* AIX XL C 1.02.0.0 rejects this.
   7824      It does not let you subtract one const X* pointer from another in
   7825      an arm of an if-expression whose if-part is not a constant
   7826      expression */
   7827   const char *g = "string";
   7828   pcpcc = &g + (g ? g-g : 0);
   7829   /* HPUX 7.0 cc rejects these. */
   7830   ++pcpcc;
   7831   ppc = (char**) pcpcc;
   7832   pcpcc = (char const *const *) ppc;
   7833   { /* SCO 3.2v4 cc rejects this.  */
   7834     char *t;
   7835     char const *s = 0 ? (char *) 0 : (char const *) 0;
   7836 
   7837     *t++ = 0;
   7838     if (s) return 0;
   7839   }
   7840   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   7841     int x[] = {25, 17};
   7842     const int *foo = &x[0];
   7843     ++foo;
   7844   }
   7845   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   7846     typedef const int *iptr;
   7847     iptr p = 0;
   7848     ++p;
   7849   }
   7850   { /* AIX XL C 1.02.0.0 rejects this saying
   7851        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   7852     struct s { int j; const int *ap[3]; };
   7853     struct s *b; b->j = 5;
   7854   }
   7855   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   7856     const int foo = 10;
   7857     if (!foo) return 0;
   7858   }
   7859   return !cs[0] && !zero.x;
   7860 #endif

   7861 
   7862   ;
   7863   return 0;
   7864 }
   7865 _ACEOF
   7866 rm -f conftest.$ac_objext
   7867 if { (ac_try="$ac_compile"
   7868 case "(($ac_try" in
   7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7870   *) ac_try_echo=$ac_try;;
   7871 esac
   7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7873   (eval "$ac_compile") 2>conftest.er1
   7874   ac_status=$?
   7875   grep -v '^ *+' conftest.er1 >conftest.err
   7876   rm -f conftest.er1
   7877   cat conftest.err >&5
   7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7879   (exit $ac_status); } && {
   7880 	 test -z "$ac_c_werror_flag" ||
   7881 	 test ! -s conftest.err
   7882        } && test -s conftest.$ac_objext; then
   7883   ac_cv_c_const=yes
   7884 else
   7885   echo "$as_me: failed program was:" >&5
   7886 sed 's/^/| /' conftest.$ac_ext >&5
   7887 
   7888 	ac_cv_c_const=no
   7889 fi
   7890 
   7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7892 fi
   7893 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   7894 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   7895 if test $ac_cv_c_const = no; then
   7896 
   7897 cat >>confdefs.h <<\_ACEOF
   7898 #define const

   7899 _ACEOF
   7900 
   7901 fi
   7902 
   7903 
   7904 
   7905 
   7906 
   7907 
   7908 ac_header_dirent=no
   7909 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   7910   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   7911 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   7912 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   7913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7914   echo $ECHO_N "(cached) $ECHO_C" >&6
   7915 else
   7916   cat >conftest.$ac_ext <<_ACEOF
   7917 /* confdefs.h.  */
   7918 _ACEOF
   7919 cat confdefs.h >>conftest.$ac_ext
   7920 cat >>conftest.$ac_ext <<_ACEOF
   7921 /* end confdefs.h.  */
   7922 #include <sys/types.h>

   7923 #include <$ac_hdr>

   7924 
   7925 int
   7926 main ()
   7927 {
   7928 if ((DIR *) 0)
   7929 return 0;
   7930   ;
   7931   return 0;
   7932 }
   7933 _ACEOF
   7934 rm -f conftest.$ac_objext
   7935 if { (ac_try="$ac_compile"
   7936 case "(($ac_try" in
   7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7938   *) ac_try_echo=$ac_try;;
   7939 esac
   7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7941   (eval "$ac_compile") 2>conftest.er1
   7942   ac_status=$?
   7943   grep -v '^ *+' conftest.er1 >conftest.err
   7944   rm -f conftest.er1
   7945   cat conftest.err >&5
   7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7947   (exit $ac_status); } && {
   7948 	 test -z "$ac_c_werror_flag" ||
   7949 	 test ! -s conftest.err
   7950        } && test -s conftest.$ac_objext; then
   7951   eval "$as_ac_Header=yes"
   7952 else
   7953   echo "$as_me: failed program was:" >&5
   7954 sed 's/^/| /' conftest.$ac_ext >&5
   7955 
   7956 	eval "$as_ac_Header=no"
   7957 fi
   7958 
   7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7960 fi
   7961 ac_res=`eval echo '${'$as_ac_Header'}'`
   7962 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7963 echo "${ECHO_T}$ac_res" >&6; }
   7964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7965   cat >>confdefs.h <<_ACEOF
   7966 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1

   7967 _ACEOF
   7968 
   7969 ac_header_dirent=$ac_hdr; break
   7970 fi
   7971 
   7972 done
   7973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.

   7974 if test $ac_header_dirent = dirent.h; then
   7975   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   7976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   7977 if test "${ac_cv_search_opendir+set}" = set; then
   7978   echo $ECHO_N "(cached) $ECHO_C" >&6
   7979 else
   7980   ac_func_search_save_LIBS=$LIBS
   7981 cat >conftest.$ac_ext <<_ACEOF
   7982 /* confdefs.h.  */
   7983 _ACEOF
   7984 cat confdefs.h >>conftest.$ac_ext
   7985 cat >>conftest.$ac_ext <<_ACEOF
   7986 /* end confdefs.h.  */
   7987 
   7988 /* Override any GCC internal prototype to avoid an error.
   7989    Use char because int might match the return type of a GCC
   7990    builtin and then its argument prototype would still apply.  */
   7991 #ifdef __cplusplus

   7992 extern "C"
   7993 #endif

   7994 char opendir ();
   7995 int
   7996 main ()
   7997 {
   7998 return opendir ();
   7999   ;
   8000   return 0;
   8001 }
   8002 _ACEOF
   8003 for ac_lib in '' dir; do
   8004   if test -z "$ac_lib"; then
   8005     ac_res="none required"
   8006   else
   8007     ac_res=-l$ac_lib
   8008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8009   fi
   8010   rm -f conftest.$ac_objext conftest$ac_exeext
   8011 if { (ac_try="$ac_link"
   8012 case "(($ac_try" in
   8013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8014   *) ac_try_echo=$ac_try;;
   8015 esac
   8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8017   (eval "$ac_link") 2>conftest.er1
   8018   ac_status=$?
   8019   grep -v '^ *+' conftest.er1 >conftest.err
   8020   rm -f conftest.er1
   8021   cat conftest.err >&5
   8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8023   (exit $ac_status); } && {
   8024 	 test -z "$ac_c_werror_flag" ||
   8025 	 test ! -s conftest.err
   8026        } && test -s conftest$ac_exeext &&
   8027        $as_test_x conftest$ac_exeext; then
   8028   ac_cv_search_opendir=$ac_res
   8029 else
   8030   echo "$as_me: failed program was:" >&5
   8031 sed 's/^/| /' conftest.$ac_ext >&5
   8032 
   8033 
   8034 fi
   8035 
   8036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8037       conftest$ac_exeext
   8038   if test "${ac_cv_search_opendir+set}" = set; then
   8039   break
   8040 fi
   8041 done
   8042 if test "${ac_cv_search_opendir+set}" = set; then
   8043   :
   8044 else
   8045   ac_cv_search_opendir=no
   8046 fi
   8047 rm conftest.$ac_ext
   8048 LIBS=$ac_func_search_save_LIBS
   8049 fi
   8050 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8051 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8052 ac_res=$ac_cv_search_opendir
   8053 if test "$ac_res" != no; then
   8054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8055 
   8056 fi
   8057 
   8058 else
   8059   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8060 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8061 if test "${ac_cv_search_opendir+set}" = set; then
   8062   echo $ECHO_N "(cached) $ECHO_C" >&6
   8063 else
   8064   ac_func_search_save_LIBS=$LIBS
   8065 cat >conftest.$ac_ext <<_ACEOF
   8066 /* confdefs.h.  */
   8067 _ACEOF
   8068 cat confdefs.h >>conftest.$ac_ext
   8069 cat >>conftest.$ac_ext <<_ACEOF
   8070 /* end confdefs.h.  */
   8071 
   8072 /* Override any GCC internal prototype to avoid an error.
   8073    Use char because int might match the return type of a GCC
   8074    builtin and then its argument prototype would still apply.  */
   8075 #ifdef __cplusplus

   8076 extern "C"
   8077 #endif

   8078 char opendir ();
   8079 int
   8080 main ()
   8081 {
   8082 return opendir ();
   8083   ;
   8084   return 0;
   8085 }
   8086 _ACEOF
   8087 for ac_lib in '' x; do
   8088   if test -z "$ac_lib"; then
   8089     ac_res="none required"
   8090   else
   8091     ac_res=-l$ac_lib
   8092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8093   fi
   8094   rm -f conftest.$ac_objext conftest$ac_exeext
   8095 if { (ac_try="$ac_link"
   8096 case "(($ac_try" in
   8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8098   *) ac_try_echo=$ac_try;;
   8099 esac
   8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8101   (eval "$ac_link") 2>conftest.er1
   8102   ac_status=$?
   8103   grep -v '^ *+' conftest.er1 >conftest.err
   8104   rm -f conftest.er1
   8105   cat conftest.err >&5
   8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8107   (exit $ac_status); } && {
   8108 	 test -z "$ac_c_werror_flag" ||
   8109 	 test ! -s conftest.err
   8110        } && test -s conftest$ac_exeext &&
   8111        $as_test_x conftest$ac_exeext; then
   8112   ac_cv_search_opendir=$ac_res
   8113 else
   8114   echo "$as_me: failed program was:" >&5
   8115 sed 's/^/| /' conftest.$ac_ext >&5
   8116 
   8117 
   8118 fi
   8119 
   8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8121       conftest$ac_exeext
   8122   if test "${ac_cv_search_opendir+set}" = set; then
   8123   break
   8124 fi
   8125 done
   8126 if test "${ac_cv_search_opendir+set}" = set; then
   8127   :
   8128 else
   8129   ac_cv_search_opendir=no
   8130 fi
   8131 rm conftest.$ac_ext
   8132 LIBS=$ac_func_search_save_LIBS
   8133 fi
   8134 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8135 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8136 ac_res=$ac_cv_search_opendir
   8137 if test "$ac_res" != no; then
   8138   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8139 
   8140 fi
   8141 
   8142 fi
   8143 
   8144 
   8145 for ac_header in dlfcn.h
   8146 do
   8147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8152   echo $ECHO_N "(cached) $ECHO_C" >&6
   8153 fi
   8154 ac_res=`eval echo '${'$as_ac_Header'}'`
   8155 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8156 echo "${ECHO_T}$ac_res" >&6; }
   8157 else
   8158   # Is the header compilable?

   8159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8161 cat >conftest.$ac_ext <<_ACEOF
   8162 /* confdefs.h.  */
   8163 _ACEOF
   8164 cat confdefs.h >>conftest.$ac_ext
   8165 cat >>conftest.$ac_ext <<_ACEOF
   8166 /* end confdefs.h.  */
   8167 $ac_includes_default
   8168 #include <$ac_header>

   8169 _ACEOF
   8170 rm -f conftest.$ac_objext
   8171 if { (ac_try="$ac_compile"
   8172 case "(($ac_try" in
   8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8174   *) ac_try_echo=$ac_try;;
   8175 esac
   8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8177   (eval "$ac_compile") 2>conftest.er1
   8178   ac_status=$?
   8179   grep -v '^ *+' conftest.er1 >conftest.err
   8180   rm -f conftest.er1
   8181   cat conftest.err >&5
   8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8183   (exit $ac_status); } && {
   8184 	 test -z "$ac_c_werror_flag" ||
   8185 	 test ! -s conftest.err
   8186        } && test -s conftest.$ac_objext; then
   8187   ac_header_compiler=yes
   8188 else
   8189   echo "$as_me: failed program was:" >&5
   8190 sed 's/^/| /' conftest.$ac_ext >&5
   8191 
   8192 	ac_header_compiler=no
   8193 fi
   8194 
   8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8197 echo "${ECHO_T}$ac_header_compiler" >&6; }
   8198 
   8199 # Is the header present?

   8200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   8202 cat >conftest.$ac_ext <<_ACEOF
   8203 /* confdefs.h.  */
   8204 _ACEOF
   8205 cat confdefs.h >>conftest.$ac_ext
   8206 cat >>conftest.$ac_ext <<_ACEOF
   8207 /* end confdefs.h.  */
   8208 #include <$ac_header>

   8209 _ACEOF
   8210 if { (ac_try="$ac_cpp conftest.$ac_ext"
   8211 case "(($ac_try" in
   8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8213   *) ac_try_echo=$ac_try;;
   8214 esac
   8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8217   ac_status=$?
   8218   grep -v '^ *+' conftest.er1 >conftest.err
   8219   rm -f conftest.er1
   8220   cat conftest.err >&5
   8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8222   (exit $ac_status); } >/dev/null && {
   8223 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   8224 	 test ! -s conftest.err
   8225        }; then
   8226   ac_header_preproc=yes
   8227 else
   8228   echo "$as_me: failed program was:" >&5
   8229 sed 's/^/| /' conftest.$ac_ext >&5
   8230 
   8231   ac_header_preproc=no
   8232 fi
   8233 
   8234 rm -f conftest.err conftest.$ac_ext
   8235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8236 echo "${ECHO_T}$ac_header_preproc" >&6; }
   8237 
   8238 # So?  What about this header?

   8239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8240   yes:no: )
   8241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8245     ac_header_preproc=yes
   8246     ;;
   8247   no:yes:* )
   8248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8260     ( cat <<\_ASBOX
   8261 ## ----------------------------------- ##

   8262 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   8263 ## ----------------------------------- ##

   8264 _ASBOX
   8265      ) | sed "s/^/$as_me: WARNING:     /" >&2
   8266     ;;
   8267 esac
   8268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8271   echo $ECHO_N "(cached) $ECHO_C" >&6
   8272 else
   8273   eval "$as_ac_Header=\$ac_header_preproc"
   8274 fi
   8275 ac_res=`eval echo '${'$as_ac_Header'}'`
   8276 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8277 echo "${ECHO_T}$ac_res" >&6; }
   8278 
   8279 fi
   8280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8281   cat >>confdefs.h <<_ACEOF
   8282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   8283 _ACEOF
   8284 
   8285 fi
   8286 
   8287 done
   8288 
   8289 # Check whether --enable-ltdl-install was given.

   8290 if test "${enable_ltdl_install+set}" = set; then
   8291   enableval=$enable_ltdl_install;
   8292 fi
   8293 
   8294 
   8295  if test x"${enable_ltdl_install-no}" != xno; then
   8296   INSTALL_LTDL_TRUE=
   8297   INSTALL_LTDL_FALSE='#'
   8298 else
   8299   INSTALL_LTDL_TRUE='#'
   8300   INSTALL_LTDL_FALSE=
   8301 fi
   8302 
   8303  if test x"${enable_ltdl_convenience-no}" != xno; then
   8304   CONVENIENCE_LTDL_TRUE=
   8305   CONVENIENCE_LTDL_FALSE='#'
   8306 else
   8307   CONVENIENCE_LTDL_TRUE='#'
   8308   CONVENIENCE_LTDL_FALSE=
   8309 fi
   8310 
   8311 
   8312 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   8313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   8314 library_names_spec=
   8315 libname_spec='lib$name'
   8316 soname_spec=
   8317 shrext_cmds=".so"
   8318 postinstall_cmds=
   8319 postuninstall_cmds=
   8320 finish_cmds=
   8321 finish_eval=
   8322 shlibpath_var=
   8323 shlibpath_overrides_runpath=unknown
   8324 version_type=none
   8325 dynamic_linker="$host_os ld.so"
   8326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   8327 if test "$GCC" = yes; then
   8328   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8329   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   8330     # if the path contains ";" then we assume it to be the separator

   8331     # otherwise default to the standard path separator (i.e. ":") - it is

   8332     # assumed that no part of a normal pathname contains ";" but that should

   8333     # okay in the real world where ";" in dirpaths is itself problematic.

   8334     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8335   else
   8336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8337   fi
   8338 else
   8339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   8340 fi
   8341 need_lib_prefix=unknown
   8342 hardcode_into_libs=no
   8343 
   8344 # when you set need_version to no, make sure it does not cause -set_version

   8345 # flags to be left without arguments

   8346 need_version=unknown
   8347 
   8348 case $host_os in
   8349 aix3*)
   8350   version_type=linux
   8351   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   8352   shlibpath_var=LIBPATH
   8353 
   8354   # AIX 3 has no versioning support, so we append a major version to the name.

   8355   soname_spec='${libname}${release}${shared_ext}$major'
   8356   ;;
   8357 
   8358 aix4* | aix5*)
   8359   version_type=linux
   8360   need_lib_prefix=no
   8361   need_version=no
   8362   hardcode_into_libs=yes
   8363   if test "$host_cpu" = ia64; then
   8364     # AIX 5 supports IA64

   8365     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   8366     shlibpath_var=LD_LIBRARY_PATH
   8367   else
   8368     # With GCC up to 2.95.x, collect2 would create an import file

   8369     # for dependence libraries.  The import file would start with

   8370     # the line `#! .'.  This would cause the generated library to

   8371     # depend on `.', always an invalid library.  This was fixed in

   8372     # development snapshots of GCC prior to 3.0.

   8373     case $host_os in
   8374       aix4 | aix4.[01] | aix4.[01].*)
   8375       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   8376 	   echo ' yes '
   8377 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   8378 	:
   8379       else
   8380 	can_build_shared=no
   8381       fi
   8382       ;;
   8383     esac
   8384     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct

   8385     # soname into executable. Probably we can add versioning support to

   8386     # collect2, so additional links can be useful in future.

   8387     if test "$aix_use_runtimelinking" = yes; then
   8388       # If using run time linking (on AIX 4.2 or later) use lib<name>.so

   8389       # instead of lib<name>.a to let people know that these are not

   8390       # typical AIX shared libraries.

   8391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8392     else
   8393       # We preserve .a as extension for shared libraries through AIX4.2

   8394       # and later when we are not doing run time linking.

   8395       library_names_spec='${libname}${release}.a $libname.a'
   8396       soname_spec='${libname}${release}${shared_ext}$major'
   8397     fi
   8398     shlibpath_var=LIBPATH
   8399   fi
   8400   ;;
   8401 
   8402 amigaos*)
   8403   library_names_spec='$libname.ixlibrary $libname.a'
   8404   # Create ${libname}_ixlibrary.a entries in /sys/libs.

   8405   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'
   8406   ;;
   8407 
   8408 beos*)
   8409   library_names_spec='${libname}${shared_ext}'
   8410   dynamic_linker="$host_os ld.so"
   8411   shlibpath_var=LIBRARY_PATH
   8412   ;;
   8413 
   8414 bsdi[45]*)
   8415   version_type=linux
   8416   need_version=no
   8417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8418   soname_spec='${libname}${release}${shared_ext}$major'
   8419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   8420   shlibpath_var=LD_LIBRARY_PATH
   8421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   8422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   8423   # the default ld.so.conf also contains /usr/contrib/lib and
   8424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   8425   # libtool to hard-code these into programs
   8426   ;;
   8427 
   8428 cygwin* | mingw* | pw32*)
   8429   version_type=windows
   8430   shrext_cmds=".dll"
   8431   need_version=no
   8432   need_lib_prefix=no
   8433 
   8434   case $GCC,$host_os in
   8435   yes,cygwin* | yes,mingw* | yes,pw32*)
   8436     library_names_spec='$libname.dll.a'
   8437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   8438     postinstall_cmds='base_file=`basename \${file}`~
   8439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   8440       dldir=$destdir/`dirname \$dlpath`~
   8441       test -d \$dldir || mkdir -p \$dldir~
   8442       $install_prog $dir/$dlname \$dldir/$dlname~
   8443       chmod a+x \$dldir/$dlname'
   8444     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   8445       dlpath=$dir/\$dldll~
   8446        $rm \$dlpath'
   8447     shlibpath_overrides_runpath=yes
   8448 
   8449     case $host_os in
   8450     cygwin*)
   8451       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   8452       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8453       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   8454       ;;
   8455     mingw*)
   8456       # MinGW DLLs use traditional 'lib' prefix
   8457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8458       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   8459       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   8460         # It is most probably a Windows format PATH printed by
   8461         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   8462         # path with ; separators, and with drive letters. We can handle the
   8463         # drive letters (cygwin fileutils understands them), so leave them,
   8464         # especially as we might pass files found there to a mingw objdump,
   8465         # which wouldn't understand a cygwinified path. Ahh.
   8466         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   8467       else
   8468         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   8469       fi
   8470       ;;
   8471     pw32*)
   8472       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   8474       ;;
   8475     esac
   8476     ;;
   8477 
   8478   *)
   8479     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8480     ;;
   8481   esac
   8482   dynamic_linker='Win32 ld.exe'
   8483   # FIXME: first we should search . and the directory the executable is in
   8484   shlibpath_var=PATH
   8485   ;;
   8486 
   8487 darwin* | rhapsody*)
   8488   dynamic_linker="$host_os dyld"
   8489   version_type=darwin
   8490   need_lib_prefix=no
   8491   need_version=no
   8492   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8493   soname_spec='${libname}${release}${major}$shared_ext'
   8494   shlibpath_overrides_runpath=yes
   8495   shlibpath_var=DYLD_LIBRARY_PATH
   8496   shrext_cmds='.dylib'
   8497   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8498   if test "$GCC" = yes; then
   8499     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"`
   8500   else
   8501     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8502   fi
   8503   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8504   ;;
   8505 
   8506 dgux*)
   8507   version_type=linux
   8508   need_lib_prefix=no
   8509   need_version=no
   8510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8511   soname_spec='${libname}${release}${shared_ext}$major'
   8512   shlibpath_var=LD_LIBRARY_PATH
   8513   ;;
   8514 
   8515 freebsd1*)
   8516   dynamic_linker=no
   8517   ;;
   8518 
   8519 kfreebsd*-gnu)
   8520   version_type=linux
   8521   need_lib_prefix=no
   8522   need_version=no
   8523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8524   soname_spec='${libname}${release}${shared_ext}$major'
   8525   shlibpath_var=LD_LIBRARY_PATH
   8526   shlibpath_overrides_runpath=no
   8527   hardcode_into_libs=yes
   8528   dynamic_linker='GNU ld.so'
   8529   ;;
   8530 
   8531 freebsd* | dragonfly*)
   8532   # DragonFly does not have aout.  When/if they implement a new
   8533   # versioning mechanism, adjust this.
   8534   if test -x /usr/bin/objformat; then
   8535     objformat=`/usr/bin/objformat`
   8536   else
   8537     case $host_os in
   8538     freebsd[123]*) objformat=aout ;;
   8539     *) objformat=elf ;;
   8540     esac
   8541   fi
   8542   version_type=freebsd-$objformat
   8543   case $version_type in
   8544     freebsd-elf*)
   8545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8546       need_version=no
   8547       need_lib_prefix=no
   8548       ;;
   8549     freebsd-*)
   8550       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8551       need_version=yes
   8552       ;;
   8553   esac
   8554   shlibpath_var=LD_LIBRARY_PATH
   8555   case $host_os in
   8556   freebsd2*)
   8557     shlibpath_overrides_runpath=yes
   8558     ;;
   8559   freebsd3.[01]* | freebsdelf3.[01]*)
   8560     shlibpath_overrides_runpath=yes
   8561     hardcode_into_libs=yes
   8562     ;;
   8563   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   8564   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   8565     shlibpath_overrides_runpath=no
   8566     hardcode_into_libs=yes
   8567     ;;
   8568   freebsd*) # from 4.6 on
   8569     shlibpath_overrides_runpath=yes
   8570     hardcode_into_libs=yes
   8571     ;;
   8572   esac
   8573   ;;
   8574 
   8575 gnu*)
   8576   version_type=linux
   8577   need_lib_prefix=no
   8578   need_version=no
   8579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8580   soname_spec='${libname}${release}${shared_ext}$major'
   8581   shlibpath_var=LD_LIBRARY_PATH
   8582   hardcode_into_libs=yes
   8583   ;;
   8584 
   8585 hpux9* | hpux10* | hpux11*)
   8586   # Give a soname corresponding to the major version so that dld.sl refuses to
   8587   # link against other versions.
   8588   version_type=sunos
   8589   need_lib_prefix=no
   8590   need_version=no
   8591   case $host_cpu in
   8592   ia64*)
   8593     shrext_cmds='.so'
   8594     hardcode_into_libs=yes
   8595     dynamic_linker="$host_os dld.so"
   8596     shlibpath_var=LD_LIBRARY_PATH
   8597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8599     soname_spec='${libname}${release}${shared_ext}$major'
   8600     if test "X$HPUX_IA64_MODE" = X32; then
   8601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   8602     else
   8603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   8604     fi
   8605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8606     ;;
   8607    hppa*64*)
   8608      shrext_cmds='.sl'
   8609      hardcode_into_libs=yes
   8610      dynamic_linker="$host_os dld.sl"
   8611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   8612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8614      soname_spec='${libname}${release}${shared_ext}$major'
   8615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   8616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8617      ;;
   8618    *)
   8619     shrext_cmds='.sl'
   8620     dynamic_linker="$host_os dld.sl"
   8621     shlibpath_var=SHLIB_PATH
   8622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   8623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8624     soname_spec='${libname}${release}${shared_ext}$major'
   8625     ;;
   8626   esac
   8627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   8628   postinstall_cmds='chmod 555 $lib'
   8629   ;;
   8630 
   8631 interix3*)
   8632   version_type=linux
   8633   need_lib_prefix=no
   8634   need_version=no
   8635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8636   soname_spec='${libname}${release}${shared_ext}$major'
   8637   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   8638   shlibpath_var=LD_LIBRARY_PATH
   8639   shlibpath_overrides_runpath=no
   8640   hardcode_into_libs=yes
   8641   ;;
   8642 
   8643 irix5* | irix6* | nonstopux*)
   8644   case $host_os in
   8645     nonstopux*) version_type=nonstopux ;;
   8646     *)
   8647 	if test "$lt_cv_prog_gnu_ld" = yes; then
   8648 		version_type=linux
   8649 	else
   8650 		version_type=irix
   8651 	fi ;;
   8652   esac
   8653   need_lib_prefix=no
   8654   need_version=no
   8655   soname_spec='${libname}${release}${shared_ext}$major'
   8656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   8657   case $host_os in
   8658   irix5* | nonstopux*)
   8659     libsuff= shlibsuff=
   8660     ;;
   8661   *)
   8662     case $LD in # libtool.m4 will add one of these switches to LD
   8663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   8664       libsuff= shlibsuff= libmagic=32-bit;;
   8665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   8666       libsuff=32 shlibsuff=N32 libmagic=N32;;
   8667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   8668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   8669     *) libsuff= shlibsuff= libmagic=never-match;;
   8670     esac
   8671     ;;
   8672   esac
   8673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   8674   shlibpath_overrides_runpath=no
   8675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   8676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   8677   hardcode_into_libs=yes
   8678   ;;
   8679 
   8680 # No shared lib support for Linux oldld, aout, or coff.
   8681 linux*oldld* | linux*aout* | linux*coff*)
   8682   dynamic_linker=no
   8683   ;;
   8684 
   8685 # This must be Linux ELF.
   8686 linux*)
   8687   version_type=linux
   8688   need_lib_prefix=no
   8689   need_version=no
   8690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8691   soname_spec='${libname}${release}${shared_ext}$major'
   8692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   8693   shlibpath_var=LD_LIBRARY_PATH
   8694   shlibpath_overrides_runpath=no
   8695   # This implies no fast_install, which is unacceptable.
   8696   # Some rework will be needed to allow for fast_install
   8697   # before this can be enabled.
   8698   hardcode_into_libs=yes
   8699 
   8700   # Append ld.so.conf contents to the search path
   8701   if test -f /etc/ld.so.conf; then
   8702     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' ' '`
   8703     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   8704   fi
   8705 
   8706   # We used to test for /lib/ld.so.1 and disable shared libraries on
   8707   # powerpc, because MkLinux only supported shared libraries with the
   8708   # GNU dynamic linker.  Since this was broken with cross compilers,
   8709   # most powerpc-linux boxes support dynamic linking these days and
   8710   # people can always --disable-shared, the test was removed, and we
   8711   # assume the GNU/Linux dynamic linker is in use.
   8712   dynamic_linker='GNU/Linux ld.so'
   8713   ;;
   8714 
   8715 knetbsd*-gnu)
   8716   version_type=linux
   8717   need_lib_prefix=no
   8718   need_version=no
   8719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8720   soname_spec='${libname}${release}${shared_ext}$major'
   8721   shlibpath_var=LD_LIBRARY_PATH
   8722   shlibpath_overrides_runpath=no
   8723   hardcode_into_libs=yes
   8724   dynamic_linker='GNU ld.so'
   8725   ;;
   8726 
   8727 netbsd*)
   8728   version_type=sunos
   8729   need_lib_prefix=no
   8730   need_version=no
   8731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   8732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8734     dynamic_linker='NetBSD (a.out) ld.so'
   8735   else
   8736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8737     soname_spec='${libname}${release}${shared_ext}$major'
   8738     dynamic_linker='NetBSD ld.elf_so'
   8739   fi
   8740   shlibpath_var=LD_LIBRARY_PATH
   8741   shlibpath_overrides_runpath=yes
   8742   hardcode_into_libs=yes
   8743   ;;
   8744 
   8745 newsos6)
   8746   version_type=linux
   8747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8748   shlibpath_var=LD_LIBRARY_PATH
   8749   shlibpath_overrides_runpath=yes
   8750   ;;
   8751 
   8752 nto-qnx*)
   8753   version_type=linux
   8754   need_lib_prefix=no
   8755   need_version=no
   8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8757   soname_spec='${libname}${release}${shared_ext}$major'
   8758   shlibpath_var=LD_LIBRARY_PATH
   8759   shlibpath_overrides_runpath=yes
   8760   ;;
   8761 
   8762 openbsd*)
   8763   version_type=sunos
   8764   sys_lib_dlsearch_path_spec="/usr/lib"
   8765   need_lib_prefix=no
   8766   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   8767   case $host_os in
   8768     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   8769     *)                         need_version=no  ;;
   8770   esac
   8771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8773   shlibpath_var=LD_LIBRARY_PATH
   8774   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   8775     case $host_os in
   8776       openbsd2.[89] | openbsd2.[89].*)
   8777 	shlibpath_overrides_runpath=no
   8778 	;;
   8779       *)
   8780 	shlibpath_overrides_runpath=yes
   8781 	;;
   8782       esac
   8783   else
   8784     shlibpath_overrides_runpath=yes
   8785   fi
   8786   ;;
   8787 
   8788 os2*)
   8789   libname_spec='$name'
   8790   shrext_cmds=".dll"
   8791   need_lib_prefix=no
   8792   library_names_spec='$libname${shared_ext} $libname.a'
   8793   dynamic_linker='OS/2 ld.exe'
   8794   shlibpath_var=LIBPATH
   8795   ;;
   8796 
   8797 osf3* | osf4* | osf5*)
   8798   version_type=osf
   8799   need_lib_prefix=no
   8800   need_version=no
   8801   soname_spec='${libname}${release}${shared_ext}$major'
   8802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8803   shlibpath_var=LD_LIBRARY_PATH
   8804   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   8805   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   8806   ;;
   8807 
   8808 solaris*)
   8809   version_type=linux
   8810   need_lib_prefix=no
   8811   need_version=no
   8812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8813   soname_spec='${libname}${release}${shared_ext}$major'
   8814   shlibpath_var=LD_LIBRARY_PATH
   8815   shlibpath_overrides_runpath=yes
   8816   hardcode_into_libs=yes
   8817   # ldd complains unless libraries are executable
   8818   postinstall_cmds='chmod +x $lib'
   8819   ;;
   8820 
   8821 sunos4*)
   8822   version_type=sunos
   8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8824   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   8825   shlibpath_var=LD_LIBRARY_PATH
   8826   shlibpath_overrides_runpath=yes
   8827   if test "$with_gnu_ld" = yes; then
   8828     need_lib_prefix=no
   8829   fi
   8830   need_version=yes
   8831   ;;
   8832 
   8833 sysv4 | sysv4.3*)
   8834   version_type=linux
   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   shlibpath_var=LD_LIBRARY_PATH
   8838   case $host_vendor in
   8839     sni)
   8840       shlibpath_overrides_runpath=no
   8841       need_lib_prefix=no
   8842       export_dynamic_flag_spec='${wl}-Blargedynsym'
   8843       runpath_var=LD_RUN_PATH
   8844       ;;
   8845     siemens)
   8846       need_lib_prefix=no
   8847       ;;
   8848     motorola)
   8849       need_lib_prefix=no
   8850       need_version=no
   8851       shlibpath_overrides_runpath=no
   8852       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   8853       ;;
   8854   esac
   8855   ;;
   8856 
   8857 sysv4*MP*)
   8858   if test -d /usr/nec ;then
   8859     version_type=linux
   8860     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   8861     soname_spec='$libname${shared_ext}.$major'
   8862     shlibpath_var=LD_LIBRARY_PATH
   8863   fi
   8864   ;;
   8865 
   8866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   8867   version_type=freebsd-elf
   8868   need_lib_prefix=no
   8869   need_version=no
   8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8871   soname_spec='${libname}${release}${shared_ext}$major'
   8872   shlibpath_var=LD_LIBRARY_PATH
   8873   hardcode_into_libs=yes
   8874   if test "$with_gnu_ld" = yes; then
   8875     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   8876     shlibpath_overrides_runpath=no
   8877   else
   8878     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   8879     shlibpath_overrides_runpath=yes
   8880     case $host_os in
   8881       sco3.2v5*)
   8882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   8883 	;;
   8884     esac
   8885   fi
   8886   sys_lib_dlsearch_path_spec='/usr/lib'
   8887   ;;
   8888 
   8889 uts4*)
   8890   version_type=linux
   8891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8892   soname_spec='${libname}${release}${shared_ext}$major'
   8893   shlibpath_var=LD_LIBRARY_PATH
   8894   ;;
   8895 
   8896 *)
   8897   dynamic_linker=no
   8898   ;;
   8899 esac
   8900 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   8901 echo "${ECHO_T}$dynamic_linker" >&6; }
   8902 test "$dynamic_linker" = no && can_build_shared=no
   8903 
   8904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   8905 if test "$GCC" = yes; then
   8906   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   8907 fi
   8908 
   8909 
   8910 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   8911 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   8912 if test "${libltdl_cv_shlibext+set}" = set; then
   8913   echo $ECHO_N "(cached) $ECHO_C" >&6
   8914 else
   8915 
   8916 module=yes
   8917 eval libltdl_cv_shlibext=$shrext_cmds
   8918 
   8919 fi
   8920 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   8921 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   8922 if test -n "$libltdl_cv_shlibext"; then
   8923 
   8924 cat >>confdefs.h <<_ACEOF
   8925 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   8926 _ACEOF
   8927 
   8928 fi
   8929 
   8930 
   8931 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   8932 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   8933 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   8934   echo $ECHO_N "(cached) $ECHO_C" >&6
   8935 else
   8936   libltdl_cv_shlibpath_var="$shlibpath_var"
   8937 fi
   8938 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   8939 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   8940 if test -n "$libltdl_cv_shlibpath_var"; then
   8941 
   8942 cat >>confdefs.h <<_ACEOF
   8943 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   8944 _ACEOF
   8945 
   8946 fi
   8947 
   8948 
   8949 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   8950 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   8951 if test "${libltdl_cv_sys_search_path+set}" = set; then
   8952   echo $ECHO_N "(cached) $ECHO_C" >&6
   8953 else
   8954   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   8955 fi
   8956 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   8957 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   8958 if test -n "$libltdl_cv_sys_search_path"; then
   8959   sys_search_path=
   8960   for dir in $libltdl_cv_sys_search_path; do
   8961     if test -z "$sys_search_path"; then
   8962       sys_search_path="$dir"
   8963     else
   8964       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   8965     fi
   8966   done
   8967 
   8968 cat >>confdefs.h <<_ACEOF
   8969 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   8970 _ACEOF
   8971 
   8972 fi
   8973 
   8974 { echo "$as_me:$LINENO: checking for objdir" >&5
   8975 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   8976 if test "${libltdl_cv_objdir+set}" = set; then
   8977   echo $ECHO_N "(cached) $ECHO_C" >&6
   8978 else
   8979   libltdl_cv_objdir="$objdir"
   8980   if test -n "$objdir"; then
   8981     :
   8982   else
   8983     rm -f .libs 2>/dev/null
   8984     mkdir .libs 2>/dev/null
   8985     if test -d .libs; then
   8986       libltdl_cv_objdir=.libs
   8987     else
   8988       # MS-DOS does not allow filenames that begin with a dot.
   8989       libltdl_cv_objdir=_libs
   8990     fi
   8991   rmdir .libs 2>/dev/null
   8992   fi
   8993 
   8994 fi
   8995 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   8996 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   8997 
   8998 cat >>confdefs.h <<_ACEOF
   8999 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   9000 _ACEOF
   9001 
   9002 
   9003 
   9004 
   9005 
   9006 
   9007 # Check for command to grab the raw symbol name followed by C symbol from nm.
   9008 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   9009 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   9010 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   9011   echo $ECHO_N "(cached) $ECHO_C" >&6
   9012 else
   9013 
   9014 # These are sane defaults that work on at least a few old systems.
   9015 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   9016 
   9017 # Character class describing NM global symbol codes.
   9018 symcode='[BCDEGRST]'
   9019 
   9020 # Regexp to match symbols that can be accessed directly from C.
   9021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   9022 
   9023 # Transform an extracted symbol line into a proper C declaration
   9024 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   9025 
   9026 # Transform an extracted symbol line into symbol name and symbol address
   9027 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'"
   9028 
   9029 # Define system-specific variables.
   9030 case $host_os in
   9031 aix*)
   9032   symcode='[BCDT]'
   9033   ;;
   9034 cygwin* | mingw* | pw32*)
   9035   symcode='[ABCDGISTW]'
   9036   ;;
   9037 hpux*) # Its linker distinguishes data from code symbols
   9038   if test "$host_cpu" = ia64; then
   9039     symcode='[ABCDEGRST]'
   9040   fi
   9041   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9042   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'"
   9043   ;;
   9044 linux*)
   9045   if test "$host_cpu" = ia64; then
   9046     symcode='[ABCDGIRSTW]'
   9047     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   9048     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'"
   9049   fi
   9050   ;;
   9051 irix* | nonstopux*)
   9052   symcode='[BCDEGRST]'
   9053   ;;
   9054 osf*)
   9055   symcode='[BCDEGQRST]'
   9056   ;;
   9057 solaris*)
   9058   symcode='[BDRT]'
   9059   ;;
   9060 sco3.2v5*)
   9061   symcode='[DT]'
   9062   ;;
   9063 sysv4.2uw2*)
   9064   symcode='[DT]'
   9065   ;;
   9066 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   9067   symcode='[ABDT]'
   9068   ;;
   9069 sysv4)
   9070   symcode='[DFNSTU]'
   9071   ;;
   9072 esac
   9073 
   9074 # Handle CRLF in mingw tool chain
   9075 opt_cr=
   9076 case $build_os in
   9077 mingw*)
   9078   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   9079   ;;
   9080 esac
   9081 
   9082 # If we're using GNU nm, then use its standard symbol codes.
   9083 case `$NM -V 2>&1` in
   9084 *GNU* | *'with BFD'*)
   9085   symcode='[ABCDGIRSTW]' ;;
   9086 esac
   9087 
   9088 # Try without a prefix undercore, then with it.
   9089 for ac_symprfx in "" "_"; do
   9090 
   9091   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   9092   symxfrm="\\1 $ac_symprfx\\2 \\2"
   9093 
   9094   # Write the raw and C identifiers.
   9095   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   9096 
   9097   # Check to see that the pipe works correctly.
   9098   pipe_works=no
   9099 
   9100   rm -f conftest*
   9101   cat > conftest.$ac_ext <<EOF
   9102 #ifdef __cplusplus
   9103 extern "C" {
   9104 #endif
   9105 char nm_test_var;
   9106 void nm_test_func(){}
   9107 #ifdef __cplusplus
   9108 }
   9109 #endif
   9110 int main(){nm_test_var='a';nm_test_func();return(0);}
   9111 EOF
   9112 
   9113   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9114   (eval $ac_compile) 2>&5
   9115   ac_status=$?
   9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9117   (exit $ac_status); }; then
   9118     # Now try to grab the symbols.

   9119     nlist=conftest.nm
   9120     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   9121   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   9122   ac_status=$?
   9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9124   (exit $ac_status); } && test -s "$nlist"; then
   9125       # Try sorting and uniquifying the output.

   9126       if sort "$nlist" | uniq > "$nlist"T; then
   9127 	mv -f "$nlist"T "$nlist"
   9128       else
   9129 	rm -f "$nlist"T
   9130       fi
   9131 
   9132       # Make sure that we snagged all the symbols we need.

   9133       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   9134 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   9135 	  cat <<EOF > conftest.$ac_ext
   9136 #ifdef __cplusplus

   9137 extern "C" {
   9138 #endif

   9139 
   9140 EOF
   9141 	  # Now generate the symbol file.

   9142 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   9143 
   9144 	  cat <<EOF >> conftest.$ac_ext
   9145 #if defined (__STDC__) && __STDC__

   9146 # define lt_ptr_t void *

   9147 #else

   9148 # define lt_ptr_t char *

   9149 # define const

   9150 #endif

   9151 
   9152 /* The mapping between symbol names and symbols. */
   9153 const struct {
   9154   const char *name;
   9155   lt_ptr_t address;
   9156 }
   9157 lt_preloaded_symbols[] =
   9158 {
   9159 EOF
   9160 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   9161 	  cat <<\EOF >> conftest.$ac_ext
   9162   {0, (lt_ptr_t) 0}
   9163 };
   9164 
   9165 #ifdef __cplusplus

   9166 }
   9167 #endif

   9168 EOF
   9169 	  # Now try linking the two files.

   9170 	  mv conftest.$ac_objext conftstm.$ac_objext
   9171 	  lt_save_LIBS="$LIBS"
   9172 	  lt_save_CFLAGS="$CFLAGS"
   9173 	  LIBS="conftstm.$ac_objext"
   9174 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   9175 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9176   (eval $ac_link) 2>&5
   9177   ac_status=$?
   9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9179   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   9180 	    pipe_works=yes
   9181 	  fi
   9182 	  LIBS="$lt_save_LIBS"
   9183 	  CFLAGS="$lt_save_CFLAGS"
   9184 	else
   9185 	  echo "cannot find nm_test_func in $nlist" >&5
   9186 	fi
   9187       else
   9188 	echo "cannot find nm_test_var in $nlist" >&5
   9189       fi
   9190     else
   9191       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   9192     fi
   9193   else
   9194     echo "$progname: failed program was:" >&5
   9195     cat conftest.$ac_ext >&5
   9196   fi
   9197   rm -f conftest* conftst*
   9198 
   9199   # Do not use the global_symbol_pipe unless it works.

   9200   if test "$pipe_works" = yes; then
   9201     break
   9202   else
   9203     lt_cv_sys_global_symbol_pipe=
   9204   fi
   9205 done
   9206 
   9207 fi
   9208 
   9209 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   9210   lt_cv_sys_global_symbol_to_cdecl=
   9211 fi
   9212 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   9213   { echo "$as_me:$LINENO: result: failed" >&5
   9214 echo "${ECHO_T}failed" >&6; }
   9215 else
   9216   { echo "$as_me:$LINENO: result: ok" >&5
   9217 echo "${ECHO_T}ok" >&6; }
   9218 fi
   9219 
   9220 
   9221 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   9222 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   9223 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   9224   echo $ECHO_N "(cached) $ECHO_C" >&6
   9225 else
   9226   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   9227     libltdl_cv_preloaded_symbols=yes
   9228   else
   9229     libltdl_cv_preloaded_symbols=no
   9230   fi
   9231 
   9232 fi
   9233 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   9234 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   9235 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   9236 
   9237 cat >>confdefs.h <<\_ACEOF
   9238 #define HAVE_PRELOADED_SYMBOLS 1

   9239 _ACEOF
   9240 
   9241 fi
   9242 
   9243 LIBADD_DL=
   9244 
   9245 ac_ext=c
   9246 ac_cpp='$CPP $CPPFLAGS'
   9247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9250 
   9251 
   9252 { echo "$as_me:$LINENO: checking for shl_load" >&5
   9253 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   9254 if test "${ac_cv_func_shl_load+set}" = set; then
   9255   echo $ECHO_N "(cached) $ECHO_C" >&6
   9256 else
   9257   cat >conftest.$ac_ext <<_ACEOF
   9258 /* confdefs.h.  */
   9259 _ACEOF
   9260 cat confdefs.h >>conftest.$ac_ext
   9261 cat >>conftest.$ac_ext <<_ACEOF
   9262 /* end confdefs.h.  */
   9263 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   9264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9265 #define shl_load innocuous_shl_load

   9266 
   9267 /* System header to define __stub macros and hopefully few prototypes,
   9268     which can conflict with char shl_load (); below.
   9269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9270     <limits.h> exists even on freestanding compilers.  */
   9271 
   9272 #ifdef __STDC__

   9273 # include <limits.h>

   9274 #else

   9275 # include <assert.h>

   9276 #endif

   9277 
   9278 #undef shl_load

   9279 
   9280 /* Override any GCC internal prototype to avoid an error.
   9281    Use char because int might match the return type of a GCC
   9282    builtin and then its argument prototype would still apply.  */
   9283 #ifdef __cplusplus

   9284 extern "C"
   9285 #endif

   9286 char shl_load ();
   9287 /* The GNU C library defines this for functions which it implements
   9288     to always fail with ENOSYS.  Some functions are actually named
   9289     something starting with __ and the normal name is an alias.  */
   9290 #if defined __stub_shl_load || defined __stub___shl_load

   9291 choke me
   9292 #endif

   9293 
   9294 int
   9295 main ()
   9296 {
   9297 return shl_load ();
   9298   ;
   9299   return 0;
   9300 }
   9301 _ACEOF
   9302 rm -f conftest.$ac_objext conftest$ac_exeext
   9303 if { (ac_try="$ac_link"
   9304 case "(($ac_try" in
   9305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9306   *) ac_try_echo=$ac_try;;
   9307 esac
   9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9309   (eval "$ac_link") 2>conftest.er1
   9310   ac_status=$?
   9311   grep -v '^ *+' conftest.er1 >conftest.err
   9312   rm -f conftest.er1
   9313   cat conftest.err >&5
   9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9315   (exit $ac_status); } && {
   9316 	 test -z "$ac_c_werror_flag" ||
   9317 	 test ! -s conftest.err
   9318        } && test -s conftest$ac_exeext &&
   9319        $as_test_x conftest$ac_exeext; then
   9320   ac_cv_func_shl_load=yes
   9321 else
   9322   echo "$as_me: failed program was:" >&5
   9323 sed 's/^/| /' conftest.$ac_ext >&5
   9324 
   9325 	ac_cv_func_shl_load=no
   9326 fi
   9327 
   9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9329       conftest$ac_exeext conftest.$ac_ext
   9330 fi
   9331 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   9332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   9333 if test $ac_cv_func_shl_load = yes; then
   9334 
   9335 cat >>confdefs.h <<\_ACEOF
   9336 #define HAVE_SHL_LOAD 1

   9337 _ACEOF
   9338 
   9339 else
   9340   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   9341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   9342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   9343   echo $ECHO_N "(cached) $ECHO_C" >&6
   9344 else
   9345   ac_check_lib_save_LIBS=$LIBS
   9346 LIBS="-ldld  $LIBS"
   9347 cat >conftest.$ac_ext <<_ACEOF
   9348 /* confdefs.h.  */
   9349 _ACEOF
   9350 cat confdefs.h >>conftest.$ac_ext
   9351 cat >>conftest.$ac_ext <<_ACEOF
   9352 /* end confdefs.h.  */
   9353 
   9354 /* Override any GCC internal prototype to avoid an error.
   9355    Use char because int might match the return type of a GCC
   9356    builtin and then its argument prototype would still apply.  */
   9357 #ifdef __cplusplus

   9358 extern "C"
   9359 #endif

   9360 char shl_load ();
   9361 int
   9362 main ()
   9363 {
   9364 return shl_load ();
   9365   ;
   9366   return 0;
   9367 }
   9368 _ACEOF
   9369 rm -f conftest.$ac_objext conftest$ac_exeext
   9370 if { (ac_try="$ac_link"
   9371 case "(($ac_try" in
   9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9373   *) ac_try_echo=$ac_try;;
   9374 esac
   9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9376   (eval "$ac_link") 2>conftest.er1
   9377   ac_status=$?
   9378   grep -v '^ *+' conftest.er1 >conftest.err
   9379   rm -f conftest.er1
   9380   cat conftest.err >&5
   9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9382   (exit $ac_status); } && {
   9383 	 test -z "$ac_c_werror_flag" ||
   9384 	 test ! -s conftest.err
   9385        } && test -s conftest$ac_exeext &&
   9386        $as_test_x conftest$ac_exeext; then
   9387   ac_cv_lib_dld_shl_load=yes
   9388 else
   9389   echo "$as_me: failed program was:" >&5
   9390 sed 's/^/| /' conftest.$ac_ext >&5
   9391 
   9392 	ac_cv_lib_dld_shl_load=no
   9393 fi
   9394 
   9395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9396       conftest$ac_exeext conftest.$ac_ext
   9397 LIBS=$ac_check_lib_save_LIBS
   9398 fi
   9399 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   9400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   9401 if test $ac_cv_lib_dld_shl_load = yes; then
   9402 
   9403 cat >>confdefs.h <<\_ACEOF
   9404 #define HAVE_SHL_LOAD 1

   9405 _ACEOF
   9406 
   9407 	LIBADD_DL="$LIBADD_DL -ldld"
   9408 else
   9409   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   9410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   9411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   9412   echo $ECHO_N "(cached) $ECHO_C" >&6
   9413 else
   9414   ac_check_lib_save_LIBS=$LIBS
   9415 LIBS="-ldl  $LIBS"
   9416 cat >conftest.$ac_ext <<_ACEOF
   9417 /* confdefs.h.  */
   9418 _ACEOF
   9419 cat confdefs.h >>conftest.$ac_ext
   9420 cat >>conftest.$ac_ext <<_ACEOF
   9421 /* end confdefs.h.  */
   9422 
   9423 /* Override any GCC internal prototype to avoid an error.
   9424    Use char because int might match the return type of a GCC
   9425    builtin and then its argument prototype would still apply.  */
   9426 #ifdef __cplusplus

   9427 extern "C"
   9428 #endif

   9429 char dlopen ();
   9430 int
   9431 main ()
   9432 {
   9433 return dlopen ();
   9434   ;
   9435   return 0;
   9436 }
   9437 _ACEOF
   9438 rm -f conftest.$ac_objext conftest$ac_exeext
   9439 if { (ac_try="$ac_link"
   9440 case "(($ac_try" in
   9441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9442   *) ac_try_echo=$ac_try;;
   9443 esac
   9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9445   (eval "$ac_link") 2>conftest.er1
   9446   ac_status=$?
   9447   grep -v '^ *+' conftest.er1 >conftest.err
   9448   rm -f conftest.er1
   9449   cat conftest.err >&5
   9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9451   (exit $ac_status); } && {
   9452 	 test -z "$ac_c_werror_flag" ||
   9453 	 test ! -s conftest.err
   9454        } && test -s conftest$ac_exeext &&
   9455        $as_test_x conftest$ac_exeext; then
   9456   ac_cv_lib_dl_dlopen=yes
   9457 else
   9458   echo "$as_me: failed program was:" >&5
   9459 sed 's/^/| /' conftest.$ac_ext >&5
   9460 
   9461 	ac_cv_lib_dl_dlopen=no
   9462 fi
   9463 
   9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9465       conftest$ac_exeext conftest.$ac_ext
   9466 LIBS=$ac_check_lib_save_LIBS
   9467 fi
   9468 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   9469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   9470 if test $ac_cv_lib_dl_dlopen = yes; then
   9471 
   9472 cat >>confdefs.h <<\_ACEOF
   9473 #define HAVE_LIBDL 1

   9474 _ACEOF
   9475 
   9476 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   9477 else
   9478   cat >conftest.$ac_ext <<_ACEOF
   9479 /* confdefs.h.  */
   9480 _ACEOF
   9481 cat confdefs.h >>conftest.$ac_ext
   9482 cat >>conftest.$ac_ext <<_ACEOF
   9483 /* end confdefs.h.  */
   9484 #if HAVE_DLFCN_H

   9485 #  include <dlfcn.h>

   9486 #endif

   9487 
   9488 int
   9489 main ()
   9490 {
   9491 dlopen(0, 0);
   9492   ;
   9493   return 0;
   9494 }
   9495 _ACEOF
   9496 rm -f conftest.$ac_objext conftest$ac_exeext
   9497 if { (ac_try="$ac_link"
   9498 case "(($ac_try" in
   9499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9500   *) ac_try_echo=$ac_try;;
   9501 esac
   9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9503   (eval "$ac_link") 2>conftest.er1
   9504   ac_status=$?
   9505   grep -v '^ *+' conftest.er1 >conftest.err
   9506   rm -f conftest.er1
   9507   cat conftest.err >&5
   9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9509   (exit $ac_status); } && {
   9510 	 test -z "$ac_c_werror_flag" ||
   9511 	 test ! -s conftest.err
   9512        } && test -s conftest$ac_exeext &&
   9513        $as_test_x conftest$ac_exeext; then
   9514 
   9515 cat >>confdefs.h <<\_ACEOF
   9516 #define HAVE_LIBDL 1

   9517 _ACEOF
   9518  libltdl_cv_func_dlopen="yes"
   9519 else
   9520   echo "$as_me: failed program was:" >&5
   9521 sed 's/^/| /' conftest.$ac_ext >&5
   9522 
   9523 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   9524 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   9525 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   9526   echo $ECHO_N "(cached) $ECHO_C" >&6
   9527 else
   9528   ac_check_lib_save_LIBS=$LIBS
   9529 LIBS="-lsvld  $LIBS"
   9530 cat >conftest.$ac_ext <<_ACEOF
   9531 /* confdefs.h.  */
   9532 _ACEOF
   9533 cat confdefs.h >>conftest.$ac_ext
   9534 cat >>conftest.$ac_ext <<_ACEOF
   9535 /* end confdefs.h.  */
   9536 
   9537 /* Override any GCC internal prototype to avoid an error.
   9538    Use char because int might match the return type of a GCC
   9539    builtin and then its argument prototype would still apply.  */
   9540 #ifdef __cplusplus

   9541 extern "C"
   9542 #endif

   9543 char dlopen ();
   9544 int
   9545 main ()
   9546 {
   9547 return dlopen ();
   9548   ;
   9549   return 0;
   9550 }
   9551 _ACEOF
   9552 rm -f conftest.$ac_objext conftest$ac_exeext
   9553 if { (ac_try="$ac_link"
   9554 case "(($ac_try" in
   9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9556   *) ac_try_echo=$ac_try;;
   9557 esac
   9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9559   (eval "$ac_link") 2>conftest.er1
   9560   ac_status=$?
   9561   grep -v '^ *+' conftest.er1 >conftest.err
   9562   rm -f conftest.er1
   9563   cat conftest.err >&5
   9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9565   (exit $ac_status); } && {
   9566 	 test -z "$ac_c_werror_flag" ||
   9567 	 test ! -s conftest.err
   9568        } && test -s conftest$ac_exeext &&
   9569        $as_test_x conftest$ac_exeext; then
   9570   ac_cv_lib_svld_dlopen=yes
   9571 else
   9572   echo "$as_me: failed program was:" >&5
   9573 sed 's/^/| /' conftest.$ac_ext >&5
   9574 
   9575 	ac_cv_lib_svld_dlopen=no
   9576 fi
   9577 
   9578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9579       conftest$ac_exeext conftest.$ac_ext
   9580 LIBS=$ac_check_lib_save_LIBS
   9581 fi
   9582 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   9583 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   9584 if test $ac_cv_lib_svld_dlopen = yes; then
   9585 
   9586 cat >>confdefs.h <<\_ACEOF
   9587 #define HAVE_LIBDL 1

   9588 _ACEOF
   9589 
   9590 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   9591 else
   9592   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   9593 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   9594 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   9595   echo $ECHO_N "(cached) $ECHO_C" >&6
   9596 else
   9597   ac_check_lib_save_LIBS=$LIBS
   9598 LIBS="-ldld  $LIBS"
   9599 cat >conftest.$ac_ext <<_ACEOF
   9600 /* confdefs.h.  */
   9601 _ACEOF
   9602 cat confdefs.h >>conftest.$ac_ext
   9603 cat >>conftest.$ac_ext <<_ACEOF
   9604 /* end confdefs.h.  */
   9605 
   9606 /* Override any GCC internal prototype to avoid an error.
   9607    Use char because int might match the return type of a GCC
   9608    builtin and then its argument prototype would still apply.  */
   9609 #ifdef __cplusplus

   9610 extern "C"
   9611 #endif

   9612 char dld_link ();
   9613 int
   9614 main ()
   9615 {
   9616 return dld_link ();
   9617   ;
   9618   return 0;
   9619 }
   9620 _ACEOF
   9621 rm -f conftest.$ac_objext conftest$ac_exeext
   9622 if { (ac_try="$ac_link"
   9623 case "(($ac_try" in
   9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9625   *) ac_try_echo=$ac_try;;
   9626 esac
   9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9628   (eval "$ac_link") 2>conftest.er1
   9629   ac_status=$?
   9630   grep -v '^ *+' conftest.er1 >conftest.err
   9631   rm -f conftest.er1
   9632   cat conftest.err >&5
   9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9634   (exit $ac_status); } && {
   9635 	 test -z "$ac_c_werror_flag" ||
   9636 	 test ! -s conftest.err
   9637        } && test -s conftest$ac_exeext &&
   9638        $as_test_x conftest$ac_exeext; then
   9639   ac_cv_lib_dld_dld_link=yes
   9640 else
   9641   echo "$as_me: failed program was:" >&5
   9642 sed 's/^/| /' conftest.$ac_ext >&5
   9643 
   9644 	ac_cv_lib_dld_dld_link=no
   9645 fi
   9646 
   9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9648       conftest$ac_exeext conftest.$ac_ext
   9649 LIBS=$ac_check_lib_save_LIBS
   9650 fi
   9651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   9652 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   9653 if test $ac_cv_lib_dld_dld_link = yes; then
   9654 
   9655 cat >>confdefs.h <<\_ACEOF
   9656 #define HAVE_DLD 1

   9657 _ACEOF
   9658 
   9659 	 	LIBADD_DL="$LIBADD_DL -ldld"
   9660 else
   9661   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   9662 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   9663 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   9664   echo $ECHO_N "(cached) $ECHO_C" >&6
   9665 else
   9666   cat >conftest.$ac_ext <<_ACEOF
   9667 /* confdefs.h.  */
   9668 _ACEOF
   9669 cat confdefs.h >>conftest.$ac_ext
   9670 cat >>conftest.$ac_ext <<_ACEOF
   9671 /* end confdefs.h.  */
   9672 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   9673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9674 #define _dyld_func_lookup innocuous__dyld_func_lookup

   9675 
   9676 /* System header to define __stub macros and hopefully few prototypes,
   9677     which can conflict with char _dyld_func_lookup (); below.
   9678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9679     <limits.h> exists even on freestanding compilers.  */
   9680 
   9681 #ifdef __STDC__

   9682 # include <limits.h>

   9683 #else

   9684 # include <assert.h>

   9685 #endif

   9686 
   9687 #undef _dyld_func_lookup

   9688 
   9689 /* Override any GCC internal prototype to avoid an error.
   9690    Use char because int might match the return type of a GCC
   9691    builtin and then its argument prototype would still apply.  */
   9692 #ifdef __cplusplus

   9693 extern "C"
   9694 #endif

   9695 char _dyld_func_lookup ();
   9696 /* The GNU C library defines this for functions which it implements
   9697     to always fail with ENOSYS.  Some functions are actually named
   9698     something starting with __ and the normal name is an alias.  */
   9699 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup

   9700 choke me
   9701 #endif

   9702 
   9703 int
   9704 main ()
   9705 {
   9706 return _dyld_func_lookup ();
   9707   ;
   9708   return 0;
   9709 }
   9710 _ACEOF
   9711 rm -f conftest.$ac_objext conftest$ac_exeext
   9712 if { (ac_try="$ac_link"
   9713 case "(($ac_try" in
   9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9715   *) ac_try_echo=$ac_try;;
   9716 esac
   9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9718   (eval "$ac_link") 2>conftest.er1
   9719   ac_status=$?
   9720   grep -v '^ *+' conftest.er1 >conftest.err
   9721   rm -f conftest.er1
   9722   cat conftest.err >&5
   9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9724   (exit $ac_status); } && {
   9725 	 test -z "$ac_c_werror_flag" ||
   9726 	 test ! -s conftest.err
   9727        } && test -s conftest$ac_exeext &&
   9728        $as_test_x conftest$ac_exeext; then
   9729   ac_cv_func__dyld_func_lookup=yes
   9730 else
   9731   echo "$as_me: failed program was:" >&5
   9732 sed 's/^/| /' conftest.$ac_ext >&5
   9733 
   9734 	ac_cv_func__dyld_func_lookup=no
   9735 fi
   9736 
   9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9738       conftest$ac_exeext conftest.$ac_ext
   9739 fi
   9740 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   9741 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   9742 if test $ac_cv_func__dyld_func_lookup = yes; then
   9743 
   9744 cat >>confdefs.h <<\_ACEOF
   9745 #define HAVE_DYLD 1

   9746 _ACEOF
   9747 
   9748 fi
   9749 
   9750 
   9751 fi
   9752 
   9753 
   9754 fi
   9755 
   9756 
   9757 fi
   9758 
   9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9760       conftest$ac_exeext conftest.$ac_ext
   9761 
   9762 fi
   9763 
   9764 
   9765 fi
   9766 
   9767 
   9768 fi
   9769 
   9770 
   9771 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   9772 then
   9773   lt_save_LIBS="$LIBS"
   9774   LIBS="$LIBS $LIBADD_DL"
   9775 
   9776 for ac_func in dlerror
   9777 do
   9778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9782   echo $ECHO_N "(cached) $ECHO_C" >&6
   9783 else
   9784   cat >conftest.$ac_ext <<_ACEOF
   9785 /* confdefs.h.  */
   9786 _ACEOF
   9787 cat confdefs.h >>conftest.$ac_ext
   9788 cat >>conftest.$ac_ext <<_ACEOF
   9789 /* end confdefs.h.  */
   9790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9792 #define $ac_func innocuous_$ac_func

   9793 
   9794 /* System header to define __stub macros and hopefully few prototypes,
   9795     which can conflict with char $ac_func (); below.
   9796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9797     <limits.h> exists even on freestanding compilers.  */
   9798 
   9799 #ifdef __STDC__

   9800 # include <limits.h>

   9801 #else

   9802 # include <assert.h>

   9803 #endif

   9804 
   9805 #undef $ac_func

   9806 
   9807 /* Override any GCC internal prototype to avoid an error.
   9808    Use char because int might match the return type of a GCC
   9809    builtin and then its argument prototype would still apply.  */
   9810 #ifdef __cplusplus

   9811 extern "C"
   9812 #endif

   9813 char $ac_func ();
   9814 /* The GNU C library defines this for functions which it implements
   9815     to always fail with ENOSYS.  Some functions are actually named
   9816     something starting with __ and the normal name is an alias.  */
   9817 #if defined __stub_$ac_func || defined __stub___$ac_func

   9818 choke me
   9819 #endif

   9820 
   9821 int
   9822 main ()
   9823 {
   9824 return $ac_func ();
   9825   ;
   9826   return 0;
   9827 }
   9828 _ACEOF
   9829 rm -f conftest.$ac_objext conftest$ac_exeext
   9830 if { (ac_try="$ac_link"
   9831 case "(($ac_try" in
   9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9833   *) ac_try_echo=$ac_try;;
   9834 esac
   9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9836   (eval "$ac_link") 2>conftest.er1
   9837   ac_status=$?
   9838   grep -v '^ *+' conftest.er1 >conftest.err
   9839   rm -f conftest.er1
   9840   cat conftest.err >&5
   9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9842   (exit $ac_status); } && {
   9843 	 test -z "$ac_c_werror_flag" ||
   9844 	 test ! -s conftest.err
   9845        } && test -s conftest$ac_exeext &&
   9846        $as_test_x conftest$ac_exeext; then
   9847   eval "$as_ac_var=yes"
   9848 else
   9849   echo "$as_me: failed program was:" >&5
   9850 sed 's/^/| /' conftest.$ac_ext >&5
   9851 
   9852 	eval "$as_ac_var=no"
   9853 fi
   9854 
   9855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9856       conftest$ac_exeext conftest.$ac_ext
   9857 fi
   9858 ac_res=`eval echo '${'$as_ac_var'}'`
   9859 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9860 echo "${ECHO_T}$ac_res" >&6; }
   9861 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9862   cat >>confdefs.h <<_ACEOF
   9863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   9864 _ACEOF
   9865 
   9866 fi
   9867 done
   9868 
   9869   LIBS="$lt_save_LIBS"
   9870 fi
   9871 ac_ext=c
   9872 ac_cpp='$CPP $CPPFLAGS'
   9873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9876 
   9877 
   9878 
   9879 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   9880 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   9881 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   9882   echo $ECHO_N "(cached) $ECHO_C" >&6
   9883 else
   9884   ac_cv_sys_symbol_underscore=no
   9885   cat > conftest.$ac_ext <<EOF
   9886 void nm_test_func(){}
   9887 int main(){nm_test_func;return 0;}
   9888 EOF
   9889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9890   (eval $ac_compile) 2>&5
   9891   ac_status=$?
   9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9893   (exit $ac_status); }; then
   9894     # Now try to grab the symbols.

   9895     ac_nlist=conftest.nm
   9896     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   9897   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   9898   ac_status=$?
   9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9900   (exit $ac_status); } && test -s "$ac_nlist"; then
   9901       # See whether the symbols have a leading underscore.

   9902       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   9903         ac_cv_sys_symbol_underscore=yes
   9904       else
   9905         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   9906 	  :
   9907         else
   9908 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   9909         fi
   9910       fi
   9911     else
   9912       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   9913     fi
   9914   else
   9915     echo "configure: failed program was:" >&5
   9916     cat conftest.c >&5
   9917   fi
   9918   rm -rf conftest*
   9919 
   9920 fi
   9921 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   9922 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   9923 
   9924 
   9925 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   9926   if test x"$libltdl_cv_func_dlopen" = xyes ||
   9927      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   9928 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   9929 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   9930 if test "${libltdl_cv_need_uscore+set}" = set; then
   9931   echo $ECHO_N "(cached) $ECHO_C" >&6
   9932 else
   9933   libltdl_cv_need_uscore=unknown
   9934           save_LIBS="$LIBS"
   9935           LIBS="$LIBS $LIBADD_DL"
   9936 	  if test "$cross_compiling" = yes; then :
   9937   libltdl_cv_need_uscore=cross
   9938 else
   9939   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   9940   lt_status=$lt_dlunknown
   9941   cat > conftest.$ac_ext <<EOF
   9942 #line 9942 "configure"

   9943 #include "confdefs.h"

   9944 
   9945 #if HAVE_DLFCN_H

   9946 #include <dlfcn.h>

   9947 #endif

   9948 
   9949 #include <stdio.h>

   9950 
   9951 #ifdef RTLD_GLOBAL

   9952 #  define LT_DLGLOBAL		RTLD_GLOBAL

   9953 #else

   9954 #  ifdef DL_GLOBAL

   9955 #    define LT_DLGLOBAL		DL_GLOBAL

   9956 #  else

   9957 #    define LT_DLGLOBAL		0

   9958 #  endif

   9959 #endif

   9960 
   9961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   9962    find out it does not work in some platform. */
   9963 #ifndef LT_DLLAZY_OR_NOW

   9964 #  ifdef RTLD_LAZY

   9965 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY

   9966 #  else

   9967 #    ifdef DL_LAZY

   9968 #      define LT_DLLAZY_OR_NOW		DL_LAZY

   9969 #    else

   9970 #      ifdef RTLD_NOW

   9971 #        define LT_DLLAZY_OR_NOW	RTLD_NOW

   9972 #      else

   9973 #        ifdef DL_NOW

   9974 #          define LT_DLLAZY_OR_NOW	DL_NOW

   9975 #        else

   9976 #          define LT_DLLAZY_OR_NOW	0

   9977 #        endif

   9978 #      endif

   9979 #    endif

   9980 #  endif

   9981 #endif

   9982 
   9983 #ifdef __cplusplus

   9984 extern "C" void exit (int);
   9985 #endif

   9986 
   9987 void fnord() { int i=42;}
   9988 int main ()
   9989 {
   9990   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   9991   int status = $lt_dlunknown;
   9992 
   9993   if (self)
   9994     {
   9995       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   9996       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   9997       /* dlclose (self); */
   9998     }
   9999   else
   10000     puts (dlerror ());
   10001 
   10002     exit (status);
   10003 }
   10004 EOF
   10005   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10006   (eval $ac_link) 2>&5
   10007   ac_status=$?
   10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10009   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   10010     (./conftest; exit; ) >&5 2>/dev/null
   10011     lt_status=$?
   10012     case x$lt_status in
   10013       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   10014       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   10015       x$lt_dlunknown|x*)  ;;
   10016     esac
   10017   else :
   10018     # compilation failed

   10019 
   10020   fi
   10021 fi
   10022 rm -fr conftest*
   10023 
   10024 	  LIBS="$save_LIBS"
   10025 
   10026 fi
   10027 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   10028 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   10029   fi
   10030 fi
   10031 
   10032 if test x"$libltdl_cv_need_uscore" = xyes; then
   10033 
   10034 cat >>confdefs.h <<\_ACEOF
   10035 #define NEED_USCORE 1

   10036 _ACEOF
   10037 
   10038 fi
   10039 
   10040 
   10041 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   10042 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   10043 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   10044   echo $ECHO_N "(cached) $ECHO_C" >&6
   10045 else
   10046   # PORTME does your system automatically load deplibs for dlopen?

   10047   # or its logical equivalent (e.g. shl_load for HP-UX < 11)

   10048   # For now, we just catch OSes we know something about -- in the

   10049   # future, we'll try test this programmatically.

   10050   libltdl_cv_sys_dlopen_deplibs=unknown
   10051   case "$host_os" in
   10052   aix3*|aix4.1.*|aix4.2.*)
   10053     # Unknown whether this is true for these versions of AIX, but

   10054     # we want this `case' here to explicitly catch those versions.

   10055     libltdl_cv_sys_dlopen_deplibs=unknown
   10056     ;;
   10057   aix[45]*)
   10058     libltdl_cv_sys_dlopen_deplibs=yes
   10059     ;;
   10060   darwin*)
   10061     # Assuming the user has installed a libdl from somewhere, this is true

   10062     # If you are looking for one http://www.opendarwin.org/projects/dlcompat

   10063     libltdl_cv_sys_dlopen_deplibs=yes
   10064     ;;
   10065   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
   10066     # GNU and its variants, using gnu ld.so (Glibc)

   10067     libltdl_cv_sys_dlopen_deplibs=yes
   10068     ;;
   10069   hpux10*|hpux11*)
   10070     libltdl_cv_sys_dlopen_deplibs=yes
   10071     ;;
   10072   interix*)
   10073     libltdl_cv_sys_dlopen_deplibs=yes
   10074     ;;
   10075   irix[12345]*|irix6.[01]*)
   10076     # Catch all versions of IRIX before 6.2, and indicate that we don't

   10077     # know how it worked for any of those versions.

   10078     libltdl_cv_sys_dlopen_deplibs=unknown
   10079     ;;
   10080   irix*)
   10081     # The case above catches anything before 6.2, and it's known that

   10082     # at 6.2 and later dlopen does load deplibs.

   10083     libltdl_cv_sys_dlopen_deplibs=yes
   10084     ;;
   10085   netbsd*)
   10086     libltdl_cv_sys_dlopen_deplibs=yes
   10087     ;;
   10088   openbsd*)
   10089     libltdl_cv_sys_dlopen_deplibs=yes
   10090     ;;
   10091   osf[1234]*)
   10092     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,

   10093     # it did *not* use an RPATH in a shared library to find objects the

   10094     # library depends on, so we explicitly say `no'.

   10095     libltdl_cv_sys_dlopen_deplibs=no
   10096     ;;
   10097   osf5.0|osf5.0a|osf5.1)
   10098     # dlopen *does* load deplibs and with the right loader patch applied

   10099     # it even uses RPATH in a shared library to search for shared objects

   10100     # that the library depends on, but there's no easy way to know if that

   10101     # patch is installed.  Since this is the case, all we can really

   10102     # say is unknown -- it depends on the patch being installed.  If

   10103     # it is, this changes to `yes'.  Without it, it would be `no'.

   10104     libltdl_cv_sys_dlopen_deplibs=unknown
   10105     ;;
   10106   osf*)
   10107     # the two cases above should catch all versions of osf <= 5.1.  Read

   10108     # the comments above for what we know about them.

   10109     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library

   10110     # is used to find them so we can finally say `yes'.

   10111     libltdl_cv_sys_dlopen_deplibs=yes
   10112     ;;
   10113   solaris*)
   10114     libltdl_cv_sys_dlopen_deplibs=yes
   10115     ;;
   10116   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   10117     libltdl_cv_sys_dlopen_deplibs=yes
   10118     ;;
   10119   esac
   10120 
   10121 fi
   10122 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   10123 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   10124 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   10125 
   10126 cat >>confdefs.h <<\_ACEOF
   10127 #define LTDL_DLOPEN_DEPLIBS 1

   10128 _ACEOF
   10129 
   10130 fi
   10131 
   10132 
   10133 for ac_header in argz.h
   10134 do
   10135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10140   echo $ECHO_N "(cached) $ECHO_C" >&6
   10141 fi
   10142 ac_res=`eval echo '${'$as_ac_Header'}'`
   10143 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10144 echo "${ECHO_T}$ac_res" >&6; }
   10145 else
   10146   # Is the header compilable?

   10147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10149 cat >conftest.$ac_ext <<_ACEOF
   10150 /* confdefs.h.  */
   10151 _ACEOF
   10152 cat confdefs.h >>conftest.$ac_ext
   10153 cat >>conftest.$ac_ext <<_ACEOF
   10154 /* end confdefs.h.  */
   10155 $ac_includes_default
   10156 #include <$ac_header>

   10157 _ACEOF
   10158 rm -f conftest.$ac_objext
   10159 if { (ac_try="$ac_compile"
   10160 case "(($ac_try" in
   10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10162   *) ac_try_echo=$ac_try;;
   10163 esac
   10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10165   (eval "$ac_compile") 2>conftest.er1
   10166   ac_status=$?
   10167   grep -v '^ *+' conftest.er1 >conftest.err
   10168   rm -f conftest.er1
   10169   cat conftest.err >&5
   10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10171   (exit $ac_status); } && {
   10172 	 test -z "$ac_c_werror_flag" ||
   10173 	 test ! -s conftest.err
   10174        } && test -s conftest.$ac_objext; then
   10175   ac_header_compiler=yes
   10176 else
   10177   echo "$as_me: failed program was:" >&5
   10178 sed 's/^/| /' conftest.$ac_ext >&5
   10179 
   10180 	ac_header_compiler=no
   10181 fi
   10182 
   10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10185 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10186 
   10187 # Is the header present?

   10188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10190 cat >conftest.$ac_ext <<_ACEOF
   10191 /* confdefs.h.  */
   10192 _ACEOF
   10193 cat confdefs.h >>conftest.$ac_ext
   10194 cat >>conftest.$ac_ext <<_ACEOF
   10195 /* end confdefs.h.  */
   10196 #include <$ac_header>

   10197 _ACEOF
   10198 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10199 case "(($ac_try" in
   10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10201   *) ac_try_echo=$ac_try;;
   10202 esac
   10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10205   ac_status=$?
   10206   grep -v '^ *+' conftest.er1 >conftest.err
   10207   rm -f conftest.er1
   10208   cat conftest.err >&5
   10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10210   (exit $ac_status); } >/dev/null && {
   10211 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10212 	 test ! -s conftest.err
   10213        }; then
   10214   ac_header_preproc=yes
   10215 else
   10216   echo "$as_me: failed program was:" >&5
   10217 sed 's/^/| /' conftest.$ac_ext >&5
   10218 
   10219   ac_header_preproc=no
   10220 fi
   10221 
   10222 rm -f conftest.err conftest.$ac_ext
   10223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10224 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10225 
   10226 # So?  What about this header?

   10227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10228   yes:no: )
   10229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10233     ac_header_preproc=yes
   10234     ;;
   10235   no:yes:* )
   10236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10248     ( cat <<\_ASBOX
   10249 ## ----------------------------------- ##

   10250 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   10251 ## ----------------------------------- ##

   10252 _ASBOX
   10253      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10254     ;;
   10255 esac
   10256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10259   echo $ECHO_N "(cached) $ECHO_C" >&6
   10260 else
   10261   eval "$as_ac_Header=\$ac_header_preproc"
   10262 fi
   10263 ac_res=`eval echo '${'$as_ac_Header'}'`
   10264 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10265 echo "${ECHO_T}$ac_res" >&6; }
   10266 
   10267 fi
   10268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10269   cat >>confdefs.h <<_ACEOF
   10270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   10271 _ACEOF
   10272 
   10273 fi
   10274 
   10275 done
   10276 
   10277 
   10278 { echo "$as_me:$LINENO: checking for error_t" >&5
   10279 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   10280 if test "${ac_cv_type_error_t+set}" = set; then
   10281   echo $ECHO_N "(cached) $ECHO_C" >&6
   10282 else
   10283   cat >conftest.$ac_ext <<_ACEOF
   10284 /* confdefs.h.  */
   10285 _ACEOF
   10286 cat confdefs.h >>conftest.$ac_ext
   10287 cat >>conftest.$ac_ext <<_ACEOF
   10288 /* end confdefs.h.  */
   10289 #if HAVE_ARGZ_H

   10290 #  include <argz.h>

   10291 #endif

   10292 
   10293 typedef error_t ac__type_new_;
   10294 int
   10295 main ()
   10296 {
   10297 if ((ac__type_new_ *) 0)
   10298   return 0;
   10299 if (sizeof (ac__type_new_))
   10300   return 0;
   10301   ;
   10302   return 0;
   10303 }
   10304 _ACEOF
   10305 rm -f conftest.$ac_objext
   10306 if { (ac_try="$ac_compile"
   10307 case "(($ac_try" in
   10308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10309   *) ac_try_echo=$ac_try;;
   10310 esac
   10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10312   (eval "$ac_compile") 2>conftest.er1
   10313   ac_status=$?
   10314   grep -v '^ *+' conftest.er1 >conftest.err
   10315   rm -f conftest.er1
   10316   cat conftest.err >&5
   10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10318   (exit $ac_status); } && {
   10319 	 test -z "$ac_c_werror_flag" ||
   10320 	 test ! -s conftest.err
   10321        } && test -s conftest.$ac_objext; then
   10322   ac_cv_type_error_t=yes
   10323 else
   10324   echo "$as_me: failed program was:" >&5
   10325 sed 's/^/| /' conftest.$ac_ext >&5
   10326 
   10327 	ac_cv_type_error_t=no
   10328 fi
   10329 
   10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10331 fi
   10332 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   10333 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   10334 if test $ac_cv_type_error_t = yes; then
   10335 
   10336 cat >>confdefs.h <<_ACEOF
   10337 #define HAVE_ERROR_T 1

   10338 _ACEOF
   10339 
   10340 
   10341 else
   10342 
   10343 cat >>confdefs.h <<\_ACEOF
   10344 #define error_t int

   10345 _ACEOF
   10346 
   10347 fi
   10348 
   10349 
   10350 
   10351 
   10352 
   10353 
   10354 
   10355 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   10356 do
   10357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10361   echo $ECHO_N "(cached) $ECHO_C" >&6
   10362 else
   10363   cat >conftest.$ac_ext <<_ACEOF
   10364 /* confdefs.h.  */
   10365 _ACEOF
   10366 cat confdefs.h >>conftest.$ac_ext
   10367 cat >>conftest.$ac_ext <<_ACEOF
   10368 /* end confdefs.h.  */
   10369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10371 #define $ac_func innocuous_$ac_func

   10372 
   10373 /* System header to define __stub macros and hopefully few prototypes,
   10374     which can conflict with char $ac_func (); below.
   10375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10376     <limits.h> exists even on freestanding compilers.  */
   10377 
   10378 #ifdef __STDC__

   10379 # include <limits.h>

   10380 #else

   10381 # include <assert.h>

   10382 #endif

   10383 
   10384 #undef $ac_func

   10385 
   10386 /* Override any GCC internal prototype to avoid an error.
   10387    Use char because int might match the return type of a GCC
   10388    builtin and then its argument prototype would still apply.  */
   10389 #ifdef __cplusplus

   10390 extern "C"
   10391 #endif

   10392 char $ac_func ();
   10393 /* The GNU C library defines this for functions which it implements
   10394     to always fail with ENOSYS.  Some functions are actually named
   10395     something starting with __ and the normal name is an alias.  */
   10396 #if defined __stub_$ac_func || defined __stub___$ac_func

   10397 choke me
   10398 #endif

   10399 
   10400 int
   10401 main ()
   10402 {
   10403 return $ac_func ();
   10404   ;
   10405   return 0;
   10406 }
   10407 _ACEOF
   10408 rm -f conftest.$ac_objext conftest$ac_exeext
   10409 if { (ac_try="$ac_link"
   10410 case "(($ac_try" in
   10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10412   *) ac_try_echo=$ac_try;;
   10413 esac
   10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10415   (eval "$ac_link") 2>conftest.er1
   10416   ac_status=$?
   10417   grep -v '^ *+' conftest.er1 >conftest.err
   10418   rm -f conftest.er1
   10419   cat conftest.err >&5
   10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10421   (exit $ac_status); } && {
   10422 	 test -z "$ac_c_werror_flag" ||
   10423 	 test ! -s conftest.err
   10424        } && test -s conftest$ac_exeext &&
   10425        $as_test_x conftest$ac_exeext; then
   10426   eval "$as_ac_var=yes"
   10427 else
   10428   echo "$as_me: failed program was:" >&5
   10429 sed 's/^/| /' conftest.$ac_ext >&5
   10430 
   10431 	eval "$as_ac_var=no"
   10432 fi
   10433 
   10434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10435       conftest$ac_exeext conftest.$ac_ext
   10436 fi
   10437 ac_res=`eval echo '${'$as_ac_var'}'`
   10438 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10439 echo "${ECHO_T}$ac_res" >&6; }
   10440 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10441   cat >>confdefs.h <<_ACEOF
   10442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   10443 _ACEOF
   10444 
   10445 fi
   10446 done
   10447 
   10448 
   10449 
   10450 
   10451 
   10452 
   10453 
   10454 
   10455 
   10456 
   10457 
   10458 
   10459 
   10460 
   10461 
   10462 
   10463 
   10464 
   10465 
   10466 
   10467 
   10468 
   10469 
   10470 
   10471 
   10472 
   10473 
   10474 
   10475 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   10476 		  stdio.h unistd.h
   10477 do
   10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10480   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10483   echo $ECHO_N "(cached) $ECHO_C" >&6
   10484 fi
   10485 ac_res=`eval echo '${'$as_ac_Header'}'`
   10486 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10487 echo "${ECHO_T}$ac_res" >&6; }
   10488 else
   10489   # Is the header compilable?

   10490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10492 cat >conftest.$ac_ext <<_ACEOF
   10493 /* confdefs.h.  */
   10494 _ACEOF
   10495 cat confdefs.h >>conftest.$ac_ext
   10496 cat >>conftest.$ac_ext <<_ACEOF
   10497 /* end confdefs.h.  */
   10498 $ac_includes_default
   10499 #include <$ac_header>

   10500 _ACEOF
   10501 rm -f conftest.$ac_objext
   10502 if { (ac_try="$ac_compile"
   10503 case "(($ac_try" in
   10504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10505   *) ac_try_echo=$ac_try;;
   10506 esac
   10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10508   (eval "$ac_compile") 2>conftest.er1
   10509   ac_status=$?
   10510   grep -v '^ *+' conftest.er1 >conftest.err
   10511   rm -f conftest.er1
   10512   cat conftest.err >&5
   10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10514   (exit $ac_status); } && {
   10515 	 test -z "$ac_c_werror_flag" ||
   10516 	 test ! -s conftest.err
   10517        } && test -s conftest.$ac_objext; then
   10518   ac_header_compiler=yes
   10519 else
   10520   echo "$as_me: failed program was:" >&5
   10521 sed 's/^/| /' conftest.$ac_ext >&5
   10522 
   10523 	ac_header_compiler=no
   10524 fi
   10525 
   10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10528 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10529 
   10530 # Is the header present?

   10531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10533 cat >conftest.$ac_ext <<_ACEOF
   10534 /* confdefs.h.  */
   10535 _ACEOF
   10536 cat confdefs.h >>conftest.$ac_ext
   10537 cat >>conftest.$ac_ext <<_ACEOF
   10538 /* end confdefs.h.  */
   10539 #include <$ac_header>

   10540 _ACEOF
   10541 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10542 case "(($ac_try" in
   10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10544   *) ac_try_echo=$ac_try;;
   10545 esac
   10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10548   ac_status=$?
   10549   grep -v '^ *+' conftest.er1 >conftest.err
   10550   rm -f conftest.er1
   10551   cat conftest.err >&5
   10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10553   (exit $ac_status); } >/dev/null && {
   10554 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10555 	 test ! -s conftest.err
   10556        }; then
   10557   ac_header_preproc=yes
   10558 else
   10559   echo "$as_me: failed program was:" >&5
   10560 sed 's/^/| /' conftest.$ac_ext >&5
   10561 
   10562   ac_header_preproc=no
   10563 fi
   10564 
   10565 rm -f conftest.err conftest.$ac_ext
   10566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10567 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10568 
   10569 # So?  What about this header?

   10570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10571   yes:no: )
   10572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10576     ac_header_preproc=yes
   10577     ;;
   10578   no:yes:* )
   10579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10591     ( cat <<\_ASBOX
   10592 ## ----------------------------------- ##

   10593 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   10594 ## ----------------------------------- ##

   10595 _ASBOX
   10596      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10597     ;;
   10598 esac
   10599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10602   echo $ECHO_N "(cached) $ECHO_C" >&6
   10603 else
   10604   eval "$as_ac_Header=\$ac_header_preproc"
   10605 fi
   10606 ac_res=`eval echo '${'$as_ac_Header'}'`
   10607 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10608 echo "${ECHO_T}$ac_res" >&6; }
   10609 
   10610 fi
   10611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10612   cat >>confdefs.h <<_ACEOF
   10613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   10614 _ACEOF
   10615 
   10616 fi
   10617 
   10618 done
   10619 
   10620 
   10621 
   10622 
   10623 
   10624 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   10625 do
   10626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10628   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10631   echo $ECHO_N "(cached) $ECHO_C" >&6
   10632 fi
   10633 ac_res=`eval echo '${'$as_ac_Header'}'`
   10634 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10635 echo "${ECHO_T}$ac_res" >&6; }
   10636 else
   10637   # Is the header compilable?

   10638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10640 cat >conftest.$ac_ext <<_ACEOF
   10641 /* confdefs.h.  */
   10642 _ACEOF
   10643 cat confdefs.h >>conftest.$ac_ext
   10644 cat >>conftest.$ac_ext <<_ACEOF
   10645 /* end confdefs.h.  */
   10646 $ac_includes_default
   10647 #include <$ac_header>

   10648 _ACEOF
   10649 rm -f conftest.$ac_objext
   10650 if { (ac_try="$ac_compile"
   10651 case "(($ac_try" in
   10652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10653   *) ac_try_echo=$ac_try;;
   10654 esac
   10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10656   (eval "$ac_compile") 2>conftest.er1
   10657   ac_status=$?
   10658   grep -v '^ *+' conftest.er1 >conftest.err
   10659   rm -f conftest.er1
   10660   cat conftest.err >&5
   10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10662   (exit $ac_status); } && {
   10663 	 test -z "$ac_c_werror_flag" ||
   10664 	 test ! -s conftest.err
   10665        } && test -s conftest.$ac_objext; then
   10666   ac_header_compiler=yes
   10667 else
   10668   echo "$as_me: failed program was:" >&5
   10669 sed 's/^/| /' conftest.$ac_ext >&5
   10670 
   10671 	ac_header_compiler=no
   10672 fi
   10673 
   10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10676 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10677 
   10678 # Is the header present?

   10679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10681 cat >conftest.$ac_ext <<_ACEOF
   10682 /* confdefs.h.  */
   10683 _ACEOF
   10684 cat confdefs.h >>conftest.$ac_ext
   10685 cat >>conftest.$ac_ext <<_ACEOF
   10686 /* end confdefs.h.  */
   10687 #include <$ac_header>

   10688 _ACEOF
   10689 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10690 case "(($ac_try" in
   10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10692   *) ac_try_echo=$ac_try;;
   10693 esac
   10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10696   ac_status=$?
   10697   grep -v '^ *+' conftest.er1 >conftest.err
   10698   rm -f conftest.er1
   10699   cat conftest.err >&5
   10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10701   (exit $ac_status); } >/dev/null && {
   10702 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10703 	 test ! -s conftest.err
   10704        }; then
   10705   ac_header_preproc=yes
   10706 else
   10707   echo "$as_me: failed program was:" >&5
   10708 sed 's/^/| /' conftest.$ac_ext >&5
   10709 
   10710   ac_header_preproc=no
   10711 fi
   10712 
   10713 rm -f conftest.err conftest.$ac_ext
   10714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10715 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10716 
   10717 # So?  What about this header?

   10718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10719   yes:no: )
   10720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10724     ac_header_preproc=yes
   10725     ;;
   10726   no:yes:* )
   10727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10739     ( cat <<\_ASBOX
   10740 ## ----------------------------------- ##

   10741 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   10742 ## ----------------------------------- ##

   10743 _ASBOX
   10744      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10745     ;;
   10746 esac
   10747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10750   echo $ECHO_N "(cached) $ECHO_C" >&6
   10751 else
   10752   eval "$as_ac_Header=\$ac_header_preproc"
   10753 fi
   10754 ac_res=`eval echo '${'$as_ac_Header'}'`
   10755 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10756 echo "${ECHO_T}$ac_res" >&6; }
   10757 
   10758 fi
   10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10760   cat >>confdefs.h <<_ACEOF
   10761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   10762 _ACEOF
   10763 
   10764 fi
   10765 
   10766 done
   10767 
   10768 
   10769 
   10770 for ac_header in string.h strings.h
   10771 do
   10772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10777   echo $ECHO_N "(cached) $ECHO_C" >&6
   10778 fi
   10779 ac_res=`eval echo '${'$as_ac_Header'}'`
   10780 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10781 echo "${ECHO_T}$ac_res" >&6; }
   10782 else
   10783   # Is the header compilable?

   10784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10786 cat >conftest.$ac_ext <<_ACEOF
   10787 /* confdefs.h.  */
   10788 _ACEOF
   10789 cat confdefs.h >>conftest.$ac_ext
   10790 cat >>conftest.$ac_ext <<_ACEOF
   10791 /* end confdefs.h.  */
   10792 $ac_includes_default
   10793 #include <$ac_header>

   10794 _ACEOF
   10795 rm -f conftest.$ac_objext
   10796 if { (ac_try="$ac_compile"
   10797 case "(($ac_try" in
   10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10799   *) ac_try_echo=$ac_try;;
   10800 esac
   10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10802   (eval "$ac_compile") 2>conftest.er1
   10803   ac_status=$?
   10804   grep -v '^ *+' conftest.er1 >conftest.err
   10805   rm -f conftest.er1
   10806   cat conftest.err >&5
   10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10808   (exit $ac_status); } && {
   10809 	 test -z "$ac_c_werror_flag" ||
   10810 	 test ! -s conftest.err
   10811        } && test -s conftest.$ac_objext; then
   10812   ac_header_compiler=yes
   10813 else
   10814   echo "$as_me: failed program was:" >&5
   10815 sed 's/^/| /' conftest.$ac_ext >&5
   10816 
   10817 	ac_header_compiler=no
   10818 fi
   10819 
   10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10822 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10823 
   10824 # Is the header present?

   10825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10827 cat >conftest.$ac_ext <<_ACEOF
   10828 /* confdefs.h.  */
   10829 _ACEOF
   10830 cat confdefs.h >>conftest.$ac_ext
   10831 cat >>conftest.$ac_ext <<_ACEOF
   10832 /* end confdefs.h.  */
   10833 #include <$ac_header>

   10834 _ACEOF
   10835 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10836 case "(($ac_try" in
   10837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10838   *) ac_try_echo=$ac_try;;
   10839 esac
   10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10842   ac_status=$?
   10843   grep -v '^ *+' conftest.er1 >conftest.err
   10844   rm -f conftest.er1
   10845   cat conftest.err >&5
   10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10847   (exit $ac_status); } >/dev/null && {
   10848 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10849 	 test ! -s conftest.err
   10850        }; then
   10851   ac_header_preproc=yes
   10852 else
   10853   echo "$as_me: failed program was:" >&5
   10854 sed 's/^/| /' conftest.$ac_ext >&5
   10855 
   10856   ac_header_preproc=no
   10857 fi
   10858 
   10859 rm -f conftest.err conftest.$ac_ext
   10860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10861 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10862 
   10863 # So?  What about this header?

   10864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10865   yes:no: )
   10866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10870     ac_header_preproc=yes
   10871     ;;
   10872   no:yes:* )
   10873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10885     ( cat <<\_ASBOX
   10886 ## ----------------------------------- ##

   10887 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   10888 ## ----------------------------------- ##

   10889 _ASBOX
   10890      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10891     ;;
   10892 esac
   10893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10896   echo $ECHO_N "(cached) $ECHO_C" >&6
   10897 else
   10898   eval "$as_ac_Header=\$ac_header_preproc"
   10899 fi
   10900 ac_res=`eval echo '${'$as_ac_Header'}'`
   10901 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10902 echo "${ECHO_T}$ac_res" >&6; }
   10903 
   10904 fi
   10905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10906   cat >>confdefs.h <<_ACEOF
   10907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   10908 _ACEOF
   10909  break
   10910 fi
   10911 
   10912 done
   10913 
   10914 
   10915 
   10916 
   10917 for ac_func in strchr index
   10918 do
   10919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10923   echo $ECHO_N "(cached) $ECHO_C" >&6
   10924 else
   10925   cat >conftest.$ac_ext <<_ACEOF
   10926 /* confdefs.h.  */
   10927 _ACEOF
   10928 cat confdefs.h >>conftest.$ac_ext
   10929 cat >>conftest.$ac_ext <<_ACEOF
   10930 /* end confdefs.h.  */
   10931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10933 #define $ac_func innocuous_$ac_func

   10934 
   10935 /* System header to define __stub macros and hopefully few prototypes,
   10936     which can conflict with char $ac_func (); below.
   10937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10938     <limits.h> exists even on freestanding compilers.  */
   10939 
   10940 #ifdef __STDC__

   10941 # include <limits.h>

   10942 #else

   10943 # include <assert.h>

   10944 #endif

   10945 
   10946 #undef $ac_func

   10947 
   10948 /* Override any GCC internal prototype to avoid an error.
   10949    Use char because int might match the return type of a GCC
   10950    builtin and then its argument prototype would still apply.  */
   10951 #ifdef __cplusplus

   10952 extern "C"
   10953 #endif

   10954 char $ac_func ();
   10955 /* The GNU C library defines this for functions which it implements
   10956     to always fail with ENOSYS.  Some functions are actually named
   10957     something starting with __ and the normal name is an alias.  */
   10958 #if defined __stub_$ac_func || defined __stub___$ac_func

   10959 choke me
   10960 #endif

   10961 
   10962 int
   10963 main ()
   10964 {
   10965 return $ac_func ();
   10966   ;
   10967   return 0;
   10968 }
   10969 _ACEOF
   10970 rm -f conftest.$ac_objext conftest$ac_exeext
   10971 if { (ac_try="$ac_link"
   10972 case "(($ac_try" in
   10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10974   *) ac_try_echo=$ac_try;;
   10975 esac
   10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10977   (eval "$ac_link") 2>conftest.er1
   10978   ac_status=$?
   10979   grep -v '^ *+' conftest.er1 >conftest.err
   10980   rm -f conftest.er1
   10981   cat conftest.err >&5
   10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10983   (exit $ac_status); } && {
   10984 	 test -z "$ac_c_werror_flag" ||
   10985 	 test ! -s conftest.err
   10986        } && test -s conftest$ac_exeext &&
   10987        $as_test_x conftest$ac_exeext; then
   10988   eval "$as_ac_var=yes"
   10989 else
   10990   echo "$as_me: failed program was:" >&5
   10991 sed 's/^/| /' conftest.$ac_ext >&5
   10992 
   10993 	eval "$as_ac_var=no"
   10994 fi
   10995 
   10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10997       conftest$ac_exeext conftest.$ac_ext
   10998 fi
   10999 ac_res=`eval echo '${'$as_ac_var'}'`
   11000 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11001 echo "${ECHO_T}$ac_res" >&6; }
   11002 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11003   cat >>confdefs.h <<_ACEOF
   11004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   11005 _ACEOF
   11006  break
   11007 fi
   11008 done
   11009 
   11010 
   11011 
   11012 for ac_func in strrchr rindex
   11013 do
   11014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11018   echo $ECHO_N "(cached) $ECHO_C" >&6
   11019 else
   11020   cat >conftest.$ac_ext <<_ACEOF
   11021 /* confdefs.h.  */
   11022 _ACEOF
   11023 cat confdefs.h >>conftest.$ac_ext
   11024 cat >>conftest.$ac_ext <<_ACEOF
   11025 /* end confdefs.h.  */
   11026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11028 #define $ac_func innocuous_$ac_func

   11029 
   11030 /* System header to define __stub macros and hopefully few prototypes,
   11031     which can conflict with char $ac_func (); below.
   11032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11033     <limits.h> exists even on freestanding compilers.  */
   11034 
   11035 #ifdef __STDC__

   11036 # include <limits.h>

   11037 #else

   11038 # include <assert.h>

   11039 #endif

   11040 
   11041 #undef $ac_func

   11042 
   11043 /* Override any GCC internal prototype to avoid an error.
   11044    Use char because int might match the return type of a GCC
   11045    builtin and then its argument prototype would still apply.  */
   11046 #ifdef __cplusplus

   11047 extern "C"
   11048 #endif

   11049 char $ac_func ();
   11050 /* The GNU C library defines this for functions which it implements
   11051     to always fail with ENOSYS.  Some functions are actually named
   11052     something starting with __ and the normal name is an alias.  */
   11053 #if defined __stub_$ac_func || defined __stub___$ac_func

   11054 choke me
   11055 #endif

   11056 
   11057 int
   11058 main ()
   11059 {
   11060 return $ac_func ();
   11061   ;
   11062   return 0;
   11063 }
   11064 _ACEOF
   11065 rm -f conftest.$ac_objext conftest$ac_exeext
   11066 if { (ac_try="$ac_link"
   11067 case "(($ac_try" in
   11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11069   *) ac_try_echo=$ac_try;;
   11070 esac
   11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11072   (eval "$ac_link") 2>conftest.er1
   11073   ac_status=$?
   11074   grep -v '^ *+' conftest.er1 >conftest.err
   11075   rm -f conftest.er1
   11076   cat conftest.err >&5
   11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11078   (exit $ac_status); } && {
   11079 	 test -z "$ac_c_werror_flag" ||
   11080 	 test ! -s conftest.err
   11081        } && test -s conftest$ac_exeext &&
   11082        $as_test_x conftest$ac_exeext; then
   11083   eval "$as_ac_var=yes"
   11084 else
   11085   echo "$as_me: failed program was:" >&5
   11086 sed 's/^/| /' conftest.$ac_ext >&5
   11087 
   11088 	eval "$as_ac_var=no"
   11089 fi
   11090 
   11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11092       conftest$ac_exeext conftest.$ac_ext
   11093 fi
   11094 ac_res=`eval echo '${'$as_ac_var'}'`
   11095 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11096 echo "${ECHO_T}$ac_res" >&6; }
   11097 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11098   cat >>confdefs.h <<_ACEOF
   11099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   11100 _ACEOF
   11101  break
   11102 fi
   11103 done
   11104 
   11105 
   11106 
   11107 for ac_func in memcpy bcopy
   11108 do
   11109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11113   echo $ECHO_N "(cached) $ECHO_C" >&6
   11114 else
   11115   cat >conftest.$ac_ext <<_ACEOF
   11116 /* confdefs.h.  */
   11117 _ACEOF
   11118 cat confdefs.h >>conftest.$ac_ext
   11119 cat >>conftest.$ac_ext <<_ACEOF
   11120 /* end confdefs.h.  */
   11121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11123 #define $ac_func innocuous_$ac_func

   11124 
   11125 /* System header to define __stub macros and hopefully few prototypes,
   11126     which can conflict with char $ac_func (); below.
   11127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11128     <limits.h> exists even on freestanding compilers.  */
   11129 
   11130 #ifdef __STDC__

   11131 # include <limits.h>

   11132 #else

   11133 # include <assert.h>

   11134 #endif

   11135 
   11136 #undef $ac_func

   11137 
   11138 /* Override any GCC internal prototype to avoid an error.
   11139    Use char because int might match the return type of a GCC
   11140    builtin and then its argument prototype would still apply.  */
   11141 #ifdef __cplusplus

   11142 extern "C"
   11143 #endif

   11144 char $ac_func ();
   11145 /* The GNU C library defines this for functions which it implements
   11146     to always fail with ENOSYS.  Some functions are actually named
   11147     something starting with __ and the normal name is an alias.  */
   11148 #if defined __stub_$ac_func || defined __stub___$ac_func

   11149 choke me
   11150 #endif

   11151 
   11152 int
   11153 main ()
   11154 {
   11155 return $ac_func ();
   11156   ;
   11157   return 0;
   11158 }
   11159 _ACEOF
   11160 rm -f conftest.$ac_objext conftest$ac_exeext
   11161 if { (ac_try="$ac_link"
   11162 case "(($ac_try" in
   11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11164   *) ac_try_echo=$ac_try;;
   11165 esac
   11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11167   (eval "$ac_link") 2>conftest.er1
   11168   ac_status=$?
   11169   grep -v '^ *+' conftest.er1 >conftest.err
   11170   rm -f conftest.er1
   11171   cat conftest.err >&5
   11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11173   (exit $ac_status); } && {
   11174 	 test -z "$ac_c_werror_flag" ||
   11175 	 test ! -s conftest.err
   11176        } && test -s conftest$ac_exeext &&
   11177        $as_test_x conftest$ac_exeext; then
   11178   eval "$as_ac_var=yes"
   11179 else
   11180   echo "$as_me: failed program was:" >&5
   11181 sed 's/^/| /' conftest.$ac_ext >&5
   11182 
   11183 	eval "$as_ac_var=no"
   11184 fi
   11185 
   11186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11187       conftest$ac_exeext conftest.$ac_ext
   11188 fi
   11189 ac_res=`eval echo '${'$as_ac_var'}'`
   11190 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11191 echo "${ECHO_T}$ac_res" >&6; }
   11192 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11193   cat >>confdefs.h <<_ACEOF
   11194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   11195 _ACEOF
   11196  break
   11197 fi
   11198 done
   11199 
   11200 
   11201 
   11202 for ac_func in memmove strcmp
   11203 do
   11204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11208   echo $ECHO_N "(cached) $ECHO_C" >&6
   11209 else
   11210   cat >conftest.$ac_ext <<_ACEOF
   11211 /* confdefs.h.  */
   11212 _ACEOF
   11213 cat confdefs.h >>conftest.$ac_ext
   11214 cat >>conftest.$ac_ext <<_ACEOF
   11215 /* end confdefs.h.  */
   11216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11218 #define $ac_func innocuous_$ac_func

   11219 
   11220 /* System header to define __stub macros and hopefully few prototypes,
   11221     which can conflict with char $ac_func (); below.
   11222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11223     <limits.h> exists even on freestanding compilers.  */
   11224 
   11225 #ifdef __STDC__

   11226 # include <limits.h>

   11227 #else

   11228 # include <assert.h>

   11229 #endif

   11230 
   11231 #undef $ac_func

   11232 
   11233 /* Override any GCC internal prototype to avoid an error.
   11234    Use char because int might match the return type of a GCC
   11235    builtin and then its argument prototype would still apply.  */
   11236 #ifdef __cplusplus

   11237 extern "C"
   11238 #endif

   11239 char $ac_func ();
   11240 /* The GNU C library defines this for functions which it implements
   11241     to always fail with ENOSYS.  Some functions are actually named
   11242     something starting with __ and the normal name is an alias.  */
   11243 #if defined __stub_$ac_func || defined __stub___$ac_func

   11244 choke me
   11245 #endif

   11246 
   11247 int
   11248 main ()
   11249 {
   11250 return $ac_func ();
   11251   ;
   11252   return 0;
   11253 }
   11254 _ACEOF
   11255 rm -f conftest.$ac_objext conftest$ac_exeext
   11256 if { (ac_try="$ac_link"
   11257 case "(($ac_try" in
   11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11259   *) ac_try_echo=$ac_try;;
   11260 esac
   11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11262   (eval "$ac_link") 2>conftest.er1
   11263   ac_status=$?
   11264   grep -v '^ *+' conftest.er1 >conftest.err
   11265   rm -f conftest.er1
   11266   cat conftest.err >&5
   11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11268   (exit $ac_status); } && {
   11269 	 test -z "$ac_c_werror_flag" ||
   11270 	 test ! -s conftest.err
   11271        } && test -s conftest$ac_exeext &&
   11272        $as_test_x conftest$ac_exeext; then
   11273   eval "$as_ac_var=yes"
   11274 else
   11275   echo "$as_me: failed program was:" >&5
   11276 sed 's/^/| /' conftest.$ac_ext >&5
   11277 
   11278 	eval "$as_ac_var=no"
   11279 fi
   11280 
   11281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11282       conftest$ac_exeext conftest.$ac_ext
   11283 fi
   11284 ac_res=`eval echo '${'$as_ac_var'}'`
   11285 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11286 echo "${ECHO_T}$ac_res" >&6; }
   11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11288   cat >>confdefs.h <<_ACEOF
   11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   11290 _ACEOF
   11291 
   11292 fi
   11293 done
   11294 
   11295 
   11296 
   11297 
   11298 for ac_func in closedir opendir readdir
   11299 do
   11300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11304   echo $ECHO_N "(cached) $ECHO_C" >&6
   11305 else
   11306   cat >conftest.$ac_ext <<_ACEOF
   11307 /* confdefs.h.  */
   11308 _ACEOF
   11309 cat confdefs.h >>conftest.$ac_ext
   11310 cat >>conftest.$ac_ext <<_ACEOF
   11311 /* end confdefs.h.  */
   11312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11314 #define $ac_func innocuous_$ac_func

   11315 
   11316 /* System header to define __stub macros and hopefully few prototypes,
   11317     which can conflict with char $ac_func (); below.
   11318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11319     <limits.h> exists even on freestanding compilers.  */
   11320 
   11321 #ifdef __STDC__

   11322 # include <limits.h>

   11323 #else

   11324 # include <assert.h>

   11325 #endif

   11326 
   11327 #undef $ac_func

   11328 
   11329 /* Override any GCC internal prototype to avoid an error.
   11330    Use char because int might match the return type of a GCC
   11331    builtin and then its argument prototype would still apply.  */
   11332 #ifdef __cplusplus

   11333 extern "C"
   11334 #endif

   11335 char $ac_func ();
   11336 /* The GNU C library defines this for functions which it implements
   11337     to always fail with ENOSYS.  Some functions are actually named
   11338     something starting with __ and the normal name is an alias.  */
   11339 #if defined __stub_$ac_func || defined __stub___$ac_func

   11340 choke me
   11341 #endif

   11342 
   11343 int
   11344 main ()
   11345 {
   11346 return $ac_func ();
   11347   ;
   11348   return 0;
   11349 }
   11350 _ACEOF
   11351 rm -f conftest.$ac_objext conftest$ac_exeext
   11352 if { (ac_try="$ac_link"
   11353 case "(($ac_try" in
   11354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11355   *) ac_try_echo=$ac_try;;
   11356 esac
   11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11358   (eval "$ac_link") 2>conftest.er1
   11359   ac_status=$?
   11360   grep -v '^ *+' conftest.er1 >conftest.err
   11361   rm -f conftest.er1
   11362   cat conftest.err >&5
   11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11364   (exit $ac_status); } && {
   11365 	 test -z "$ac_c_werror_flag" ||
   11366 	 test ! -s conftest.err
   11367        } && test -s conftest$ac_exeext &&
   11368        $as_test_x conftest$ac_exeext; then
   11369   eval "$as_ac_var=yes"
   11370 else
   11371   echo "$as_me: failed program was:" >&5
   11372 sed 's/^/| /' conftest.$ac_ext >&5
   11373 
   11374 	eval "$as_ac_var=no"
   11375 fi
   11376 
   11377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11378       conftest$ac_exeext conftest.$ac_ext
   11379 fi
   11380 ac_res=`eval echo '${'$as_ac_var'}'`
   11381 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11382 echo "${ECHO_T}$ac_res" >&6; }
   11383 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11384   cat >>confdefs.h <<_ACEOF
   11385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   11386 _ACEOF
   11387 
   11388 fi
   11389 done
   11390 
   11391 
   11392 
   11393 { echo "$as_me:$LINENO: checking tool compatibility" >&5
   11394 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
   11395 
   11396 ICC=no
   11397 IXX=no
   11398 case $CC in
   11399   icc*|icpc*)
   11400     ICC=yes
   11401     IXX=yes
   11402     ;;
   11403    *)
   11404     ;;
   11405 esac
   11406 
   11407 if test "$GCC" != "yes" && test "$ICC" != "yes"
   11408 then
   11409   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
   11410 echo "$as_me: error: gcc|icc required but not found" >&2;}
   11411    { (exit 1); exit 1; }; }
   11412 fi
   11413 
   11414 if test "$GXX" != "yes" && test "$IXX" != "yes"
   11415 then
   11416   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
   11417 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
   11418    { (exit 1); exit 1; }; }
   11419 fi
   11420 
   11421 if test "$GCC" = "yes"
   11422 then
   11423   cat >conftest.$ac_ext <<_ACEOF
   11424 #if !defined(__GNUC__) || __GNUC__ < 3

   11425 #error Unsupported GCC version

   11426 #endif

   11427 
   11428 _ACEOF
   11429 rm -f conftest.$ac_objext
   11430 if { (ac_try="$ac_compile"
   11431 case "(($ac_try" in
   11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11433   *) ac_try_echo=$ac_try;;
   11434 esac
   11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11436   (eval "$ac_compile") 2>conftest.er1
   11437   ac_status=$?
   11438   grep -v '^ *+' conftest.er1 >conftest.err
   11439   rm -f conftest.er1
   11440   cat conftest.err >&5
   11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11442   (exit $ac_status); } && {
   11443 	 test -z "$ac_c_werror_flag" ||
   11444 	 test ! -s conftest.err
   11445        } && test -s conftest.$ac_objext; then
   11446   :
   11447 else
   11448   echo "$as_me: failed program was:" >&5
   11449 sed 's/^/| /' conftest.$ac_ext >&5
   11450 
   11451 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
   11452 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
   11453    { (exit 1); exit 1; }; }
   11454 fi
   11455 
   11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11457 fi
   11458 
   11459 if test -z "$llvm_cv_gnu_make_command"
   11460 then
   11461   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
   11462 echo "$as_me: error: GNU Make required but not found" >&2;}
   11463    { (exit 1); exit 1; }; }
   11464 fi
   11465 
   11466 { echo "$as_me:$LINENO: result: ok" >&5
   11467 echo "${ECHO_T}ok" >&6; }
   11468 
   11469 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
   11470 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
   11471 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
   11472 
   11473 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
   11474 
   11475 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
   11476 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
   11477 
   11478 
   11479 
   11480 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
   11481 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
   11482 if test "${ac_cv_lib_m_sin+set}" = set; then
   11483   echo $ECHO_N "(cached) $ECHO_C" >&6
   11484 else
   11485   ac_check_lib_save_LIBS=$LIBS
   11486 LIBS="-lm  $LIBS"
   11487 cat >conftest.$ac_ext <<_ACEOF
   11488 /* confdefs.h.  */
   11489 _ACEOF
   11490 cat confdefs.h >>conftest.$ac_ext
   11491 cat >>conftest.$ac_ext <<_ACEOF
   11492 /* end confdefs.h.  */
   11493 
   11494 /* Override any GCC internal prototype to avoid an error.
   11495    Use char because int might match the return type of a GCC
   11496    builtin and then its argument prototype would still apply.  */
   11497 #ifdef __cplusplus

   11498 extern "C"
   11499 #endif

   11500 char sin ();
   11501 int
   11502 main ()
   11503 {
   11504 return sin ();
   11505   ;
   11506   return 0;
   11507 }
   11508 _ACEOF
   11509 rm -f conftest.$ac_objext conftest$ac_exeext
   11510 if { (ac_try="$ac_link"
   11511 case "(($ac_try" in
   11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11513   *) ac_try_echo=$ac_try;;
   11514 esac
   11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11516   (eval "$ac_link") 2>conftest.er1
   11517   ac_status=$?
   11518   grep -v '^ *+' conftest.er1 >conftest.err
   11519   rm -f conftest.er1
   11520   cat conftest.err >&5
   11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11522   (exit $ac_status); } && {
   11523 	 test -z "$ac_c_werror_flag" ||
   11524 	 test ! -s conftest.err
   11525        } && test -s conftest$ac_exeext &&
   11526        $as_test_x conftest$ac_exeext; then
   11527   ac_cv_lib_m_sin=yes
   11528 else
   11529   echo "$as_me: failed program was:" >&5
   11530 sed 's/^/| /' conftest.$ac_ext >&5
   11531 
   11532 	ac_cv_lib_m_sin=no
   11533 fi
   11534 
   11535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11536       conftest$ac_exeext conftest.$ac_ext
   11537 LIBS=$ac_check_lib_save_LIBS
   11538 fi
   11539 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   11540 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
   11541 if test $ac_cv_lib_m_sin = yes; then
   11542   cat >>confdefs.h <<_ACEOF
   11543 #define HAVE_LIBM 1

   11544 _ACEOF
   11545 
   11546   LIBS="-lm $LIBS"
   11547 
   11548 fi
   11549 
   11550 if test "$llvm_cv_os_type" = "MingW" ; then
   11551 
   11552 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
   11553 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
   11554 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
   11555   echo $ECHO_N "(cached) $ECHO_C" >&6
   11556 else
   11557   ac_check_lib_save_LIBS=$LIBS
   11558 LIBS="-limagehlp  $LIBS"
   11559 cat >conftest.$ac_ext <<_ACEOF
   11560 /* confdefs.h.  */
   11561 _ACEOF
   11562 cat confdefs.h >>conftest.$ac_ext
   11563 cat >>conftest.$ac_ext <<_ACEOF
   11564 /* end confdefs.h.  */
   11565 
   11566 
   11567 int
   11568 main ()
   11569 {
   11570 return main ();
   11571   ;
   11572   return 0;
   11573 }
   11574 _ACEOF
   11575 rm -f conftest.$ac_objext conftest$ac_exeext
   11576 if { (ac_try="$ac_link"
   11577 case "(($ac_try" in
   11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11579   *) ac_try_echo=$ac_try;;
   11580 esac
   11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11582   (eval "$ac_link") 2>conftest.er1
   11583   ac_status=$?
   11584   grep -v '^ *+' conftest.er1 >conftest.err
   11585   rm -f conftest.er1
   11586   cat conftest.err >&5
   11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11588   (exit $ac_status); } && {
   11589 	 test -z "$ac_c_werror_flag" ||
   11590 	 test ! -s conftest.err
   11591        } && test -s conftest$ac_exeext &&
   11592        $as_test_x conftest$ac_exeext; then
   11593   ac_cv_lib_imagehlp_main=yes
   11594 else
   11595   echo "$as_me: failed program was:" >&5
   11596 sed 's/^/| /' conftest.$ac_ext >&5
   11597 
   11598 	ac_cv_lib_imagehlp_main=no
   11599 fi
   11600 
   11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11602       conftest$ac_exeext conftest.$ac_ext
   11603 LIBS=$ac_check_lib_save_LIBS
   11604 fi
   11605 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
   11606 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
   11607 if test $ac_cv_lib_imagehlp_main = yes; then
   11608   cat >>confdefs.h <<_ACEOF
   11609 #define HAVE_LIBIMAGEHLP 1

   11610 _ACEOF
   11611 
   11612   LIBS="-limagehlp $LIBS"
   11613 
   11614 fi
   11615 
   11616 
   11617 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
   11618 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
   11619 if test "${ac_cv_lib_psapi_main+set}" = set; then
   11620   echo $ECHO_N "(cached) $ECHO_C" >&6
   11621 else
   11622   ac_check_lib_save_LIBS=$LIBS
   11623 LIBS="-lpsapi  $LIBS"
   11624 cat >conftest.$ac_ext <<_ACEOF
   11625 /* confdefs.h.  */
   11626 _ACEOF
   11627 cat confdefs.h >>conftest.$ac_ext
   11628 cat >>conftest.$ac_ext <<_ACEOF
   11629 /* end confdefs.h.  */
   11630 
   11631 
   11632 int
   11633 main ()
   11634 {
   11635 return main ();
   11636   ;
   11637   return 0;
   11638 }
   11639 _ACEOF
   11640 rm -f conftest.$ac_objext conftest$ac_exeext
   11641 if { (ac_try="$ac_link"
   11642 case "(($ac_try" in
   11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11644   *) ac_try_echo=$ac_try;;
   11645 esac
   11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11647   (eval "$ac_link") 2>conftest.er1
   11648   ac_status=$?
   11649   grep -v '^ *+' conftest.er1 >conftest.err
   11650   rm -f conftest.er1
   11651   cat conftest.err >&5
   11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11653   (exit $ac_status); } && {
   11654 	 test -z "$ac_c_werror_flag" ||
   11655 	 test ! -s conftest.err
   11656        } && test -s conftest$ac_exeext &&
   11657        $as_test_x conftest$ac_exeext; then
   11658   ac_cv_lib_psapi_main=yes
   11659 else
   11660   echo "$as_me: failed program was:" >&5
   11661 sed 's/^/| /' conftest.$ac_ext >&5
   11662 
   11663 	ac_cv_lib_psapi_main=no
   11664 fi
   11665 
   11666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11667       conftest$ac_exeext conftest.$ac_ext
   11668 LIBS=$ac_check_lib_save_LIBS
   11669 fi
   11670 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
   11671 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
   11672 if test $ac_cv_lib_psapi_main = yes; then
   11673   cat >>confdefs.h <<_ACEOF
   11674 #define HAVE_LIBPSAPI 1

   11675 _ACEOF
   11676 
   11677   LIBS="-lpsapi $LIBS"
   11678 
   11679 fi
   11680 
   11681 fi
   11682 
   11683 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
   11684 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
   11685 if test "${ac_cv_search_dlopen+set}" = set; then
   11686   echo $ECHO_N "(cached) $ECHO_C" >&6
   11687 else
   11688   ac_func_search_save_LIBS=$LIBS
   11689 cat >conftest.$ac_ext <<_ACEOF
   11690 /* confdefs.h.  */
   11691 _ACEOF
   11692 cat confdefs.h >>conftest.$ac_ext
   11693 cat >>conftest.$ac_ext <<_ACEOF
   11694 /* end confdefs.h.  */
   11695 
   11696 /* Override any GCC internal prototype to avoid an error.
   11697    Use char because int might match the return type of a GCC
   11698    builtin and then its argument prototype would still apply.  */
   11699 #ifdef __cplusplus

   11700 extern "C"
   11701 #endif

   11702 char dlopen ();
   11703 int
   11704 main ()
   11705 {
   11706 return dlopen ();
   11707   ;
   11708   return 0;
   11709 }
   11710 _ACEOF
   11711 for ac_lib in '' dl; do
   11712   if test -z "$ac_lib"; then
   11713     ac_res="none required"
   11714   else
   11715     ac_res=-l$ac_lib
   11716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11717   fi
   11718   rm -f conftest.$ac_objext conftest$ac_exeext
   11719 if { (ac_try="$ac_link"
   11720 case "(($ac_try" in
   11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11722   *) ac_try_echo=$ac_try;;
   11723 esac
   11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11725   (eval "$ac_link") 2>conftest.er1
   11726   ac_status=$?
   11727   grep -v '^ *+' conftest.er1 >conftest.err
   11728   rm -f conftest.er1
   11729   cat conftest.err >&5
   11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11731   (exit $ac_status); } && {
   11732 	 test -z "$ac_c_werror_flag" ||
   11733 	 test ! -s conftest.err
   11734        } && test -s conftest$ac_exeext &&
   11735        $as_test_x conftest$ac_exeext; then
   11736   ac_cv_search_dlopen=$ac_res
   11737 else
   11738   echo "$as_me: failed program was:" >&5
   11739 sed 's/^/| /' conftest.$ac_ext >&5
   11740 
   11741 
   11742 fi
   11743 
   11744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11745       conftest$ac_exeext
   11746   if test "${ac_cv_search_dlopen+set}" = set; then
   11747   break
   11748 fi
   11749 done
   11750 if test "${ac_cv_search_dlopen+set}" = set; then
   11751   :
   11752 else
   11753   ac_cv_search_dlopen=no
   11754 fi
   11755 rm conftest.$ac_ext
   11756 LIBS=$ac_func_search_save_LIBS
   11757 fi
   11758 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
   11759 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
   11760 ac_res=$ac_cv_search_dlopen
   11761 if test "$ac_res" != no; then
   11762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11763 
   11764 cat >>confdefs.h <<\_ACEOF
   11765 #define HAVE_DLOPEN 1

   11766 _ACEOF
   11767 
   11768 else
   11769   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
   11770 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
   11771 fi
   11772 
   11773 
   11774 if test "$llvm_cv_enable_libffi" = "yes" ; then
   11775   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
   11776 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
   11777 if test "${ac_cv_search_ffi_call+set}" = set; then
   11778   echo $ECHO_N "(cached) $ECHO_C" >&6
   11779 else
   11780   ac_func_search_save_LIBS=$LIBS
   11781 cat >conftest.$ac_ext <<_ACEOF
   11782 /* confdefs.h.  */
   11783 _ACEOF
   11784 cat confdefs.h >>conftest.$ac_ext
   11785 cat >>conftest.$ac_ext <<_ACEOF
   11786 /* end confdefs.h.  */
   11787 
   11788 /* Override any GCC internal prototype to avoid an error.
   11789    Use char because int might match the return type of a GCC
   11790    builtin and then its argument prototype would still apply.  */
   11791 #ifdef __cplusplus

   11792 extern "C"
   11793 #endif

   11794 char ffi_call ();
   11795 int
   11796 main ()
   11797 {
   11798 return ffi_call ();
   11799   ;
   11800   return 0;
   11801 }
   11802 _ACEOF
   11803 for ac_lib in '' ffi; do
   11804   if test -z "$ac_lib"; then
   11805     ac_res="none required"
   11806   else
   11807     ac_res=-l$ac_lib
   11808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11809   fi
   11810   rm -f conftest.$ac_objext conftest$ac_exeext
   11811 if { (ac_try="$ac_link"
   11812 case "(($ac_try" in
   11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11814   *) ac_try_echo=$ac_try;;
   11815 esac
   11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11817   (eval "$ac_link") 2>conftest.er1
   11818   ac_status=$?
   11819   grep -v '^ *+' conftest.er1 >conftest.err
   11820   rm -f conftest.er1
   11821   cat conftest.err >&5
   11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11823   (exit $ac_status); } && {
   11824 	 test -z "$ac_c_werror_flag" ||
   11825 	 test ! -s conftest.err
   11826        } && test -s conftest$ac_exeext &&
   11827        $as_test_x conftest$ac_exeext; then
   11828   ac_cv_search_ffi_call=$ac_res
   11829 else
   11830   echo "$as_me: failed program was:" >&5
   11831 sed 's/^/| /' conftest.$ac_ext >&5
   11832 
   11833 
   11834 fi
   11835 
   11836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11837       conftest$ac_exeext
   11838   if test "${ac_cv_search_ffi_call+set}" = set; then
   11839   break
   11840 fi
   11841 done
   11842 if test "${ac_cv_search_ffi_call+set}" = set; then
   11843   :
   11844 else
   11845   ac_cv_search_ffi_call=no
   11846 fi
   11847 rm conftest.$ac_ext
   11848 LIBS=$ac_func_search_save_LIBS
   11849 fi
   11850 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
   11851 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
   11852 ac_res=$ac_cv_search_ffi_call
   11853 if test "$ac_res" != no; then
   11854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11855 
   11856 cat >>confdefs.h <<\_ACEOF
   11857 #define HAVE_FFI_CALL 1

   11858 _ACEOF
   11859 
   11860 else
   11861   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
   11862 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
   11863    { (exit 1); exit 1; }; }
   11864 fi
   11865 
   11866 fi
   11867 
   11868 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
   11869 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
   11870 if test "${ac_cv_search_mallinfo+set}" = set; then
   11871   echo $ECHO_N "(cached) $ECHO_C" >&6
   11872 else
   11873   ac_func_search_save_LIBS=$LIBS
   11874 cat >conftest.$ac_ext <<_ACEOF
   11875 /* confdefs.h.  */
   11876 _ACEOF
   11877 cat confdefs.h >>conftest.$ac_ext
   11878 cat >>conftest.$ac_ext <<_ACEOF
   11879 /* end confdefs.h.  */
   11880 
   11881 /* Override any GCC internal prototype to avoid an error.
   11882    Use char because int might match the return type of a GCC
   11883    builtin and then its argument prototype would still apply.  */
   11884 #ifdef __cplusplus

   11885 extern "C"
   11886 #endif

   11887 char mallinfo ();
   11888 int
   11889 main ()
   11890 {
   11891 return mallinfo ();
   11892   ;
   11893   return 0;
   11894 }
   11895 _ACEOF
   11896 for ac_lib in '' malloc; do
   11897   if test -z "$ac_lib"; then
   11898     ac_res="none required"
   11899   else
   11900     ac_res=-l$ac_lib
   11901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11902   fi
   11903   rm -f conftest.$ac_objext conftest$ac_exeext
   11904 if { (ac_try="$ac_link"
   11905 case "(($ac_try" in
   11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11907   *) ac_try_echo=$ac_try;;
   11908 esac
   11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11910   (eval "$ac_link") 2>conftest.er1
   11911   ac_status=$?
   11912   grep -v '^ *+' conftest.er1 >conftest.err
   11913   rm -f conftest.er1
   11914   cat conftest.err >&5
   11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11916   (exit $ac_status); } && {
   11917 	 test -z "$ac_c_werror_flag" ||
   11918 	 test ! -s conftest.err
   11919        } && test -s conftest$ac_exeext &&
   11920        $as_test_x conftest$ac_exeext; then
   11921   ac_cv_search_mallinfo=$ac_res
   11922 else
   11923   echo "$as_me: failed program was:" >&5
   11924 sed 's/^/| /' conftest.$ac_ext >&5
   11925 
   11926 
   11927 fi
   11928 
   11929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11930       conftest$ac_exeext
   11931   if test "${ac_cv_search_mallinfo+set}" = set; then
   11932   break
   11933 fi
   11934 done
   11935 if test "${ac_cv_search_mallinfo+set}" = set; then
   11936   :
   11937 else
   11938   ac_cv_search_mallinfo=no
   11939 fi
   11940 rm conftest.$ac_ext
   11941 LIBS=$ac_func_search_save_LIBS
   11942 fi
   11943 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
   11944 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
   11945 ac_res=$ac_cv_search_mallinfo
   11946 if test "$ac_res" != no; then
   11947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11948 
   11949 cat >>confdefs.h <<\_ACEOF
   11950 #define HAVE_MALLINFO 1

   11951 _ACEOF
   11952 
   11953 fi
   11954 
   11955 
   11956 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   11957 
   11958 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
   11959 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
   11960 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
   11961   echo $ECHO_N "(cached) $ECHO_C" >&6
   11962 else
   11963   ac_check_lib_save_LIBS=$LIBS
   11964 LIBS="-lpthread  $LIBS"
   11965 cat >conftest.$ac_ext <<_ACEOF
   11966 /* confdefs.h.  */
   11967 _ACEOF
   11968 cat confdefs.h >>conftest.$ac_ext
   11969 cat >>conftest.$ac_ext <<_ACEOF
   11970 /* end confdefs.h.  */
   11971 
   11972 /* Override any GCC internal prototype to avoid an error.
   11973    Use char because int might match the return type of a GCC
   11974    builtin and then its argument prototype would still apply.  */
   11975 #ifdef __cplusplus

   11976 extern "C"
   11977 #endif

   11978 char pthread_mutex_init ();
   11979 int
   11980 main ()
   11981 {
   11982 return pthread_mutex_init ();
   11983   ;
   11984   return 0;
   11985 }
   11986 _ACEOF
   11987 rm -f conftest.$ac_objext conftest$ac_exeext
   11988 if { (ac_try="$ac_link"
   11989 case "(($ac_try" in
   11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11991   *) ac_try_echo=$ac_try;;
   11992 esac
   11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11994   (eval "$ac_link") 2>conftest.er1
   11995   ac_status=$?
   11996   grep -v '^ *+' conftest.er1 >conftest.err
   11997   rm -f conftest.er1
   11998   cat conftest.err >&5
   11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12000   (exit $ac_status); } && {
   12001 	 test -z "$ac_c_werror_flag" ||
   12002 	 test ! -s conftest.err
   12003        } && test -s conftest$ac_exeext &&
   12004        $as_test_x conftest$ac_exeext; then
   12005   ac_cv_lib_pthread_pthread_mutex_init=yes
   12006 else
   12007   echo "$as_me: failed program was:" >&5
   12008 sed 's/^/| /' conftest.$ac_ext >&5
   12009 
   12010 	ac_cv_lib_pthread_pthread_mutex_init=no
   12011 fi
   12012 
   12013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12014       conftest$ac_exeext conftest.$ac_ext
   12015 LIBS=$ac_check_lib_save_LIBS
   12016 fi
   12017 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
   12018 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
   12019 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
   12020   cat >>confdefs.h <<_ACEOF
   12021 #define HAVE_LIBPTHREAD 1

   12022 _ACEOF
   12023 
   12024   LIBS="-lpthread $LIBS"
   12025 
   12026 fi
   12027 
   12028   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
   12029 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
   12030 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12031   echo $ECHO_N "(cached) $ECHO_C" >&6
   12032 else
   12033   ac_func_search_save_LIBS=$LIBS
   12034 cat >conftest.$ac_ext <<_ACEOF
   12035 /* confdefs.h.  */
   12036 _ACEOF
   12037 cat confdefs.h >>conftest.$ac_ext
   12038 cat >>conftest.$ac_ext <<_ACEOF
   12039 /* end confdefs.h.  */
   12040 
   12041 /* Override any GCC internal prototype to avoid an error.
   12042    Use char because int might match the return type of a GCC
   12043    builtin and then its argument prototype would still apply.  */
   12044 #ifdef __cplusplus

   12045 extern "C"
   12046 #endif

   12047 char pthread_mutex_lock ();
   12048 int
   12049 main ()
   12050 {
   12051 return pthread_mutex_lock ();
   12052   ;
   12053   return 0;
   12054 }
   12055 _ACEOF
   12056 for ac_lib in '' pthread; do
   12057   if test -z "$ac_lib"; then
   12058     ac_res="none required"
   12059   else
   12060     ac_res=-l$ac_lib
   12061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12062   fi
   12063   rm -f conftest.$ac_objext conftest$ac_exeext
   12064 if { (ac_try="$ac_link"
   12065 case "(($ac_try" in
   12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12067   *) ac_try_echo=$ac_try;;
   12068 esac
   12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12070   (eval "$ac_link") 2>conftest.er1
   12071   ac_status=$?
   12072   grep -v '^ *+' conftest.er1 >conftest.err
   12073   rm -f conftest.er1
   12074   cat conftest.err >&5
   12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12076   (exit $ac_status); } && {
   12077 	 test -z "$ac_c_werror_flag" ||
   12078 	 test ! -s conftest.err
   12079        } && test -s conftest$ac_exeext &&
   12080        $as_test_x conftest$ac_exeext; then
   12081   ac_cv_search_pthread_mutex_lock=$ac_res
   12082 else
   12083   echo "$as_me: failed program was:" >&5
   12084 sed 's/^/| /' conftest.$ac_ext >&5
   12085 
   12086 
   12087 fi
   12088 
   12089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12090       conftest$ac_exeext
   12091   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12092   break
   12093 fi
   12094 done
   12095 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
   12096   :
   12097 else
   12098   ac_cv_search_pthread_mutex_lock=no
   12099 fi
   12100 rm conftest.$ac_ext
   12101 LIBS=$ac_func_search_save_LIBS
   12102 fi
   12103 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
   12104 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
   12105 ac_res=$ac_cv_search_pthread_mutex_lock
   12106 if test "$ac_res" != no; then
   12107   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12108 
   12109 cat >>confdefs.h <<\_ACEOF
   12110 #define HAVE_PTHREAD_MUTEX_LOCK 1

   12111 _ACEOF
   12112 
   12113 fi
   12114 
   12115   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
   12116 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
   12117 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12118   echo $ECHO_N "(cached) $ECHO_C" >&6
   12119 else
   12120   ac_func_search_save_LIBS=$LIBS
   12121 cat >conftest.$ac_ext <<_ACEOF
   12122 /* confdefs.h.  */
   12123 _ACEOF
   12124 cat confdefs.h >>conftest.$ac_ext
   12125 cat >>conftest.$ac_ext <<_ACEOF
   12126 /* end confdefs.h.  */
   12127 
   12128 /* Override any GCC internal prototype to avoid an error.
   12129    Use char because int might match the return type of a GCC
   12130    builtin and then its argument prototype would still apply.  */
   12131 #ifdef __cplusplus

   12132 extern "C"
   12133 #endif

   12134 char pthread_rwlock_init ();
   12135 int
   12136 main ()
   12137 {
   12138 return pthread_rwlock_init ();
   12139   ;
   12140   return 0;
   12141 }
   12142 _ACEOF
   12143 for ac_lib in '' pthread; do
   12144   if test -z "$ac_lib"; then
   12145     ac_res="none required"
   12146   else
   12147     ac_res=-l$ac_lib
   12148     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12149   fi
   12150   rm -f conftest.$ac_objext conftest$ac_exeext
   12151 if { (ac_try="$ac_link"
   12152 case "(($ac_try" in
   12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12154   *) ac_try_echo=$ac_try;;
   12155 esac
   12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12157   (eval "$ac_link") 2>conftest.er1
   12158   ac_status=$?
   12159   grep -v '^ *+' conftest.er1 >conftest.err
   12160   rm -f conftest.er1
   12161   cat conftest.err >&5
   12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12163   (exit $ac_status); } && {
   12164 	 test -z "$ac_c_werror_flag" ||
   12165 	 test ! -s conftest.err
   12166        } && test -s conftest$ac_exeext &&
   12167        $as_test_x conftest$ac_exeext; then
   12168   ac_cv_search_pthread_rwlock_init=$ac_res
   12169 else
   12170   echo "$as_me: failed program was:" >&5
   12171 sed 's/^/| /' conftest.$ac_ext >&5
   12172 
   12173 
   12174 fi
   12175 
   12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12177       conftest$ac_exeext
   12178   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12179   break
   12180 fi
   12181 done
   12182 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
   12183   :
   12184 else
   12185   ac_cv_search_pthread_rwlock_init=no
   12186 fi
   12187 rm conftest.$ac_ext
   12188 LIBS=$ac_func_search_save_LIBS
   12189 fi
   12190 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
   12191 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
   12192 ac_res=$ac_cv_search_pthread_rwlock_init
   12193 if test "$ac_res" != no; then
   12194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12195 
   12196 cat >>confdefs.h <<\_ACEOF
   12197 #define HAVE_PTHREAD_RWLOCK_INIT 1

   12198 _ACEOF
   12199 
   12200 fi
   12201 
   12202   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
   12203 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
   12204 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   12205   echo $ECHO_N "(cached) $ECHO_C" >&6
   12206 else
   12207   ac_func_search_save_LIBS=$LIBS
   12208 cat >conftest.$ac_ext <<_ACEOF
   12209 /* confdefs.h.  */
   12210 _ACEOF
   12211 cat confdefs.h >>conftest.$ac_ext
   12212 cat >>conftest.$ac_ext <<_ACEOF
   12213 /* end confdefs.h.  */
   12214 
   12215 /* Override any GCC internal prototype to avoid an error.
   12216    Use char because int might match the return type of a GCC
   12217    builtin and then its argument prototype would still apply.  */
   12218 #ifdef __cplusplus

   12219 extern "C"
   12220 #endif

   12221 char pthread_getspecific ();
   12222 int
   12223 main ()
   12224 {
   12225 return pthread_getspecific ();
   12226   ;
   12227   return 0;
   12228 }
   12229 _ACEOF
   12230 for ac_lib in '' pthread; do
   12231   if test -z "$ac_lib"; then
   12232     ac_res="none required"
   12233   else
   12234     ac_res=-l$ac_lib
   12235     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12236   fi
   12237   rm -f conftest.$ac_objext conftest$ac_exeext
   12238 if { (ac_try="$ac_link"
   12239 case "(($ac_try" in
   12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12241   *) ac_try_echo=$ac_try;;
   12242 esac
   12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12244   (eval "$ac_link") 2>conftest.er1
   12245   ac_status=$?
   12246   grep -v '^ *+' conftest.er1 >conftest.err
   12247   rm -f conftest.er1
   12248   cat conftest.err >&5
   12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12250   (exit $ac_status); } && {
   12251 	 test -z "$ac_c_werror_flag" ||
   12252 	 test ! -s conftest.err
   12253        } && test -s conftest$ac_exeext &&
   12254        $as_test_x conftest$ac_exeext; then
   12255   ac_cv_search_pthread_getspecific=$ac_res
   12256 else
   12257   echo "$as_me: failed program was:" >&5
   12258 sed 's/^/| /' conftest.$ac_ext >&5
   12259 
   12260 
   12261 fi
   12262 
   12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12264       conftest$ac_exeext
   12265   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   12266   break
   12267 fi
   12268 done
   12269 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
   12270   :
   12271 else
   12272   ac_cv_search_pthread_getspecific=no
   12273 fi
   12274 rm conftest.$ac_ext
   12275 LIBS=$ac_func_search_save_LIBS
   12276 fi
   12277 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
   12278 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
   12279 ac_res=$ac_cv_search_pthread_getspecific
   12280 if test "$ac_res" != no; then
   12281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12282 
   12283 cat >>confdefs.h <<\_ACEOF
   12284 #define HAVE_PTHREAD_GETSPECIFIC 1

   12285 _ACEOF
   12286 
   12287 fi
   12288 
   12289 fi
   12290 
   12291 
   12292 # Check whether --with-udis86 was given.

   12293 if test "${with_udis86+set}" = set; then
   12294   withval=$with_udis86;
   12295       USE_UDIS86=1
   12296 
   12297       case "$withval" in
   12298         /usr/lib|yes) ;;
   12299         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
   12300       esac
   12301 
   12302 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
   12303 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
   12304 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
   12305   echo $ECHO_N "(cached) $ECHO_C" >&6
   12306 else
   12307   ac_check_lib_save_LIBS=$LIBS
   12308 LIBS="-ludis86  $LIBS"
   12309 cat >conftest.$ac_ext <<_ACEOF
   12310 /* confdefs.h.  */
   12311 _ACEOF
   12312 cat confdefs.h >>conftest.$ac_ext
   12313 cat >>conftest.$ac_ext <<_ACEOF
   12314 /* end confdefs.h.  */
   12315 
   12316 /* Override any GCC internal prototype to avoid an error.
   12317    Use char because int might match the return type of a GCC
   12318    builtin and then its argument prototype would still apply.  */
   12319 #ifdef __cplusplus

   12320 extern "C"
   12321 #endif

   12322 char ud_init ();
   12323 int
   12324 main ()
   12325 {
   12326 return ud_init ();
   12327   ;
   12328   return 0;
   12329 }
   12330 _ACEOF
   12331 rm -f conftest.$ac_objext conftest$ac_exeext
   12332 if { (ac_try="$ac_link"
   12333 case "(($ac_try" in
   12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12335   *) ac_try_echo=$ac_try;;
   12336 esac
   12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12338   (eval "$ac_link") 2>conftest.er1
   12339   ac_status=$?
   12340   grep -v '^ *+' conftest.er1 >conftest.err
   12341   rm -f conftest.er1
   12342   cat conftest.err >&5
   12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12344   (exit $ac_status); } && {
   12345 	 test -z "$ac_c_werror_flag" ||
   12346 	 test ! -s conftest.err
   12347        } && test -s conftest$ac_exeext &&
   12348        $as_test_x conftest$ac_exeext; then
   12349   ac_cv_lib_udis86_ud_init=yes
   12350 else
   12351   echo "$as_me: failed program was:" >&5
   12352 sed 's/^/| /' conftest.$ac_ext >&5
   12353 
   12354 	ac_cv_lib_udis86_ud_init=no
   12355 fi
   12356 
   12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12358       conftest$ac_exeext conftest.$ac_ext
   12359 LIBS=$ac_check_lib_save_LIBS
   12360 fi
   12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
   12362 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
   12363 if test $ac_cv_lib_udis86_ud_init = yes; then
   12364   cat >>confdefs.h <<_ACEOF
   12365 #define HAVE_LIBUDIS86 1

   12366 _ACEOF
   12367 
   12368   LIBS="-ludis86 $LIBS"
   12369 
   12370 else
   12371 
   12372         echo "Error! You need to have libudis86 around."
   12373         exit -1
   12374 
   12375 fi
   12376 
   12377 
   12378 else
   12379   USE_UDIS86=0
   12380 
   12381 fi
   12382 
   12383 
   12384 cat >>confdefs.h <<_ACEOF
   12385 #define USE_UDIS86 $USE_UDIS86

   12386 _ACEOF
   12387 
   12388 
   12389 
   12390 # Check whether --with-oprofile was given.

   12391 if test "${with_oprofile+set}" = set; then
   12392   withval=$with_oprofile;
   12393       USE_OPROFILE=1
   12394 
   12395       case "$withval" in
   12396         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
   12397         no) llvm_cv_oppath=
   12398             USE_OPROFILE=0
   12399  ;;
   12400         *) llvm_cv_oppath="${withval}/lib/oprofile"
   12401            CPPFLAGS="-I${withval}/include";;
   12402       esac
   12403       if test -n "$llvm_cv_oppath" ; then
   12404         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
   12405                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
   12406 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
   12407 if test "${ac_cv_search_bfd_init+set}" = set; then
   12408   echo $ECHO_N "(cached) $ECHO_C" >&6
   12409 else
   12410   ac_func_search_save_LIBS=$LIBS
   12411 cat >conftest.$ac_ext <<_ACEOF
   12412 /* confdefs.h.  */
   12413 _ACEOF
   12414 cat confdefs.h >>conftest.$ac_ext
   12415 cat >>conftest.$ac_ext <<_ACEOF
   12416 /* end confdefs.h.  */
   12417 
   12418 /* Override any GCC internal prototype to avoid an error.
   12419    Use char because int might match the return type of a GCC
   12420    builtin and then its argument prototype would still apply.  */
   12421 #ifdef __cplusplus

   12422 extern "C"
   12423 #endif

   12424 char bfd_init ();
   12425 int
   12426 main ()
   12427 {
   12428 return bfd_init ();
   12429   ;
   12430   return 0;
   12431 }
   12432 _ACEOF
   12433 for ac_lib in '' bfd; do
   12434   if test -z "$ac_lib"; then
   12435     ac_res="none required"
   12436   else
   12437     ac_res=-l$ac_lib
   12438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12439   fi
   12440   rm -f conftest.$ac_objext conftest$ac_exeext
   12441 if { (ac_try="$ac_link"
   12442 case "(($ac_try" in
   12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12444   *) ac_try_echo=$ac_try;;
   12445 esac
   12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12447   (eval "$ac_link") 2>conftest.er1
   12448   ac_status=$?
   12449   grep -v '^ *+' conftest.er1 >conftest.err
   12450   rm -f conftest.er1
   12451   cat conftest.err >&5
   12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12453   (exit $ac_status); } && {
   12454 	 test -z "$ac_c_werror_flag" ||
   12455 	 test ! -s conftest.err
   12456        } && test -s conftest$ac_exeext &&
   12457        $as_test_x conftest$ac_exeext; then
   12458   ac_cv_search_bfd_init=$ac_res
   12459 else
   12460   echo "$as_me: failed program was:" >&5
   12461 sed 's/^/| /' conftest.$ac_ext >&5
   12462 
   12463 
   12464 fi
   12465 
   12466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12467       conftest$ac_exeext
   12468   if test "${ac_cv_search_bfd_init+set}" = set; then
   12469   break
   12470 fi
   12471 done
   12472 if test "${ac_cv_search_bfd_init+set}" = set; then
   12473   :
   12474 else
   12475   ac_cv_search_bfd_init=no
   12476 fi
   12477 rm conftest.$ac_ext
   12478 LIBS=$ac_func_search_save_LIBS
   12479 fi
   12480 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
   12481 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
   12482 ac_res=$ac_cv_search_bfd_init
   12483 if test "$ac_res" != no; then
   12484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12485 
   12486 fi
   12487 
   12488         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
   12489 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
   12490 if test "${ac_cv_search_op_open_agent+set}" = set; then
   12491   echo $ECHO_N "(cached) $ECHO_C" >&6
   12492 else
   12493   ac_func_search_save_LIBS=$LIBS
   12494 cat >conftest.$ac_ext <<_ACEOF
   12495 /* confdefs.h.  */
   12496 _ACEOF
   12497 cat confdefs.h >>conftest.$ac_ext
   12498 cat >>conftest.$ac_ext <<_ACEOF
   12499 /* end confdefs.h.  */
   12500 
   12501 /* Override any GCC internal prototype to avoid an error.
   12502    Use char because int might match the return type of a GCC
   12503    builtin and then its argument prototype would still apply.  */
   12504 #ifdef __cplusplus

   12505 extern "C"
   12506 #endif

   12507 char op_open_agent ();
   12508 int
   12509 main ()
   12510 {
   12511 return op_open_agent ();
   12512   ;
   12513   return 0;
   12514 }
   12515 _ACEOF
   12516 for ac_lib in '' opagent; do
   12517   if test -z "$ac_lib"; then
   12518     ac_res="none required"
   12519   else
   12520     ac_res=-l$ac_lib
   12521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12522   fi
   12523   rm -f conftest.$ac_objext conftest$ac_exeext
   12524 if { (ac_try="$ac_link"
   12525 case "(($ac_try" in
   12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12527   *) ac_try_echo=$ac_try;;
   12528 esac
   12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12530   (eval "$ac_link") 2>conftest.er1
   12531   ac_status=$?
   12532   grep -v '^ *+' conftest.er1 >conftest.err
   12533   rm -f conftest.er1
   12534   cat conftest.err >&5
   12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12536   (exit $ac_status); } && {
   12537 	 test -z "$ac_c_werror_flag" ||
   12538 	 test ! -s conftest.err
   12539        } && test -s conftest$ac_exeext &&
   12540        $as_test_x conftest$ac_exeext; then
   12541   ac_cv_search_op_open_agent=$ac_res
   12542 else
   12543   echo "$as_me: failed program was:" >&5
   12544 sed 's/^/| /' conftest.$ac_ext >&5
   12545 
   12546 
   12547 fi
   12548 
   12549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12550       conftest$ac_exeext
   12551   if test "${ac_cv_search_op_open_agent+set}" = set; then
   12552   break
   12553 fi
   12554 done
   12555 if test "${ac_cv_search_op_open_agent+set}" = set; then
   12556   :
   12557 else
   12558   ac_cv_search_op_open_agent=no
   12559 fi
   12560 rm conftest.$ac_ext
   12561 LIBS=$ac_func_search_save_LIBS
   12562 fi
   12563 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
   12564 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
   12565 ac_res=$ac_cv_search_op_open_agent
   12566 if test "$ac_res" != no; then
   12567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12568 
   12569 else
   12570 
   12571           echo "Error! You need to have libopagent around."
   12572           exit -1
   12573 
   12574 fi
   12575 
   12576         if test "${ac_cv_header_opagent_h+set}" = set; then
   12577   { echo "$as_me:$LINENO: checking for opagent.h" >&5
   12578 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   12579 if test "${ac_cv_header_opagent_h+set}" = set; then
   12580   echo $ECHO_N "(cached) $ECHO_C" >&6
   12581 fi
   12582 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   12583 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   12584 else
   12585   # Is the header compilable?

   12586 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
   12587 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
   12588 cat >conftest.$ac_ext <<_ACEOF
   12589 /* confdefs.h.  */
   12590 _ACEOF
   12591 cat confdefs.h >>conftest.$ac_ext
   12592 cat >>conftest.$ac_ext <<_ACEOF
   12593 /* end confdefs.h.  */
   12594 $ac_includes_default
   12595 #include <opagent.h>

   12596 _ACEOF
   12597 rm -f conftest.$ac_objext
   12598 if { (ac_try="$ac_compile"
   12599 case "(($ac_try" in
   12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12601   *) ac_try_echo=$ac_try;;
   12602 esac
   12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12604   (eval "$ac_compile") 2>conftest.er1
   12605   ac_status=$?
   12606   grep -v '^ *+' conftest.er1 >conftest.err
   12607   rm -f conftest.er1
   12608   cat conftest.err >&5
   12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12610   (exit $ac_status); } && {
   12611 	 test -z "$ac_c_werror_flag" ||
   12612 	 test ! -s conftest.err
   12613        } && test -s conftest.$ac_objext; then
   12614   ac_header_compiler=yes
   12615 else
   12616   echo "$as_me: failed program was:" >&5
   12617 sed 's/^/| /' conftest.$ac_ext >&5
   12618 
   12619 	ac_header_compiler=no
   12620 fi
   12621 
   12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12624 echo "${ECHO_T}$ac_header_compiler" >&6; }
   12625 
   12626 # Is the header present?

   12627 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
   12628 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
   12629 cat >conftest.$ac_ext <<_ACEOF
   12630 /* confdefs.h.  */
   12631 _ACEOF
   12632 cat confdefs.h >>conftest.$ac_ext
   12633 cat >>conftest.$ac_ext <<_ACEOF
   12634 /* end confdefs.h.  */
   12635 #include <opagent.h>

   12636 _ACEOF
   12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
   12638 case "(($ac_try" in
   12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12640   *) ac_try_echo=$ac_try;;
   12641 esac
   12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   12644   ac_status=$?
   12645   grep -v '^ *+' conftest.er1 >conftest.err
   12646   rm -f conftest.er1
   12647   cat conftest.err >&5
   12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12649   (exit $ac_status); } >/dev/null && {
   12650 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   12651 	 test ! -s conftest.err
   12652        }; then
   12653   ac_header_preproc=yes
   12654 else
   12655   echo "$as_me: failed program was:" >&5
   12656 sed 's/^/| /' conftest.$ac_ext >&5
   12657 
   12658   ac_header_preproc=no
   12659 fi
   12660 
   12661 rm -f conftest.err conftest.$ac_ext
   12662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12663 echo "${ECHO_T}$ac_header_preproc" >&6; }
   12664 
   12665 # So?  What about this header?

   12666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   12667   yes:no: )
   12668     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
   12669 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12670     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
   12671 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
   12672     ac_header_preproc=yes
   12673     ;;
   12674   no:yes:* )
   12675     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
   12676 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
   12677     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
   12678 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
   12679     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
   12680 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
   12681     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
   12682 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   12683     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
   12684 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
   12685     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
   12686 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
   12687     ( cat <<\_ASBOX
   12688 ## ----------------------------------- ##

   12689 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   12690 ## ----------------------------------- ##

   12691 _ASBOX
   12692      ) | sed "s/^/$as_me: WARNING:     /" >&2
   12693     ;;
   12694 esac
   12695 { echo "$as_me:$LINENO: checking for opagent.h" >&5
   12696 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
   12697 if test "${ac_cv_header_opagent_h+set}" = set; then
   12698   echo $ECHO_N "(cached) $ECHO_C" >&6
   12699 else
   12700   ac_cv_header_opagent_h=$ac_header_preproc
   12701 fi
   12702 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
   12703 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
   12704 
   12705 fi
   12706 if test $ac_cv_header_opagent_h = yes; then
   12707   :
   12708 else
   12709 
   12710           echo "Error! You need to have opagent.h around."
   12711           exit -1
   12712 
   12713 fi
   12714 
   12715 
   12716       fi
   12717 
   12718 else
   12719 
   12720       USE_OPROFILE=0
   12721 
   12722 
   12723 fi
   12724 
   12725 
   12726 cat >>confdefs.h <<_ACEOF
   12727 #define USE_OPROFILE $USE_OPROFILE

   12728 _ACEOF
   12729 
   12730 
   12731 
   12732 
   12733 
   12734 
   12735 
   12736 
   12737 ac_header_dirent=no
   12738 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   12739   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   12740 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   12741 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   12742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12743   echo $ECHO_N "(cached) $ECHO_C" >&6
   12744 else
   12745   cat >conftest.$ac_ext <<_ACEOF
   12746 /* confdefs.h.  */
   12747 _ACEOF
   12748 cat confdefs.h >>conftest.$ac_ext
   12749 cat >>conftest.$ac_ext <<_ACEOF
   12750 /* end confdefs.h.  */
   12751 #include <sys/types.h>

   12752 #include <$ac_hdr>

   12753 
   12754 int
   12755 main ()
   12756 {
   12757 if ((DIR *) 0)
   12758 return 0;
   12759   ;
   12760   return 0;
   12761 }
   12762 _ACEOF
   12763 rm -f conftest.$ac_objext
   12764 if { (ac_try="$ac_compile"
   12765 case "(($ac_try" in
   12766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12767   *) ac_try_echo=$ac_try;;
   12768 esac
   12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12770   (eval "$ac_compile") 2>conftest.er1
   12771   ac_status=$?
   12772   grep -v '^ *+' conftest.er1 >conftest.err
   12773   rm -f conftest.er1
   12774   cat conftest.err >&5
   12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12776   (exit $ac_status); } && {
   12777 	 test -z "$ac_c_werror_flag" ||
   12778 	 test ! -s conftest.err
   12779        } && test -s conftest.$ac_objext; then
   12780   eval "$as_ac_Header=yes"
   12781 else
   12782   echo "$as_me: failed program was:" >&5
   12783 sed 's/^/| /' conftest.$ac_ext >&5
   12784 
   12785 	eval "$as_ac_Header=no"
   12786 fi
   12787 
   12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12789 fi
   12790 ac_res=`eval echo '${'$as_ac_Header'}'`
   12791 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12792 echo "${ECHO_T}$ac_res" >&6; }
   12793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   12794   cat >>confdefs.h <<_ACEOF
   12795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1

   12796 _ACEOF
   12797 
   12798 ac_header_dirent=$ac_hdr; break
   12799 fi
   12800 
   12801 done
   12802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.

   12803 if test $ac_header_dirent = dirent.h; then
   12804   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   12805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   12806 if test "${ac_cv_search_opendir+set}" = set; then
   12807   echo $ECHO_N "(cached) $ECHO_C" >&6
   12808 else
   12809   ac_func_search_save_LIBS=$LIBS
   12810 cat >conftest.$ac_ext <<_ACEOF
   12811 /* confdefs.h.  */
   12812 _ACEOF
   12813 cat confdefs.h >>conftest.$ac_ext
   12814 cat >>conftest.$ac_ext <<_ACEOF
   12815 /* end confdefs.h.  */
   12816 
   12817 /* Override any GCC internal prototype to avoid an error.
   12818    Use char because int might match the return type of a GCC
   12819    builtin and then its argument prototype would still apply.  */
   12820 #ifdef __cplusplus

   12821 extern "C"
   12822 #endif

   12823 char opendir ();
   12824 int
   12825 main ()
   12826 {
   12827 return opendir ();
   12828   ;
   12829   return 0;
   12830 }
   12831 _ACEOF
   12832 for ac_lib in '' dir; do
   12833   if test -z "$ac_lib"; then
   12834     ac_res="none required"
   12835   else
   12836     ac_res=-l$ac_lib
   12837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12838   fi
   12839   rm -f conftest.$ac_objext conftest$ac_exeext
   12840 if { (ac_try="$ac_link"
   12841 case "(($ac_try" in
   12842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12843   *) ac_try_echo=$ac_try;;
   12844 esac
   12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12846   (eval "$ac_link") 2>conftest.er1
   12847   ac_status=$?
   12848   grep -v '^ *+' conftest.er1 >conftest.err
   12849   rm -f conftest.er1
   12850   cat conftest.err >&5
   12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12852   (exit $ac_status); } && {
   12853 	 test -z "$ac_c_werror_flag" ||
   12854 	 test ! -s conftest.err
   12855        } && test -s conftest$ac_exeext &&
   12856        $as_test_x conftest$ac_exeext; then
   12857   ac_cv_search_opendir=$ac_res
   12858 else
   12859   echo "$as_me: failed program was:" >&5
   12860 sed 's/^/| /' conftest.$ac_ext >&5
   12861 
   12862 
   12863 fi
   12864 
   12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12866       conftest$ac_exeext
   12867   if test "${ac_cv_search_opendir+set}" = set; then
   12868   break
   12869 fi
   12870 done
   12871 if test "${ac_cv_search_opendir+set}" = set; then
   12872   :
   12873 else
   12874   ac_cv_search_opendir=no
   12875 fi
   12876 rm conftest.$ac_ext
   12877 LIBS=$ac_func_search_save_LIBS
   12878 fi
   12879 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   12880 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   12881 ac_res=$ac_cv_search_opendir
   12882 if test "$ac_res" != no; then
   12883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12884 
   12885 fi
   12886 
   12887 else
   12888   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   12889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   12890 if test "${ac_cv_search_opendir+set}" = set; then
   12891   echo $ECHO_N "(cached) $ECHO_C" >&6
   12892 else
   12893   ac_func_search_save_LIBS=$LIBS
   12894 cat >conftest.$ac_ext <<_ACEOF
   12895 /* confdefs.h.  */
   12896 _ACEOF
   12897 cat confdefs.h >>conftest.$ac_ext
   12898 cat >>conftest.$ac_ext <<_ACEOF
   12899 /* end confdefs.h.  */
   12900 
   12901 /* Override any GCC internal prototype to avoid an error.
   12902    Use char because int might match the return type of a GCC
   12903    builtin and then its argument prototype would still apply.  */
   12904 #ifdef __cplusplus

   12905 extern "C"
   12906 #endif

   12907 char opendir ();
   12908 int
   12909 main ()
   12910 {
   12911 return opendir ();
   12912   ;
   12913   return 0;
   12914 }
   12915 _ACEOF
   12916 for ac_lib in '' x; do
   12917   if test -z "$ac_lib"; then
   12918     ac_res="none required"
   12919   else
   12920     ac_res=-l$ac_lib
   12921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12922   fi
   12923   rm -f conftest.$ac_objext conftest$ac_exeext
   12924 if { (ac_try="$ac_link"
   12925 case "(($ac_try" in
   12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12927   *) ac_try_echo=$ac_try;;
   12928 esac
   12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12930   (eval "$ac_link") 2>conftest.er1
   12931   ac_status=$?
   12932   grep -v '^ *+' conftest.er1 >conftest.err
   12933   rm -f conftest.er1
   12934   cat conftest.err >&5
   12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12936   (exit $ac_status); } && {
   12937 	 test -z "$ac_c_werror_flag" ||
   12938 	 test ! -s conftest.err
   12939        } && test -s conftest$ac_exeext &&
   12940        $as_test_x conftest$ac_exeext; then
   12941   ac_cv_search_opendir=$ac_res
   12942 else
   12943   echo "$as_me: failed program was:" >&5
   12944 sed 's/^/| /' conftest.$ac_ext >&5
   12945 
   12946 
   12947 fi
   12948 
   12949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12950       conftest$ac_exeext
   12951   if test "${ac_cv_search_opendir+set}" = set; then
   12952   break
   12953 fi
   12954 done
   12955 if test "${ac_cv_search_opendir+set}" = set; then
   12956   :
   12957 else
   12958   ac_cv_search_opendir=no
   12959 fi
   12960 rm conftest.$ac_ext
   12961 LIBS=$ac_func_search_save_LIBS
   12962 fi
   12963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   12964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   12965 ac_res=$ac_cv_search_opendir
   12966 if test "$ac_res" != no; then
   12967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12968 
   12969 fi
   12970 
   12971 fi
   12972 
   12973 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
   12974 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
   12975 if test "${ac_cv_header_mmap_anon+set}" = set; then
   12976   echo $ECHO_N "(cached) $ECHO_C" >&6
   12977 else
   12978    ac_ext=c
   12979 ac_cpp='$CPP $CPPFLAGS'
   12980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12983 
   12984   cat >conftest.$ac_ext <<_ACEOF
   12985 /* confdefs.h.  */
   12986 _ACEOF
   12987 cat confdefs.h >>conftest.$ac_ext
   12988 cat >>conftest.$ac_ext <<_ACEOF
   12989 /* end confdefs.h.  */
   12990 #include <sys/mman.h>

   12991 #include <unistd.h>

   12992 #include <fcntl.h>

   12993 int
   12994 main ()
   12995 {
   12996 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
   12997   ;
   12998   return 0;
   12999 }
   13000 _ACEOF
   13001 rm -f conftest.$ac_objext
   13002 if { (ac_try="$ac_compile"
   13003 case "(($ac_try" in
   13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13005   *) ac_try_echo=$ac_try;;
   13006 esac
   13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13008   (eval "$ac_compile") 2>conftest.er1
   13009   ac_status=$?
   13010   grep -v '^ *+' conftest.er1 >conftest.err
   13011   rm -f conftest.er1
   13012   cat conftest.err >&5
   13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13014   (exit $ac_status); } && {
   13015 	 test -z "$ac_c_werror_flag" ||
   13016 	 test ! -s conftest.err
   13017        } && test -s conftest.$ac_objext; then
   13018   ac_cv_header_mmap_anon=yes
   13019 else
   13020   echo "$as_me: failed program was:" >&5
   13021 sed 's/^/| /' conftest.$ac_ext >&5
   13022 
   13023 	ac_cv_header_mmap_anon=no
   13024 fi
   13025 
   13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13027   ac_ext=c
   13028 ac_cpp='$CPP $CPPFLAGS'
   13029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13032 
   13033 
   13034 fi
   13035 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
   13036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
   13037 if test "$ac_cv_header_mmap_anon" = yes; then
   13038 
   13039 cat >>confdefs.h <<\_ACEOF
   13040 #define HAVE_MMAP_ANONYMOUS 1

   13041 _ACEOF
   13042 
   13043 fi
   13044 
   13045 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   13046 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
   13047 if test "${ac_cv_header_stat_broken+set}" = set; then
   13048   echo $ECHO_N "(cached) $ECHO_C" >&6
   13049 else
   13050   cat >conftest.$ac_ext <<_ACEOF
   13051 /* confdefs.h.  */
   13052 _ACEOF
   13053 cat confdefs.h >>conftest.$ac_ext
   13054 cat >>conftest.$ac_ext <<_ACEOF
   13055 /* end confdefs.h.  */
   13056 #include <sys/types.h>

   13057 #include <sys/stat.h>

   13058 
   13059 #if defined S_ISBLK && defined S_IFDIR

   13060 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
   13061 #endif

   13062 
   13063 #if defined S_ISBLK && defined S_IFCHR

   13064 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
   13065 #endif

   13066 
   13067 #if defined S_ISLNK && defined S_IFREG

   13068 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
   13069 #endif

   13070 
   13071 #if defined S_ISSOCK && defined S_IFREG

   13072 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
   13073 #endif

   13074 
   13075 _ACEOF
   13076 rm -f conftest.$ac_objext
   13077 if { (ac_try="$ac_compile"
   13078 case "(($ac_try" in
   13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13080   *) ac_try_echo=$ac_try;;
   13081 esac
   13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13083   (eval "$ac_compile") 2>conftest.er1
   13084   ac_status=$?
   13085   grep -v '^ *+' conftest.er1 >conftest.err
   13086   rm -f conftest.er1
   13087   cat conftest.err >&5
   13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13089   (exit $ac_status); } && {
   13090 	 test -z "$ac_c_werror_flag" ||
   13091 	 test ! -s conftest.err
   13092        } && test -s conftest.$ac_objext; then
   13093   ac_cv_header_stat_broken=no
   13094 else
   13095   echo "$as_me: failed program was:" >&5
   13096 sed 's/^/| /' conftest.$ac_ext >&5
   13097 
   13098 	ac_cv_header_stat_broken=yes
   13099 fi
   13100 
   13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13102 fi
   13103 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   13104 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
   13105 if test $ac_cv_header_stat_broken = yes; then
   13106 
   13107 cat >>confdefs.h <<\_ACEOF
   13108 #define STAT_MACROS_BROKEN 1

   13109 _ACEOF
   13110 
   13111 fi
   13112 
   13113 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   13114 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
   13115 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   13116   echo $ECHO_N "(cached) $ECHO_C" >&6
   13117 else
   13118   cat >conftest.$ac_ext <<_ACEOF
   13119 /* confdefs.h.  */
   13120 _ACEOF
   13121 cat confdefs.h >>conftest.$ac_ext
   13122 cat >>conftest.$ac_ext <<_ACEOF
   13123 /* end confdefs.h.  */
   13124 #include <sys/types.h>

   13125 #include <sys/wait.h>

   13126 #ifndef WEXITSTATUS

   13127 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)

   13128 #endif

   13129 #ifndef WIFEXITED

   13130 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)

   13131 #endif

   13132 
   13133 int
   13134 main ()
   13135 {
   13136   int s;
   13137   wait (&s);
   13138   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   13139   ;
   13140   return 0;
   13141 }
   13142 _ACEOF
   13143 rm -f conftest.$ac_objext
   13144 if { (ac_try="$ac_compile"
   13145 case "(($ac_try" in
   13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13147   *) ac_try_echo=$ac_try;;
   13148 esac
   13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13150   (eval "$ac_compile") 2>conftest.er1
   13151   ac_status=$?
   13152   grep -v '^ *+' conftest.er1 >conftest.err
   13153   rm -f conftest.er1
   13154   cat conftest.err >&5
   13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13156   (exit $ac_status); } && {
   13157 	 test -z "$ac_c_werror_flag" ||
   13158 	 test ! -s conftest.err
   13159        } && test -s conftest.$ac_objext; then
   13160   ac_cv_header_sys_wait_h=yes
   13161 else
   13162   echo "$as_me: failed program was:" >&5
   13163 sed 's/^/| /' conftest.$ac_ext >&5
   13164 
   13165 	ac_cv_header_sys_wait_h=no
   13166 fi
   13167 
   13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13169 fi
   13170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   13171 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
   13172 if test $ac_cv_header_sys_wait_h = yes; then
   13173 
   13174 cat >>confdefs.h <<\_ACEOF
   13175 #define HAVE_SYS_WAIT_H 1

   13176 _ACEOF
   13177 
   13178 fi
   13179 
   13180 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   13181 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   13182 if test "${ac_cv_header_time+set}" = set; then
   13183   echo $ECHO_N "(cached) $ECHO_C" >&6
   13184 else
   13185   cat >conftest.$ac_ext <<_ACEOF
   13186 /* confdefs.h.  */
   13187 _ACEOF
   13188 cat confdefs.h >>conftest.$ac_ext
   13189 cat >>conftest.$ac_ext <<_ACEOF
   13190 /* end confdefs.h.  */
   13191 #include <sys/types.h>

   13192 #include <sys/time.h>

   13193 #include <time.h>

   13194 
   13195 int
   13196 main ()
   13197 {
   13198 if ((struct tm *) 0)
   13199 return 0;
   13200   ;
   13201   return 0;
   13202 }
   13203 _ACEOF
   13204 rm -f conftest.$ac_objext
   13205 if { (ac_try="$ac_compile"
   13206 case "(($ac_try" in
   13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13208   *) ac_try_echo=$ac_try;;
   13209 esac
   13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13211   (eval "$ac_compile") 2>conftest.er1
   13212   ac_status=$?
   13213   grep -v '^ *+' conftest.er1 >conftest.err
   13214   rm -f conftest.er1
   13215   cat conftest.err >&5
   13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13217   (exit $ac_status); } && {
   13218 	 test -z "$ac_c_werror_flag" ||
   13219 	 test ! -s conftest.err
   13220        } && test -s conftest.$ac_objext; then
   13221   ac_cv_header_time=yes
   13222 else
   13223   echo "$as_me: failed program was:" >&5
   13224 sed 's/^/| /' conftest.$ac_ext >&5
   13225 
   13226 	ac_cv_header_time=no
   13227 fi
   13228 
   13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13230 fi
   13231 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   13232 echo "${ECHO_T}$ac_cv_header_time" >&6; }
   13233 if test $ac_cv_header_time = yes; then
   13234 
   13235 cat >>confdefs.h <<\_ACEOF
   13236 #define TIME_WITH_SYS_TIME 1

   13237 _ACEOF
   13238 
   13239 fi
   13240 
   13241 
   13242 
   13243 
   13244 
   13245 
   13246 
   13247 
   13248 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
   13249 do
   13250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13255   echo $ECHO_N "(cached) $ECHO_C" >&6
   13256 fi
   13257 ac_res=`eval echo '${'$as_ac_Header'}'`
   13258 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13259 echo "${ECHO_T}$ac_res" >&6; }
   13260 else
   13261   # Is the header compilable?

   13262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13264 cat >conftest.$ac_ext <<_ACEOF
   13265 /* confdefs.h.  */
   13266 _ACEOF
   13267 cat confdefs.h >>conftest.$ac_ext
   13268 cat >>conftest.$ac_ext <<_ACEOF
   13269 /* end confdefs.h.  */
   13270 $ac_includes_default
   13271 #include <$ac_header>

   13272 _ACEOF
   13273 rm -f conftest.$ac_objext
   13274 if { (ac_try="$ac_compile"
   13275 case "(($ac_try" in
   13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13277   *) ac_try_echo=$ac_try;;
   13278 esac
   13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13280   (eval "$ac_compile") 2>conftest.er1
   13281   ac_status=$?
   13282   grep -v '^ *+' conftest.er1 >conftest.err
   13283   rm -f conftest.er1
   13284   cat conftest.err >&5
   13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13286   (exit $ac_status); } && {
   13287 	 test -z "$ac_c_werror_flag" ||
   13288 	 test ! -s conftest.err
   13289        } && test -s conftest.$ac_objext; then
   13290   ac_header_compiler=yes
   13291 else
   13292   echo "$as_me: failed program was:" >&5
   13293 sed 's/^/| /' conftest.$ac_ext >&5
   13294 
   13295 	ac_header_compiler=no
   13296 fi
   13297 
   13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13301 
   13302 # Is the header present?

   13303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13305 cat >conftest.$ac_ext <<_ACEOF
   13306 /* confdefs.h.  */
   13307 _ACEOF
   13308 cat confdefs.h >>conftest.$ac_ext
   13309 cat >>conftest.$ac_ext <<_ACEOF
   13310 /* end confdefs.h.  */
   13311 #include <$ac_header>

   13312 _ACEOF
   13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13314 case "(($ac_try" in
   13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13316   *) ac_try_echo=$ac_try;;
   13317 esac
   13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13320   ac_status=$?
   13321   grep -v '^ *+' conftest.er1 >conftest.err
   13322   rm -f conftest.er1
   13323   cat conftest.err >&5
   13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13325   (exit $ac_status); } >/dev/null && {
   13326 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13327 	 test ! -s conftest.err
   13328        }; then
   13329   ac_header_preproc=yes
   13330 else
   13331   echo "$as_me: failed program was:" >&5
   13332 sed 's/^/| /' conftest.$ac_ext >&5
   13333 
   13334   ac_header_preproc=no
   13335 fi
   13336 
   13337 rm -f conftest.err conftest.$ac_ext
   13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13340 
   13341 # So?  What about this header?

   13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13343   yes:no: )
   13344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13348     ac_header_preproc=yes
   13349     ;;
   13350   no:yes:* )
   13351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13363     ( cat <<\_ASBOX
   13364 ## ----------------------------------- ##

   13365 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   13366 ## ----------------------------------- ##

   13367 _ASBOX
   13368      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13369     ;;
   13370 esac
   13371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13374   echo $ECHO_N "(cached) $ECHO_C" >&6
   13375 else
   13376   eval "$as_ac_Header=\$ac_header_preproc"
   13377 fi
   13378 ac_res=`eval echo '${'$as_ac_Header'}'`
   13379 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13380 echo "${ECHO_T}$ac_res" >&6; }
   13381 
   13382 fi
   13383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13384   cat >>confdefs.h <<_ACEOF
   13385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   13386 _ACEOF
   13387 
   13388 fi
   13389 
   13390 done
   13391 
   13392 
   13393 
   13394 
   13395 
   13396 
   13397 
   13398 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
   13399 do
   13400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13402   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13405   echo $ECHO_N "(cached) $ECHO_C" >&6
   13406 fi
   13407 ac_res=`eval echo '${'$as_ac_Header'}'`
   13408 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13409 echo "${ECHO_T}$ac_res" >&6; }
   13410 else
   13411   # Is the header compilable?

   13412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13414 cat >conftest.$ac_ext <<_ACEOF
   13415 /* confdefs.h.  */
   13416 _ACEOF
   13417 cat confdefs.h >>conftest.$ac_ext
   13418 cat >>conftest.$ac_ext <<_ACEOF
   13419 /* end confdefs.h.  */
   13420 $ac_includes_default
   13421 #include <$ac_header>

   13422 _ACEOF
   13423 rm -f conftest.$ac_objext
   13424 if { (ac_try="$ac_compile"
   13425 case "(($ac_try" in
   13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13427   *) ac_try_echo=$ac_try;;
   13428 esac
   13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13430   (eval "$ac_compile") 2>conftest.er1
   13431   ac_status=$?
   13432   grep -v '^ *+' conftest.er1 >conftest.err
   13433   rm -f conftest.er1
   13434   cat conftest.err >&5
   13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13436   (exit $ac_status); } && {
   13437 	 test -z "$ac_c_werror_flag" ||
   13438 	 test ! -s conftest.err
   13439        } && test -s conftest.$ac_objext; then
   13440   ac_header_compiler=yes
   13441 else
   13442   echo "$as_me: failed program was:" >&5
   13443 sed 's/^/| /' conftest.$ac_ext >&5
   13444 
   13445 	ac_header_compiler=no
   13446 fi
   13447 
   13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13450 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13451 
   13452 # Is the header present?

   13453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13455 cat >conftest.$ac_ext <<_ACEOF
   13456 /* confdefs.h.  */
   13457 _ACEOF
   13458 cat confdefs.h >>conftest.$ac_ext
   13459 cat >>conftest.$ac_ext <<_ACEOF
   13460 /* end confdefs.h.  */
   13461 #include <$ac_header>

   13462 _ACEOF
   13463 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13464 case "(($ac_try" in
   13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13466   *) ac_try_echo=$ac_try;;
   13467 esac
   13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13470   ac_status=$?
   13471   grep -v '^ *+' conftest.er1 >conftest.err
   13472   rm -f conftest.er1
   13473   cat conftest.err >&5
   13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13475   (exit $ac_status); } >/dev/null && {
   13476 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13477 	 test ! -s conftest.err
   13478        }; then
   13479   ac_header_preproc=yes
   13480 else
   13481   echo "$as_me: failed program was:" >&5
   13482 sed 's/^/| /' conftest.$ac_ext >&5
   13483 
   13484   ac_header_preproc=no
   13485 fi
   13486 
   13487 rm -f conftest.err conftest.$ac_ext
   13488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13489 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13490 
   13491 # So?  What about this header?

   13492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13493   yes:no: )
   13494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13498     ac_header_preproc=yes
   13499     ;;
   13500   no:yes:* )
   13501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13513     ( cat <<\_ASBOX
   13514 ## ----------------------------------- ##

   13515 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   13516 ## ----------------------------------- ##

   13517 _ASBOX
   13518      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13519     ;;
   13520 esac
   13521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13524   echo $ECHO_N "(cached) $ECHO_C" >&6
   13525 else
   13526   eval "$as_ac_Header=\$ac_header_preproc"
   13527 fi
   13528 ac_res=`eval echo '${'$as_ac_Header'}'`
   13529 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13530 echo "${ECHO_T}$ac_res" >&6; }
   13531 
   13532 fi
   13533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13534   cat >>confdefs.h <<_ACEOF
   13535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   13536 _ACEOF
   13537 
   13538 fi
   13539 
   13540 done
   13541 
   13542 
   13543 
   13544 for ac_header in utime.h windows.h
   13545 do
   13546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13551   echo $ECHO_N "(cached) $ECHO_C" >&6
   13552 fi
   13553 ac_res=`eval echo '${'$as_ac_Header'}'`
   13554 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13555 echo "${ECHO_T}$ac_res" >&6; }
   13556 else
   13557   # Is the header compilable?

   13558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13560 cat >conftest.$ac_ext <<_ACEOF
   13561 /* confdefs.h.  */
   13562 _ACEOF
   13563 cat confdefs.h >>conftest.$ac_ext
   13564 cat >>conftest.$ac_ext <<_ACEOF
   13565 /* end confdefs.h.  */
   13566 $ac_includes_default
   13567 #include <$ac_header>

   13568 _ACEOF
   13569 rm -f conftest.$ac_objext
   13570 if { (ac_try="$ac_compile"
   13571 case "(($ac_try" in
   13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13573   *) ac_try_echo=$ac_try;;
   13574 esac
   13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13576   (eval "$ac_compile") 2>conftest.er1
   13577   ac_status=$?
   13578   grep -v '^ *+' conftest.er1 >conftest.err
   13579   rm -f conftest.er1
   13580   cat conftest.err >&5
   13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13582   (exit $ac_status); } && {
   13583 	 test -z "$ac_c_werror_flag" ||
   13584 	 test ! -s conftest.err
   13585        } && test -s conftest.$ac_objext; then
   13586   ac_header_compiler=yes
   13587 else
   13588   echo "$as_me: failed program was:" >&5
   13589 sed 's/^/| /' conftest.$ac_ext >&5
   13590 
   13591 	ac_header_compiler=no
   13592 fi
   13593 
   13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13596 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13597 
   13598 # Is the header present?

   13599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13601 cat >conftest.$ac_ext <<_ACEOF
   13602 /* confdefs.h.  */
   13603 _ACEOF
   13604 cat confdefs.h >>conftest.$ac_ext
   13605 cat >>conftest.$ac_ext <<_ACEOF
   13606 /* end confdefs.h.  */
   13607 #include <$ac_header>

   13608 _ACEOF
   13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13610 case "(($ac_try" in
   13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13612   *) ac_try_echo=$ac_try;;
   13613 esac
   13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13616   ac_status=$?
   13617   grep -v '^ *+' conftest.er1 >conftest.err
   13618   rm -f conftest.er1
   13619   cat conftest.err >&5
   13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13621   (exit $ac_status); } >/dev/null && {
   13622 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13623 	 test ! -s conftest.err
   13624        }; then
   13625   ac_header_preproc=yes
   13626 else
   13627   echo "$as_me: failed program was:" >&5
   13628 sed 's/^/| /' conftest.$ac_ext >&5
   13629 
   13630   ac_header_preproc=no
   13631 fi
   13632 
   13633 rm -f conftest.err conftest.$ac_ext
   13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13636 
   13637 # So?  What about this header?

   13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13639   yes:no: )
   13640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13644     ac_header_preproc=yes
   13645     ;;
   13646   no:yes:* )
   13647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13659     ( cat <<\_ASBOX
   13660 ## ----------------------------------- ##

   13661 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   13662 ## ----------------------------------- ##

   13663 _ASBOX
   13664      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13665     ;;
   13666 esac
   13667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13670   echo $ECHO_N "(cached) $ECHO_C" >&6
   13671 else
   13672   eval "$as_ac_Header=\$ac_header_preproc"
   13673 fi
   13674 ac_res=`eval echo '${'$as_ac_Header'}'`
   13675 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13676 echo "${ECHO_T}$ac_res" >&6; }
   13677 
   13678 fi
   13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13680   cat >>confdefs.h <<_ACEOF
   13681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   13682 _ACEOF
   13683 
   13684 fi
   13685 
   13686 done
   13687 
   13688 
   13689 
   13690 
   13691 
   13692 
   13693 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
   13694 do
   13695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13700   echo $ECHO_N "(cached) $ECHO_C" >&6
   13701 fi
   13702 ac_res=`eval echo '${'$as_ac_Header'}'`
   13703 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13704 echo "${ECHO_T}$ac_res" >&6; }
   13705 else
   13706   # Is the header compilable?

   13707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13709 cat >conftest.$ac_ext <<_ACEOF
   13710 /* confdefs.h.  */
   13711 _ACEOF
   13712 cat confdefs.h >>conftest.$ac_ext
   13713 cat >>conftest.$ac_ext <<_ACEOF
   13714 /* end confdefs.h.  */
   13715 $ac_includes_default
   13716 #include <$ac_header>

   13717 _ACEOF
   13718 rm -f conftest.$ac_objext
   13719 if { (ac_try="$ac_compile"
   13720 case "(($ac_try" in
   13721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13722   *) ac_try_echo=$ac_try;;
   13723 esac
   13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13725   (eval "$ac_compile") 2>conftest.er1
   13726   ac_status=$?
   13727   grep -v '^ *+' conftest.er1 >conftest.err
   13728   rm -f conftest.er1
   13729   cat conftest.err >&5
   13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13731   (exit $ac_status); } && {
   13732 	 test -z "$ac_c_werror_flag" ||
   13733 	 test ! -s conftest.err
   13734        } && test -s conftest.$ac_objext; then
   13735   ac_header_compiler=yes
   13736 else
   13737   echo "$as_me: failed program was:" >&5
   13738 sed 's/^/| /' conftest.$ac_ext >&5
   13739 
   13740 	ac_header_compiler=no
   13741 fi
   13742 
   13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13745 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13746 
   13747 # Is the header present?

   13748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13750 cat >conftest.$ac_ext <<_ACEOF
   13751 /* confdefs.h.  */
   13752 _ACEOF
   13753 cat confdefs.h >>conftest.$ac_ext
   13754 cat >>conftest.$ac_ext <<_ACEOF
   13755 /* end confdefs.h.  */
   13756 #include <$ac_header>

   13757 _ACEOF
   13758 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13759 case "(($ac_try" in
   13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13761   *) ac_try_echo=$ac_try;;
   13762 esac
   13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13765   ac_status=$?
   13766   grep -v '^ *+' conftest.er1 >conftest.err
   13767   rm -f conftest.er1
   13768   cat conftest.err >&5
   13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13770   (exit $ac_status); } >/dev/null && {
   13771 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13772 	 test ! -s conftest.err
   13773        }; then
   13774   ac_header_preproc=yes
   13775 else
   13776   echo "$as_me: failed program was:" >&5
   13777 sed 's/^/| /' conftest.$ac_ext >&5
   13778 
   13779   ac_header_preproc=no
   13780 fi
   13781 
   13782 rm -f conftest.err conftest.$ac_ext
   13783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13784 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13785 
   13786 # So?  What about this header?

   13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13788   yes:no: )
   13789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13793     ac_header_preproc=yes
   13794     ;;
   13795   no:yes:* )
   13796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13808     ( cat <<\_ASBOX
   13809 ## ----------------------------------- ##

   13810 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   13811 ## ----------------------------------- ##

   13812 _ASBOX
   13813      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13814     ;;
   13815 esac
   13816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13819   echo $ECHO_N "(cached) $ECHO_C" >&6
   13820 else
   13821   eval "$as_ac_Header=\$ac_header_preproc"
   13822 fi
   13823 ac_res=`eval echo '${'$as_ac_Header'}'`
   13824 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13825 echo "${ECHO_T}$ac_res" >&6; }
   13826 
   13827 fi
   13828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13829   cat >>confdefs.h <<_ACEOF
   13830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   13831 _ACEOF
   13832 
   13833 fi
   13834 
   13835 done
   13836 
   13837 
   13838 
   13839 
   13840 
   13841 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
   13842 do
   13843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13848   echo $ECHO_N "(cached) $ECHO_C" >&6
   13849 fi
   13850 ac_res=`eval echo '${'$as_ac_Header'}'`
   13851 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13852 echo "${ECHO_T}$ac_res" >&6; }
   13853 else
   13854   # Is the header compilable?

   13855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13857 cat >conftest.$ac_ext <<_ACEOF
   13858 /* confdefs.h.  */
   13859 _ACEOF
   13860 cat confdefs.h >>conftest.$ac_ext
   13861 cat >>conftest.$ac_ext <<_ACEOF
   13862 /* end confdefs.h.  */
   13863 $ac_includes_default
   13864 #include <$ac_header>

   13865 _ACEOF
   13866 rm -f conftest.$ac_objext
   13867 if { (ac_try="$ac_compile"
   13868 case "(($ac_try" in
   13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13870   *) ac_try_echo=$ac_try;;
   13871 esac
   13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13873   (eval "$ac_compile") 2>conftest.er1
   13874   ac_status=$?
   13875   grep -v '^ *+' conftest.er1 >conftest.err
   13876   rm -f conftest.er1
   13877   cat conftest.err >&5
   13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13879   (exit $ac_status); } && {
   13880 	 test -z "$ac_c_werror_flag" ||
   13881 	 test ! -s conftest.err
   13882        } && test -s conftest.$ac_objext; then
   13883   ac_header_compiler=yes
   13884 else
   13885   echo "$as_me: failed program was:" >&5
   13886 sed 's/^/| /' conftest.$ac_ext >&5
   13887 
   13888 	ac_header_compiler=no
   13889 fi
   13890 
   13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13893 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13894 
   13895 # Is the header present?

   13896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13898 cat >conftest.$ac_ext <<_ACEOF
   13899 /* confdefs.h.  */
   13900 _ACEOF
   13901 cat confdefs.h >>conftest.$ac_ext
   13902 cat >>conftest.$ac_ext <<_ACEOF
   13903 /* end confdefs.h.  */
   13904 #include <$ac_header>

   13905 _ACEOF
   13906 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13907 case "(($ac_try" in
   13908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13909   *) ac_try_echo=$ac_try;;
   13910 esac
   13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13913   ac_status=$?
   13914   grep -v '^ *+' conftest.er1 >conftest.err
   13915   rm -f conftest.er1
   13916   cat conftest.err >&5
   13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13918   (exit $ac_status); } >/dev/null && {
   13919 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13920 	 test ! -s conftest.err
   13921        }; then
   13922   ac_header_preproc=yes
   13923 else
   13924   echo "$as_me: failed program was:" >&5
   13925 sed 's/^/| /' conftest.$ac_ext >&5
   13926 
   13927   ac_header_preproc=no
   13928 fi
   13929 
   13930 rm -f conftest.err conftest.$ac_ext
   13931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13932 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13933 
   13934 # So?  What about this header?

   13935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13936   yes:no: )
   13937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13941     ac_header_preproc=yes
   13942     ;;
   13943   no:yes:* )
   13944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13956     ( cat <<\_ASBOX
   13957 ## ----------------------------------- ##

   13958 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   13959 ## ----------------------------------- ##

   13960 _ASBOX
   13961      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13962     ;;
   13963 esac
   13964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13967   echo $ECHO_N "(cached) $ECHO_C" >&6
   13968 else
   13969   eval "$as_ac_Header=\$ac_header_preproc"
   13970 fi
   13971 ac_res=`eval echo '${'$as_ac_Header'}'`
   13972 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13973 echo "${ECHO_T}$ac_res" >&6; }
   13974 
   13975 fi
   13976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13977   cat >>confdefs.h <<_ACEOF
   13978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   13979 _ACEOF
   13980 
   13981 fi
   13982 
   13983 done
   13984 
   13985 
   13986 for ac_header in valgrind/valgrind.h
   13987 do
   13988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13993   echo $ECHO_N "(cached) $ECHO_C" >&6
   13994 fi
   13995 ac_res=`eval echo '${'$as_ac_Header'}'`
   13996 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13997 echo "${ECHO_T}$ac_res" >&6; }
   13998 else
   13999   # Is the header compilable?

   14000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14002 cat >conftest.$ac_ext <<_ACEOF
   14003 /* confdefs.h.  */
   14004 _ACEOF
   14005 cat confdefs.h >>conftest.$ac_ext
   14006 cat >>conftest.$ac_ext <<_ACEOF
   14007 /* end confdefs.h.  */
   14008 $ac_includes_default
   14009 #include <$ac_header>

   14010 _ACEOF
   14011 rm -f conftest.$ac_objext
   14012 if { (ac_try="$ac_compile"
   14013 case "(($ac_try" in
   14014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14015   *) ac_try_echo=$ac_try;;
   14016 esac
   14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14018   (eval "$ac_compile") 2>conftest.er1
   14019   ac_status=$?
   14020   grep -v '^ *+' conftest.er1 >conftest.err
   14021   rm -f conftest.er1
   14022   cat conftest.err >&5
   14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14024   (exit $ac_status); } && {
   14025 	 test -z "$ac_c_werror_flag" ||
   14026 	 test ! -s conftest.err
   14027        } && test -s conftest.$ac_objext; then
   14028   ac_header_compiler=yes
   14029 else
   14030   echo "$as_me: failed program was:" >&5
   14031 sed 's/^/| /' conftest.$ac_ext >&5
   14032 
   14033 	ac_header_compiler=no
   14034 fi
   14035 
   14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14038 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14039 
   14040 # Is the header present?

   14041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14043 cat >conftest.$ac_ext <<_ACEOF
   14044 /* confdefs.h.  */
   14045 _ACEOF
   14046 cat confdefs.h >>conftest.$ac_ext
   14047 cat >>conftest.$ac_ext <<_ACEOF
   14048 /* end confdefs.h.  */
   14049 #include <$ac_header>

   14050 _ACEOF
   14051 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14052 case "(($ac_try" in
   14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14054   *) ac_try_echo=$ac_try;;
   14055 esac
   14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14058   ac_status=$?
   14059   grep -v '^ *+' conftest.er1 >conftest.err
   14060   rm -f conftest.er1
   14061   cat conftest.err >&5
   14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14063   (exit $ac_status); } >/dev/null && {
   14064 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   14065 	 test ! -s conftest.err
   14066        }; then
   14067   ac_header_preproc=yes
   14068 else
   14069   echo "$as_me: failed program was:" >&5
   14070 sed 's/^/| /' conftest.$ac_ext >&5
   14071 
   14072   ac_header_preproc=no
   14073 fi
   14074 
   14075 rm -f conftest.err conftest.$ac_ext
   14076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14077 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14078 
   14079 # So?  What about this header?

   14080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14081   yes:no: )
   14082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14086     ac_header_preproc=yes
   14087     ;;
   14088   no:yes:* )
   14089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14101     ( cat <<\_ASBOX
   14102 ## ----------------------------------- ##

   14103 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   14104 ## ----------------------------------- ##

   14105 _ASBOX
   14106      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14107     ;;
   14108 esac
   14109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14112   echo $ECHO_N "(cached) $ECHO_C" >&6
   14113 else
   14114   eval "$as_ac_Header=\$ac_header_preproc"
   14115 fi
   14116 ac_res=`eval echo '${'$as_ac_Header'}'`
   14117 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14118 echo "${ECHO_T}$ac_res" >&6; }
   14119 
   14120 fi
   14121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14122   cat >>confdefs.h <<_ACEOF
   14123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   14124 _ACEOF
   14125 
   14126 fi
   14127 
   14128 done
   14129 
   14130 
   14131 for ac_header in fenv.h
   14132 do
   14133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14135   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14138   echo $ECHO_N "(cached) $ECHO_C" >&6
   14139 fi
   14140 ac_res=`eval echo '${'$as_ac_Header'}'`
   14141 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14142 echo "${ECHO_T}$ac_res" >&6; }
   14143 else
   14144   # Is the header compilable?

   14145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14147 cat >conftest.$ac_ext <<_ACEOF
   14148 /* confdefs.h.  */
   14149 _ACEOF
   14150 cat confdefs.h >>conftest.$ac_ext
   14151 cat >>conftest.$ac_ext <<_ACEOF
   14152 /* end confdefs.h.  */
   14153 $ac_includes_default
   14154 #include <$ac_header>

   14155 _ACEOF
   14156 rm -f conftest.$ac_objext
   14157 if { (ac_try="$ac_compile"
   14158 case "(($ac_try" in
   14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14160   *) ac_try_echo=$ac_try;;
   14161 esac
   14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14163   (eval "$ac_compile") 2>conftest.er1
   14164   ac_status=$?
   14165   grep -v '^ *+' conftest.er1 >conftest.err
   14166   rm -f conftest.er1
   14167   cat conftest.err >&5
   14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14169   (exit $ac_status); } && {
   14170 	 test -z "$ac_c_werror_flag" ||
   14171 	 test ! -s conftest.err
   14172        } && test -s conftest.$ac_objext; then
   14173   ac_header_compiler=yes
   14174 else
   14175   echo "$as_me: failed program was:" >&5
   14176 sed 's/^/| /' conftest.$ac_ext >&5
   14177 
   14178 	ac_header_compiler=no
   14179 fi
   14180 
   14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14183 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14184 
   14185 # Is the header present?

   14186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14188 cat >conftest.$ac_ext <<_ACEOF
   14189 /* confdefs.h.  */
   14190 _ACEOF
   14191 cat confdefs.h >>conftest.$ac_ext
   14192 cat >>conftest.$ac_ext <<_ACEOF
   14193 /* end confdefs.h.  */
   14194 #include <$ac_header>

   14195 _ACEOF
   14196 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14197 case "(($ac_try" in
   14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14199   *) ac_try_echo=$ac_try;;
   14200 esac
   14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14203   ac_status=$?
   14204   grep -v '^ *+' conftest.er1 >conftest.err
   14205   rm -f conftest.er1
   14206   cat conftest.err >&5
   14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14208   (exit $ac_status); } >/dev/null && {
   14209 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   14210 	 test ! -s conftest.err
   14211        }; then
   14212   ac_header_preproc=yes
   14213 else
   14214   echo "$as_me: failed program was:" >&5
   14215 sed 's/^/| /' conftest.$ac_ext >&5
   14216 
   14217   ac_header_preproc=no
   14218 fi
   14219 
   14220 rm -f conftest.err conftest.$ac_ext
   14221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14222 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14223 
   14224 # So?  What about this header?

   14225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14226   yes:no: )
   14227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14231     ac_header_preproc=yes
   14232     ;;
   14233   no:yes:* )
   14234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14246     ( cat <<\_ASBOX
   14247 ## ----------------------------------- ##

   14248 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   14249 ## ----------------------------------- ##

   14250 _ASBOX
   14251      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14252     ;;
   14253 esac
   14254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14257   echo $ECHO_N "(cached) $ECHO_C" >&6
   14258 else
   14259   eval "$as_ac_Header=\$ac_header_preproc"
   14260 fi
   14261 ac_res=`eval echo '${'$as_ac_Header'}'`
   14262 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14263 echo "${ECHO_T}$ac_res" >&6; }
   14264 
   14265 fi
   14266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14267   cat >>confdefs.h <<_ACEOF
   14268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   14269 _ACEOF
   14270 
   14271 fi
   14272 
   14273 done
   14274 
   14275 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   14276 
   14277 for ac_header in pthread.h
   14278 do
   14279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14284   echo $ECHO_N "(cached) $ECHO_C" >&6
   14285 fi
   14286 ac_res=`eval echo '${'$as_ac_Header'}'`
   14287 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14288 echo "${ECHO_T}$ac_res" >&6; }
   14289 else
   14290   # Is the header compilable?

   14291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14293 cat >conftest.$ac_ext <<_ACEOF
   14294 /* confdefs.h.  */
   14295 _ACEOF
   14296 cat confdefs.h >>conftest.$ac_ext
   14297 cat >>conftest.$ac_ext <<_ACEOF
   14298 /* end confdefs.h.  */
   14299 $ac_includes_default
   14300 #include <$ac_header>

   14301 _ACEOF
   14302 rm -f conftest.$ac_objext
   14303 if { (ac_try="$ac_compile"
   14304 case "(($ac_try" in
   14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14306   *) ac_try_echo=$ac_try;;
   14307 esac
   14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14309   (eval "$ac_compile") 2>conftest.er1
   14310   ac_status=$?
   14311   grep -v '^ *+' conftest.er1 >conftest.err
   14312   rm -f conftest.er1
   14313   cat conftest.err >&5
   14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14315   (exit $ac_status); } && {
   14316 	 test -z "$ac_c_werror_flag" ||
   14317 	 test ! -s conftest.err
   14318        } && test -s conftest.$ac_objext; then
   14319   ac_header_compiler=yes
   14320 else
   14321   echo "$as_me: failed program was:" >&5
   14322 sed 's/^/| /' conftest.$ac_ext >&5
   14323 
   14324 	ac_header_compiler=no
   14325 fi
   14326 
   14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14329 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14330 
   14331 # Is the header present?

   14332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14334 cat >conftest.$ac_ext <<_ACEOF
   14335 /* confdefs.h.  */
   14336 _ACEOF
   14337 cat confdefs.h >>conftest.$ac_ext
   14338 cat >>conftest.$ac_ext <<_ACEOF
   14339 /* end confdefs.h.  */
   14340 #include <$ac_header>

   14341 _ACEOF
   14342 if { (ac_try="$ac_cpp conftest.$ac_ext"
   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_cpp conftest.$ac_ext") 2>conftest.er1
   14349   ac_status=$?
   14350   grep -v '^ *+' conftest.er1 >conftest.err
   14351   rm -f conftest.er1
   14352   cat conftest.err >&5
   14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14354   (exit $ac_status); } >/dev/null && {
   14355 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   14356 	 test ! -s conftest.err
   14357        }; then
   14358   ac_header_preproc=yes
   14359 else
   14360   echo "$as_me: failed program was:" >&5
   14361 sed 's/^/| /' conftest.$ac_ext >&5
   14362 
   14363   ac_header_preproc=no
   14364 fi
   14365 
   14366 rm -f conftest.err conftest.$ac_ext
   14367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14368 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14369 
   14370 # So?  What about this header?

   14371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14372   yes:no: )
   14373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14377     ac_header_preproc=yes
   14378     ;;
   14379   no:yes:* )
   14380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14392     ( cat <<\_ASBOX
   14393 ## ----------------------------------- ##

   14394 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   14395 ## ----------------------------------- ##

   14396 _ASBOX
   14397      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14398     ;;
   14399 esac
   14400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14403   echo $ECHO_N "(cached) $ECHO_C" >&6
   14404 else
   14405   eval "$as_ac_Header=\$ac_header_preproc"
   14406 fi
   14407 ac_res=`eval echo '${'$as_ac_Header'}'`
   14408 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14409 echo "${ECHO_T}$ac_res" >&6; }
   14410 
   14411 fi
   14412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14413   cat >>confdefs.h <<_ACEOF
   14414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   14415 _ACEOF
   14416  HAVE_PTHREAD=1
   14417 
   14418 else
   14419   HAVE_PTHREAD=0
   14420 
   14421 fi
   14422 
   14423 done
   14424 
   14425 else
   14426   HAVE_PTHREAD=0
   14427 
   14428 fi
   14429 
   14430 if test "$llvm_cv_enable_libffi" = "yes" ; then
   14431 
   14432 
   14433 for ac_header in ffi.h ffi/ffi.h
   14434 do
   14435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14437   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14440   echo $ECHO_N "(cached) $ECHO_C" >&6
   14441 fi
   14442 ac_res=`eval echo '${'$as_ac_Header'}'`
   14443 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14444 echo "${ECHO_T}$ac_res" >&6; }
   14445 else
   14446   # Is the header compilable?

   14447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14449 cat >conftest.$ac_ext <<_ACEOF
   14450 /* confdefs.h.  */
   14451 _ACEOF
   14452 cat confdefs.h >>conftest.$ac_ext
   14453 cat >>conftest.$ac_ext <<_ACEOF
   14454 /* end confdefs.h.  */
   14455 $ac_includes_default
   14456 #include <$ac_header>

   14457 _ACEOF
   14458 rm -f conftest.$ac_objext
   14459 if { (ac_try="$ac_compile"
   14460 case "(($ac_try" in
   14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14462   *) ac_try_echo=$ac_try;;
   14463 esac
   14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14465   (eval "$ac_compile") 2>conftest.er1
   14466   ac_status=$?
   14467   grep -v '^ *+' conftest.er1 >conftest.err
   14468   rm -f conftest.er1
   14469   cat conftest.err >&5
   14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14471   (exit $ac_status); } && {
   14472 	 test -z "$ac_c_werror_flag" ||
   14473 	 test ! -s conftest.err
   14474        } && test -s conftest.$ac_objext; then
   14475   ac_header_compiler=yes
   14476 else
   14477   echo "$as_me: failed program was:" >&5
   14478 sed 's/^/| /' conftest.$ac_ext >&5
   14479 
   14480 	ac_header_compiler=no
   14481 fi
   14482 
   14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14485 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14486 
   14487 # Is the header present?

   14488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14490 cat >conftest.$ac_ext <<_ACEOF
   14491 /* confdefs.h.  */
   14492 _ACEOF
   14493 cat confdefs.h >>conftest.$ac_ext
   14494 cat >>conftest.$ac_ext <<_ACEOF
   14495 /* end confdefs.h.  */
   14496 #include <$ac_header>

   14497 _ACEOF
   14498 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14499 case "(($ac_try" in
   14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14501   *) ac_try_echo=$ac_try;;
   14502 esac
   14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14505   ac_status=$?
   14506   grep -v '^ *+' conftest.er1 >conftest.err
   14507   rm -f conftest.er1
   14508   cat conftest.err >&5
   14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14510   (exit $ac_status); } >/dev/null && {
   14511 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   14512 	 test ! -s conftest.err
   14513        }; then
   14514   ac_header_preproc=yes
   14515 else
   14516   echo "$as_me: failed program was:" >&5
   14517 sed 's/^/| /' conftest.$ac_ext >&5
   14518 
   14519   ac_header_preproc=no
   14520 fi
   14521 
   14522 rm -f conftest.err conftest.$ac_ext
   14523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14524 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14525 
   14526 # So?  What about this header?

   14527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14528   yes:no: )
   14529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14533     ac_header_preproc=yes
   14534     ;;
   14535   no:yes:* )
   14536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14548     ( cat <<\_ASBOX
   14549 ## ----------------------------------- ##

   14550 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   14551 ## ----------------------------------- ##

   14552 _ASBOX
   14553      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14554     ;;
   14555 esac
   14556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14559   echo $ECHO_N "(cached) $ECHO_C" >&6
   14560 else
   14561   eval "$as_ac_Header=\$ac_header_preproc"
   14562 fi
   14563 ac_res=`eval echo '${'$as_ac_Header'}'`
   14564 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14565 echo "${ECHO_T}$ac_res" >&6; }
   14566 
   14567 fi
   14568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14569   cat >>confdefs.h <<_ACEOF
   14570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   14571 _ACEOF
   14572 
   14573 fi
   14574 
   14575 done
   14576 
   14577 fi
   14578 
   14579 
   14580 for ac_header in CrashReporterClient.h
   14581 do
   14582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14584   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14587   echo $ECHO_N "(cached) $ECHO_C" >&6
   14588 fi
   14589 ac_res=`eval echo '${'$as_ac_Header'}'`
   14590 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14591 echo "${ECHO_T}$ac_res" >&6; }
   14592 else
   14593   # Is the header compilable?

   14594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   14595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   14596 cat >conftest.$ac_ext <<_ACEOF
   14597 /* confdefs.h.  */
   14598 _ACEOF
   14599 cat confdefs.h >>conftest.$ac_ext
   14600 cat >>conftest.$ac_ext <<_ACEOF
   14601 /* end confdefs.h.  */
   14602 $ac_includes_default
   14603 #include <$ac_header>

   14604 _ACEOF
   14605 rm -f conftest.$ac_objext
   14606 if { (ac_try="$ac_compile"
   14607 case "(($ac_try" in
   14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14609   *) ac_try_echo=$ac_try;;
   14610 esac
   14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14612   (eval "$ac_compile") 2>conftest.er1
   14613   ac_status=$?
   14614   grep -v '^ *+' conftest.er1 >conftest.err
   14615   rm -f conftest.er1
   14616   cat conftest.err >&5
   14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14618   (exit $ac_status); } && {
   14619 	 test -z "$ac_c_werror_flag" ||
   14620 	 test ! -s conftest.err
   14621        } && test -s conftest.$ac_objext; then
   14622   ac_header_compiler=yes
   14623 else
   14624   echo "$as_me: failed program was:" >&5
   14625 sed 's/^/| /' conftest.$ac_ext >&5
   14626 
   14627 	ac_header_compiler=no
   14628 fi
   14629 
   14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   14632 echo "${ECHO_T}$ac_header_compiler" >&6; }
   14633 
   14634 # Is the header present?

   14635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   14636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   14637 cat >conftest.$ac_ext <<_ACEOF
   14638 /* confdefs.h.  */
   14639 _ACEOF
   14640 cat confdefs.h >>conftest.$ac_ext
   14641 cat >>conftest.$ac_ext <<_ACEOF
   14642 /* end confdefs.h.  */
   14643 #include <$ac_header>

   14644 _ACEOF
   14645 if { (ac_try="$ac_cpp conftest.$ac_ext"
   14646 case "(($ac_try" in
   14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14648   *) ac_try_echo=$ac_try;;
   14649 esac
   14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   14652   ac_status=$?
   14653   grep -v '^ *+' conftest.er1 >conftest.err
   14654   rm -f conftest.er1
   14655   cat conftest.err >&5
   14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14657   (exit $ac_status); } >/dev/null && {
   14658 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   14659 	 test ! -s conftest.err
   14660        }; then
   14661   ac_header_preproc=yes
   14662 else
   14663   echo "$as_me: failed program was:" >&5
   14664 sed 's/^/| /' conftest.$ac_ext >&5
   14665 
   14666   ac_header_preproc=no
   14667 fi
   14668 
   14669 rm -f conftest.err conftest.$ac_ext
   14670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   14671 echo "${ECHO_T}$ac_header_preproc" >&6; }
   14672 
   14673 # So?  What about this header?

   14674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   14675   yes:no: )
   14676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   14677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   14678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   14679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   14680     ac_header_preproc=yes
   14681     ;;
   14682   no:yes:* )
   14683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   14684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   14685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   14686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   14687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   14688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   14689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   14690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   14691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   14692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   14693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   14694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   14695     ( cat <<\_ASBOX
   14696 ## ----------------------------------- ##

   14697 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   14698 ## ----------------------------------- ##

   14699 _ASBOX
   14700      ) | sed "s/^/$as_me: WARNING:     /" >&2
   14701     ;;
   14702 esac
   14703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   14704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   14706   echo $ECHO_N "(cached) $ECHO_C" >&6
   14707 else
   14708   eval "$as_ac_Header=\$ac_header_preproc"
   14709 fi
   14710 ac_res=`eval echo '${'$as_ac_Header'}'`
   14711 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14712 echo "${ECHO_T}$ac_res" >&6; }
   14713 
   14714 fi
   14715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   14716   cat >>confdefs.h <<_ACEOF
   14717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   14718 _ACEOF
   14719 
   14720 fi
   14721 
   14722 done
   14723 
   14724 
   14725 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
   14726 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
   14727 cat >conftest.$ac_ext <<_ACEOF
   14728 /* confdefs.h.  */
   14729 _ACEOF
   14730 cat confdefs.h >>conftest.$ac_ext
   14731 cat >>conftest.$ac_ext <<_ACEOF
   14732 /* end confdefs.h.  */
   14733 extern const char *__crashreporter_info__;
   14734       int main() {
   14735         __crashreporter_info__ = "test";
   14736         return 0;
   14737       }
   14738 
   14739 _ACEOF
   14740 rm -f conftest.$ac_objext conftest$ac_exeext
   14741 if { (ac_try="$ac_link"
   14742 case "(($ac_try" in
   14743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14744   *) ac_try_echo=$ac_try;;
   14745 esac
   14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14747   (eval "$ac_link") 2>conftest.er1
   14748   ac_status=$?
   14749   grep -v '^ *+' conftest.er1 >conftest.err
   14750   rm -f conftest.er1
   14751   cat conftest.err >&5
   14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14753   (exit $ac_status); } && {
   14754 	 test -z "$ac_c_werror_flag" ||
   14755 	 test ! -s conftest.err
   14756        } && test -s conftest$ac_exeext &&
   14757        $as_test_x conftest$ac_exeext; then
   14758   { echo "$as_me:$LINENO: result: yes" >&5
   14759 echo "${ECHO_T}yes" >&6; }
   14760 
   14761 cat >>confdefs.h <<\_ACEOF
   14762 #define HAVE_CRASHREPORTER_INFO 1

   14763 _ACEOF
   14764 
   14765 else
   14766   echo "$as_me: failed program was:" >&5
   14767 sed 's/^/| /' conftest.$ac_ext >&5
   14768 
   14769 	{ echo "$as_me:$LINENO: result: no" >&5
   14770 echo "${ECHO_T}no" >&6; }
   14771 
   14772 cat >>confdefs.h <<\_ACEOF
   14773 #define HAVE_CRASHREPORTER_INFO 0

   14774 _ACEOF
   14775 
   14776 fi
   14777 
   14778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14779       conftest$ac_exeext conftest.$ac_ext
   14780 
   14781 
   14782 
   14783 
   14784   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
   14785 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
   14786 if test "${ac_cv_huge_val_sanity+set}" = set; then
   14787   echo $ECHO_N "(cached) $ECHO_C" >&6
   14788 else
   14789 
   14790     ac_ext=cpp
   14791 ac_cpp='$CXXCPP $CPPFLAGS'
   14792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   14795 
   14796     ac_save_CXXFLAGS=$CXXFLAGS
   14797     CXXFLAGS=-pedantic
   14798     if test "$cross_compiling" = yes; then
   14799   ac_cv_huge_val_sanity=yes
   14800 else
   14801   cat >conftest.$ac_ext <<_ACEOF
   14802 /* confdefs.h.  */
   14803 _ACEOF
   14804 cat confdefs.h >>conftest.$ac_ext
   14805 cat >>conftest.$ac_ext <<_ACEOF
   14806 /* end confdefs.h.  */
   14807 #include <math.h>

   14808 int
   14809 main ()
   14810 {
   14811 double x = HUGE_VAL; return x != x;
   14812   ;
   14813   return 0;
   14814 }
   14815 _ACEOF
   14816 rm -f conftest$ac_exeext
   14817 if { (ac_try="$ac_link"
   14818 case "(($ac_try" in
   14819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14820   *) ac_try_echo=$ac_try;;
   14821 esac
   14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14823   (eval "$ac_link") 2>&5
   14824   ac_status=$?
   14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   14827   { (case "(($ac_try" in
   14828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14829   *) ac_try_echo=$ac_try;;
   14830 esac
   14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14832   (eval "$ac_try") 2>&5
   14833   ac_status=$?
   14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14835   (exit $ac_status); }; }; then
   14836   ac_cv_huge_val_sanity=yes
   14837 else
   14838   echo "$as_me: program exited with status $ac_status" >&5
   14839 echo "$as_me: failed program was:" >&5
   14840 sed 's/^/| /' conftest.$ac_ext >&5
   14841 
   14842 ( exit $ac_status )
   14843 ac_cv_huge_val_sanity=no
   14844 fi
   14845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   14846 fi
   14847 
   14848 
   14849     CXXFLAGS=$ac_save_CXXFLAGS
   14850     ac_ext=c
   14851 ac_cpp='$CPP $CPPFLAGS'
   14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14855 
   14856 
   14857 fi
   14858 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
   14859 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
   14860   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
   14861 
   14862 
   14863 { echo "$as_me:$LINENO: checking for pid_t" >&5
   14864 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
   14865 if test "${ac_cv_type_pid_t+set}" = set; then
   14866   echo $ECHO_N "(cached) $ECHO_C" >&6
   14867 else
   14868   cat >conftest.$ac_ext <<_ACEOF
   14869 /* confdefs.h.  */
   14870 _ACEOF
   14871 cat confdefs.h >>conftest.$ac_ext
   14872 cat >>conftest.$ac_ext <<_ACEOF
   14873 /* end confdefs.h.  */
   14874 $ac_includes_default
   14875 typedef pid_t ac__type_new_;
   14876 int
   14877 main ()
   14878 {
   14879 if ((ac__type_new_ *) 0)
   14880   return 0;
   14881 if (sizeof (ac__type_new_))
   14882   return 0;
   14883   ;
   14884   return 0;
   14885 }
   14886 _ACEOF
   14887 rm -f conftest.$ac_objext
   14888 if { (ac_try="$ac_compile"
   14889 case "(($ac_try" in
   14890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14891   *) ac_try_echo=$ac_try;;
   14892 esac
   14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14894   (eval "$ac_compile") 2>conftest.er1
   14895   ac_status=$?
   14896   grep -v '^ *+' conftest.er1 >conftest.err
   14897   rm -f conftest.er1
   14898   cat conftest.err >&5
   14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14900   (exit $ac_status); } && {
   14901 	 test -z "$ac_c_werror_flag" ||
   14902 	 test ! -s conftest.err
   14903        } && test -s conftest.$ac_objext; then
   14904   ac_cv_type_pid_t=yes
   14905 else
   14906   echo "$as_me: failed program was:" >&5
   14907 sed 's/^/| /' conftest.$ac_ext >&5
   14908 
   14909 	ac_cv_type_pid_t=no
   14910 fi
   14911 
   14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14913 fi
   14914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   14915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
   14916 if test $ac_cv_type_pid_t = yes; then
   14917   :
   14918 else
   14919 
   14920 cat >>confdefs.h <<_ACEOF
   14921 #define pid_t int

   14922 _ACEOF
   14923 
   14924 fi
   14925 
   14926 { echo "$as_me:$LINENO: checking for size_t" >&5
   14927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
   14928 if test "${ac_cv_type_size_t+set}" = set; then
   14929   echo $ECHO_N "(cached) $ECHO_C" >&6
   14930 else
   14931   cat >conftest.$ac_ext <<_ACEOF
   14932 /* confdefs.h.  */
   14933 _ACEOF
   14934 cat confdefs.h >>conftest.$ac_ext
   14935 cat >>conftest.$ac_ext <<_ACEOF
   14936 /* end confdefs.h.  */
   14937 $ac_includes_default
   14938 typedef size_t ac__type_new_;
   14939 int
   14940 main ()
   14941 {
   14942 if ((ac__type_new_ *) 0)
   14943   return 0;
   14944 if (sizeof (ac__type_new_))
   14945   return 0;
   14946   ;
   14947   return 0;
   14948 }
   14949 _ACEOF
   14950 rm -f conftest.$ac_objext
   14951 if { (ac_try="$ac_compile"
   14952 case "(($ac_try" in
   14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14954   *) ac_try_echo=$ac_try;;
   14955 esac
   14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14957   (eval "$ac_compile") 2>conftest.er1
   14958   ac_status=$?
   14959   grep -v '^ *+' conftest.er1 >conftest.err
   14960   rm -f conftest.er1
   14961   cat conftest.err >&5
   14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14963   (exit $ac_status); } && {
   14964 	 test -z "$ac_c_werror_flag" ||
   14965 	 test ! -s conftest.err
   14966        } && test -s conftest.$ac_objext; then
   14967   ac_cv_type_size_t=yes
   14968 else
   14969   echo "$as_me: failed program was:" >&5
   14970 sed 's/^/| /' conftest.$ac_ext >&5
   14971 
   14972 	ac_cv_type_size_t=no
   14973 fi
   14974 
   14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14976 fi
   14977 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
   14978 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
   14979 if test $ac_cv_type_size_t = yes; then
   14980   :
   14981 else
   14982 
   14983 cat >>confdefs.h <<_ACEOF
   14984 #define size_t unsigned int

   14985 _ACEOF
   14986 
   14987 fi
   14988 
   14989 
   14990 cat >>confdefs.h <<_ACEOF
   14991 #define RETSIGTYPE void

   14992 _ACEOF
   14993 
   14994 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
   14995 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
   14996 if test "${ac_cv_struct_tm+set}" = set; then
   14997   echo $ECHO_N "(cached) $ECHO_C" >&6
   14998 else
   14999   cat >conftest.$ac_ext <<_ACEOF
   15000 /* confdefs.h.  */
   15001 _ACEOF
   15002 cat confdefs.h >>conftest.$ac_ext
   15003 cat >>conftest.$ac_ext <<_ACEOF
   15004 /* end confdefs.h.  */
   15005 #include <sys/types.h>

   15006 #include <time.h>

   15007 
   15008 int
   15009 main ()
   15010 {
   15011 struct tm tm;
   15012 				     int *p = &tm.tm_sec;
   15013  				     return !p;
   15014   ;
   15015   return 0;
   15016 }
   15017 _ACEOF
   15018 rm -f conftest.$ac_objext
   15019 if { (ac_try="$ac_compile"
   15020 case "(($ac_try" in
   15021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15022   *) ac_try_echo=$ac_try;;
   15023 esac
   15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15025   (eval "$ac_compile") 2>conftest.er1
   15026   ac_status=$?
   15027   grep -v '^ *+' conftest.er1 >conftest.err
   15028   rm -f conftest.er1
   15029   cat conftest.err >&5
   15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15031   (exit $ac_status); } && {
   15032 	 test -z "$ac_c_werror_flag" ||
   15033 	 test ! -s conftest.err
   15034        } && test -s conftest.$ac_objext; then
   15035   ac_cv_struct_tm=time.h
   15036 else
   15037   echo "$as_me: failed program was:" >&5
   15038 sed 's/^/| /' conftest.$ac_ext >&5
   15039 
   15040 	ac_cv_struct_tm=sys/time.h
   15041 fi
   15042 
   15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15044 fi
   15045 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
   15046 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
   15047 if test $ac_cv_struct_tm = sys/time.h; then
   15048 
   15049 cat >>confdefs.h <<\_ACEOF
   15050 #define TM_IN_SYS_TIME 1

   15051 _ACEOF
   15052 
   15053 fi
   15054 
   15055 { echo "$as_me:$LINENO: checking for int64_t" >&5
   15056 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   15057 if test "${ac_cv_type_int64_t+set}" = set; then
   15058   echo $ECHO_N "(cached) $ECHO_C" >&6
   15059 else
   15060   cat >conftest.$ac_ext <<_ACEOF
   15061 /* confdefs.h.  */
   15062 _ACEOF
   15063 cat confdefs.h >>conftest.$ac_ext
   15064 cat >>conftest.$ac_ext <<_ACEOF
   15065 /* end confdefs.h.  */
   15066 $ac_includes_default
   15067 typedef int64_t ac__type_new_;
   15068 int
   15069 main ()
   15070 {
   15071 if ((ac__type_new_ *) 0)
   15072   return 0;
   15073 if (sizeof (ac__type_new_))
   15074   return 0;
   15075   ;
   15076   return 0;
   15077 }
   15078 _ACEOF
   15079 rm -f conftest.$ac_objext
   15080 if { (ac_try="$ac_compile"
   15081 case "(($ac_try" in
   15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15083   *) ac_try_echo=$ac_try;;
   15084 esac
   15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15086   (eval "$ac_compile") 2>conftest.er1
   15087   ac_status=$?
   15088   grep -v '^ *+' conftest.er1 >conftest.err
   15089   rm -f conftest.er1
   15090   cat conftest.err >&5
   15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15092   (exit $ac_status); } && {
   15093 	 test -z "$ac_c_werror_flag" ||
   15094 	 test ! -s conftest.err
   15095        } && test -s conftest.$ac_objext; then
   15096   ac_cv_type_int64_t=yes
   15097 else
   15098   echo "$as_me: failed program was:" >&5
   15099 sed 's/^/| /' conftest.$ac_ext >&5
   15100 
   15101 	ac_cv_type_int64_t=no
   15102 fi
   15103 
   15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15105 fi
   15106 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   15107 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   15108 if test $ac_cv_type_int64_t = yes; then
   15109 
   15110 cat >>confdefs.h <<_ACEOF
   15111 #define HAVE_INT64_T 1

   15112 _ACEOF
   15113 
   15114 
   15115 else
   15116   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
   15117 echo "$as_me: error: Type int64_t required but not found" >&2;}
   15118    { (exit 1); exit 1; }; }
   15119 fi
   15120 
   15121 { echo "$as_me:$LINENO: checking for uint64_t" >&5
   15122 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
   15123 if test "${ac_cv_type_uint64_t+set}" = set; then
   15124   echo $ECHO_N "(cached) $ECHO_C" >&6
   15125 else
   15126   cat >conftest.$ac_ext <<_ACEOF
   15127 /* confdefs.h.  */
   15128 _ACEOF
   15129 cat confdefs.h >>conftest.$ac_ext
   15130 cat >>conftest.$ac_ext <<_ACEOF
   15131 /* end confdefs.h.  */
   15132 $ac_includes_default
   15133 typedef uint64_t ac__type_new_;
   15134 int
   15135 main ()
   15136 {
   15137 if ((ac__type_new_ *) 0)
   15138   return 0;
   15139 if (sizeof (ac__type_new_))
   15140   return 0;
   15141   ;
   15142   return 0;
   15143 }
   15144 _ACEOF
   15145 rm -f conftest.$ac_objext
   15146 if { (ac_try="$ac_compile"
   15147 case "(($ac_try" in
   15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15149   *) ac_try_echo=$ac_try;;
   15150 esac
   15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15152   (eval "$ac_compile") 2>conftest.er1
   15153   ac_status=$?
   15154   grep -v '^ *+' conftest.er1 >conftest.err
   15155   rm -f conftest.er1
   15156   cat conftest.err >&5
   15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15158   (exit $ac_status); } && {
   15159 	 test -z "$ac_c_werror_flag" ||
   15160 	 test ! -s conftest.err
   15161        } && test -s conftest.$ac_objext; then
   15162   ac_cv_type_uint64_t=yes
   15163 else
   15164   echo "$as_me: failed program was:" >&5
   15165 sed 's/^/| /' conftest.$ac_ext >&5
   15166 
   15167 	ac_cv_type_uint64_t=no
   15168 fi
   15169 
   15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15171 fi
   15172 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
   15173 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
   15174 if test $ac_cv_type_uint64_t = yes; then
   15175 
   15176 cat >>confdefs.h <<_ACEOF
   15177 #define HAVE_UINT64_T 1

   15178 _ACEOF
   15179 
   15180 
   15181 else
   15182   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   15183 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   15184 if test "${ac_cv_type_u_int64_t+set}" = set; then
   15185   echo $ECHO_N "(cached) $ECHO_C" >&6
   15186 else
   15187   cat >conftest.$ac_ext <<_ACEOF
   15188 /* confdefs.h.  */
   15189 _ACEOF
   15190 cat confdefs.h >>conftest.$ac_ext
   15191 cat >>conftest.$ac_ext <<_ACEOF
   15192 /* end confdefs.h.  */
   15193 $ac_includes_default
   15194 typedef u_int64_t ac__type_new_;
   15195 int
   15196 main ()
   15197 {
   15198 if ((ac__type_new_ *) 0)
   15199   return 0;
   15200 if (sizeof (ac__type_new_))
   15201   return 0;
   15202   ;
   15203   return 0;
   15204 }
   15205 _ACEOF
   15206 rm -f conftest.$ac_objext
   15207 if { (ac_try="$ac_compile"
   15208 case "(($ac_try" in
   15209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15210   *) ac_try_echo=$ac_try;;
   15211 esac
   15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15213   (eval "$ac_compile") 2>conftest.er1
   15214   ac_status=$?
   15215   grep -v '^ *+' conftest.er1 >conftest.err
   15216   rm -f conftest.er1
   15217   cat conftest.err >&5
   15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15219   (exit $ac_status); } && {
   15220 	 test -z "$ac_c_werror_flag" ||
   15221 	 test ! -s conftest.err
   15222        } && test -s conftest.$ac_objext; then
   15223   ac_cv_type_u_int64_t=yes
   15224 else
   15225   echo "$as_me: failed program was:" >&5
   15226 sed 's/^/| /' conftest.$ac_ext >&5
   15227 
   15228 	ac_cv_type_u_int64_t=no
   15229 fi
   15230 
   15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15232 fi
   15233 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   15234 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   15235 if test $ac_cv_type_u_int64_t = yes; then
   15236 
   15237 cat >>confdefs.h <<_ACEOF
   15238 #define HAVE_U_INT64_T 1

   15239 _ACEOF
   15240 
   15241 
   15242 else
   15243   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
   15244 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
   15245    { (exit 1); exit 1; }; }
   15246 fi
   15247 
   15248 fi
   15249 
   15250 
   15251 
   15252 
   15253 
   15254 
   15255 
   15256 
   15257 
   15258 
   15259 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
   15260 do
   15261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15265   echo $ECHO_N "(cached) $ECHO_C" >&6
   15266 else
   15267   cat >conftest.$ac_ext <<_ACEOF
   15268 /* confdefs.h.  */
   15269 _ACEOF
   15270 cat confdefs.h >>conftest.$ac_ext
   15271 cat >>conftest.$ac_ext <<_ACEOF
   15272 /* end confdefs.h.  */
   15273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15275 #define $ac_func innocuous_$ac_func

   15276 
   15277 /* System header to define __stub macros and hopefully few prototypes,
   15278     which can conflict with char $ac_func (); below.
   15279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15280     <limits.h> exists even on freestanding compilers.  */
   15281 
   15282 #ifdef __STDC__

   15283 # include <limits.h>

   15284 #else

   15285 # include <assert.h>

   15286 #endif

   15287 
   15288 #undef $ac_func

   15289 
   15290 /* Override any GCC internal prototype to avoid an error.
   15291    Use char because int might match the return type of a GCC
   15292    builtin and then its argument prototype would still apply.  */
   15293 #ifdef __cplusplus

   15294 extern "C"
   15295 #endif

   15296 char $ac_func ();
   15297 /* The GNU C library defines this for functions which it implements
   15298     to always fail with ENOSYS.  Some functions are actually named
   15299     something starting with __ and the normal name is an alias.  */
   15300 #if defined __stub_$ac_func || defined __stub___$ac_func

   15301 choke me
   15302 #endif

   15303 
   15304 int
   15305 main ()
   15306 {
   15307 return $ac_func ();
   15308   ;
   15309   return 0;
   15310 }
   15311 _ACEOF
   15312 rm -f conftest.$ac_objext conftest$ac_exeext
   15313 if { (ac_try="$ac_link"
   15314 case "(($ac_try" in
   15315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15316   *) ac_try_echo=$ac_try;;
   15317 esac
   15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15319   (eval "$ac_link") 2>conftest.er1
   15320   ac_status=$?
   15321   grep -v '^ *+' conftest.er1 >conftest.err
   15322   rm -f conftest.er1
   15323   cat conftest.err >&5
   15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15325   (exit $ac_status); } && {
   15326 	 test -z "$ac_c_werror_flag" ||
   15327 	 test ! -s conftest.err
   15328        } && test -s conftest$ac_exeext &&
   15329        $as_test_x conftest$ac_exeext; then
   15330   eval "$as_ac_var=yes"
   15331 else
   15332   echo "$as_me: failed program was:" >&5
   15333 sed 's/^/| /' conftest.$ac_ext >&5
   15334 
   15335 	eval "$as_ac_var=no"
   15336 fi
   15337 
   15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15339       conftest$ac_exeext conftest.$ac_ext
   15340 fi
   15341 ac_res=`eval echo '${'$as_ac_var'}'`
   15342 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15343 echo "${ECHO_T}$ac_res" >&6; }
   15344 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15345   cat >>confdefs.h <<_ACEOF
   15346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15347 _ACEOF
   15348 
   15349 fi
   15350 done
   15351 
   15352 
   15353 
   15354 
   15355 
   15356 for ac_func in powf fmodf strtof round
   15357 do
   15358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15362   echo $ECHO_N "(cached) $ECHO_C" >&6
   15363 else
   15364   cat >conftest.$ac_ext <<_ACEOF
   15365 /* confdefs.h.  */
   15366 _ACEOF
   15367 cat confdefs.h >>conftest.$ac_ext
   15368 cat >>conftest.$ac_ext <<_ACEOF
   15369 /* end confdefs.h.  */
   15370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15372 #define $ac_func innocuous_$ac_func

   15373 
   15374 /* System header to define __stub macros and hopefully few prototypes,
   15375     which can conflict with char $ac_func (); below.
   15376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15377     <limits.h> exists even on freestanding compilers.  */
   15378 
   15379 #ifdef __STDC__

   15380 # include <limits.h>

   15381 #else

   15382 # include <assert.h>

   15383 #endif

   15384 
   15385 #undef $ac_func

   15386 
   15387 /* Override any GCC internal prototype to avoid an error.
   15388    Use char because int might match the return type of a GCC
   15389    builtin and then its argument prototype would still apply.  */
   15390 #ifdef __cplusplus

   15391 extern "C"
   15392 #endif

   15393 char $ac_func ();
   15394 /* The GNU C library defines this for functions which it implements
   15395     to always fail with ENOSYS.  Some functions are actually named
   15396     something starting with __ and the normal name is an alias.  */
   15397 #if defined __stub_$ac_func || defined __stub___$ac_func

   15398 choke me
   15399 #endif

   15400 
   15401 int
   15402 main ()
   15403 {
   15404 return $ac_func ();
   15405   ;
   15406   return 0;
   15407 }
   15408 _ACEOF
   15409 rm -f conftest.$ac_objext conftest$ac_exeext
   15410 if { (ac_try="$ac_link"
   15411 case "(($ac_try" in
   15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15413   *) ac_try_echo=$ac_try;;
   15414 esac
   15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15416   (eval "$ac_link") 2>conftest.er1
   15417   ac_status=$?
   15418   grep -v '^ *+' conftest.er1 >conftest.err
   15419   rm -f conftest.er1
   15420   cat conftest.err >&5
   15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15422   (exit $ac_status); } && {
   15423 	 test -z "$ac_c_werror_flag" ||
   15424 	 test ! -s conftest.err
   15425        } && test -s conftest$ac_exeext &&
   15426        $as_test_x conftest$ac_exeext; then
   15427   eval "$as_ac_var=yes"
   15428 else
   15429   echo "$as_me: failed program was:" >&5
   15430 sed 's/^/| /' conftest.$ac_ext >&5
   15431 
   15432 	eval "$as_ac_var=no"
   15433 fi
   15434 
   15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15436       conftest$ac_exeext conftest.$ac_ext
   15437 fi
   15438 ac_res=`eval echo '${'$as_ac_var'}'`
   15439 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15440 echo "${ECHO_T}$ac_res" >&6; }
   15441 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15442   cat >>confdefs.h <<_ACEOF
   15443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15444 _ACEOF
   15445 
   15446 fi
   15447 done
   15448 
   15449 
   15450 
   15451 
   15452 
   15453 
   15454 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
   15455 do
   15456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15460   echo $ECHO_N "(cached) $ECHO_C" >&6
   15461 else
   15462   cat >conftest.$ac_ext <<_ACEOF
   15463 /* confdefs.h.  */
   15464 _ACEOF
   15465 cat confdefs.h >>conftest.$ac_ext
   15466 cat >>conftest.$ac_ext <<_ACEOF
   15467 /* end confdefs.h.  */
   15468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15470 #define $ac_func innocuous_$ac_func

   15471 
   15472 /* System header to define __stub macros and hopefully few prototypes,
   15473     which can conflict with char $ac_func (); below.
   15474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15475     <limits.h> exists even on freestanding compilers.  */
   15476 
   15477 #ifdef __STDC__

   15478 # include <limits.h>

   15479 #else

   15480 # include <assert.h>

   15481 #endif

   15482 
   15483 #undef $ac_func

   15484 
   15485 /* Override any GCC internal prototype to avoid an error.
   15486    Use char because int might match the return type of a GCC
   15487    builtin and then its argument prototype would still apply.  */
   15488 #ifdef __cplusplus

   15489 extern "C"
   15490 #endif

   15491 char $ac_func ();
   15492 /* The GNU C library defines this for functions which it implements
   15493     to always fail with ENOSYS.  Some functions are actually named
   15494     something starting with __ and the normal name is an alias.  */
   15495 #if defined __stub_$ac_func || defined __stub___$ac_func

   15496 choke me
   15497 #endif

   15498 
   15499 int
   15500 main ()
   15501 {
   15502 return $ac_func ();
   15503   ;
   15504   return 0;
   15505 }
   15506 _ACEOF
   15507 rm -f conftest.$ac_objext conftest$ac_exeext
   15508 if { (ac_try="$ac_link"
   15509 case "(($ac_try" in
   15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15511   *) ac_try_echo=$ac_try;;
   15512 esac
   15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15514   (eval "$ac_link") 2>conftest.er1
   15515   ac_status=$?
   15516   grep -v '^ *+' conftest.er1 >conftest.err
   15517   rm -f conftest.er1
   15518   cat conftest.err >&5
   15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15520   (exit $ac_status); } && {
   15521 	 test -z "$ac_c_werror_flag" ||
   15522 	 test ! -s conftest.err
   15523        } && test -s conftest$ac_exeext &&
   15524        $as_test_x conftest$ac_exeext; then
   15525   eval "$as_ac_var=yes"
   15526 else
   15527   echo "$as_me: failed program was:" >&5
   15528 sed 's/^/| /' conftest.$ac_ext >&5
   15529 
   15530 	eval "$as_ac_var=no"
   15531 fi
   15532 
   15533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15534       conftest$ac_exeext conftest.$ac_ext
   15535 fi
   15536 ac_res=`eval echo '${'$as_ac_var'}'`
   15537 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15538 echo "${ECHO_T}$ac_res" >&6; }
   15539 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15540   cat >>confdefs.h <<_ACEOF
   15541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15542 _ACEOF
   15543 
   15544 fi
   15545 done
   15546 
   15547 
   15548 
   15549 
   15550 for ac_func in isatty mkdtemp mkstemp
   15551 do
   15552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15556   echo $ECHO_N "(cached) $ECHO_C" >&6
   15557 else
   15558   cat >conftest.$ac_ext <<_ACEOF
   15559 /* confdefs.h.  */
   15560 _ACEOF
   15561 cat confdefs.h >>conftest.$ac_ext
   15562 cat >>conftest.$ac_ext <<_ACEOF
   15563 /* end confdefs.h.  */
   15564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15566 #define $ac_func innocuous_$ac_func

   15567 
   15568 /* System header to define __stub macros and hopefully few prototypes,
   15569     which can conflict with char $ac_func (); below.
   15570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15571     <limits.h> exists even on freestanding compilers.  */
   15572 
   15573 #ifdef __STDC__

   15574 # include <limits.h>

   15575 #else

   15576 # include <assert.h>

   15577 #endif

   15578 
   15579 #undef $ac_func

   15580 
   15581 /* Override any GCC internal prototype to avoid an error.
   15582    Use char because int might match the return type of a GCC
   15583    builtin and then its argument prototype would still apply.  */
   15584 #ifdef __cplusplus

   15585 extern "C"
   15586 #endif

   15587 char $ac_func ();
   15588 /* The GNU C library defines this for functions which it implements
   15589     to always fail with ENOSYS.  Some functions are actually named
   15590     something starting with __ and the normal name is an alias.  */
   15591 #if defined __stub_$ac_func || defined __stub___$ac_func

   15592 choke me
   15593 #endif

   15594 
   15595 int
   15596 main ()
   15597 {
   15598 return $ac_func ();
   15599   ;
   15600   return 0;
   15601 }
   15602 _ACEOF
   15603 rm -f conftest.$ac_objext conftest$ac_exeext
   15604 if { (ac_try="$ac_link"
   15605 case "(($ac_try" in
   15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15607   *) ac_try_echo=$ac_try;;
   15608 esac
   15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15610   (eval "$ac_link") 2>conftest.er1
   15611   ac_status=$?
   15612   grep -v '^ *+' conftest.er1 >conftest.err
   15613   rm -f conftest.er1
   15614   cat conftest.err >&5
   15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15616   (exit $ac_status); } && {
   15617 	 test -z "$ac_c_werror_flag" ||
   15618 	 test ! -s conftest.err
   15619        } && test -s conftest$ac_exeext &&
   15620        $as_test_x conftest$ac_exeext; then
   15621   eval "$as_ac_var=yes"
   15622 else
   15623   echo "$as_me: failed program was:" >&5
   15624 sed 's/^/| /' conftest.$ac_ext >&5
   15625 
   15626 	eval "$as_ac_var=no"
   15627 fi
   15628 
   15629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15630       conftest$ac_exeext conftest.$ac_ext
   15631 fi
   15632 ac_res=`eval echo '${'$as_ac_var'}'`
   15633 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15634 echo "${ECHO_T}$ac_res" >&6; }
   15635 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15636   cat >>confdefs.h <<_ACEOF
   15637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15638 _ACEOF
   15639 
   15640 fi
   15641 done
   15642 
   15643 
   15644 
   15645 
   15646 
   15647 
   15648 
   15649 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
   15650 do
   15651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15655   echo $ECHO_N "(cached) $ECHO_C" >&6
   15656 else
   15657   cat >conftest.$ac_ext <<_ACEOF
   15658 /* confdefs.h.  */
   15659 _ACEOF
   15660 cat confdefs.h >>conftest.$ac_ext
   15661 cat >>conftest.$ac_ext <<_ACEOF
   15662 /* end confdefs.h.  */
   15663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15665 #define $ac_func innocuous_$ac_func

   15666 
   15667 /* System header to define __stub macros and hopefully few prototypes,
   15668     which can conflict with char $ac_func (); below.
   15669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15670     <limits.h> exists even on freestanding compilers.  */
   15671 
   15672 #ifdef __STDC__

   15673 # include <limits.h>

   15674 #else

   15675 # include <assert.h>

   15676 #endif

   15677 
   15678 #undef $ac_func

   15679 
   15680 /* Override any GCC internal prototype to avoid an error.
   15681    Use char because int might match the return type of a GCC
   15682    builtin and then its argument prototype would still apply.  */
   15683 #ifdef __cplusplus

   15684 extern "C"
   15685 #endif

   15686 char $ac_func ();
   15687 /* The GNU C library defines this for functions which it implements
   15688     to always fail with ENOSYS.  Some functions are actually named
   15689     something starting with __ and the normal name is an alias.  */
   15690 #if defined __stub_$ac_func || defined __stub___$ac_func

   15691 choke me
   15692 #endif

   15693 
   15694 int
   15695 main ()
   15696 {
   15697 return $ac_func ();
   15698   ;
   15699   return 0;
   15700 }
   15701 _ACEOF
   15702 rm -f conftest.$ac_objext conftest$ac_exeext
   15703 if { (ac_try="$ac_link"
   15704 case "(($ac_try" in
   15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15706   *) ac_try_echo=$ac_try;;
   15707 esac
   15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15709   (eval "$ac_link") 2>conftest.er1
   15710   ac_status=$?
   15711   grep -v '^ *+' conftest.er1 >conftest.err
   15712   rm -f conftest.er1
   15713   cat conftest.err >&5
   15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15715   (exit $ac_status); } && {
   15716 	 test -z "$ac_c_werror_flag" ||
   15717 	 test ! -s conftest.err
   15718        } && test -s conftest$ac_exeext &&
   15719        $as_test_x conftest$ac_exeext; then
   15720   eval "$as_ac_var=yes"
   15721 else
   15722   echo "$as_me: failed program was:" >&5
   15723 sed 's/^/| /' conftest.$ac_ext >&5
   15724 
   15725 	eval "$as_ac_var=no"
   15726 fi
   15727 
   15728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15729       conftest$ac_exeext conftest.$ac_ext
   15730 fi
   15731 ac_res=`eval echo '${'$as_ac_var'}'`
   15732 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15733 echo "${ECHO_T}$ac_res" >&6; }
   15734 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15735   cat >>confdefs.h <<_ACEOF
   15736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15737 _ACEOF
   15738 
   15739 fi
   15740 done
   15741 
   15742 
   15743 
   15744 
   15745 for ac_func in strerror strerror_r setenv
   15746 do
   15747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15751   echo $ECHO_N "(cached) $ECHO_C" >&6
   15752 else
   15753   cat >conftest.$ac_ext <<_ACEOF
   15754 /* confdefs.h.  */
   15755 _ACEOF
   15756 cat confdefs.h >>conftest.$ac_ext
   15757 cat >>conftest.$ac_ext <<_ACEOF
   15758 /* end confdefs.h.  */
   15759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15761 #define $ac_func innocuous_$ac_func

   15762 
   15763 /* System header to define __stub macros and hopefully few prototypes,
   15764     which can conflict with char $ac_func (); below.
   15765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15766     <limits.h> exists even on freestanding compilers.  */
   15767 
   15768 #ifdef __STDC__

   15769 # include <limits.h>

   15770 #else

   15771 # include <assert.h>

   15772 #endif

   15773 
   15774 #undef $ac_func

   15775 
   15776 /* Override any GCC internal prototype to avoid an error.
   15777    Use char because int might match the return type of a GCC
   15778    builtin and then its argument prototype would still apply.  */
   15779 #ifdef __cplusplus

   15780 extern "C"
   15781 #endif

   15782 char $ac_func ();
   15783 /* The GNU C library defines this for functions which it implements
   15784     to always fail with ENOSYS.  Some functions are actually named
   15785     something starting with __ and the normal name is an alias.  */
   15786 #if defined __stub_$ac_func || defined __stub___$ac_func

   15787 choke me
   15788 #endif

   15789 
   15790 int
   15791 main ()
   15792 {
   15793 return $ac_func ();
   15794   ;
   15795   return 0;
   15796 }
   15797 _ACEOF
   15798 rm -f conftest.$ac_objext conftest$ac_exeext
   15799 if { (ac_try="$ac_link"
   15800 case "(($ac_try" in
   15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15802   *) ac_try_echo=$ac_try;;
   15803 esac
   15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15805   (eval "$ac_link") 2>conftest.er1
   15806   ac_status=$?
   15807   grep -v '^ *+' conftest.er1 >conftest.err
   15808   rm -f conftest.er1
   15809   cat conftest.err >&5
   15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15811   (exit $ac_status); } && {
   15812 	 test -z "$ac_c_werror_flag" ||
   15813 	 test ! -s conftest.err
   15814        } && test -s conftest$ac_exeext &&
   15815        $as_test_x conftest$ac_exeext; then
   15816   eval "$as_ac_var=yes"
   15817 else
   15818   echo "$as_me: failed program was:" >&5
   15819 sed 's/^/| /' conftest.$ac_ext >&5
   15820 
   15821 	eval "$as_ac_var=no"
   15822 fi
   15823 
   15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15825       conftest$ac_exeext conftest.$ac_ext
   15826 fi
   15827 ac_res=`eval echo '${'$as_ac_var'}'`
   15828 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15829 echo "${ECHO_T}$ac_res" >&6; }
   15830 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15831   cat >>confdefs.h <<_ACEOF
   15832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15833 _ACEOF
   15834 
   15835 fi
   15836 done
   15837 
   15838 
   15839 
   15840 
   15841 
   15842 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
   15843 do
   15844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15848   echo $ECHO_N "(cached) $ECHO_C" >&6
   15849 else
   15850   cat >conftest.$ac_ext <<_ACEOF
   15851 /* confdefs.h.  */
   15852 _ACEOF
   15853 cat confdefs.h >>conftest.$ac_ext
   15854 cat >>conftest.$ac_ext <<_ACEOF
   15855 /* end confdefs.h.  */
   15856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15858 #define $ac_func innocuous_$ac_func

   15859 
   15860 /* System header to define __stub macros and hopefully few prototypes,
   15861     which can conflict with char $ac_func (); below.
   15862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15863     <limits.h> exists even on freestanding compilers.  */
   15864 
   15865 #ifdef __STDC__

   15866 # include <limits.h>

   15867 #else

   15868 # include <assert.h>

   15869 #endif

   15870 
   15871 #undef $ac_func

   15872 
   15873 /* Override any GCC internal prototype to avoid an error.
   15874    Use char because int might match the return type of a GCC
   15875    builtin and then its argument prototype would still apply.  */
   15876 #ifdef __cplusplus

   15877 extern "C"
   15878 #endif

   15879 char $ac_func ();
   15880 /* The GNU C library defines this for functions which it implements
   15881     to always fail with ENOSYS.  Some functions are actually named
   15882     something starting with __ and the normal name is an alias.  */
   15883 #if defined __stub_$ac_func || defined __stub___$ac_func

   15884 choke me
   15885 #endif

   15886 
   15887 int
   15888 main ()
   15889 {
   15890 return $ac_func ();
   15891   ;
   15892   return 0;
   15893 }
   15894 _ACEOF
   15895 rm -f conftest.$ac_objext conftest$ac_exeext
   15896 if { (ac_try="$ac_link"
   15897 case "(($ac_try" in
   15898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15899   *) ac_try_echo=$ac_try;;
   15900 esac
   15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15902   (eval "$ac_link") 2>conftest.er1
   15903   ac_status=$?
   15904   grep -v '^ *+' conftest.er1 >conftest.err
   15905   rm -f conftest.er1
   15906   cat conftest.err >&5
   15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15908   (exit $ac_status); } && {
   15909 	 test -z "$ac_c_werror_flag" ||
   15910 	 test ! -s conftest.err
   15911        } && test -s conftest$ac_exeext &&
   15912        $as_test_x conftest$ac_exeext; then
   15913   eval "$as_ac_var=yes"
   15914 else
   15915   echo "$as_me: failed program was:" >&5
   15916 sed 's/^/| /' conftest.$ac_ext >&5
   15917 
   15918 	eval "$as_ac_var=no"
   15919 fi
   15920 
   15921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15922       conftest$ac_exeext conftest.$ac_ext
   15923 fi
   15924 ac_res=`eval echo '${'$as_ac_var'}'`
   15925 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15926 echo "${ECHO_T}$ac_res" >&6; }
   15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15928   cat >>confdefs.h <<_ACEOF
   15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   15930 _ACEOF
   15931 
   15932 fi
   15933 done
   15934 
   15935 
   15936 
   15937 
   15938 
   15939 
   15940 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
   15941 do
   15942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15946   echo $ECHO_N "(cached) $ECHO_C" >&6
   15947 else
   15948   cat >conftest.$ac_ext <<_ACEOF
   15949 /* confdefs.h.  */
   15950 _ACEOF
   15951 cat confdefs.h >>conftest.$ac_ext
   15952 cat >>conftest.$ac_ext <<_ACEOF
   15953 /* end confdefs.h.  */
   15954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15956 #define $ac_func innocuous_$ac_func

   15957 
   15958 /* System header to define __stub macros and hopefully few prototypes,
   15959     which can conflict with char $ac_func (); below.
   15960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15961     <limits.h> exists even on freestanding compilers.  */
   15962 
   15963 #ifdef __STDC__

   15964 # include <limits.h>

   15965 #else

   15966 # include <assert.h>

   15967 #endif

   15968 
   15969 #undef $ac_func

   15970 
   15971 /* Override any GCC internal prototype to avoid an error.
   15972    Use char because int might match the return type of a GCC
   15973    builtin and then its argument prototype would still apply.  */
   15974 #ifdef __cplusplus

   15975 extern "C"
   15976 #endif

   15977 char $ac_func ();
   15978 /* The GNU C library defines this for functions which it implements
   15979     to always fail with ENOSYS.  Some functions are actually named
   15980     something starting with __ and the normal name is an alias.  */
   15981 #if defined __stub_$ac_func || defined __stub___$ac_func

   15982 choke me
   15983 #endif

   15984 
   15985 int
   15986 main ()
   15987 {
   15988 return $ac_func ();
   15989   ;
   15990   return 0;
   15991 }
   15992 _ACEOF
   15993 rm -f conftest.$ac_objext conftest$ac_exeext
   15994 if { (ac_try="$ac_link"
   15995 case "(($ac_try" in
   15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15997   *) ac_try_echo=$ac_try;;
   15998 esac
   15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16000   (eval "$ac_link") 2>conftest.er1
   16001   ac_status=$?
   16002   grep -v '^ *+' conftest.er1 >conftest.err
   16003   rm -f conftest.er1
   16004   cat conftest.err >&5
   16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16006   (exit $ac_status); } && {
   16007 	 test -z "$ac_c_werror_flag" ||
   16008 	 test ! -s conftest.err
   16009        } && test -s conftest$ac_exeext &&
   16010        $as_test_x conftest$ac_exeext; then
   16011   eval "$as_ac_var=yes"
   16012 else
   16013   echo "$as_me: failed program was:" >&5
   16014 sed 's/^/| /' conftest.$ac_ext >&5
   16015 
   16016 	eval "$as_ac_var=no"
   16017 fi
   16018 
   16019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16020       conftest$ac_exeext conftest.$ac_ext
   16021 fi
   16022 ac_res=`eval echo '${'$as_ac_var'}'`
   16023 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16024 echo "${ECHO_T}$ac_res" >&6; }
   16025 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16026   cat >>confdefs.h <<_ACEOF
   16027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   16028 _ACEOF
   16029 
   16030 fi
   16031 done
   16032 
   16033 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
   16034 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
   16035 if test "${llvm_cv_c_printf_a+set}" = set; then
   16036   echo $ECHO_N "(cached) $ECHO_C" >&6
   16037 else
   16038   ac_ext=c
   16039 ac_cpp='$CPP $CPPFLAGS'
   16040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16043 
   16044  if test "$cross_compiling" = yes; then
   16045   llvmac_cv_c_printf_a=no
   16046 else
   16047   cat >conftest.$ac_ext <<_ACEOF
   16048 
   16049   /* confdefs.h.  */
   16050 _ACEOF
   16051 cat confdefs.h >>conftest.$ac_ext
   16052 cat >>conftest.$ac_ext <<_ACEOF
   16053 /* end confdefs.h.  */
   16054 
   16055 #include <stdio.h>

   16056 #include <stdlib.h>

   16057 
   16058 int
   16059 main ()
   16060 {
   16061 
   16062 volatile double A, B;
   16063 char Buffer[100];
   16064 A = 1;
   16065 A /= 10.0;
   16066 sprintf(Buffer, "%a", A);
   16067 B = atof(Buffer);
   16068 if (A != B)
   16069   return (1);
   16070 if (A != 0x1.999999999999ap-4)
   16071   return (1);
   16072 return (0);
   16073   ;
   16074   return 0;
   16075 }
   16076 _ACEOF
   16077 rm -f conftest$ac_exeext
   16078 if { (ac_try="$ac_link"
   16079 case "(($ac_try" in
   16080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16081   *) ac_try_echo=$ac_try;;
   16082 esac
   16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16084   (eval "$ac_link") 2>&5
   16085   ac_status=$?
   16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   16088   { (case "(($ac_try" in
   16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16090   *) ac_try_echo=$ac_try;;
   16091 esac
   16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16093   (eval "$ac_try") 2>&5
   16094   ac_status=$?
   16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16096   (exit $ac_status); }; }; then
   16097   llvm_cv_c_printf_a=yes
   16098 else
   16099   echo "$as_me: program exited with status $ac_status" >&5
   16100 echo "$as_me: failed program was:" >&5
   16101 sed 's/^/| /' conftest.$ac_ext >&5
   16102 
   16103 ( exit $ac_status )
   16104 llvmac_cv_c_printf_a=no
   16105 fi
   16106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   16107 fi
   16108 
   16109 
   16110  ac_ext=c
   16111 ac_cpp='$CPP $CPPFLAGS'
   16112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16115 
   16116 fi
   16117 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
   16118 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
   16119  if test "$llvm_cv_c_printf_a" = "yes"; then
   16120 
   16121 cat >>confdefs.h <<\_ACEOF
   16122 #define HAVE_PRINTF_A 1

   16123 _ACEOF
   16124 
   16125  fi
   16126 
   16127 
   16128 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
   16129 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
   16130 if test "${ac_cv_func_rand48+set}" = set; then
   16131   echo $ECHO_N "(cached) $ECHO_C" >&6
   16132 else
   16133   ac_ext=cpp
   16134 ac_cpp='$CXXCPP $CPPFLAGS'
   16135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   16138 
   16139    cat >conftest.$ac_ext <<_ACEOF
   16140 /* confdefs.h.  */
   16141 _ACEOF
   16142 cat confdefs.h >>conftest.$ac_ext
   16143 cat >>conftest.$ac_ext <<_ACEOF
   16144 /* end confdefs.h.  */
   16145 #include <stdlib.h>

   16146 int
   16147 main ()
   16148 {
   16149 srand48(0);lrand48();drand48();
   16150   ;
   16151   return 0;
   16152 }
   16153 _ACEOF
   16154 rm -f conftest.$ac_objext
   16155 if { (ac_try="$ac_compile"
   16156 case "(($ac_try" in
   16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16158   *) ac_try_echo=$ac_try;;
   16159 esac
   16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16161   (eval "$ac_compile") 2>conftest.er1
   16162   ac_status=$?
   16163   grep -v '^ *+' conftest.er1 >conftest.err
   16164   rm -f conftest.er1
   16165   cat conftest.err >&5
   16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16167   (exit $ac_status); } && {
   16168 	 test -z "$ac_cxx_werror_flag" ||
   16169 	 test ! -s conftest.err
   16170        } && test -s conftest.$ac_objext; then
   16171   ac_cv_func_rand48=yes
   16172 else
   16173   echo "$as_me: failed program was:" >&5
   16174 sed 's/^/| /' conftest.$ac_ext >&5
   16175 
   16176 	ac_cv_func_rand48=no
   16177 fi
   16178 
   16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16180   ac_ext=c
   16181 ac_cpp='$CPP $CPPFLAGS'
   16182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16185 
   16186 fi
   16187 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
   16188 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
   16189 
   16190 if test "$ac_cv_func_rand48" = "yes" ; then
   16191 
   16192 cat >>confdefs.h <<\_ACEOF
   16193 #define HAVE_RAND48 1

   16194 _ACEOF
   16195 
   16196 fi
   16197 
   16198 
   16199 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
   16200 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
   16201 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
   16202   echo $ECHO_N "(cached) $ECHO_C" >&6
   16203 else
   16204   cat >conftest.$ac_ext <<_ACEOF
   16205 /* confdefs.h.  */
   16206 _ACEOF
   16207 cat confdefs.h >>conftest.$ac_ext
   16208 cat >>conftest.$ac_ext <<_ACEOF
   16209 /* end confdefs.h.  */
   16210 $ac_includes_default
   16211 int
   16212 main ()
   16213 {
   16214 #ifndef strerror_s

   16215   (void) strerror_s;
   16216 #endif

   16217 
   16218   ;
   16219   return 0;
   16220 }
   16221 _ACEOF
   16222 rm -f conftest.$ac_objext
   16223 if { (ac_try="$ac_compile"
   16224 case "(($ac_try" in
   16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16226   *) ac_try_echo=$ac_try;;
   16227 esac
   16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16229   (eval "$ac_compile") 2>conftest.er1
   16230   ac_status=$?
   16231   grep -v '^ *+' conftest.er1 >conftest.err
   16232   rm -f conftest.er1
   16233   cat conftest.err >&5
   16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16235   (exit $ac_status); } && {
   16236 	 test -z "$ac_c_werror_flag" ||
   16237 	 test ! -s conftest.err
   16238        } && test -s conftest.$ac_objext; then
   16239   ac_cv_have_decl_strerror_s=yes
   16240 else
   16241   echo "$as_me: failed program was:" >&5
   16242 sed 's/^/| /' conftest.$ac_ext >&5
   16243 
   16244 	ac_cv_have_decl_strerror_s=no
   16245 fi
   16246 
   16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16248 fi
   16249 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
   16250 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
   16251 if test $ac_cv_have_decl_strerror_s = yes; then
   16252 
   16253 cat >>confdefs.h <<_ACEOF
   16254 #define HAVE_DECL_STRERROR_S 1

   16255 _ACEOF
   16256 
   16257 
   16258 else
   16259   cat >>confdefs.h <<_ACEOF
   16260 #define HAVE_DECL_STRERROR_S 0

   16261 _ACEOF
   16262 
   16263 
   16264 fi
   16265 
   16266 
   16267 
   16268 if test "$llvm_cv_os_type" = "MingW" ; then
   16269   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
   16270 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
   16271 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
   16272   echo $ECHO_N "(cached) $ECHO_C" >&6
   16273 else
   16274   ac_check_lib_save_LIBS=$LIBS
   16275 LIBS="-lgcc  $LIBS"
   16276 cat >conftest.$ac_ext <<_ACEOF
   16277 /* confdefs.h.  */
   16278 _ACEOF
   16279 cat confdefs.h >>conftest.$ac_ext
   16280 cat >>conftest.$ac_ext <<_ACEOF
   16281 /* end confdefs.h.  */
   16282 
   16283 /* Override any GCC internal prototype to avoid an error.
   16284    Use char because int might match the return type of a GCC
   16285    builtin and then its argument prototype would still apply.  */
   16286 #ifdef __cplusplus

   16287 extern "C"
   16288 #endif

   16289 char _alloca ();
   16290 int
   16291 main ()
   16292 {
   16293 return _alloca ();
   16294   ;
   16295   return 0;
   16296 }
   16297 _ACEOF
   16298 rm -f conftest.$ac_objext conftest$ac_exeext
   16299 if { (ac_try="$ac_link"
   16300 case "(($ac_try" in
   16301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16302   *) ac_try_echo=$ac_try;;
   16303 esac
   16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16305   (eval "$ac_link") 2>conftest.er1
   16306   ac_status=$?
   16307   grep -v '^ *+' conftest.er1 >conftest.err
   16308   rm -f conftest.er1
   16309   cat conftest.err >&5
   16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16311   (exit $ac_status); } && {
   16312 	 test -z "$ac_c_werror_flag" ||
   16313 	 test ! -s conftest.err
   16314        } && test -s conftest$ac_exeext &&
   16315        $as_test_x conftest$ac_exeext; then
   16316   ac_cv_lib_gcc__alloca=yes
   16317 else
   16318   echo "$as_me: failed program was:" >&5
   16319 sed 's/^/| /' conftest.$ac_ext >&5
   16320 
   16321 	ac_cv_lib_gcc__alloca=no
   16322 fi
   16323 
   16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16325       conftest$ac_exeext conftest.$ac_ext
   16326 LIBS=$ac_check_lib_save_LIBS
   16327 fi
   16328 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
   16329 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
   16330 if test $ac_cv_lib_gcc__alloca = yes; then
   16331 
   16332 cat >>confdefs.h <<\_ACEOF
   16333 #define HAVE__ALLOCA 1

   16334 _ACEOF
   16335 
   16336 fi
   16337 
   16338   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
   16339 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
   16340 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
   16341   echo $ECHO_N "(cached) $ECHO_C" >&6
   16342 else
   16343   ac_check_lib_save_LIBS=$LIBS
   16344 LIBS="-lgcc  $LIBS"
   16345 cat >conftest.$ac_ext <<_ACEOF
   16346 /* confdefs.h.  */
   16347 _ACEOF
   16348 cat confdefs.h >>conftest.$ac_ext
   16349 cat >>conftest.$ac_ext <<_ACEOF
   16350 /* end confdefs.h.  */
   16351 
   16352 /* Override any GCC internal prototype to avoid an error.
   16353    Use char because int might match the return type of a GCC
   16354    builtin and then its argument prototype would still apply.  */
   16355 #ifdef __cplusplus

   16356 extern "C"
   16357 #endif

   16358 char __alloca ();
   16359 int
   16360 main ()
   16361 {
   16362 return __alloca ();
   16363   ;
   16364   return 0;
   16365 }
   16366 _ACEOF
   16367 rm -f conftest.$ac_objext conftest$ac_exeext
   16368 if { (ac_try="$ac_link"
   16369 case "(($ac_try" in
   16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16371   *) ac_try_echo=$ac_try;;
   16372 esac
   16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16374   (eval "$ac_link") 2>conftest.er1
   16375   ac_status=$?
   16376   grep -v '^ *+' conftest.er1 >conftest.err
   16377   rm -f conftest.er1
   16378   cat conftest.err >&5
   16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16380   (exit $ac_status); } && {
   16381 	 test -z "$ac_c_werror_flag" ||
   16382 	 test ! -s conftest.err
   16383        } && test -s conftest$ac_exeext &&
   16384        $as_test_x conftest$ac_exeext; then
   16385   ac_cv_lib_gcc___alloca=yes
   16386 else
   16387   echo "$as_me: failed program was:" >&5
   16388 sed 's/^/| /' conftest.$ac_ext >&5
   16389 
   16390 	ac_cv_lib_gcc___alloca=no
   16391 fi
   16392 
   16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16394       conftest$ac_exeext conftest.$ac_ext
   16395 LIBS=$ac_check_lib_save_LIBS
   16396 fi
   16397 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
   16398 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
   16399 if test $ac_cv_lib_gcc___alloca = yes; then
   16400 
   16401 cat >>confdefs.h <<\_ACEOF
   16402 #define HAVE___ALLOCA 1

   16403 _ACEOF
   16404 
   16405 fi
   16406 
   16407   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
   16408 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
   16409 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
   16410   echo $ECHO_N "(cached) $ECHO_C" >&6
   16411 else
   16412   ac_check_lib_save_LIBS=$LIBS
   16413 LIBS="-lgcc  $LIBS"
   16414 cat >conftest.$ac_ext <<_ACEOF
   16415 /* confdefs.h.  */
   16416 _ACEOF
   16417 cat confdefs.h >>conftest.$ac_ext
   16418 cat >>conftest.$ac_ext <<_ACEOF
   16419 /* end confdefs.h.  */
   16420 
   16421 /* Override any GCC internal prototype to avoid an error.
   16422    Use char because int might match the return type of a GCC
   16423    builtin and then its argument prototype would still apply.  */
   16424 #ifdef __cplusplus

   16425 extern "C"
   16426 #endif

   16427 char __chkstk ();
   16428 int
   16429 main ()
   16430 {
   16431 return __chkstk ();
   16432   ;
   16433   return 0;
   16434 }
   16435 _ACEOF
   16436 rm -f conftest.$ac_objext conftest$ac_exeext
   16437 if { (ac_try="$ac_link"
   16438 case "(($ac_try" in
   16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16440   *) ac_try_echo=$ac_try;;
   16441 esac
   16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16443   (eval "$ac_link") 2>conftest.er1
   16444   ac_status=$?
   16445   grep -v '^ *+' conftest.er1 >conftest.err
   16446   rm -f conftest.er1
   16447   cat conftest.err >&5
   16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16449   (exit $ac_status); } && {
   16450 	 test -z "$ac_c_werror_flag" ||
   16451 	 test ! -s conftest.err
   16452        } && test -s conftest$ac_exeext &&
   16453        $as_test_x conftest$ac_exeext; then
   16454   ac_cv_lib_gcc___chkstk=yes
   16455 else
   16456   echo "$as_me: failed program was:" >&5
   16457 sed 's/^/| /' conftest.$ac_ext >&5
   16458 
   16459 	ac_cv_lib_gcc___chkstk=no
   16460 fi
   16461 
   16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16463       conftest$ac_exeext conftest.$ac_ext
   16464 LIBS=$ac_check_lib_save_LIBS
   16465 fi
   16466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
   16467 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
   16468 if test $ac_cv_lib_gcc___chkstk = yes; then
   16469 
   16470 cat >>confdefs.h <<\_ACEOF
   16471 #define HAVE___CHKSTK 1

   16472 _ACEOF
   16473 
   16474 fi
   16475 
   16476   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
   16477 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
   16478 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
   16479   echo $ECHO_N "(cached) $ECHO_C" >&6
   16480 else
   16481   ac_check_lib_save_LIBS=$LIBS
   16482 LIBS="-lgcc  $LIBS"
   16483 cat >conftest.$ac_ext <<_ACEOF
   16484 /* confdefs.h.  */
   16485 _ACEOF
   16486 cat confdefs.h >>conftest.$ac_ext
   16487 cat >>conftest.$ac_ext <<_ACEOF
   16488 /* end confdefs.h.  */
   16489 
   16490 /* Override any GCC internal prototype to avoid an error.
   16491    Use char because int might match the return type of a GCC
   16492    builtin and then its argument prototype would still apply.  */
   16493 #ifdef __cplusplus

   16494 extern "C"
   16495 #endif

   16496 char ___chkstk ();
   16497 int
   16498 main ()
   16499 {
   16500 return ___chkstk ();
   16501   ;
   16502   return 0;
   16503 }
   16504 _ACEOF
   16505 rm -f conftest.$ac_objext conftest$ac_exeext
   16506 if { (ac_try="$ac_link"
   16507 case "(($ac_try" in
   16508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16509   *) ac_try_echo=$ac_try;;
   16510 esac
   16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16512   (eval "$ac_link") 2>conftest.er1
   16513   ac_status=$?
   16514   grep -v '^ *+' conftest.er1 >conftest.err
   16515   rm -f conftest.er1
   16516   cat conftest.err >&5
   16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16518   (exit $ac_status); } && {
   16519 	 test -z "$ac_c_werror_flag" ||
   16520 	 test ! -s conftest.err
   16521        } && test -s conftest$ac_exeext &&
   16522        $as_test_x conftest$ac_exeext; then
   16523   ac_cv_lib_gcc____chkstk=yes
   16524 else
   16525   echo "$as_me: failed program was:" >&5
   16526 sed 's/^/| /' conftest.$ac_ext >&5
   16527 
   16528 	ac_cv_lib_gcc____chkstk=no
   16529 fi
   16530 
   16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16532       conftest$ac_exeext conftest.$ac_ext
   16533 LIBS=$ac_check_lib_save_LIBS
   16534 fi
   16535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
   16536 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
   16537 if test $ac_cv_lib_gcc____chkstk = yes; then
   16538 
   16539 cat >>confdefs.h <<\_ACEOF
   16540 #define HAVE____CHKSTK 1

   16541 _ACEOF
   16542 
   16543 fi
   16544 
   16545 
   16546   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
   16547 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
   16548 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
   16549   echo $ECHO_N "(cached) $ECHO_C" >&6
   16550 else
   16551   ac_check_lib_save_LIBS=$LIBS
   16552 LIBS="-lgcc  $LIBS"
   16553 cat >conftest.$ac_ext <<_ACEOF
   16554 /* confdefs.h.  */
   16555 _ACEOF
   16556 cat confdefs.h >>conftest.$ac_ext
   16557 cat >>conftest.$ac_ext <<_ACEOF
   16558 /* end confdefs.h.  */
   16559 
   16560 /* Override any GCC internal prototype to avoid an error.
   16561    Use char because int might match the return type of a GCC
   16562    builtin and then its argument prototype would still apply.  */
   16563 #ifdef __cplusplus

   16564 extern "C"
   16565 #endif

   16566 char __ashldi3 ();
   16567 int
   16568 main ()
   16569 {
   16570 return __ashldi3 ();
   16571   ;
   16572   return 0;
   16573 }
   16574 _ACEOF
   16575 rm -f conftest.$ac_objext conftest$ac_exeext
   16576 if { (ac_try="$ac_link"
   16577 case "(($ac_try" in
   16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16579   *) ac_try_echo=$ac_try;;
   16580 esac
   16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16582   (eval "$ac_link") 2>conftest.er1
   16583   ac_status=$?
   16584   grep -v '^ *+' conftest.er1 >conftest.err
   16585   rm -f conftest.er1
   16586   cat conftest.err >&5
   16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16588   (exit $ac_status); } && {
   16589 	 test -z "$ac_c_werror_flag" ||
   16590 	 test ! -s conftest.err
   16591        } && test -s conftest$ac_exeext &&
   16592        $as_test_x conftest$ac_exeext; then
   16593   ac_cv_lib_gcc___ashldi3=yes
   16594 else
   16595   echo "$as_me: failed program was:" >&5
   16596 sed 's/^/| /' conftest.$ac_ext >&5
   16597 
   16598 	ac_cv_lib_gcc___ashldi3=no
   16599 fi
   16600 
   16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16602       conftest$ac_exeext conftest.$ac_ext
   16603 LIBS=$ac_check_lib_save_LIBS
   16604 fi
   16605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
   16606 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
   16607 if test $ac_cv_lib_gcc___ashldi3 = yes; then
   16608 
   16609 cat >>confdefs.h <<\_ACEOF
   16610 #define HAVE___ASHLDI3 1

   16611 _ACEOF
   16612 
   16613 fi
   16614 
   16615   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
   16616 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
   16617 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
   16618   echo $ECHO_N "(cached) $ECHO_C" >&6
   16619 else
   16620   ac_check_lib_save_LIBS=$LIBS
   16621 LIBS="-lgcc  $LIBS"
   16622 cat >conftest.$ac_ext <<_ACEOF
   16623 /* confdefs.h.  */
   16624 _ACEOF
   16625 cat confdefs.h >>conftest.$ac_ext
   16626 cat >>conftest.$ac_ext <<_ACEOF
   16627 /* end confdefs.h.  */
   16628 
   16629 /* Override any GCC internal prototype to avoid an error.
   16630    Use char because int might match the return type of a GCC
   16631    builtin and then its argument prototype would still apply.  */
   16632 #ifdef __cplusplus

   16633 extern "C"
   16634 #endif

   16635 char __ashrdi3 ();
   16636 int
   16637 main ()
   16638 {
   16639 return __ashrdi3 ();
   16640   ;
   16641   return 0;
   16642 }
   16643 _ACEOF
   16644 rm -f conftest.$ac_objext conftest$ac_exeext
   16645 if { (ac_try="$ac_link"
   16646 case "(($ac_try" in
   16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16648   *) ac_try_echo=$ac_try;;
   16649 esac
   16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16651   (eval "$ac_link") 2>conftest.er1
   16652   ac_status=$?
   16653   grep -v '^ *+' conftest.er1 >conftest.err
   16654   rm -f conftest.er1
   16655   cat conftest.err >&5
   16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16657   (exit $ac_status); } && {
   16658 	 test -z "$ac_c_werror_flag" ||
   16659 	 test ! -s conftest.err
   16660        } && test -s conftest$ac_exeext &&
   16661        $as_test_x conftest$ac_exeext; then
   16662   ac_cv_lib_gcc___ashrdi3=yes
   16663 else
   16664   echo "$as_me: failed program was:" >&5
   16665 sed 's/^/| /' conftest.$ac_ext >&5
   16666 
   16667 	ac_cv_lib_gcc___ashrdi3=no
   16668 fi
   16669 
   16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16671       conftest$ac_exeext conftest.$ac_ext
   16672 LIBS=$ac_check_lib_save_LIBS
   16673 fi
   16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
   16675 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
   16676 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
   16677 
   16678 cat >>confdefs.h <<\_ACEOF
   16679 #define HAVE___ASHRDI3 1

   16680 _ACEOF
   16681 
   16682 fi
   16683 
   16684   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
   16685 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
   16686 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
   16687   echo $ECHO_N "(cached) $ECHO_C" >&6
   16688 else
   16689   ac_check_lib_save_LIBS=$LIBS
   16690 LIBS="-lgcc  $LIBS"
   16691 cat >conftest.$ac_ext <<_ACEOF
   16692 /* confdefs.h.  */
   16693 _ACEOF
   16694 cat confdefs.h >>conftest.$ac_ext
   16695 cat >>conftest.$ac_ext <<_ACEOF
   16696 /* end confdefs.h.  */
   16697 
   16698 /* Override any GCC internal prototype to avoid an error.
   16699    Use char because int might match the return type of a GCC
   16700    builtin and then its argument prototype would still apply.  */
   16701 #ifdef __cplusplus

   16702 extern "C"
   16703 #endif

   16704 char __divdi3 ();
   16705 int
   16706 main ()
   16707 {
   16708 return __divdi3 ();
   16709   ;
   16710   return 0;
   16711 }
   16712 _ACEOF
   16713 rm -f conftest.$ac_objext conftest$ac_exeext
   16714 if { (ac_try="$ac_link"
   16715 case "(($ac_try" in
   16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16717   *) ac_try_echo=$ac_try;;
   16718 esac
   16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16720   (eval "$ac_link") 2>conftest.er1
   16721   ac_status=$?
   16722   grep -v '^ *+' conftest.er1 >conftest.err
   16723   rm -f conftest.er1
   16724   cat conftest.err >&5
   16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16726   (exit $ac_status); } && {
   16727 	 test -z "$ac_c_werror_flag" ||
   16728 	 test ! -s conftest.err
   16729        } && test -s conftest$ac_exeext &&
   16730        $as_test_x conftest$ac_exeext; then
   16731   ac_cv_lib_gcc___divdi3=yes
   16732 else
   16733   echo "$as_me: failed program was:" >&5
   16734 sed 's/^/| /' conftest.$ac_ext >&5
   16735 
   16736 	ac_cv_lib_gcc___divdi3=no
   16737 fi
   16738 
   16739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16740       conftest$ac_exeext conftest.$ac_ext
   16741 LIBS=$ac_check_lib_save_LIBS
   16742 fi
   16743 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
   16744 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
   16745 if test $ac_cv_lib_gcc___divdi3 = yes; then
   16746 
   16747 cat >>confdefs.h <<\_ACEOF
   16748 #define HAVE___DIVDI3 1

   16749 _ACEOF
   16750 
   16751 fi
   16752 
   16753   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
   16754 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
   16755 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
   16756   echo $ECHO_N "(cached) $ECHO_C" >&6
   16757 else
   16758   ac_check_lib_save_LIBS=$LIBS
   16759 LIBS="-lgcc  $LIBS"
   16760 cat >conftest.$ac_ext <<_ACEOF
   16761 /* confdefs.h.  */
   16762 _ACEOF
   16763 cat confdefs.h >>conftest.$ac_ext
   16764 cat >>conftest.$ac_ext <<_ACEOF
   16765 /* end confdefs.h.  */
   16766 
   16767 /* Override any GCC internal prototype to avoid an error.
   16768    Use char because int might match the return type of a GCC
   16769    builtin and then its argument prototype would still apply.  */
   16770 #ifdef __cplusplus

   16771 extern "C"
   16772 #endif

   16773 char __fixdfdi ();
   16774 int
   16775 main ()
   16776 {
   16777 return __fixdfdi ();
   16778   ;
   16779   return 0;
   16780 }
   16781 _ACEOF
   16782 rm -f conftest.$ac_objext conftest$ac_exeext
   16783 if { (ac_try="$ac_link"
   16784 case "(($ac_try" in
   16785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16786   *) ac_try_echo=$ac_try;;
   16787 esac
   16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16789   (eval "$ac_link") 2>conftest.er1
   16790   ac_status=$?
   16791   grep -v '^ *+' conftest.er1 >conftest.err
   16792   rm -f conftest.er1
   16793   cat conftest.err >&5
   16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16795   (exit $ac_status); } && {
   16796 	 test -z "$ac_c_werror_flag" ||
   16797 	 test ! -s conftest.err
   16798        } && test -s conftest$ac_exeext &&
   16799        $as_test_x conftest$ac_exeext; then
   16800   ac_cv_lib_gcc___fixdfdi=yes
   16801 else
   16802   echo "$as_me: failed program was:" >&5
   16803 sed 's/^/| /' conftest.$ac_ext >&5
   16804 
   16805 	ac_cv_lib_gcc___fixdfdi=no
   16806 fi
   16807 
   16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16809       conftest$ac_exeext conftest.$ac_ext
   16810 LIBS=$ac_check_lib_save_LIBS
   16811 fi
   16812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
   16813 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
   16814 if test $ac_cv_lib_gcc___fixdfdi = yes; then
   16815 
   16816 cat >>confdefs.h <<\_ACEOF
   16817 #define HAVE___FIXDFDI 1

   16818 _ACEOF
   16819 
   16820 fi
   16821 
   16822   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
   16823 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
   16824 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
   16825   echo $ECHO_N "(cached) $ECHO_C" >&6
   16826 else
   16827   ac_check_lib_save_LIBS=$LIBS
   16828 LIBS="-lgcc  $LIBS"
   16829 cat >conftest.$ac_ext <<_ACEOF
   16830 /* confdefs.h.  */
   16831 _ACEOF
   16832 cat confdefs.h >>conftest.$ac_ext
   16833 cat >>conftest.$ac_ext <<_ACEOF
   16834 /* end confdefs.h.  */
   16835 
   16836 /* Override any GCC internal prototype to avoid an error.
   16837    Use char because int might match the return type of a GCC
   16838    builtin and then its argument prototype would still apply.  */
   16839 #ifdef __cplusplus

   16840 extern "C"
   16841 #endif

   16842 char __fixsfdi ();
   16843 int
   16844 main ()
   16845 {
   16846 return __fixsfdi ();
   16847   ;
   16848   return 0;
   16849 }
   16850 _ACEOF
   16851 rm -f conftest.$ac_objext conftest$ac_exeext
   16852 if { (ac_try="$ac_link"
   16853 case "(($ac_try" in
   16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16855   *) ac_try_echo=$ac_try;;
   16856 esac
   16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16858   (eval "$ac_link") 2>conftest.er1
   16859   ac_status=$?
   16860   grep -v '^ *+' conftest.er1 >conftest.err
   16861   rm -f conftest.er1
   16862   cat conftest.err >&5
   16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16864   (exit $ac_status); } && {
   16865 	 test -z "$ac_c_werror_flag" ||
   16866 	 test ! -s conftest.err
   16867        } && test -s conftest$ac_exeext &&
   16868        $as_test_x conftest$ac_exeext; then
   16869   ac_cv_lib_gcc___fixsfdi=yes
   16870 else
   16871   echo "$as_me: failed program was:" >&5
   16872 sed 's/^/| /' conftest.$ac_ext >&5
   16873 
   16874 	ac_cv_lib_gcc___fixsfdi=no
   16875 fi
   16876 
   16877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16878       conftest$ac_exeext conftest.$ac_ext
   16879 LIBS=$ac_check_lib_save_LIBS
   16880 fi
   16881 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
   16882 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
   16883 if test $ac_cv_lib_gcc___fixsfdi = yes; then
   16884 
   16885 cat >>confdefs.h <<\_ACEOF
   16886 #define HAVE___FIXSFDI 1

   16887 _ACEOF
   16888 
   16889 fi
   16890 
   16891   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
   16892 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
   16893 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
   16894   echo $ECHO_N "(cached) $ECHO_C" >&6
   16895 else
   16896   ac_check_lib_save_LIBS=$LIBS
   16897 LIBS="-lgcc  $LIBS"
   16898 cat >conftest.$ac_ext <<_ACEOF
   16899 /* confdefs.h.  */
   16900 _ACEOF
   16901 cat confdefs.h >>conftest.$ac_ext
   16902 cat >>conftest.$ac_ext <<_ACEOF
   16903 /* end confdefs.h.  */
   16904 
   16905 /* Override any GCC internal prototype to avoid an error.
   16906    Use char because int might match the return type of a GCC
   16907    builtin and then its argument prototype would still apply.  */
   16908 #ifdef __cplusplus

   16909 extern "C"
   16910 #endif

   16911 char __floatdidf ();
   16912 int
   16913 main ()
   16914 {
   16915 return __floatdidf ();
   16916   ;
   16917   return 0;
   16918 }
   16919 _ACEOF
   16920 rm -f conftest.$ac_objext conftest$ac_exeext
   16921 if { (ac_try="$ac_link"
   16922 case "(($ac_try" in
   16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16924   *) ac_try_echo=$ac_try;;
   16925 esac
   16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16927   (eval "$ac_link") 2>conftest.er1
   16928   ac_status=$?
   16929   grep -v '^ *+' conftest.er1 >conftest.err
   16930   rm -f conftest.er1
   16931   cat conftest.err >&5
   16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16933   (exit $ac_status); } && {
   16934 	 test -z "$ac_c_werror_flag" ||
   16935 	 test ! -s conftest.err
   16936        } && test -s conftest$ac_exeext &&
   16937        $as_test_x conftest$ac_exeext; then
   16938   ac_cv_lib_gcc___floatdidf=yes
   16939 else
   16940   echo "$as_me: failed program was:" >&5
   16941 sed 's/^/| /' conftest.$ac_ext >&5
   16942 
   16943 	ac_cv_lib_gcc___floatdidf=no
   16944 fi
   16945 
   16946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16947       conftest$ac_exeext conftest.$ac_ext
   16948 LIBS=$ac_check_lib_save_LIBS
   16949 fi
   16950 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
   16951 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
   16952 if test $ac_cv_lib_gcc___floatdidf = yes; then
   16953 
   16954 cat >>confdefs.h <<\_ACEOF
   16955 #define HAVE___FLOATDIDF 1

   16956 _ACEOF
   16957 
   16958 fi
   16959 
   16960   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
   16961 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
   16962 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
   16963   echo $ECHO_N "(cached) $ECHO_C" >&6
   16964 else
   16965   ac_check_lib_save_LIBS=$LIBS
   16966 LIBS="-lgcc  $LIBS"
   16967 cat >conftest.$ac_ext <<_ACEOF
   16968 /* confdefs.h.  */
   16969 _ACEOF
   16970 cat confdefs.h >>conftest.$ac_ext
   16971 cat >>conftest.$ac_ext <<_ACEOF
   16972 /* end confdefs.h.  */
   16973 
   16974 /* Override any GCC internal prototype to avoid an error.
   16975    Use char because int might match the return type of a GCC
   16976    builtin and then its argument prototype would still apply.  */
   16977 #ifdef __cplusplus

   16978 extern "C"
   16979 #endif

   16980 char __lshrdi3 ();
   16981 int
   16982 main ()
   16983 {
   16984 return __lshrdi3 ();
   16985   ;
   16986   return 0;
   16987 }
   16988 _ACEOF
   16989 rm -f conftest.$ac_objext conftest$ac_exeext
   16990 if { (ac_try="$ac_link"
   16991 case "(($ac_try" in
   16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16993   *) ac_try_echo=$ac_try;;
   16994 esac
   16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16996   (eval "$ac_link") 2>conftest.er1
   16997   ac_status=$?
   16998   grep -v '^ *+' conftest.er1 >conftest.err
   16999   rm -f conftest.er1
   17000   cat conftest.err >&5
   17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17002   (exit $ac_status); } && {
   17003 	 test -z "$ac_c_werror_flag" ||
   17004 	 test ! -s conftest.err
   17005        } && test -s conftest$ac_exeext &&
   17006        $as_test_x conftest$ac_exeext; then
   17007   ac_cv_lib_gcc___lshrdi3=yes
   17008 else
   17009   echo "$as_me: failed program was:" >&5
   17010 sed 's/^/| /' conftest.$ac_ext >&5
   17011 
   17012 	ac_cv_lib_gcc___lshrdi3=no
   17013 fi
   17014 
   17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17016       conftest$ac_exeext conftest.$ac_ext
   17017 LIBS=$ac_check_lib_save_LIBS
   17018 fi
   17019 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
   17020 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
   17021 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
   17022 
   17023 cat >>confdefs.h <<\_ACEOF
   17024 #define HAVE___LSHRDI3 1

   17025 _ACEOF
   17026 
   17027 fi
   17028 
   17029   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
   17030 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
   17031 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
   17032   echo $ECHO_N "(cached) $ECHO_C" >&6
   17033 else
   17034   ac_check_lib_save_LIBS=$LIBS
   17035 LIBS="-lgcc  $LIBS"
   17036 cat >conftest.$ac_ext <<_ACEOF
   17037 /* confdefs.h.  */
   17038 _ACEOF
   17039 cat confdefs.h >>conftest.$ac_ext
   17040 cat >>conftest.$ac_ext <<_ACEOF
   17041 /* end confdefs.h.  */
   17042 
   17043 /* Override any GCC internal prototype to avoid an error.
   17044    Use char because int might match the return type of a GCC
   17045    builtin and then its argument prototype would still apply.  */
   17046 #ifdef __cplusplus

   17047 extern "C"
   17048 #endif

   17049 char __moddi3 ();
   17050 int
   17051 main ()
   17052 {
   17053 return __moddi3 ();
   17054   ;
   17055   return 0;
   17056 }
   17057 _ACEOF
   17058 rm -f conftest.$ac_objext conftest$ac_exeext
   17059 if { (ac_try="$ac_link"
   17060 case "(($ac_try" in
   17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17062   *) ac_try_echo=$ac_try;;
   17063 esac
   17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17065   (eval "$ac_link") 2>conftest.er1
   17066   ac_status=$?
   17067   grep -v '^ *+' conftest.er1 >conftest.err
   17068   rm -f conftest.er1
   17069   cat conftest.err >&5
   17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17071   (exit $ac_status); } && {
   17072 	 test -z "$ac_c_werror_flag" ||
   17073 	 test ! -s conftest.err
   17074        } && test -s conftest$ac_exeext &&
   17075        $as_test_x conftest$ac_exeext; then
   17076   ac_cv_lib_gcc___moddi3=yes
   17077 else
   17078   echo "$as_me: failed program was:" >&5
   17079 sed 's/^/| /' conftest.$ac_ext >&5
   17080 
   17081 	ac_cv_lib_gcc___moddi3=no
   17082 fi
   17083 
   17084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17085       conftest$ac_exeext conftest.$ac_ext
   17086 LIBS=$ac_check_lib_save_LIBS
   17087 fi
   17088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
   17089 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
   17090 if test $ac_cv_lib_gcc___moddi3 = yes; then
   17091 
   17092 cat >>confdefs.h <<\_ACEOF
   17093 #define HAVE___MODDI3 1

   17094 _ACEOF
   17095 
   17096 fi
   17097 
   17098   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
   17099 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
   17100 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
   17101   echo $ECHO_N "(cached) $ECHO_C" >&6
   17102 else
   17103   ac_check_lib_save_LIBS=$LIBS
   17104 LIBS="-lgcc  $LIBS"
   17105 cat >conftest.$ac_ext <<_ACEOF
   17106 /* confdefs.h.  */
   17107 _ACEOF
   17108 cat confdefs.h >>conftest.$ac_ext
   17109 cat >>conftest.$ac_ext <<_ACEOF
   17110 /* end confdefs.h.  */
   17111 
   17112 /* Override any GCC internal prototype to avoid an error.
   17113    Use char because int might match the return type of a GCC
   17114    builtin and then its argument prototype would still apply.  */
   17115 #ifdef __cplusplus

   17116 extern "C"
   17117 #endif

   17118 char __udivdi3 ();
   17119 int
   17120 main ()
   17121 {
   17122 return __udivdi3 ();
   17123   ;
   17124   return 0;
   17125 }
   17126 _ACEOF
   17127 rm -f conftest.$ac_objext conftest$ac_exeext
   17128 if { (ac_try="$ac_link"
   17129 case "(($ac_try" in
   17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17131   *) ac_try_echo=$ac_try;;
   17132 esac
   17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17134   (eval "$ac_link") 2>conftest.er1
   17135   ac_status=$?
   17136   grep -v '^ *+' conftest.er1 >conftest.err
   17137   rm -f conftest.er1
   17138   cat conftest.err >&5
   17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17140   (exit $ac_status); } && {
   17141 	 test -z "$ac_c_werror_flag" ||
   17142 	 test ! -s conftest.err
   17143        } && test -s conftest$ac_exeext &&
   17144        $as_test_x conftest$ac_exeext; then
   17145   ac_cv_lib_gcc___udivdi3=yes
   17146 else
   17147   echo "$as_me: failed program was:" >&5
   17148 sed 's/^/| /' conftest.$ac_ext >&5
   17149 
   17150 	ac_cv_lib_gcc___udivdi3=no
   17151 fi
   17152 
   17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17154       conftest$ac_exeext conftest.$ac_ext
   17155 LIBS=$ac_check_lib_save_LIBS
   17156 fi
   17157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
   17158 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
   17159 if test $ac_cv_lib_gcc___udivdi3 = yes; then
   17160 
   17161 cat >>confdefs.h <<\_ACEOF
   17162 #define HAVE___UDIVDI3 1

   17163 _ACEOF
   17164 
   17165 fi
   17166 
   17167   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
   17168 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
   17169 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
   17170   echo $ECHO_N "(cached) $ECHO_C" >&6
   17171 else
   17172   ac_check_lib_save_LIBS=$LIBS
   17173 LIBS="-lgcc  $LIBS"
   17174 cat >conftest.$ac_ext <<_ACEOF
   17175 /* confdefs.h.  */
   17176 _ACEOF
   17177 cat confdefs.h >>conftest.$ac_ext
   17178 cat >>conftest.$ac_ext <<_ACEOF
   17179 /* end confdefs.h.  */
   17180 
   17181 /* Override any GCC internal prototype to avoid an error.
   17182    Use char because int might match the return type of a GCC
   17183    builtin and then its argument prototype would still apply.  */
   17184 #ifdef __cplusplus

   17185 extern "C"
   17186 #endif

   17187 char __umoddi3 ();
   17188 int
   17189 main ()
   17190 {
   17191 return __umoddi3 ();
   17192   ;
   17193   return 0;
   17194 }
   17195 _ACEOF
   17196 rm -f conftest.$ac_objext conftest$ac_exeext
   17197 if { (ac_try="$ac_link"
   17198 case "(($ac_try" in
   17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17200   *) ac_try_echo=$ac_try;;
   17201 esac
   17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17203   (eval "$ac_link") 2>conftest.er1
   17204   ac_status=$?
   17205   grep -v '^ *+' conftest.er1 >conftest.err
   17206   rm -f conftest.er1
   17207   cat conftest.err >&5
   17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17209   (exit $ac_status); } && {
   17210 	 test -z "$ac_c_werror_flag" ||
   17211 	 test ! -s conftest.err
   17212        } && test -s conftest$ac_exeext &&
   17213        $as_test_x conftest$ac_exeext; then
   17214   ac_cv_lib_gcc___umoddi3=yes
   17215 else
   17216   echo "$as_me: failed program was:" >&5
   17217 sed 's/^/| /' conftest.$ac_ext >&5
   17218 
   17219 	ac_cv_lib_gcc___umoddi3=no
   17220 fi
   17221 
   17222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17223       conftest$ac_exeext conftest.$ac_ext
   17224 LIBS=$ac_check_lib_save_LIBS
   17225 fi
   17226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
   17227 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
   17228 if test $ac_cv_lib_gcc___umoddi3 = yes; then
   17229 
   17230 cat >>confdefs.h <<\_ACEOF
   17231 #define HAVE___UMODDI3 1

   17232 _ACEOF
   17233 
   17234 fi
   17235 
   17236 
   17237   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
   17238 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
   17239 if test "${ac_cv_lib_gcc___main+set}" = set; then
   17240   echo $ECHO_N "(cached) $ECHO_C" >&6
   17241 else
   17242   ac_check_lib_save_LIBS=$LIBS
   17243 LIBS="-lgcc  $LIBS"
   17244 cat >conftest.$ac_ext <<_ACEOF
   17245 /* confdefs.h.  */
   17246 _ACEOF
   17247 cat confdefs.h >>conftest.$ac_ext
   17248 cat >>conftest.$ac_ext <<_ACEOF
   17249 /* end confdefs.h.  */
   17250 
   17251 /* Override any GCC internal prototype to avoid an error.
   17252    Use char because int might match the return type of a GCC
   17253    builtin and then its argument prototype would still apply.  */
   17254 #ifdef __cplusplus

   17255 extern "C"
   17256 #endif

   17257 char __main ();
   17258 int
   17259 main ()
   17260 {
   17261 return __main ();
   17262   ;
   17263   return 0;
   17264 }
   17265 _ACEOF
   17266 rm -f conftest.$ac_objext conftest$ac_exeext
   17267 if { (ac_try="$ac_link"
   17268 case "(($ac_try" in
   17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17270   *) ac_try_echo=$ac_try;;
   17271 esac
   17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17273   (eval "$ac_link") 2>conftest.er1
   17274   ac_status=$?
   17275   grep -v '^ *+' conftest.er1 >conftest.err
   17276   rm -f conftest.er1
   17277   cat conftest.err >&5
   17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17279   (exit $ac_status); } && {
   17280 	 test -z "$ac_c_werror_flag" ||
   17281 	 test ! -s conftest.err
   17282        } && test -s conftest$ac_exeext &&
   17283        $as_test_x conftest$ac_exeext; then
   17284   ac_cv_lib_gcc___main=yes
   17285 else
   17286   echo "$as_me: failed program was:" >&5
   17287 sed 's/^/| /' conftest.$ac_ext >&5
   17288 
   17289 	ac_cv_lib_gcc___main=no
   17290 fi
   17291 
   17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17293       conftest$ac_exeext conftest.$ac_ext
   17294 LIBS=$ac_check_lib_save_LIBS
   17295 fi
   17296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
   17297 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
   17298 if test $ac_cv_lib_gcc___main = yes; then
   17299 
   17300 cat >>confdefs.h <<\_ACEOF
   17301 #define HAVE___MAIN 1

   17302 _ACEOF
   17303 
   17304 fi
   17305 
   17306   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
   17307 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
   17308 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
   17309   echo $ECHO_N "(cached) $ECHO_C" >&6
   17310 else
   17311   ac_check_lib_save_LIBS=$LIBS
   17312 LIBS="-lgcc  $LIBS"
   17313 cat >conftest.$ac_ext <<_ACEOF
   17314 /* confdefs.h.  */
   17315 _ACEOF
   17316 cat confdefs.h >>conftest.$ac_ext
   17317 cat >>conftest.$ac_ext <<_ACEOF
   17318 /* end confdefs.h.  */
   17319 
   17320 /* Override any GCC internal prototype to avoid an error.
   17321    Use char because int might match the return type of a GCC
   17322    builtin and then its argument prototype would still apply.  */
   17323 #ifdef __cplusplus

   17324 extern "C"
   17325 #endif

   17326 char __cmpdi2 ();
   17327 int
   17328 main ()
   17329 {
   17330 return __cmpdi2 ();
   17331   ;
   17332   return 0;
   17333 }
   17334 _ACEOF
   17335 rm -f conftest.$ac_objext conftest$ac_exeext
   17336 if { (ac_try="$ac_link"
   17337 case "(($ac_try" in
   17338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17339   *) ac_try_echo=$ac_try;;
   17340 esac
   17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17342   (eval "$ac_link") 2>conftest.er1
   17343   ac_status=$?
   17344   grep -v '^ *+' conftest.er1 >conftest.err
   17345   rm -f conftest.er1
   17346   cat conftest.err >&5
   17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17348   (exit $ac_status); } && {
   17349 	 test -z "$ac_c_werror_flag" ||
   17350 	 test ! -s conftest.err
   17351        } && test -s conftest$ac_exeext &&
   17352        $as_test_x conftest$ac_exeext; then
   17353   ac_cv_lib_gcc___cmpdi2=yes
   17354 else
   17355   echo "$as_me: failed program was:" >&5
   17356 sed 's/^/| /' conftest.$ac_ext >&5
   17357 
   17358 	ac_cv_lib_gcc___cmpdi2=no
   17359 fi
   17360 
   17361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17362       conftest$ac_exeext conftest.$ac_ext
   17363 LIBS=$ac_check_lib_save_LIBS
   17364 fi
   17365 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
   17366 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
   17367 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
   17368 
   17369 cat >>confdefs.h <<\_ACEOF
   17370 #define HAVE___CMPDI2 1

   17371 _ACEOF
   17372 
   17373 fi
   17374 
   17375 fi
   17376 
   17377 if test "$llvm_cv_os_type" = "MingW" ; then
   17378   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
   17379 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
   17380   cat >conftest.$ac_ext <<_ACEOF
   17381 #include <windows.h>

   17382 #include <imagehlp.h>

   17383 extern void foo(PENUMLOADED_MODULES_CALLBACK);
   17384 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
   17385 _ACEOF
   17386 rm -f conftest.$ac_objext
   17387 if { (ac_try="$ac_compile"
   17388 case "(($ac_try" in
   17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17390   *) ac_try_echo=$ac_try;;
   17391 esac
   17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17393   (eval "$ac_compile") 2>conftest.er1
   17394   ac_status=$?
   17395   grep -v '^ *+' conftest.er1 >conftest.err
   17396   rm -f conftest.er1
   17397   cat conftest.err >&5
   17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17399   (exit $ac_status); } && {
   17400 	 test -z "$ac_c_werror_flag" ||
   17401 	 test ! -s conftest.err
   17402        } && test -s conftest.$ac_objext; then
   17403 
   17404   { echo "$as_me:$LINENO: result: yes" >&5
   17405 echo "${ECHO_T}yes" >&6; }
   17406   llvm_cv_win32_elmcb_pcstr="PCSTR"
   17407 
   17408 else
   17409   echo "$as_me: failed program was:" >&5
   17410 sed 's/^/| /' conftest.$ac_ext >&5
   17411 
   17412 
   17413   { echo "$as_me:$LINENO: result: no" >&5
   17414 echo "${ECHO_T}no" >&6; }
   17415   llvm_cv_win32_elmcb_pcstr="PSTR"
   17416 
   17417 fi
   17418 
   17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17420 
   17421 cat >>confdefs.h <<_ACEOF
   17422 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr

   17423 _ACEOF
   17424 
   17425 fi
   17426 
   17427 
   17428 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
   17429 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
   17430 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
   17431   echo $ECHO_N "(cached) $ECHO_C" >&6
   17432 else
   17433   ac_ext=cpp
   17434 ac_cpp='$CXXCPP $CPPFLAGS'
   17435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17438 
   17439    cat >conftest.$ac_ext <<_ACEOF
   17440 /* confdefs.h.  */
   17441 _ACEOF
   17442 cat confdefs.h >>conftest.$ac_ext
   17443 cat >>conftest.$ac_ext <<_ACEOF
   17444 /* end confdefs.h.  */
   17445 #include <math.h>

   17446 int
   17447 main ()
   17448 {
   17449 float f; isnan(f);
   17450   ;
   17451   return 0;
   17452 }
   17453 _ACEOF
   17454 rm -f conftest.$ac_objext
   17455 if { (ac_try="$ac_compile"
   17456 case "(($ac_try" in
   17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17458   *) ac_try_echo=$ac_try;;
   17459 esac
   17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17461   (eval "$ac_compile") 2>conftest.er1
   17462   ac_status=$?
   17463   grep -v '^ *+' conftest.er1 >conftest.err
   17464   rm -f conftest.er1
   17465   cat conftest.err >&5
   17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17467   (exit $ac_status); } && {
   17468 	 test -z "$ac_cxx_werror_flag" ||
   17469 	 test ! -s conftest.err
   17470        } && test -s conftest.$ac_objext; then
   17471   ac_cv_func_isnan_in_math_h=yes
   17472 else
   17473   echo "$as_me: failed program was:" >&5
   17474 sed 's/^/| /' conftest.$ac_ext >&5
   17475 
   17476 	ac_cv_func_isnan_in_math_h=no
   17477 fi
   17478 
   17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17480   ac_ext=c
   17481 ac_cpp='$CPP $CPPFLAGS'
   17482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17485 
   17486 fi
   17487 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
   17488 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
   17489 
   17490 
   17491 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
   17492 
   17493 cat >>confdefs.h <<\_ACEOF
   17494 #define HAVE_ISNAN_IN_MATH_H 1

   17495 _ACEOF
   17496 
   17497 fi
   17498 
   17499 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
   17500 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
   17501 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
   17502   echo $ECHO_N "(cached) $ECHO_C" >&6
   17503 else
   17504   ac_ext=cpp
   17505 ac_cpp='$CXXCPP $CPPFLAGS'
   17506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17509 
   17510    cat >conftest.$ac_ext <<_ACEOF
   17511 /* confdefs.h.  */
   17512 _ACEOF
   17513 cat confdefs.h >>conftest.$ac_ext
   17514 cat >>conftest.$ac_ext <<_ACEOF
   17515 /* end confdefs.h.  */
   17516 #include <cmath>

   17517 int
   17518 main ()
   17519 {
   17520 float f; isnan(f);
   17521   ;
   17522   return 0;
   17523 }
   17524 _ACEOF
   17525 rm -f conftest.$ac_objext
   17526 if { (ac_try="$ac_compile"
   17527 case "(($ac_try" in
   17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17529   *) ac_try_echo=$ac_try;;
   17530 esac
   17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17532   (eval "$ac_compile") 2>conftest.er1
   17533   ac_status=$?
   17534   grep -v '^ *+' conftest.er1 >conftest.err
   17535   rm -f conftest.er1
   17536   cat conftest.err >&5
   17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17538   (exit $ac_status); } && {
   17539 	 test -z "$ac_cxx_werror_flag" ||
   17540 	 test ! -s conftest.err
   17541        } && test -s conftest.$ac_objext; then
   17542   ac_cv_func_isnan_in_cmath=yes
   17543 else
   17544   echo "$as_me: failed program was:" >&5
   17545 sed 's/^/| /' conftest.$ac_ext >&5
   17546 
   17547 	ac_cv_func_isnan_in_cmath=no
   17548 fi
   17549 
   17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17551   ac_ext=c
   17552 ac_cpp='$CPP $CPPFLAGS'
   17553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17556 
   17557 fi
   17558 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
   17559 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
   17560 
   17561 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
   17562 
   17563 cat >>confdefs.h <<\_ACEOF
   17564 #define HAVE_ISNAN_IN_CMATH 1

   17565 _ACEOF
   17566 
   17567 fi
   17568 
   17569 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
   17570 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
   17571 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
   17572   echo $ECHO_N "(cached) $ECHO_C" >&6
   17573 else
   17574   ac_ext=cpp
   17575 ac_cpp='$CXXCPP $CPPFLAGS'
   17576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17579 
   17580    cat >conftest.$ac_ext <<_ACEOF
   17581 /* confdefs.h.  */
   17582 _ACEOF
   17583 cat confdefs.h >>conftest.$ac_ext
   17584 cat >>conftest.$ac_ext <<_ACEOF
   17585 /* end confdefs.h.  */
   17586 #include <cmath>

   17587 int
   17588 main ()
   17589 {
   17590 float f; std::isnan(f);
   17591   ;
   17592   return 0;
   17593 }
   17594 _ACEOF
   17595 rm -f conftest.$ac_objext
   17596 if { (ac_try="$ac_compile"
   17597 case "(($ac_try" in
   17598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17599   *) ac_try_echo=$ac_try;;
   17600 esac
   17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17602   (eval "$ac_compile") 2>conftest.er1
   17603   ac_status=$?
   17604   grep -v '^ *+' conftest.er1 >conftest.err
   17605   rm -f conftest.er1
   17606   cat conftest.err >&5
   17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17608   (exit $ac_status); } && {
   17609 	 test -z "$ac_cxx_werror_flag" ||
   17610 	 test ! -s conftest.err
   17611        } && test -s conftest.$ac_objext; then
   17612   ac_cv_func_std_isnan_in_cmath=yes
   17613 else
   17614   echo "$as_me: failed program was:" >&5
   17615 sed 's/^/| /' conftest.$ac_ext >&5
   17616 
   17617 	ac_cv_func_std_isnan_in_cmath=no
   17618 fi
   17619 
   17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17621   ac_ext=c
   17622 ac_cpp='$CPP $CPPFLAGS'
   17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17626 
   17627 fi
   17628 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
   17629 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
   17630 
   17631 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
   17632 
   17633 cat >>confdefs.h <<\_ACEOF
   17634 #define HAVE_STD_ISNAN_IN_CMATH 1

   17635 _ACEOF
   17636 
   17637 fi
   17638 
   17639 
   17640 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
   17641 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
   17642 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
   17643   echo $ECHO_N "(cached) $ECHO_C" >&6
   17644 else
   17645   ac_ext=cpp
   17646 ac_cpp='$CXXCPP $CPPFLAGS'
   17647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17650 
   17651    cat >conftest.$ac_ext <<_ACEOF
   17652 /* confdefs.h.  */
   17653 _ACEOF
   17654 cat confdefs.h >>conftest.$ac_ext
   17655 cat >>conftest.$ac_ext <<_ACEOF
   17656 /* end confdefs.h.  */
   17657 #include <math.h>

   17658 int
   17659 main ()
   17660 {
   17661 float f; isinf(f);
   17662   ;
   17663   return 0;
   17664 }
   17665 _ACEOF
   17666 rm -f conftest.$ac_objext
   17667 if { (ac_try="$ac_compile"
   17668 case "(($ac_try" in
   17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17670   *) ac_try_echo=$ac_try;;
   17671 esac
   17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17673   (eval "$ac_compile") 2>conftest.er1
   17674   ac_status=$?
   17675   grep -v '^ *+' conftest.er1 >conftest.err
   17676   rm -f conftest.er1
   17677   cat conftest.err >&5
   17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17679   (exit $ac_status); } && {
   17680 	 test -z "$ac_cxx_werror_flag" ||
   17681 	 test ! -s conftest.err
   17682        } && test -s conftest.$ac_objext; then
   17683   ac_cv_func_isinf_in_math_h=yes
   17684 else
   17685   echo "$as_me: failed program was:" >&5
   17686 sed 's/^/| /' conftest.$ac_ext >&5
   17687 
   17688 	ac_cv_func_isinf_in_math_h=no
   17689 fi
   17690 
   17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17692   ac_ext=c
   17693 ac_cpp='$CPP $CPPFLAGS'
   17694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17697 
   17698 fi
   17699 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
   17700 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
   17701 
   17702 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
   17703 
   17704 cat >>confdefs.h <<\_ACEOF
   17705 #define HAVE_ISINF_IN_MATH_H 1

   17706 _ACEOF
   17707 
   17708 fi
   17709 
   17710 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
   17711 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
   17712 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
   17713   echo $ECHO_N "(cached) $ECHO_C" >&6
   17714 else
   17715   ac_ext=cpp
   17716 ac_cpp='$CXXCPP $CPPFLAGS'
   17717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17720 
   17721    cat >conftest.$ac_ext <<_ACEOF
   17722 /* confdefs.h.  */
   17723 _ACEOF
   17724 cat confdefs.h >>conftest.$ac_ext
   17725 cat >>conftest.$ac_ext <<_ACEOF
   17726 /* end confdefs.h.  */
   17727 #include <cmath>

   17728 int
   17729 main ()
   17730 {
   17731 float f; isinf(f);
   17732   ;
   17733   return 0;
   17734 }
   17735 _ACEOF
   17736 rm -f conftest.$ac_objext
   17737 if { (ac_try="$ac_compile"
   17738 case "(($ac_try" in
   17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17740   *) ac_try_echo=$ac_try;;
   17741 esac
   17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17743   (eval "$ac_compile") 2>conftest.er1
   17744   ac_status=$?
   17745   grep -v '^ *+' conftest.er1 >conftest.err
   17746   rm -f conftest.er1
   17747   cat conftest.err >&5
   17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17749   (exit $ac_status); } && {
   17750 	 test -z "$ac_cxx_werror_flag" ||
   17751 	 test ! -s conftest.err
   17752        } && test -s conftest.$ac_objext; then
   17753   ac_cv_func_isinf_in_cmath=yes
   17754 else
   17755   echo "$as_me: failed program was:" >&5
   17756 sed 's/^/| /' conftest.$ac_ext >&5
   17757 
   17758 	ac_cv_func_isinf_in_cmath=no
   17759 fi
   17760 
   17761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17762   ac_ext=c
   17763 ac_cpp='$CPP $CPPFLAGS'
   17764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17767 
   17768 fi
   17769 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
   17770 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
   17771 
   17772 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
   17773 
   17774 cat >>confdefs.h <<\_ACEOF
   17775 #define HAVE_ISINF_IN_CMATH 1

   17776 _ACEOF
   17777 
   17778 fi
   17779 
   17780 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
   17781 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
   17782 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
   17783   echo $ECHO_N "(cached) $ECHO_C" >&6
   17784 else
   17785   ac_ext=cpp
   17786 ac_cpp='$CXXCPP $CPPFLAGS'
   17787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17790 
   17791    cat >conftest.$ac_ext <<_ACEOF
   17792 /* confdefs.h.  */
   17793 _ACEOF
   17794 cat confdefs.h >>conftest.$ac_ext
   17795 cat >>conftest.$ac_ext <<_ACEOF
   17796 /* end confdefs.h.  */
   17797 #include <cmath>

   17798 int
   17799 main ()
   17800 {
   17801 float f; std::isinf(f)}
   17802   ;
   17803   return 0;
   17804 }
   17805 _ACEOF
   17806 rm -f conftest.$ac_objext
   17807 if { (ac_try="$ac_compile"
   17808 case "(($ac_try" in
   17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17810   *) ac_try_echo=$ac_try;;
   17811 esac
   17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17813   (eval "$ac_compile") 2>conftest.er1
   17814   ac_status=$?
   17815   grep -v '^ *+' conftest.er1 >conftest.err
   17816   rm -f conftest.er1
   17817   cat conftest.err >&5
   17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17819   (exit $ac_status); } && {
   17820 	 test -z "$ac_cxx_werror_flag" ||
   17821 	 test ! -s conftest.err
   17822        } && test -s conftest.$ac_objext; then
   17823   ac_cv_func_std_isinf_in_cmath=yes
   17824 else
   17825   echo "$as_me: failed program was:" >&5
   17826 sed 's/^/| /' conftest.$ac_ext >&5
   17827 
   17828 	ac_cv_func_std_isinf_in_cmath=no
   17829 fi
   17830 
   17831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17832   ac_ext=c
   17833 ac_cpp='$CPP $CPPFLAGS'
   17834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17837 
   17838 fi
   17839 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
   17840 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
   17841 
   17842 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
   17843 
   17844 cat >>confdefs.h <<\_ACEOF
   17845 #define HAVE_STD_ISINF_IN_CMATH 1

   17846 _ACEOF
   17847 
   17848 fi
   17849 
   17850 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
   17851 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
   17852 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
   17853   echo $ECHO_N "(cached) $ECHO_C" >&6
   17854 else
   17855   ac_ext=cpp
   17856 ac_cpp='$CXXCPP $CPPFLAGS'
   17857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   17860 
   17861    cat >conftest.$ac_ext <<_ACEOF
   17862 /* confdefs.h.  */
   17863 _ACEOF
   17864 cat confdefs.h >>conftest.$ac_ext
   17865 cat >>conftest.$ac_ext <<_ACEOF
   17866 /* end confdefs.h.  */
   17867 #include <ieeefp.h>

   17868 int
   17869 main ()
   17870 {
   17871 float f; finite(f);
   17872   ;
   17873   return 0;
   17874 }
   17875 _ACEOF
   17876 rm -f conftest.$ac_objext
   17877 if { (ac_try="$ac_compile"
   17878 case "(($ac_try" in
   17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17880   *) ac_try_echo=$ac_try;;
   17881 esac
   17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17883   (eval "$ac_compile") 2>conftest.er1
   17884   ac_status=$?
   17885   grep -v '^ *+' conftest.er1 >conftest.err
   17886   rm -f conftest.er1
   17887   cat conftest.err >&5
   17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17889   (exit $ac_status); } && {
   17890 	 test -z "$ac_cxx_werror_flag" ||
   17891 	 test ! -s conftest.err
   17892        } && test -s conftest.$ac_objext; then
   17893   ac_cv_func_finite_in_ieeefp_h=yes
   17894 else
   17895   echo "$as_me: failed program was:" >&5
   17896 sed 's/^/| /' conftest.$ac_ext >&5
   17897 
   17898 	ac_cv_func_finite_in_ieeefp_h=no
   17899 fi
   17900 
   17901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17902   ac_ext=c
   17903 ac_cpp='$CPP $CPPFLAGS'
   17904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   17905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   17906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   17907 
   17908 fi
   17909 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
   17910 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
   17911 
   17912 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
   17913 
   17914 cat >>confdefs.h <<\_ACEOF
   17915 #define HAVE_FINITE_IN_IEEEFP_H 1

   17916 _ACEOF
   17917 
   17918 fi
   17919 
   17920 
   17921 
   17922 if test "$llvm_cv_platform_type" = "Unix" ; then
   17923 
   17924 
   17925 for ac_header in stdlib.h unistd.h
   17926 do
   17927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17929   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   17930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   17931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   17932   echo $ECHO_N "(cached) $ECHO_C" >&6
   17933 fi
   17934 ac_res=`eval echo '${'$as_ac_Header'}'`
   17935 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17936 echo "${ECHO_T}$ac_res" >&6; }
   17937 else
   17938   # Is the header compilable?

   17939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   17940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   17941 cat >conftest.$ac_ext <<_ACEOF
   17942 /* confdefs.h.  */
   17943 _ACEOF
   17944 cat confdefs.h >>conftest.$ac_ext
   17945 cat >>conftest.$ac_ext <<_ACEOF
   17946 /* end confdefs.h.  */
   17947 $ac_includes_default
   17948 #include <$ac_header>

   17949 _ACEOF
   17950 rm -f conftest.$ac_objext
   17951 if { (ac_try="$ac_compile"
   17952 case "(($ac_try" in
   17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17954   *) ac_try_echo=$ac_try;;
   17955 esac
   17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17957   (eval "$ac_compile") 2>conftest.er1
   17958   ac_status=$?
   17959   grep -v '^ *+' conftest.er1 >conftest.err
   17960   rm -f conftest.er1
   17961   cat conftest.err >&5
   17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17963   (exit $ac_status); } && {
   17964 	 test -z "$ac_c_werror_flag" ||
   17965 	 test ! -s conftest.err
   17966        } && test -s conftest.$ac_objext; then
   17967   ac_header_compiler=yes
   17968 else
   17969   echo "$as_me: failed program was:" >&5
   17970 sed 's/^/| /' conftest.$ac_ext >&5
   17971 
   17972 	ac_header_compiler=no
   17973 fi
   17974 
   17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   17977 echo "${ECHO_T}$ac_header_compiler" >&6; }
   17978 
   17979 # Is the header present?

   17980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   17981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   17982 cat >conftest.$ac_ext <<_ACEOF
   17983 /* confdefs.h.  */
   17984 _ACEOF
   17985 cat confdefs.h >>conftest.$ac_ext
   17986 cat >>conftest.$ac_ext <<_ACEOF
   17987 /* end confdefs.h.  */
   17988 #include <$ac_header>

   17989 _ACEOF
   17990 if { (ac_try="$ac_cpp conftest.$ac_ext"
   17991 case "(($ac_try" in
   17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17993   *) ac_try_echo=$ac_try;;
   17994 esac
   17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   17997   ac_status=$?
   17998   grep -v '^ *+' conftest.er1 >conftest.err
   17999   rm -f conftest.er1
   18000   cat conftest.err >&5
   18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18002   (exit $ac_status); } >/dev/null && {
   18003 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   18004 	 test ! -s conftest.err
   18005        }; then
   18006   ac_header_preproc=yes
   18007 else
   18008   echo "$as_me: failed program was:" >&5
   18009 sed 's/^/| /' conftest.$ac_ext >&5
   18010 
   18011   ac_header_preproc=no
   18012 fi
   18013 
   18014 rm -f conftest.err conftest.$ac_ext
   18015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   18016 echo "${ECHO_T}$ac_header_preproc" >&6; }
   18017 
   18018 # So?  What about this header?

   18019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   18020   yes:no: )
   18021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   18022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   18023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   18024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   18025     ac_header_preproc=yes
   18026     ;;
   18027   no:yes:* )
   18028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   18029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   18030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   18031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   18032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   18033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   18034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   18035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   18036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   18037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   18038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   18039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   18040     ( cat <<\_ASBOX
   18041 ## ----------------------------------- ##

   18042 ## Report this to llvmbugs (at] cs.uiuc.edu ##

   18043 ## ----------------------------------- ##

   18044 _ASBOX
   18045      ) | sed "s/^/$as_me: WARNING:     /" >&2
   18046     ;;
   18047 esac
   18048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   18049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   18050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   18051   echo $ECHO_N "(cached) $ECHO_C" >&6
   18052 else
   18053   eval "$as_ac_Header=\$ac_header_preproc"
   18054 fi
   18055 ac_res=`eval echo '${'$as_ac_Header'}'`
   18056 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18057 echo "${ECHO_T}$ac_res" >&6; }
   18058 
   18059 fi
   18060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   18061   cat >>confdefs.h <<_ACEOF
   18062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

   18063 _ACEOF
   18064 
   18065 fi
   18066 
   18067 done
   18068 
   18069 
   18070 for ac_func in getpagesize
   18071 do
   18072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18076   echo $ECHO_N "(cached) $ECHO_C" >&6
   18077 else
   18078   cat >conftest.$ac_ext <<_ACEOF
   18079 /* confdefs.h.  */
   18080 _ACEOF
   18081 cat confdefs.h >>conftest.$ac_ext
   18082 cat >>conftest.$ac_ext <<_ACEOF
   18083 /* end confdefs.h.  */
   18084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18086 #define $ac_func innocuous_$ac_func

   18087 
   18088 /* System header to define __stub macros and hopefully few prototypes,
   18089     which can conflict with char $ac_func (); below.
   18090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18091     <limits.h> exists even on freestanding compilers.  */
   18092 
   18093 #ifdef __STDC__

   18094 # include <limits.h>

   18095 #else

   18096 # include <assert.h>

   18097 #endif

   18098 
   18099 #undef $ac_func

   18100 
   18101 /* Override any GCC internal prototype to avoid an error.
   18102    Use char because int might match the return type of a GCC
   18103    builtin and then its argument prototype would still apply.  */
   18104 #ifdef __cplusplus

   18105 extern "C"
   18106 #endif

   18107 char $ac_func ();
   18108 /* The GNU C library defines this for functions which it implements
   18109     to always fail with ENOSYS.  Some functions are actually named
   18110     something starting with __ and the normal name is an alias.  */
   18111 #if defined __stub_$ac_func || defined __stub___$ac_func

   18112 choke me
   18113 #endif

   18114 
   18115 int
   18116 main ()
   18117 {
   18118 return $ac_func ();
   18119   ;
   18120   return 0;
   18121 }
   18122 _ACEOF
   18123 rm -f conftest.$ac_objext conftest$ac_exeext
   18124 if { (ac_try="$ac_link"
   18125 case "(($ac_try" in
   18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18127   *) ac_try_echo=$ac_try;;
   18128 esac
   18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18130   (eval "$ac_link") 2>conftest.er1
   18131   ac_status=$?
   18132   grep -v '^ *+' conftest.er1 >conftest.err
   18133   rm -f conftest.er1
   18134   cat conftest.err >&5
   18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18136   (exit $ac_status); } && {
   18137 	 test -z "$ac_c_werror_flag" ||
   18138 	 test ! -s conftest.err
   18139        } && test -s conftest$ac_exeext &&
   18140        $as_test_x conftest$ac_exeext; then
   18141   eval "$as_ac_var=yes"
   18142 else
   18143   echo "$as_me: failed program was:" >&5
   18144 sed 's/^/| /' conftest.$ac_ext >&5
   18145 
   18146 	eval "$as_ac_var=no"
   18147 fi
   18148 
   18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18150       conftest$ac_exeext conftest.$ac_ext
   18151 fi
   18152 ac_res=`eval echo '${'$as_ac_var'}'`
   18153 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18154 echo "${ECHO_T}$ac_res" >&6; }
   18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18156   cat >>confdefs.h <<_ACEOF
   18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1

   18158 _ACEOF
   18159 
   18160 fi
   18161 done
   18162 
   18163 { echo "$as_me:$LINENO: checking for working mmap" >&5
   18164 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
   18165 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   18166   echo $ECHO_N "(cached) $ECHO_C" >&6
   18167 else
   18168   if test "$cross_compiling" = yes; then
   18169   ac_cv_func_mmap_fixed_mapped=no
   18170 else
   18171   cat >conftest.$ac_ext <<_ACEOF
   18172 /* confdefs.h.  */
   18173 _ACEOF
   18174 cat confdefs.h >>conftest.$ac_ext
   18175 cat >>conftest.$ac_ext <<_ACEOF
   18176 /* end confdefs.h.  */
   18177 $ac_includes_default
   18178 /* malloc might have been renamed as rpl_malloc. */
   18179 #undef malloc

   18180 
   18181 /* Thanks to Mike Haertel and Jim Avera for this test.
   18182    Here is a matrix of mmap possibilities:
   18183 	mmap private not fixed
   18184 	mmap private fixed at somewhere currently unmapped
   18185 	mmap private fixed at somewhere already mapped
   18186 	mmap shared not fixed
   18187 	mmap shared fixed at somewhere currently unmapped
   18188 	mmap shared fixed at somewhere already mapped
   18189    For private mappings, we should verify that changes cannot be read()
   18190    back from the file, nor mmap's back from the file at a different
   18191    address.  (There have been systems where private was not correctly
   18192    implemented like the infamous i386 svr4.0, and systems where the
   18193    VM page cache was not coherent with the file system buffer cache
   18194    like early versions of FreeBSD and possibly contemporary NetBSD.)
   18195    For shared mappings, we should conversely verify that changes get
   18196    propagated back to all the places they're supposed to be.
   18197 
   18198    Grep wants private fixed already mapped.
   18199    The main things grep needs to know about mmap are:
   18200    * does it exist and is it safe to write into the mmap'd area
   18201    * how to use it (BSD variants)  */
   18202 
   18203 #include <fcntl.h>
   18204 #include <sys/mman.h>
   18205 
   18206 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   18207 char *malloc ();
   18208 #endif
   18209 
   18210 /* This mess was copied from the GNU getpagesize.h.  */
   18211 #ifndef HAVE_GETPAGESIZE
   18212 /* Assume that all systems that can run configure have sys/param.h.  */
   18213 # ifndef HAVE_SYS_PARAM_H
   18214 #  define HAVE_SYS_PARAM_H 1
   18215 # endif
   18216 
   18217 # ifdef _SC_PAGESIZE
   18218 #  define getpagesize() sysconf(_SC_PAGESIZE)
   18219 # else /* no _SC_PAGESIZE */
   18220 #  ifdef HAVE_SYS_PARAM_H
   18221 #   include <sys/param.h>
   18222 #   ifdef EXEC_PAGESIZE
   18223 #    define getpagesize() EXEC_PAGESIZE
   18224 #   else /* no EXEC_PAGESIZE */
   18225 #    ifdef NBPG
   18226 #     define getpagesize() NBPG * CLSIZE
   18227 #     ifndef CLSIZE
   18228 #      define CLSIZE 1
   18229 #     endif /* no CLSIZE */
   18230 #    else /* no NBPG */
   18231 #     ifdef NBPC
   18232 #      define getpagesize() NBPC
   18233 #     else /* no NBPC */
   18234 #      ifdef PAGESIZE
   18235 #       define getpagesize() PAGESIZE
   18236 #      endif /* PAGESIZE */
   18237 #     endif /* no NBPC */
   18238 #    endif /* no NBPG */
   18239 #   endif /* no EXEC_PAGESIZE */
   18240 #  else /* no HAVE_SYS_PARAM_H */
   18241 #   define getpagesize() 8192	/* punt totally */
   18242 #  endif /* no HAVE_SYS_PARAM_H */
   18243 # endif /* no _SC_PAGESIZE */
   18244 
   18245 #endif /* no HAVE_GETPAGESIZE */
   18246 
   18247 int
   18248 main ()
   18249 {
   18250   char *data, *data2, *data3;
   18251   int i, pagesize;
   18252   int fd;
   18253 
   18254   pagesize = getpagesize ();
   18255 
   18256   /* First, make a file with some known garbage in it. */
   18257   data = (char *) malloc (pagesize);
   18258   if (!data)
   18259     return 1;
   18260   for (i = 0; i < pagesize; ++i)
   18261     *(data + i) = rand ();
   18262   umask (0);
   18263   fd = creat ("conftest.mmap", 0600);
   18264   if (fd < 0)
   18265     return 1;
   18266   if (write (fd, data, pagesize) != pagesize)
   18267     return 1;
   18268   close (fd);
   18269 
   18270   /* Next, try to mmap the file at a fixed address which already has
   18271      something else allocated at it.  If we can, also make sure that
   18272      we see the same garbage.  */
   18273   fd = open ("conftest.mmap", O_RDWR);
   18274   if (fd < 0)
   18275     return 1;
   18276   data2 = (char *) malloc (2 * pagesize);
   18277   if (!data2)
   18278     return 1;
   18279   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   18280   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   18281 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   18282     return 1;
   18283   for (i = 0; i < pagesize; ++i)
   18284     if (*(data + i) != *(data2 + i))
   18285       return 1;
   18286 
   18287   /* Finally, make sure that changes to the mapped area do not
   18288      percolate back to the file as seen by read().  (This is a bug on
   18289      some variants of i386 svr4.0.)  */
   18290   for (i = 0; i < pagesize; ++i)
   18291     *(data2 + i) = *(data2 + i) + 1;
   18292   data3 = (char *) malloc (pagesize);
   18293   if (!data3)
   18294     return 1;
   18295   if (read (fd, data3, pagesize) != pagesize)
   18296     return 1;
   18297   for (i = 0; i < pagesize; ++i)
   18298     if (*(data + i) != *(data3 + i))
   18299       return 1;
   18300   close (fd);
   18301   return 0;
   18302 }
   18303 _ACEOF
   18304 rm -f conftest$ac_exeext
   18305 if { (ac_try="$ac_link"
   18306 case "(($ac_try" in
   18307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18308   *) ac_try_echo=$ac_try;;
   18309 esac
   18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18311   (eval "$ac_link") 2>&5
   18312   ac_status=$?
   18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18315   { (case "(($ac_try" in
   18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18317   *) ac_try_echo=$ac_try;;
   18318 esac
   18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18320   (eval "$ac_try") 2>&5
   18321   ac_status=$?
   18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18323   (exit $ac_status); }; }; then
   18324   ac_cv_func_mmap_fixed_mapped=yes
   18325 else
   18326   echo "$as_me: program exited with status $ac_status" >&5
   18327 echo "$as_me: failed program was:" >&5
   18328 sed 's/^/| /' conftest.$ac_ext >&5
   18329 
   18330 ( exit $ac_status )
   18331 ac_cv_func_mmap_fixed_mapped=no
   18332 fi
   18333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18334 fi
   18335 
   18336 
   18337 fi
   18338 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   18339 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
   18340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   18341 
   18342 cat >>confdefs.h <<\_ACEOF
   18343 #define HAVE_MMAP 1
   18344 _ACEOF
   18345 
   18346 fi
   18347 rm -f conftest.mmap
   18348 
   18349   { echo "$as_me:$LINENO: checking for mmap of files" >&5
   18350 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
   18351 if test "${ac_cv_func_mmap_file+set}" = set; then
   18352   echo $ECHO_N "(cached) $ECHO_C" >&6
   18353 else
   18354    ac_ext=c
   18355 ac_cpp='$CPP $CPPFLAGS'
   18356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18359 
   18360   if test "$cross_compiling" = yes; then
   18361   ac_cv_func_mmap_file=no
   18362 else
   18363   cat >conftest.$ac_ext <<_ACEOF
   18364 
   18365     /* confdefs.h.  */
   18366 _ACEOF
   18367 cat confdefs.h >>conftest.$ac_ext
   18368 cat >>conftest.$ac_ext <<_ACEOF
   18369 /* end confdefs.h.  */
   18370 
   18371 #include <sys/types.h>
   18372 #include <sys/mman.h>
   18373 #include <fcntl.h>
   18374 
   18375 int
   18376 main ()
   18377 {
   18378 
   18379   int fd;
   18380   fd = creat ("foo",0777);
   18381   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
   18382   unlink ("foo");
   18383   return (fd != (int) MAP_FAILED);
   18384   ;
   18385   return 0;
   18386 }
   18387 _ACEOF
   18388 rm -f conftest$ac_exeext
   18389 if { (ac_try="$ac_link"
   18390 case "(($ac_try" in
   18391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18392   *) ac_try_echo=$ac_try;;
   18393 esac
   18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18395   (eval "$ac_link") 2>&5
   18396   ac_status=$?
   18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18399   { (case "(($ac_try" in
   18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18401   *) ac_try_echo=$ac_try;;
   18402 esac
   18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18404   (eval "$ac_try") 2>&5
   18405   ac_status=$?
   18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18407   (exit $ac_status); }; }; then
   18408   ac_cv_func_mmap_file=yes
   18409 else
   18410   echo "$as_me: program exited with status $ac_status" >&5
   18411 echo "$as_me: failed program was:" >&5
   18412 sed 's/^/| /' conftest.$ac_ext >&5
   18413 
   18414 ( exit $ac_status )
   18415 ac_cv_func_mmap_file=no
   18416 fi
   18417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18418 fi
   18419 
   18420 
   18421   ac_ext=c
   18422 ac_cpp='$CPP $CPPFLAGS'
   18423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18426 
   18427 
   18428 fi
   18429 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
   18430 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
   18431 if test "$ac_cv_func_mmap_file" = yes; then
   18432 
   18433 cat >>confdefs.h <<\_ACEOF
   18434 #define HAVE_MMAP_FILE
   18435 _ACEOF
   18436 
   18437    MMAP_FILE=yes
   18438 
   18439 fi
   18440 
   18441   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
   18442 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
   18443 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
   18444   echo $ECHO_N "(cached) $ECHO_C" >&6
   18445 else
   18446   if test "$llvm_cv_os_type" = "Interix" ; then
   18447    ac_cv_need_dev_zero_for_mmap=yes
   18448  else
   18449    ac_cv_need_dev_zero_for_mmap=no
   18450  fi
   18451 
   18452 fi
   18453 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
   18454 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
   18455 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
   18456 
   18457 cat >>confdefs.h <<\_ACEOF
   18458 #define NEED_DEV_ZERO_FOR_MMAP 1
   18459 _ACEOF
   18460 
   18461 fi
   18462 
   18463   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
   18464   then
   18465     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
   18466 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
   18467   fi
   18468   if test "$ac_cv_func_mmap_file" = "no"
   18469   then
   18470     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
   18471 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
   18472   fi
   18473 fi
   18474 
   18475 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
   18476 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
   18477 ac_ext=cpp
   18478 ac_cpp='$CXXCPP $CPPFLAGS'
   18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   18482 
   18483 cat >conftest.$ac_ext <<_ACEOF
   18484 /* confdefs.h.  */
   18485 _ACEOF
   18486 cat confdefs.h >>conftest.$ac_ext
   18487 cat >>conftest.$ac_ext <<_ACEOF
   18488 /* end confdefs.h.  */
   18489 int main() {
   18490         volatile unsigned long val = 1;
   18491         __sync_synchronize();
   18492         __sync_val_compare_and_swap(&val, 1, 0);
   18493         __sync_add_and_fetch(&val, 1);
   18494         __sync_sub_and_fetch(&val, 1);
   18495         return 0;
   18496       }
   18497 
   18498 _ACEOF
   18499 rm -f conftest.$ac_objext conftest$ac_exeext
   18500 if { (ac_try="$ac_link"
   18501 case "(($ac_try" in
   18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18503   *) ac_try_echo=$ac_try;;
   18504 esac
   18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18506   (eval "$ac_link") 2>conftest.er1
   18507   ac_status=$?
   18508   grep -v '^ *+' conftest.er1 >conftest.err
   18509   rm -f conftest.er1
   18510   cat conftest.err >&5
   18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18512   (exit $ac_status); } && {
   18513 	 test -z "$ac_c_werror_flag" ||
   18514 	 test ! -s conftest.err
   18515        } && test -s conftest$ac_exeext &&
   18516        $as_test_x conftest$ac_exeext; then
   18517   ac_ext=c
   18518 ac_cpp='$CPP $CPPFLAGS'
   18519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18522 
   18523   { echo "$as_me:$LINENO: result: yes" >&5
   18524 echo "${ECHO_T}yes" >&6; }
   18525 
   18526 cat >>confdefs.h <<\_ACEOF
   18527 #define LLVM_HAS_ATOMICS 1
   18528 _ACEOF
   18529 
   18530 else
   18531   echo "$as_me: failed program was:" >&5
   18532 sed 's/^/| /' conftest.$ac_ext >&5
   18533 
   18534 	{ echo "$as_me:$LINENO: result: no" >&5
   18535 echo "${ECHO_T}no" >&6; }
   18536 
   18537 cat >>confdefs.h <<\_ACEOF
   18538 #define LLVM_HAS_ATOMICS 0
   18539 _ACEOF
   18540 
   18541   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
   18542 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
   18543 fi
   18544 
   18545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18546       conftest$ac_exeext conftest.$ac_ext
   18547 
   18548 
   18549 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
   18550   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
   18551 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
   18552 if test "${llvm_cv_linux_mixed+set}" = set; then
   18553   echo $ECHO_N "(cached) $ECHO_C" >&6
   18554 else
   18555    ac_ext=c
   18556 ac_cpp='$CPP $CPPFLAGS'
   18557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18560 
   18561   cat >conftest.$ac_ext <<_ACEOF
   18562 /* confdefs.h.  */
   18563 _ACEOF
   18564 cat confdefs.h >>conftest.$ac_ext
   18565 cat >>conftest.$ac_ext <<_ACEOF
   18566 /* end confdefs.h.  */
   18567 #ifndef __x86_64__
   18568        error: Not x86-64 even if uname says so!
   18569       #endif
   18570 
   18571 int
   18572 main ()
   18573 {
   18574 
   18575   ;
   18576   return 0;
   18577 }
   18578 _ACEOF
   18579 rm -f conftest.$ac_objext
   18580 if { (ac_try="$ac_compile"
   18581 case "(($ac_try" in
   18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18583   *) ac_try_echo=$ac_try;;
   18584 esac
   18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18586   (eval "$ac_compile") 2>conftest.er1
   18587   ac_status=$?
   18588   grep -v '^ *+' conftest.er1 >conftest.err
   18589   rm -f conftest.er1
   18590   cat conftest.err >&5
   18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18592   (exit $ac_status); } && {
   18593 	 test -z "$ac_c_werror_flag" ||
   18594 	 test ! -s conftest.err
   18595        } && test -s conftest.$ac_objext; then
   18596   llvm_cv_linux_mixed=no
   18597 else
   18598   echo "$as_me: failed program was:" >&5
   18599 sed 's/^/| /' conftest.$ac_ext >&5
   18600 
   18601 	llvm_cv_linux_mixed=yes
   18602 fi
   18603 
   18604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18605   ac_ext=c
   18606 ac_cpp='$CPP $CPPFLAGS'
   18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18610 
   18611 
   18612 fi
   18613 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
   18614 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
   18615 
   18616   if test "$llvm_cv_linux_mixed" = "yes"; then
   18617     llvm_cv_target_arch="x86"
   18618     ARCH="x86"
   18619   fi
   18620 fi
   18621 
   18622 
   18623 for ac_func in __dso_handle
   18624 do
   18625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18629   echo $ECHO_N "(cached) $ECHO_C" >&6
   18630 else
   18631   cat >conftest.$ac_ext <<_ACEOF
   18632 /* confdefs.h.  */
   18633 _ACEOF
   18634 cat confdefs.h >>conftest.$ac_ext
   18635 cat >>conftest.$ac_ext <<_ACEOF
   18636 /* end confdefs.h.  */
   18637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18639 #define $ac_func innocuous_$ac_func
   18640 
   18641 /* System header to define __stub macros and hopefully few prototypes,
   18642     which can conflict with char $ac_func (); below.
   18643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18644     <limits.h> exists even on freestanding compilers.  */
   18645 
   18646 #ifdef __STDC__
   18647 # include <limits.h>
   18648 #else
   18649 # include <assert.h>
   18650 #endif
   18651 
   18652 #undef $ac_func
   18653 
   18654 /* Override any GCC internal prototype to avoid an error.
   18655    Use char because int might match the return type of a GCC
   18656    builtin and then its argument prototype would still apply.  */
   18657 #ifdef __cplusplus
   18658 extern "C"
   18659 #endif
   18660 char $ac_func ();
   18661 /* The GNU C library defines this for functions which it implements
   18662     to always fail with ENOSYS.  Some functions are actually named
   18663     something starting with __ and the normal name is an alias.  */
   18664 #if defined __stub_$ac_func || defined __stub___$ac_func
   18665 choke me
   18666 #endif
   18667 
   18668 int
   18669 main ()
   18670 {
   18671 return $ac_func ();
   18672   ;
   18673   return 0;
   18674 }
   18675 _ACEOF
   18676 rm -f conftest.$ac_objext conftest$ac_exeext
   18677 if { (ac_try="$ac_link"
   18678 case "(($ac_try" in
   18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18680   *) ac_try_echo=$ac_try;;
   18681 esac
   18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18683   (eval "$ac_link") 2>conftest.er1
   18684   ac_status=$?
   18685   grep -v '^ *+' conftest.er1 >conftest.err
   18686   rm -f conftest.er1
   18687   cat conftest.err >&5
   18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18689   (exit $ac_status); } && {
   18690 	 test -z "$ac_c_werror_flag" ||
   18691 	 test ! -s conftest.err
   18692        } && test -s conftest$ac_exeext &&
   18693        $as_test_x conftest$ac_exeext; then
   18694   eval "$as_ac_var=yes"
   18695 else
   18696   echo "$as_me: failed program was:" >&5
   18697 sed 's/^/| /' conftest.$ac_ext >&5
   18698 
   18699 	eval "$as_ac_var=no"
   18700 fi
   18701 
   18702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18703       conftest$ac_exeext conftest.$ac_ext
   18704 fi
   18705 ac_res=`eval echo '${'$as_ac_var'}'`
   18706 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18707 echo "${ECHO_T}$ac_res" >&6; }
   18708 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18709   cat >>confdefs.h <<_ACEOF
   18710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18711 _ACEOF
   18712 
   18713 fi
   18714 done
   18715 
   18716 
   18717 SHLIBEXT=$libltdl_cv_shlibext
   18718 
   18719 
   18720 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
   18721 
   18722 
   18723 # Translate the various configuration directories and other basic
   18724 # information into substitutions that will end up in Makefile.config.in
   18725 # that these configured values can be used by the makefiles
   18726 if test "${prefix}" = "NONE" ; then
   18727   prefix="/usr/local"
   18728 fi
   18729 eval LLVM_PREFIX="${prefix}";
   18730 eval LLVM_BINDIR="${prefix}/bin";
   18731 eval LLVM_LIBDIR="${prefix}/lib";
   18732 eval LLVM_DATADIR="${prefix}/share/llvm";
   18733 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
   18734 eval LLVM_ETCDIR="${prefix}/etc/llvm";
   18735 eval LLVM_INCLUDEDIR="${prefix}/include";
   18736 eval LLVM_INFODIR="${prefix}/info";
   18737 eval LLVM_MANDIR="${prefix}/man";
   18738 LLVM_CONFIGTIME=`date`
   18739 
   18740 
   18741 
   18742 
   18743 
   18744 
   18745 
   18746 
   18747 
   18748 
   18749 
   18750 # Place the various directores into the config.h file as #defines so that we
   18751 # can know about the installation paths within LLVM.
   18752 
   18753 cat >>confdefs.h <<_ACEOF
   18754 #define LLVM_PREFIX "$LLVM_PREFIX"
   18755 _ACEOF
   18756 
   18757 
   18758 cat >>confdefs.h <<_ACEOF
   18759 #define LLVM_BINDIR "$LLVM_BINDIR"
   18760 _ACEOF
   18761 
   18762 
   18763 cat >>confdefs.h <<_ACEOF
   18764 #define LLVM_LIBDIR "$LLVM_LIBDIR"
   18765 _ACEOF
   18766 
   18767 
   18768 cat >>confdefs.h <<_ACEOF
   18769 #define LLVM_DATADIR "$LLVM_DATADIR"
   18770 _ACEOF
   18771 
   18772 
   18773 cat >>confdefs.h <<_ACEOF
   18774 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
   18775 _ACEOF
   18776 
   18777 
   18778 cat >>confdefs.h <<_ACEOF
   18779 #define LLVM_ETCDIR "$LLVM_ETCDIR"
   18780 _ACEOF
   18781 
   18782 
   18783 cat >>confdefs.h <<_ACEOF
   18784 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
   18785 _ACEOF
   18786 
   18787 
   18788 cat >>confdefs.h <<_ACEOF
   18789 #define LLVM_INFODIR "$LLVM_INFODIR"
   18790 _ACEOF
   18791 
   18792 
   18793 cat >>confdefs.h <<_ACEOF
   18794 #define LLVM_MANDIR "$LLVM_MANDIR"
   18795 _ACEOF
   18796 
   18797 
   18798 cat >>confdefs.h <<_ACEOF
   18799 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
   18800 _ACEOF
   18801 
   18802 
   18803 cat >>confdefs.h <<_ACEOF
   18804 #define LLVM_HOSTTRIPLE "$host"
   18805 _ACEOF
   18806 
   18807 
   18808 # Determine which bindings to build.
   18809 if test "$BINDINGS_TO_BUILD" = auto ; then
   18810   BINDINGS_TO_BUILD=""
   18811   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
   18812     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
   18813   fi
   18814 fi
   18815 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
   18816 
   18817 
   18818 # This isn't really configurey, but it avoids having to repeat the list in
   18819 # other files.

   18820 ALL_BINDINGS=ocaml
   18821 
   18822 
   18823 # Do any work necessary to ensure that bindings have what they need.

   18824 binding_prereqs_failed=0
   18825 for a_binding in $BINDINGS_TO_BUILD ; do
   18826   case "$a_binding" in
   18827   ocaml)
   18828     if test "x$OCAMLC" = x ; then
   18829       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
   18830 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
   18831       binding_prereqs_failed=1
   18832     fi
   18833     if test "x$OCAMLDEP" = x ; then
   18834       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
   18835 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
   18836       binding_prereqs_failed=1
   18837     fi
   18838     if test "x$OCAMLOPT" = x ; then
   18839       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
   18840 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
   18841           fi
   18842     if test "x$with_ocaml_libdir" != xauto ; then
   18843       OCAML_LIBDIR=$with_ocaml_libdir
   18844 
   18845     else
   18846       ocaml_stdlib="`"$OCAMLC" -where`"
   18847       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
   18848       then
   18849         # ocaml stdlib is beneath our prefix; use stdlib

   18850         OCAML_LIBDIR=$ocaml_stdlib
   18851 
   18852       else
   18853         # ocaml stdlib is outside our prefix; use libdir/ocaml

   18854         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
   18855 
   18856       fi
   18857     fi
   18858     ;;
   18859   esac
   18860 done
   18861 if test "$binding_prereqs_failed" = 1 ; then
   18862   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
   18863 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
   18864    { (exit 1); exit 1; }; }
   18865 fi
   18866 
   18867 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
   18868 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
   18869 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
   18870   echo $ECHO_N "(cached) $ECHO_C" >&6
   18871 else
   18872    ac_ext=cpp
   18873 ac_cpp='$CXXCPP $CPPFLAGS'
   18874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   18877 
   18878   oldcxxflags="$CXXFLAGS"
   18879   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
   18880   cat >conftest.$ac_ext <<_ACEOF
   18881 /* confdefs.h.  */
   18882 _ACEOF
   18883 cat confdefs.h >>conftest.$ac_ext
   18884 cat >>conftest.$ac_ext <<_ACEOF
   18885 /* end confdefs.h.  */
   18886 
   18887 int
   18888 main ()
   18889 {
   18890 
   18891   ;
   18892   return 0;
   18893 }
   18894 _ACEOF
   18895 rm -f conftest.$ac_objext
   18896 if { (ac_try="$ac_compile"
   18897 case "(($ac_try" in
   18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18899   *) ac_try_echo=$ac_try;;
   18900 esac
   18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18902   (eval "$ac_compile") 2>conftest.er1
   18903   ac_status=$?
   18904   grep -v '^ *+' conftest.er1 >conftest.err
   18905   rm -f conftest.er1
   18906   cat conftest.err >&5
   18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18908   (exit $ac_status); } && {
   18909 	 test -z "$ac_cxx_werror_flag" ||
   18910 	 test ! -s conftest.err
   18911        } && test -s conftest.$ac_objext; then
   18912   llvm_cv_cxx_visibility_inlines_hidden=yes
   18913 else
   18914   echo "$as_me: failed program was:" >&5
   18915 sed 's/^/| /' conftest.$ac_ext >&5
   18916 
   18917 	llvm_cv_cxx_visibility_inlines_hidden=no
   18918 fi
   18919 
   18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18921   CXXFLAGS="$oldcxxflags"
   18922   ac_ext=c
   18923 ac_cpp='$CPP $CPPFLAGS'
   18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18927 
   18928 
   18929 fi
   18930 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
   18931 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
   18932 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
   18933   ENABLE_VISIBILITY_INLINES_HIDDEN=1
   18934 
   18935 else
   18936   ENABLE_VISIBILITY_INLINES_HIDDEN=0
   18937 
   18938 fi
   18939 
   18940 
   18941 if test "$llvm_cv_link_use_r" = "yes" ; then
   18942   RPATH="-Wl,-R"
   18943 else
   18944   RPATH="-Wl,-rpath"
   18945 fi
   18946 
   18947 
   18948 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
   18949   RDYNAMIC="-Wl,-export-dynamic"
   18950 else
   18951   RDYNAMIC=""
   18952 fi
   18953 
   18954 
   18955 
   18956 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
   18957 
   18958 
   18959 
   18960 
   18961 
   18962 
   18963 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
   18964 
   18965 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
   18966 
   18967 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
   18968 
   18969 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
   18970 
   18971 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
   18972 
   18973 
   18974 ac_config_files="$ac_config_files Makefile.config"
   18975 
   18976 
   18977 ac_config_files="$ac_config_files llvm.spec"
   18978 
   18979 
   18980 ac_config_files="$ac_config_files docs/doxygen.cfg"
   18981 
   18982 if test -f ${srcdir}/tools/clang/README.txt; then
   18983   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
   18984 
   18985 fi
   18986 
   18987 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
   18988 
   18989 
   18990 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
   18991 
   18992 
   18993 ac_config_commands="$ac_config_commands setup"
   18994 
   18995 ac_config_commands="$ac_config_commands Makefile"
   18996 
   18997 
   18998 ac_config_commands="$ac_config_commands Makefile.common"
   18999 
   19000 
   19001 ac_config_commands="$ac_config_commands examples/Makefile"
   19002 
   19003 
   19004 ac_config_commands="$ac_config_commands lib/Makefile"
   19005 
   19006 
   19007 ac_config_commands="$ac_config_commands runtime/Makefile"
   19008 
   19009 
   19010 ac_config_commands="$ac_config_commands test/Makefile"
   19011 
   19012 
   19013 ac_config_commands="$ac_config_commands test/Makefile.tests"
   19014 
   19015 
   19016 ac_config_commands="$ac_config_commands unittests/Makefile"
   19017 
   19018 
   19019 ac_config_commands="$ac_config_commands tools/Makefile"
   19020 
   19021 
   19022 ac_config_commands="$ac_config_commands utils/Makefile"
   19023 
   19024 
   19025 ac_config_commands="$ac_config_commands projects/Makefile"
   19026 
   19027 
   19028 ac_config_commands="$ac_config_commands bindings/Makefile"
   19029 
   19030 
   19031 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
   19032 
   19033 
   19034 
   19035 cat >confcache <<\_ACEOF
   19036 # This file is a shell script that caches the results of configure

   19037 # tests run on this system so they can be shared between configure

   19038 # scripts and configure runs, see configure's option --config-cache.

   19039 # It is not useful on other systems.  If it contains results you don't

   19040 # want to keep, you may remove or edit it.

   19041 #

   19042 # config.status only pays attention to the cache file if you give it

   19043 # the --recheck option to rerun configure.

   19044 #

   19045 # `ac_cv_env_foo' variables (set or unset) will be overridden when

   19046 # loading this file, other *unset* `ac_cv_foo' will be assigned the

   19047 # following values.

   19048 
   19049 _ACEOF
   19050 
   19051 # The following way of writing the cache mishandles newlines in values,

   19052 # but we know of no workaround that is simple, portable, and efficient.

   19053 # So, we kill variables containing newlines.

   19054 # Ultrix sh set writes to stderr and can't be redirected directly,

   19055 # and sets the high bit in the cache file unless we assign to the vars.

   19056 (
   19057   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   19058     eval ac_val=\$$ac_var
   19059     case $ac_val in #(

   19060     *${as_nl}*)
   19061       case $ac_var in #(

   19062       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   19063 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   19064       esac
   19065       case $ac_var in #(

   19066       _ | IFS | as_nl) ;; #(

   19067       *) $as_unset $ac_var ;;
   19068       esac ;;
   19069     esac
   19070   done
   19071 
   19072   (set) 2>&1 |
   19073     case $as_nl`(ac_space=' '; set) 2>&1` in #(

   19074     *${as_nl}ac_space=\ *)
   19075       # `set' does not quote correctly, so add quotes (double-quote

   19076       # substitution turns \\\\ into \\, and sed turns \\ into \).

   19077       sed -n \
   19078 	"s/'/'\\\\''/g;
   19079 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   19080       ;; #(

   19081     *)
   19082       # `set' quotes correctly as required by POSIX, so do not add quotes.

   19083       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   19084       ;;
   19085     esac |
   19086     sort
   19087 ) |
   19088   sed '
   19089      /^ac_cv_env_/b end
   19090      t clear
   19091      :clear
   19092      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   19093      t end
   19094      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   19095      :end' >>confcache
   19096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   19097   if test -w "$cache_file"; then
   19098     test "x$cache_file" != "x/dev/null" &&
   19099       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   19100 echo "$as_me: updating cache $cache_file" >&6;}
   19101     cat confcache >$cache_file
   19102   else
   19103     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   19104 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   19105   fi
   19106 fi
   19107 rm -f confcache
   19108 
   19109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   19110 # Let make expand exec_prefix.

   19111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   19112 
   19113 DEFS=-DHAVE_CONFIG_H
   19114 
   19115 ac_libobjs=
   19116 ac_ltlibobjs=
   19117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   19118   # 1. Remove the extension, and $U if already installed.

   19119   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   19120   ac_i=`echo "$ac_i" | sed "$ac_script"`
   19121   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR

   19122   #    will be set to the directory where LIBOBJS objects are built.

   19123   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   19124   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   19125 done
   19126 LIBOBJS=$ac_libobjs
   19127 
   19128 LTLIBOBJS=$ac_ltlibobjs
   19129 
   19130 
   19131 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
   19132   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
   19133 Usually this means the macro was only invoked conditionally." >&5
   19134 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
   19135 Usually this means the macro was only invoked conditionally." >&2;}
   19136    { (exit 1); exit 1; }; }
   19137 fi
   19138 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
   19139   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   19140 Usually this means the macro was only invoked conditionally." >&5
   19141 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
   19142 Usually this means the macro was only invoked conditionally." >&2;}
   19143    { (exit 1); exit 1; }; }
   19144 fi
   19145 
   19146 : ${CONFIG_STATUS=./config.status}
   19147 ac_clean_files_save=$ac_clean_files
   19148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   19149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   19150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   19151 cat >$CONFIG_STATUS <<_ACEOF
   19152 #! $SHELL

   19153 # Generated by $as_me.

   19154 # Run this file to recreate the current configuration.

   19155 # Compiler output produced by configure, useful for debugging

   19156 # configure, is in config.log if it exists.

   19157 
   19158 debug=false
   19159 ac_cs_recheck=false
   19160 ac_cs_silent=false
   19161 SHELL=\${CONFIG_SHELL-$SHELL}
   19162 _ACEOF
   19163 
   19164 cat >>$CONFIG_STATUS <<\_ACEOF
   19165 ## --------------------- ##

   19166 ## M4sh Initialization.  ##

   19167 ## --------------------- ##

   19168 
   19169 # Be more Bourne compatible

   19170 DUALCASE=1; export DUALCASE # for MKS sh

   19171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   19172   emulate sh
   19173   NULLCMD=:
   19174   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which

   19175   # is contrary to our usage.  Disable this feature.

   19176   alias -g '${1+"$@"}'='"$@"'
   19177   setopt NO_GLOB_SUBST
   19178 else
   19179   case `(set -o) 2>/dev/null` in
   19180   *posix*) set -o posix ;;
   19181 esac
   19182 
   19183 fi
   19184 
   19185 
   19186 
   19187 
   19188 # PATH needs CR

   19189 # Avoid depending upon Character Ranges.

   19190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   19191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   19192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   19193 as_cr_digits='0123456789'
   19194 as_cr_alnum=$as_cr_Letters$as_cr_digits
   19195 
   19196 # The user is always right.

   19197 if test "${PATH_SEPARATOR+set}" != set; then
   19198   echo "#! /bin/sh" >conf$$.sh
   19199   echo  "exit 0"   >>conf$$.sh
   19200   chmod +x conf$$.sh
   19201   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   19202     PATH_SEPARATOR=';'
   19203   else
   19204     PATH_SEPARATOR=:
   19205   fi
   19206   rm -f conf$$.sh
   19207 fi
   19208 
   19209 # Support unset when possible.

   19210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   19211   as_unset=unset
   19212 else
   19213   as_unset=false
   19214 fi
   19215 
   19216 
   19217 # IFS

   19218 # We need space, tab and new line, in precisely that order.  Quoting is

   19219 # there to prevent editors from complaining about space-tab.

   19220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word

   19221 # splitting by setting IFS to empty value.)

   19222 as_nl='
   19223 '
   19224 IFS=" ""	$as_nl"
   19225 
   19226 # Find who we are.  Look in the path if we contain no directory separator.

   19227 case $0 in
   19228   *[\\/]* ) as_myself=$0 ;;
   19229   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19230 for as_dir in $PATH
   19231 do
   19232   IFS=$as_save_IFS
   19233   test -z "$as_dir" && as_dir=.
   19234   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   19235 done
   19236 IFS=$as_save_IFS
   19237 
   19238      ;;
   19239 esac
   19240 # We did not find ourselves, most probably we were run as `sh COMMAND'

   19241 # in which case we are not to be found in the path.

   19242 if test "x$as_myself" = x; then
   19243   as_myself=$0
   19244 fi
   19245 if test ! -f "$as_myself"; then
   19246   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   19247   { (exit 1); exit 1; }
   19248 fi
   19249 
   19250 # Work around bugs in pre-3.0 UWIN ksh.

   19251 for as_var in ENV MAIL MAILPATH
   19252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   19253 done
   19254 PS1='$ '
   19255 PS2='> '
   19256 PS4='+ '
   19257 
   19258 # NLS nuisances.

   19259 for as_var in \
   19260   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   19261   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   19262   LC_TELEPHONE LC_TIME
   19263 do
   19264   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   19265     eval $as_var=C; export $as_var
   19266   else
   19267     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   19268   fi
   19269 done
   19270 
   19271 # Required to use basename.

   19272 if expr a : '\(a\)' >/dev/null 2>&1 &&
   19273    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   19274   as_expr=expr
   19275 else
   19276   as_expr=false
   19277 fi
   19278 
   19279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   19280   as_basename=basename
   19281 else
   19282   as_basename=false
   19283 fi
   19284 
   19285 
   19286 # Name of the executable.

   19287 as_me=`$as_basename -- "$0" ||
   19288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   19289 	 X"$0" : 'X\(//\)$' \| \
   19290 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   19291 echo X/"$0" |
   19292     sed '/^.*\/\([^/][^/]*\)\/*$/{
   19293 	    s//\1/
   19294 	    q
   19295 	  }
   19296 	  /^X\/\(\/\/\)$/{
   19297 	    s//\1/
   19298 	    q
   19299 	  }
   19300 	  /^X\/\(\/\).*/{
   19301 	    s//\1/
   19302 	    q
   19303 	  }
   19304 	  s/.*/./; q'`
   19305 
   19306 # CDPATH.

   19307 $as_unset CDPATH
   19308 
   19309 
   19310 
   19311   as_lineno_1=$LINENO
   19312   as_lineno_2=$LINENO
   19313   test "x$as_lineno_1" != "x$as_lineno_2" &&
   19314   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   19315 
   19316   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO

   19317   # uniformly replaced by the line number.  The first 'sed' inserts a

   19318   # line-number line after each line using $LINENO; the second 'sed'

   19319   # does the real work.  The second script uses 'N' to pair each

   19320   # line-number line with the line containing $LINENO, and appends

   19321   # trailing '-' during substitution so that $LINENO is not a special

   19322   # case at line end.

   19323   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the

   19324   # scripts with optimization help from Paolo Bonzini.  Blame Lee

   19325   # E. McMahon (1931-1989) for sed's syntax.  :-)

   19326   sed -n '
   19327     p
   19328     /[$]LINENO/=
   19329   ' <$as_myself |
   19330     sed '
   19331       s/[$]LINENO.*/&-/
   19332       t lineno
   19333       b
   19334       :lineno
   19335       N
   19336       :loop
   19337       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   19338       t loop
   19339       s/-\n.*//
   19340     ' >$as_me.lineno &&
   19341   chmod +x "$as_me.lineno" ||
   19342     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   19343    { (exit 1); exit 1; }; }
   19344 
   19345   # Don't try to exec as it changes $[0], causing all sort of problems

   19346   # (the dirname of $[0] is not the place where we might find the

   19347   # original and so on.  Autoconf is especially sensitive to this).

   19348   . "./$as_me.lineno"
   19349   # Exit status is that of the last command.

   19350   exit
   19351 }
   19352 
   19353 
   19354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   19355   as_dirname=dirname
   19356 else
   19357   as_dirname=false
   19358 fi
   19359 
   19360 ECHO_C= ECHO_N= ECHO_T=
   19361 case `echo -n x` in
   19362 -n*)
   19363   case `echo 'x\c'` in
   19364   *c*) ECHO_T='	';;	# ECHO_T is single tab character.

   19365   *)   ECHO_C='\c';;
   19366   esac;;
   19367 *)
   19368   ECHO_N='-n';;
   19369 esac
   19370 
   19371 if expr a : '\(a\)' >/dev/null 2>&1 &&
   19372    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   19373   as_expr=expr
   19374 else
   19375   as_expr=false
   19376 fi
   19377 
   19378 rm -f conf$$ conf$$.exe conf$$.file
   19379 if test -d conf$$.dir; then
   19380   rm -f conf$$.dir/conf$$.file
   19381 else
   19382   rm -f conf$$.dir
   19383   mkdir conf$$.dir
   19384 fi
   19385 echo >conf$$.file
   19386 if ln -s conf$$.file conf$$ 2>/dev/null; then
   19387   as_ln_s='ln -s'
   19388   # ... but there are two gotchas:

   19389   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.

   19390   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.

   19391   # In both cases, we have to default to `cp -p'.

   19392   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   19393     as_ln_s='cp -p'
   19394 elif ln conf$$.file conf$$ 2>/dev/null; then
   19395   as_ln_s=ln
   19396 else
   19397   as_ln_s='cp -p'
   19398 fi
   19399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   19400 rmdir conf$$.dir 2>/dev/null
   19401 
   19402 if mkdir -p . 2>/dev/null; then
   19403   as_mkdir_p=:
   19404 else
   19405   test -d ./-p && rmdir ./-p
   19406   as_mkdir_p=false
   19407 fi
   19408 
   19409 if test -x / >/dev/null 2>&1; then
   19410   as_test_x='test -x'
   19411 else
   19412   if ls -dL / >/dev/null 2>&1; then
   19413     as_ls_L_option=L
   19414   else
   19415     as_ls_L_option=
   19416   fi
   19417   as_test_x='
   19418     eval sh -c '\''
   19419       if test -d "$1"; then
   19420         test -d "$1/.";
   19421       else
   19422 	case $1 in
   19423         -*)set "./$1";;
   19424 	esac;
   19425 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   19426 	???[sx]*):;;*)false;;esac;fi
   19427     '\'' sh
   19428   '
   19429 fi
   19430 as_executable_p=$as_test_x
   19431 
   19432 # Sed expression to map a string onto a valid CPP name.
   19433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   19434 
   19435 # Sed expression to map a string onto a valid variable name.
   19436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   19437 
   19438 
   19439 exec 6>&1
   19440 
   19441 # Save the log message, to keep $[0] and so on meaningful, and to
   19442 # report actual input values of CONFIG_FILES etc. instead of their
   19443 # values after options handling.
   19444 ac_log="
   19445 This file was extended by llvm $as_me 3.0, which was
   19446 generated by GNU Autoconf 2.61.  Invocation command line was
   19447 
   19448   CONFIG_FILES    = $CONFIG_FILES
   19449   CONFIG_HEADERS  = $CONFIG_HEADERS
   19450   CONFIG_LINKS    = $CONFIG_LINKS
   19451   CONFIG_COMMANDS = $CONFIG_COMMANDS
   19452   $ $0 $@
   19453 
   19454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   19455 "
   19456 
   19457 _ACEOF
   19458 
   19459 cat >>$CONFIG_STATUS <<_ACEOF
   19460 # Files that config.status was made for.
   19461 config_files="$ac_config_files"
   19462 config_headers="$ac_config_headers"
   19463 config_commands="$ac_config_commands"
   19464 
   19465 _ACEOF
   19466 
   19467 cat >>$CONFIG_STATUS <<\_ACEOF
   19468 ac_cs_usage="\
   19469 \`$as_me' instantiates files from templates according to the
   19470 current configuration.
   19471 
   19472 Usage: $0 [OPTIONS] [FILE]...
   19473 
   19474   -h, --help       print this help, then exit
   19475   -V, --version    print version number and configuration settings, then exit
   19476   -q, --quiet      do not print progress messages
   19477   -d, --debug      don't remove temporary files
   19478       --recheck    update $as_me by reconfiguring in the same conditions
   19479   --file=FILE[:TEMPLATE]
   19480 		   instantiate the configuration file FILE
   19481   --header=FILE[:TEMPLATE]
   19482 		   instantiate the configuration header FILE
   19483 
   19484 Configuration files:
   19485 $config_files
   19486 
   19487 Configuration headers:
   19488 $config_headers
   19489 
   19490 Configuration commands:
   19491 $config_commands
   19492 
   19493 Report bugs to <bug-autoconf (at] gnu.org>."
   19494 
   19495 _ACEOF
   19496 cat >>$CONFIG_STATUS <<_ACEOF
   19497 ac_cs_version="\\
   19498 llvm config.status 3.0
   19499 configured by $0, generated by GNU Autoconf 2.61,
   19500   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   19501 
   19502 Copyright (C) 2006 Free Software Foundation, Inc.
   19503 This config.status script is free software; the Free Software Foundation
   19504 gives unlimited permission to copy, distribute and modify it."
   19505 
   19506 ac_pwd='$ac_pwd'
   19507 srcdir='$srcdir'
   19508 INSTALL='$INSTALL'
   19509 _ACEOF
   19510 
   19511 cat >>$CONFIG_STATUS <<\_ACEOF
   19512 # If no file are specified by the user, then we need to provide default
   19513 # value.  By we need to know if files were specified by the user.
   19514 ac_need_defaults=:
   19515 while test $# != 0
   19516 do
   19517   case $1 in
   19518   --*=*)
   19519     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   19520     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   19521     ac_shift=:
   19522     ;;
   19523   *)
   19524     ac_option=$1
   19525     ac_optarg=$2
   19526     ac_shift=shift
   19527     ;;
   19528   esac
   19529 
   19530   case $ac_option in
   19531   # Handling of the options.
   19532   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   19533     ac_cs_recheck=: ;;
   19534   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   19535     echo "$ac_cs_version"; exit ;;
   19536   --debug | --debu | --deb | --de | --d | -d )
   19537     debug=: ;;
   19538   --file | --fil | --fi | --f )
   19539     $ac_shift
   19540     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   19541     ac_need_defaults=false;;
   19542   --header | --heade | --head | --hea )
   19543     $ac_shift
   19544     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   19545     ac_need_defaults=false;;
   19546   --he | --h)
   19547     # Conflict between --help and --header
   19548     { echo "$as_me: error: ambiguous option: $1
   19549 Try \`$0 --help' for more information." >&2
   19550    { (exit 1); exit 1; }; };;
   19551   --help | --hel | -h )
   19552     echo "$ac_cs_usage"; exit ;;
   19553   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   19554   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   19555     ac_cs_silent=: ;;
   19556 
   19557   # This is an error.
   19558   -*) { echo "$as_me: error: unrecognized option: $1
   19559 Try \`$0 --help' for more information." >&2
   19560    { (exit 1); exit 1; }; } ;;
   19561 
   19562   *) ac_config_targets="$ac_config_targets $1"
   19563      ac_need_defaults=false ;;
   19564 
   19565   esac
   19566   shift
   19567 done
   19568 
   19569 ac_configure_extra_args=
   19570 
   19571 if $ac_cs_silent; then
   19572   exec 6>/dev/null
   19573   ac_configure_extra_args="$ac_configure_extra_args --silent"
   19574 fi
   19575 
   19576 _ACEOF
   19577 cat >>$CONFIG_STATUS <<_ACEOF
   19578 if \$ac_cs_recheck; then
   19579   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   19580   CONFIG_SHELL=$SHELL
   19581   export CONFIG_SHELL
   19582   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   19583 fi
   19584 
   19585 _ACEOF
   19586 cat >>$CONFIG_STATUS <<\_ACEOF
   19587 exec 5>>config.log
   19588 {
   19589   echo
   19590   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX

   19591 ## Running $as_me. ##

   19592 _ASBOX
   19593   echo "$ac_log"
   19594 } >&5
   19595 
   19596 _ACEOF
   19597 cat >>$CONFIG_STATUS <<_ACEOF
   19598 #

   19599 # INIT-COMMANDS

   19600 #

   19601 llvm_src="${srcdir}"
   19602 
   19603 _ACEOF
   19604 
   19605 cat >>$CONFIG_STATUS <<\_ACEOF
   19606 
   19607 # Handling of arguments.

   19608 for ac_config_target in $ac_config_targets
   19609 do
   19610   case $ac_config_target in
   19611     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
   19612     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
   19613     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
   19614     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
   19615     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
   19616     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
   19617     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
   19618     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
   19619     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
   19620     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
   19621     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
   19622     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
   19623     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
   19624     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
   19625     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
   19626     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
   19627     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
   19628     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
   19629     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
   19630     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
   19631     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
   19632     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
   19633     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
   19634     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
   19635     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
   19636     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
   19637     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
   19638 
   19639   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   19640 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   19641    { (exit 1); exit 1; }; };;
   19642   esac
   19643 done
   19644 
   19645 
   19646 # If the user did not use the arguments to specify the items to instantiate,

   19647 # then the envvar interface is used.  Set only those that are not.

   19648 # We use the long form for the default assignment because of an extremely

   19649 # bizarre bug on SunOS 4.1.3.

   19650 if $ac_need_defaults; then
   19651   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   19652   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   19653   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   19654 fi
   19655 
   19656 # Have a temporary directory for convenience.  Make it in the build tree

   19657 # simply because there is no reason against having it here, and in addition,

   19658 # creating and moving files from /tmp can sometimes cause problems.

   19659 # Hook for its removal unless debugging.

   19660 # Note that there is a small window in which the directory will not be cleaned:

   19661 # after its creation but before its name has been assigned to `$tmp'.

   19662 $debug ||
   19663 {
   19664   tmp=
   19665   trap 'exit_status=$?
   19666   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   19667 ' 0
   19668   trap '{ (exit 1); exit 1; }' 1 2 13 15
   19669 }
   19670 # Create a (secure) tmp directory for tmp files.

   19671 
   19672 {
   19673   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   19674   test -n "$tmp" && test -d "$tmp"
   19675 }  ||
   19676 {
   19677   tmp=./conf$$-$RANDOM
   19678   (umask 077 && mkdir "$tmp")
   19679 } ||
   19680 {
   19681    echo "$me: cannot create a temporary directory in ." >&2
   19682    { (exit 1); exit 1; }
   19683 }
   19684 
   19685 #

   19686 # Set up the sed scripts for CONFIG_FILES section.

   19687 #

   19688 
   19689 # No need to generate the scripts if there are no CONFIG_FILES.

   19690 # This happens for instance when ./config.status config.h

   19691 if test -n "$CONFIG_FILES"; then
   19692 
   19693 _ACEOF
   19694 
   19695 
   19696 
   19697 ac_delim='%!_!# '
   19698 for ac_last_try in false false false false false :; do
   19699   cat >conf$$subs.sed <<_ACEOF
   19700 SHELL!$SHELL$ac_delim
   19701 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   19702 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   19703 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   19704 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   19705 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   19706 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   19707 exec_prefix!$exec_prefix$ac_delim
   19708 prefix!$prefix$ac_delim
   19709 program_transform_name!$program_transform_name$ac_delim
   19710 bindir!$bindir$ac_delim
   19711 sbindir!$sbindir$ac_delim
   19712 libexecdir!$libexecdir$ac_delim
   19713 datarootdir!$datarootdir$ac_delim
   19714 datadir!$datadir$ac_delim
   19715 sysconfdir!$sysconfdir$ac_delim
   19716 sharedstatedir!$sharedstatedir$ac_delim
   19717 localstatedir!$localstatedir$ac_delim
   19718 includedir!$includedir$ac_delim
   19719 oldincludedir!$oldincludedir$ac_delim
   19720 docdir!$docdir$ac_delim
   19721 infodir!$infodir$ac_delim
   19722 htmldir!$htmldir$ac_delim
   19723 dvidir!$dvidir$ac_delim
   19724 pdfdir!$pdfdir$ac_delim
   19725 psdir!$psdir$ac_delim
   19726 libdir!$libdir$ac_delim
   19727 localedir!$localedir$ac_delim
   19728 mandir!$mandir$ac_delim
   19729 DEFS!$DEFS$ac_delim
   19730 ECHO_C!$ECHO_C$ac_delim
   19731 ECHO_N!$ECHO_N$ac_delim
   19732 ECHO_T!$ECHO_T$ac_delim
   19733 LIBS!$LIBS$ac_delim
   19734 build_alias!$build_alias$ac_delim
   19735 host_alias!$host_alias$ac_delim
   19736 target_alias!$target_alias$ac_delim
   19737 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
   19738 CC!$CC$ac_delim
   19739 CFLAGS!$CFLAGS$ac_delim
   19740 LDFLAGS!$LDFLAGS$ac_delim
   19741 CPPFLAGS!$CPPFLAGS$ac_delim
   19742 ac_ct_CC!$ac_ct_CC$ac_delim
   19743 EXEEXT!$EXEEXT$ac_delim
   19744 OBJEXT!$OBJEXT$ac_delim
   19745 CXX!$CXX$ac_delim
   19746 CXXFLAGS!$CXXFLAGS$ac_delim
   19747 ac_ct_CXX!$ac_ct_CXX$ac_delim
   19748 CPP!$CPP$ac_delim
   19749 subdirs!$subdirs$ac_delim
   19750 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
   19751 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
   19752 build!$build$ac_delim
   19753 build_cpu!$build_cpu$ac_delim
   19754 build_vendor!$build_vendor$ac_delim
   19755 build_os!$build_os$ac_delim
   19756 host!$host$ac_delim
   19757 host_cpu!$host_cpu$ac_delim
   19758 host_vendor!$host_vendor$ac_delim
   19759 host_os!$host_os$ac_delim
   19760 target!$target$ac_delim
   19761 target_cpu!$target_cpu$ac_delim
   19762 target_vendor!$target_vendor$ac_delim
   19763 target_os!$target_os$ac_delim
   19764 OS!$OS$ac_delim
   19765 HOST_OS!$HOST_OS$ac_delim
   19766 TARGET_OS!$TARGET_OS$ac_delim
   19767 LINKALL!$LINKALL$ac_delim
   19768 NOLINKALL!$NOLINKALL$ac_delim
   19769 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
   19770 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
   19771 ARCH!$ARCH$ac_delim
   19772 ENDIAN!$ENDIAN$ac_delim
   19773 GREP!$GREP$ac_delim
   19774 EGREP!$EGREP$ac_delim
   19775 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
   19776 BUILD_CC!$BUILD_CC$ac_delim
   19777 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
   19778 BUILD_CXX!$BUILD_CXX$ac_delim
   19779 CVSBUILD!$CVSBUILD$ac_delim
   19780 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
   19781 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
   19782 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
   19783 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
   19784 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
   19785 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
   19786 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
   19787 JIT!$JIT$ac_delim
   19788 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
   19789 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
   19790 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
   19791 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
   19792 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
   19793 ENABLE_PIC!$ENABLE_PIC$ac_delim
   19794 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
   19795 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
   19796 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
   19797 _ACEOF
   19798 
   19799   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   19800     break
   19801   elif $ac_last_try; then
   19802     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   19803 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   19804    { (exit 1); exit 1; }; }
   19805   else
   19806     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   19807   fi
   19808 done
   19809 
   19810 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   19811 if test -n "$ac_eof"; then
   19812   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   19813   ac_eof=`expr $ac_eof + 1`
   19814 fi
   19815 
   19816 cat >>$CONFIG_STATUS <<_ACEOF
   19817 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   19818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   19819 _ACEOF
   19820 sed '
   19821 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   19822 s/^/s,@/; s/!/@,|#_!!_#|/
   19823 :n
   19824 t n
   19825 s/'"$ac_delim"'$/,g/; t
   19826 s/$/\\/; p
   19827 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   19828 ' >>$CONFIG_STATUS <conf$$subs.sed
   19829 rm -f conf$$subs.sed
   19830 cat >>$CONFIG_STATUS <<_ACEOF
   19831 CEOF$ac_eof
   19832 _ACEOF
   19833 
   19834 
   19835 ac_delim='%!_!# '
   19836 for ac_last_try in false false false false false :; do
   19837   cat >conf$$subs.sed <<_ACEOF
   19838 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
   19839 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
   19840 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
   19841 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
   19842 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
   19843 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
   19844 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
   19845 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
   19846 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
   19847 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
   19848 NM!$NM$ac_delim
   19849 ifGNUmake!$ifGNUmake$ac_delim
   19850 LN_S!$LN_S$ac_delim
   19851 CMP!$CMP$ac_delim
   19852 CP!$CP$ac_delim
   19853 DATE!$DATE$ac_delim
   19854 FIND!$FIND$ac_delim
   19855 MKDIR!$MKDIR$ac_delim
   19856 MV!$MV$ac_delim
   19857 RANLIB!$RANLIB$ac_delim
   19858 AR!$AR$ac_delim
   19859 RM!$RM$ac_delim
   19860 SED!$SED$ac_delim
   19861 TAR!$TAR$ac_delim
   19862 BINPWD!$BINPWD$ac_delim
   19863 GRAPHVIZ!$GRAPHVIZ$ac_delim
   19864 DOT!$DOT$ac_delim
   19865 FDP!$FDP$ac_delim
   19866 NEATO!$NEATO$ac_delim
   19867 TWOPI!$TWOPI$ac_delim
   19868 CIRCO!$CIRCO$ac_delim
   19869 GV!$GV$ac_delim
   19870 DOTTY!$DOTTY$ac_delim
   19871 XDOT_PY!$XDOT_PY$ac_delim
   19872 PERL!$PERL$ac_delim
   19873 HAVE_PERL!$HAVE_PERL$ac_delim
   19874 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   19875 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   19876 INSTALL_DATA!$INSTALL_DATA$ac_delim
   19877 BZIP2!$BZIP2$ac_delim
   19878 CAT!$CAT$ac_delim
   19879 DOXYGEN!$DOXYGEN$ac_delim
   19880 GROFF!$GROFF$ac_delim
   19881 GZIPBIN!$GZIPBIN$ac_delim
   19882 POD2HTML!$POD2HTML$ac_delim
   19883 POD2MAN!$POD2MAN$ac_delim
   19884 PDFROFF!$PDFROFF$ac_delim
   19885 RUNTEST!$RUNTEST$ac_delim
   19886 TCLSH!$TCLSH$ac_delim
   19887 ZIP!$ZIP$ac_delim
   19888 OCAMLC!$OCAMLC$ac_delim
   19889 OCAMLOPT!$OCAMLOPT$ac_delim
   19890 OCAMLDEP!$OCAMLDEP$ac_delim
   19891 OCAMLDOC!$OCAMLDOC$ac_delim
   19892 GAS!$GAS$ac_delim
   19893 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
   19894 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
   19895 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
   19896 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
   19897 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
   19898 LIBADD_DL!$LIBADD_DL$ac_delim
   19899 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
   19900 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
   19901 USE_UDIS86!$USE_UDIS86$ac_delim
   19902 USE_OPROFILE!$USE_OPROFILE$ac_delim
   19903 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
   19904 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
   19905 MMAP_FILE!$MMAP_FILE$ac_delim
   19906 SHLIBEXT!$SHLIBEXT$ac_delim
   19907 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
   19908 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
   19909 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
   19910 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
   19911 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
   19912 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
   19913 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
   19914 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
   19915 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
   19916 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
   19917 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
   19918 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
   19919 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
   19920 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
   19921 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
   19922 RPATH!$RPATH$ac_delim
   19923 RDYNAMIC!$RDYNAMIC$ac_delim
   19924 LIBOBJS!$LIBOBJS$ac_delim
   19925 LTLIBOBJS!$LTLIBOBJS$ac_delim
   19926 _ACEOF
   19927 
   19928   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
   19929     break
   19930   elif $ac_last_try; then
   19931     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   19932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   19933    { (exit 1); exit 1; }; }
   19934   else
   19935     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   19936   fi
   19937 done
   19938 
   19939 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   19940 if test -n "$ac_eof"; then
   19941   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   19942   ac_eof=`expr $ac_eof + 1`
   19943 fi
   19944 
   19945 cat >>$CONFIG_STATUS <<_ACEOF
   19946 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   19947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   19948 _ACEOF
   19949 sed '
   19950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   19951 s/^/s,@/; s/!/@,|#_!!_#|/
   19952 :n
   19953 t n
   19954 s/'"$ac_delim"'$/,g/; t
   19955 s/$/\\/; p
   19956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   19957 ' >>$CONFIG_STATUS <conf$$subs.sed
   19958 rm -f conf$$subs.sed
   19959 cat >>$CONFIG_STATUS <<_ACEOF
   19960 :end
   19961 s/|#_!!_#|//g

   19962 CEOF$ac_eof
   19963 _ACEOF
   19964 
   19965 
   19966 # VPATH may cause trouble with some makes, so we remove $(srcdir),

   19967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and

   19968 # trailing colons and then remove the whole line if VPATH becomes empty

   19969 # (actually we leave an empty line to preserve line numbers).

   19970 if test "x$srcdir" = x.; then
   19971   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   19972 s/:*\$(srcdir):*/:/
   19973 s/:*\${srcdir}:*/:/
   19974 s/:*@srcdir@:*/:/
   19975 s/^\([^=]*=[	 ]*\):*/\1/
   19976 s/:*$//
   19977 s/^[^=]*=[	 ]*$//
   19978 }'
   19979 fi
   19980 
   19981 cat >>$CONFIG_STATUS <<\_ACEOF
   19982 fi # test -n "$CONFIG_FILES"

   19983 
   19984 
   19985 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
   19986 do
   19987   case $ac_tag in
   19988   :[FHLC]) ac_mode=$ac_tag; continue;;
   19989   esac
   19990   case $ac_mode$ac_tag in
   19991   :[FHL]*:*);;
   19992   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   19993 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   19994    { (exit 1); exit 1; }; };;
   19995   :[FH]-) ac_tag=-:-;;
   19996   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   19997   esac
   19998   ac_save_IFS=$IFS
   19999   IFS=:
   20000   set x $ac_tag
   20001   IFS=$ac_save_IFS
   20002   shift
   20003   ac_file=$1
   20004   shift
   20005 
   20006   case $ac_mode in
   20007   :L) ac_source=$1;;
   20008   :[FH])
   20009     ac_file_inputs=
   20010     for ac_f
   20011     do
   20012       case $ac_f in
   20013       -) ac_f="$tmp/stdin";;
   20014       *) # Look for the file first in the build tree, then in the source tree

   20015 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,

   20016 	 # because $ac_f cannot contain `:'.

   20017 	 test -f "$ac_f" ||
   20018 	   case $ac_f in
   20019 	   [\\/$]*) false;;
   20020 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   20021 	   esac ||
   20022 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   20023 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   20024    { (exit 1); exit 1; }; };;
   20025       esac
   20026       ac_file_inputs="$ac_file_inputs $ac_f"
   20027     done
   20028 
   20029     # Let's still pretend it is `configure' which instantiates (i.e., don't

   20030     # use $as_me), people would be surprised to read:

   20031     #    /* config.h.  Generated by config.status.  */

   20032     configure_input="Generated from "`IFS=:
   20033 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   20034     if test x"$ac_file" != x-; then
   20035       configure_input="$ac_file.  $configure_input"
   20036       { echo "$as_me:$LINENO: creating $ac_file" >&5
   20037 echo "$as_me: creating $ac_file" >&6;}
   20038     fi
   20039 
   20040     case $ac_tag in
   20041     *:-:* | *:-) cat >"$tmp/stdin";;
   20042     esac
   20043     ;;
   20044   esac
   20045 
   20046   ac_dir=`$as_dirname -- "$ac_file" ||
   20047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20048 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   20049 	 X"$ac_file" : 'X\(//\)$' \| \
   20050 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   20051 echo X"$ac_file" |
   20052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20053 	    s//\1/
   20054 	    q
   20055 	  }
   20056 	  /^X\(\/\/\)[^/].*/{
   20057 	    s//\1/
   20058 	    q
   20059 	  }
   20060 	  /^X\(\/\/\)$/{
   20061 	    s//\1/
   20062 	    q
   20063 	  }
   20064 	  /^X\(\/\).*/{
   20065 	    s//\1/
   20066 	    q
   20067 	  }
   20068 	  s/.*/./; q'`
   20069   { as_dir="$ac_dir"
   20070   case $as_dir in #(

   20071   -*) as_dir=./$as_dir;;
   20072   esac
   20073   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   20074     as_dirs=
   20075     while :; do
   20076       case $as_dir in #(

   20077       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(

   20078       *) as_qdir=$as_dir;;
   20079       esac
   20080       as_dirs="'$as_qdir' $as_dirs"
   20081       as_dir=`$as_dirname -- "$as_dir" ||
   20082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20083 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   20084 	 X"$as_dir" : 'X\(//\)$' \| \
   20085 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   20086 echo X"$as_dir" |
   20087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20088 	    s//\1/
   20089 	    q
   20090 	  }
   20091 	  /^X\(\/\/\)[^/].*/{
   20092 	    s//\1/
   20093 	    q
   20094 	  }
   20095 	  /^X\(\/\/\)$/{
   20096 	    s//\1/
   20097 	    q
   20098 	  }
   20099 	  /^X\(\/\).*/{
   20100 	    s//\1/
   20101 	    q
   20102 	  }
   20103 	  s/.*/./; q'`
   20104       test -d "$as_dir" && break
   20105     done
   20106     test -z "$as_dirs" || eval "mkdir $as_dirs"
   20107   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   20108 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   20109    { (exit 1); exit 1; }; }; }
   20110   ac_builddir=.
   20111 
   20112 case "$ac_dir" in
   20113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20114 *)
   20115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   20116   # A ".." for each directory in $ac_dir_suffix.

   20117   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   20118   case $ac_top_builddir_sub in
   20119   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20120   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   20121   esac ;;
   20122 esac
   20123 ac_abs_top_builddir=$ac_pwd
   20124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   20125 # for backward compatibility:

   20126 ac_top_builddir=$ac_top_build_prefix
   20127 
   20128 case $srcdir in
   20129   .)  # We are building in place.

   20130     ac_srcdir=.
   20131     ac_top_srcdir=$ac_top_builddir_sub
   20132     ac_abs_top_srcdir=$ac_pwd ;;
   20133   [\\/]* | ?:[\\/]* )  # Absolute name.

   20134     ac_srcdir=$srcdir$ac_dir_suffix;
   20135     ac_top_srcdir=$srcdir
   20136     ac_abs_top_srcdir=$srcdir ;;
   20137   *) # Relative name.

   20138     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   20139     ac_top_srcdir=$ac_top_build_prefix$srcdir
   20140     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   20141 esac
   20142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   20143 
   20144 
   20145   case $ac_mode in
   20146   :F)
   20147   #

   20148   # CONFIG_FILE

   20149   #

   20150 
   20151   case $INSTALL in
   20152   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   20153   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   20154   esac
   20155 _ACEOF
   20156 
   20157 cat >>$CONFIG_STATUS <<\_ACEOF
   20158 # If the template does not know about datarootdir, expand it.

   20159 # FIXME: This hack should be removed a few years after 2.60.

   20160 ac_datarootdir_hack=; ac_datarootdir_seen=
   20161 
   20162 case `sed -n '/datarootdir/ {
   20163   p
   20164   q
   20165 }
   20166 /@datadir@/p
   20167 /@docdir@/p
   20168 /@infodir@/p
   20169 /@localedir@/p
   20170 /@mandir@/p
   20171 ' $ac_file_inputs` in
   20172 *datarootdir*) ac_datarootdir_seen=yes;;
   20173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   20174   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   20175 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   20176 _ACEOF
   20177 cat >>$CONFIG_STATUS <<_ACEOF
   20178   ac_datarootdir_hack='
   20179   s&@datadir@&$datadir&g
   20180   s&@docdir@&$docdir&g
   20181   s&@infodir@&$infodir&g
   20182   s&@localedir@&$localedir&g
   20183   s&@mandir@&$mandir&g
   20184     s&\\\${datarootdir}&$datarootdir&g' ;;
   20185 esac
   20186 _ACEOF
   20187 
   20188 # Neutralize VPATH when `$srcdir' = `.'.

   20189 # Shell code in configure.ac might set extrasub.

   20190 # FIXME: do we really want to maintain this feature?

   20191 cat >>$CONFIG_STATUS <<_ACEOF
   20192   sed "$ac_vpsub
   20193 $extrasub
   20194 _ACEOF
   20195 cat >>$CONFIG_STATUS <<\_ACEOF
   20196 :t
   20197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   20198 s&@configure_input@&$configure_input&;t t
   20199 s&@top_builddir@&$ac_top_builddir_sub&;t t
   20200 s&@srcdir@&$ac_srcdir&;t t
   20201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   20202 s&@top_srcdir@&$ac_top_srcdir&;t t
   20203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   20204 s&@builddir@&$ac_builddir&;t t
   20205 s&@abs_builddir@&$ac_abs_builddir&;t t
   20206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   20207 s&@INSTALL@&$ac_INSTALL&;t t
   20208 $ac_datarootdir_hack
   20209 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   20210 
   20211 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   20212   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   20213   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   20214   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   20215 which seems to be undefined.  Please make sure it is defined." >&5
   20216 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   20217 which seems to be undefined.  Please make sure it is defined." >&2;}
   20218 
   20219   rm -f "$tmp/stdin"
   20220   case $ac_file in
   20221   -) cat "$tmp/out"; rm -f "$tmp/out";;
   20222   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   20223   esac
   20224  ;;
   20225   :H)
   20226   #
   20227   # CONFIG_HEADER
   20228   #
   20229 _ACEOF
   20230 
   20231 # Transform confdefs.h into a sed script `conftest.defines', that
   20232 # substitutes the proper values into config.h.in to produce config.h.
   20233 rm -f conftest.defines conftest.tail
   20234 # First, append a space to every undef/define line, to ease matching.
   20235 echo 's/$/ /' >conftest.defines
   20236 # Then, protect against being on the right side of a sed subst, or in
   20237 # an unquoted here document, in config.status.  If some macros were
   20238 # called several times there might be several #defines for the same
   20239 # symbol, which is useless.  But do not sort them, since the last
   20240 # AC_DEFINE must be honored.
   20241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   20242 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   20243 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   20244 # PARAMS is the parameter list in the macro definition--in most cases, it's
   20245 # just an empty string.

   20246 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   20247 ac_dB='\\)[	 (].*,\\1define\\2'
   20248 ac_dC=' '
   20249 ac_dD=' ,'
   20250 
   20251 uniq confdefs.h |
   20252   sed -n '
   20253 	t rset
   20254 	:rset
   20255 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   20256 	t ok
   20257 	d
   20258 	:ok
   20259 	s/[\\&,]/\\&/g
   20260 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   20261 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   20262   ' >>conftest.defines
   20263 
   20264 # Remove the space that was appended to ease matching.

   20265 # Then replace #undef with comments.  This is necessary, for

   20266 # example, in the case of _POSIX_SOURCE, which is predefined and required

   20267 # on some systems where configure will not decide to define it.

   20268 # (The regexp can be short, since the line contains either #define or #undef.)

   20269 echo 's/ $//
   20270 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   20271 
   20272 # Break up conftest.defines:

   20273 ac_max_sed_lines=50
   20274 
   20275 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"

   20276 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"

   20277 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"

   20278 # et cetera.

   20279 ac_in='$ac_file_inputs'
   20280 ac_out='"$tmp/out1"'
   20281 ac_nxt='"$tmp/out2"'
   20282 
   20283 while :
   20284 do
   20285   # Write a here document:

   20286     cat >>$CONFIG_STATUS <<_ACEOF
   20287     # First, check the format of the line:

   20288     cat >"\$tmp/defines.sed" <<\\CEOF
   20289 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def

   20290 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def

   20291 b
   20292 :def
   20293 _ACEOF
   20294   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   20295   echo 'CEOF
   20296     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   20297   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   20298   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   20299   grep . conftest.tail >/dev/null || break
   20300   rm -f conftest.defines
   20301   mv conftest.tail conftest.defines
   20302 done
   20303 rm -f conftest.defines conftest.tail
   20304 
   20305 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   20306 cat >>$CONFIG_STATUS <<\_ACEOF
   20307   if test x"$ac_file" != x-; then
   20308     echo "/* $configure_input  */" >"$tmp/config.h"
   20309     cat "$ac_result" >>"$tmp/config.h"
   20310     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   20311       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   20312 echo "$as_me: $ac_file is unchanged" >&6;}
   20313     else
   20314       rm -f $ac_file
   20315       mv "$tmp/config.h" $ac_file
   20316     fi
   20317   else
   20318     echo "/* $configure_input  */"
   20319     cat "$ac_result"
   20320   fi
   20321   rm -f "$tmp/out12"
   20322  ;;
   20323 
   20324   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   20325 echo "$as_me: executing $ac_file commands" >&6;}
   20326  ;;
   20327   esac
   20328 
   20329 
   20330   case $ac_file$ac_mode in
   20331     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
   20332    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
   20333     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
   20334    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
   20335     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
   20336    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
   20337     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
   20338    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
   20339     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
   20340    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
   20341     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
   20342    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
   20343     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
   20344    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
   20345     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
   20346    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
   20347     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
   20348    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
   20349     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
   20350    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
   20351     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
   20352    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
   20353     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
   20354    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
   20355     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
   20356    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
   20357 
   20358   esac
   20359 done # for ac_tag

   20360 
   20361 
   20362 { (exit 0); exit 0; }
   20363 _ACEOF
   20364 chmod +x $CONFIG_STATUS
   20365 ac_clean_files=$ac_clean_files_save
   20366 
   20367 
   20368 # configure is writing to config.log, and then calls config.status.

   20369 # config.status does its own redirection, appending to config.log.

   20370 # Unfortunately, on DOS this fails, as config.log is still kept open

   20371 # by configure, so config.status won't be able to write to it; its

   20372 # output is simply discarded.  So we exec the FD to /dev/null,

   20373 # effectively closing config.log, so it can be properly (re)opened and

   20374 # appended to by config.status.  When coming back to configure, we

   20375 # need to make the FD available again.

   20376 if test "$no_create" != yes; then
   20377   ac_cs_success=:
   20378   ac_config_status_args=
   20379   test "$silent" = yes &&
   20380     ac_config_status_args="$ac_config_status_args --quiet"
   20381   exec 5>/dev/null
   20382   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   20383   exec 5>>config.log
   20384   # Use ||, not &&, to avoid exiting from the if with $? = 1, which

   20385   # would make configure fail if this is the last instruction.

   20386   $ac_cs_success || { (exit 1); exit 1; }
   20387 fi
   20388 
   20389 #

   20390 # CONFIG_SUBDIRS section.

   20391 #

   20392 if test "$no_recursion" != yes; then
   20393 
   20394   # Remove --cache-file and --srcdir arguments so they do not pile up.

   20395   ac_sub_configure_args=
   20396   ac_prev=
   20397   eval "set x $ac_configure_args"
   20398   shift
   20399   for ac_arg
   20400   do
   20401     if test -n "$ac_prev"; then
   20402       ac_prev=
   20403       continue
   20404     fi
   20405     case $ac_arg in
   20406     -cache-file | --cache-file | --cache-fil | --cache-fi \
   20407     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   20408       ac_prev=cache_file ;;
   20409     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   20410     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   20411     | --c=*)
   20412       ;;
   20413     --config-cache | -C)
   20414       ;;
   20415     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   20416       ac_prev=srcdir ;;
   20417     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   20418       ;;
   20419     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   20420       ac_prev=prefix ;;
   20421     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   20422       ;;
   20423     *)
   20424       case $ac_arg in
   20425       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20426       esac
   20427       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
   20428     esac
   20429   done
   20430 
   20431   # Always prepend --prefix to ensure using the same prefix

   20432   # in subdir configurations.

   20433   ac_arg="--prefix=$prefix"
   20434   case $ac_arg in
   20435   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20436   esac
   20437   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   20438 
   20439   # Pass --silent

   20440   if test "$silent" = yes; then
   20441     ac_sub_configure_args="--silent $ac_sub_configure_args"
   20442   fi
   20443 
   20444   ac_popdir=`pwd`
   20445   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   20446 
   20447     # Do not complain, so a configure script can configure whichever

   20448     # parts of a large source tree are present.

   20449     test -d "$srcdir/$ac_dir" || continue
   20450 
   20451     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   20452     echo "$as_me:$LINENO: $ac_msg" >&5
   20453     echo "$ac_msg" >&6
   20454     { as_dir="$ac_dir"
   20455   case $as_dir in #(

   20456   -*) as_dir=./$as_dir;;
   20457   esac
   20458   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   20459     as_dirs=
   20460     while :; do
   20461       case $as_dir in #(

   20462       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(

   20463       *) as_qdir=$as_dir;;
   20464       esac
   20465       as_dirs="'$as_qdir' $as_dirs"
   20466       as_dir=`$as_dirname -- "$as_dir" ||
   20467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20468 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   20469 	 X"$as_dir" : 'X\(//\)$' \| \
   20470 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   20471 echo X"$as_dir" |
   20472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20473 	    s//\1/
   20474 	    q
   20475 	  }
   20476 	  /^X\(\/\/\)[^/].*/{
   20477 	    s//\1/
   20478 	    q
   20479 	  }
   20480 	  /^X\(\/\/\)$/{
   20481 	    s//\1/
   20482 	    q
   20483 	  }
   20484 	  /^X\(\/\).*/{
   20485 	    s//\1/
   20486 	    q
   20487 	  }
   20488 	  s/.*/./; q'`
   20489       test -d "$as_dir" && break
   20490     done
   20491     test -z "$as_dirs" || eval "mkdir $as_dirs"
   20492   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   20493 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   20494    { (exit 1); exit 1; }; }; }
   20495     ac_builddir=.
   20496 
   20497 case "$ac_dir" in
   20498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20499 *)
   20500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   20501   # A ".." for each directory in $ac_dir_suffix.

   20502   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   20503   case $ac_top_builddir_sub in
   20504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   20506   esac ;;
   20507 esac
   20508 ac_abs_top_builddir=$ac_pwd
   20509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   20510 # for backward compatibility:

   20511 ac_top_builddir=$ac_top_build_prefix
   20512 
   20513 case $srcdir in
   20514   .)  # We are building in place.

   20515     ac_srcdir=.
   20516     ac_top_srcdir=$ac_top_builddir_sub
   20517     ac_abs_top_srcdir=$ac_pwd ;;
   20518   [\\/]* | ?:[\\/]* )  # Absolute name.

   20519     ac_srcdir=$srcdir$ac_dir_suffix;
   20520     ac_top_srcdir=$srcdir
   20521     ac_abs_top_srcdir=$srcdir ;;
   20522   *) # Relative name.

   20523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   20524     ac_top_srcdir=$ac_top_build_prefix$srcdir
   20525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   20526 esac
   20527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   20528 
   20529 
   20530     cd "$ac_dir"
   20531 
   20532     # Check for guested configure; otherwise get Cygnus style configure.

   20533     if test -f "$ac_srcdir/configure.gnu"; then
   20534       ac_sub_configure=$ac_srcdir/configure.gnu
   20535     elif test -f "$ac_srcdir/configure"; then
   20536       ac_sub_configure=$ac_srcdir/configure
   20537     elif test -f "$ac_srcdir/configure.in"; then
   20538       # This should be Cygnus configure.

   20539       ac_sub_configure=$ac_aux_dir/configure
   20540     else
   20541       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
   20542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   20543       ac_sub_configure=
   20544     fi
   20545 
   20546     # The recursion is here.

   20547     if test -n "$ac_sub_configure"; then
   20548       # Make the cache file name correct relative to the subdirectory.

   20549       case $cache_file in
   20550       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   20551       *) # Relative name.

   20552 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   20553       esac
   20554 
   20555       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   20556 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   20557       # The eval makes quoting arguments work.

   20558       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   20559 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   20560 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
   20561 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
   20562    { (exit 1); exit 1; }; }
   20563     fi
   20564 
   20565     cd "$ac_popdir"
   20566   done
   20567 fi
   20568 
   20569