Home | History | Annotate | Download | only in LLVM
      1 #! /bin/sh

      2 # Guess values for system-dependent variables and create Makefiles.

      3 # Generated by GNU Autoconf 2.61 for llvm 3.0.

      4 #

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

      6 #

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

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

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

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

     11 #

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

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

     14 ## M4sh Initialization.  ##

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

     16 
     17 # Be more Bourne compatible

     18 DUALCASE=1; export DUALCASE # for MKS sh

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

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

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

     37 # Avoid depending upon Character Ranges.

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

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

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

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

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

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

     69 # splitting by setting IFS to empty value.)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    438   # case at line end.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   1951 # whose full name contains unusual characters.

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

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

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

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

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

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

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

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

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

   2135 # of exeext.

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

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

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

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

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

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

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

   2147 # subsequent execution test works.

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

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

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

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

   2172 # Autoconf.

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

   2181 	# certainly right.

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

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

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

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

   2192 	# actually working.

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

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

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

   2278 # `rm'.

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

   2582 #include <stdio.h>

   2583 #include <sys/types.h>

   2584 #include <sys/stat.h>

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

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

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

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

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

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

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

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

   2854        choke me
   2855 #endif

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

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

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

   3075   # with a fresh cross-compiler works.

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

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

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

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

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

   3087 # include <limits.h>

   3088 #else

   3089 # include <assert.h>

   3090 #endif

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

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

   3121   # can be detected and how.

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

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

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

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

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

   3180   # with a fresh cross-compiler works.

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

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

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

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

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

   3192 # include <limits.h>

   3193 #else

   3194 # include <assert.h>

   3195 #endif

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

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

   3226   # can be detected and how.

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

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

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

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

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

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

   3412 # except with old shells:

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

   3449 # except with old shells:

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

   3486 # except with old shells:

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

   3493 # will get canonicalized.

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

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

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

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

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

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

   3771   # Check for GNU $ac_path_GREP

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

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

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

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

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

   3853   # Check for GNU $ac_path_EGREP

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

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

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

   3922 #include <stdarg.h>

   3923 #include <string.h>

   3924 #include <float.h>

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

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

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

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

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

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

   4015 #include <stdlib.h>

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

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

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

   4019 #else

   4020 # define ISLOWER(c) \

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

   4025 #endif

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

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

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

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

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

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

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

   4166 #include <sys/param.h>

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

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

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

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

   4205 #include <sys/param.h>

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

   4211  not big endian
   4212 #endif

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   5129 # target feature def files.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   5429 	#   nm: unknown option "B" ignored

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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