2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, and
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-binutils-include Specify path to binutils/include/ containing
1499 plugin-api.h file for gold plugin.
1500 --with-bug-report-url Specify the URL where bug reports should be
1501 submitted (default=http://llvm.org/bugs/)
1502 --with-internal-prefix Installation directory for internal files
1503 --with-python path to python
1504 --with-oprofile=<prefix>
1505 Tell OProfile >= 0.9.4 how to symbolize JIT output
1506 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <http://llvm.org/bugs/>.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" || continue
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1584 LLVM configure 3.7.0svn
1585 generated by GNU Autoconf 2.60
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1592 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by LLVM $as_me 3.7.0svn, which was
1601 generated by GNU Autoconf 2.60. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 LLVM_VERSION_MAJOR=3
1955 LLVM_VERSION_MINOR=7
1956 LLVM_VERSION_PATCH=0
1957 LLVM_VERSION_SUFFIX=svn
1960 cat >>confdefs.h <<_ACEOF
1961 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1965 cat >>confdefs.h <<_ACEOF
1966 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1970 cat >>confdefs.h <<_ACEOF
1971 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1975 cat >>confdefs.h <<_ACEOF
1976 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1985 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1994 for ac_dir in autoconf "$srcdir"/autoconf; do
1995 if test -f "$ac_dir/install-sh"; then
1997 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 elif test -f "$ac_dir/install.sh"; then
2001 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 elif test -f "$ac_dir/shtool"; then
2005 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 if test -z "$ac_aux_dir"; then
2010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012 { (exit 1); exit 1; }; }
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025 if test ${srcdir} != "." ; then
2026 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2027 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029 { (exit 1); exit 1; }; }
2033 if test ${srcdir} == "." ; then
2034 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2035 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2036 { echo "$as_me:$LINENO: WARNING: * *" >&5
2037 echo "$as_me: WARNING: * *" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2039 echo "$as_me: WARNING: * WARNING *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * *" >&5
2041 echo "$as_me: WARNING: * *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2043 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * *" >&5
2045 echo "$as_me: WARNING: * *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2047 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * *" >&5
2049 echo "$as_me: WARNING: * *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2051 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 if test -n "$ac_tool_prefix"; then
2063 for ac_prog in clang gcc
2065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2102 test -n "$CC" && break
2105 if test -z "$CC"; then
2107 for ac_prog in clang gcc
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$ac_ct_CC"; then
2117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_ac_ct_CC="$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2137 if test -n "$ac_ct_CC"; then
2138 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2139 echo "${ECHO_T}$ac_ct_CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$ac_ct_CC" && break
2149 if test "x$ac_ct_CC" = x; then
2152 case $cross_compiling:$ac_tool_warned in
2154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet. If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&5
2157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet. If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2160 ac_tool_warned=yes ;;
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO: checking for C compiler version" >&5
2175 ac_compiler=`set X $ac_compile; echo $2`
2176 { (ac_try="$ac_compiler --version >&5"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_compiler --version >&5") 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }
2186 { (ac_try="$ac_compiler -v >&5"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_compiler -v >&5") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }
2196 { (ac_try="$ac_compiler -V >&5"
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202 (eval "$ac_compiler -V >&5") 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2222 ac_clean_files_save=$ac_clean_files
2223 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2224 # Try to create an executable without -o first, disregard a.out.
2225 # It will help us diagnose broken compilers, and finding out an intuition
2227 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2228 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2229 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231 # List of possible output files, starting from the most likely.
2232 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2233 # only as a last resort. b.out is created by i960 compilers.
2234 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2236 # The IRIX 6 linker writes into existing files which may not be
2237 # executable, retaining their permissions. Remove them first so a
2238 # subsequent execution test works.
2240 for ac_file in $ac_files
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 if { (ac_try="$ac_link_default"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link_default") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2262 # so that the user can short-circuit this test for compilers unknown to
2264 for ac_file in $ac_files
2266 test -f "$ac_file" || continue
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271 # We found the default executable, but exeext='' is most
2275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 # We set ac_cv_exeext here because the later test for it is not
2280 # safe: cross compilers may not add the suffix if given an `-o'
2281 # argument, so we may need to know it at that point already.
2282 # Even if this section looks crufty: it has the advantage of
2289 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&2;}
2299 { (exit 77); exit 77; }; }
2302 ac_exeext=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_file" >&5
2304 echo "${ECHO_T}$ac_file" >&6; }
2306 # Check that the compiler produces executables we can run. If not, either
2307 # the compiler is broken, or we cross compile.
2308 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2310 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311 # If not cross compiling, check that we can run a simple program.
2312 if test "$cross_compiling" != yes; then
2313 if { ac_try='./$ac_file'
2314 { (case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_try") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 if test "$cross_compiling" = maybe; then
2328 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6; }
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check that the compiler produces executables we can run. If not, either
2344 # the compiler is broken, or we cross compile.
2345 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2347 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6; }
2350 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2352 if { (ac_try="$ac_link"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_link") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 for ac_file in conftest.exe conftest conftest.*; do
2367 test -f "$ac_file" || continue
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&2;}
2380 { (exit 1); exit 1; }; }
2383 rm -f conftest$ac_cv_exeext
2384 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2385 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2387 rm -f conftest.$ac_ext
2388 EXEEXT=$ac_cv_exeext
2390 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2391 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2392 if test "${ac_cv_objext+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.o conftest.obj
2411 if { (ac_try="$ac_compile"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 for ac_file in conftest.o conftest.obj conftest.*; do
2422 test -f "$ac_file" || continue;
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2442 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443 echo "${ECHO_T}$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2446 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>conftest.er1
2478 grep -v '^ *+' conftest.er1 >conftest.err
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_try") 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_save_c_werror_flag=$ac_c_werror_flag
2526 ac_c_werror_flag=yes
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_try") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_try") 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (ac_try="$ac_compile"
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_compile") 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2614 { (case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_try") 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_try") 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670 { (case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_try") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_try") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_c_werror_flag=$ac_save_c_werror_flag
2706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2708 if test "$ac_test_CFLAGS" = set; then
2709 CFLAGS=$ac_save_CFLAGS
2710 elif test $ac_cv_prog_cc_g = yes; then
2711 if test "$GCC" = yes; then
2717 if test "$GCC" = yes; then
2723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_cc_c89+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 ac_cv_prog_cc_c89=no
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2754 s = g (p, va_arg (v,int));
2759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2760 function prototypes and stuff, but not '\xHH' hex character constants.
2761 These don't provoke an error unfortunately, instead are silently treated
2762 as 'x'. The following induces an error, until -std is added to get
2763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2764 array size at least. It's necessary to write '\x00'==0 to get something
2765 that's true only with -std. */
2766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2769 inside strings and character constants. */
2771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2790 CC="$ac_save_CC $ac_arg"
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2800 grep -v '^ *+' conftest.er1 >conftest.err
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_try") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_try") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cc_c89=$ac_arg
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2833 rm -f core conftest.err conftest.$ac_objext
2834 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836 rm -f conftest.$ac_ext
2841 case "x$ac_cv_prog_cc_c89" in
2843 { echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6; } ;;
2846 { echo "$as_me:$LINENO: result: unsupported" >&5
2847 echo "${ECHO_T}unsupported" >&6; } ;;
2849 CC="$CC $ac_cv_prog_cc_c89"
2850 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2851 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 ac_cpp='$CXXCPP $CPPFLAGS'
2863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2866 if test -z "$CXX"; then
2867 if test -n "$CCC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 for ac_prog in clang++ g++
2873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CXX+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CXX"; then
2881 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CXX"; then
2902 { echo "$as_me:$LINENO: result: $CXX" >&5
2903 echo "${ECHO_T}$CXX" >&6; }
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2910 test -n "$CXX" && break
2913 if test -z "$CXX"; then
2915 for ac_prog in clang++ g++
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_ac_ct_CXX="$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2945 if test -n "$ac_ct_CXX"; then
2946 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2947 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2949 { echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6; }
2954 test -n "$ac_ct_CXX" && break
2957 if test "x$ac_ct_CXX" = x; then
2960 case $cross_compiling:$ac_tool_warned in
2962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2963 whose name does not start with the host triplet. If you think this
2964 configuration is useful to you, please write to autoconf@gnu.org." >&5
2965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2966 whose name does not start with the host triplet. If you think this
2967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2968 ac_tool_warned=yes ;;
2976 # Provide some information about the compiler.
2977 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2978 ac_compiler=`set X $ac_compile; echo $2`
2979 { (ac_try="$ac_compiler --version >&5"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compiler --version >&5") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2989 { (ac_try="$ac_compiler -v >&5"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compiler -v >&5") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }
2999 { (ac_try="$ac_compiler -V >&5"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compiler -V >&5") 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3081 GXX=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CXXFLAGS=${CXXFLAGS+set}
3083 ac_save_CXXFLAGS=$CXXFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3085 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cxx_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3090 ac_cxx_werror_flag=yes
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_cv_prog_cxx_g=yes
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_prog_cxx_g=yes
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3272 if test "$ac_test_CXXFLAGS" = set; then
3273 CXXFLAGS=$ac_save_CXXFLAGS
3274 elif test $ac_cv_prog_cxx_g = yes; then
3275 if test "$GXX" = yes; then
3281 if test "$GXX" = yes; then
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3300 # On Suns, sometimes $CPP names a directory.
3301 if test -n "$CPP" && test -d "$CPP"; then
3304 if test -z "$CPP"; then
3305 if test "${ac_cv_prog_CPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 # Double quotes because CPP needs to be expanded
3309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312 for ac_c_preproc_warn_flag in '' yes
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3327 # include <limits.h>
3329 # include <assert.h>
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3399 if test -z "$ac_cpp_err"; then
3400 # Broken: success on invalid input.
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Passes both tests.
3411 rm -f conftest.err conftest.$ac_ext
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then
3428 { echo "$as_me:$LINENO: result: $CPP" >&5
3429 echo "${ECHO_T}$CPP" >&6; }
3431 for ac_c_preproc_warn_flag in '' yes
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3446 # include <limits.h>
3448 # include <assert.h>
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3474 if test -z "$ac_cpp_err"; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 # Broken: fails on valid input.
3484 rm -f conftest.err conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <ac_nonexistent.h>
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3530 rm -f conftest.err conftest.$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." >&5
3540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&2;}
3542 { (exit 1); exit 1; }; }
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 if test "$CXX" = "clang++" ; then
3553 { echo "$as_me:$LINENO: checking whether clang works" >&5
3554 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3556 ac_cpp='$CXXCPP $CPPFLAGS'
3557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 #if __has_include (<cxxabi.h>)
3572 #if __has_include (<unwind.h>)
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_try") 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3619 { echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6; }
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 { echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6; }
3629 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3630 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3631 { (exit 1); exit 1; }; }
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3645 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3647 ac_cpp='$CXXCPP $CPPFLAGS'
3648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652 llvm_cv_cxx_compiler=unknown
3653 cat >conftest.$ac_ext <<_ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_compile") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 llvm_cv_cxx_compiler=clang
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_compile") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3729 { (case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_try") 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest.$ac_objext'
3739 { (case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_try") 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 llvm_cv_cxx_compiler=gcc
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3767 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3771 if test -d ${srcdir}/projects/test-suite ; then
3772 subdirs="$subdirs projects/test-suite"
3776 if test -d ${srcdir}/projects/llvm-test ; then
3777 subdirs="$subdirs projects/llvm-test"
3781 if test -d ${srcdir}/projects/poolalloc ; then
3782 subdirs="$subdirs projects/poolalloc"
3786 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3787 subdirs="$subdirs projects/llvm-poolalloc"
3791 for i in `ls ${srcdir}/projects`
3793 if test -d ${srcdir}/projects/${i} ; then
3795 safecode) subdirs="$subdirs projects/safecode"
3803 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3804 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3810 # Check whether --enable-polly was given.
3811 if test "${enable_polly+set}" = set; then
3812 enableval=$enable_polly;
3817 case "$enableval" in
3822 default) ENABLE_POLLY=1
3824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3825 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3826 { (exit 1); exit 1; }; } ;;
3830 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833 subdirs="$subdirs tools/polly"
3838 # Make sure we can run config.sub.
3839 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3840 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3841 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3842 { (exit 1); exit 1; }; }
3844 { echo "$as_me:$LINENO: checking build system type" >&5
3845 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3846 if test "${ac_cv_build+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_build_alias=$build_alias
3850 test "x$ac_build_alias" = x &&
3851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3852 test "x$ac_build_alias" = x &&
3853 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3855 { (exit 1); exit 1; }; }
3856 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3859 { (exit 1); exit 1; }; }
3862 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3863 echo "${ECHO_T}$ac_cv_build" >&6; }
3864 case $ac_cv_build in
3866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3867 echo "$as_me: error: invalid value of canonical build" >&2;}
3868 { (exit 1); exit 1; }; };;
3871 ac_save_IFS=$IFS; IFS='-'
3877 # Remember, the first character of IFS is used to create $*,
3878 # except with old shells:
3881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884 { echo "$as_me:$LINENO: checking host system type" >&5
3885 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3886 if test "${ac_cv_host+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test "x$host_alias" = x; then
3890 ac_cv_host=$ac_cv_build
3892 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3893 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3894 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3895 { (exit 1); exit 1; }; }
3899 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3900 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3904 echo "$as_me: error: invalid value of canonical host" >&2;}
3905 { (exit 1); exit 1; }; };;
3908 ac_save_IFS=$IFS; IFS='-'
3914 # Remember, the first character of IFS is used to create $*,
3915 # except with old shells:
3918 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921 { echo "$as_me:$LINENO: checking target system type" >&5
3922 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3923 if test "${ac_cv_target+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test "x$target_alias" = x; then
3927 ac_cv_target=$ac_cv_host
3929 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3932 { (exit 1); exit 1; }; }
3936 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3937 echo "${ECHO_T}$ac_cv_target" >&6; }
3938 case $ac_cv_target in
3940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3941 echo "$as_me: error: invalid value of canonical target" >&2;}
3942 { (exit 1); exit 1; }; };;
3944 target=$ac_cv_target
3945 ac_save_IFS=$IFS; IFS='-'
3951 # Remember, the first character of IFS is used to create $*,
3952 # except with old shells:
3955 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958 # The aliases save the names the user supplied, while $host etc.
3959 # will get canonicalized.
3960 test -n "$target_alias" &&
3961 test "$program_prefix$program_suffix$program_transform_name" = \
3963 program_prefix=${target_alias}-
3965 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3966 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3967 if test "${llvm_cv_os_type+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="AIX"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="IRIX"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="Cygwin"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,-all_load"
3988 llvm_cv_no_link_all_option="-Wl,-noall_load"
3989 llvm_cv_os_type="Darwin"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,-all_load"
3993 llvm_cv_no_link_all_option="-Wl,-noall_load"
3994 llvm_cv_os_type="Minix"
3995 llvm_cv_platform_type="Unix" ;;
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="FreeBSD"
4000 llvm_cv_platform_type="Unix" ;;
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="GNU/kFreeBSD"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="OpenBSD"
4010 llvm_cv_platform_type="Unix" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="NetBSD"
4015 llvm_cv_platform_type="Unix" ;;
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="DragonFly"
4020 llvm_cv_platform_type="Unix" ;;
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Bitrig"
4025 llvm_cv_platform_type="Unix" ;;
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="HP-UX"
4030 llvm_cv_platform_type="Unix" ;;
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="Interix"
4035 llvm_cv_platform_type="Unix" ;;
4037 llvm_cv_link_all_option="-Wl,--whole-archive"
4038 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039 llvm_cv_os_type="Linux"
4040 llvm_cv_platform_type="Unix" ;;
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="GNU"
4045 llvm_cv_platform_type="Unix" ;;
4047 llvm_cv_link_all_option="-Wl,-z,allextract"
4048 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4049 llvm_cv_os_type="SunOS"
4050 llvm_cv_platform_type="Unix" ;;
4052 llvm_cv_link_all_option="-Wl,--whole-archive"
4053 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054 llvm_cv_os_type="Win32"
4055 llvm_cv_platform_type="Win32" ;;
4057 llvm_cv_link_all_option="-Wl,--whole-archive"
4058 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059 llvm_cv_os_type="MingW"
4060 llvm_cv_platform_type="Win32" ;;
4062 llvm_cv_link_all_option="-Wl,--whole-archive"
4063 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4064 llvm_cv_os_type="Haiku"
4065 llvm_cv_platform_type="Unix" ;;
4067 llvm_cv_link_all_option="-Wl,--whole-archive"
4068 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4069 llvm_cv_os_type="Freestanding"
4070 llvm_cv_platform_type="Unix" ;;
4072 llvm_cv_link_all_option="-Wl,--whole-archive"
4073 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4074 llvm_cv_os_type="Freestanding"
4075 llvm_cv_platform_type="Unix" ;;
4077 llvm_cv_link_all_option=""
4078 llvm_cv_no_link_all_option=""
4079 llvm_cv_os_type="Unknown"
4080 llvm_cv_platform_type="Unknown" ;;
4083 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4084 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4086 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4087 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4088 if test "${llvm_cv_target_os_type+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 llvm_cv_target_os_type="AIX" ;;
4095 llvm_cv_target_os_type="IRIX" ;;
4097 llvm_cv_target_os_type="Cygwin" ;;
4099 llvm_cv_target_os_type="Darwin" ;;
4101 llvm_cv_target_os_type="Minix" ;;
4103 llvm_cv_target_os_type="FreeBSD" ;;
4105 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4107 llvm_cv_target_os_type="OpenBSD" ;;
4109 llvm_cv_target_os_type="NetBSD" ;;
4111 llvm_cv_target_os_type="DragonFly" ;;
4113 llvm_cv_target_os_type="Bitrig" ;;
4115 llvm_cv_target_os_type="HP-UX" ;;
4117 llvm_cv_target_os_type="Interix" ;;
4119 llvm_cv_target_os_type="Linux" ;;
4121 llvm_cv_target_os_type="GNU" ;;
4123 llvm_cv_target_os_type="SunOS" ;;
4125 llvm_cv_target_os_type="Win32" ;;
4127 llvm_cv_target_os_type="MingW" ;;
4129 llvm_cv_target_os_type="Haiku" ;;
4131 llvm_cv_target_os_type="RTEMS" ;;
4133 llvm_cv_target_os_type="NativeClient" ;;
4135 llvm_cv_target_os_type="Freestanding" ;;
4137 llvm_cv_target_os_type="PS4" ;;
4139 llvm_cv_target_os_type="Unknown" ;;
4142 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4143 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4145 if test "$llvm_cv_os_type" = "Unknown" ; then
4146 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4147 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4148 { (exit 1); exit 1; }; }
4153 HOST_OS=$llvm_cv_os_type
4155 TARGET_OS=$llvm_cv_target_os_type
4158 LINKALL=$llvm_cv_link_all_option
4160 NOLINKALL=$llvm_cv_no_link_all_option
4163 case $llvm_cv_platform_type in
4166 cat >>confdefs.h <<\_ACEOF
4167 #define LLVM_ON_UNIX 1
4177 cat >>confdefs.h <<\_ACEOF
4178 #define LLVM_ON_WIN32 1
4188 { echo "$as_me:$LINENO: checking target architecture" >&5
4189 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4190 if test "${llvm_cv_target_arch+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 i?86-*) llvm_cv_target_arch="x86" ;;
4195 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4196 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4197 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4198 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4199 arm*-*) llvm_cv_target_arch="ARM" ;;
4200 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4201 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4202 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4203 xcore-*) llvm_cv_target_arch="XCore" ;;
4204 msp430-*) llvm_cv_target_arch="MSP430" ;;
4205 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4206 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4207 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4208 *) llvm_cv_target_arch="Unknown" ;;
4211 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4212 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4214 if test "$llvm_cv_target_arch" = "Unknown" ; then
4215 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4216 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 case "$llvm_cv_target_arch" in
4220 x86) LLVM_NATIVE_ARCH="X86" ;;
4221 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4222 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 ARCH=$llvm_cv_target_arch
4227 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4231 i?86-*) host_arch="x86" ;;
4232 amd64-* | x86_64-*) host_arch="x86_64" ;;
4233 sparc*-*) host_arch="Sparc" ;;
4234 powerpc*-*) host_arch="PowerPC" ;;
4235 arm64*-*) host_arch="AArch64" ;;
4236 arm*-*) host_arch="ARM" ;;
4237 aarch64*-*) host_arch="AArch64" ;;
4238 mips-* | mips64-*) host_arch="Mips" ;;
4239 mipsel-* | mips64el-*) host_arch="Mips" ;;
4240 xcore-*) host_arch="XCore" ;;
4241 msp430-*) host_arch="MSP430" ;;
4242 hexagon-*) host_arch="Hexagon" ;;
4243 s390x-*) host_arch="SystemZ" ;;
4244 *) host_arch="Unknown" ;;
4247 if test "$host_arch" = "Unknown" ; then
4248 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4249 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 HOST_ARCH=$host_arch
4255 if test "$cross_compiling" = yes; then
4256 LLVM_CROSS_COMPILING=1
4259 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4260 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4261 if test "${ac_cv_build_exeext+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4265 ac_cv_build_exeext=.exe
4267 ac_build_prefix=${build_alias}-
4269 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4270 set dummy ${ac_build_prefix}gcc; ac_word=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$BUILD_CC"; then
4277 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 BUILD_CC=$ac_cv_prog_BUILD_CC
4297 if test -n "$BUILD_CC"; then
4298 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4299 echo "${ECHO_T}$BUILD_CC" >&6; }
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 if test -z "$BUILD_CC"; then
4307 # Extract the first word of "gcc", so it can be a program name with args.
4308 set dummy gcc; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$BUILD_CC"; then
4315 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_BUILD_CC="gcc"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 BUILD_CC=$ac_cv_prog_BUILD_CC
4335 if test -n "$BUILD_CC"; then
4336 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4337 echo "${ECHO_T}$BUILD_CC" >&6; }
4339 { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4344 if test -z "$BUILD_CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$BUILD_CC"; then
4353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4364 ac_prog_rejected=yes
4367 ac_cv_prog_BUILD_CC="cc"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 if test $ac_prog_rejected = yes; then
4376 # We found a bogon in the path, so make sure we never use it.
4377 set dummy $ac_cv_prog_BUILD_CC
4379 if test $# != 0; then
4380 # We chose a different compiler from the bogus one.
4381 # However, it has the same basename, so the bogon will be chosen
4382 # first if we set BUILD_CC to just the basename; use the full file name.
4384 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4389 BUILD_CC=$ac_cv_prog_BUILD_CC
4390 if test -n "$BUILD_CC"; then
4391 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4392 echo "${ECHO_T}$BUILD_CC" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4401 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4402 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4403 { (exit 1); exit 1; }; }
4404 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4406 echo 'int main () { return 0; }' > conftest.$ac_ext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4409 (eval $ac_build_link) 2>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 for file in conftest.*; do
4415 *.c | *.o | *.obj | *.dSYM) ;;
4416 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4420 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4421 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4422 { (exit 1); exit 1; }; }
4425 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4430 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4431 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4432 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4433 ac_build_exeext=$BUILD_EXEEXT
4435 ac_build_prefix=${build_alias}-
4436 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4437 set dummy ${ac_build_prefix}g++; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$BUILD_CXX"; then
4444 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4464 if test -n "$BUILD_CXX"; then
4465 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4466 echo "${ECHO_T}$BUILD_CXX" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 if test -z "$BUILD_CXX"; then
4474 # Extract the first word of "g++", so it can be a program name with args.
4475 set dummy g++; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$BUILD_CXX"; then
4482 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_BUILD_CXX="g++"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4502 if test -n "$BUILD_CXX"; then
4503 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4504 echo "${ECHO_T}$BUILD_CXX" >&6; }
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 if test -z "$BUILD_CXX"; then
4512 # Extract the first word of "c++", so it can be a program name with args.
4513 set dummy c++; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$BUILD_CXX"; then
4520 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4531 ac_prog_rejected=yes
4534 ac_cv_prog_BUILD_CXX="c++"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test $ac_prog_rejected = yes; then
4543 # We found a bogon in the path, so make sure we never use it.
4544 set dummy $ac_cv_prog_BUILD_CXX
4546 if test $# != 0; then
4547 # We chose a different compiler from the bogus one.
4548 # However, it has the same basename, so the bogon will be chosen
4549 # first if we set BUILD_CXX to just the basename; use the full file name.
4551 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4556 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4557 if test -n "$BUILD_CXX"; then
4558 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4559 echo "${ECHO_T}$BUILD_CXX" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4569 LLVM_CROSS_COMPILING=0
4573 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4584 # Check whether --enable-libcpp was given.
4585 if test "${enable_libcpp+set}" = set; then
4586 enableval=$enable_libcpp;
4591 case "$enableval" in
4592 yes) ENABLE_LIBCPP=1
4596 default) ENABLE_LIBCPP=0
4598 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4599 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4600 { (exit 1); exit 1; }; } ;;
4603 # Check whether --enable-compiler-version-checks was given.
4604 if test "${enable_compiler_version_checks+set}" = set; then
4605 enableval=$enable_compiler_version_checks;
4610 case "$enableval" in
4615 ac_cpp='$CXXCPP $CPPFLAGS'
4616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 case "$llvm_cv_cxx_compiler" in
4622 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4623 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4631 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4632 #error This version of Clang is too old to build LLVM
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 { echo "$as_me:$LINENO: result: yes" >&5
4671 echo "${ECHO_T}yes" >&6; }
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 { { echo "$as_me:$LINENO: error:
4679 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4680 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4681 bypass these sanity checks." >&5
4682 echo "$as_me: error:
4683 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4684 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4685 bypass these sanity checks." >&2;}
4686 { (exit 1); exit 1; }; }
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 if test "$ENABLE_LIBCPP" -eq 0 ; then
4692 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4693 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4694 llvm_cv_old_cxxflags="$CXXFLAGS"
4695 CXXFLAGS="$CXXFLAGS -std=c++0x"
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4704 std::atomic<float> x(0.0f);
4705 int main() { return (float)x; }
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (ac_try="$ac_link"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_link") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4723 { (case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_try") 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 { { echo "$as_me:$LINENO: error:
4751 We detected a missing feature in the standard C++ library that was known to be
4752 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4753 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4754 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 If this error is incorrect or you need to force things to work, you may pass
4758 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4759 echo "$as_me: error:
4760 We detected a missing feature in the standard C++ library that was known to be
4761 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4762 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4763 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 If this error is incorrect or you need to force things to work, you may pass
4767 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4768 { (exit 1); exit 1; }; }
4771 rm -f core conftest.err conftest.$ac_objext \
4772 conftest$ac_exeext conftest.$ac_ext
4773 CXXFLAGS="$llvm_cv_old_cxxflags"
4777 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4778 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4786 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4787 #error This version of GCC is too old to build LLVM
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4806 { (case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_try") 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_try") 2>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 { echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6; }
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833 { { echo "$as_me:$LINENO: error:
4834 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4835 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4836 bypass these sanity checks." >&5
4837 echo "$as_me: error:
4838 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4839 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4840 bypass these sanity checks." >&2;}
4841 { (exit 1); exit 1; }; }
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu