Home | History | Annotate | Download | only in sample
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
      4 #
      5 # Report bugs to <bugs@yourdomain>.
      6 #
      7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## --------------------- ##
     12 ## M4sh Initialization.  ##
     13 ## --------------------- ##
     14 
     15 # Be Bourne compatible
     16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17   emulate sh
     18   NULLCMD=:
     19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20   # is contrary to our usage.  Disable this feature.
     21   alias -g '${1+"$@"}'='"$@"'
     22   setopt NO_GLOB_SUBST
     23 else
     24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     25 fi
     26 BIN_SH=xpg4; export BIN_SH # for Tru64
     27 DUALCASE=1; export DUALCASE # for MKS sh
     28 
     29 
     30 # PATH needs CR
     31 # Avoid depending upon Character Ranges.
     32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     35 as_cr_digits='0123456789'
     36 as_cr_alnum=$as_cr_Letters$as_cr_digits
     37 
     38 # The user is always right.
     39 if test "${PATH_SEPARATOR+set}" != set; then
     40   echo "#! /bin/sh" >conf$$.sh
     41   echo  "exit 0"   >>conf$$.sh
     42   chmod +x conf$$.sh
     43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     44     PATH_SEPARATOR=';'
     45   else
     46     PATH_SEPARATOR=:
     47   fi
     48   rm -f conf$$.sh
     49 fi
     50 
     51 # Support unset when possible.
     52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     53   as_unset=unset
     54 else
     55   as_unset=false
     56 fi
     57 
     58 
     59 # IFS
     60 # We need space, tab and new line, in precisely that order.  Quoting is
     61 # there to prevent editors from complaining about space-tab.
     62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     63 # splitting by setting IFS to empty value.)
     64 as_nl='
     65 '
     66 IFS=" ""	$as_nl"
     67 
     68 # Find who we are.  Look in the path if we contain no directory separator.
     69 case $0 in
     70   *[\\/]* ) as_myself=$0 ;;
     71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     72 for as_dir in $PATH
     73 do
     74   IFS=$as_save_IFS
     75   test -z "$as_dir" && as_dir=.
     76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     77 done
     78 IFS=$as_save_IFS
     79 
     80      ;;
     81 esac
     82 # We did not find ourselves, most probably we were run as `sh COMMAND'
     83 # in which case we are not to be found in the path.
     84 if test "x$as_myself" = x; then
     85   as_myself=$0
     86 fi
     87 if test ! -f "$as_myself"; then
     88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     89   { (exit 1); exit 1; }
     90 fi
     91 
     92 # Work around bugs in pre-3.0 UWIN ksh.
     93 for as_var in ENV MAIL MAILPATH
     94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     95 done
     96 PS1='$ '
     97 PS2='> '
     98 PS4='+ '
     99 
    100 # NLS nuisances.
    101 for as_var in \
    102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    104   LC_TELEPHONE LC_TIME
    105 do
    106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    107     eval $as_var=C; export $as_var
    108   else
    109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    110   fi
    111 done
    112 
    113 # Required to use basename.
    114 if expr a : '\(a\)' >/dev/null 2>&1 &&
    115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    116   as_expr=expr
    117 else
    118   as_expr=false
    119 fi
    120 
    121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    122   as_basename=basename
    123 else
    124   as_basename=false
    125 fi
    126 
    127 
    128 # Name of the executable.
    129 as_me=`$as_basename -- "$0" ||
    130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    131 	 X"$0" : 'X\(//\)$' \| \
    132 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    133 echo X/"$0" |
    134     sed '/^.*\/\([^/][^/]*\)\/*$/{
    135 	    s//\1/
    136 	    q
    137 	  }
    138 	  /^X\/\(\/\/\)$/{
    139 	    s//\1/
    140 	    q
    141 	  }
    142 	  /^X\/\(\/\).*/{
    143 	    s//\1/
    144 	    q
    145 	  }
    146 	  s/.*/./; q'`
    147 
    148 # CDPATH.
    149 $as_unset CDPATH
    150 
    151 
    152 if test "x$CONFIG_SHELL" = x; then
    153   if (eval ":") 2>/dev/null; then
    154   as_have_required=yes
    155 else
    156   as_have_required=no
    157 fi
    158 
    159   if test $as_have_required = yes && 	 (eval ":
    160 (as_func_return () {
    161   (exit \$1)
    162 }
    163 as_func_success () {
    164   as_func_return 0
    165 }
    166 as_func_failure () {
    167   as_func_return 1
    168 }
    169 as_func_ret_success () {
    170   return 0
    171 }
    172 as_func_ret_failure () {
    173   return 1
    174 }
    175 
    176 exitcode=0
    177 if as_func_success; then
    178   :
    179 else
    180   exitcode=1
    181   echo as_func_success failed.
    182 fi
    183 
    184 if as_func_failure; then
    185   exitcode=1
    186   echo as_func_failure succeeded.
    187 fi
    188 
    189 if as_func_ret_success; then
    190   :
    191 else
    192   exitcode=1
    193   echo as_func_ret_success failed.
    194 fi
    195 
    196 if as_func_ret_failure; then
    197   exitcode=1
    198   echo as_func_ret_failure succeeded.
    199 fi
    200 
    201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    202   :
    203 else
    204   exitcode=1
    205   echo positional parameters were not saved.
    206 fi
    207 
    208 test \$exitcode = 0) || { (exit 1); exit 1; }
    209 
    210 (
    211   as_lineno_1=\$LINENO
    212   as_lineno_2=\$LINENO
    213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    215 ") 2> /dev/null; then
    216   :
    217 else
    218   as_candidate_shells=
    219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221 do
    222   IFS=$as_save_IFS
    223   test -z "$as_dir" && as_dir=.
    224   case $as_dir in
    225 	 /*)
    226 	   for as_base in sh bash ksh sh5; do
    227 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    228 	   done;;
    229        esac
    230 done
    231 IFS=$as_save_IFS
    232 
    233 
    234       for as_shell in $as_candidate_shells $SHELL; do
    235 	 # Try only shells that exist, to save several forks.
    236 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    237 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    238 # Be Bourne compatible
    239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    240   emulate sh
    241   NULLCMD=:
    242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    243   # is contrary to our usage.  Disable this feature.
    244   alias -g '${1+"$@"}'='"$@"'
    245   setopt NO_GLOB_SUBST
    246 else
    247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    248 fi
    249 BIN_SH=xpg4; export BIN_SH # for Tru64
    250 DUALCASE=1; export DUALCASE # for MKS sh
    251 
    252 :
    253 _ASEOF
    254 }; then
    255   CONFIG_SHELL=$as_shell
    256 	       as_have_required=yes
    257 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    258 # Be Bourne compatible
    259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    260   emulate sh
    261   NULLCMD=:
    262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    263   # is contrary to our usage.  Disable this feature.
    264   alias -g '${1+"$@"}'='"$@"'
    265   setopt NO_GLOB_SUBST
    266 else
    267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
    268 fi
    269 BIN_SH=xpg4; export BIN_SH # for Tru64
    270 DUALCASE=1; export DUALCASE # for MKS sh
    271 
    272 :
    273 (as_func_return () {
    274   (exit $1)
    275 }
    276 as_func_success () {
    277   as_func_return 0
    278 }
    279 as_func_failure () {
    280   as_func_return 1
    281 }
    282 as_func_ret_success () {
    283   return 0
    284 }
    285 as_func_ret_failure () {
    286   return 1
    287 }
    288 
    289 exitcode=0
    290 if as_func_success; then
    291   :
    292 else
    293   exitcode=1
    294   echo as_func_success failed.
    295 fi
    296 
    297 if as_func_failure; then
    298   exitcode=1
    299   echo as_func_failure succeeded.
    300 fi
    301 
    302 if as_func_ret_success; then
    303   :
    304 else
    305   exitcode=1
    306   echo as_func_ret_success failed.
    307 fi
    308 
    309 if as_func_ret_failure; then
    310   exitcode=1
    311   echo as_func_ret_failure succeeded.
    312 fi
    313 
    314 if ( set x; as_func_ret_success y && test x = "$1" ); then
    315   :
    316 else
    317   exitcode=1
    318   echo positional parameters were not saved.
    319 fi
    320 
    321 test $exitcode = 0) || { (exit 1); exit 1; }
    322 
    323 (
    324   as_lineno_1=$LINENO
    325   as_lineno_2=$LINENO
    326   test "x$as_lineno_1" != "x$as_lineno_2" &&
    327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    328 
    329 _ASEOF
    330 }; then
    331   break
    332 fi
    333 
    334 fi
    335 
    336       done
    337 
    338       if test "x$CONFIG_SHELL" != x; then
    339   for as_var in BASH_ENV ENV
    340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    341         done
    342         export CONFIG_SHELL
    343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    344 fi
    345 
    346 
    347     if test $as_have_required = no; then
    348   echo This script requires a shell more modern than all the
    349       echo shells that I found on your system.  Please install a
    350       echo modern shell, or manually run the script under such a
    351       echo shell if you do have one.
    352       { (exit 1); exit 1; }
    353 fi
    354 
    355 
    356 fi
    357 
    358 fi
    359 
    360 
    361 
    362 (eval "as_func_return () {
    363   (exit \$1)
    364 }
    365 as_func_success () {
    366   as_func_return 0
    367 }
    368 as_func_failure () {
    369   as_func_return 1
    370 }
    371 as_func_ret_success () {
    372   return 0
    373 }
    374 as_func_ret_failure () {
    375   return 1
    376 }
    377 
    378 exitcode=0
    379 if as_func_success; then
    380   :
    381 else
    382   exitcode=1
    383   echo as_func_success failed.
    384 fi
    385 
    386 if as_func_failure; then
    387   exitcode=1
    388   echo as_func_failure succeeded.
    389 fi
    390 
    391 if as_func_ret_success; then
    392   :
    393 else
    394   exitcode=1
    395   echo as_func_ret_success failed.
    396 fi
    397 
    398 if as_func_ret_failure; then
    399   exitcode=1
    400   echo as_func_ret_failure succeeded.
    401 fi
    402 
    403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    404   :
    405 else
    406   exitcode=1
    407   echo positional parameters were not saved.
    408 fi
    409 
    410 test \$exitcode = 0") || {
    411   echo No shell found that supports shell functions.
    412   echo Please tell autoconf@gnu.org about your system,
    413   echo including any error possibly output before this
    414   echo message
    415 }
    416 
    417 
    418 
    419   as_lineno_1=$LINENO
    420   as_lineno_2=$LINENO
    421   test "x$as_lineno_1" != "x$as_lineno_2" &&
    422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    423 
    424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    425   # uniformly replaced by the line number.  The first 'sed' inserts a
    426   # line-number line after each line using $LINENO; the second 'sed'
    427   # does the real work.  The second script uses 'N' to pair each
    428   # line-number line with the line containing $LINENO, and appends
    429   # trailing '-' during substitution so that $LINENO is not a special
    430   # case at line end.
    431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    433   # E. McMahon (1931-1989) for sed's syntax.  :-)
    434   sed -n '
    435     p
    436     /[$]LINENO/=
    437   ' <$as_myself |
    438     sed '
    439       s/[$]LINENO.*/&-/
    440       t lineno
    441       b
    442       :lineno
    443       N
    444       :loop
    445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    446       t loop
    447       s/-\n.*//
    448     ' >$as_me.lineno &&
    449   chmod +x "$as_me.lineno" ||
    450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    451    { (exit 1); exit 1; }; }
    452 
    453   # Don't try to exec as it changes $[0], causing all sort of problems
    454   # (the dirname of $[0] is not the place where we might find the
    455   # original and so on.  Autoconf is especially sensitive to this).
    456   . "./$as_me.lineno"
    457   # Exit status is that of the last command.
    458   exit
    459 }
    460 
    461 
    462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    463   as_dirname=dirname
    464 else
    465   as_dirname=false
    466 fi
    467 
    468 ECHO_C= ECHO_N= ECHO_T=
    469 case `echo -n x` in
    470 -n*)
    471   case `echo 'x\c'` in
    472   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    473   *)   ECHO_C='\c';;
    474   esac;;
    475 *)
    476   ECHO_N='-n';;
    477 esac
    478 
    479 if expr a : '\(a\)' >/dev/null 2>&1 &&
    480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    481   as_expr=expr
    482 else
    483   as_expr=false
    484 fi
    485 
    486 rm -f conf$$ conf$$.exe conf$$.file
    487 if test -d conf$$.dir; then
    488   rm -f conf$$.dir/conf$$.file
    489 else
    490   rm -f conf$$.dir
    491   mkdir conf$$.dir
    492 fi
    493 echo >conf$$.file
    494 if ln -s conf$$.file conf$$ 2>/dev/null; then
    495   as_ln_s='ln -s'
    496   # ... but there are two gotchas:
    497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    499   # In both cases, we have to default to `cp -p'.
    500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    501     as_ln_s='cp -p'
    502 elif ln conf$$.file conf$$ 2>/dev/null; then
    503   as_ln_s=ln
    504 else
    505   as_ln_s='cp -p'
    506 fi
    507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    508 rmdir conf$$.dir 2>/dev/null
    509 
    510 if mkdir -p . 2>/dev/null; then
    511   as_mkdir_p=:
    512 else
    513   test -d ./-p && rmdir ./-p
    514   as_mkdir_p=false
    515 fi
    516 
    517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
    518 # systems may use methods other than mode bits to determine executability.
    519 cat >conf$$.file <<_ASEOF
    520 #! /bin/sh
    521 exit 0
    522 _ASEOF
    523 chmod +x conf$$.file
    524 if test -x conf$$.file >/dev/null 2>&1; then
    525   as_executable_p="test -x"
    526 else
    527   as_executable_p=:
    528 fi
    529 rm -f conf$$.file
    530 
    531 # Sed expression to map a string onto a valid CPP name.
    532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    533 
    534 # Sed expression to map a string onto a valid variable name.
    535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    536 
    537 
    538 
    539 exec 7<&0 </dev/null 6>&1
    540 
    541 # Name of the host.
    542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    543 # so uname gets run too.
    544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    545 
    546 #
    547 # Initializations.
    548 #
    549 ac_default_prefix=/usr/local
    550 ac_clean_files=
    551 ac_config_libobj_dir=.
    552 LIBOBJS=
    553 cross_compiling=no
    554 subdirs=
    555 MFLAGS=
    556 MAKEFLAGS=
    557 SHELL=${CONFIG_SHELL-/bin/sh}
    558 
    559 # Identity of this package.
    560 PACKAGE_NAME='[SAMPLE]'
    561 PACKAGE_TARNAME='--sample--'
    562 PACKAGE_VERSION='[x.xx]'
    563 PACKAGE_STRING='[SAMPLE] [x.xx]'
    564 PACKAGE_BUGREPORT='bugs@yourdomain'
    565 
    566 ac_unique_file=""Makefile.common.in""
    567 # Factoring default headers for most tests.
    568 ac_includes_default="\
    569 #include <stdio.h>
    570 #if HAVE_SYS_TYPES_H
    571 # include <sys/types.h>
    572 #endif
    573 #if HAVE_SYS_STAT_H
    574 # include <sys/stat.h>
    575 #endif
    576 #if STDC_HEADERS
    577 # include <stdlib.h>
    578 # include <stddef.h>
    579 #else
    580 # if HAVE_STDLIB_H
    581 #  include <stdlib.h>
    582 # endif
    583 #endif
    584 #if HAVE_STRING_H
    585 # if !STDC_HEADERS && HAVE_MEMORY_H
    586 #  include <memory.h>
    587 # endif
    588 # include <string.h>
    589 #endif
    590 #if HAVE_STRINGS_H
    591 # include <strings.h>
    592 #endif
    593 #if HAVE_INTTYPES_H
    594 # include <inttypes.h>
    595 #endif
    596 #if HAVE_STDINT_H
    597 # include <stdint.h>
    598 #endif
    599 #if HAVE_UNISTD_H
    600 # include <unistd.h>
    601 #endif"
    602 
    603 ac_subst_vars='SHELL
    604 PATH_SEPARATOR
    605 PACKAGE_NAME
    606 PACKAGE_TARNAME
    607 PACKAGE_VERSION
    608 PACKAGE_STRING
    609 PACKAGE_BUGREPORT
    610 exec_prefix
    611 prefix
    612 program_transform_name
    613 bindir
    614 sbindir
    615 libexecdir
    616 datarootdir
    617 datadir
    618 sysconfdir
    619 sharedstatedir
    620 localstatedir
    621 includedir
    622 oldincludedir
    623 docdir
    624 infodir
    625 htmldir
    626 dvidir
    627 pdfdir
    628 psdir
    629 libdir
    630 localedir
    631 mandir
    632 DEFS
    633 ECHO_C
    634 ECHO_N
    635 ECHO_T
    636 LIBS
    637 build_alias
    638 host_alias
    639 target_alias
    640 LLVM_SRC
    641 LLVM_OBJ
    642 LLVM_VERSION
    643 CC
    644 CFLAGS
    645 LDFLAGS
    646 CPPFLAGS
    647 ac_ct_CC
    648 EXEEXT
    649 OBJEXT
    650 CXX
    651 CXXFLAGS
    652 ac_ct_CXX
    653 CPP
    654 ENABLE_POLLY
    655 LLVM_HAS_POLLY
    656 subdirs
    657 build
    658 build_cpu
    659 build_vendor
    660 build_os
    661 host
    662 host_cpu
    663 host_vendor
    664 host_os
    665 target
    666 target_cpu
    667 target_vendor
    668 target_os
    669 OS
    670 HOST_OS
    671 TARGET_OS
    672 LINKALL
    673 NOLINKALL
    674 LLVM_ON_UNIX
    675 LLVM_ON_WIN32
    676 ARCH
    677 ENDIAN
    678 GREP
    679 EGREP
    680 LLVM_CROSS_COMPILING
    681 BUILD_CC
    682 BUILD_EXEEXT
    683 BUILD_CXX
    684 CVSBUILD
    685 ENABLE_LIBCPP
    686 ENABLE_CXX11
    687 ENABLE_OPTIMIZED
    688 ENABLE_PROFILING
    689 DISABLE_ASSERTIONS
    690 ENABLE_WERROR
    691 ENABLE_EXPENSIVE_CHECKS
    692 EXPENSIVE_CHECKS
    693 DEBUG_RUNTIME
    694 DEBUG_SYMBOLS
    695 JIT
    696 TARGET_HAS_JIT
    697 ENABLE_DOCS
    698 ENABLE_DOXYGEN
    699 ENABLE_THREADS
    700 ENABLE_PTHREADS
    701 ENABLE_PIC
    702 ENABLE_SHARED
    703 ENABLE_EMBED_STDCXX
    704 ENABLE_TIMESTAMPS
    705 TARGETS_TO_BUILD
    706 LLVM_ENUM_TARGETS
    707 LLVM_ENUM_ASM_PRINTERS
    708 LLVM_ENUM_ASM_PARSERS
    709 LLVM_ENUM_DISASSEMBLERS
    710 OPTIMIZE_OPTION
    711 EXTRA_OPTIONS
    712 EXTRA_LD_OPTIONS
    713 BINUTILS_INCDIR
    714 NM
    715 ifGNUmake
    716 LN_S
    717 CMP
    718 CP
    719 DATE
    720 FIND
    721 MKDIR
    722 MV
    723 RANLIB
    724 AR
    725 RM
    726 SED
    727 TAR
    728 BINPWD
    729 GRAPHVIZ
    730 DOT
    731 FDP
    732 NEATO
    733 TWOPI
    734 CIRCO
    735 GV
    736 DOTTY
    737 XDOT_PY
    738 INSTALL_PROGRAM
    739 INSTALL_SCRIPT
    740 INSTALL_DATA
    741 BZIP2
    742 CAT
    743 DOXYGEN
    744 GROFF
    745 GZIPBIN
    746 POD2HTML
    747 POD2MAN
    748 PDFROFF
    749 RUNTEST
    750 TCLSH
    751 ZIP
    752 OCAMLC
    753 OCAMLOPT
    754 OCAMLDEP
    755 OCAMLDOC
    756 GAS
    757 HAVE_LINK_VERSION_SCRIPT
    758 INSTALL_LTDL_TRUE
    759 INSTALL_LTDL_FALSE
    760 CONVENIENCE_LTDL_TRUE
    761 CONVENIENCE_LTDL_FALSE
    762 LIBADD_DL
    763 NO_VARIADIC_MACROS
    764 NO_MISSING_FIELD_INITIALIZERS
    765 COVERED_SWITCH_DEFAULT
    766 USE_UDIS86
    767 USE_OPROFILE
    768 HAVE_PTHREAD
    769 HUGE_VAL_SANITY
    770 MMAP_FILE
    771 SHLIBEXT
    772 SHLIBPATH_VAR
    773 LLVM_PREFIX
    774 LLVM_BINDIR
    775 LLVM_LIBDIR
    776 LLVM_DATADIR
    777 LLVM_DOCSDIR
    778 LLVM_ETCDIR
    779 LLVM_INCLUDEDIR
    780 LLVM_INFODIR
    781 LLVM_MANDIR
    782 LLVM_CONFIGTIME
    783 BINDINGS_TO_BUILD
    784 ALL_BINDINGS
    785 OCAML_LIBDIR
    786 ENABLE_VISIBILITY_INLINES_HIDDEN
    787 RPATH
    788 RDYNAMIC
    789 LIBOBJS
    790 LTLIBOBJS'
    791 ac_subst_files=''
    792       ac_precious_vars='build_alias
    793 host_alias
    794 target_alias
    795 CC
    796 CFLAGS
    797 LDFLAGS
    798 CPPFLAGS
    799 CXX
    800 CXXFLAGS
    801 CCC
    802 CPP'
    803 ac_subdirs_all='tools/polly'
    804 
    805 # Initialize some variables set by options.
    806 ac_init_help=
    807 ac_init_version=false
    808 # The variables have the same names as the options, with
    809 # dashes changed to underlines.
    810 cache_file=/dev/null
    811 exec_prefix=NONE
    812 no_create=
    813 no_recursion=
    814 prefix=NONE
    815 program_prefix=NONE
    816 program_suffix=NONE
    817 program_transform_name=s,x,x,
    818 silent=
    819 site=
    820 srcdir=
    821 verbose=
    822 x_includes=NONE
    823 x_libraries=NONE
    824 
    825 # Installation directory options.
    826 # These are left unexpanded so users can "make install exec_prefix=/foo"
    827 # and all the variables that are supposed to be based on exec_prefix
    828 # by default will actually change.
    829 # Use braces instead of parens because sh, perl, etc. also accept them.
    830 # (The list follows the same order as the GNU Coding Standards.)
    831 bindir='${exec_prefix}/bin'
    832 sbindir='${exec_prefix}/sbin'
    833 libexecdir='${exec_prefix}/libexec'
    834 datarootdir='${prefix}/share'
    835 datadir='${datarootdir}'
    836 sysconfdir='${prefix}/etc'
    837 sharedstatedir='${prefix}/com'
    838 localstatedir='${prefix}/var'
    839 includedir='${prefix}/include'
    840 oldincludedir='/usr/include'
    841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    842 infodir='${datarootdir}/info'
    843 htmldir='${docdir}'
    844 dvidir='${docdir}'
    845 pdfdir='${docdir}'
    846 psdir='${docdir}'
    847 libdir='${exec_prefix}/lib'
    848 localedir='${datarootdir}/locale'
    849 mandir='${datarootdir}/man'
    850 
    851 ac_prev=
    852 ac_dashdash=
    853 for ac_option
    854 do
    855   # If the previous option needs an argument, assign it.
    856   if test -n "$ac_prev"; then
    857     eval $ac_prev=\$ac_option
    858     ac_prev=
    859     continue
    860   fi
    861 
    862   case $ac_option in
    863   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    864   *)	ac_optarg=yes ;;
    865   esac
    866 
    867   # Accept the important Cygnus configure options, so we can diagnose typos.
    868 
    869   case $ac_dashdash$ac_option in
    870   --)
    871     ac_dashdash=yes ;;
    872 
    873   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    874     ac_prev=bindir ;;
    875   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    876     bindir=$ac_optarg ;;
    877 
    878   -build | --build | --buil | --bui | --bu)
    879     ac_prev=build_alias ;;
    880   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    881     build_alias=$ac_optarg ;;
    882 
    883   -cache-file | --cache-file | --cache-fil | --cache-fi \
    884   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    885     ac_prev=cache_file ;;
    886   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    887   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    888     cache_file=$ac_optarg ;;
    889 
    890   --config-cache | -C)
    891     cache_file=config.cache ;;
    892 
    893   -datadir | --datadir | --datadi | --datad)
    894     ac_prev=datadir ;;
    895   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    896     datadir=$ac_optarg ;;
    897 
    898   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    899   | --dataroo | --dataro | --datar)
    900     ac_prev=datarootdir ;;
    901   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    902   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    903     datarootdir=$ac_optarg ;;
    904 
    905   -disable-* | --disable-*)
    906     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    907     # Reject names that are not valid shell variable names.
    908     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    910    { (exit 1); exit 1; }; }
    911     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    912     eval enable_$ac_feature=no ;;
    913 
    914   -docdir | --docdir | --docdi | --doc | --do)
    915     ac_prev=docdir ;;
    916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    917     docdir=$ac_optarg ;;
    918 
    919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    920     ac_prev=dvidir ;;
    921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    922     dvidir=$ac_optarg ;;
    923 
    924   -enable-* | --enable-*)
    925     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    926     # Reject names that are not valid shell variable names.
    927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    929    { (exit 1); exit 1; }; }
    930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    931     eval enable_$ac_feature=\$ac_optarg ;;
    932 
    933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    935   | --exec | --exe | --ex)
    936     ac_prev=exec_prefix ;;
    937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    939   | --exec=* | --exe=* | --ex=*)
    940     exec_prefix=$ac_optarg ;;
    941 
    942   -gas | --gas | --ga | --g)
    943     # Obsolete; use --with-gas.
    944     with_gas=yes ;;
    945 
    946   -help | --help | --hel | --he | -h)
    947     ac_init_help=long ;;
    948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    949     ac_init_help=recursive ;;
    950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    951     ac_init_help=short ;;
    952 
    953   -host | --host | --hos | --ho)
    954     ac_prev=host_alias ;;
    955   -host=* | --host=* | --hos=* | --ho=*)
    956     host_alias=$ac_optarg ;;
    957 
    958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    959     ac_prev=htmldir ;;
    960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    961   | --ht=*)
    962     htmldir=$ac_optarg ;;
    963 
    964   -includedir | --includedir | --includedi | --included | --include \
    965   | --includ | --inclu | --incl | --inc)
    966     ac_prev=includedir ;;
    967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    968   | --includ=* | --inclu=* | --incl=* | --inc=*)
    969     includedir=$ac_optarg ;;
    970 
    971   -infodir | --infodir | --infodi | --infod | --info | --inf)
    972     ac_prev=infodir ;;
    973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    974     infodir=$ac_optarg ;;
    975 
    976   -libdir | --libdir | --libdi | --libd)
    977     ac_prev=libdir ;;
    978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    979     libdir=$ac_optarg ;;
    980 
    981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    982   | --libexe | --libex | --libe)
    983     ac_prev=libexecdir ;;
    984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    985   | --libexe=* | --libex=* | --libe=*)
    986     libexecdir=$ac_optarg ;;
    987 
    988   -localedir | --localedir | --localedi | --localed | --locale)
    989     ac_prev=localedir ;;
    990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    991     localedir=$ac_optarg ;;
    992 
    993   -localstatedir | --localstatedir | --localstatedi | --localstated \
    994   | --localstate | --localstat | --localsta | --localst | --locals)
    995     ac_prev=localstatedir ;;
    996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    998     localstatedir=$ac_optarg ;;
    999 
   1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1001     ac_prev=mandir ;;
   1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1003     mandir=$ac_optarg ;;
   1004 
   1005   -nfp | --nfp | --nf)
   1006     # Obsolete; use --without-fp.
   1007     with_fp=no ;;
   1008 
   1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1010   | --no-cr | --no-c | -n)
   1011     no_create=yes ;;
   1012 
   1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1015     no_recursion=yes ;;
   1016 
   1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1019   | --oldin | --oldi | --old | --ol | --o)
   1020     ac_prev=oldincludedir ;;
   1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1024     oldincludedir=$ac_optarg ;;
   1025 
   1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1027     ac_prev=prefix ;;
   1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1029     prefix=$ac_optarg ;;
   1030 
   1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1032   | --program-pre | --program-pr | --program-p)
   1033     ac_prev=program_prefix ;;
   1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1036     program_prefix=$ac_optarg ;;
   1037 
   1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1039   | --program-suf | --program-su | --program-s)
   1040     ac_prev=program_suffix ;;
   1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1043     program_suffix=$ac_optarg ;;
   1044 
   1045   -program-transform-name | --program-transform-name \
   1046   | --program-transform-nam | --program-transform-na \
   1047   | --program-transform-n | --program-transform- \
   1048   | --program-transform | --program-transfor \
   1049   | --program-transfo | --program-transf \
   1050   | --program-trans | --program-tran \
   1051   | --progr-tra | --program-tr | --program-t)
   1052     ac_prev=program_transform_name ;;
   1053   -program-transform-name=* | --program-transform-name=* \
   1054   | --program-transform-nam=* | --program-transform-na=* \
   1055   | --program-transform-n=* | --program-transform-=* \
   1056   | --program-transform=* | --program-transfor=* \
   1057   | --program-transfo=* | --program-transf=* \
   1058   | --program-trans=* | --program-tran=* \
   1059   | --progr-tra=* | --program-tr=* | --program-t=*)
   1060     program_transform_name=$ac_optarg ;;
   1061 
   1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1063     ac_prev=pdfdir ;;
   1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1065     pdfdir=$ac_optarg ;;
   1066 
   1067   -psdir | --psdir | --psdi | --psd | --ps)
   1068     ac_prev=psdir ;;
   1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1070     psdir=$ac_optarg ;;
   1071 
   1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1073   | -silent | --silent | --silen | --sile | --sil)
   1074     silent=yes ;;
   1075 
   1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1077     ac_prev=sbindir ;;
   1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1079   | --sbi=* | --sb=*)
   1080     sbindir=$ac_optarg ;;
   1081 
   1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1084   | --sharedst | --shareds | --shared | --share | --shar \
   1085   | --sha | --sh)
   1086     ac_prev=sharedstatedir ;;
   1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1090   | --sha=* | --sh=*)
   1091     sharedstatedir=$ac_optarg ;;
   1092 
   1093   -site | --site | --sit)
   1094     ac_prev=site ;;
   1095   -site=* | --site=* | --sit=*)
   1096     site=$ac_optarg ;;
   1097 
   1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1099     ac_prev=srcdir ;;
   1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1101     srcdir=$ac_optarg ;;
   1102 
   1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1104   | --syscon | --sysco | --sysc | --sys | --sy)
   1105     ac_prev=sysconfdir ;;
   1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1108     sysconfdir=$ac_optarg ;;
   1109 
   1110   -target | --target | --targe | --targ | --tar | --ta | --t)
   1111     ac_prev=target_alias ;;
   1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1113     target_alias=$ac_optarg ;;
   1114 
   1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1116     verbose=yes ;;
   1117 
   1118   -version | --version | --versio | --versi | --vers | -V)
   1119     ac_init_version=: ;;
   1120 
   1121   -with-* | --with-*)
   1122     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1123     # Reject names that are not valid shell variable names.
   1124     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1126    { (exit 1); exit 1; }; }
   1127     ac_package=`echo $ac_package| sed 's/-/_/g'`
   1128     eval with_$ac_package=\$ac_optarg ;;
   1129 
   1130   -without-* | --without-*)
   1131     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1132     # Reject names that are not valid shell variable names.
   1133     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   1134       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1135    { (exit 1); exit 1; }; }
   1136     ac_package=`echo $ac_package | sed 's/-/_/g'`
   1137     eval with_$ac_package=no ;;
   1138 
   1139   --x)
   1140     # Obsolete; use --with-x.
   1141     with_x=yes ;;
   1142 
   1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1144   | --x-incl | --x-inc | --x-in | --x-i)
   1145     ac_prev=x_includes ;;
   1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1148     x_includes=$ac_optarg ;;
   1149 
   1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1152     ac_prev=x_libraries ;;
   1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1155     x_libraries=$ac_optarg ;;
   1156 
   1157   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1158 Try \`$0 --help' for more information." >&2
   1159    { (exit 1); exit 1; }; }
   1160     ;;
   1161 
   1162   *=*)
   1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1164     # Reject names that are not valid shell variable names.
   1165     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1166       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1167    { (exit 1); exit 1; }; }
   1168     eval $ac_envvar=\$ac_optarg
   1169     export $ac_envvar ;;
   1170 
   1171   *)
   1172     # FIXME: should be removed in autoconf 3.0.
   1173     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1175       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1177     ;;
   1178 
   1179   esac
   1180 done
   1181 
   1182 if test -n "$ac_prev"; then
   1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1184   { echo "$as_me: error: missing argument to $ac_option" >&2
   1185    { (exit 1); exit 1; }; }
   1186 fi
   1187 
   1188 # Be sure to have absolute directory names.
   1189 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1190 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1191 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1192 		libdir localedir mandir
   1193 do
   1194   eval ac_val=\$$ac_var
   1195   case $ac_val in
   1196     [\\/$]* | ?:[\\/]* )  continue;;
   1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1198   esac
   1199   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1200    { (exit 1); exit 1; }; }
   1201 done
   1202 
   1203 # There might be people who depend on the old broken behavior: `$host'
   1204 # used to hold the argument of --host etc.
   1205 # FIXME: To remove some day.
   1206 build=$build_alias
   1207 host=$host_alias
   1208 target=$target_alias
   1209 
   1210 # FIXME: To remove some day.
   1211 if test "x$host_alias" != x; then
   1212   if test "x$build_alias" = x; then
   1213     cross_compiling=maybe
   1214     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1215     If a cross compiler is detected then cross compile mode will be used." >&2
   1216   elif test "x$build_alias" != "x$host_alias"; then
   1217     cross_compiling=yes
   1218   fi
   1219 fi
   1220 
   1221 ac_tool_prefix=
   1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1223 
   1224 test "$silent" = yes && exec 6>/dev/null
   1225 
   1226 
   1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1228 ac_ls_di=`ls -di .` &&
   1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1230   { echo "$as_me: error: Working directory cannot be determined" >&2
   1231    { (exit 1); exit 1; }; }
   1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1233   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1234    { (exit 1); exit 1; }; }
   1235 
   1236 
   1237 # Find the source files, if location was not specified.
   1238 if test -z "$srcdir"; then
   1239   ac_srcdir_defaulted=yes
   1240   # Try the directory containing this script, then the parent directory.
   1241   ac_confdir=`$as_dirname -- "$0" ||
   1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1243 	 X"$0" : 'X\(//\)[^/]' \| \
   1244 	 X"$0" : 'X\(//\)$' \| \
   1245 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1246 echo X"$0" |
   1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1248 	    s//\1/
   1249 	    q
   1250 	  }
   1251 	  /^X\(\/\/\)[^/].*/{
   1252 	    s//\1/
   1253 	    q
   1254 	  }
   1255 	  /^X\(\/\/\)$/{
   1256 	    s//\1/
   1257 	    q
   1258 	  }
   1259 	  /^X\(\/\).*/{
   1260 	    s//\1/
   1261 	    q
   1262 	  }
   1263 	  s/.*/./; q'`
   1264   srcdir=$ac_confdir
   1265   if test ! -r "$srcdir/$ac_unique_file"; then
   1266     srcdir=..
   1267   fi
   1268 else
   1269   ac_srcdir_defaulted=no
   1270 fi
   1271 if test ! -r "$srcdir/$ac_unique_file"; then
   1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1273   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1274    { (exit 1); exit 1; }; }
   1275 fi
   1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1277 ac_abs_confdir=`(
   1278 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1279    { (exit 1); exit 1; }; }
   1280 	pwd)`
   1281 # When building in place, set srcdir=.
   1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1283   srcdir=.
   1284 fi
   1285 # Remove unnecessary trailing slashes from srcdir.
   1286 # Double slashes in file names in object file debugging info
   1287 # mess up M-x gdb in Emacs.
   1288 case $srcdir in
   1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1290 esac
   1291 for ac_var in $ac_precious_vars; do
   1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1293   eval ac_env_${ac_var}_value=\$${ac_var}
   1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1296 done
   1297 
   1298 #
   1299 # Report the --help message.
   1300 #
   1301 if test "$ac_init_help" = "long"; then
   1302   # Omit some internal or obsolete options to make the list less imposing.
   1303   # This message is too long to be a string in the A/UX 3.1 sh.
   1304   cat <<_ACEOF
   1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
   1306 
   1307 Usage: $0 [OPTION]... [VAR=VALUE]...
   1308 
   1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1311 
   1312 Defaults for the options are specified in brackets.
   1313 
   1314 Configuration:
   1315   -h, --help              display this help and exit
   1316       --help=short        display options specific to this package
   1317       --help=recursive    display the short help of all the included packages
   1318   -V, --version           display version information and exit
   1319   -q, --quiet, --silent   do not print \`checking...' messages
   1320       --cache-file=FILE   cache test results in FILE [disabled]
   1321   -C, --config-cache      alias for \`--cache-file=config.cache'
   1322   -n, --no-create         do not create output files
   1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1324 
   1325 Installation directories:
   1326   --prefix=PREFIX         install architecture-independent files in PREFIX
   1327 			  [$ac_default_prefix]
   1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1329 			  [PREFIX]
   1330 
   1331 By default, \`make install' will install all the files in
   1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1334 for instance \`--prefix=\$HOME'.
   1335 
   1336 For better control, use the options below.
   1337 
   1338 Fine tuning of the installation directories:
   1339   --bindir=DIR           user executables [EPREFIX/bin]
   1340   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1341   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1342   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1343   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1344   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1345   --libdir=DIR           object code libraries [EPREFIX/lib]
   1346   --includedir=DIR       C header files [PREFIX/include]
   1347   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1348   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1349   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1350   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1351   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1352   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1353   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
   1354   --htmldir=DIR          html documentation [DOCDIR]
   1355   --dvidir=DIR           dvi documentation [DOCDIR]
   1356   --pdfdir=DIR           pdf documentation [DOCDIR]
   1357   --psdir=DIR            ps documentation [DOCDIR]
   1358 _ACEOF
   1359 
   1360   cat <<\_ACEOF
   1361 
   1362 System types:
   1363   --build=BUILD     configure for building on BUILD [guessed]
   1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1365   --target=TARGET   configure for building compilers for TARGET [HOST]
   1366 _ACEOF
   1367 fi
   1368 
   1369 if test -n "$ac_init_help"; then
   1370   case $ac_init_help in
   1371      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
   1372    esac
   1373   cat <<\_ACEOF
   1374 
   1375 Optional Features:
   1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1378   --enable-polly          Use polly if available (default is YES)
   1379   --enable-libcpp         Use libc++ if available (default is NO)
   1380   --enable-cxx11          Use c++11 if available (default is NO)
   1381   --enable-optimized      Compile with optimizations enabled (default is NO)
   1382   --enable-profiling      Compile with profiling enabled (default is NO)
   1383   --enable-assertions     Compile with assertion checks enabled (default is
   1384                           YES)
   1385   --enable-werror         Compile with -Werror enabled (default is NO)
   1386   --enable-expensive-checks
   1387                           Compile with expensive debug checks enabled (default
   1388                           is NO)
   1389   --enable-debug-runtime  Build runtime libs with debug symbols (default is
   1390                           NO)
   1391   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
   1392                           optimization is on and YES if it's off)
   1393   --enable-jit            Enable Just In Time Compiling (default is YES)
   1394   --enable-docs           Build documents (default is YES)
   1395   --enable-doxygen        Build doxygen documentation (default is NO)
   1396   --enable-threads        Use threads if available (default is YES)
   1397   --enable-pthreads       Use pthreads if available (default is YES)
   1398   --enable-pic            Build LLVM with Position Independent Code (default
   1399                           is YES)
   1400   --enable-shared         Build a shared library and link tools against it
   1401                           (default is NO)
   1402   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
   1403                           Win32 DLL (default is YES)
   1404   --enable-timestamps     Enable embedding timestamp information in build
   1405                           (default is YES)
   1406   --enable-targets        Build specific host targets: all or
   1407                           target1,target2,... Valid targets are: host, x86,
   1408                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
   1409                           xcore, msp430, nvptx, cbe, and cpp (default=all)
   1410   --enable-bindings       Build specific language bindings:
   1411                           all,auto,none,{binding-name} (default=auto)
   1412   --enable-libffi         Check for the presence of libffi (default is NO)
   1413   --enable-ltdl-install   install libltdl
   1414 
   1415 Optional Packages:
   1416   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1417   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1418   --with-llvmsrc          Location of LLVM Source Code
   1419   --with-llvmobj          Location of LLVM Object Code
   1420   --with-optimize-option  Select the compiler options to use for optimized
   1421                           builds
   1422   --with-extra-options    Specify additional options to compile LLVM with
   1423   --with-extra-ld-options Specify additional options to link LLVM with
   1424   --with-ocaml-libdir     Specify install location for ocaml bindings (default
   1425                           is stdlib)
   1426   --with-clang-resource-dir
   1427                           Relative directory from the Clang binary for
   1428                           resource files
   1429   --with-c-include-dirs   Colon separated list of directories clang will
   1430                           search for headers
   1431   --with-gcc-toolchain    Directory where gcc is installed.
   1432   --with-binutils-include Specify path to binutils/include/ containing
   1433                           plugin-api.h file for gold plugin.
   1434   --with-bug-report-url   Specify the URL where bug reports should be
   1435                           submitted (default=http://llvm.org/bugs/)
   1436   --with-tclinclude       directory where tcl headers are
   1437   --with-udis86=<path>    Use udis86 external x86 disassembler library
   1438   --with-oprofile=<prefix>
   1439                           Tell OProfile >= 0.9.4 how to symbolize JIT output
   1440 
   1441 Some influential environment variables:
   1442   CC          C compiler command
   1443   CFLAGS      C compiler flags
   1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1445               nonstandard directory <lib dir>
   1446   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1447               you have headers in a nonstandard directory <include dir>
   1448   CXX         C++ compiler command
   1449   CXXFLAGS    C++ compiler flags
   1450   CPP         C preprocessor
   1451 
   1452 Use these variables to override the choices made by `configure' or to help
   1453 it to find libraries and programs with nonstandard names/locations.
   1454 
   1455 Report bugs to <bugs@yourdomain>.
   1456 _ACEOF
   1457 ac_status=$?
   1458 fi
   1459 
   1460 if test "$ac_init_help" = "recursive"; then
   1461   # If there are subdirs, report their specific --help.
   1462   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1463     test -d "$ac_dir" || continue
   1464     ac_builddir=.
   1465 
   1466 case "$ac_dir" in
   1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1468 *)
   1469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1470   # A ".." for each directory in $ac_dir_suffix.
   1471   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1472   case $ac_top_builddir_sub in
   1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1475   esac ;;
   1476 esac
   1477 ac_abs_top_builddir=$ac_pwd
   1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1479 # for backward compatibility:
   1480 ac_top_builddir=$ac_top_build_prefix
   1481 
   1482 case $srcdir in
   1483   .)  # We are building in place.
   1484     ac_srcdir=.
   1485     ac_top_srcdir=$ac_top_builddir_sub
   1486     ac_abs_top_srcdir=$ac_pwd ;;
   1487   [\\/]* | ?:[\\/]* )  # Absolute name.
   1488     ac_srcdir=$srcdir$ac_dir_suffix;
   1489     ac_top_srcdir=$srcdir
   1490     ac_abs_top_srcdir=$srcdir ;;
   1491   *) # Relative name.
   1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1495 esac
   1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1497 
   1498     cd "$ac_dir" || { ac_status=$?; continue; }
   1499     # Check for guested configure.
   1500     if test -f "$ac_srcdir/configure.gnu"; then
   1501       echo &&
   1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1503     elif test -f "$ac_srcdir/configure"; then
   1504       echo &&
   1505       $SHELL "$ac_srcdir/configure" --help=recursive
   1506     else
   1507       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1508     fi || ac_status=$?
   1509     cd "$ac_pwd" || { ac_status=$?; break; }
   1510   done
   1511 fi
   1512 
   1513 test -n "$ac_init_help" && exit $ac_status
   1514 if $ac_init_version; then
   1515   cat <<\_ACEOF
   1516 [SAMPLE] configure [x.xx]
   1517 generated by GNU Autoconf 2.60
   1518 
   1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1521 This configure script is free software; the Free Software Foundation
   1522 gives unlimited permission to copy, distribute and modify it.
   1523 _ACEOF
   1524   exit
   1525 fi
   1526 cat >config.log <<_ACEOF
   1527 This file contains any messages produced by compilers while
   1528 running configure, to aid debugging if configure makes a mistake.
   1529 
   1530 It was created by [SAMPLE] $as_me [x.xx], which was
   1531 generated by GNU Autoconf 2.60.  Invocation command line was
   1532 
   1533   $ $0 $@
   1534 
   1535 _ACEOF
   1536 exec 5>>config.log
   1537 {
   1538 cat <<_ASUNAME
   1539 ## --------- ##
   1540 ## Platform. ##
   1541 ## --------- ##
   1542 
   1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1548 
   1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1551 
   1552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1559 
   1560 _ASUNAME
   1561 
   1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1563 for as_dir in $PATH
   1564 do
   1565   IFS=$as_save_IFS
   1566   test -z "$as_dir" && as_dir=.
   1567   echo "PATH: $as_dir"
   1568 done
   1569 IFS=$as_save_IFS
   1570 
   1571 } >&5
   1572 
   1573 cat >&5 <<_ACEOF
   1574 
   1575 
   1576 ## ----------- ##
   1577 ## Core tests. ##
   1578 ## ----------- ##
   1579 
   1580 _ACEOF
   1581 
   1582 
   1583 # Keep a trace of the command line.
   1584 # Strip out --no-create and --no-recursion so they do not pile up.
   1585 # Strip out --silent because we don't want to record it for future runs.
   1586 # Also quote any args containing shell meta-characters.
   1587 # Make two passes to allow for proper duplicate-argument suppression.
   1588 ac_configure_args=
   1589 ac_configure_args0=
   1590 ac_configure_args1=
   1591 ac_must_keep_next=false
   1592 for ac_pass in 1 2
   1593 do
   1594   for ac_arg
   1595   do
   1596     case $ac_arg in
   1597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1599     | -silent | --silent | --silen | --sile | --sil)
   1600       continue ;;
   1601     *\'*)
   1602       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1603     esac
   1604     case $ac_pass in
   1605     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1606     2)
   1607       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1608       if test $ac_must_keep_next = true; then
   1609 	ac_must_keep_next=false # Got value, back to normal.
   1610       else
   1611 	case $ac_arg in
   1612 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1613 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1614 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1615 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1616 	    case "$ac_configure_args0 " in
   1617 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1618 	    esac
   1619 	    ;;
   1620 	  -* ) ac_must_keep_next=true ;;
   1621 	esac
   1622       fi
   1623       ac_configure_args="$ac_configure_args '$ac_arg'"
   1624       ;;
   1625     esac
   1626   done
   1627 done
   1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1630 
   1631 # When interrupted or exit'd, cleanup temporary files, and complete
   1632 # config.log.  We remove comments because anyway the quotes in there
   1633 # would cause problems or look ugly.
   1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1636 trap 'exit_status=$?
   1637   # Save into config.log some information that might help in debugging.
   1638   {
   1639     echo
   1640 
   1641     cat <<\_ASBOX
   1642 ## ---------------- ##
   1643 ## Cache variables. ##
   1644 ## ---------------- ##
   1645 _ASBOX
   1646     echo
   1647     # The following way of writing the cache mishandles newlines in values,
   1648 (
   1649   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1650     eval ac_val=\$$ac_var
   1651     case $ac_val in #(
   1652     *${as_nl}*)
   1653       case $ac_var in #(
   1654       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1656       esac
   1657       case $ac_var in #(
   1658       _ | IFS | as_nl) ;; #(
   1659       *) $as_unset $ac_var ;;
   1660       esac ;;
   1661     esac
   1662   done
   1663   (set) 2>&1 |
   1664     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1665     *${as_nl}ac_space=\ *)
   1666       sed -n \
   1667 	"s/'\''/'\''\\\\'\'''\''/g;
   1668 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1669       ;; #(
   1670     *)
   1671       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1672       ;;
   1673     esac |
   1674     sort
   1675 )
   1676     echo
   1677 
   1678     cat <<\_ASBOX
   1679 ## ----------------- ##
   1680 ## Output variables. ##
   1681 ## ----------------- ##
   1682 _ASBOX
   1683     echo
   1684     for ac_var in $ac_subst_vars
   1685     do
   1686       eval ac_val=\$$ac_var
   1687       case $ac_val in
   1688       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1689       esac
   1690       echo "$ac_var='\''$ac_val'\''"
   1691     done | sort
   1692     echo
   1693 
   1694     if test -n "$ac_subst_files"; then
   1695       cat <<\_ASBOX
   1696 ## ------------------- ##
   1697 ## File substitutions. ##
   1698 ## ------------------- ##
   1699 _ASBOX
   1700       echo
   1701       for ac_var in $ac_subst_files
   1702       do
   1703 	eval ac_val=\$$ac_var
   1704 	case $ac_val in
   1705 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1706 	esac
   1707 	echo "$ac_var='\''$ac_val'\''"
   1708       done | sort
   1709       echo
   1710     fi
   1711 
   1712     if test -s confdefs.h; then
   1713       cat <<\_ASBOX
   1714 ## ----------- ##
   1715 ## confdefs.h. ##
   1716 ## ----------- ##
   1717 _ASBOX
   1718       echo
   1719       cat confdefs.h
   1720       echo
   1721     fi
   1722     test "$ac_signal" != 0 &&
   1723       echo "$as_me: caught signal $ac_signal"
   1724     echo "$as_me: exit $exit_status"
   1725   } >&5
   1726   rm -f core *.core core.conftest.* &&
   1727     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1728     exit $exit_status
   1729 ' 0
   1730 for ac_signal in 1 2 13 15; do
   1731   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1732 done
   1733 ac_signal=0
   1734 
   1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1736 rm -f -r conftest* confdefs.h
   1737 
   1738 # Predefined preprocessor variables.
   1739 
   1740 cat >>confdefs.h <<_ACEOF
   1741 #define PACKAGE_NAME "$PACKAGE_NAME"
   1742 _ACEOF
   1743 
   1744 
   1745 cat >>confdefs.h <<_ACEOF
   1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1747 _ACEOF
   1748 
   1749 
   1750 cat >>confdefs.h <<_ACEOF
   1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1752 _ACEOF
   1753 
   1754 
   1755 cat >>confdefs.h <<_ACEOF
   1756 #define PACKAGE_STRING "$PACKAGE_STRING"
   1757 _ACEOF
   1758 
   1759 
   1760 cat >>confdefs.h <<_ACEOF
   1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1762 _ACEOF
   1763 
   1764 
   1765 # Let the site file select an alternate cache file if it wants to.
   1766 # Prefer explicitly selected file to automatically selected ones.
   1767 if test -n "$CONFIG_SITE"; then
   1768   set x "$CONFIG_SITE"
   1769 elif test "x$prefix" != xNONE; then
   1770   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1771 else
   1772   set x "$ac_default_prefix/share/config.site" \
   1773 	"$ac_default_prefix/etc/config.site"
   1774 fi
   1775 shift
   1776 for ac_site_file
   1777 do
   1778   if test -r "$ac_site_file"; then
   1779     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1780 echo "$as_me: loading site script $ac_site_file" >&6;}
   1781     sed 's/^/| /' "$ac_site_file" >&5
   1782     . "$ac_site_file"
   1783   fi
   1784 done
   1785 
   1786 if test -r "$cache_file"; then
   1787   # Some versions of bash will fail to source /dev/null (special
   1788   # files actually), so we avoid doing that.
   1789   if test -f "$cache_file"; then
   1790     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1791 echo "$as_me: loading cache $cache_file" >&6;}
   1792     case $cache_file in
   1793       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1794       *)                      . "./$cache_file";;
   1795     esac
   1796   fi
   1797 else
   1798   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1799 echo "$as_me: creating cache $cache_file" >&6;}
   1800   >$cache_file
   1801 fi
   1802 
   1803 # Check that the precious variables saved in the cache have kept the same
   1804 # value.
   1805 ac_cache_corrupted=false
   1806 for ac_var in $ac_precious_vars; do
   1807   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1808   eval ac_new_set=\$ac_env_${ac_var}_set
   1809   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1810   eval ac_new_val=\$ac_env_${ac_var}_value
   1811   case $ac_old_set,$ac_new_set in
   1812     set,)
   1813       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1815       ac_cache_corrupted=: ;;
   1816     ,set)
   1817       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1819       ac_cache_corrupted=: ;;
   1820     ,);;
   1821     *)
   1822       if test "x$ac_old_val" != "x$ac_new_val"; then
   1823 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1825 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1826 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1827 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1828 echo "$as_me:   current value: $ac_new_val" >&2;}
   1829 	ac_cache_corrupted=:
   1830       fi;;
   1831   esac
   1832   # Pass precious variables to config.status.
   1833   if test "$ac_new_set" = set; then
   1834     case $ac_new_val in
   1835     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1836     *) ac_arg=$ac_var=$ac_new_val ;;
   1837     esac
   1838     case " $ac_configure_args " in
   1839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1840       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1841     esac
   1842   fi
   1843 done
   1844 if $ac_cache_corrupted; then
   1845   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1847   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1849    { (exit 1); exit 1; }; }
   1850 fi
   1851 
   1852 
   1853 
   1854 
   1855 
   1856 
   1857 
   1858 
   1859 
   1860 
   1861 
   1862 
   1863 
   1864 
   1865 
   1866 
   1867 
   1868 
   1869 
   1870 
   1871 
   1872 
   1873 
   1874 
   1875 
   1876 ac_ext=c
   1877 ac_cpp='$CPP $CPPFLAGS'
   1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1881 
   1882 
   1883 
   1884 LLVM_SRC_ROOT="../.."
   1885 LLVM_OBJ_ROOT="../.."
   1886 
   1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
   1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
   1889 
   1890 
   1891 # Check whether --with-llvmsrc was given.
   1892 if test "${with_llvmsrc+set}" = set; then
   1893   withval=$with_llvmsrc; llvm_src="$withval"
   1894 else
   1895   llvm_src="$LLVM_ABS_SRC_ROOT"
   1896 fi
   1897 
   1898   LLVM_SRC=$llvm_src
   1899 
   1900 
   1901 # Check whether --with-llvmobj was given.
   1902 if test "${with_llvmobj+set}" = set; then
   1903   withval=$with_llvmobj; llvm_obj="$withval"
   1904 else
   1905   llvm_obj="$LLVM_ABS_OBJ_ROOT"
   1906 fi
   1907 
   1908   LLVM_OBJ=$llvm_obj
   1909 
   1910   ac_config_commands="$ac_config_commands setup"
   1911 
   1912 
   1913 
   1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
   1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
   1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
   1917 if ! test -f "$llvm_config_path" ; then
   1918    llvm_config_path="no"
   1919 fi
   1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
   1921 echo "${ECHO_T}$llvm_config_path" >&6; }
   1922 
   1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
   1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
   1925 if test "$llvm_config_path" != no ; then
   1926   llvm_package_version=`$llvm_config_path --version`
   1927 else
   1928   llvm_package_version="unknown";
   1929 fi
   1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
   1931 echo "${ECHO_T}$llvm_package_version" >&6; }
   1932 LLVM_VERSION=$llvm_package_version
   1933 
   1934 
   1935 
   1936 
   1937 ac_aux_dir=
   1938 for ac_dir in autoconf "$srcdir"/autoconf; do
   1939   if test -f "$ac_dir/install-sh"; then
   1940     ac_aux_dir=$ac_dir
   1941     ac_install_sh="$ac_aux_dir/install-sh -c"
   1942     break
   1943   elif test -f "$ac_dir/install.sh"; then
   1944     ac_aux_dir=$ac_dir
   1945     ac_install_sh="$ac_aux_dir/install.sh -c"
   1946     break
   1947   elif test -f "$ac_dir/shtool"; then
   1948     ac_aux_dir=$ac_dir
   1949     ac_install_sh="$ac_aux_dir/shtool install -c"
   1950     break
   1951   fi
   1952 done
   1953 if test -z "$ac_aux_dir"; then
   1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
   1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
   1956    { (exit 1); exit 1; }; }
   1957 fi
   1958 
   1959 # These three variables are undocumented and unsupported,
   1960 # and are intended to be withdrawn in a future Autoconf release.
   1961 # They can cause serious problems if a builder's source tree is in a directory
   1962 # whose full name contains unusual characters.
   1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1966 
   1967 
   1968 
   1969 
   1970 ac_ext=c
   1971 ac_cpp='$CPP $CPPFLAGS'
   1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1975 if test -n "$ac_tool_prefix"; then
   1976   for ac_prog in clang llvm-gcc gcc
   1977   do
   1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1982 if test "${ac_cv_prog_CC+set}" = set; then
   1983   echo $ECHO_N "(cached) $ECHO_C" >&6
   1984 else
   1985   if test -n "$CC"; then
   1986   ac_cv_prog_CC="$CC" # Let the user override the test.
   1987 else
   1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1989 for as_dir in $PATH
   1990 do
   1991   IFS=$as_save_IFS
   1992   test -z "$as_dir" && as_dir=.
   1993   for ac_exec_ext in '' $ac_executable_extensions; do
   1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1997     break 2
   1998   fi
   1999 done
   2000 done
   2001 IFS=$as_save_IFS
   2002 
   2003 fi
   2004 fi
   2005 CC=$ac_cv_prog_CC
   2006 if test -n "$CC"; then
   2007   { echo "$as_me:$LINENO: result: $CC" >&5
   2008 echo "${ECHO_T}$CC" >&6; }
   2009 else
   2010   { echo "$as_me:$LINENO: result: no" >&5
   2011 echo "${ECHO_T}no" >&6; }
   2012 fi
   2013 
   2014 
   2015     test -n "$CC" && break
   2016   done
   2017 fi
   2018 if test -z "$CC"; then
   2019   ac_ct_CC=$CC
   2020   for ac_prog in clang llvm-gcc gcc
   2021 do
   2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2023 set dummy $ac_prog; ac_word=$2
   2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2027   echo $ECHO_N "(cached) $ECHO_C" >&6
   2028 else
   2029   if test -n "$ac_ct_CC"; then
   2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2031 else
   2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2033 for as_dir in $PATH
   2034 do
   2035   IFS=$as_save_IFS
   2036   test -z "$as_dir" && as_dir=.
   2037   for ac_exec_ext in '' $ac_executable_extensions; do
   2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2039     ac_cv_prog_ac_ct_CC="$ac_prog"
   2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2041     break 2
   2042   fi
   2043 done
   2044 done
   2045 IFS=$as_save_IFS
   2046 
   2047 fi
   2048 fi
   2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2050 if test -n "$ac_ct_CC"; then
   2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2053 else
   2054   { echo "$as_me:$LINENO: result: no" >&5
   2055 echo "${ECHO_T}no" >&6; }
   2056 fi
   2057 
   2058 
   2059   test -n "$ac_ct_CC" && break
   2060 done
   2061 
   2062   if test "x$ac_ct_CC" = x; then
   2063     CC=""
   2064   else
   2065     case $cross_compiling:$ac_tool_warned in
   2066 yes:)
   2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2068 whose name does not start with the host triplet.  If you think this
   2069 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2071 whose name does not start with the host triplet.  If you think this
   2072 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2073 ac_tool_warned=yes ;;
   2074 esac
   2075     CC=$ac_ct_CC
   2076   fi
   2077 fi
   2078 
   2079 
   2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2081 See \`config.log' for more details." >&5
   2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2083 See \`config.log' for more details." >&2;}
   2084    { (exit 1); exit 1; }; }
   2085 
   2086 # Provide some information about the compiler.
   2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2088 ac_compiler=`set X $ac_compile; echo $2`
   2089 { (ac_try="$ac_compiler --version >&5"
   2090 case "(($ac_try" in
   2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2092   *) ac_try_echo=$ac_try;;
   2093 esac
   2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2095   (eval "$ac_compiler --version >&5") 2>&5
   2096   ac_status=$?
   2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2098   (exit $ac_status); }
   2099 { (ac_try="$ac_compiler -v >&5"
   2100 case "(($ac_try" in
   2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2102   *) ac_try_echo=$ac_try;;
   2103 esac
   2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2105   (eval "$ac_compiler -v >&5") 2>&5
   2106   ac_status=$?
   2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2108   (exit $ac_status); }
   2109 { (ac_try="$ac_compiler -V >&5"
   2110 case "(($ac_try" in
   2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2112   *) ac_try_echo=$ac_try;;
   2113 esac
   2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2115   (eval "$ac_compiler -V >&5") 2>&5
   2116   ac_status=$?
   2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2118   (exit $ac_status); }
   2119 
   2120 cat >conftest.$ac_ext <<_ACEOF
   2121 /* confdefs.h.  */
   2122 _ACEOF
   2123 cat confdefs.h >>conftest.$ac_ext
   2124 cat >>conftest.$ac_ext <<_ACEOF
   2125 /* end confdefs.h.  */
   2126 
   2127 int
   2128 main ()
   2129 {
   2130 
   2131   ;
   2132   return 0;
   2133 }
   2134 _ACEOF
   2135 ac_clean_files_save=$ac_clean_files
   2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2137 # Try to create an executable without -o first, disregard a.out.
   2138 # It will help us diagnose broken compilers, and finding out an intuition
   2139 # of exeext.
   2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2143 #
   2144 # List of possible output files, starting from the most likely.
   2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2146 # only as a last resort.  b.out is created by i960 compilers.
   2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2148 #
   2149 # The IRIX 6 linker writes into existing files which may not be
   2150 # executable, retaining their permissions.  Remove them first so a
   2151 # subsequent execution test works.
   2152 ac_rmfiles=
   2153 for ac_file in $ac_files
   2154 do
   2155   case $ac_file in
   2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2158   esac
   2159 done
   2160 rm -f $ac_rmfiles
   2161 
   2162 if { (ac_try="$ac_link_default"
   2163 case "(($ac_try" in
   2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2165   *) ac_try_echo=$ac_try;;
   2166 esac
   2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2168   (eval "$ac_link_default") 2>&5
   2169   ac_status=$?
   2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2171   (exit $ac_status); }; then
   2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2175 # so that the user can short-circuit this test for compilers unknown to
   2176 # Autoconf.
   2177 for ac_file in $ac_files
   2178 do
   2179   test -f "$ac_file" || continue
   2180   case $ac_file in
   2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2182 	;;
   2183     [ab].out )
   2184 	# We found the default executable, but exeext='' is most
   2185 	# certainly right.
   2186 	break;;
   2187     *.* )
   2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2189 	then :; else
   2190 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2191 	fi
   2192 	# We set ac_cv_exeext here because the later test for it is not
   2193 	# safe: cross compilers may not add the suffix if given an `-o'
   2194 	# argument, so we may need to know it at that point already.
   2195 	# Even if this section looks crufty: it has the advantage of
   2196 	# actually working.
   2197 	break;;
   2198     * )
   2199 	break;;
   2200   esac
   2201 done
   2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2203 
   2204 else
   2205   echo "$as_me: failed program was:" >&5
   2206 sed 's/^/| /' conftest.$ac_ext >&5
   2207 
   2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2209 See \`config.log' for more details." >&5
   2210 echo "$as_me: error: C compiler cannot create executables
   2211 See \`config.log' for more details." >&2;}
   2212    { (exit 77); exit 77; }; }
   2213 fi
   2214 
   2215 ac_exeext=$ac_cv_exeext
   2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2217 echo "${ECHO_T}$ac_file" >&6; }
   2218 
   2219 # Check that the compiler produces executables we can run.  If not, either
   2220 # the compiler is broken, or we cross compile.
   2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   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 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2397   { (case "(($ac_try" in
   2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2399   *) ac_try_echo=$ac_try;;
   2400 esac
   2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2402   (eval "$ac_try") 2>&5
   2403   ac_status=$?
   2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2405   (exit $ac_status); }; } &&
   2406 	 { ac_try='test -s conftest.$ac_objext'
   2407   { (case "(($ac_try" in
   2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2409   *) ac_try_echo=$ac_try;;
   2410 esac
   2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2412   (eval "$ac_try") 2>&5
   2413   ac_status=$?
   2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2415   (exit $ac_status); }; }; then
   2416   ac_compiler_gnu=yes
   2417 else
   2418   echo "$as_me: failed program was:" >&5
   2419 sed 's/^/| /' conftest.$ac_ext >&5
   2420 
   2421 	ac_compiler_gnu=no
   2422 fi
   2423 
   2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2426 
   2427 fi
   2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2431 ac_test_CFLAGS=${CFLAGS+set}
   2432 ac_save_CFLAGS=$CFLAGS
   2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2435 if test "${ac_cv_prog_cc_g+set}" = set; then
   2436   echo $ECHO_N "(cached) $ECHO_C" >&6
   2437 else
   2438   ac_save_c_werror_flag=$ac_c_werror_flag
   2439    ac_c_werror_flag=yes
   2440    ac_cv_prog_cc_g=no
   2441    CFLAGS="-g"
   2442    cat >conftest.$ac_ext <<_ACEOF
   2443 /* confdefs.h.  */
   2444 _ACEOF
   2445 cat confdefs.h >>conftest.$ac_ext
   2446 cat >>conftest.$ac_ext <<_ACEOF
   2447 /* end confdefs.h.  */
   2448 
   2449 int
   2450 main ()
   2451 {
   2452 
   2453   ;
   2454   return 0;
   2455 }
   2456 _ACEOF
   2457 rm -f conftest.$ac_objext
   2458 if { (ac_try="$ac_compile"
   2459 case "(($ac_try" in
   2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2461   *) ac_try_echo=$ac_try;;
   2462 esac
   2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2464   (eval "$ac_compile") 2>conftest.er1
   2465   ac_status=$?
   2466   grep -v '^ *+' conftest.er1 >conftest.err
   2467   rm -f conftest.er1
   2468   cat conftest.err >&5
   2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2470   (exit $ac_status); } &&
   2471 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2472   { (case "(($ac_try" in
   2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2474   *) ac_try_echo=$ac_try;;
   2475 esac
   2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2477   (eval "$ac_try") 2>&5
   2478   ac_status=$?
   2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2480   (exit $ac_status); }; } &&
   2481 	 { ac_try='test -s conftest.$ac_objext'
   2482   { (case "(($ac_try" in
   2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2484   *) ac_try_echo=$ac_try;;
   2485 esac
   2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2487   (eval "$ac_try") 2>&5
   2488   ac_status=$?
   2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2490   (exit $ac_status); }; }; then
   2491   ac_cv_prog_cc_g=yes
   2492 else
   2493   echo "$as_me: failed program was:" >&5
   2494 sed 's/^/| /' conftest.$ac_ext >&5
   2495 
   2496 	CFLAGS=""
   2497       cat >conftest.$ac_ext <<_ACEOF
   2498 /* confdefs.h.  */
   2499 _ACEOF
   2500 cat confdefs.h >>conftest.$ac_ext
   2501 cat >>conftest.$ac_ext <<_ACEOF
   2502 /* end confdefs.h.  */
   2503 
   2504 int
   2505 main ()
   2506 {
   2507 
   2508   ;
   2509   return 0;
   2510 }
   2511 _ACEOF
   2512 rm -f conftest.$ac_objext
   2513 if { (ac_try="$ac_compile"
   2514 case "(($ac_try" in
   2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2516   *) ac_try_echo=$ac_try;;
   2517 esac
   2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2519   (eval "$ac_compile") 2>conftest.er1
   2520   ac_status=$?
   2521   grep -v '^ *+' conftest.er1 >conftest.err
   2522   rm -f conftest.er1
   2523   cat conftest.err >&5
   2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2525   (exit $ac_status); } &&
   2526 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2527   { (case "(($ac_try" in
   2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2529   *) ac_try_echo=$ac_try;;
   2530 esac
   2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2532   (eval "$ac_try") 2>&5
   2533   ac_status=$?
   2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2535   (exit $ac_status); }; } &&
   2536 	 { ac_try='test -s conftest.$ac_objext'
   2537   { (case "(($ac_try" in
   2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2539   *) ac_try_echo=$ac_try;;
   2540 esac
   2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2542   (eval "$ac_try") 2>&5
   2543   ac_status=$?
   2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2545   (exit $ac_status); }; }; then
   2546   :
   2547 else
   2548   echo "$as_me: failed program was:" >&5
   2549 sed 's/^/| /' conftest.$ac_ext >&5
   2550 
   2551 	ac_c_werror_flag=$ac_save_c_werror_flag
   2552 	 CFLAGS="-g"
   2553 	 cat >conftest.$ac_ext <<_ACEOF
   2554 /* confdefs.h.  */
   2555 _ACEOF
   2556 cat confdefs.h >>conftest.$ac_ext
   2557 cat >>conftest.$ac_ext <<_ACEOF
   2558 /* end confdefs.h.  */
   2559 
   2560 int
   2561 main ()
   2562 {
   2563 
   2564   ;
   2565   return 0;
   2566 }
   2567 _ACEOF
   2568 rm -f conftest.$ac_objext
   2569 if { (ac_try="$ac_compile"
   2570 case "(($ac_try" in
   2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2572   *) ac_try_echo=$ac_try;;
   2573 esac
   2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2575   (eval "$ac_compile") 2>conftest.er1
   2576   ac_status=$?
   2577   grep -v '^ *+' conftest.er1 >conftest.err
   2578   rm -f conftest.er1
   2579   cat conftest.err >&5
   2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2581   (exit $ac_status); } &&
   2582 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2583   { (case "(($ac_try" in
   2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2585   *) ac_try_echo=$ac_try;;
   2586 esac
   2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2588   (eval "$ac_try") 2>&5
   2589   ac_status=$?
   2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2591   (exit $ac_status); }; } &&
   2592 	 { ac_try='test -s conftest.$ac_objext'
   2593   { (case "(($ac_try" in
   2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2595   *) ac_try_echo=$ac_try;;
   2596 esac
   2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2598   (eval "$ac_try") 2>&5
   2599   ac_status=$?
   2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2601   (exit $ac_status); }; }; then
   2602   ac_cv_prog_cc_g=yes
   2603 else
   2604   echo "$as_me: failed program was:" >&5
   2605 sed 's/^/| /' conftest.$ac_ext >&5
   2606 
   2607 
   2608 fi
   2609 
   2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2611 fi
   2612 
   2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2614 fi
   2615 
   2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2617    ac_c_werror_flag=$ac_save_c_werror_flag
   2618 fi
   2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2621 if test "$ac_test_CFLAGS" = set; then
   2622   CFLAGS=$ac_save_CFLAGS
   2623 elif test $ac_cv_prog_cc_g = yes; then
   2624   if test "$GCC" = yes; then
   2625     CFLAGS="-g -O2"
   2626   else
   2627     CFLAGS="-g"
   2628   fi
   2629 else
   2630   if test "$GCC" = yes; then
   2631     CFLAGS="-O2"
   2632   else
   2633     CFLAGS=
   2634   fi
   2635 fi
   2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2639   echo $ECHO_N "(cached) $ECHO_C" >&6
   2640 else
   2641   ac_cv_prog_cc_c89=no
   2642 ac_save_CC=$CC
   2643 cat >conftest.$ac_ext <<_ACEOF
   2644 /* confdefs.h.  */
   2645 _ACEOF
   2646 cat confdefs.h >>conftest.$ac_ext
   2647 cat >>conftest.$ac_ext <<_ACEOF
   2648 /* end confdefs.h.  */
   2649 #include <stdarg.h>
   2650 #include <stdio.h>
   2651 #include <sys/types.h>
   2652 #include <sys/stat.h>
   2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2654 struct buf { int x; };
   2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2656 static char *e (p, i)
   2657      char **p;
   2658      int i;
   2659 {
   2660   return p[i];
   2661 }
   2662 static char *f (char * (*g) (char **, int), char **p, ...)
   2663 {
   2664   char *s;
   2665   va_list v;
   2666   va_start (v,p);
   2667   s = g (p, va_arg (v,int));
   2668   va_end (v);
   2669   return s;
   2670 }
   2671 
   2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2673    function prototypes and stuff, but not '\xHH' hex character constants.
   2674    These don't provoke an error unfortunately, instead are silently treated
   2675    as 'x'.  The following induces an error, until -std is added to get
   2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2677    array size at least.  It's necessary to write '\x00'==0 to get something
   2678    that's true only with -std.  */
   2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2680 
   2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2682    inside strings and character constants.  */
   2683 #define FOO(x) 'x'
   2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2685 
   2686 int test (int i, double x);
   2687 struct s1 {int (*f) (int a);};
   2688 struct s2 {int (*f) (double a);};
   2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2690 int argc;
   2691 char **argv;
   2692 int
   2693 main ()
   2694 {
   2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2696   ;
   2697   return 0;
   2698 }
   2699 _ACEOF
   2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2701 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2702 do
   2703   CC="$ac_save_CC $ac_arg"
   2704   rm -f conftest.$ac_objext
   2705 if { (ac_try="$ac_compile"
   2706 case "(($ac_try" in
   2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2708   *) ac_try_echo=$ac_try;;
   2709 esac
   2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2711   (eval "$ac_compile") 2>conftest.er1
   2712   ac_status=$?
   2713   grep -v '^ *+' conftest.er1 >conftest.err
   2714   rm -f conftest.er1
   2715   cat conftest.err >&5
   2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2717   (exit $ac_status); } &&
   2718 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   2719   { (case "(($ac_try" in
   2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2721   *) ac_try_echo=$ac_try;;
   2722 esac
   2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2724   (eval "$ac_try") 2>&5
   2725   ac_status=$?
   2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2727   (exit $ac_status); }; } &&
   2728 	 { ac_try='test -s conftest.$ac_objext'
   2729   { (case "(($ac_try" in
   2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2731   *) ac_try_echo=$ac_try;;
   2732 esac
   2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2734   (eval "$ac_try") 2>&5
   2735   ac_status=$?
   2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2737   (exit $ac_status); }; }; then
   2738   ac_cv_prog_cc_c89=$ac_arg
   2739 else
   2740   echo "$as_me: failed program was:" >&5
   2741 sed 's/^/| /' conftest.$ac_ext >&5
   2742 
   2743 
   2744 fi
   2745 
   2746 rm -f core conftest.err conftest.$ac_objext
   2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2748 done
   2749 rm -f conftest.$ac_ext
   2750 CC=$ac_save_CC
   2751 
   2752 fi
   2753 # AC_CACHE_VAL
   2754 case "x$ac_cv_prog_cc_c89" in
   2755   x)
   2756     { echo "$as_me:$LINENO: result: none needed" >&5
   2757 echo "${ECHO_T}none needed" >&6; } ;;
   2758   xno)
   2759     { echo "$as_me:$LINENO: result: unsupported" >&5
   2760 echo "${ECHO_T}unsupported" >&6; } ;;
   2761   *)
   2762     CC="$CC $ac_cv_prog_cc_c89"
   2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2765 esac
   2766 
   2767 
   2768 ac_ext=c
   2769 ac_cpp='$CPP $CPPFLAGS'
   2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2773 
   2774 ac_ext=cpp
   2775 ac_cpp='$CXXCPP $CPPFLAGS'
   2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2779 if test -z "$CXX"; then
   2780   if test -n "$CCC"; then
   2781     CXX=$CCC
   2782   else
   2783     if test -n "$ac_tool_prefix"; then
   2784   for ac_prog in clang++ llvm-g++ g++
   2785   do
   2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2790 if test "${ac_cv_prog_CXX+set}" = set; then
   2791   echo $ECHO_N "(cached) $ECHO_C" >&6
   2792 else
   2793   if test -n "$CXX"; then
   2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2795 else
   2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2797 for as_dir in $PATH
   2798 do
   2799   IFS=$as_save_IFS
   2800   test -z "$as_dir" && as_dir=.
   2801   for ac_exec_ext in '' $ac_executable_extensions; do
   2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2805     break 2
   2806   fi
   2807 done
   2808 done
   2809 IFS=$as_save_IFS
   2810 
   2811 fi
   2812 fi
   2813 CXX=$ac_cv_prog_CXX
   2814 if test -n "$CXX"; then
   2815   { echo "$as_me:$LINENO: result: $CXX" >&5
   2816 echo "${ECHO_T}$CXX" >&6; }
   2817 else
   2818   { echo "$as_me:$LINENO: result: no" >&5
   2819 echo "${ECHO_T}no" >&6; }
   2820 fi
   2821 
   2822 
   2823     test -n "$CXX" && break
   2824   done
   2825 fi
   2826 if test -z "$CXX"; then
   2827   ac_ct_CXX=$CXX
   2828   for ac_prog in clang++ llvm-g++ g++
   2829 do
   2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2831 set dummy $ac_prog; ac_word=$2
   2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2835   echo $ECHO_N "(cached) $ECHO_C" >&6
   2836 else
   2837   if test -n "$ac_ct_CXX"; then
   2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2839 else
   2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2841 for as_dir in $PATH
   2842 do
   2843   IFS=$as_save_IFS
   2844   test -z "$as_dir" && as_dir=.
   2845   for ac_exec_ext in '' $ac_executable_extensions; do
   2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2849     break 2
   2850   fi
   2851 done
   2852 done
   2853 IFS=$as_save_IFS
   2854 
   2855 fi
   2856 fi
   2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2858 if test -n "$ac_ct_CXX"; then
   2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   2861 else
   2862   { echo "$as_me:$LINENO: result: no" >&5
   2863 echo "${ECHO_T}no" >&6; }
   2864 fi
   2865 
   2866 
   2867   test -n "$ac_ct_CXX" && break
   2868 done
   2869 
   2870   if test "x$ac_ct_CXX" = x; then
   2871     CXX="g++"
   2872   else
   2873     case $cross_compiling:$ac_tool_warned in
   2874 yes:)
   2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2876 whose name does not start with the host triplet.  If you think this
   2877 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2879 whose name does not start with the host triplet.  If you think this
   2880 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2881 ac_tool_warned=yes ;;
   2882 esac
   2883     CXX=$ac_ct_CXX
   2884   fi
   2885 fi
   2886 
   2887   fi
   2888 fi
   2889 # Provide some information about the compiler.
   2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   2891 ac_compiler=`set X $ac_compile; echo $2`
   2892 { (ac_try="$ac_compiler --version >&5"
   2893 case "(($ac_try" in
   2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2895   *) ac_try_echo=$ac_try;;
   2896 esac
   2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2898   (eval "$ac_compiler --version >&5") 2>&5
   2899   ac_status=$?
   2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2901   (exit $ac_status); }
   2902 { (ac_try="$ac_compiler -v >&5"
   2903 case "(($ac_try" in
   2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2905   *) ac_try_echo=$ac_try;;
   2906 esac
   2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2908   (eval "$ac_compiler -v >&5") 2>&5
   2909   ac_status=$?
   2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2911   (exit $ac_status); }
   2912 { (ac_try="$ac_compiler -V >&5"
   2913 case "(($ac_try" in
   2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2915   *) ac_try_echo=$ac_try;;
   2916 esac
   2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2918   (eval "$ac_compiler -V >&5") 2>&5
   2919   ac_status=$?
   2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2921   (exit $ac_status); }
   2922 
   2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2926   echo $ECHO_N "(cached) $ECHO_C" >&6
   2927 else
   2928   cat >conftest.$ac_ext <<_ACEOF
   2929 /* confdefs.h.  */
   2930 _ACEOF
   2931 cat confdefs.h >>conftest.$ac_ext
   2932 cat >>conftest.$ac_ext <<_ACEOF
   2933 /* end confdefs.h.  */
   2934 
   2935 int
   2936 main ()
   2937 {
   2938 #ifndef __GNUC__
   2939        choke me
   2940 #endif
   2941 
   2942   ;
   2943   return 0;
   2944 }
   2945 _ACEOF
   2946 rm -f conftest.$ac_objext
   2947 if { (ac_try="$ac_compile"
   2948 case "(($ac_try" in
   2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2950   *) ac_try_echo=$ac_try;;
   2951 esac
   2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2953   (eval "$ac_compile") 2>conftest.er1
   2954   ac_status=$?
   2955   grep -v '^ *+' conftest.er1 >conftest.err
   2956   rm -f conftest.er1
   2957   cat conftest.err >&5
   2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2959   (exit $ac_status); } &&
   2960 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   2961   { (case "(($ac_try" in
   2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2963   *) ac_try_echo=$ac_try;;
   2964 esac
   2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2966   (eval "$ac_try") 2>&5
   2967   ac_status=$?
   2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2969   (exit $ac_status); }; } &&
   2970 	 { ac_try='test -s conftest.$ac_objext'
   2971   { (case "(($ac_try" in
   2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2973   *) ac_try_echo=$ac_try;;
   2974 esac
   2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2976   (eval "$ac_try") 2>&5
   2977   ac_status=$?
   2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2979   (exit $ac_status); }; }; then
   2980   ac_compiler_gnu=yes
   2981 else
   2982   echo "$as_me: failed program was:" >&5
   2983 sed 's/^/| /' conftest.$ac_ext >&5
   2984 
   2985 	ac_compiler_gnu=no
   2986 fi
   2987 
   2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2990 
   2991 fi
   2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2996 ac_save_CXXFLAGS=$CXXFLAGS
   2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
   3000   echo $ECHO_N "(cached) $ECHO_C" >&6
   3001 else
   3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3003    ac_cxx_werror_flag=yes
   3004    ac_cv_prog_cxx_g=no
   3005    CXXFLAGS="-g"
   3006    cat >conftest.$ac_ext <<_ACEOF
   3007 /* confdefs.h.  */
   3008 _ACEOF
   3009 cat confdefs.h >>conftest.$ac_ext
   3010 cat >>conftest.$ac_ext <<_ACEOF
   3011 /* end confdefs.h.  */
   3012 
   3013 int
   3014 main ()
   3015 {
   3016 
   3017   ;
   3018   return 0;
   3019 }
   3020 _ACEOF
   3021 rm -f conftest.$ac_objext
   3022 if { (ac_try="$ac_compile"
   3023 case "(($ac_try" in
   3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3025   *) ac_try_echo=$ac_try;;
   3026 esac
   3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3028   (eval "$ac_compile") 2>conftest.er1
   3029   ac_status=$?
   3030   grep -v '^ *+' conftest.er1 >conftest.err
   3031   rm -f conftest.er1
   3032   cat conftest.err >&5
   3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3034   (exit $ac_status); } &&
   3035 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3036   { (case "(($ac_try" in
   3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3038   *) ac_try_echo=$ac_try;;
   3039 esac
   3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3041   (eval "$ac_try") 2>&5
   3042   ac_status=$?
   3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3044   (exit $ac_status); }; } &&
   3045 	 { ac_try='test -s conftest.$ac_objext'
   3046   { (case "(($ac_try" in
   3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3048   *) ac_try_echo=$ac_try;;
   3049 esac
   3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3051   (eval "$ac_try") 2>&5
   3052   ac_status=$?
   3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3054   (exit $ac_status); }; }; then
   3055   ac_cv_prog_cxx_g=yes
   3056 else
   3057   echo "$as_me: failed program was:" >&5
   3058 sed 's/^/| /' conftest.$ac_ext >&5
   3059 
   3060 	CXXFLAGS=""
   3061       cat >conftest.$ac_ext <<_ACEOF
   3062 /* confdefs.h.  */
   3063 _ACEOF
   3064 cat confdefs.h >>conftest.$ac_ext
   3065 cat >>conftest.$ac_ext <<_ACEOF
   3066 /* end confdefs.h.  */
   3067 
   3068 int
   3069 main ()
   3070 {
   3071 
   3072   ;
   3073   return 0;
   3074 }
   3075 _ACEOF
   3076 rm -f conftest.$ac_objext
   3077 if { (ac_try="$ac_compile"
   3078 case "(($ac_try" in
   3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3080   *) ac_try_echo=$ac_try;;
   3081 esac
   3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3083   (eval "$ac_compile") 2>conftest.er1
   3084   ac_status=$?
   3085   grep -v '^ *+' conftest.er1 >conftest.err
   3086   rm -f conftest.er1
   3087   cat conftest.err >&5
   3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3089   (exit $ac_status); } &&
   3090 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3091   { (case "(($ac_try" in
   3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3093   *) ac_try_echo=$ac_try;;
   3094 esac
   3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3096   (eval "$ac_try") 2>&5
   3097   ac_status=$?
   3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3099   (exit $ac_status); }; } &&
   3100 	 { ac_try='test -s conftest.$ac_objext'
   3101   { (case "(($ac_try" in
   3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3103   *) ac_try_echo=$ac_try;;
   3104 esac
   3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3106   (eval "$ac_try") 2>&5
   3107   ac_status=$?
   3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3109   (exit $ac_status); }; }; then
   3110   :
   3111 else
   3112   echo "$as_me: failed program was:" >&5
   3113 sed 's/^/| /' conftest.$ac_ext >&5
   3114 
   3115 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3116 	 CXXFLAGS="-g"
   3117 	 cat >conftest.$ac_ext <<_ACEOF
   3118 /* confdefs.h.  */
   3119 _ACEOF
   3120 cat confdefs.h >>conftest.$ac_ext
   3121 cat >>conftest.$ac_ext <<_ACEOF
   3122 /* end confdefs.h.  */
   3123 
   3124 int
   3125 main ()
   3126 {
   3127 
   3128   ;
   3129   return 0;
   3130 }
   3131 _ACEOF
   3132 rm -f conftest.$ac_objext
   3133 if { (ac_try="$ac_compile"
   3134 case "(($ac_try" in
   3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3136   *) ac_try_echo=$ac_try;;
   3137 esac
   3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3139   (eval "$ac_compile") 2>conftest.er1
   3140   ac_status=$?
   3141   grep -v '^ *+' conftest.er1 >conftest.err
   3142   rm -f conftest.er1
   3143   cat conftest.err >&5
   3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3145   (exit $ac_status); } &&
   3146 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
   3147   { (case "(($ac_try" in
   3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3149   *) ac_try_echo=$ac_try;;
   3150 esac
   3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3152   (eval "$ac_try") 2>&5
   3153   ac_status=$?
   3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3155   (exit $ac_status); }; } &&
   3156 	 { ac_try='test -s conftest.$ac_objext'
   3157   { (case "(($ac_try" in
   3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3159   *) ac_try_echo=$ac_try;;
   3160 esac
   3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3162   (eval "$ac_try") 2>&5
   3163   ac_status=$?
   3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3165   (exit $ac_status); }; }; then
   3166   ac_cv_prog_cxx_g=yes
   3167 else
   3168   echo "$as_me: failed program was:" >&5
   3169 sed 's/^/| /' conftest.$ac_ext >&5
   3170 
   3171 
   3172 fi
   3173 
   3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3175 fi
   3176 
   3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3178 fi
   3179 
   3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3182 fi
   3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3185 if test "$ac_test_CXXFLAGS" = set; then
   3186   CXXFLAGS=$ac_save_CXXFLAGS
   3187 elif test $ac_cv_prog_cxx_g = yes; then
   3188   if test "$GXX" = yes; then
   3189     CXXFLAGS="-g -O2"
   3190   else
   3191     CXXFLAGS="-g"
   3192   fi
   3193 else
   3194   if test "$GXX" = yes; then
   3195     CXXFLAGS="-O2"
   3196   else
   3197     CXXFLAGS=
   3198   fi
   3199 fi
   3200 ac_ext=c
   3201 ac_cpp='$CPP $CPPFLAGS'
   3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3205 
   3206 ac_ext=c
   3207 ac_cpp='$CPP $CPPFLAGS'
   3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3213 # On Suns, sometimes $CPP names a directory.
   3214 if test -n "$CPP" && test -d "$CPP"; then
   3215   CPP=
   3216 fi
   3217 if test -z "$CPP"; then
   3218   if test "${ac_cv_prog_CPP+set}" = set; then
   3219   echo $ECHO_N "(cached) $ECHO_C" >&6
   3220 else
   3221       # Double quotes because CPP needs to be expanded
   3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3223     do
   3224       ac_preproc_ok=false
   3225 for ac_c_preproc_warn_flag in '' yes
   3226 do
   3227   # Use a header file that comes with gcc, so configuring glibc
   3228   # with a fresh cross-compiler works.
   3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3230   # <limits.h> exists even on freestanding compilers.
   3231   # On the NeXT, cc -E runs the code through the compiler's parser,
   3232   # not just through cpp. "Syntax error" is here to catch this case.
   3233   cat >conftest.$ac_ext <<_ACEOF
   3234 /* confdefs.h.  */
   3235 _ACEOF
   3236 cat confdefs.h >>conftest.$ac_ext
   3237 cat >>conftest.$ac_ext <<_ACEOF
   3238 /* end confdefs.h.  */
   3239 #ifdef __STDC__
   3240 # include <limits.h>
   3241 #else
   3242 # include <assert.h>
   3243 #endif
   3244 		     Syntax error
   3245 _ACEOF
   3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3247 case "(($ac_try" in
   3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3249   *) ac_try_echo=$ac_try;;
   3250 esac
   3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3253   ac_status=$?
   3254   grep -v '^ *+' conftest.er1 >conftest.err
   3255   rm -f conftest.er1
   3256   cat conftest.err >&5
   3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3258   (exit $ac_status); } >/dev/null; then
   3259   if test -s conftest.err; then
   3260     ac_cpp_err=$ac_c_preproc_warn_flag
   3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3262   else
   3263     ac_cpp_err=
   3264   fi
   3265 else
   3266   ac_cpp_err=yes
   3267 fi
   3268 if test -z "$ac_cpp_err"; then
   3269   :
   3270 else
   3271   echo "$as_me: failed program was:" >&5
   3272 sed 's/^/| /' conftest.$ac_ext >&5
   3273 
   3274   # Broken: fails on valid input.
   3275 continue
   3276 fi
   3277 
   3278 rm -f conftest.err conftest.$ac_ext
   3279 
   3280   # OK, works on sane cases.  Now check whether nonexistent headers
   3281   # can be detected and how.
   3282   cat >conftest.$ac_ext <<_ACEOF
   3283 /* confdefs.h.  */
   3284 _ACEOF
   3285 cat confdefs.h >>conftest.$ac_ext
   3286 cat >>conftest.$ac_ext <<_ACEOF
   3287 /* end confdefs.h.  */
   3288 #include <ac_nonexistent.h>
   3289 _ACEOF
   3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3291 case "(($ac_try" in
   3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3293   *) ac_try_echo=$ac_try;;
   3294 esac
   3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3297   ac_status=$?
   3298   grep -v '^ *+' conftest.er1 >conftest.err
   3299   rm -f conftest.er1
   3300   cat conftest.err >&5
   3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3302   (exit $ac_status); } >/dev/null; then
   3303   if test -s conftest.err; then
   3304     ac_cpp_err=$ac_c_preproc_warn_flag
   3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3306   else
   3307     ac_cpp_err=
   3308   fi
   3309 else
   3310   ac_cpp_err=yes
   3311 fi
   3312 if test -z "$ac_cpp_err"; then
   3313   # Broken: success on invalid input.
   3314 continue
   3315 else
   3316   echo "$as_me: failed program was:" >&5
   3317 sed 's/^/| /' conftest.$ac_ext >&5
   3318 
   3319   # Passes both tests.
   3320 ac_preproc_ok=:
   3321 break
   3322 fi
   3323 
   3324 rm -f conftest.err conftest.$ac_ext
   3325 
   3326 done
   3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3328 rm -f conftest.err conftest.$ac_ext
   3329 if $ac_preproc_ok; then
   3330   break
   3331 fi
   3332 
   3333     done
   3334     ac_cv_prog_CPP=$CPP
   3335 
   3336 fi
   3337   CPP=$ac_cv_prog_CPP
   3338 else
   3339   ac_cv_prog_CPP=$CPP
   3340 fi
   3341 { echo "$as_me:$LINENO: result: $CPP" >&5
   3342 echo "${ECHO_T}$CPP" >&6; }
   3343 ac_preproc_ok=false
   3344 for ac_c_preproc_warn_flag in '' yes
   3345 do
   3346   # Use a header file that comes with gcc, so configuring glibc
   3347   # with a fresh cross-compiler works.
   3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3349   # <limits.h> exists even on freestanding compilers.
   3350   # On the NeXT, cc -E runs the code through the compiler's parser,
   3351   # not just through cpp. "Syntax error" is here to catch this case.
   3352   cat >conftest.$ac_ext <<_ACEOF
   3353 /* confdefs.h.  */
   3354 _ACEOF
   3355 cat confdefs.h >>conftest.$ac_ext
   3356 cat >>conftest.$ac_ext <<_ACEOF
   3357 /* end confdefs.h.  */
   3358 #ifdef __STDC__
   3359 # include <limits.h>
   3360 #else
   3361 # include <assert.h>
   3362 #endif
   3363 		     Syntax error
   3364 _ACEOF
   3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3366 case "(($ac_try" in
   3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3368   *) ac_try_echo=$ac_try;;
   3369 esac
   3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3372   ac_status=$?
   3373   grep -v '^ *+' conftest.er1 >conftest.err
   3374   rm -f conftest.er1
   3375   cat conftest.err >&5
   3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3377   (exit $ac_status); } >/dev/null; then
   3378   if test -s conftest.err; then
   3379     ac_cpp_err=$ac_c_preproc_warn_flag
   3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3381   else
   3382     ac_cpp_err=
   3383   fi
   3384 else
   3385   ac_cpp_err=yes
   3386 fi
   3387 if test -z "$ac_cpp_err"; then
   3388   :
   3389 else
   3390   echo "$as_me: failed program was:" >&5
   3391 sed 's/^/| /' conftest.$ac_ext >&5
   3392 
   3393   # Broken: fails on valid input.
   3394 continue
   3395 fi
   3396 
   3397 rm -f conftest.err conftest.$ac_ext
   3398 
   3399   # OK, works on sane cases.  Now check whether nonexistent headers
   3400   # can be detected and how.
   3401   cat >conftest.$ac_ext <<_ACEOF
   3402 /* confdefs.h.  */
   3403 _ACEOF
   3404 cat confdefs.h >>conftest.$ac_ext
   3405 cat >>conftest.$ac_ext <<_ACEOF
   3406 /* end confdefs.h.  */
   3407 #include <ac_nonexistent.h>
   3408 _ACEOF
   3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3410 case "(($ac_try" in
   3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3412   *) ac_try_echo=$ac_try;;
   3413 esac
   3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3416   ac_status=$?
   3417   grep -v '^ *+' conftest.er1 >conftest.err
   3418   rm -f conftest.er1
   3419   cat conftest.err >&5
   3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3421   (exit $ac_status); } >/dev/null; then
   3422   if test -s conftest.err; then
   3423     ac_cpp_err=$ac_c_preproc_warn_flag
   3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3425   else
   3426     ac_cpp_err=
   3427   fi
   3428 else
   3429   ac_cpp_err=yes
   3430 fi
   3431 if test -z "$ac_cpp_err"; then
   3432   # Broken: success on invalid input.
   3433 continue
   3434 else
   3435   echo "$as_me: failed program was:" >&5
   3436 sed 's/^/| /' conftest.$ac_ext >&5
   3437 
   3438   # Passes both tests.
   3439 ac_preproc_ok=:
   3440 break
   3441 fi
   3442 
   3443 rm -f conftest.err conftest.$ac_ext
   3444 
   3445 done
   3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3447 rm -f conftest.err conftest.$ac_ext
   3448 if $ac_preproc_ok; then
   3449   :
   3450 else
   3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3452 See \`config.log' for more details." >&5
   3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3454 See \`config.log' for more details." >&2;}
   3455    { (exit 1); exit 1; }; }
   3456 fi
   3457 
   3458 ac_ext=c
   3459 ac_cpp='$CPP $CPPFLAGS'
   3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3463 
   3464 
   3465 
   3466 
   3467 # Check whether --enable-polly was given.
   3468 if test "${enable_polly+set}" = set; then
   3469   enableval=$enable_polly;
   3470 else
   3471   enableval=default
   3472 fi
   3473 
   3474 case "$enableval" in
   3475   yes) ENABLE_POLLY=1
   3476  ;;
   3477   no)  ENABLE_POLLY=0
   3478  ;;
   3479   default) ENABLE_POLLY=1
   3480  ;;
   3481   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
   3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
   3483    { (exit 1); exit 1; }; } ;;
   3484 esac
   3485 
   3486 
   3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
   3488   LLVM_HAS_POLLY=1
   3489 
   3490   subdirs="$subdirs tools/polly"
   3491 
   3492 fi
   3493 
   3494 
   3495 # Make sure we can run config.sub.
   3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3497   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3499    { (exit 1); exit 1; }; }
   3500 
   3501 { echo "$as_me:$LINENO: checking build system type" >&5
   3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3503 if test "${ac_cv_build+set}" = set; then
   3504   echo $ECHO_N "(cached) $ECHO_C" >&6
   3505 else
   3506   ac_build_alias=$build_alias
   3507 test "x$ac_build_alias" = x &&
   3508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3509 test "x$ac_build_alias" = x &&
   3510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3512    { (exit 1); exit 1; }; }
   3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3514   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3516    { (exit 1); exit 1; }; }
   3517 
   3518 fi
   3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3520 echo "${ECHO_T}$ac_cv_build" >&6; }
   3521 case $ac_cv_build in
   3522 *-*-*) ;;
   3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3524 echo "$as_me: error: invalid value of canonical build" >&2;}
   3525    { (exit 1); exit 1; }; };;
   3526 esac
   3527 build=$ac_cv_build
   3528 ac_save_IFS=$IFS; IFS='-'
   3529 set x $ac_cv_build
   3530 shift
   3531 build_cpu=$1
   3532 build_vendor=$2
   3533 shift; shift
   3534 # Remember, the first character of IFS is used to create $*,
   3535 # except with old shells:
   3536 build_os=$*
   3537 IFS=$ac_save_IFS
   3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3539 
   3540 
   3541 { echo "$as_me:$LINENO: checking host system type" >&5
   3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3543 if test "${ac_cv_host+set}" = set; then
   3544   echo $ECHO_N "(cached) $ECHO_C" >&6
   3545 else
   3546   if test "x$host_alias" = x; then
   3547   ac_cv_host=$ac_cv_build
   3548 else
   3549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3550     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3552    { (exit 1); exit 1; }; }
   3553 fi
   3554 
   3555 fi
   3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3557 echo "${ECHO_T}$ac_cv_host" >&6; }
   3558 case $ac_cv_host in
   3559 *-*-*) ;;
   3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3561 echo "$as_me: error: invalid value of canonical host" >&2;}
   3562    { (exit 1); exit 1; }; };;
   3563 esac
   3564 host=$ac_cv_host
   3565 ac_save_IFS=$IFS; IFS='-'
   3566 set x $ac_cv_host
   3567 shift
   3568 host_cpu=$1
   3569 host_vendor=$2
   3570 shift; shift
   3571 # Remember, the first character of IFS is used to create $*,
   3572 # except with old shells:
   3573 host_os=$*
   3574 IFS=$ac_save_IFS
   3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3576 
   3577 
   3578 { echo "$as_me:$LINENO: checking target system type" >&5
   3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   3580 if test "${ac_cv_target+set}" = set; then
   3581   echo $ECHO_N "(cached) $ECHO_C" >&6
   3582 else
   3583   if test "x$target_alias" = x; then
   3584   ac_cv_target=$ac_cv_host
   3585 else
   3586   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3587     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   3589    { (exit 1); exit 1; }; }
   3590 fi
   3591 
   3592 fi
   3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   3594 echo "${ECHO_T}$ac_cv_target" >&6; }
   3595 case $ac_cv_target in
   3596 *-*-*) ;;
   3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   3598 echo "$as_me: error: invalid value of canonical target" >&2;}
   3599    { (exit 1); exit 1; }; };;
   3600 esac
   3601 target=$ac_cv_target
   3602 ac_save_IFS=$IFS; IFS='-'
   3603 set x $ac_cv_target
   3604 shift
   3605 target_cpu=$1
   3606 target_vendor=$2
   3607 shift; shift
   3608 # Remember, the first character of IFS is used to create $*,
   3609 # except with old shells:
   3610 target_os=$*
   3611 IFS=$ac_save_IFS
   3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3613 
   3614 
   3615 # The aliases save the names the user supplied, while $host etc.
   3616 # will get canonicalized.
   3617 test -n "$target_alias" &&
   3618   test "$program_prefix$program_suffix$program_transform_name" = \
   3619     NONENONEs,x,x, &&
   3620   program_prefix=${target_alias}-
   3621 
   3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
   3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
   3624 if test "${llvm_cv_os_type+set}" = set; then
   3625   echo $ECHO_N "(cached) $ECHO_C" >&6
   3626 else
   3627   case $host in
   3628   *-*-aix*)
   3629     llvm_cv_link_all_option="-Wl,--whole-archive"
   3630     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3631     llvm_cv_os_type="AIX"
   3632     llvm_cv_platform_type="Unix" ;;
   3633   *-*-irix*)
   3634     llvm_cv_link_all_option="-Wl,--whole-archive"
   3635     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3636     llvm_cv_os_type="IRIX"
   3637     llvm_cv_platform_type="Unix" ;;
   3638   *-*-cygwin*)
   3639     llvm_cv_link_all_option="-Wl,--whole-archive"
   3640     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3641     llvm_cv_os_type="Cygwin"
   3642     llvm_cv_platform_type="Unix" ;;
   3643   *-*-darwin*)
   3644     llvm_cv_link_all_option="-Wl,-all_load"
   3645     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3646     llvm_cv_os_type="Darwin"
   3647     llvm_cv_platform_type="Unix" ;;
   3648   *-*-minix*)
   3649     llvm_cv_link_all_option="-Wl,-all_load"
   3650     llvm_cv_no_link_all_option="-Wl,-noall_load"
   3651     llvm_cv_os_type="Minix"
   3652     llvm_cv_platform_type="Unix" ;;
   3653   *-*-freebsd* | *-*-kfreebsd-gnu)
   3654     llvm_cv_link_all_option="-Wl,--whole-archive"
   3655     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3656     llvm_cv_os_type="FreeBSD"
   3657     llvm_cv_platform_type="Unix" ;;
   3658   *-*-openbsd*)
   3659     llvm_cv_link_all_option="-Wl,--whole-archive"
   3660     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3661     llvm_cv_os_type="OpenBSD"
   3662     llvm_cv_platform_type="Unix" ;;
   3663   *-*-netbsd*)
   3664     llvm_cv_link_all_option="-Wl,--whole-archive"
   3665     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3666     llvm_cv_os_type="NetBSD"
   3667     llvm_cv_platform_type="Unix" ;;
   3668   *-*-dragonfly*)
   3669     llvm_cv_link_all_option="-Wl,--whole-archive"
   3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3671     llvm_cv_os_type="DragonFly"
   3672     llvm_cv_platform_type="Unix" ;;
   3673   *-*-hpux*)
   3674     llvm_cv_link_all_option="-Wl,--whole-archive"
   3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3676     llvm_cv_os_type="HP-UX"
   3677     llvm_cv_platform_type="Unix" ;;
   3678   *-*-interix*)
   3679     llvm_cv_link_all_option="-Wl,--whole-archive"
   3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3681     llvm_cv_os_type="Interix"
   3682     llvm_cv_platform_type="Unix" ;;
   3683   *-*-linux*)
   3684     llvm_cv_link_all_option="-Wl,--whole-archive"
   3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3686     llvm_cv_os_type="Linux"
   3687     llvm_cv_platform_type="Unix" ;;
   3688   *-*-gnu*)
   3689     llvm_cv_link_all_option="-Wl,--whole-archive"
   3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3691     llvm_cv_os_type="GNU"
   3692     llvm_cv_platform_type="Unix" ;;
   3693   *-*-solaris*)
   3694     llvm_cv_link_all_option="-Wl,-z,allextract"
   3695     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
   3696     llvm_cv_os_type="SunOS"
   3697     llvm_cv_platform_type="Unix" ;;
   3698   *-*-auroraux*)
   3699     llvm_cv_link_all_option="-Wl,-z,allextract"
   3700     llvm_cv_link_all_option="-Wl,-z,defaultextract"
   3701     llvm_cv_os_type="AuroraUX"
   3702     llvm_cv_platform_type="Unix" ;;
   3703   *-*-win32*)
   3704     llvm_cv_link_all_option="-Wl,--whole-archive"
   3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3706     llvm_cv_os_type="Win32"
   3707     llvm_cv_platform_type="Win32" ;;
   3708   *-*-mingw*)
   3709     llvm_cv_link_all_option="-Wl,--whole-archive"
   3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3711     llvm_cv_os_type="MingW"
   3712     llvm_cv_platform_type="Win32" ;;
   3713   *-*-haiku*)
   3714     llvm_cv_link_all_option="-Wl,--whole-archive"
   3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3716     llvm_cv_os_type="Haiku"
   3717     llvm_cv_platform_type="Unix" ;;
   3718   *-unknown-eabi*)
   3719     llvm_cv_link_all_option="-Wl,--whole-archive"
   3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3721     llvm_cv_os_type="Freestanding"
   3722     llvm_cv_platform_type="Unix" ;;
   3723   *-unknown-elf*)
   3724     llvm_cv_link_all_option="-Wl,--whole-archive"
   3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
   3726     llvm_cv_os_type="Freestanding"
   3727     llvm_cv_platform_type="Unix" ;;
   3728   *)
   3729     llvm_cv_link_all_option=""
   3730     llvm_cv_no_link_all_option=""
   3731     llvm_cv_os_type="Unknown"
   3732     llvm_cv_platform_type="Unknown" ;;
   3733 esac
   3734 fi
   3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
   3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
   3737 
   3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
   3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
   3740 if test "${llvm_cv_target_os_type+set}" = set; then
   3741   echo $ECHO_N "(cached) $ECHO_C" >&6
   3742 else
   3743   case $target in
   3744   *-*-aix*)
   3745     llvm_cv_target_os_type="AIX" ;;
   3746   *-*-irix*)
   3747     llvm_cv_target_os_type="IRIX" ;;
   3748   *-*-cygwin*)
   3749     llvm_cv_target_os_type="Cygwin" ;;
   3750   *-*-darwin*)
   3751     llvm_cv_target_os_type="Darwin" ;;
   3752   *-*-minix*)
   3753     llvm_cv_target_os_type="Minix" ;;
   3754   *-*-freebsd* | *-*-kfreebsd-gnu)
   3755     llvm_cv_target_os_type="FreeBSD" ;;
   3756   *-*-openbsd*)
   3757     llvm_cv_target_os_type="OpenBSD" ;;
   3758   *-*-netbsd*)
   3759     llvm_cv_target_os_type="NetBSD" ;;
   3760   *-*-dragonfly*)
   3761     llvm_cv_target_os_type="DragonFly" ;;
   3762   *-*-hpux*)
   3763     llvm_cv_target_os_type="HP-UX" ;;
   3764   *-*-interix*)
   3765     llvm_cv_target_os_type="Interix" ;;
   3766   *-*-linux*)
   3767     llvm_cv_target_os_type="Linux" ;;
   3768   *-*-gnu*)
   3769     llvm_cv_target_os_type="GNU" ;;
   3770   *-*-solaris*)
   3771     llvm_cv_target_os_type="SunOS" ;;
   3772   *-*-auroraux*)
   3773     llvm_cv_target_os_type="AuroraUX" ;;
   3774   *-*-win32*)
   3775     llvm_cv_target_os_type="Win32" ;;
   3776   *-*-mingw*)
   3777     llvm_cv_target_os_type="MingW" ;;
   3778   *-*-haiku*)
   3779     llvm_cv_target_os_type="Haiku" ;;
   3780   *-*-rtems*)
   3781     llvm_cv_target_os_type="RTEMS" ;;
   3782   *-*-nacl*)
   3783     llvm_cv_target_os_type="NativeClient" ;;
   3784   *-unknown-eabi*)
   3785     llvm_cv_target_os_type="Freestanding" ;;
   3786   *)
   3787     llvm_cv_target_os_type="Unknown" ;;
   3788 esac
   3789 fi
   3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
   3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
   3792 
   3793 if test "$llvm_cv_os_type" = "Unknown" ; then
   3794   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
   3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
   3796    { (exit 1); exit 1; }; }
   3797 fi
   3798 
   3799 OS=$llvm_cv_os_type
   3800 
   3801 HOST_OS=$llvm_cv_os_type
   3802 
   3803 TARGET_OS=$llvm_cv_target_os_type
   3804 
   3805 
   3806 LINKALL=$llvm_cv_link_all_option
   3807 
   3808 NOLINKALL=$llvm_cv_no_link_all_option
   3809 
   3810 
   3811 case $llvm_cv_platform_type in
   3812   Unix)
   3813 
   3814 cat >>confdefs.h <<\_ACEOF
   3815 #define LLVM_ON_UNIX 1
   3816 _ACEOF
   3817 
   3818     LLVM_ON_UNIX=1
   3819 
   3820     LLVM_ON_WIN32=0
   3821 
   3822     ;;
   3823   Win32)
   3824 
   3825 cat >>confdefs.h <<\_ACEOF
   3826 #define LLVM_ON_WIN32 1
   3827 _ACEOF
   3828 
   3829     LLVM_ON_UNIX=0
   3830 
   3831     LLVM_ON_WIN32=1
   3832 
   3833     ;;
   3834 esac
   3835 
   3836 { echo "$as_me:$LINENO: checking target architecture" >&5
   3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
   3838 if test "${llvm_cv_target_arch+set}" = set; then
   3839   echo $ECHO_N "(cached) $ECHO_C" >&6
   3840 else
   3841   case $target in
   3842   i?86-*)                 llvm_cv_target_arch="x86" ;;
   3843   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
   3844   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
   3845   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
   3846   arm*-*)                 llvm_cv_target_arch="ARM" ;;
   3847   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
   3848   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
   3849   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
   3850   xcore-*)                llvm_cv_target_arch="XCore" ;;
   3851   msp430-*)               llvm_cv_target_arch="MSP430" ;;
   3852   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
   3853   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
   3854   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
   3855   *)                      llvm_cv_target_arch="Unknown" ;;
   3856 esac
   3857 fi
   3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
   3859 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
   3860 
   3861 if test "$llvm_cv_target_arch" = "Unknown" ; then
   3862   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
   3863 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
   3864 fi
   3865 
   3866 # Determine the LLVM native architecture for the target
   3867 case "$llvm_cv_target_arch" in
   3868     x86)     LLVM_NATIVE_ARCH="X86" ;;
   3869     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
   3870     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
   3871 esac
   3872 
   3873 ARCH=$llvm_cv_target_arch
   3874 
   3875 
   3876 
   3877 
   3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3880 if test "${ac_cv_path_GREP+set}" = set; then
   3881   echo $ECHO_N "(cached) $ECHO_C" >&6
   3882 else
   3883   # Extract the first word of "grep ggrep" to use in msg output
   3884 if test -z "$GREP"; then
   3885 set dummy grep ggrep; ac_prog_name=$2
   3886 if test "${ac_cv_path_GREP+set}" = set; then
   3887   echo $ECHO_N "(cached) $ECHO_C" >&6
   3888 else
   3889   ac_path_GREP_found=false
   3890 # Loop through the user's path and test for each of PROGNAME-LIST
   3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3893 do
   3894   IFS=$as_save_IFS
   3895   test -z "$as_dir" && as_dir=.
   3896   for ac_prog in grep ggrep; do
   3897   for ac_exec_ext in '' $ac_executable_extensions; do
   3898     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3899     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
   3900     # Check for GNU ac_path_GREP and select it if it is found.
   3901   # Check for GNU $ac_path_GREP
   3902 case `"$ac_path_GREP" --version 2>&1` in
   3903 *GNU*)
   3904   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3905 *)
   3906   ac_count=0
   3907   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3908   while :
   3909   do
   3910     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3911     mv "conftest.tmp" "conftest.in"
   3912     cp "conftest.in" "conftest.nl"
   3913     echo 'GREP' >> "conftest.nl"
   3914     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3916     ac_count=`expr $ac_count + 1`
   3917     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3918       # Best one so far, save it but keep looking for a better one
   3919       ac_cv_path_GREP="$ac_path_GREP"
   3920       ac_path_GREP_max=$ac_count
   3921     fi
   3922     # 10*(2^10) chars as input seems more than enough
   3923     test $ac_count -gt 10 && break
   3924   done
   3925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3926 esac
   3927 
   3928 
   3929     $ac_path_GREP_found && break 3
   3930   done
   3931 done
   3932 
   3933 done
   3934 IFS=$as_save_IFS
   3935 
   3936 
   3937 fi
   3938 
   3939 GREP="$ac_cv_path_GREP"
   3940 if test -z "$GREP"; then
   3941   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3943    { (exit 1); exit 1; }; }
   3944 fi
   3945 
   3946 else
   3947   ac_cv_path_GREP=$GREP
   3948 fi
   3949 
   3950 
   3951 fi
   3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3954  GREP="$ac_cv_path_GREP"
   3955 
   3956 
   3957 { echo "$as_me:$LINENO: checking for egrep" >&5
   3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3959 if test "${ac_cv_path_EGREP+set}" = set; then
   3960   echo $ECHO_N "(cached) $ECHO_C" >&6
   3961 else
   3962   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3963    then ac_cv_path_EGREP="$GREP -E"
   3964    else
   3965      # Extract the first word of "egrep" to use in msg output
   3966 if test -z "$EGREP"; then
   3967 set dummy egrep; ac_prog_name=$2
   3968 if test "${ac_cv_path_EGREP+set}" = set; then
   3969   echo $ECHO_N "(cached) $ECHO_C" >&6
   3970 else
   3971   ac_path_EGREP_found=false
   3972 # Loop through the user's path and test for each of PROGNAME-LIST
   3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3975 do
   3976   IFS=$as_save_IFS
   3977   test -z "$as_dir" && as_dir=.
   3978   for ac_prog in egrep; do
   3979   for ac_exec_ext in '' $ac_executable_extensions; do
   3980     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3981     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
   3982     # Check for GNU ac_path_EGREP and select it if it is found.
   3983   # Check for GNU $ac_path_EGREP
   3984 case `"$ac_path_EGREP" --version 2>&1` in
   3985 *GNU*)
   3986   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3987 *)
   3988   ac_count=0
   3989   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3990   while :
   3991   do
   3992     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3993     mv "conftest.tmp" "conftest.in"
   3994     cp "conftest.in" "conftest.nl"
   3995     echo 'EGREP' >> "conftest.nl"
   3996     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3998     ac_count=`expr $ac_count + 1`
   3999     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4000       # Best one so far, save it but keep looking for a better one
   4001       ac_cv_path_EGREP="$ac_path_EGREP"
   4002       ac_path_EGREP_max=$ac_count
   4003     fi
   4004     # 10*(2^10) chars as input seems more than enough
   4005     test $ac_count -gt 10 && break
   4006   done
   4007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4008 esac
   4009 
   4010 
   4011     $ac_path_EGREP_found && break 3
   4012   done
   4013 done
   4014 
   4015 done
   4016 IFS=$as_save_IFS
   4017 
   4018 
   4019 fi
   4020 
   4021 EGREP="$ac_cv_path_EGREP"
   4022 if test -z "$EGREP"; then
   4023   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4025    { (exit 1); exit 1; }; }
   4026 fi
   4027 
   4028 else
   4029   ac_cv_path_EGREP=$EGREP
   4030 fi
   4031 
   4032 
   4033    fi
   4034 fi
   4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   4037  EGREP="$ac_cv_path_EGREP"
   4038 
   4039 
   4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4042 if test "${ac_cv_header_stdc+set}" = set; then
   4043   echo $ECHO_N "(cached) $ECHO_C" >&6
   4044 else
   4045   cat >conftest.$ac_ext <<_ACEOF
   4046 /* confdefs.h.  */
   4047 _ACEOF
   4048 cat confdefs.h >>conftest.$ac_ext
   4049 cat >>conftest.$ac_ext <<_ACEOF
   4050 /* end confdefs.h.  */
   4051 #include <stdlib.h>
   4052 #include <stdarg.h>
   4053 #include <string.h>
   4054 #include <float.h>
   4055 
   4056 int
   4057 main ()
   4058 {
   4059 
   4060   ;
   4061   return 0;
   4062 }
   4063 _ACEOF
   4064 rm -f conftest.$ac_objext
   4065 if { (ac_try="$ac_compile"
   4066 case "(($ac_try" in
   4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4068   *) ac_try_echo=$ac_try;;
   4069 esac
   4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4071   (eval "$ac_compile") 2>conftest.er1
   4072   ac_status=$?
   4073   grep -v '^ *+' conftest.er1 >conftest.err
   4074   rm -f conftest.er1
   4075   cat conftest.err >&5
   4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4077   (exit $ac_status); } &&
   4078 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4079   { (case "(($ac_try" in
   4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4081   *) ac_try_echo=$ac_try;;
   4082 esac
   4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4084   (eval "$ac_try") 2>&5
   4085   ac_status=$?
   4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4087   (exit $ac_status); }; } &&
   4088 	 { ac_try='test -s conftest.$ac_objext'
   4089   { (case "(($ac_try" in
   4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4091   *) ac_try_echo=$ac_try;;
   4092 esac
   4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4094   (eval "$ac_try") 2>&5
   4095   ac_status=$?
   4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4097   (exit $ac_status); }; }; then
   4098   ac_cv_header_stdc=yes
   4099 else
   4100   echo "$as_me: failed program was:" >&5
   4101 sed 's/^/| /' conftest.$ac_ext >&5
   4102 
   4103 	ac_cv_header_stdc=no
   4104 fi
   4105 
   4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4107 
   4108 if test $ac_cv_header_stdc = yes; then
   4109   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4110   cat >conftest.$ac_ext <<_ACEOF
   4111 /* confdefs.h.  */
   4112 _ACEOF
   4113 cat confdefs.h >>conftest.$ac_ext
   4114 cat >>conftest.$ac_ext <<_ACEOF
   4115 /* end confdefs.h.  */
   4116 #include <string.h>
   4117 
   4118 _ACEOF
   4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4120   $EGREP "memchr" >/dev/null 2>&1; then
   4121   :
   4122 else
   4123   ac_cv_header_stdc=no
   4124 fi
   4125 rm -f conftest*
   4126 
   4127 fi
   4128 
   4129 if test $ac_cv_header_stdc = yes; then
   4130   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4131   cat >conftest.$ac_ext <<_ACEOF
   4132 /* confdefs.h.  */
   4133 _ACEOF
   4134 cat confdefs.h >>conftest.$ac_ext
   4135 cat >>conftest.$ac_ext <<_ACEOF
   4136 /* end confdefs.h.  */
   4137 #include <stdlib.h>
   4138 
   4139 _ACEOF
   4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4141   $EGREP "free" >/dev/null 2>&1; then
   4142   :
   4143 else
   4144   ac_cv_header_stdc=no
   4145 fi
   4146 rm -f conftest*
   4147 
   4148 fi
   4149 
   4150 if test $ac_cv_header_stdc = yes; then
   4151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4152   if test "$cross_compiling" = yes; then
   4153   :
   4154 else
   4155   cat >conftest.$ac_ext <<_ACEOF
   4156 /* confdefs.h.  */
   4157 _ACEOF
   4158 cat confdefs.h >>conftest.$ac_ext
   4159 cat >>conftest.$ac_ext <<_ACEOF
   4160 /* end confdefs.h.  */
   4161 #include <ctype.h>
   4162 #include <stdlib.h>
   4163 #if ((' ' & 0x0FF) == 0x020)
   4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4166 #else
   4167 # define ISLOWER(c) \
   4168 		   (('a' <= (c) && (c) <= 'i') \
   4169 		     || ('j' <= (c) && (c) <= 'r') \
   4170 		     || ('s' <= (c) && (c) <= 'z'))
   4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4172 #endif
   4173 
   4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4175 int
   4176 main ()
   4177 {
   4178   int i;
   4179   for (i = 0; i < 256; i++)
   4180     if (XOR (islower (i), ISLOWER (i))
   4181 	|| toupper (i) != TOUPPER (i))
   4182       return 2;
   4183   return 0;
   4184 }
   4185 _ACEOF
   4186 rm -f conftest$ac_exeext
   4187 if { (ac_try="$ac_link"
   4188 case "(($ac_try" in
   4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4190   *) ac_try_echo=$ac_try;;
   4191 esac
   4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4193   (eval "$ac_link") 2>&5
   4194   ac_status=$?
   4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4197   { (case "(($ac_try" in
   4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4199   *) ac_try_echo=$ac_try;;
   4200 esac
   4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4202   (eval "$ac_try") 2>&5
   4203   ac_status=$?
   4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4205   (exit $ac_status); }; }; then
   4206   :
   4207 else
   4208   echo "$as_me: program exited with status $ac_status" >&5
   4209 echo "$as_me: failed program was:" >&5
   4210 sed 's/^/| /' conftest.$ac_ext >&5
   4211 
   4212 ( exit $ac_status )
   4213 ac_cv_header_stdc=no
   4214 fi
   4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4216 fi
   4217 
   4218 
   4219 fi
   4220 fi
   4221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4223 if test $ac_cv_header_stdc = yes; then
   4224 
   4225 cat >>confdefs.h <<\_ACEOF
   4226 #define STDC_HEADERS 1
   4227 _ACEOF
   4228 
   4229 fi
   4230 
   4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4232 
   4233 
   4234 
   4235 
   4236 
   4237 
   4238 
   4239 
   4240 
   4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4242 		  inttypes.h stdint.h unistd.h
   4243 do
   4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4248   echo $ECHO_N "(cached) $ECHO_C" >&6
   4249 else
   4250   cat >conftest.$ac_ext <<_ACEOF
   4251 /* confdefs.h.  */
   4252 _ACEOF
   4253 cat confdefs.h >>conftest.$ac_ext
   4254 cat >>conftest.$ac_ext <<_ACEOF
   4255 /* end confdefs.h.  */
   4256 $ac_includes_default
   4257 
   4258 #include <$ac_header>
   4259 _ACEOF
   4260 rm -f conftest.$ac_objext
   4261 if { (ac_try="$ac_compile"
   4262 case "(($ac_try" in
   4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4264   *) ac_try_echo=$ac_try;;
   4265 esac
   4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4267   (eval "$ac_compile") 2>conftest.er1
   4268   ac_status=$?
   4269   grep -v '^ *+' conftest.er1 >conftest.err
   4270   rm -f conftest.er1
   4271   cat conftest.err >&5
   4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4273   (exit $ac_status); } &&
   4274 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4275   { (case "(($ac_try" in
   4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4277   *) ac_try_echo=$ac_try;;
   4278 esac
   4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4280   (eval "$ac_try") 2>&5
   4281   ac_status=$?
   4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4283   (exit $ac_status); }; } &&
   4284 	 { ac_try='test -s conftest.$ac_objext'
   4285   { (case "(($ac_try" in
   4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4287   *) ac_try_echo=$ac_try;;
   4288 esac
   4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4290   (eval "$ac_try") 2>&5
   4291   ac_status=$?
   4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4293   (exit $ac_status); }; }; then
   4294   eval "$as_ac_Header=yes"
   4295 else
   4296   echo "$as_me: failed program was:" >&5
   4297 sed 's/^/| /' conftest.$ac_ext >&5
   4298 
   4299 	eval "$as_ac_Header=no"
   4300 fi
   4301 
   4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4303 fi
   4304 ac_res=`eval echo '${'$as_ac_Header'}'`
   4305 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4306 echo "${ECHO_T}$ac_res" >&6; }
   4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4308   cat >>confdefs.h <<_ACEOF
   4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4310 _ACEOF
   4311 
   4312 fi
   4313 
   4314 done
   4315 
   4316 
   4317 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   4318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   4319 if test "${ac_cv_c_bigendian+set}" = set; then
   4320   echo $ECHO_N "(cached) $ECHO_C" >&6
   4321 else
   4322   # See if sys/param.h defines the BYTE_ORDER macro.
   4323 cat >conftest.$ac_ext <<_ACEOF
   4324 /* confdefs.h.  */
   4325 _ACEOF
   4326 cat confdefs.h >>conftest.$ac_ext
   4327 cat >>conftest.$ac_ext <<_ACEOF
   4328 /* end confdefs.h.  */
   4329 #include <sys/types.h>
   4330 #include <sys/param.h>
   4331 
   4332 int
   4333 main ()
   4334 {
   4335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
   4336  bogus endian macros
   4337 #endif
   4338 
   4339   ;
   4340   return 0;
   4341 }
   4342 _ACEOF
   4343 rm -f conftest.$ac_objext
   4344 if { (ac_try="$ac_compile"
   4345 case "(($ac_try" in
   4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4347   *) ac_try_echo=$ac_try;;
   4348 esac
   4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4350   (eval "$ac_compile") 2>conftest.er1
   4351   ac_status=$?
   4352   grep -v '^ *+' conftest.er1 >conftest.err
   4353   rm -f conftest.er1
   4354   cat conftest.err >&5
   4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4356   (exit $ac_status); } &&
   4357 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4358   { (case "(($ac_try" in
   4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4360   *) ac_try_echo=$ac_try;;
   4361 esac
   4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4363   (eval "$ac_try") 2>&5
   4364   ac_status=$?
   4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4366   (exit $ac_status); }; } &&
   4367 	 { ac_try='test -s conftest.$ac_objext'
   4368   { (case "(($ac_try" in
   4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4370   *) ac_try_echo=$ac_try;;
   4371 esac
   4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4373   (eval "$ac_try") 2>&5
   4374   ac_status=$?
   4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4376   (exit $ac_status); }; }; then
   4377   # It does; now see whether it defined to BIG_ENDIAN or not.
   4378 cat >conftest.$ac_ext <<_ACEOF
   4379 /* confdefs.h.  */
   4380 _ACEOF
   4381 cat confdefs.h >>conftest.$ac_ext
   4382 cat >>conftest.$ac_ext <<_ACEOF
   4383 /* end confdefs.h.  */
   4384 #include <sys/types.h>
   4385 #include <sys/param.h>
   4386 
   4387 int
   4388 main ()
   4389 {
   4390 #if BYTE_ORDER != BIG_ENDIAN
   4391  not big endian
   4392 #endif
   4393 
   4394   ;
   4395   return 0;
   4396 }
   4397 _ACEOF
   4398 rm -f conftest.$ac_objext
   4399 if { (ac_try="$ac_compile"
   4400 case "(($ac_try" in
   4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4402   *) ac_try_echo=$ac_try;;
   4403 esac
   4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4405   (eval "$ac_compile") 2>conftest.er1
   4406   ac_status=$?
   4407   grep -v '^ *+' conftest.er1 >conftest.err
   4408   rm -f conftest.er1
   4409   cat conftest.err >&5
   4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4411   (exit $ac_status); } &&
   4412 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4413   { (case "(($ac_try" in
   4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4415   *) ac_try_echo=$ac_try;;
   4416 esac
   4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4418   (eval "$ac_try") 2>&5
   4419   ac_status=$?
   4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4421   (exit $ac_status); }; } &&
   4422 	 { ac_try='test -s conftest.$ac_objext'
   4423   { (case "(($ac_try" in
   4424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4425   *) ac_try_echo=$ac_try;;
   4426 esac
   4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4428   (eval "$ac_try") 2>&5
   4429   ac_status=$?
   4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4431   (exit $ac_status); }; }; then
   4432   ac_cv_c_bigendian=yes
   4433 else
   4434   echo "$as_me: failed program was:" >&5
   4435 sed 's/^/| /' conftest.$ac_ext >&5
   4436 
   4437 	ac_cv_c_bigendian=no
   4438 fi
   4439 
   4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4441 else
   4442   echo "$as_me: failed program was:" >&5
   4443 sed 's/^/| /' conftest.$ac_ext >&5
   4444 
   4445 	# It does not; compile a test program.
   4446 if test "$cross_compiling" = yes; then
   4447   # try to guess the endianness by grepping values into an object file
   4448   ac_cv_c_bigendian=unknown
   4449   cat >conftest.$ac_ext <<_ACEOF
   4450 /* confdefs.h.  */
   4451 _ACEOF
   4452 cat confdefs.h >>conftest.$ac_ext
   4453 cat >>conftest.$ac_ext <<_ACEOF
   4454 /* end confdefs.h.  */
   4455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   4458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   4461 int
   4462 main ()
   4463 {
   4464  _ascii (); _ebcdic ();
   4465   ;
   4466   return 0;
   4467 }
   4468 _ACEOF
   4469 rm -f conftest.$ac_objext
   4470 if { (ac_try="$ac_compile"
   4471 case "(($ac_try" in
   4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4473   *) ac_try_echo=$ac_try;;
   4474 esac
   4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4476   (eval "$ac_compile") 2>conftest.er1
   4477   ac_status=$?
   4478   grep -v '^ *+' conftest.er1 >conftest.err
   4479   rm -f conftest.er1
   4480   cat conftest.err >&5
   4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4482   (exit $ac_status); } &&
   4483 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   4484   { (case "(($ac_try" in
   4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4486   *) ac_try_echo=$ac_try;;
   4487 esac
   4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4489   (eval "$ac_try") 2>&5
   4490   ac_status=$?
   4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4492   (exit $ac_status); }; } &&
   4493 	 { ac_try='test -s conftest.$ac_objext'
   4494   { (case "(($ac_try" in
   4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4496   *) ac_try_echo=$ac_try;;
   4497 esac
   4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4499   (eval "$ac_try") 2>&5
   4500   ac_status=$?
   4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4502   (exit $ac_status); }; }; then
   4503   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   4504   ac_cv_c_bigendian=yes
   4505 fi
   4506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4507   if test "$ac_cv_c_bigendian" = unknown; then
   4508     ac_cv_c_bigendian=no
   4509   else
   4510     # finding both strings is unlikely to happen, but who knows?
   4511     ac_cv_c_bigendian=unknown
   4512   fi
   4513 fi
   4514 else
   4515   echo "$as_me: failed program was:" >&5
   4516 sed 's/^/| /' conftest.$ac_ext >&5
   4517 
   4518 
   4519 fi
   4520 
   4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4522 else
   4523   cat >conftest.$ac_ext <<_ACEOF
   4524 /* confdefs.h.  */
   4525 _ACEOF
   4526 cat confdefs.h >>conftest.$ac_ext
   4527 cat >>conftest.$ac_ext <<_ACEOF
   4528 /* end confdefs.h.  */
   4529 $ac_includes_default
   4530 int
   4531 main ()
   4532 {
   4533 
   4534   /* Are we little or big endian?  From Harbison&Steele.  */
   4535   union
   4536   {
   4537     long int l;
   4538     char c[sizeof (long int)];
   4539   } u;
   4540   u.l = 1;
   4541   return u.c[sizeof (long int) - 1] == 1;
   4542 
   4543   ;
   4544   return 0;
   4545 }
   4546 _ACEOF
   4547 rm -f conftest$ac_exeext
   4548 if { (ac_try="$ac_link"
   4549 case "(($ac_try" in
   4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4551   *) ac_try_echo=$ac_try;;
   4552 esac
   4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4554   (eval "$ac_link") 2>&5
   4555   ac_status=$?
   4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4558   { (case "(($ac_try" in
   4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4560   *) ac_try_echo=$ac_try;;
   4561 esac
   4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4563   (eval "$ac_try") 2>&5
   4564   ac_status=$?
   4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4566   (exit $ac_status); }; }; then
   4567   ac_cv_c_bigendian=no
   4568 else
   4569   echo "$as_me: program exited with status $ac_status" >&5
   4570 echo "$as_me: failed program was:" >&5
   4571 sed 's/^/| /' conftest.$ac_ext >&5
   4572 
   4573 ( exit $ac_status )
   4574 ac_cv_c_bigendian=yes
   4575 fi
   4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4577 fi
   4578 
   4579 
   4580 fi
   4581 
   4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4583 fi
   4584 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   4585 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   4586 case $ac_cv_c_bigendian in
   4587   yes)
   4588     ENDIAN=big
   4589  ;;
   4590   no)
   4591     ENDIAN=little
   4592  ;;
   4593   *)
   4594     { { echo "$as_me:$LINENO: error: unknown endianness
   4595 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   4596 echo "$as_me: error: unknown endianness
   4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   4598    { (exit 1); exit 1; }; } ;;
   4599 esac
   4600 
   4601 
   4602 if test "$cross_compiling" = yes; then
   4603   LLVM_CROSS_COMPILING=1
   4604 
   4605 
   4606 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
   4607 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
   4608 if test "${ac_cv_build_exeext+set}" = set; then
   4609   echo $ECHO_N "(cached) $ECHO_C" >&6
   4610 else
   4611   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
   4612   ac_cv_build_exeext=.exe
   4613 else
   4614   ac_build_prefix=${build_alias}-
   4615 
   4616   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
   4617 set dummy ${ac_build_prefix}gcc; ac_word=$2
   4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4620 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4621   echo $ECHO_N "(cached) $ECHO_C" >&6
   4622 else
   4623   if test -n "$BUILD_CC"; then
   4624   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4625 else
   4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4627 for as_dir in $PATH
   4628 do
   4629   IFS=$as_save_IFS
   4630   test -z "$as_dir" && as_dir=.
   4631   for ac_exec_ext in '' $ac_executable_extensions; do
   4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4633     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
   4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4635     break 2
   4636   fi
   4637 done
   4638 done
   4639 IFS=$as_save_IFS
   4640 
   4641 fi
   4642 fi
   4643 BUILD_CC=$ac_cv_prog_BUILD_CC
   4644 if test -n "$BUILD_CC"; then
   4645   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4646 echo "${ECHO_T}$BUILD_CC" >&6; }
   4647 else
   4648   { echo "$as_me:$LINENO: result: no" >&5
   4649 echo "${ECHO_T}no" >&6; }
   4650 fi
   4651 
   4652 
   4653   if test -z "$BUILD_CC"; then
   4654      # Extract the first word of "gcc", so it can be a program name with args.
   4655 set dummy gcc; ac_word=$2
   4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4658 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4659   echo $ECHO_N "(cached) $ECHO_C" >&6
   4660 else
   4661   if test -n "$BUILD_CC"; then
   4662   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4663 else
   4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4665 for as_dir in $PATH
   4666 do
   4667   IFS=$as_save_IFS
   4668   test -z "$as_dir" && as_dir=.
   4669   for ac_exec_ext in '' $ac_executable_extensions; do
   4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4671     ac_cv_prog_BUILD_CC="gcc"
   4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4673     break 2
   4674   fi
   4675 done
   4676 done
   4677 IFS=$as_save_IFS
   4678 
   4679 fi
   4680 fi
   4681 BUILD_CC=$ac_cv_prog_BUILD_CC
   4682 if test -n "$BUILD_CC"; then
   4683   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4684 echo "${ECHO_T}$BUILD_CC" >&6; }
   4685 else
   4686   { echo "$as_me:$LINENO: result: no" >&5
   4687 echo "${ECHO_T}no" >&6; }
   4688 fi
   4689 
   4690 
   4691      if test -z "$BUILD_CC"; then
   4692        # Extract the first word of "cc", so it can be a program name with args.
   4693 set dummy cc; ac_word=$2
   4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
   4697   echo $ECHO_N "(cached) $ECHO_C" >&6
   4698 else
   4699   if test -n "$BUILD_CC"; then
   4700   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
   4701 else
   4702   ac_prog_rejected=no
   4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4704 for as_dir in $PATH
   4705 do
   4706   IFS=$as_save_IFS
   4707   test -z "$as_dir" && as_dir=.
   4708   for ac_exec_ext in '' $ac_executable_extensions; do
   4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4711        ac_prog_rejected=yes
   4712        continue
   4713      fi
   4714     ac_cv_prog_BUILD_CC="cc"
   4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4716     break 2
   4717   fi
   4718 done
   4719 done
   4720 IFS=$as_save_IFS
   4721 
   4722 if test $ac_prog_rejected = yes; then
   4723   # We found a bogon in the path, so make sure we never use it.
   4724   set dummy $ac_cv_prog_BUILD_CC
   4725   shift
   4726   if test $# != 0; then
   4727     # We chose a different compiler from the bogus one.
   4728     # However, it has the same basename, so the bogon will be chosen
   4729     # first if we set BUILD_CC to just the basename; use the full file name.
   4730     shift
   4731     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
   4732   fi
   4733 fi
   4734 fi
   4735 fi
   4736 BUILD_CC=$ac_cv_prog_BUILD_CC
   4737 if test -n "$BUILD_CC"; then
   4738   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
   4739 echo "${ECHO_T}$BUILD_CC" >&6; }
   4740 else
   4741   { echo "$as_me:$LINENO: result: no" >&5
   4742 echo "${ECHO_T}no" >&6; }
   4743 fi
   4744 
   4745 
   4746      fi
   4747   fi
   4748   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
   4749 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   4750    { (exit 1); exit 1; }; }
   4751   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4752   rm -f conftest*
   4753   echo 'int main () { return 0; }' > conftest.$ac_ext
   4754   ac_cv_build_exeext=
   4755   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
   4756   (eval $ac_build_link) 2>&5
   4757   ac_status=$?
   4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4759   (exit $ac_status); }; then
   4760     for file in conftest.*; do
   4761       case $file in
   4762       *.c | *.o | *.obj | *.dSYM) ;;
   4763       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
   4764       esac
   4765     done
   4766   else
   4767     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
   4768 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
   4769    { (exit 1); exit 1; }; }
   4770   fi
   4771   rm -f conftest*
   4772   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
   4773 fi
   4774 fi
   4775 
   4776 BUILD_EXEEXT=""
   4777 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
   4778 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
   4779 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
   4780 ac_build_exeext=$BUILD_EXEEXT
   4781 
   4782   ac_build_prefix=${build_alias}-
   4783   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
   4784 set dummy ${ac_build_prefix}g++; ac_word=$2
   4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4787 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4788   echo $ECHO_N "(cached) $ECHO_C" >&6
   4789 else
   4790   if test -n "$BUILD_CXX"; then
   4791   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4792 else
   4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4794 for as_dir in $PATH
   4795 do
   4796   IFS=$as_save_IFS
   4797   test -z "$as_dir" && as_dir=.
   4798   for ac_exec_ext in '' $ac_executable_extensions; do
   4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4800     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
   4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4802     break 2
   4803   fi
   4804 done
   4805 done
   4806 IFS=$as_save_IFS
   4807 
   4808 fi
   4809 fi
   4810 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4811 if test -n "$BUILD_CXX"; then
   4812   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4813 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4814 else
   4815   { echo "$as_me:$LINENO: result: no" >&5
   4816 echo "${ECHO_T}no" >&6; }
   4817 fi
   4818 
   4819 
   4820   if test -z "$BUILD_CXX"; then
   4821      # Extract the first word of "g++", so it can be a program name with args.
   4822 set dummy g++; ac_word=$2
   4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4825 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4826   echo $ECHO_N "(cached) $ECHO_C" >&6
   4827 else
   4828   if test -n "$BUILD_CXX"; then
   4829   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4830 else
   4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4832 for as_dir in $PATH
   4833 do
   4834   IFS=$as_save_IFS
   4835   test -z "$as_dir" && as_dir=.
   4836   for ac_exec_ext in '' $ac_executable_extensions; do
   4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4838     ac_cv_prog_BUILD_CXX="g++"
   4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4840     break 2
   4841   fi
   4842 done
   4843 done
   4844 IFS=$as_save_IFS
   4845 
   4846 fi
   4847 fi
   4848 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4849 if test -n "$BUILD_CXX"; then
   4850   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4851 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4852 else
   4853   { echo "$as_me:$LINENO: result: no" >&5
   4854 echo "${ECHO_T}no" >&6; }
   4855 fi
   4856 
   4857 
   4858      if test -z "$BUILD_CXX"; then
   4859        # Extract the first word of "c++", so it can be a program name with args.
   4860 set dummy c++; ac_word=$2
   4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
   4864   echo $ECHO_N "(cached) $ECHO_C" >&6
   4865 else
   4866   if test -n "$BUILD_CXX"; then
   4867   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
   4868 else
   4869   ac_prog_rejected=no
   4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4871 for as_dir in $PATH
   4872 do
   4873   IFS=$as_save_IFS
   4874   test -z "$as_dir" && as_dir=.
   4875   for ac_exec_ext in '' $ac_executable_extensions; do
   4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   4877     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
   4878        ac_prog_rejected=yes
   4879        continue
   4880      fi
   4881     ac_cv_prog_BUILD_CXX="c++"
   4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4883     break 2
   4884   fi
   4885 done
   4886 done
   4887 IFS=$as_save_IFS
   4888 
   4889 if test $ac_prog_rejected = yes; then
   4890   # We found a bogon in the path, so make sure we never use it.
   4891   set dummy $ac_cv_prog_BUILD_CXX
   4892   shift
   4893   if test $# != 0; then
   4894     # We chose a different compiler from the bogus one.
   4895     # However, it has the same basename, so the bogon will be chosen
   4896     # first if we set BUILD_CXX to just the basename; use the full file name.
   4897     shift
   4898     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
   4899   fi
   4900 fi
   4901 fi
   4902 fi
   4903 BUILD_CXX=$ac_cv_prog_BUILD_CXX
   4904 if test -n "$BUILD_CXX"; then
   4905   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
   4906 echo "${ECHO_T}$BUILD_CXX" >&6; }
   4907 else
   4908   { echo "$as_me:$LINENO: result: no" >&5
   4909 echo "${ECHO_T}no" >&6; }
   4910 fi
   4911 
   4912 
   4913      fi
   4914   fi
   4915 else
   4916   LLVM_CROSS_COMPILING=0
   4917 
   4918 fi
   4919 
   4920 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
   4921   cvsbuild="yes"
   4922   optimize="no"
   4923   CVSBUILD=CVSBUILD=1
   4924 
   4925 else
   4926   cvsbuild="no"
   4927   optimize="yes"
   4928 fi
   4929 
   4930 
   4931 # Check whether --enable-libcpp was given.
   4932 if test "${enable_libcpp+set}" = set; then
   4933   enableval=$enable_libcpp;
   4934 else
   4935   enableval=default
   4936 fi
   4937 
   4938 case "$enableval" in
   4939   yes) ENABLE_LIBCPP=1
   4940  ;;
   4941   no)  ENABLE_LIBCPP=0
   4942  ;;
   4943   default) ENABLE_LIBCPP=0
   4944 ;;
   4945   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
   4946 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
   4947    { (exit 1); exit 1; }; } ;;
   4948 esac
   4949 
   4950 # Check whether --enable-cxx11 was given.
   4951 if test "${enable_cxx11+set}" = set; then
   4952   enableval=$enable_cxx11;
   4953 else
   4954   enableval=default
   4955 fi
   4956 
   4957 case "$enableval" in
   4958   yes) ENABLE_CXX11=1
   4959  ;;
   4960   no)  ENABLE_CXX11=0
   4961  ;;
   4962   default) ENABLE_CXX11=0
   4963 ;;
   4964   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
   4965 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
   4966    { (exit 1); exit 1; }; } ;;
   4967 esac
   4968 
   4969 # Check whether --enable-optimized was given.
   4970 if test "${enable_optimized+set}" = set; then
   4971   enableval=$enable_optimized;
   4972 else
   4973   enableval=$optimize
   4974 fi
   4975 
   4976 if test ${enableval} = "no" ; then
   4977   ENABLE_OPTIMIZED=
   4978 
   4979 else
   4980   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
   4981 
   4982 fi
   4983 
   4984 # Check whether --enable-profiling was given.
   4985 if test "${enable_profiling+set}" = set; then
   4986   enableval=$enable_profiling;
   4987 else
   4988   enableval="no"
   4989 fi
   4990 
   4991 if test ${enableval} = "no" ; then
   4992   ENABLE_PROFILING=
   4993 
   4994 else
   4995   ENABLE_PROFILING=ENABLE_PROFILING=1
   4996 
   4997 fi
   4998 
   4999 # Check whether --enable-assertions was given.
   5000 if test "${enable_assertions+set}" = set; then
   5001   enableval=$enable_assertions;
   5002 else
   5003   enableval="yes"
   5004 fi
   5005 
   5006 if test ${enableval} = "yes" ; then
   5007   DISABLE_ASSERTIONS=
   5008 
   5009 else
   5010   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
   5011 
   5012 fi
   5013 
   5014 # Check whether --enable-werror was given.
   5015 if test "${enable_werror+set}" = set; then
   5016   enableval=$enable_werror;
   5017 else
   5018   enableval="no"
   5019 fi
   5020 
   5021 case "$enableval" in
   5022   yes) ENABLE_WERROR=1
   5023  ;;
   5024   no)  ENABLE_WERROR=0
   5025  ;;
   5026   default) ENABLE_WERROR=0
   5027 ;;
   5028   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
   5029 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
   5030    { (exit 1); exit 1; }; } ;;
   5031 esac
   5032 
   5033 # Check whether --enable-expensive-checks was given.
   5034 if test "${enable_expensive_checks+set}" = set; then
   5035   enableval=$enable_expensive_checks;
   5036 else
   5037   enableval="no"
   5038 fi
   5039 
   5040 if test ${enableval} = "yes" ; then
   5041   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
   5042 
   5043   EXPENSIVE_CHECKS=yes
   5044 
   5045 else
   5046   ENABLE_EXPENSIVE_CHECKS=
   5047 
   5048   EXPENSIVE_CHECKS=no
   5049 
   5050 fi
   5051 
   5052 # Check whether --enable-debug-runtime was given.
   5053 if test "${enable_debug_runtime+set}" = set; then
   5054   enableval=$enable_debug_runtime;
   5055 else
   5056   enableval=no
   5057 fi
   5058 
   5059 if test ${enableval} = "no" ; then
   5060   DEBUG_RUNTIME=
   5061 
   5062 else
   5063   DEBUG_RUNTIME=DEBUG_RUNTIME=1
   5064 
   5065 fi
   5066 
   5067 # Check whether --enable-debug-symbols was given.
   5068 if test "${enable_debug_symbols+set}" = set; then
   5069   enableval=$enable_debug_symbols;
   5070 else
   5071   enableval=no
   5072 fi
   5073 
   5074 if test ${enableval} = "no" ; then
   5075   DEBUG_SYMBOLS=
   5076 
   5077 else
   5078   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
   5079 
   5080 fi
   5081 
   5082 # Check whether --enable-jit was given.
   5083 if test "${enable_jit+set}" = set; then
   5084   enableval=$enable_jit;
   5085 else
   5086   enableval=default
   5087 fi
   5088 
   5089 if test ${enableval} = "no"
   5090 then
   5091   JIT=
   5092 
   5093 else
   5094   case "$llvm_cv_target_arch" in
   5095     x86)         TARGET_HAS_JIT=1
   5096  ;;
   5097     Sparc)       TARGET_HAS_JIT=0
   5098  ;;
   5099     PowerPC)     TARGET_HAS_JIT=1
   5100  ;;
   5101     x86_64)      TARGET_HAS_JIT=1
   5102  ;;
   5103     ARM)         TARGET_HAS_JIT=1
   5104  ;;
   5105     AArch64)     TARGET_HAS_JIT=0
   5106  ;;
   5107     Mips)        TARGET_HAS_JIT=1
   5108  ;;
   5109     XCore)       TARGET_HAS_JIT=0
   5110  ;;
   5111     MSP430)      TARGET_HAS_JIT=0
   5112  ;;
   5113     Hexagon)     TARGET_HAS_JIT=0
   5114  ;;
   5115     MBlaze)      TARGET_HAS_JIT=0
   5116  ;;
   5117     NVPTX)       TARGET_HAS_JIT=0
   5118  ;;
   5119     *)           TARGET_HAS_JIT=0
   5120  ;;
   5121   esac
   5122 fi
   5123 
   5124 # Check whether --enable-docs was given.
   5125 if test "${enable_docs+set}" = set; then
   5126   enableval=$enable_docs;
   5127 else
   5128   enableval=default
   5129 fi
   5130 
   5131 case "$enableval" in
   5132   yes) ENABLE_DOCS=1
   5133  ;;
   5134   no)  ENABLE_DOCS=0
   5135  ;;
   5136   default) ENABLE_DOCS=1
   5137  ;;
   5138   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
   5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
   5140    { (exit 1); exit 1; }; } ;;
   5141 esac
   5142 
   5143 # Check whether --enable-doxygen was given.
   5144 if test "${enable_doxygen+set}" = set; then
   5145   enableval=$enable_doxygen;
   5146 else
   5147   enableval=default
   5148 fi
   5149 
   5150 case "$enableval" in
   5151   yes) ENABLE_DOXYGEN=1
   5152  ;;
   5153   no)  ENABLE_DOXYGEN=0
   5154  ;;
   5155   default) ENABLE_DOXYGEN=0
   5156  ;;
   5157   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
   5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
   5159    { (exit 1); exit 1; }; } ;;
   5160 esac
   5161 
   5162 # Check whether --enable-threads was given.
   5163 if test "${enable_threads+set}" = set; then
   5164   enableval=$enable_threads;
   5165 else
   5166   enableval=default
   5167 fi
   5168 
   5169 case "$enableval" in
   5170   yes) ENABLE_THREADS=1
   5171  ;;
   5172   no)  ENABLE_THREADS=0
   5173  ;;
   5174   default) ENABLE_THREADS=1
   5175  ;;
   5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
   5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
   5178    { (exit 1); exit 1; }; } ;;
   5179 esac
   5180 
   5181 cat >>confdefs.h <<_ACEOF
   5182 #define ENABLE_THREADS $ENABLE_THREADS
   5183 _ACEOF
   5184 
   5185 
   5186 # Check whether --enable-pthreads was given.
   5187 if test "${enable_pthreads+set}" = set; then
   5188   enableval=$enable_pthreads;
   5189 else
   5190   enableval=default
   5191 fi
   5192 
   5193 case "$enableval" in
   5194   yes) ENABLE_PTHREADS=1
   5195  ;;
   5196   no)  ENABLE_PTHREADS=0
   5197  ;;
   5198   default) ENABLE_PTHREADS=1
   5199  ;;
   5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
   5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
   5202    { (exit 1); exit 1; }; } ;;
   5203 esac
   5204 
   5205 # Check whether --enable-pic was given.
   5206 if test "${enable_pic+set}" = set; then
   5207   enableval=$enable_pic;
   5208 else
   5209   enableval=default
   5210 fi
   5211 
   5212 case "$enableval" in
   5213   yes) ENABLE_PIC=1
   5214  ;;
   5215   no)  ENABLE_PIC=0
   5216  ;;
   5217   default) ENABLE_PIC=1
   5218  ;;
   5219   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
   5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
   5221    { (exit 1); exit 1; }; } ;;
   5222 esac
   5223 
   5224 cat >>confdefs.h <<_ACEOF
   5225 #define ENABLE_PIC $ENABLE_PIC
   5226 _ACEOF
   5227 
   5228 
   5229 # Check whether --enable-shared was given.
   5230 if test "${enable_shared+set}" = set; then
   5231   enableval=$enable_shared;
   5232 else
   5233   enableval=default
   5234 fi
   5235 
   5236 case "$enableval" in
   5237   yes) ENABLE_SHARED=1
   5238  ;;
   5239   no)  ENABLE_SHARED=0
   5240  ;;
   5241   default) ENABLE_SHARED=0
   5242  ;;
   5243   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
   5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
   5245    { (exit 1); exit 1; }; } ;;
   5246 esac
   5247 
   5248 # Check whether --enable-embed-stdcxx was given.
   5249 if test "${enable_embed_stdcxx+set}" = set; then
   5250   enableval=$enable_embed_stdcxx;
   5251 else
   5252   enableval=default
   5253 fi
   5254 
   5255 case "$enableval" in
   5256   yes) ENABLE_EMBED_STDCXX=1
   5257  ;;
   5258   no)  ENABLE_EMBED_STDCXX=0
   5259  ;;
   5260   default) ENABLE_EMBED_STDCXX=1
   5261  ;;
   5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
   5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
   5264    { (exit 1); exit 1; }; } ;;
   5265 esac
   5266 
   5267 # Check whether --enable-timestamps was given.
   5268 if test "${enable_timestamps+set}" = set; then
   5269   enableval=$enable_timestamps;
   5270 else
   5271   enableval=default
   5272 fi
   5273 
   5274 case "$enableval" in
   5275   yes) ENABLE_TIMESTAMPS=1
   5276  ;;
   5277   no)  ENABLE_TIMESTAMPS=0
   5278  ;;
   5279   default) ENABLE_TIMESTAMPS=1
   5280  ;;
   5281   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
   5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
   5283    { (exit 1); exit 1; }; } ;;
   5284 esac
   5285 
   5286 cat >>confdefs.h <<_ACEOF
   5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
   5288 _ACEOF
   5289 
   5290 
   5291 TARGETS_TO_BUILD=""
   5292 # Check whether --enable-targets was given.
   5293 if test "${enable_targets+set}" = set; then
   5294   enableval=$enable_targets;
   5295 else
   5296   enableval=all
   5297 fi
   5298 
   5299 if test "$enableval" = host-only ; then
   5300   enableval=host
   5301 fi
   5302 case "$enableval" in
   5303   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
   5304   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5305       case "$a_target" in
   5306         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5307         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5308         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5309         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5310         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5311         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
   5312         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5313         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5314         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5315         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5316         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
   5317         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5318         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
   5319         host) case "$llvm_cv_target_arch" in
   5320             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5321             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
   5322             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
   5323             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
   5324             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
   5325             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
   5326             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
   5327             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
   5328             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
   5329             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
   5330             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
   5331             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
   5332             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
   5333 echo "$as_me: error: Can not set target to build" >&2;}
   5334    { (exit 1); exit 1; }; } ;;
   5335           esac ;;
   5336         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
   5337 echo "$as_me: error: Unrecognized target $a_target" >&2;}
   5338    { (exit 1); exit 1; }; } ;;
   5339       esac
   5340   done
   5341   ;;
   5342 esac
   5343 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
   5344 
   5345 
   5346 # Determine whether we are building LLVM support for the native architecture.
   5347 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
   5348 for a_target in $TARGETS_TO_BUILD; do
   5349   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
   5350 
   5351 cat >>confdefs.h <<_ACEOF
   5352 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
   5353 _ACEOF
   5354 
   5355     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
   5356     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
   5357     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
   5358     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
   5359     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5360       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
   5361     fi
   5362     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5363       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
   5364     fi
   5365 
   5366 cat >>confdefs.h <<_ACEOF
   5367 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
   5368 _ACEOF
   5369 
   5370 
   5371 cat >>confdefs.h <<_ACEOF
   5372 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
   5373 _ACEOF
   5374 
   5375 
   5376 cat >>confdefs.h <<_ACEOF
   5377 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
   5378 _ACEOF
   5379 
   5380 
   5381 cat >>confdefs.h <<_ACEOF
   5382 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
   5383 _ACEOF
   5384 
   5385     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
   5386 
   5387 cat >>confdefs.h <<_ACEOF
   5388 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
   5389 _ACEOF
   5390 
   5391     fi
   5392     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
   5393 
   5394 cat >>confdefs.h <<_ACEOF
   5395 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
   5396 _ACEOF
   5397 
   5398     fi
   5399   fi
   5400 done
   5401 
   5402 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
   5403 # target feature def files.
   5404 LLVM_ENUM_TARGETS=""
   5405 LLVM_ENUM_ASM_PRINTERS=""
   5406 LLVM_ENUM_ASM_PARSERS=""
   5407 LLVM_ENUM_DISASSEMBLERS=""
   5408 for target_to_build in $TARGETS_TO_BUILD; do
   5409   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
   5410   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
   5411     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
   5412   fi
   5413   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
   5414     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
   5415   fi
   5416   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
   5417     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
   5418   fi
   5419 done
   5420 
   5421 
   5422 
   5423 
   5424 
   5425 
   5426 # Check whether --with-optimize-option was given.
   5427 if test "${with_optimize_option+set}" = set; then
   5428   withval=$with_optimize_option;
   5429 else
   5430   withval=default
   5431 fi
   5432 
   5433 { echo "$as_me:$LINENO: checking optimization flags" >&5
   5434 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
   5435 case "$withval" in
   5436   default)
   5437     case "$llvm_cv_os_type" in
   5438     FreeBSD) optimize_option=-O2 ;;
   5439     MingW) optimize_option=-O2 ;;
   5440     *)     optimize_option=-O3 ;;
   5441     esac ;;
   5442   *) optimize_option="$withval" ;;
   5443 esac
   5444 OPTIMIZE_OPTION=$optimize_option
   5445 
   5446 { echo "$as_me:$LINENO: result: $optimize_option" >&5
   5447 echo "${ECHO_T}$optimize_option" >&6; }
   5448 
   5449 
   5450 # Check whether --with-extra-options was given.
   5451 if test "${with_extra_options+set}" = set; then
   5452   withval=$with_extra_options;
   5453 else
   5454   withval=default
   5455 fi
   5456 
   5457 case "$withval" in
   5458   default) EXTRA_OPTIONS= ;;
   5459   *) EXTRA_OPTIONS=$withval ;;
   5460 esac
   5461 EXTRA_OPTIONS=$EXTRA_OPTIONS
   5462 
   5463 
   5464 
   5465 # Check whether --with-extra-ld-options was given.
   5466 if test "${with_extra_ld_options+set}" = set; then
   5467   withval=$with_extra_ld_options;
   5468 else
   5469   withval=default
   5470 fi
   5471 
   5472 case "$withval" in
   5473   default) EXTRA_LD_OPTIONS= ;;
   5474   *) EXTRA_LD_OPTIONS=$withval ;;
   5475 esac
   5476 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
   5477 
   5478 
   5479 # Check whether --enable-bindings was given.
   5480 if test "${enable_bindings+set}" = set; then
   5481   enableval=$enable_bindings;
   5482 else
   5483   enableval=default
   5484 fi
   5485 
   5486 BINDINGS_TO_BUILD=""
   5487 case "$enableval" in
   5488   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
   5489   all ) BINDINGS_TO_BUILD="ocaml" ;;
   5490   none | no) BINDINGS_TO_BUILD="" ;;
   5491   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
   5492       case "$a_binding" in
   5493         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
   5494         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
   5495 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
   5496    { (exit 1); exit 1; }; } ;;
   5497       esac
   5498   done
   5499   ;;
   5500 esac
   5501 
   5502 
   5503 # Check whether --with-ocaml-libdir was given.
   5504 if test "${with_ocaml_libdir+set}" = set; then
   5505   withval=$with_ocaml_libdir;
   5506 else
   5507   withval=auto
   5508 fi
   5509 
   5510 case "$withval" in
   5511   auto) with_ocaml_libdir="$withval" ;;
   5512   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
   5513   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
   5514 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
   5515    { (exit 1); exit 1; }; } ;;
   5516 esac
   5517 
   5518 
   5519 # Check whether --with-clang-resource-dir was given.
   5520 if test "${with_clang_resource_dir+set}" = set; then
   5521   withval=$with_clang_resource_dir;
   5522 else
   5523   withval=""
   5524 fi
   5525 
   5526 
   5527 cat >>confdefs.h <<_ACEOF
   5528 #define CLANG_RESOURCE_DIR "$withval"
   5529 _ACEOF
   5530 
   5531 
   5532 
   5533 # Check whether --with-c-include-dirs was given.
   5534 if test "${with_c_include_dirs+set}" = set; then
   5535   withval=$with_c_include_dirs;
   5536 else
   5537   withval=""
   5538 fi
   5539 
   5540 
   5541 cat >>confdefs.h <<_ACEOF
   5542 #define C_INCLUDE_DIRS "$withval"
   5543 _ACEOF
   5544 
   5545 
   5546 # Clang normally uses the system c++ headers and libraries. With this option,
   5547 # clang will use the ones provided by a gcc installation instead. This option should
   5548 # be passed the same value that was used with --prefix when configuring gcc.
   5549 
   5550 # Check whether --with-gcc-toolchain was given.
   5551 if test "${with_gcc_toolchain+set}" = set; then
   5552   withval=$with_gcc_toolchain;
   5553 else
   5554   withval=""
   5555 fi
   5556 
   5557 
   5558 cat >>confdefs.h <<_ACEOF
   5559 #define GCC_INSTALL_PREFIX "$withval"
   5560 _ACEOF
   5561 
   5562 
   5563 
   5564 # Check whether --with-binutils-include was given.
   5565 if test "${with_binutils_include+set}" = set; then
   5566   withval=$with_binutils_include;
   5567 else
   5568   withval=default
   5569 fi
   5570 
   5571 case "$withval" in
   5572   default) WITH_BINUTILS_INCDIR=default ;;
   5573   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
   5574   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
   5575 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
   5576    { (exit 1); exit 1; }; } ;;
   5577 esac
   5578 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
   5579   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
   5580 
   5581   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
   5582      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
   5583      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
   5584 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
   5585    { (exit 1); exit 1; }; };
   5586   fi
   5587 fi
   5588 
   5589 
   5590 # Check whether --with-bug-report-url was given.
   5591 if test "${with_bug_report_url+set}" = set; then
   5592   withval=$with_bug_report_url;
   5593 else
   5594   withval="http://llvm.org/bugs/"
   5595 fi
   5596 
   5597 
   5598 cat >>confdefs.h <<_ACEOF
   5599 #define BUG_REPORT_URL "$withval"
   5600 _ACEOF
   5601 
   5602 
   5603 # Check whether --enable-libffi was given.
   5604 if test "${enable_libffi+set}" = set; then
   5605   enableval=$enable_libffi; case "$enableval" in
   5606     yes) llvm_cv_enable_libffi="yes" ;;
   5607     no)  llvm_cv_enable_libffi="no"  ;;
   5608     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
   5609 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
   5610    { (exit 1); exit 1; }; } ;;
   5611   esac
   5612 else
   5613   llvm_cv_enable_libffi=no
   5614 fi
   5615 
   5616 
   5617 
   5618 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   5619 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   5620 if test "${lt_cv_path_NM+set}" = set; then
   5621   echo $ECHO_N "(cached) $ECHO_C" >&6
   5622 else
   5623   if test -n "$NM"; then
   5624   # Let the user override the test.
   5625   lt_cv_path_NM="$NM"
   5626 else
   5627   lt_nm_to_check="${ac_tool_prefix}nm"
   5628   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5629     lt_nm_to_check="$lt_nm_to_check nm"
   5630   fi
   5631   for lt_tmp_nm in $lt_nm_to_check; do
   5632     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   5633     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5634       IFS="$lt_save_ifs"
   5635       test -z "$ac_dir" && ac_dir=.
   5636       tmp_nm="$ac_dir/$lt_tmp_nm"
   5637       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   5638 	# Check to see if the nm accepts a BSD-compat flag.
   5639 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   5640 	#   nm: unknown option "B" ignored
   5641 	# Tru64's nm complains that /dev/null is an invalid object file
   5642 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   5643 	*/dev/null* | *'Invalid file or object type'*)
   5644 	  lt_cv_path_NM="$tmp_nm -B"
   5645 	  break
   5646 	  ;;
   5647 	*)
   5648 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5649 	  */dev/null*)
   5650 	    lt_cv_path_NM="$tmp_nm -p"
   5651 	    break
   5652 	    ;;
   5653 	  *)
   5654 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5655 	    continue # so that we can try to find one that supports BSD flags
   5656 	    ;;
   5657 	  esac
   5658 	  ;;
   5659 	esac
   5660       fi
   5661     done
   5662     IFS="$lt_save_ifs"
   5663   done
   5664   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   5665 fi
   5666 fi
   5667 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   5668 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   5669 NM="$lt_cv_path_NM"
   5670 
   5671 
   5672 
   5673 { echo "$as_me:$LINENO: checking for GNU make" >&5
   5674 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
   5675 if test "${llvm_cv_gnu_make_command+set}" = set; then
   5676   echo $ECHO_N "(cached) $ECHO_C" >&6
   5677 else
   5678   llvm_cv_gnu_make_command=''
   5679  for a in "$MAKE" make gmake gnumake ; do
   5680   if test -z "$a" ; then continue ; fi ;
   5681   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
   5682   then
   5683    llvm_cv_gnu_make_command=$a ;
   5684    break;
   5685   fi
   5686  done
   5687 fi
   5688 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
   5689 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
   5690  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
   5691    ifGNUmake='' ;
   5692  else
   5693    ifGNUmake='#' ;
   5694    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
   5695 echo "${ECHO_T}\"Not found\"" >&6; };
   5696  fi
   5697 
   5698 
   5699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   5701 LN_S=$as_ln_s
   5702 if test "$LN_S" = "ln -s"; then
   5703   { echo "$as_me:$LINENO: result: yes" >&5
   5704 echo "${ECHO_T}yes" >&6; }
   5705 else
   5706   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5707 echo "${ECHO_T}no, using $LN_S" >&6; }
   5708 fi
   5709 
   5710 # Extract the first word of "cmp", so it can be a program name with args.
   5711 set dummy cmp; ac_word=$2
   5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5714 if test "${ac_cv_path_CMP+set}" = set; then
   5715   echo $ECHO_N "(cached) $ECHO_C" >&6
   5716 else
   5717   case $CMP in
   5718   [\\/]* | ?:[\\/]*)
   5719   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
   5720   ;;
   5721   *)
   5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5723 for as_dir in $PATH
   5724 do
   5725   IFS=$as_save_IFS
   5726   test -z "$as_dir" && as_dir=.
   5727   for ac_exec_ext in '' $ac_executable_extensions; do
   5728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5729     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
   5730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5731     break 2
   5732   fi
   5733 done
   5734 done
   5735 IFS=$as_save_IFS
   5736 
   5737   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
   5738   ;;
   5739 esac
   5740 fi
   5741 CMP=$ac_cv_path_CMP
   5742 if test -n "$CMP"; then
   5743   { echo "$as_me:$LINENO: result: $CMP" >&5
   5744 echo "${ECHO_T}$CMP" >&6; }
   5745 else
   5746   { echo "$as_me:$LINENO: result: no" >&5
   5747 echo "${ECHO_T}no" >&6; }
   5748 fi
   5749 
   5750 
   5751 # Extract the first word of "cp", so it can be a program name with args.
   5752 set dummy cp; ac_word=$2
   5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5755 if test "${ac_cv_path_CP+set}" = set; then
   5756   echo $ECHO_N "(cached) $ECHO_C" >&6
   5757 else
   5758   case $CP in
   5759   [\\/]* | ?:[\\/]*)
   5760   ac_cv_path_CP="$CP" # Let the user override the test with a path.
   5761   ;;
   5762   *)
   5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5764 for as_dir in $PATH
   5765 do
   5766   IFS=$as_save_IFS
   5767   test -z "$as_dir" && as_dir=.
   5768   for ac_exec_ext in '' $ac_executable_extensions; do
   5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5770     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
   5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5772     break 2
   5773   fi
   5774 done
   5775 done
   5776 IFS=$as_save_IFS
   5777 
   5778   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
   5779   ;;
   5780 esac
   5781 fi
   5782 CP=$ac_cv_path_CP
   5783 if test -n "$CP"; then
   5784   { echo "$as_me:$LINENO: result: $CP" >&5
   5785 echo "${ECHO_T}$CP" >&6; }
   5786 else
   5787   { echo "$as_me:$LINENO: result: no" >&5
   5788 echo "${ECHO_T}no" >&6; }
   5789 fi
   5790 
   5791 
   5792 # Extract the first word of "date", so it can be a program name with args.
   5793 set dummy date; ac_word=$2
   5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5796 if test "${ac_cv_path_DATE+set}" = set; then
   5797   echo $ECHO_N "(cached) $ECHO_C" >&6
   5798 else
   5799   case $DATE in
   5800   [\\/]* | ?:[\\/]*)
   5801   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
   5802   ;;
   5803   *)
   5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5805 for as_dir in $PATH
   5806 do
   5807   IFS=$as_save_IFS
   5808   test -z "$as_dir" && as_dir=.
   5809   for ac_exec_ext in '' $ac_executable_extensions; do
   5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5811     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
   5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5813     break 2
   5814   fi
   5815 done
   5816 done
   5817 IFS=$as_save_IFS
   5818 
   5819   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
   5820   ;;
   5821 esac
   5822 fi
   5823 DATE=$ac_cv_path_DATE
   5824 if test -n "$DATE"; then
   5825   { echo "$as_me:$LINENO: result: $DATE" >&5
   5826 echo "${ECHO_T}$DATE" >&6; }
   5827 else
   5828   { echo "$as_me:$LINENO: result: no" >&5
   5829 echo "${ECHO_T}no" >&6; }
   5830 fi
   5831 
   5832 
   5833 # Extract the first word of "find", so it can be a program name with args.
   5834 set dummy find; ac_word=$2
   5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5837 if test "${ac_cv_path_FIND+set}" = set; then
   5838   echo $ECHO_N "(cached) $ECHO_C" >&6
   5839 else
   5840   case $FIND in
   5841   [\\/]* | ?:[\\/]*)
   5842   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
   5843   ;;
   5844   *)
   5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5846 for as_dir in $PATH
   5847 do
   5848   IFS=$as_save_IFS
   5849   test -z "$as_dir" && as_dir=.
   5850   for ac_exec_ext in '' $ac_executable_extensions; do
   5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5852     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
   5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5854     break 2
   5855   fi
   5856 done
   5857 done
   5858 IFS=$as_save_IFS
   5859 
   5860   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
   5861   ;;
   5862 esac
   5863 fi
   5864 FIND=$ac_cv_path_FIND
   5865 if test -n "$FIND"; then
   5866   { echo "$as_me:$LINENO: result: $FIND" >&5
   5867 echo "${ECHO_T}$FIND" >&6; }
   5868 else
   5869   { echo "$as_me:$LINENO: result: no" >&5
   5870 echo "${ECHO_T}no" >&6; }
   5871 fi
   5872 
   5873 
   5874 # Extract the first word of "grep", so it can be a program name with args.
   5875 set dummy grep; ac_word=$2
   5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5878 if test "${ac_cv_path_GREP+set}" = set; then
   5879   echo $ECHO_N "(cached) $ECHO_C" >&6
   5880 else
   5881   case $GREP in
   5882   [\\/]* | ?:[\\/]*)
   5883   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
   5884   ;;
   5885   *)
   5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5887 for as_dir in $PATH
   5888 do
   5889   IFS=$as_save_IFS
   5890   test -z "$as_dir" && as_dir=.
   5891   for ac_exec_ext in '' $ac_executable_extensions; do
   5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5893     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
   5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5895     break 2
   5896   fi
   5897 done
   5898 done
   5899 IFS=$as_save_IFS
   5900 
   5901   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
   5902   ;;
   5903 esac
   5904 fi
   5905 GREP=$ac_cv_path_GREP
   5906 if test -n "$GREP"; then
   5907   { echo "$as_me:$LINENO: result: $GREP" >&5
   5908 echo "${ECHO_T}$GREP" >&6; }
   5909 else
   5910   { echo "$as_me:$LINENO: result: no" >&5
   5911 echo "${ECHO_T}no" >&6; }
   5912 fi
   5913 
   5914 
   5915 # Extract the first word of "mkdir", so it can be a program name with args.
   5916 set dummy mkdir; ac_word=$2
   5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5919 if test "${ac_cv_path_MKDIR+set}" = set; then
   5920   echo $ECHO_N "(cached) $ECHO_C" >&6
   5921 else
   5922   case $MKDIR in
   5923   [\\/]* | ?:[\\/]*)
   5924   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
   5925   ;;
   5926   *)
   5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5928 for as_dir in $PATH
   5929 do
   5930   IFS=$as_save_IFS
   5931   test -z "$as_dir" && as_dir=.
   5932   for ac_exec_ext in '' $ac_executable_extensions; do
   5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5934     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
   5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5936     break 2
   5937   fi
   5938 done
   5939 done
   5940 IFS=$as_save_IFS
   5941 
   5942   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
   5943   ;;
   5944 esac
   5945 fi
   5946 MKDIR=$ac_cv_path_MKDIR
   5947 if test -n "$MKDIR"; then
   5948   { echo "$as_me:$LINENO: result: $MKDIR" >&5
   5949 echo "${ECHO_T}$MKDIR" >&6; }
   5950 else
   5951   { echo "$as_me:$LINENO: result: no" >&5
   5952 echo "${ECHO_T}no" >&6; }
   5953 fi
   5954 
   5955 
   5956 # Extract the first word of "mv", so it can be a program name with args.
   5957 set dummy mv; ac_word=$2
   5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5960 if test "${ac_cv_path_MV+set}" = set; then
   5961   echo $ECHO_N "(cached) $ECHO_C" >&6
   5962 else
   5963   case $MV in
   5964   [\\/]* | ?:[\\/]*)
   5965   ac_cv_path_MV="$MV" # Let the user override the test with a path.
   5966   ;;
   5967   *)
   5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5969 for as_dir in $PATH
   5970 do
   5971   IFS=$as_save_IFS
   5972   test -z "$as_dir" && as_dir=.
   5973   for ac_exec_ext in '' $ac_executable_extensions; do
   5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   5975     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
   5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5977     break 2
   5978   fi
   5979 done
   5980 done
   5981 IFS=$as_save_IFS
   5982 
   5983   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
   5984   ;;
   5985 esac
   5986 fi
   5987 MV=$ac_cv_path_MV
   5988 if test -n "$MV"; then
   5989   { echo "$as_me:$LINENO: result: $MV" >&5
   5990 echo "${ECHO_T}$MV" >&6; }
   5991 else
   5992   { echo "$as_me:$LINENO: result: no" >&5
   5993 echo "${ECHO_T}no" >&6; }
   5994 fi
   5995 
   5996 
   5997 if test -n "$ac_tool_prefix"; then
   5998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6002 if test "${ac_cv_prog_RANLIB+set}" = set; then
   6003   echo $ECHO_N "(cached) $ECHO_C" >&6
   6004 else
   6005   if test -n "$RANLIB"; then
   6006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6007 else
   6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6009 for as_dir in $PATH
   6010 do
   6011   IFS=$as_save_IFS
   6012   test -z "$as_dir" && as_dir=.
   6013   for ac_exec_ext in '' $ac_executable_extensions; do
   6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6017     break 2
   6018   fi
   6019 done
   6020 done
   6021 IFS=$as_save_IFS
   6022 
   6023 fi
   6024 fi
   6025 RANLIB=$ac_cv_prog_RANLIB
   6026 if test -n "$RANLIB"; then
   6027   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   6028 echo "${ECHO_T}$RANLIB" >&6; }
   6029 else
   6030   { echo "$as_me:$LINENO: result: no" >&5
   6031 echo "${ECHO_T}no" >&6; }
   6032 fi
   6033 
   6034 
   6035 fi
   6036 if test -z "$ac_cv_prog_RANLIB"; then
   6037   ac_ct_RANLIB=$RANLIB
   6038   # Extract the first word of "ranlib", so it can be a program name with args.
   6039 set dummy ranlib; ac_word=$2
   6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   6043   echo $ECHO_N "(cached) $ECHO_C" >&6
   6044 else
   6045   if test -n "$ac_ct_RANLIB"; then
   6046   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6047 else
   6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6049 for as_dir in $PATH
   6050 do
   6051   IFS=$as_save_IFS
   6052   test -z "$as_dir" && as_dir=.
   6053   for ac_exec_ext in '' $ac_executable_extensions; do
   6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6055     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6057     break 2
   6058   fi
   6059 done
   6060 done
   6061 IFS=$as_save_IFS
   6062 
   6063 fi
   6064 fi
   6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6066 if test -n "$ac_ct_RANLIB"; then
   6067   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6069 else
   6070   { echo "$as_me:$LINENO: result: no" >&5
   6071 echo "${ECHO_T}no" >&6; }
   6072 fi
   6073 
   6074   if test "x$ac_ct_RANLIB" = x; then
   6075     RANLIB=":"
   6076   else
   6077     case $cross_compiling:$ac_tool_warned in
   6078 yes:)
   6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6080 whose name does not start with the host triplet.  If you think this
   6081 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6083 whose name does not start with the host triplet.  If you think this
   6084 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6085 ac_tool_warned=yes ;;
   6086 esac
   6087     RANLIB=$ac_ct_RANLIB
   6088   fi
   6089 else
   6090   RANLIB="$ac_cv_prog_RANLIB"
   6091 fi
   6092 
   6093 if test -n "$ac_tool_prefix"; then
   6094   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6095 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6098 if test "${ac_cv_prog_AR+set}" = set; then
   6099   echo $ECHO_N "(cached) $ECHO_C" >&6
   6100 else
   6101   if test -n "$AR"; then
   6102   ac_cv_prog_AR="$AR" # Let the user override the test.
   6103 else
   6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6105 for as_dir in $PATH
   6106 do
   6107   IFS=$as_save_IFS
   6108   test -z "$as_dir" && as_dir=.
   6109   for ac_exec_ext in '' $ac_executable_extensions; do
   6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6111     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6113     break 2
   6114   fi
   6115 done
   6116 done
   6117 IFS=$as_save_IFS
   6118 
   6119 fi
   6120 fi
   6121 AR=$ac_cv_prog_AR
   6122 if test -n "$AR"; then
   6123   { echo "$as_me:$LINENO: result: $AR" >&5
   6124 echo "${ECHO_T}$AR" >&6; }
   6125 else
   6126   { echo "$as_me:$LINENO: result: no" >&5
   6127 echo "${ECHO_T}no" >&6; }
   6128 fi
   6129 
   6130 
   6131 fi
   6132 if test -z "$ac_cv_prog_AR"; then
   6133   ac_ct_AR=$AR
   6134   # Extract the first word of "ar", so it can be a program name with args.
   6135 set dummy ar; ac_word=$2
   6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6139   echo $ECHO_N "(cached) $ECHO_C" >&6
   6140 else
   6141   if test -n "$ac_ct_AR"; then
   6142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6143 else
   6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6145 for as_dir in $PATH
   6146 do
   6147   IFS=$as_save_IFS
   6148   test -z "$as_dir" && as_dir=.
   6149   for ac_exec_ext in '' $ac_executable_extensions; do
   6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6151     ac_cv_prog_ac_ct_AR="ar"
   6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6153     break 2
   6154   fi
   6155 done
   6156 done
   6157 IFS=$as_save_IFS
   6158 
   6159 fi
   6160 fi
   6161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6162 if test -n "$ac_ct_AR"; then
   6163   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6164 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6165 else
   6166   { echo "$as_me:$LINENO: result: no" >&5
   6167 echo "${ECHO_T}no" >&6; }
   6168 fi
   6169 
   6170   if test "x$ac_ct_AR" = x; then
   6171     AR="false"
   6172   else
   6173     case $cross_compiling:$ac_tool_warned in
   6174 yes:)
   6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6176 whose name does not start with the host triplet.  If you think this
   6177 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6179 whose name does not start with the host triplet.  If you think this
   6180 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6181 ac_tool_warned=yes ;;
   6182 esac
   6183     AR=$ac_ct_AR
   6184   fi
   6185 else
   6186   AR="$ac_cv_prog_AR"
   6187 fi
   6188 
   6189 # Extract the first word of "rm", so it can be a program name with args.
   6190 set dummy rm; ac_word=$2
   6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6193 if test "${ac_cv_path_RM+set}" = set; then
   6194   echo $ECHO_N "(cached) $ECHO_C" >&6
   6195 else
   6196   case $RM in
   6197   [\\/]* | ?:[\\/]*)
   6198   ac_cv_path_RM="$RM" # Let the user override the test with a path.
   6199   ;;
   6200   *)
   6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6202 for as_dir in $PATH
   6203 do
   6204   IFS=$as_save_IFS
   6205   test -z "$as_dir" && as_dir=.
   6206   for ac_exec_ext in '' $ac_executable_extensions; do
   6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6208     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
   6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6210     break 2
   6211   fi
   6212 done
   6213 done
   6214 IFS=$as_save_IFS
   6215 
   6216   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
   6217   ;;
   6218 esac
   6219 fi
   6220 RM=$ac_cv_path_RM
   6221 if test -n "$RM"; then
   6222   { echo "$as_me:$LINENO: result: $RM" >&5
   6223 echo "${ECHO_T}$RM" >&6; }
   6224 else
   6225   { echo "$as_me:$LINENO: result: no" >&5
   6226 echo "${ECHO_T}no" >&6; }
   6227 fi
   6228 
   6229 
   6230 # Extract the first word of "sed", so it can be a program name with args.
   6231 set dummy sed; ac_word=$2
   6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6234 if test "${ac_cv_path_SED+set}" = set; then
   6235   echo $ECHO_N "(cached) $ECHO_C" >&6
   6236 else
   6237   case $SED in
   6238   [\\/]* | ?:[\\/]*)
   6239   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   6240   ;;
   6241   *)
   6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6243 for as_dir in $PATH
   6244 do
   6245   IFS=$as_save_IFS
   6246   test -z "$as_dir" && as_dir=.
   6247   for ac_exec_ext in '' $ac_executable_extensions; do
   6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6249     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6251     break 2
   6252   fi
   6253 done
   6254 done
   6255 IFS=$as_save_IFS
   6256 
   6257   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
   6258   ;;
   6259 esac
   6260 fi
   6261 SED=$ac_cv_path_SED
   6262 if test -n "$SED"; then
   6263   { echo "$as_me:$LINENO: result: $SED" >&5
   6264 echo "${ECHO_T}$SED" >&6; }
   6265 else
   6266   { echo "$as_me:$LINENO: result: no" >&5
   6267 echo "${ECHO_T}no" >&6; }
   6268 fi
   6269 
   6270 
   6271 # Extract the first word of "tar", so it can be a program name with args.
   6272 set dummy tar; ac_word=$2
   6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6275 if test "${ac_cv_path_TAR+set}" = set; then
   6276   echo $ECHO_N "(cached) $ECHO_C" >&6
   6277 else
   6278   case $TAR in
   6279   [\\/]* | ?:[\\/]*)
   6280   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
   6281   ;;
   6282   *)
   6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6284 for as_dir in $PATH
   6285 do
   6286   IFS=$as_save_IFS
   6287   test -z "$as_dir" && as_dir=.
   6288   for ac_exec_ext in '' $ac_executable_extensions; do
   6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6290     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6292     break 2
   6293   fi
   6294 done
   6295 done
   6296 IFS=$as_save_IFS
   6297 
   6298   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
   6299   ;;
   6300 esac
   6301 fi
   6302 TAR=$ac_cv_path_TAR
   6303 if test -n "$TAR"; then
   6304   { echo "$as_me:$LINENO: result: $TAR" >&5
   6305 echo "${ECHO_T}$TAR" >&6; }
   6306 else
   6307   { echo "$as_me:$LINENO: result: no" >&5
   6308 echo "${ECHO_T}no" >&6; }
   6309 fi
   6310 
   6311 
   6312 # Extract the first word of "pwd", so it can be a program name with args.
   6313 set dummy pwd; ac_word=$2
   6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6316 if test "${ac_cv_path_BINPWD+set}" = set; then
   6317   echo $ECHO_N "(cached) $ECHO_C" >&6
   6318 else
   6319   case $BINPWD in
   6320   [\\/]* | ?:[\\/]*)
   6321   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
   6322   ;;
   6323   *)
   6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6325 for as_dir in $PATH
   6326 do
   6327   IFS=$as_save_IFS
   6328   test -z "$as_dir" && as_dir=.
   6329   for ac_exec_ext in '' $ac_executable_extensions; do
   6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6331     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
   6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6333     break 2
   6334   fi
   6335 done
   6336 done
   6337 IFS=$as_save_IFS
   6338 
   6339   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
   6340   ;;
   6341 esac
   6342 fi
   6343 BINPWD=$ac_cv_path_BINPWD
   6344 if test -n "$BINPWD"; then
   6345   { echo "$as_me:$LINENO: result: $BINPWD" >&5
   6346 echo "${ECHO_T}$BINPWD" >&6; }
   6347 else
   6348   { echo "$as_me:$LINENO: result: no" >&5
   6349 echo "${ECHO_T}no" >&6; }
   6350 fi
   6351 
   6352 
   6353 
   6354 # Extract the first word of "Graphviz", so it can be a program name with args.
   6355 set dummy Graphviz; ac_word=$2
   6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
   6359   echo $ECHO_N "(cached) $ECHO_C" >&6
   6360 else
   6361   case $GRAPHVIZ in
   6362   [\\/]* | ?:[\\/]*)
   6363   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
   6364   ;;
   6365   *)
   6366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6367 for as_dir in $PATH
   6368 do
   6369   IFS=$as_save_IFS
   6370   test -z "$as_dir" && as_dir=.
   6371   for ac_exec_ext in '' $ac_executable_extensions; do
   6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6373     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
   6374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6375     break 2
   6376   fi
   6377 done
   6378 done
   6379 IFS=$as_save_IFS
   6380 
   6381   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
   6382   ;;
   6383 esac
   6384 fi
   6385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
   6386 if test -n "$GRAPHVIZ"; then
   6387   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
   6388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
   6389 else
   6390   { echo "$as_me:$LINENO: result: no" >&5
   6391 echo "${ECHO_T}no" >&6; }
   6392 fi
   6393 
   6394 
   6395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
   6396 
   6397 cat >>confdefs.h <<\_ACEOF
   6398 #define HAVE_GRAPHVIZ 1
   6399 _ACEOF
   6400 
   6401     if test "$llvm_cv_os_type" = "MingW" ; then
   6402     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6403   fi
   6404 
   6405 cat >>confdefs.h <<_ACEOF
   6406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
   6407 _ACEOF
   6408 
   6409 fi
   6410 # Extract the first word of "dot", so it can be a program name with args.
   6411 set dummy dot; ac_word=$2
   6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6414 if test "${ac_cv_path_DOT+set}" = set; then
   6415   echo $ECHO_N "(cached) $ECHO_C" >&6
   6416 else
   6417   case $DOT in
   6418   [\\/]* | ?:[\\/]*)
   6419   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
   6420   ;;
   6421   *)
   6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6423 for as_dir in $PATH
   6424 do
   6425   IFS=$as_save_IFS
   6426   test -z "$as_dir" && as_dir=.
   6427   for ac_exec_ext in '' $ac_executable_extensions; do
   6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6429     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
   6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6431     break 2
   6432   fi
   6433 done
   6434 done
   6435 IFS=$as_save_IFS
   6436 
   6437   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
   6438   ;;
   6439 esac
   6440 fi
   6441 DOT=$ac_cv_path_DOT
   6442 if test -n "$DOT"; then
   6443   { echo "$as_me:$LINENO: result: $DOT" >&5
   6444 echo "${ECHO_T}$DOT" >&6; }
   6445 else
   6446   { echo "$as_me:$LINENO: result: no" >&5
   6447 echo "${ECHO_T}no" >&6; }
   6448 fi
   6449 
   6450 
   6451 if test "$DOT" != "echo dot" ; then
   6452 
   6453 cat >>confdefs.h <<\_ACEOF
   6454 #define HAVE_DOT 1
   6455 _ACEOF
   6456 
   6457     if test "$llvm_cv_os_type" = "MingW" ; then
   6458     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6459   fi
   6460 
   6461 cat >>confdefs.h <<_ACEOF
   6462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
   6463 _ACEOF
   6464 
   6465 fi
   6466 # Extract the first word of "fdp", so it can be a program name with args.
   6467 set dummy fdp; ac_word=$2
   6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6470 if test "${ac_cv_path_FDP+set}" = set; then
   6471   echo $ECHO_N "(cached) $ECHO_C" >&6
   6472 else
   6473   case $FDP in
   6474   [\\/]* | ?:[\\/]*)
   6475   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
   6476   ;;
   6477   *)
   6478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6479 for as_dir in $PATH
   6480 do
   6481   IFS=$as_save_IFS
   6482   test -z "$as_dir" && as_dir=.
   6483   for ac_exec_ext in '' $ac_executable_extensions; do
   6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6485     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
   6486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6487     break 2
   6488   fi
   6489 done
   6490 done
   6491 IFS=$as_save_IFS
   6492 
   6493   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
   6494   ;;
   6495 esac
   6496 fi
   6497 FDP=$ac_cv_path_FDP
   6498 if test -n "$FDP"; then
   6499   { echo "$as_me:$LINENO: result: $FDP" >&5
   6500 echo "${ECHO_T}$FDP" >&6; }
   6501 else
   6502   { echo "$as_me:$LINENO: result: no" >&5
   6503 echo "${ECHO_T}no" >&6; }
   6504 fi
   6505 
   6506 
   6507 if test "$FDP" != "echo fdp" ; then
   6508 
   6509 cat >>confdefs.h <<\_ACEOF
   6510 #define HAVE_FDP 1
   6511 _ACEOF
   6512 
   6513     if test "$llvm_cv_os_type" = "MingW" ; then
   6514     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6515   fi
   6516 
   6517 cat >>confdefs.h <<_ACEOF
   6518 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
   6519 _ACEOF
   6520 
   6521 fi
   6522 # Extract the first word of "neato", so it can be a program name with args.
   6523 set dummy neato; ac_word=$2
   6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6526 if test "${ac_cv_path_NEATO+set}" = set; then
   6527   echo $ECHO_N "(cached) $ECHO_C" >&6
   6528 else
   6529   case $NEATO in
   6530   [\\/]* | ?:[\\/]*)
   6531   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
   6532   ;;
   6533   *)
   6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6535 for as_dir in $PATH
   6536 do
   6537   IFS=$as_save_IFS
   6538   test -z "$as_dir" && as_dir=.
   6539   for ac_exec_ext in '' $ac_executable_extensions; do
   6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6541     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
   6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6543     break 2
   6544   fi
   6545 done
   6546 done
   6547 IFS=$as_save_IFS
   6548 
   6549   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
   6550   ;;
   6551 esac
   6552 fi
   6553 NEATO=$ac_cv_path_NEATO
   6554 if test -n "$NEATO"; then
   6555   { echo "$as_me:$LINENO: result: $NEATO" >&5
   6556 echo "${ECHO_T}$NEATO" >&6; }
   6557 else
   6558   { echo "$as_me:$LINENO: result: no" >&5
   6559 echo "${ECHO_T}no" >&6; }
   6560 fi
   6561 
   6562 
   6563 if test "$NEATO" != "echo neato" ; then
   6564 
   6565 cat >>confdefs.h <<\_ACEOF
   6566 #define HAVE_NEATO 1
   6567 _ACEOF
   6568 
   6569     if test "$llvm_cv_os_type" = "MingW" ; then
   6570     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6571   fi
   6572 
   6573 cat >>confdefs.h <<_ACEOF
   6574 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
   6575 _ACEOF
   6576 
   6577 fi
   6578 # Extract the first word of "twopi", so it can be a program name with args.
   6579 set dummy twopi; ac_word=$2
   6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6582 if test "${ac_cv_path_TWOPI+set}" = set; then
   6583   echo $ECHO_N "(cached) $ECHO_C" >&6
   6584 else
   6585   case $TWOPI in
   6586   [\\/]* | ?:[\\/]*)
   6587   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
   6588   ;;
   6589   *)
   6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6591 for as_dir in $PATH
   6592 do
   6593   IFS=$as_save_IFS
   6594   test -z "$as_dir" && as_dir=.
   6595   for ac_exec_ext in '' $ac_executable_extensions; do
   6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6597     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
   6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6599     break 2
   6600   fi
   6601 done
   6602 done
   6603 IFS=$as_save_IFS
   6604 
   6605   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
   6606   ;;
   6607 esac
   6608 fi
   6609 TWOPI=$ac_cv_path_TWOPI
   6610 if test -n "$TWOPI"; then
   6611   { echo "$as_me:$LINENO: result: $TWOPI" >&5
   6612 echo "${ECHO_T}$TWOPI" >&6; }
   6613 else
   6614   { echo "$as_me:$LINENO: result: no" >&5
   6615 echo "${ECHO_T}no" >&6; }
   6616 fi
   6617 
   6618 
   6619 if test "$TWOPI" != "echo twopi" ; then
   6620 
   6621 cat >>confdefs.h <<\_ACEOF
   6622 #define HAVE_TWOPI 1
   6623 _ACEOF
   6624 
   6625     if test "$llvm_cv_os_type" = "MingW" ; then
   6626     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6627   fi
   6628 
   6629 cat >>confdefs.h <<_ACEOF
   6630 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
   6631 _ACEOF
   6632 
   6633 fi
   6634 # Extract the first word of "circo", so it can be a program name with args.
   6635 set dummy circo; ac_word=$2
   6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6638 if test "${ac_cv_path_CIRCO+set}" = set; then
   6639   echo $ECHO_N "(cached) $ECHO_C" >&6
   6640 else
   6641   case $CIRCO in
   6642   [\\/]* | ?:[\\/]*)
   6643   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
   6644   ;;
   6645   *)
   6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6647 for as_dir in $PATH
   6648 do
   6649   IFS=$as_save_IFS
   6650   test -z "$as_dir" && as_dir=.
   6651   for ac_exec_ext in '' $ac_executable_extensions; do
   6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6653     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
   6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6655     break 2
   6656   fi
   6657 done
   6658 done
   6659 IFS=$as_save_IFS
   6660 
   6661   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
   6662   ;;
   6663 esac
   6664 fi
   6665 CIRCO=$ac_cv_path_CIRCO
   6666 if test -n "$CIRCO"; then
   6667   { echo "$as_me:$LINENO: result: $CIRCO" >&5
   6668 echo "${ECHO_T}$CIRCO" >&6; }
   6669 else
   6670   { echo "$as_me:$LINENO: result: no" >&5
   6671 echo "${ECHO_T}no" >&6; }
   6672 fi
   6673 
   6674 
   6675 if test "$CIRCO" != "echo circo" ; then
   6676 
   6677 cat >>confdefs.h <<\_ACEOF
   6678 #define HAVE_CIRCO 1
   6679 _ACEOF
   6680 
   6681     if test "$llvm_cv_os_type" = "MingW" ; then
   6682     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6683   fi
   6684 
   6685 cat >>confdefs.h <<_ACEOF
   6686 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
   6687 _ACEOF
   6688 
   6689 fi
   6690 for ac_prog in gv gsview32
   6691 do
   6692   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6693 set dummy $ac_prog; ac_word=$2
   6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6696 if test "${ac_cv_path_GV+set}" = set; then
   6697   echo $ECHO_N "(cached) $ECHO_C" >&6
   6698 else
   6699   case $GV in
   6700   [\\/]* | ?:[\\/]*)
   6701   ac_cv_path_GV="$GV" # Let the user override the test with a path.
   6702   ;;
   6703   *)
   6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6705 for as_dir in $PATH
   6706 do
   6707   IFS=$as_save_IFS
   6708   test -z "$as_dir" && as_dir=.
   6709   for ac_exec_ext in '' $ac_executable_extensions; do
   6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6711     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
   6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6713     break 2
   6714   fi
   6715 done
   6716 done
   6717 IFS=$as_save_IFS
   6718 
   6719   ;;
   6720 esac
   6721 fi
   6722 GV=$ac_cv_path_GV
   6723 if test -n "$GV"; then
   6724   { echo "$as_me:$LINENO: result: $GV" >&5
   6725 echo "${ECHO_T}$GV" >&6; }
   6726 else
   6727   { echo "$as_me:$LINENO: result: no" >&5
   6728 echo "${ECHO_T}no" >&6; }
   6729 fi
   6730 
   6731 
   6732   test -n "$GV" && break
   6733 done
   6734 test -n "$GV" || GV="echo gv"
   6735 
   6736 if test "$GV" != "echo gv" ; then
   6737 
   6738 cat >>confdefs.h <<\_ACEOF
   6739 #define HAVE_GV 1
   6740 _ACEOF
   6741 
   6742     if test "$llvm_cv_os_type" = "MingW" ; then
   6743     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6744   fi
   6745 
   6746 cat >>confdefs.h <<_ACEOF
   6747 #define LLVM_PATH_GV "$GV${EXEEXT}"
   6748 _ACEOF
   6749 
   6750 fi
   6751 # Extract the first word of "dotty", so it can be a program name with args.
   6752 set dummy dotty; ac_word=$2
   6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6755 if test "${ac_cv_path_DOTTY+set}" = set; then
   6756   echo $ECHO_N "(cached) $ECHO_C" >&6
   6757 else
   6758   case $DOTTY in
   6759   [\\/]* | ?:[\\/]*)
   6760   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
   6761   ;;
   6762   *)
   6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6764 for as_dir in $PATH
   6765 do
   6766   IFS=$as_save_IFS
   6767   test -z "$as_dir" && as_dir=.
   6768   for ac_exec_ext in '' $ac_executable_extensions; do
   6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6770     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
   6771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6772     break 2
   6773   fi
   6774 done
   6775 done
   6776 IFS=$as_save_IFS
   6777 
   6778   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
   6779   ;;
   6780 esac
   6781 fi
   6782 DOTTY=$ac_cv_path_DOTTY
   6783 if test -n "$DOTTY"; then
   6784   { echo "$as_me:$LINENO: result: $DOTTY" >&5
   6785 echo "${ECHO_T}$DOTTY" >&6; }
   6786 else
   6787   { echo "$as_me:$LINENO: result: no" >&5
   6788 echo "${ECHO_T}no" >&6; }
   6789 fi
   6790 
   6791 
   6792 if test "$DOTTY" != "echo dotty" ; then
   6793 
   6794 cat >>confdefs.h <<\_ACEOF
   6795 #define HAVE_DOTTY 1
   6796 _ACEOF
   6797 
   6798     if test "$llvm_cv_os_type" = "MingW" ; then
   6799     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6800   fi
   6801 
   6802 cat >>confdefs.h <<_ACEOF
   6803 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
   6804 _ACEOF
   6805 
   6806 fi
   6807 # Extract the first word of "xdot.py", so it can be a program name with args.
   6808 set dummy xdot.py; ac_word=$2
   6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6811 if test "${ac_cv_path_XDOT_PY+set}" = set; then
   6812   echo $ECHO_N "(cached) $ECHO_C" >&6
   6813 else
   6814   case $XDOT_PY in
   6815   [\\/]* | ?:[\\/]*)
   6816   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
   6817   ;;
   6818   *)
   6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6820 for as_dir in $PATH
   6821 do
   6822   IFS=$as_save_IFS
   6823   test -z "$as_dir" && as_dir=.
   6824   for ac_exec_ext in '' $ac_executable_extensions; do
   6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6826     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
   6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6828     break 2
   6829   fi
   6830 done
   6831 done
   6832 IFS=$as_save_IFS
   6833 
   6834   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
   6835   ;;
   6836 esac
   6837 fi
   6838 XDOT_PY=$ac_cv_path_XDOT_PY
   6839 if test -n "$XDOT_PY"; then
   6840   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
   6841 echo "${ECHO_T}$XDOT_PY" >&6; }
   6842 else
   6843   { echo "$as_me:$LINENO: result: no" >&5
   6844 echo "${ECHO_T}no" >&6; }
   6845 fi
   6846 
   6847 
   6848 if test "$XDOT_PY" != "echo xdot.py" ; then
   6849 
   6850 cat >>confdefs.h <<\_ACEOF
   6851 #define HAVE_XDOT_PY 1
   6852 _ACEOF
   6853 
   6854     if test "$llvm_cv_os_type" = "MingW" ; then
   6855     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
   6856   fi
   6857 
   6858 cat >>confdefs.h <<_ACEOF
   6859 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
   6860 _ACEOF
   6861 
   6862 fi
   6863 
   6864 # Find a good install program.  We prefer a C program (faster),
   6865 # so one script is as good as another.  But avoid the broken or
   6866 # incompatible versions:
   6867 # SysV /etc/install, /usr/sbin/install
   6868 # SunOS /usr/etc/install
   6869 # IRIX /sbin/install
   6870 # AIX /bin/install
   6871 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6875 # OS/2's system install, which has a completely different semantic
   6876 # ./install, which can be erroneously created by make from ./install.sh.
   6877 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   6878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   6879 if test -z "$INSTALL"; then
   6880 if test "${ac_cv_path_install+set}" = set; then
   6881   echo $ECHO_N "(cached) $ECHO_C" >&6
   6882 else
   6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6884 for as_dir in $PATH
   6885 do
   6886   IFS=$as_save_IFS
   6887   test -z "$as_dir" && as_dir=.
   6888   # Account for people who put trailing slashes in PATH elements.
   6889 case $as_dir/ in
   6890   ./ | .// | /cC/* | \
   6891   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6892   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   6893   /usr/ucb/* ) ;;
   6894   *)
   6895     # OSF1 and SCO ODT 3.0 have their own names for install.
   6896     # Don't use installbsd from OSF since it installs stuff as root
   6897     # by default.
   6898     for ac_prog in ginstall scoinst install; do
   6899       for ac_exec_ext in '' $ac_executable_extensions; do
   6900 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
   6901 	  if test $ac_prog = install &&
   6902 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6903 	    # AIX install.  It has an incompatible calling convention.
   6904 	    :
   6905 	  elif test $ac_prog = install &&
   6906 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6907 	    # program-specific install script used by HP pwplus--don't use.
   6908 	    :
   6909 	  else
   6910 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6911 	    break 3
   6912 	  fi
   6913 	fi
   6914       done
   6915     done
   6916     ;;
   6917 esac
   6918 done
   6919 IFS=$as_save_IFS
   6920 
   6921 
   6922 fi
   6923   if test "${ac_cv_path_install+set}" = set; then
   6924     INSTALL=$ac_cv_path_install
   6925   else
   6926     # As a last resort, use the slow shell script.  Don't cache a
   6927     # value for INSTALL within a source directory, because that will
   6928     # break other packages using the cache if that directory is
   6929     # removed, or if the value is a relative name.
   6930     INSTALL=$ac_install_sh
   6931   fi
   6932 fi
   6933 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   6934 echo "${ECHO_T}$INSTALL" >&6; }
   6935 
   6936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   6937 # It thinks the first close brace ends the variable substitution.
   6938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6939 
   6940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6941 
   6942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6943 
   6944 case "$INSTALL" in
   6945  [\\/$]* | ?:[\\/]* ) ;;
   6946  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
   6947 esac
   6948 
   6949 # Extract the first word of "bzip2", so it can be a program name with args.
   6950 set dummy bzip2; ac_word=$2
   6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6953 if test "${ac_cv_path_BZIP2+set}" = set; then
   6954   echo $ECHO_N "(cached) $ECHO_C" >&6
   6955 else
   6956   case $BZIP2 in
   6957   [\\/]* | ?:[\\/]*)
   6958   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
   6959   ;;
   6960   *)
   6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6962 for as_dir in $PATH
   6963 do
   6964   IFS=$as_save_IFS
   6965   test -z "$as_dir" && as_dir=.
   6966   for ac_exec_ext in '' $ac_executable_extensions; do
   6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   6968     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
   6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6970     break 2
   6971   fi
   6972 done
   6973 done
   6974 IFS=$as_save_IFS
   6975 
   6976   ;;
   6977 esac
   6978 fi
   6979 BZIP2=$ac_cv_path_BZIP2
   6980 if test -n "$BZIP2"; then
   6981   { echo "$as_me:$LINENO: result: $BZIP2" >&5
   6982 echo "${ECHO_T}$BZIP2" >&6; }
   6983 else
   6984   { echo "$as_me:$LINENO: result: no" >&5
   6985 echo "${ECHO_T}no" >&6; }
   6986 fi
   6987 
   6988 
   6989 # Extract the first word of "cat", so it can be a program name with args.
   6990 set dummy cat; ac_word=$2
   6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6993 if test "${ac_cv_path_CAT+set}" = set; then
   6994   echo $ECHO_N "(cached) $ECHO_C" >&6
   6995 else
   6996   case $CAT in
   6997   [\\/]* | ?:[\\/]*)
   6998   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
   6999   ;;
   7000   *)
   7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7002 for as_dir in $PATH
   7003 do
   7004   IFS=$as_save_IFS
   7005   test -z "$as_dir" && as_dir=.
   7006   for ac_exec_ext in '' $ac_executable_extensions; do
   7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7008     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7010     break 2
   7011   fi
   7012 done
   7013 done
   7014 IFS=$as_save_IFS
   7015 
   7016   ;;
   7017 esac
   7018 fi
   7019 CAT=$ac_cv_path_CAT
   7020 if test -n "$CAT"; then
   7021   { echo "$as_me:$LINENO: result: $CAT" >&5
   7022 echo "${ECHO_T}$CAT" >&6; }
   7023 else
   7024   { echo "$as_me:$LINENO: result: no" >&5
   7025 echo "${ECHO_T}no" >&6; }
   7026 fi
   7027 
   7028 
   7029 # Extract the first word of "doxygen", so it can be a program name with args.
   7030 set dummy doxygen; ac_word=$2
   7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7033 if test "${ac_cv_path_DOXYGEN+set}" = set; then
   7034   echo $ECHO_N "(cached) $ECHO_C" >&6
   7035 else
   7036   case $DOXYGEN in
   7037   [\\/]* | ?:[\\/]*)
   7038   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   7039   ;;
   7040   *)
   7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7042 for as_dir in $PATH
   7043 do
   7044   IFS=$as_save_IFS
   7045   test -z "$as_dir" && as_dir=.
   7046   for ac_exec_ext in '' $ac_executable_extensions; do
   7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7048     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7050     break 2
   7051   fi
   7052 done
   7053 done
   7054 IFS=$as_save_IFS
   7055 
   7056   ;;
   7057 esac
   7058 fi
   7059 DOXYGEN=$ac_cv_path_DOXYGEN
   7060 if test -n "$DOXYGEN"; then
   7061   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
   7062 echo "${ECHO_T}$DOXYGEN" >&6; }
   7063 else
   7064   { echo "$as_me:$LINENO: result: no" >&5
   7065 echo "${ECHO_T}no" >&6; }
   7066 fi
   7067 
   7068 
   7069 # Extract the first word of "groff", so it can be a program name with args.
   7070 set dummy groff; ac_word=$2
   7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7073 if test "${ac_cv_path_GROFF+set}" = set; then
   7074   echo $ECHO_N "(cached) $ECHO_C" >&6
   7075 else
   7076   case $GROFF in
   7077   [\\/]* | ?:[\\/]*)
   7078   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
   7079   ;;
   7080   *)
   7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7082 for as_dir in $PATH
   7083 do
   7084   IFS=$as_save_IFS
   7085   test -z "$as_dir" && as_dir=.
   7086   for ac_exec_ext in '' $ac_executable_extensions; do
   7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7088     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7090     break 2
   7091   fi
   7092 done
   7093 done
   7094 IFS=$as_save_IFS
   7095 
   7096   ;;
   7097 esac
   7098 fi
   7099 GROFF=$ac_cv_path_GROFF
   7100 if test -n "$GROFF"; then
   7101   { echo "$as_me:$LINENO: result: $GROFF" >&5
   7102 echo "${ECHO_T}$GROFF" >&6; }
   7103 else
   7104   { echo "$as_me:$LINENO: result: no" >&5
   7105 echo "${ECHO_T}no" >&6; }
   7106 fi
   7107 
   7108 
   7109 # Extract the first word of "gzip", so it can be a program name with args.
   7110 set dummy gzip; ac_word=$2
   7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7113 if test "${ac_cv_path_GZIPBIN+set}" = set; then
   7114   echo $ECHO_N "(cached) $ECHO_C" >&6
   7115 else
   7116   case $GZIPBIN in
   7117   [\\/]* | ?:[\\/]*)
   7118   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
   7119   ;;
   7120   *)
   7121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7122 for as_dir in $PATH
   7123 do
   7124   IFS=$as_save_IFS
   7125   test -z "$as_dir" && as_dir=.
   7126   for ac_exec_ext in '' $ac_executable_extensions; do
   7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7128     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
   7129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7130     break 2
   7131   fi
   7132 done
   7133 done
   7134 IFS=$as_save_IFS
   7135 
   7136   ;;
   7137 esac
   7138 fi
   7139 GZIPBIN=$ac_cv_path_GZIPBIN
   7140 if test -n "$GZIPBIN"; then
   7141   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
   7142 echo "${ECHO_T}$GZIPBIN" >&6; }
   7143 else
   7144   { echo "$as_me:$LINENO: result: no" >&5
   7145 echo "${ECHO_T}no" >&6; }
   7146 fi
   7147 
   7148 
   7149 # Extract the first word of "pod2html", so it can be a program name with args.
   7150 set dummy pod2html; ac_word=$2
   7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7153 if test "${ac_cv_path_POD2HTML+set}" = set; then
   7154   echo $ECHO_N "(cached) $ECHO_C" >&6
   7155 else
   7156   case $POD2HTML in
   7157   [\\/]* | ?:[\\/]*)
   7158   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
   7159   ;;
   7160   *)
   7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7162 for as_dir in $PATH
   7163 do
   7164   IFS=$as_save_IFS
   7165   test -z "$as_dir" && as_dir=.
   7166   for ac_exec_ext in '' $ac_executable_extensions; do
   7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7168     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
   7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7170     break 2
   7171   fi
   7172 done
   7173 done
   7174 IFS=$as_save_IFS
   7175 
   7176   ;;
   7177 esac
   7178 fi
   7179 POD2HTML=$ac_cv_path_POD2HTML
   7180 if test -n "$POD2HTML"; then
   7181   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
   7182 echo "${ECHO_T}$POD2HTML" >&6; }
   7183 else
   7184   { echo "$as_me:$LINENO: result: no" >&5
   7185 echo "${ECHO_T}no" >&6; }
   7186 fi
   7187 
   7188 
   7189 # Extract the first word of "pod2man", so it can be a program name with args.
   7190 set dummy pod2man; ac_word=$2
   7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7193 if test "${ac_cv_path_POD2MAN+set}" = set; then
   7194   echo $ECHO_N "(cached) $ECHO_C" >&6
   7195 else
   7196   case $POD2MAN in
   7197   [\\/]* | ?:[\\/]*)
   7198   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
   7199   ;;
   7200   *)
   7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7202 for as_dir in $PATH
   7203 do
   7204   IFS=$as_save_IFS
   7205   test -z "$as_dir" && as_dir=.
   7206   for ac_exec_ext in '' $ac_executable_extensions; do
   7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7208     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
   7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7210     break 2
   7211   fi
   7212 done
   7213 done
   7214 IFS=$as_save_IFS
   7215 
   7216   ;;
   7217 esac
   7218 fi
   7219 POD2MAN=$ac_cv_path_POD2MAN
   7220 if test -n "$POD2MAN"; then
   7221   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
   7222 echo "${ECHO_T}$POD2MAN" >&6; }
   7223 else
   7224   { echo "$as_me:$LINENO: result: no" >&5
   7225 echo "${ECHO_T}no" >&6; }
   7226 fi
   7227 
   7228 
   7229 # Extract the first word of "pdfroff", so it can be a program name with args.
   7230 set dummy pdfroff; ac_word=$2
   7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7233 if test "${ac_cv_path_PDFROFF+set}" = set; then
   7234   echo $ECHO_N "(cached) $ECHO_C" >&6
   7235 else
   7236   case $PDFROFF in
   7237   [\\/]* | ?:[\\/]*)
   7238   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
   7239   ;;
   7240   *)
   7241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7242 for as_dir in $PATH
   7243 do
   7244   IFS=$as_save_IFS
   7245   test -z "$as_dir" && as_dir=.
   7246   for ac_exec_ext in '' $ac_executable_extensions; do
   7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7248     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
   7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7250     break 2
   7251   fi
   7252 done
   7253 done
   7254 IFS=$as_save_IFS
   7255 
   7256   ;;
   7257 esac
   7258 fi
   7259 PDFROFF=$ac_cv_path_PDFROFF
   7260 if test -n "$PDFROFF"; then
   7261   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
   7262 echo "${ECHO_T}$PDFROFF" >&6; }
   7263 else
   7264   { echo "$as_me:$LINENO: result: no" >&5
   7265 echo "${ECHO_T}no" >&6; }
   7266 fi
   7267 
   7268 
   7269 # Extract the first word of "runtest", so it can be a program name with args.
   7270 set dummy runtest; ac_word=$2
   7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7273 if test "${ac_cv_path_RUNTEST+set}" = set; then
   7274   echo $ECHO_N "(cached) $ECHO_C" >&6
   7275 else
   7276   case $RUNTEST in
   7277   [\\/]* | ?:[\\/]*)
   7278   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
   7279   ;;
   7280   *)
   7281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7282 for as_dir in $PATH
   7283 do
   7284   IFS=$as_save_IFS
   7285   test -z "$as_dir" && as_dir=.
   7286   for ac_exec_ext in '' $ac_executable_extensions; do
   7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7288     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
   7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7290     break 2
   7291   fi
   7292 done
   7293 done
   7294 IFS=$as_save_IFS
   7295 
   7296   ;;
   7297 esac
   7298 fi
   7299 RUNTEST=$ac_cv_path_RUNTEST
   7300 if test -n "$RUNTEST"; then
   7301   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
   7302 echo "${ECHO_T}$RUNTEST" >&6; }
   7303 else
   7304   { echo "$as_me:$LINENO: result: no" >&5
   7305 echo "${ECHO_T}no" >&6; }
   7306 fi
   7307 
   7308 
   7309 
   7310 no_itcl=true
   7311 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
   7312 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
   7313 
   7314 # Check whether --with-tclinclude was given.
   7315 if test "${with_tclinclude+set}" = set; then
   7316   withval=$with_tclinclude; with_tclinclude=${withval}
   7317 else
   7318   with_tclinclude=''
   7319 fi
   7320 
   7321 if test "${ac_cv_path_tclsh+set}" = set; then
   7322   echo $ECHO_N "(cached) $ECHO_C" >&6
   7323 else
   7324 
   7325 if test x"${with_tclinclude}" != x ; then
   7326   if test -f ${with_tclinclude}/tclsh ; then
   7327     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
   7328   elif test -f ${with_tclinclude}/src/tclsh ; then
   7329     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
   7330   else
   7331     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
   7332 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
   7333    { (exit 1); exit 1; }; }
   7334   fi
   7335 fi
   7336 fi
   7337 
   7338 
   7339 if test x"${ac_cv_path_tclsh}" = x ; then
   7340   { echo "$as_me:$LINENO: result: none" >&5
   7341 echo "${ECHO_T}none" >&6; }
   7342   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
   7343 do
   7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7345 set dummy $ac_prog; ac_word=$2
   7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7348 if test "${ac_cv_path_TCLSH+set}" = set; then
   7349   echo $ECHO_N "(cached) $ECHO_C" >&6
   7350 else
   7351   case $TCLSH in
   7352   [\\/]* | ?:[\\/]*)
   7353   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
   7354   ;;
   7355   *)
   7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7357 for as_dir in $PATH
   7358 do
   7359   IFS=$as_save_IFS
   7360   test -z "$as_dir" && as_dir=.
   7361   for ac_exec_ext in '' $ac_executable_extensions; do
   7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7363     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
   7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7365     break 2
   7366   fi
   7367 done
   7368 done
   7369 IFS=$as_save_IFS
   7370 
   7371   ;;
   7372 esac
   7373 fi
   7374 TCLSH=$ac_cv_path_TCLSH
   7375 if test -n "$TCLSH"; then
   7376   { echo "$as_me:$LINENO: result: $TCLSH" >&5
   7377 echo "${ECHO_T}$TCLSH" >&6; }
   7378 else
   7379   { echo "$as_me:$LINENO: result: no" >&5
   7380 echo "${ECHO_T}no" >&6; }
   7381 fi
   7382 
   7383 
   7384   test -n "$TCLSH" && break
   7385 done
   7386 
   7387   if test x"${TCLSH}" = x ; then
   7388     ac_cv_path_tclsh='';
   7389   else
   7390     ac_cv_path_tclsh="${TCLSH}";
   7391   fi
   7392 else
   7393   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
   7394 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
   7395   TCLSH="${ac_cv_path_tclsh}"
   7396 
   7397 fi
   7398 
   7399 # Extract the first word of "zip", so it can be a program name with args.
   7400 set dummy zip; ac_word=$2
   7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7403 if test "${ac_cv_path_ZIP+set}" = set; then
   7404   echo $ECHO_N "(cached) $ECHO_C" >&6
   7405 else
   7406   case $ZIP in
   7407   [\\/]* | ?:[\\/]*)
   7408   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
   7409   ;;
   7410   *)
   7411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7412 for as_dir in $PATH
   7413 do
   7414   IFS=$as_save_IFS
   7415   test -z "$as_dir" && as_dir=.
   7416   for ac_exec_ext in '' $ac_executable_extensions; do
   7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7418     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
   7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7420     break 2
   7421   fi
   7422 done
   7423 done
   7424 IFS=$as_save_IFS
   7425 
   7426   ;;
   7427 esac
   7428 fi
   7429 ZIP=$ac_cv_path_ZIP
   7430 if test -n "$ZIP"; then
   7431   { echo "$as_me:$LINENO: result: $ZIP" >&5
   7432 echo "${ECHO_T}$ZIP" >&6; }
   7433 else
   7434   { echo "$as_me:$LINENO: result: no" >&5
   7435 echo "${ECHO_T}no" >&6; }
   7436 fi
   7437 
   7438 
   7439 for ac_prog in ocamlc
   7440 do
   7441   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7442 set dummy $ac_prog; ac_word=$2
   7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7445 if test "${ac_cv_path_OCAMLC+set}" = set; then
   7446   echo $ECHO_N "(cached) $ECHO_C" >&6
   7447 else
   7448   case $OCAMLC in
   7449   [\\/]* | ?:[\\/]*)
   7450   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
   7451   ;;
   7452   *)
   7453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7454 for as_dir in $PATH
   7455 do
   7456   IFS=$as_save_IFS
   7457   test -z "$as_dir" && as_dir=.
   7458   for ac_exec_ext in '' $ac_executable_extensions; do
   7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7460     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
   7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7462     break 2
   7463   fi
   7464 done
   7465 done
   7466 IFS=$as_save_IFS
   7467 
   7468   ;;
   7469 esac
   7470 fi
   7471 OCAMLC=$ac_cv_path_OCAMLC
   7472 if test -n "$OCAMLC"; then
   7473   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
   7474 echo "${ECHO_T}$OCAMLC" >&6; }
   7475 else
   7476   { echo "$as_me:$LINENO: result: no" >&5
   7477 echo "${ECHO_T}no" >&6; }
   7478 fi
   7479 
   7480 
   7481   test -n "$OCAMLC" && break
   7482 done
   7483 
   7484 for ac_prog in ocamlopt
   7485 do
   7486   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7487 set dummy $ac_prog; ac_word=$2
   7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7490 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
   7491   echo $ECHO_N "(cached) $ECHO_C" >&6
   7492 else
   7493   case $OCAMLOPT in
   7494   [\\/]* | ?:[\\/]*)
   7495   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
   7496   ;;
   7497   *)
   7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7499 for as_dir in $PATH
   7500 do
   7501   IFS=$as_save_IFS
   7502   test -z "$as_dir" && as_dir=.
   7503   for ac_exec_ext in '' $ac_executable_extensions; do
   7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7505     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
   7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7507     break 2
   7508   fi
   7509 done
   7510 done
   7511 IFS=$as_save_IFS
   7512 
   7513   ;;
   7514 esac
   7515 fi
   7516 OCAMLOPT=$ac_cv_path_OCAMLOPT
   7517 if test -n "$OCAMLOPT"; then
   7518   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
   7519 echo "${ECHO_T}$OCAMLOPT" >&6; }
   7520 else
   7521   { echo "$as_me:$LINENO: result: no" >&5
   7522 echo "${ECHO_T}no" >&6; }
   7523 fi
   7524 
   7525 
   7526   test -n "$OCAMLOPT" && break
   7527 done
   7528 
   7529 for ac_prog in ocamldep
   7530 do
   7531   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7532 set dummy $ac_prog; ac_word=$2
   7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7535 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
   7536   echo $ECHO_N "(cached) $ECHO_C" >&6
   7537 else
   7538   case $OCAMLDEP in
   7539   [\\/]* | ?:[\\/]*)
   7540   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
   7541   ;;
   7542   *)
   7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7544 for as_dir in $PATH
   7545 do
   7546   IFS=$as_save_IFS
   7547   test -z "$as_dir" && as_dir=.
   7548   for ac_exec_ext in '' $ac_executable_extensions; do
   7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7550     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
   7551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7552     break 2
   7553   fi
   7554 done
   7555 done
   7556 IFS=$as_save_IFS
   7557 
   7558   ;;
   7559 esac
   7560 fi
   7561 OCAMLDEP=$ac_cv_path_OCAMLDEP
   7562 if test -n "$OCAMLDEP"; then
   7563   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
   7564 echo "${ECHO_T}$OCAMLDEP" >&6; }
   7565 else
   7566   { echo "$as_me:$LINENO: result: no" >&5
   7567 echo "${ECHO_T}no" >&6; }
   7568 fi
   7569 
   7570 
   7571   test -n "$OCAMLDEP" && break
   7572 done
   7573 
   7574 for ac_prog in ocamldoc
   7575 do
   7576   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7577 set dummy $ac_prog; ac_word=$2
   7578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7580 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
   7581   echo $ECHO_N "(cached) $ECHO_C" >&6
   7582 else
   7583   case $OCAMLDOC in
   7584   [\\/]* | ?:[\\/]*)
   7585   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
   7586   ;;
   7587   *)
   7588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7589 for as_dir in $PATH
   7590 do
   7591   IFS=$as_save_IFS
   7592   test -z "$as_dir" && as_dir=.
   7593   for ac_exec_ext in '' $ac_executable_extensions; do
   7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7595     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
   7596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7597     break 2
   7598   fi
   7599 done
   7600 done
   7601 IFS=$as_save_IFS
   7602 
   7603   ;;
   7604 esac
   7605 fi
   7606 OCAMLDOC=$ac_cv_path_OCAMLDOC
   7607 if test -n "$OCAMLDOC"; then
   7608   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
   7609 echo "${ECHO_T}$OCAMLDOC" >&6; }
   7610 else
   7611   { echo "$as_me:$LINENO: result: no" >&5
   7612 echo "${ECHO_T}no" >&6; }
   7613 fi
   7614 
   7615 
   7616   test -n "$OCAMLDOC" && break
   7617 done
   7618 
   7619 for ac_prog in gas as
   7620 do
   7621   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7622 set dummy $ac_prog; ac_word=$2
   7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7625 if test "${ac_cv_path_GAS+set}" = set; then
   7626   echo $ECHO_N "(cached) $ECHO_C" >&6
   7627 else
   7628   case $GAS in
   7629   [\\/]* | ?:[\\/]*)
   7630   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
   7631   ;;
   7632   *)
   7633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7634 for as_dir in $PATH
   7635 do
   7636   IFS=$as_save_IFS
   7637   test -z "$as_dir" && as_dir=.
   7638   for ac_exec_ext in '' $ac_executable_extensions; do
   7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
   7640     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
   7641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7642     break 2
   7643   fi
   7644 done
   7645 done
   7646 IFS=$as_save_IFS
   7647 
   7648   ;;
   7649 esac
   7650 fi
   7651 GAS=$ac_cv_path_GAS
   7652 if test -n "$GAS"; then
   7653   { echo "$as_me:$LINENO: result: $GAS" >&5
   7654 echo "${ECHO_T}$GAS" >&6; }
   7655 else
   7656   { echo "$as_me:$LINENO: result: no" >&5
   7657 echo "${ECHO_T}no" >&6; }
   7658 fi
   7659 
   7660 
   7661   test -n "$GAS" && break
   7662 done
   7663 
   7664 
   7665 { echo "$as_me:$LINENO: checking for linker version" >&5
   7666 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
   7667 if test "${llvm_cv_link_version+set}" = set; then
   7668   echo $ECHO_N "(cached) $ECHO_C" >&6
   7669 else
   7670 
   7671    version_string="$(ld -v 2>&1 | head -1)"
   7672 
   7673    # Check for ld64.
   7674    if (echo "$version_string" | grep -q "ld64"); then
   7675      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
   7676    else
   7677      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
   7678    fi
   7679 
   7680 fi
   7681 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
   7682 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
   7683 
   7684 cat >>confdefs.h <<_ACEOF
   7685 #define HOST_LINK_VERSION "$llvm_cv_link_version"
   7686 _ACEOF
   7687 
   7688 
   7689 
   7690 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
   7691 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
   7692 if test "${llvm_cv_link_use_r+set}" = set; then
   7693   echo $ECHO_N "(cached) $ECHO_C" >&6
   7694 else
   7695    ac_ext=c
   7696 ac_cpp='$CPP $CPPFLAGS'
   7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7700 
   7701   oldcflags="$CFLAGS"
   7702   CFLAGS="$CFLAGS -Wl,-R."
   7703   cat >conftest.$ac_ext <<_ACEOF
   7704 /* confdefs.h.  */
   7705 _ACEOF
   7706 cat confdefs.h >>conftest.$ac_ext
   7707 cat >>conftest.$ac_ext <<_ACEOF
   7708 /* end confdefs.h.  */
   7709 
   7710 int
   7711 main ()
   7712 {
   7713 
   7714   ;
   7715   return 0;
   7716 }
   7717 _ACEOF
   7718 rm -f conftest.$ac_objext conftest$ac_exeext
   7719 if { (ac_try="$ac_link"
   7720 case "(($ac_try" in
   7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7722   *) ac_try_echo=$ac_try;;
   7723 esac
   7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7725   (eval "$ac_link") 2>conftest.er1
   7726   ac_status=$?
   7727   grep -v '^ *+' conftest.er1 >conftest.err
   7728   rm -f conftest.er1
   7729   cat conftest.err >&5
   7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7731   (exit $ac_status); } &&
   7732 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7733   { (case "(($ac_try" in
   7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7735   *) ac_try_echo=$ac_try;;
   7736 esac
   7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7738   (eval "$ac_try") 2>&5
   7739   ac_status=$?
   7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7741   (exit $ac_status); }; } &&
   7742 	 { ac_try='test -s conftest$ac_exeext'
   7743   { (case "(($ac_try" in
   7744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7745   *) ac_try_echo=$ac_try;;
   7746 esac
   7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7748   (eval "$ac_try") 2>&5
   7749   ac_status=$?
   7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7751   (exit $ac_status); }; }; then
   7752   llvm_cv_link_use_r=yes
   7753 else
   7754   echo "$as_me: failed program was:" >&5
   7755 sed 's/^/| /' conftest.$ac_ext >&5
   7756 
   7757 	llvm_cv_link_use_r=no
   7758 fi
   7759 
   7760 rm -f core conftest.err conftest.$ac_objext \
   7761       conftest$ac_exeext conftest.$ac_ext
   7762   CFLAGS="$oldcflags"
   7763   ac_ext=c
   7764 ac_cpp='$CPP $CPPFLAGS'
   7765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7768 
   7769 
   7770 fi
   7771 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
   7772 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
   7773 if test "$llvm_cv_link_use_r" = yes ; then
   7774 
   7775 cat >>confdefs.h <<\_ACEOF
   7776 #define HAVE_LINK_R 1
   7777 _ACEOF
   7778 
   7779   fi
   7780 
   7781 
   7782 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
   7783 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
   7784 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
   7785   echo $ECHO_N "(cached) $ECHO_C" >&6
   7786 else
   7787    ac_ext=c
   7788 ac_cpp='$CPP $CPPFLAGS'
   7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7792 
   7793   oldcflags="$CFLAGS"
   7794   CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7795   cat >conftest.$ac_ext <<_ACEOF
   7796 /* confdefs.h.  */
   7797 _ACEOF
   7798 cat confdefs.h >>conftest.$ac_ext
   7799 cat >>conftest.$ac_ext <<_ACEOF
   7800 /* end confdefs.h.  */
   7801 
   7802 int
   7803 main ()
   7804 {
   7805 
   7806   ;
   7807   return 0;
   7808 }
   7809 _ACEOF
   7810 rm -f conftest.$ac_objext conftest$ac_exeext
   7811 if { (ac_try="$ac_link"
   7812 case "(($ac_try" in
   7813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7814   *) ac_try_echo=$ac_try;;
   7815 esac
   7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7817   (eval "$ac_link") 2>conftest.er1
   7818   ac_status=$?
   7819   grep -v '^ *+' conftest.er1 >conftest.err
   7820   rm -f conftest.er1
   7821   cat conftest.err >&5
   7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7823   (exit $ac_status); } &&
   7824 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7825   { (case "(($ac_try" in
   7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7827   *) ac_try_echo=$ac_try;;
   7828 esac
   7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7830   (eval "$ac_try") 2>&5
   7831   ac_status=$?
   7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7833   (exit $ac_status); }; } &&
   7834 	 { ac_try='test -s conftest$ac_exeext'
   7835   { (case "(($ac_try" in
   7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7837   *) ac_try_echo=$ac_try;;
   7838 esac
   7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7840   (eval "$ac_try") 2>&5
   7841   ac_status=$?
   7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7843   (exit $ac_status); }; }; then
   7844   llvm_cv_link_use_export_dynamic=yes
   7845 else
   7846   echo "$as_me: failed program was:" >&5
   7847 sed 's/^/| /' conftest.$ac_ext >&5
   7848 
   7849 	llvm_cv_link_use_export_dynamic=no
   7850 fi
   7851 
   7852 rm -f core conftest.err conftest.$ac_objext \
   7853       conftest$ac_exeext conftest.$ac_ext
   7854   CFLAGS="$oldcflags"
   7855   ac_ext=c
   7856 ac_cpp='$CPP $CPPFLAGS'
   7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7860 
   7861 
   7862 fi
   7863 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
   7864 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
   7865 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
   7866 
   7867 cat >>confdefs.h <<\_ACEOF
   7868 #define HAVE_LINK_EXPORT_DYNAMIC 1
   7869 _ACEOF
   7870 
   7871   fi
   7872 
   7873 
   7874 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
   7875 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
   7876 if test "${llvm_cv_link_use_version_script+set}" = set; then
   7877   echo $ECHO_N "(cached) $ECHO_C" >&6
   7878 else
   7879    ac_ext=c
   7880 ac_cpp='$CPP $CPPFLAGS'
   7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7884 
   7885   oldcflags="$CFLAGS"
   7886 
   7887   # The following code is from the autoconf manual,
   7888   # "11.13: Limitations of Usual Tools".
   7889   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
   7890   # Use mktemp if possible; otherwise fall back on mkdir,
   7891   # with $RANDOM to make collisions less likely.
   7892   : ${TMPDIR=/tmp}
   7893   {
   7894     tmp=`
   7895       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   7896     ` &&
   7897     test -n "$tmp" && test -d "$tmp"
   7898   } || {
   7899     tmp=$TMPDIR/foo$$-$RANDOM
   7900     (umask 077 && mkdir "$tmp")
   7901   } || exit $?
   7902 
   7903   echo "{" > "$tmp/export.map"
   7904   echo "  global: main;" >> "$tmp/export.map"
   7905   echo "  local: *;" >> "$tmp/export.map"
   7906   echo "};" >> "$tmp/export.map"
   7907 
   7908   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
   7909   cat >conftest.$ac_ext <<_ACEOF
   7910 /* confdefs.h.  */
   7911 _ACEOF
   7912 cat confdefs.h >>conftest.$ac_ext
   7913 cat >>conftest.$ac_ext <<_ACEOF
   7914 /* end confdefs.h.  */
   7915 
   7916 int
   7917 main ()
   7918 {
   7919 
   7920   ;
   7921   return 0;
   7922 }
   7923 _ACEOF
   7924 rm -f conftest.$ac_objext conftest$ac_exeext
   7925 if { (ac_try="$ac_link"
   7926 case "(($ac_try" in
   7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7928   *) ac_try_echo=$ac_try;;
   7929 esac
   7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7931   (eval "$ac_link") 2>conftest.er1
   7932   ac_status=$?
   7933   grep -v '^ *+' conftest.er1 >conftest.err
   7934   rm -f conftest.er1
   7935   cat conftest.err >&5
   7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7937   (exit $ac_status); } &&
   7938 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   7939   { (case "(($ac_try" in
   7940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7941   *) ac_try_echo=$ac_try;;
   7942 esac
   7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7944   (eval "$ac_try") 2>&5
   7945   ac_status=$?
   7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7947   (exit $ac_status); }; } &&
   7948 	 { ac_try='test -s conftest$ac_exeext'
   7949   { (case "(($ac_try" in
   7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7951   *) ac_try_echo=$ac_try;;
   7952 esac
   7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7954   (eval "$ac_try") 2>&5
   7955   ac_status=$?
   7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7957   (exit $ac_status); }; }; then
   7958   llvm_cv_link_use_version_script=yes
   7959 else
   7960   echo "$as_me: failed program was:" >&5
   7961 sed 's/^/| /' conftest.$ac_ext >&5
   7962 
   7963 	llvm_cv_link_use_version_script=no
   7964 fi
   7965 
   7966 rm -f core conftest.err conftest.$ac_objext \
   7967       conftest$ac_exeext conftest.$ac_ext
   7968   rm "$tmp/export.map"
   7969   rmdir "$tmp"
   7970   CFLAGS="$oldcflags"
   7971   ac_ext=c
   7972 ac_cpp='$CPP $CPPFLAGS'
   7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7976 
   7977 
   7978 fi
   7979 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
   7980 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
   7981 if test "$llvm_cv_link_use_version_script" = yes ; then
   7982   HAVE_LINK_VERSION_SCRIPT=1
   7983 
   7984   fi
   7985 
   7986 
   7987 
   7988 
   7989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   7990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   7991 if test "${ac_cv_c_const+set}" = set; then
   7992   echo $ECHO_N "(cached) $ECHO_C" >&6
   7993 else
   7994   cat >conftest.$ac_ext <<_ACEOF
   7995 /* confdefs.h.  */
   7996 _ACEOF
   7997 cat confdefs.h >>conftest.$ac_ext
   7998 cat >>conftest.$ac_ext <<_ACEOF
   7999 /* end confdefs.h.  */
   8000 
   8001 int
   8002 main ()
   8003 {
   8004 /* FIXME: Include the comments suggested by Paul. */
   8005 #ifndef __cplusplus
   8006   /* Ultrix mips cc rejects this.  */
   8007   typedef int charset[2];
   8008   const charset x;
   8009   /* SunOS 4.1.1 cc rejects this.  */
   8010   char const *const *ccp;
   8011   char **p;
   8012   /* NEC SVR4.0.2 mips cc rejects this.  */
   8013   struct point {int x, y;};
   8014   static struct point const zero = {0,0};
   8015   /* AIX XL C 1.02.0.0 rejects this.
   8016      It does not let you subtract one const X* pointer from another in
   8017      an arm of an if-expression whose if-part is not a constant
   8018      expression */
   8019   const char *g = "string";
   8020   ccp = &g + (g ? g-g : 0);
   8021   /* HPUX 7.0 cc rejects these. */
   8022   ++ccp;
   8023   p = (char**) ccp;
   8024   ccp = (char const *const *) p;
   8025   { /* SCO 3.2v4 cc rejects this.  */
   8026     char *t;
   8027     char const *s = 0 ? (char *) 0 : (char const *) 0;
   8028 
   8029     *t++ = 0;
   8030     if (s) return 0;
   8031   }
   8032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   8033     int x[] = {25, 17};
   8034     const int *foo = &x[0];
   8035     ++foo;
   8036   }
   8037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   8038     typedef const int *iptr;
   8039     iptr p = 0;
   8040     ++p;
   8041   }
   8042   { /* AIX XL C 1.02.0.0 rejects this saying
   8043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   8044     struct s { int j; const int *ap[3]; };
   8045     struct s *b; b->j = 5;
   8046   }
   8047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   8048     const int foo = 10;
   8049     if (!foo) return 0;
   8050   }
   8051   return !x[0] && !zero.x;
   8052 #endif
   8053 
   8054   ;
   8055   return 0;
   8056 }
   8057 _ACEOF
   8058 rm -f conftest.$ac_objext
   8059 if { (ac_try="$ac_compile"
   8060 case "(($ac_try" in
   8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8062   *) ac_try_echo=$ac_try;;
   8063 esac
   8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8065   (eval "$ac_compile") 2>conftest.er1
   8066   ac_status=$?
   8067   grep -v '^ *+' conftest.er1 >conftest.err
   8068   rm -f conftest.er1
   8069   cat conftest.err >&5
   8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8071   (exit $ac_status); } &&
   8072 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8073   { (case "(($ac_try" in
   8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8075   *) ac_try_echo=$ac_try;;
   8076 esac
   8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8078   (eval "$ac_try") 2>&5
   8079   ac_status=$?
   8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8081   (exit $ac_status); }; } &&
   8082 	 { ac_try='test -s conftest.$ac_objext'
   8083   { (case "(($ac_try" in
   8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8085   *) ac_try_echo=$ac_try;;
   8086 esac
   8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8088   (eval "$ac_try") 2>&5
   8089   ac_status=$?
   8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8091   (exit $ac_status); }; }; then
   8092   ac_cv_c_const=yes
   8093 else
   8094   echo "$as_me: failed program was:" >&5
   8095 sed 's/^/| /' conftest.$ac_ext >&5
   8096 
   8097 	ac_cv_c_const=no
   8098 fi
   8099 
   8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8101 fi
   8102 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   8103 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   8104 if test $ac_cv_c_const = no; then
   8105 
   8106 cat >>confdefs.h <<\_ACEOF
   8107 #define const
   8108 _ACEOF
   8109 
   8110 fi
   8111 
   8112 
   8113 
   8114 
   8115 
   8116 
   8117 ac_header_dirent=no
   8118 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   8119   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   8120 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   8121 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   8122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8123   echo $ECHO_N "(cached) $ECHO_C" >&6
   8124 else
   8125   cat >conftest.$ac_ext <<_ACEOF
   8126 /* confdefs.h.  */
   8127 _ACEOF
   8128 cat confdefs.h >>conftest.$ac_ext
   8129 cat >>conftest.$ac_ext <<_ACEOF
   8130 /* end confdefs.h.  */
   8131 #include <sys/types.h>
   8132 #include <$ac_hdr>
   8133 
   8134 int
   8135 main ()
   8136 {
   8137 if ((DIR *) 0)
   8138 return 0;
   8139   ;
   8140   return 0;
   8141 }
   8142 _ACEOF
   8143 rm -f conftest.$ac_objext
   8144 if { (ac_try="$ac_compile"
   8145 case "(($ac_try" in
   8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8147   *) ac_try_echo=$ac_try;;
   8148 esac
   8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8150   (eval "$ac_compile") 2>conftest.er1
   8151   ac_status=$?
   8152   grep -v '^ *+' conftest.er1 >conftest.err
   8153   rm -f conftest.er1
   8154   cat conftest.err >&5
   8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8156   (exit $ac_status); } &&
   8157 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8158   { (case "(($ac_try" in
   8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8160   *) ac_try_echo=$ac_try;;
   8161 esac
   8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8163   (eval "$ac_try") 2>&5
   8164   ac_status=$?
   8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8166   (exit $ac_status); }; } &&
   8167 	 { ac_try='test -s conftest.$ac_objext'
   8168   { (case "(($ac_try" in
   8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8170   *) ac_try_echo=$ac_try;;
   8171 esac
   8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8173   (eval "$ac_try") 2>&5
   8174   ac_status=$?
   8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8176   (exit $ac_status); }; }; then
   8177   eval "$as_ac_Header=yes"
   8178 else
   8179   echo "$as_me: failed program was:" >&5
   8180 sed 's/^/| /' conftest.$ac_ext >&5
   8181 
   8182 	eval "$as_ac_Header=no"
   8183 fi
   8184 
   8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8186 fi
   8187 ac_res=`eval echo '${'$as_ac_Header'}'`
   8188 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8189 echo "${ECHO_T}$ac_res" >&6; }
   8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8191   cat >>confdefs.h <<_ACEOF
   8192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   8193 _ACEOF
   8194 
   8195 ac_header_dirent=$ac_hdr; break
   8196 fi
   8197 
   8198 done
   8199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   8200 if test $ac_header_dirent = dirent.h; then
   8201   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8203 if test "${ac_cv_search_opendir+set}" = set; then
   8204   echo $ECHO_N "(cached) $ECHO_C" >&6
   8205 else
   8206   ac_func_search_save_LIBS=$LIBS
   8207 cat >conftest.$ac_ext <<_ACEOF
   8208 /* confdefs.h.  */
   8209 _ACEOF
   8210 cat confdefs.h >>conftest.$ac_ext
   8211 cat >>conftest.$ac_ext <<_ACEOF
   8212 /* end confdefs.h.  */
   8213 
   8214 /* Override any GCC internal prototype to avoid an error.
   8215    Use char because int might match the return type of a GCC
   8216    builtin and then its argument prototype would still apply.  */
   8217 #ifdef __cplusplus
   8218 extern "C"
   8219 #endif
   8220 char opendir ();
   8221 int
   8222 main ()
   8223 {
   8224 return opendir ();
   8225   ;
   8226   return 0;
   8227 }
   8228 _ACEOF
   8229 for ac_lib in '' dir; do
   8230   if test -z "$ac_lib"; then
   8231     ac_res="none required"
   8232   else
   8233     ac_res=-l$ac_lib
   8234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8235   fi
   8236   rm -f conftest.$ac_objext conftest$ac_exeext
   8237 if { (ac_try="$ac_link"
   8238 case "(($ac_try" in
   8239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8240   *) ac_try_echo=$ac_try;;
   8241 esac
   8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8243   (eval "$ac_link") 2>conftest.er1
   8244   ac_status=$?
   8245   grep -v '^ *+' conftest.er1 >conftest.err
   8246   rm -f conftest.er1
   8247   cat conftest.err >&5
   8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8249   (exit $ac_status); } &&
   8250 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8251   { (case "(($ac_try" in
   8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8253   *) ac_try_echo=$ac_try;;
   8254 esac
   8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8256   (eval "$ac_try") 2>&5
   8257   ac_status=$?
   8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8259   (exit $ac_status); }; } &&
   8260 	 { ac_try='test -s conftest$ac_exeext'
   8261   { (case "(($ac_try" in
   8262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8263   *) ac_try_echo=$ac_try;;
   8264 esac
   8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8266   (eval "$ac_try") 2>&5
   8267   ac_status=$?
   8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8269   (exit $ac_status); }; }; then
   8270   ac_cv_search_opendir=$ac_res
   8271 else
   8272   echo "$as_me: failed program was:" >&5
   8273 sed 's/^/| /' conftest.$ac_ext >&5
   8274 
   8275 
   8276 fi
   8277 
   8278 rm -f core conftest.err conftest.$ac_objext \
   8279       conftest$ac_exeext
   8280   if test "${ac_cv_search_opendir+set}" = set; then
   8281   break
   8282 fi
   8283 done
   8284 if test "${ac_cv_search_opendir+set}" = set; then
   8285   :
   8286 else
   8287   ac_cv_search_opendir=no
   8288 fi
   8289 rm conftest.$ac_ext
   8290 LIBS=$ac_func_search_save_LIBS
   8291 fi
   8292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8294 ac_res=$ac_cv_search_opendir
   8295 if test "$ac_res" != no; then
   8296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8297 
   8298 fi
   8299 
   8300 else
   8301   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   8302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   8303 if test "${ac_cv_search_opendir+set}" = set; then
   8304   echo $ECHO_N "(cached) $ECHO_C" >&6
   8305 else
   8306   ac_func_search_save_LIBS=$LIBS
   8307 cat >conftest.$ac_ext <<_ACEOF
   8308 /* confdefs.h.  */
   8309 _ACEOF
   8310 cat confdefs.h >>conftest.$ac_ext
   8311 cat >>conftest.$ac_ext <<_ACEOF
   8312 /* end confdefs.h.  */
   8313 
   8314 /* Override any GCC internal prototype to avoid an error.
   8315    Use char because int might match the return type of a GCC
   8316    builtin and then its argument prototype would still apply.  */
   8317 #ifdef __cplusplus
   8318 extern "C"
   8319 #endif
   8320 char opendir ();
   8321 int
   8322 main ()
   8323 {
   8324 return opendir ();
   8325   ;
   8326   return 0;
   8327 }
   8328 _ACEOF
   8329 for ac_lib in '' x; do
   8330   if test -z "$ac_lib"; then
   8331     ac_res="none required"
   8332   else
   8333     ac_res=-l$ac_lib
   8334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8335   fi
   8336   rm -f conftest.$ac_objext conftest$ac_exeext
   8337 if { (ac_try="$ac_link"
   8338 case "(($ac_try" in
   8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8340   *) ac_try_echo=$ac_try;;
   8341 esac
   8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8343   (eval "$ac_link") 2>conftest.er1
   8344   ac_status=$?
   8345   grep -v '^ *+' conftest.er1 >conftest.err
   8346   rm -f conftest.er1
   8347   cat conftest.err >&5
   8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8349   (exit $ac_status); } &&
   8350 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
   8351   { (case "(($ac_try" in
   8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8353   *) ac_try_echo=$ac_try;;
   8354 esac
   8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8356   (eval "$ac_try") 2>&5
   8357   ac_status=$?
   8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8359   (exit $ac_status); }; } &&
   8360 	 { ac_try='test -s conftest$ac_exeext'
   8361   { (case "(($ac_try" in
   8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8363   *) ac_try_echo=$ac_try;;
   8364 esac
   8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8366   (eval "$ac_try") 2>&5
   8367   ac_status=$?
   8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8369   (exit $ac_status); }; }; then
   8370   ac_cv_search_opendir=$ac_res
   8371 else
   8372   echo "$as_me: failed program was:" >&5
   8373 sed 's/^/| /' conftest.$ac_ext >&5
   8374 
   8375 
   8376 fi
   8377 
   8378 rm -f core conftest.err conftest.$ac_objext \
   8379       conftest$ac_exeext
   8380   if test "${ac_cv_search_opendir+set}" = set; then
   8381   break
   8382 fi
   8383 done
   8384 if test "${ac_cv_search_opendir+set}" = set; then
   8385   :
   8386 else
   8387   ac_cv_search_opendir=no
   8388 fi
   8389 rm conftest.$ac_ext
   8390 LIBS=$ac_func_search_save_LIBS
   8391 fi
   8392 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   8393 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   8394 ac_res=$ac_cv_search_opendir
   8395 if test "$ac_res" != no; then
   8396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8397 
   8398 fi
   8399 
   8400 fi
   8401 
   8402 
   8403 for ac_header in dlfcn.h
   8404 do
   8405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8407   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8410   echo $ECHO_N "(cached) $ECHO_C" >&6
   8411 fi
   8412 ac_res=`eval echo '${'$as_ac_Header'}'`
   8413 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8414 echo "${ECHO_T}$ac_res" >&6; }
   8415 else
   8416   # Is the header compilable?
   8417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8419 cat >conftest.$ac_ext <<_ACEOF
   8420 /* confdefs.h.  */
   8421 _ACEOF
   8422 cat confdefs.h >>conftest.$ac_ext
   8423 cat >>conftest.$ac_ext <<_ACEOF
   8424 /* end confdefs.h.  */
   8425 $ac_includes_default
   8426 #include <$ac_header>
   8427 _ACEOF
   8428 rm -f conftest.$ac_objext
   8429 if { (ac_try="$ac_compile"
   8430 case "(($ac_try" in
   8431   *\"* | *\`* | *\\*) ac_try_echo=