2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 as_echo_n='sh -c $as_echo_n_body as_echo'
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: llvmbugs@cs.uiuc.edu about your system, including any
237 $0: error possibly output before this message. Then install
238 $0: a modern shell, or manually run the script under such a
239 $0: shell if you do have one."
245 SHELL=${CONFIG_SHELL-/bin/sh}
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
256 # Portably unset VAR.
259 { eval $1=; unset $1;}
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
283 # Create "$as_dir" as a directory, including parents if necessary.
288 -*) as_dir=./$as_dir;;
290 test -d "$as_dir" || eval $as_mkdir_p || {
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321 test -d "$as_dir" && break
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 as_val=`expr "$@" || test $? -eq 1`
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
371 as_status=$?; test $as_status -eq 0 && as_status=1
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
453 # Exit status is that of the last command.
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 elif ln conf$$.file conf$$ 2>/dev/null; then
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
500 test -d ./-p && rmdir ./-p
504 if test -x / >/dev/null 2>&1; then
507 if ls -dL / >/dev/null 2>&1; then
514 if test -d "$1"; then
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 test -n "$DJDIR" || exec 7<&0 </dev/null
538 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
539 # so uname gets run too.
540 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 ac_default_prefix=/usr/local
547 ac_config_libobj_dir=.
554 # Identity of this package.
556 PACKAGE_TARNAME='-llvm-'
557 PACKAGE_VERSION='2.7svn'
558 PACKAGE_STRING='llvm 2.7svn'
559 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
562 ac_unique_file="lib/VMCore/Module.cpp"
563 enable_option_checking=no
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
605 ENABLE_VISIBILITY_INLINES_HIDDEN
632 NO_MISSING_FIELD_INITIALIZERS
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
688 ENABLE_LLVMC_DYNAMIC_PLUGINS
694 LLVM_ENUM_DISASSEMBLERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_ASM_PRINTERS
707 ENABLE_EXPENSIVE_CHECKS
776 program_transform_name
789 enable_option_checking
793 enable_expensive_checks
810 with_cxx_include_root
811 with_cxx_include_arch
812 with_cxx_include_32bit_dir
813 with_cxx_include_64bit_dir
814 with_binutils_include
817 enable_llvmc_dynamic_plugins
823 ac_precious_vars='build_alias
835 ac_subdirs_all='projects/sample
837 projects/llvm-stacker
844 projects/llvm-poolalloc
846 projects/llvm-kernel'
848 # Initialize some variables set by options.
850 ac_init_version=false
851 ac_unrecognized_opts=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
862 program_transform_name=s,x,x,
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1154 -site=* | --site=* | --sit=*)
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-optimized Compile with optimizations enabled (default is NO)
1462 --enable-profiling Compile with profiling enabled (default is NO)
1463 --enable-assertions Compile with assertion checks enabled (default is
1465 --enable-expensive-checks
1466 Compile with expensive debug checks enabled (default
1468 --enable-debug-runtime Build runtime libs with debug symbols (default is
1470 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1471 optimization is on and YES if it's off)
1472 --enable-jit Enable Just In Time Compiling (default is YES)
1473 --enable-doxygen Build doxygen documentation (default is NO)
1474 --enable-threads Use threads if available (default is YES)
1475 --enable-pic Build LLVM with Position Independent Code (default
1477 --enable-targets Build specific host targets: all or
1478 target1,target2,... Valid targets are: host, x86,
1479 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1480 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1481 and cpp (default=all)
1482 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1484 --enable-bindings Build specific language bindings:
1485 all,auto,none,{binding-name} (default=auto)
1486 --enable-libffi Check for the presence of libffi (default is YES)
1487 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1489 --enable-llvmc-dynamic-plugins
1490 Enable dynamic LLVMC plugins (default is YES)
1491 --enable-ltdl-install install libltdl
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1498 --with-llvmgcc Specify location of llvm-gcc driver (default
1500 --with-llvmgxx Specify location of llvm-g++ driver (default
1502 --with-optimize-option Select the compiler options to use for optimized
1504 --with-extra-options Specify additional options to compile LLVM with
1505 --with-ocaml-libdir Specify install location for ocaml bindings (default
1507 --with-c-include-dirs Colon separated list of directories clang will
1509 --with-cxx-include-root Directory with the libstdc++ headers.
1510 --with-cxx-include-arch Architecture of the libstdc++ headers.
1511 --with-cxx-include-32bit-dir
1512 32 bit multilib dir.
1513 --with-cxx-include-64bit-dir
1514 64 bit multilib directory.
1515 --with-binutils-include Specify path to binutils/include/ containing
1516 plugin-api.h file for gold plugin.
1517 --with-tclinclude directory where tcl headers are
1518 --with-udis86=<path> Use udis86 external x86 disassembler library
1519 --with-oprofile=<prefix>
1520 Tell OProfile >= 0.9.4 how to symbolize JIT output
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to <llvmbugs@cs.uiuc.edu>.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 llvm configure 2.7svn
1601 generated by GNU Autoconf 2.65
1603 Copyright (C) 2009 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1607 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_compile
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=$ac_status
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } >/dev/null && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 as_fn_set_status $ac_retval
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851 # the include files in INCLUDES and setting the cache variable VAR
1853 ac_fn_c_check_header_mongrel ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1866 # Is the header compilable?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868 $as_echo_n "checking $2 usability... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875 ac_header_compiler=yes
1877 ac_header_compiler=no
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881 $as_echo "$ac_header_compiler" >&6; }
1883 # Is the header present?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885 $as_echo_n "checking $2 presence... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 if ac_fn_c_try_cpp "$LINENO"; then :
1891 ac_header_preproc=yes
1893 ac_header_preproc=no
1895 rm -f conftest.err conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897 $as_echo "$ac_header_preproc" >&6; }
1899 # So? What about this header?
1900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1911 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1915 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ## ----------------------------------- ##
1920 ## Report this to llvmbugs@cs.uiuc.edu ##
1921 ## ----------------------------------- ##
1923 ) | sed "s/^/$as_me: WARNING: /" >&2
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1931 eval "$3=\$ac_header_compiler"
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_c_check_header_mongrel
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1964 # include <limits.h>
1966 # include <assert.h>
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1993 if ac_fn_c_try_link "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_type
2062 # ac_fn_cxx_try_run LINENO
2063 # ------------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_cxx_try_run ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_cxx_try_run
2103 cat >config.log <<_ACEOF
2104 This file contains any messages produced by compilers while
2105 running configure, to aid debugging if configure makes a mistake.
2107 It was created by llvm $as_me 2.7svn, which was
2108 generated by GNU Autoconf 2.65. Invocation command line was
2120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2132 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 $as_echo "PATH: $as_dir"
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_must_keep_next=false
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2179 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 -* ) ac_must_keep_next=true ;;
2200 as_fn_append ac_configure_args " '$ac_arg'"
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214 # Save into config.log some information that might help in debugging.
2219 ## ---------------- ##
2220 ## Cache variables. ##
2221 ## ---------------- ##
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257 ## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##
2262 for ac_var in $ac_subst_vars
2264 eval ac_val=\$$ac_var
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 $as_echo "$ac_var='\''$ac_val'\''"
2272 if test -n "$ac_subst_files"; then
2274 ## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##
2279 for ac_var in $ac_subst_files
2281 eval ac_val=\$$ac_var
2283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 $as_echo "$ac_var='\''$ac_val'\''"
2290 if test -s confdefs.h; then
2300 test "$ac_signal" != 0 &&
2301 $as_echo "$as_me: caught signal $ac_signal"
2302 $as_echo "$as_me: exit $exit_status"
2304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2308 for ac_signal in 1 2 13 15; do
2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2316 $as_echo "/* confdefs.h */" > confdefs.h
2318 # Predefined preprocessor variables.
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2349 if test -n "$CONFIG_SITE"; then
2350 ac_site_file1=$CONFIG_SITE
2351 elif test "x$prefix" != xNONE; then
2352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
2355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360 test "x$ac_site_file" = xNONE && continue
2361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364 sed 's/^/| /' "$ac_site_file" >&5
2369 if test -r "$cache_file"; then
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 as_fn_append ac_header_list " stdlib.h"
2387 as_fn_append ac_header_list " unistd.h"
2388 as_fn_append ac_header_list " sys/param.h"
2389 # Check that the precious variables saved in the cache have kept the same
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2467 for ac_dir in autoconf "$srcdir"/autoconf; do
2468 for ac_t in install-sh install.sh shtool; do
2469 if test -f "$ac_dir/$ac_t"; then
2471 ac_install_sh="$ac_aux_dir/$ac_t -c"
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491 if test ${srcdir} != "." ; then
2492 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2493 as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
2497 for i in `ls ${srcdir}/projects`
2499 if test -d ${srcdir}/projects/${i} ; then
2504 subdirs="$subdirs projects/sample"
2506 privbracket) subdirs="$subdirs projects/privbracket"
2508 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2510 # llvm-test is the old name of the test-suite, kept here for backwards
2512 llvm-test) subdirs="$subdirs projects/llvm-test"
2514 test-suite) subdirs="$subdirs projects/test-suite"
2516 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2518 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2520 llvm-java) subdirs="$subdirs projects/llvm-java"
2522 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2524 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2526 poolalloc) subdirs="$subdirs projects/poolalloc"
2528 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2532 $as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if test "${ac_cv_build+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2548 ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2561 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2564 ac_save_IFS=$IFS; IFS='-'
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if test "${ac_cv_host+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2594 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2597 ac_save_IFS=$IFS; IFS='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if test "${ac_cv_target+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2615 if test "x$target_alias" = x; then
2616 ac_cv_target=$ac_cv_host
2618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2627 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2648 program_prefix=${target_alias}-
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
2651 $as_echo_n "checking type of operating system we're going to host on... " >&6; }
2652 if test "${llvm_cv_os_type+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2657 llvm_cv_link_all_option="-Wl,--whole-archive"
2658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2659 llvm_cv_os_type="AIX"
2660 llvm_cv_platform_type="Unix" ;;
2662 llvm_cv_link_all_option="-Wl,--whole-archive"
2663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2664 llvm_cv_os_type="IRIX"
2665 llvm_cv_platform_type="Unix" ;;
2667 llvm_cv_link_all_option="-Wl,--whole-archive"
2668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2669 llvm_cv_os_type="Cygwin"
2670 llvm_cv_platform_type="Unix" ;;
2672 llvm_cv_link_all_option="-Wl,-all_load"
2673 llvm_cv_no_link_all_option="-Wl,-noall_load"
2674 llvm_cv_os_type="Darwin"
2675 llvm_cv_platform_type="Unix" ;;
2677 llvm_cv_link_all_option="-Wl,--whole-archive"
2678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2679 llvm_cv_os_type="FreeBSD"
2680 llvm_cv_platform_type="Unix" ;;
2682 llvm_cv_link_all_option="-Wl,--whole-archive"
2683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2684 llvm_cv_os_type="OpenBSD"
2685 llvm_cv_platform_type="Unix" ;;
2687 llvm_cv_link_all_option="-Wl,--whole-archive"
2688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2689 llvm_cv_os_type="NetBSD"
2690 llvm_cv_platform_type="Unix" ;;
2692 llvm_cv_link_all_option="-Wl,--whole-archive"
2693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2694 llvm_cv_os_type="DragonFly"
2695 llvm_cv_platform_type="Unix" ;;
2697 llvm_cv_link_all_option="-Wl,--whole-archive"
2698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2699 llvm_cv_os_type="HP-UX"
2700 llvm_cv_platform_type="Unix" ;;
2702 llvm_cv_link_all_option="-Wl,--whole-archive"
2703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2704 llvm_cv_os_type="Interix"
2705 llvm_cv_platform_type="Unix" ;;
2707 llvm_cv_link_all_option="-Wl,--whole-archive"
2708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2709 llvm_cv_os_type="Linux"
2710 llvm_cv_platform_type="Unix" ;;
2712 llvm_cv_link_all_option="-Wl,-z,allextract"
2713 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2714 llvm_cv_os_type="SunOS"
2715 llvm_cv_platform_type="Unix" ;;
2717 llvm_cv_link_all_option="-Wl,-z,allextract"
2718 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2719 llvm_cv_os_type="AuroraUX"
2720 llvm_cv_platform_type="Unix" ;;
2722 llvm_cv_link_all_option="-Wl,--whole-archive"
2723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2724 llvm_cv_os_type="Win32"
2725 llvm_cv_platform_type="Win32" ;;
2727 llvm_cv_link_all_option="-Wl,--whole-archive"
2728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2729 llvm_cv_os_type="MingW"
2730 llvm_cv_platform_type="Win32" ;;
2732 llvm_cv_link_all_option="-Wl,--whole-archive"
2733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2734 llvm_cv_os_type="Haiku"
2735 llvm_cv_platform_type="Unix" ;;
2737 llvm_cv_link_all_option="-Wl,--whole-archive"
2738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2739 llvm_cv_os_type="Freestanding"
2740 llvm_cv_platform_type="Unix" ;;
2742 llvm_cv_link_all_option="-Wl,--whole-archive"
2743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2744 llvm_cv_os_type="Freestanding"
2745 llvm_cv_platform_type="Unix" ;;
2747 llvm_cv_link_all_option=""
2748 llvm_cv_no_link_all_option=""
2749 llvm_cv_os_type="Unknown"
2750 llvm_cv_platform_type="Unknown" ;;
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
2754 $as_echo "$llvm_cv_os_type" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
2757 $as_echo_n "checking type of operating system we're going to target... " >&6; }
2758 if test "${llvm_cv_target_os_type+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2763 llvm_cv_target_os_type="AIX" ;;
2765 llvm_cv_target_os_type="IRIX" ;;
2767 llvm_cv_target_os_type="Cygwin" ;;
2769 llvm_cv_target_os_type="Darwin" ;;
2771 llvm_cv_target_os_type="FreeBSD" ;;
2773 llvm_cv_target_os_type="OpenBSD" ;;
2775 llvm_cv_target_os_type="NetBSD" ;;
2777 llvm_cv_target_os_type="DragonFly" ;;
2779 llvm_cv_target_os_type="HP-UX" ;;
2781 llvm_cv_target_os_type="Interix" ;;
2783 llvm_cv_target_os_type="Linux" ;;
2785 llvm_cv_target_os_type="SunOS" ;;
2787 llvm_cv_target_os_type="AuroraUX" ;;
2789 llvm_cv_target_os_type="Win32" ;;
2791 llvm_cv_target_os_type="MingW" ;;
2793 llvm_cv_target_os_type="Haiku" ;;
2795 llvm_cv_target_os_type="Freestanding" ;;
2797 llvm_cv_target_os_type="Unknown" ;;
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
2801 $as_echo "$llvm_cv_target_os_type" >&6; }
2803 if test "$llvm_cv_os_type" = "Unknown" ; then
2804 as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5
2809 HOST_OS=$llvm_cv_os_type
2811 TARGET_OS=$llvm_cv_target_os_type
2814 LINKALL=$llvm_cv_link_all_option
2816 NOLINKALL=$llvm_cv_no_link_all_option
2819 case $llvm_cv_platform_type in
2822 $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
2831 $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
2841 $as_echo_n "checking target architecture... " >&6; }
2842 if test "${llvm_cv_target_arch+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2846 i?86-*) llvm_cv_target_arch="x86" ;;
2847 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2848 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2849 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2850 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2851 arm*-*) llvm_cv_target_arch="ARM" ;;
2852 mips-*) llvm_cv_target_arch="Mips" ;;
2853 pic16-*) llvm_cv_target_arch="PIC16" ;;
2854 xcore-*) llvm_cv_target_arch="XCore" ;;
2855 msp430-*) llvm_cv_target_arch="MSP430" ;;
2856 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2857 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2858 *) llvm_cv_target_arch="Unknown" ;;
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
2862 $as_echo "$llvm_cv_target_arch" >&6; }
2864 if test "$llvm_cv_target_arch" = "Unknown" ; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
2866 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2869 # Determine the LLVM native architecture for the target
2870 case "$llvm_cv_target_arch" in
2871 x86) LLVM_NATIVE_ARCH="X86" ;;
2872 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2873 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2876 ARCH=$llvm_cv_target_arch
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2923 if test -z "$ac_cv_prog_CC"; then
2925 # Extract the first word of "gcc", so it can be a program name with args.
2926 set dummy gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_ac_ct_CC="gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955 $as_echo "$ac_ct_CC" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2961 if test "x$ac_ct_CC" = x; then
2964 case $cross_compiling:$ac_tool_warned in
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="${ac_tool_prefix}cc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3017 if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019 set dummy cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037 ac_prog_rejected=yes
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test $ac_prog_rejected = yes; then
3049 # We found a bogon in the path, so make sure we never use it.
3050 set dummy $ac_cv_prog_CC
3052 if test $# != 0; then
3053 # We chose a different compiler from the bogus one.
3054 # However, it has the same basename, so the bogon will be chosen
3055 # first if we set CC to just the basename; use the full file name.
3057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 for ac_prog in cl.exe
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3114 test -n "$CC" && break
3117 if test -z "$CC"; then
3119 for ac_prog in cl.exe
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_ac_ct_CC="$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3158 test -n "$ac_ct_CC" && break
3161 if test "x$ac_ct_CC" = x; then
3164 case $cross_compiling:$ac_tool_warned in
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error "no acceptable C compiler found in \$PATH
3180 See \`config.log' for more details." "$LINENO" 5; }
3182 # Provide some information about the compiler.
3183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186 for ac_option in --version -v -V -qversion; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3196 if test -s conftest.err; then
3198 ... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3202 rm -f conftest.er1 conftest.err
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3218 ac_clean_files_save=$ac_clean_files
3219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220 # Try to create an executable without -o first, disregard a.out.
3221 # It will help us diagnose broken compilers, and finding out an intuition
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227 # The possible output files:
3228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231 for ac_file in $ac_files
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240 if { { ac_try="$ac_link_default"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link_default") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3254 # so that the user can short-circuit this test for compilers unknown to
3256 for ac_file in $ac_files ''
3258 test -f "$ac_file" || continue
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3263 # We found the default executable, but exeext='' is most
3267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3281 test "$ac_cv_exeext" = no && ac_cv_exeext=
3286 if test -z "$ac_file"; then :
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 { as_fn_set_status 77
3295 as_fn_error "C compiler cannot create executables
3296 See \`config.log' for more details." "$LINENO" 5; }; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 $as_echo "$ac_file" >&6; }
3305 ac_exeext=$ac_cv_exeext
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 $as_echo_n "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details." "$LINENO" 5; }
3341 rm -f conftest conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3354 FILE *f = fopen ("conftest.out", "w");
3355 return ferror (f) || fclose (f) != 0;
3361 ac_clean_files="$ac_clean_files conftest.out"
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365 $as_echo_n "checking whether we are cross compiling... " >&6; }
3366 if test "$cross_compiling" != yes; then
3367 { { ac_try="$ac_link"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_link") 2>&5
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }
3378 if { ac_try='./conftest$ac_cv_exeext'
3379 { { case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_try") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; }; then
3391 if test "$cross_compiling" = maybe; then
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error "cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details." "$LINENO" 5; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403 $as_echo "$cross_compiling" >&6; }
3405 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 $as_echo_n "checking for suffix of object files... " >&6; }
3409 if test "${ac_cv_objext+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 rm -f conftest.o conftest.obj
3424 if { { ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_compile") 2>&5
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
3435 for ac_file in conftest.o conftest.obj conftest.*; do
3436 test -f "$ac_file" || continue;
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error "cannot compute suffix of object files: cannot compile
3450 See \`config.log' for more details." "$LINENO" 5; }
3452 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455 $as_echo "$ac_cv_objext" >&6; }
3456 OBJEXT=$ac_cv_objext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_c_try_compile "$LINENO"; then :
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557 $as_echo "$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559 CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561 if test "$GCC" = yes; then
3567 if test "$GCC" = yes; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 ac_cv_prog_cc_c89=no
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3600 s = g (p, va_arg (v,int));
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3643 rm -f conftest.$ac_ext
3648 case "x$ac_cv_prog_cc_c89" in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3677 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3678 # On Suns, sometimes $CPP names a directory.
3679 if test -n "$CPP" && test -d "$CPP"; then
3682 if test -z "$CPP"; then
3683 if test "${ac_cv_prog_CPP+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3686 # Double quotes because CPP needs to be expanded
3687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3690 for ac_c_preproc_warn_flag in '' yes
3692 # Use a header file that comes with gcc, so configuring glibc
3693 # with a fresh cross-compiler works.
3694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3695 # <limits.h> exists even on freestanding compilers.
3696 # On the NeXT, cc -E runs the code through the compiler's parser,
3697 # not just through cpp. "Syntax error" is here to catch this case.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3701 # include <limits.h>
3703 # include <assert.h>
3707 if ac_fn_c_try_cpp "$LINENO"; then :
3710 # Broken: fails on valid input.
3713 rm -f conftest.err conftest.$ac_ext
3715 # OK, works on sane cases. Now check whether nonexistent headers
3716 # can be detected and how.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #include <ac_nonexistent.h>
3721 if ac_fn_c_try_cpp "$LINENO"; then :
3722 # Broken: success on invalid input.
3725 # Passes both tests.
3729 rm -f conftest.err conftest.$ac_ext
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3747 $as_echo "$CPP" >&6; }
3749 for ac_c_preproc_warn_flag in '' yes
3751 # Use a header file that comes with gcc, so configuring glibc
3752 # with a fresh cross-compiler works.
3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754 # <limits.h> exists even on freestanding compilers.
3755 # On the NeXT, cc -E runs the code through the compiler's parser,
3756 # not just through cpp. "Syntax error" is here to catch this case.
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3760 # include <limits.h>
3762 # include <assert.h>
3766 if ac_fn_c_try_cpp "$LINENO"; then :
3769 # Broken: fails on valid input.
3772 rm -f conftest.err conftest.$ac_ext
3774 # OK, works on sane cases. Now check whether nonexistent headers
3775 # can be detected and how.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778 #include <ac_nonexistent.h>
3780 if ac_fn_c_try_cpp "$LINENO"; then :
3781 # Broken: success on invalid input.
3784 # Passes both tests.
3788 rm -f conftest.err conftest.$ac_ext
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then :
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3799 See \`config.log' for more details." "$LINENO" 5; }
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3810 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3811 if test "${ac_cv_path_GREP+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3814 if test -z "$GREP"; then
3815 ac_path_GREP_found=false
3816 # Loop through the user's path and test for each of PROGNAME-LIST
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821 test -z "$as_dir" && as_dir=.
3822 for ac_prog in grep ggrep; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3825 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3826 # Check for GNU ac_path_GREP and select it if it is found.
3827 # Check for GNU $ac_path_GREP
3828 case `"$ac_path_GREP" --version 2>&1` in
3830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3833 $as_echo_n 0123456789 >"conftest.in"
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 $as_echo 'GREP' >> "conftest.nl"
3840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 as_fn_arith $ac_count + 1 && ac_count=$as_val
3843 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_GREP="$ac_path_GREP"
3846 ac_path_GREP_max=$ac_count
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 $ac_path_GREP_found && break 3
3859 if test -z "$ac_cv_path_GREP"; then
3860 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3863 ac_cv_path_GREP=$GREP
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3868 $as_echo "$ac_cv_path_GREP" >&6; }
3869 GREP="$ac_cv_path_GREP"
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3873 $as_echo_n "checking for egrep... " >&6; }
3874 if test "${ac_cv_path_EGREP+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3878 then ac_cv_path_EGREP="$GREP -E"
3880 if test -z "$EGREP"; then
3881 ac_path_EGREP_found=false
3882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 test -z "$as_dir" && as_dir=.
3888 for ac_prog in egrep; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3892 # Check for GNU ac_path_EGREP and select it if it is found.
3893 # Check for GNU $ac_path_EGREP
3894 case `"$ac_path_EGREP" --version 2>&1` in
3896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3899 $as_echo_n 0123456789 >"conftest.in"
3902 cat "conftest.in" "conftest.in" >"conftest.tmp"
3903 mv "conftest.tmp" "conftest.in"
3904 cp "conftest.in" "conftest.nl"
3905 $as_echo 'EGREP' >> "conftest.nl"
3906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908 as_fn_arith $ac_count + 1 && ac_count=$as_val
3909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_EGREP="$ac_path_EGREP"
3912 ac_path_EGREP_max=$ac_count
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 $ac_path_EGREP_found && break 3
3925 if test -z "$ac_cv_path_EGREP"; then
3926 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3929 ac_cv_path_EGREP=$EGREP
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3935 $as_echo "$ac_cv_path_EGREP" >&6; }
3936 EGREP="$ac_cv_path_EGREP"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3940 $as_echo_n "checking for ANSI C header files... " >&6; }
3941 if test "${ac_cv_header_stdc+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960 ac_cv_header_stdc=yes
3962 ac_cv_header_stdc=no
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 if test $ac_cv_header_stdc = yes; then
3967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3974 $EGREP "memchr" >/dev/null 2>&1; then :
3977 ac_cv_header_stdc=no
3983 if test $ac_cv_header_stdc = yes; then
3984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 $EGREP "free" >/dev/null 2>&1; then :
3994 ac_cv_header_stdc=no
4000 if test $ac_cv_header_stdc = yes; then
4001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4002 if test "$cross_compiling" = yes; then :
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4009 #if ((' ' & 0x0FF) == 0x020)
4010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4013 # define ISLOWER(c) \
4014 (('a' <= (c) && (c) <= 'i') \
4015 || ('j' <= (c) && (c) <= 'r') \
4016 || ('s' <= (c) && (c) <= 'z'))
4017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4025 for (i = 0; i < 256; i++)
4026 if (XOR (islower (i), ISLOWER (i))
4027 || toupper (i) != TOUPPER (i))
4032 if ac_fn_c_try_run "$LINENO"; then :
4035 ac_cv_header_stdc=no
4037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4038 conftest.$ac_objext conftest.beam conftest.$ac_ext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4044 $as_echo "$ac_cv_header_stdc" >&6; }
4045 if test $ac_cv_header_stdc = yes; then
4047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4058 eval as_val=\$$as_ac_Header
4059 if test "x$as_val" = x""yes; then :
4060 cat >>confdefs.h <<_ACEOF
4061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4070 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4071 if test "${ac_cv_c_bigendian+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_cv_c_bigendian=unknown
4075 # See if we're dealing with a universal compiler.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #ifndef __APPLE_CC__
4079 not a universal capable compiler
4084 if ac_fn_c_try_compile "$LINENO"; then :
4086 # Check for potential -arch flags. It is not universal unless
4087 # there are at least two -arch flags with different values.
4090 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4091 if test -n "$ac_prev"; then
4093 i?86 | x86_64 | ppc | ppc64)
4094 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4097 ac_cv_c_bigendian=universal
4103 elif test "x$ac_word" = "x-arch"; then
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_c_bigendian = unknown; then
4110 # See if sys/param.h defines the BYTE_ORDER macro.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <sys/types.h>
4114 #include <sys/param.h>
4119 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4120 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 # It does; now see whether it defined to BIG_ENDIAN or not.
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #include <sys/types.h>
4134 #include <sys/param.h>
4139 #if BYTE_ORDER != BIG_ENDIAN
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_c_bigendian=yes
4150 ac_cv_c_bigendian=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 if test $ac_cv_c_bigendian = unknown; then
4157 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4165 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 # It does; now see whether it defined to _BIG_ENDIAN or not.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_c_bigendian=yes
4193 ac_cv_c_bigendian=no
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 if test $ac_cv_c_bigendian = unknown; then
4200 # Compile a test program.
4201 if test "$cross_compiling" = yes; then :
4202 # Try to guess by grepping values from an object file.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 short int ascii_mm[] =
4206 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207 short int ascii_ii[] =
4208 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 int use_ascii (int i) {
4210 return ascii_mm[i] + ascii_ii[i];
4212 short int ebcdic_ii[] =
4213 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4214 short int ebcdic_mm[] =
4215 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216 int use_ebcdic (int i) {
4217 return ebcdic_mm[i] + ebcdic_ii[i];
4224 return use_ascii (foo) == use_ebcdic (foo);
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4231 ac_cv_c_bigendian=yes
4233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4234 if test "$ac_cv_c_bigendian" = unknown; then
4235 ac_cv_c_bigendian=no
4237 # finding both strings is unlikely to happen, but who knows?
4238 ac_cv_c_bigendian=unknown
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 $ac_includes_default
4251 /* Are we little or big endian? From Harbison&Steele. */
4255 char c[sizeof (long int)];
4258 return u.c[sizeof (long int) - 1] == 1;
4264 if ac_fn_c_try_run "$LINENO"; then :
4265 ac_cv_c_bigendian=no
4267 ac_cv_c_bigendian=yes
4269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4270 conftest.$ac_objext conftest.beam conftest.$ac_ext
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4276 $as_echo "$ac_cv_c_bigendian" >&6; }
4277 case $ac_cv_c_bigendian in #(
4286 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4290 as_fn_error "unknown endianness
4291 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4295 if test "$cross_compiling" = yes; then
4296 LLVM_CROSS_COMPILING=1
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4300 $as_echo_n "checking for executable suffix on build platform... " >&6; }
4301 if test "${ac_cv_build_exeext+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4305 ac_cv_build_exeext=.exe
4307 ac_build_prefix=${build_alias}-
4309 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4310 set dummy ${ac_build_prefix}gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4339 $as_echo "$BUILD_CC" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "gcc", so it can be a program name with args.
4348 set dummy gcc; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_BUILD_CC="gcc"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 BUILD_CC=$ac_cv_prog_BUILD_CC
4375 if test -n "$BUILD_CC"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4377 $as_echo "$BUILD_CC" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4384 if test -z "$BUILD_CC"; then
4385 # Extract the first word of "cc", so it can be a program name with args.
4386 set dummy cc; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4404 ac_prog_rejected=yes
4407 ac_cv_prog_BUILD_CC="cc"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test $ac_prog_rejected = yes; then
4416 # We found a bogon in the path, so make sure we never use it.
4417 set dummy $ac_cv_prog_BUILD_CC
4419 if test $# != 0; then
4420 # We chose a different compiler from the bogus one.
4421 # However, it has the same basename, so the bogon will be chosen
4422 # first if we set BUILD_CC to just the basename; use the full file name.
4424 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4429 BUILD_CC=$ac_cv_prog_BUILD_CC
4430 if test -n "$BUILD_CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4432 $as_echo "$BUILD_CC" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4441 test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
4442 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4444 echo 'int main () { return 0; }' > conftest.$ac_ext
4446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
4447 (eval $ac_build_link) 2>&5
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then
4451 for file in conftest.*; do
4453 *.c | *.o | *.obj | *.dSYM) ;;
4454 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4458 as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4461 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4466 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4468 $as_echo "${ac_cv_build_exeext}" >&6; }
4469 ac_build_exeext=$BUILD_EXEEXT
4471 ac_build_prefix=${build_alias}-
4472 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4473 set dummy ${ac_build_prefix}g++; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 if test -n "$BUILD_CXX"; then
4480 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4500 if test -n "$BUILD_CXX"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4502 $as_echo "$BUILD_CXX" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4509 if test -z "$BUILD_CXX"; then
4510 # Extract the first word of "g++", so it can be a program name with args.
4511 set dummy g++; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -n "$BUILD_CXX"; then
4518 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_BUILD_CXX="g++"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4538 if test -n "$BUILD_CXX"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4540 $as_echo "$BUILD_CXX" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4547 if test -z "$BUILD_CXX"; then
4548 # Extract the first word of "c++", so it can be a program name with args.
4549 set dummy c++; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -n "$BUILD_CXX"; then
4556 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4567 ac_prog_rejected=yes
4570 ac_cv_prog_BUILD_CXX="c++"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 if test $ac_prog_rejected = yes; then
4579 # We found a bogon in the path, so make sure we never use it.
4580 set dummy $ac_cv_prog_BUILD_CXX
4582 if test $# != 0; then
4583 # We chose a different compiler from the bogus one.
4584 # However, it has the same basename, so the bogon will be chosen
4585 # first if we set BUILD_CXX to just the basename; use the full file name.
4587 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4592 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593 if test -n "$BUILD_CXX"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4595 $as_echo "$BUILD_CXX" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4605 LLVM_CROSS_COMPILING=0
4609 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4620 # Check whether --enable-optimized was given.
4621 if test "${enable_optimized+set}" = set; then :
4622 enableval=$enable_optimized;
4627 if test ${enableval} = "no" ; then
4631 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4635 # Check whether --enable-profiling was given.
4636 if test "${enable_profiling+set}" = set; then :
4637 enableval=$enable_profiling;
4642 if test ${enableval} = "no" ; then
4646 ENABLE_PROFILING=ENABLE_PROFILING=1
4650 # Check whether --enable-assertions was given.
4651 if test "${enable_assertions+set}" = set; then :
4652 enableval=$enable_assertions;
4657 if test ${enableval} = "yes" ; then
4661 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4665 # Check whether --enable-expensive-checks was given.
4666 if test "${enable_expensive_checks+set}" = set; then :
4667 enableval=$enable_expensive_checks;
4672 if test ${enableval} = "yes" ; then
4673 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4675 EXPENSIVE_CHECKS=yes
4678 ENABLE_EXPENSIVE_CHECKS=
4684 # Check whether --enable-debug-runtime was given.
4685 if test "${enable_debug_runtime+set}" = set; then :
4686 enableval=$enable_debug_runtime;
4691 if test ${enableval} = "no" ; then
4695 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4699 # Check whether --enable-debug-symbols was given.
4700 if test "${enable_debug_symbols+set}" = set; then :
4701 enableval=$enable_debug_symbols;
4706 if test ${enableval} = "no" ; then
4710 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4714 # Check whether --enable-jit was given.
4715 if test "${enable_jit+set}" = set; then :
4716 enableval=$enable_jit;
4721 if test ${enableval} = "no"
4726 case "$llvm_cv_target_arch" in
4727 x86) TARGET_HAS_JIT=1
4729 Sparc) TARGET_HAS_JIT=0
4731 PowerPC) TARGET_HAS_JIT=1
4733 x86_64) TARGET_HAS_JIT=1
4735 Alpha) TARGET_HAS_JIT=1
4737 ARM) TARGET_HAS_JIT=1
4739 Mips) TARGET_HAS_JIT=0
4741 PIC16) TARGET_HAS_JIT=0
4743 XCore) TARGET_HAS_JIT=0
4745 MSP430) TARGET_HAS_JIT=0
4747 SystemZ) TARGET_HAS_JIT=0
4749 Blackfin) TARGET_HAS_JIT=0
4756 # Check whether --enable-doxygen was given.
4757 if test "${enable_doxygen+set}" = set; then :
4758 enableval=$enable_doxygen;
4763 case "$enableval" in
4764 yes) ENABLE_DOXYGEN=1
4766 no) ENABLE_DOXYGEN=0
4768 default) ENABLE_DOXYGEN=0
4770 *) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4773 # Check whether --enable-threads was given.
4774 if test "${enable_threads+set}" = set; then :
4775 enableval=$enable_threads;
4780 case "$enableval" in
4781 yes) ENABLE_THREADS=1
4783 no) ENABLE_THREADS=0
4785 default) ENABLE_THREADS=1
4787 *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_THREADS $ENABLE_THREADS
4795 # Check whether --enable-pic was given.
4796 if test "${enable_pic+set}" = set; then :
4797 enableval=$enable_pic;
4802 case "$enableval" in
4807 default) ENABLE_PIC=1
4809 *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4812 cat >>confdefs.h <<_ACEOF
4813 #define ENABLE_PIC $ENABLE_PIC
4818 # Check whether --enable-targets was given.
4819 if test "${enable_targets+set}" = set; then :
4820 enableval=$enable_targets;
4825 if test "$enableval" = host-only ; then
4828 case "$enableval" in
4829 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4830 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4832 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4833 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4834 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4835 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4836 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4837 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4838 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4839 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4840 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4841 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4842 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4843 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4844 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4845 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4846 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4847 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4848 host) case "$llvm_cv_target_arch" in
4849 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4850 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4851 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4852 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4853 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4854 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4855 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4856 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4857 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4858 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4859 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4860 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4861 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4862 *) as_fn_error "Can not set target to build" "$LINENO" 5 ;;
4864 *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
4869 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4872 # Determine whether we are building LLVM support for the native architecture.
4873 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4874 for a_target in $TARGETS_TO_BUILD; do
4875 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4876 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4878 cat >>confdefs.h <<_ACEOF
4879 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4885 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4886 # target feature def files.
4887 LLVM_ENUM_TARGETS=""
4888 LLVM_ENUM_ASM_PRINTERS=""
4889 LLVM_ENUM_ASM_PARSERS=""
4890 LLVM_ENUM_DISASSEMBLERS=""
4891 for target_to_build in $TARGETS_TO_BUILD; do
4892 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4893 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4894 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4896 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4897 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4899 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4900 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4908 # Check whether --enable-cbe-printf-a was given.
4909 if test "${enable_cbe_printf_a+set}" = set; then :
4910 enableval=$enable_cbe_printf_a;
4915 case "$enableval" in
4916 yes) ENABLE_CBE_PRINTF_A=1
4918 no) ENABLE_CBE_PRINTF_A=0
4920 default) ENABLE_CBE_PRINTF_A=1
4922 *) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4925 cat >>confdefs.h <<_ACEOF
4926 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4931 # Check whether --with-llvmgccdir was given.
4932 if test "${with_llvmgccdir+set}" = set; then :
4933 withval=$with_llvmgccdir;
4939 default) WITH_LLVMGCCDIR=default ;;
4940 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4941 *) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
4945 # Check whether --with-llvmgcc was given.
4946 if test "${with_llvmgcc+set}" = set; then :
4947 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4953 # Check whether --with-llvmgxx was given.
4954 if test "${with_llvmgxx+set}" = set; then :
4955 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4960 if test -n "$LLVMGCC"; then
4961 LLVMGCCCOMMAND="$LLVMGCC"
4964 if test -n "$LLVMGXX"; then
4965 LLVMGXXCOMMAND="$LLVMGXX"
4968 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4969 as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
4972 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4973 as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
4977 # Check whether --with-optimize-option was given.
4978 if test "${with_optimize_option+set}" = set; then :
4979 withval=$with_optimize_option;
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
4985 $as_echo_n "checking optimization flags... " >&6; }
4988 case "$llvm_cv_os_type" in
4989 MingW) optimize_option=-O3 ;;
4990 *) optimize_option=-O2 ;;
4992 *) optimize_option="$withval" ;;
4994 OPTIMIZE_OPTION=$optimize_option
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
4997 $as_echo "$optimize_option" >&6; }
5000 # Check whether --with-extra-options was given.
5001 if test "${with_extra_options+set}" = set; then :
5002 withval=$with_extra_options;
5008 default) EXTRA_OPTIONS= ;;
5009 *) EXTRA_OPTIONS=$withval ;;
5011 EXTRA_OPTIONS=$EXTRA_OPTIONS
5014 # Check whether --enable-bindings was given.
5015 if test "${enable_bindings+set}" = set; then :
5016 enableval=$enable_bindings;
5021 BINDINGS_TO_BUILD=""
5022 case "$enableval" in
5023 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5024 all ) BINDINGS_TO_BUILD="ocaml" ;;
5025 none | no) BINDINGS_TO_BUILD="" ;;
5026 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5027 case "$a_binding" in
5028 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5029 *) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5036 # Check whether --with-ocaml-libdir was given.
5037 if test "${with_ocaml_libdir+set}" = set; then :
5038 withval=$with_ocaml_libdir;
5044 auto) with_ocaml_libdir="$withval" ;;
5045 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5046 *) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5050 # Check whether --with-c-include-dirs was given.
5051 if test "${with_c_include_dirs+set}" = set; then :
5052 withval=$with_c_include_dirs;
5058 cat >>confdefs.h <<_ACEOF
5059 #define C_INCLUDE_DIRS "$withval"
5064 # Check whether --with-cxx-include-root was given.
5065 if test "${with_cxx_include_root+set}" = set; then :
5066 withval=$with_cxx_include_root;
5072 cat >>confdefs.h <<_ACEOF
5073 #define CXX_INCLUDE_ROOT "$withval"
5078 # Check whether --with-cxx-include-arch was given.
5079 if test "${with_cxx_include_arch+set}" = set; then :
5080 withval=$with_cxx_include_arch;
5086 cat >>confdefs.h <<_ACEOF
5087 #define CXX_INCLUDE_ARCH "$withval"
5092 # Check whether --with-cxx-include-32bit-dir was given.
5093 if test "${with_cxx_include_32bit_dir+set}" = set; then :
5094 withval=$with_cxx_include_32bit_dir;
5100 cat >>confdefs.h <<_ACEOF
5101 #define CXX_INCLUDE_32BIT_DIR "$withval"
5106 # Check whether --with-cxx-include-64bit-dir was given.
5107 if test "${with_cxx_include_64bit_dir+set}" = set; then :
5108 withval=$with_cxx_include_64bit_dir;
5114 cat >>confdefs.h <<_ACEOF
5115 #define CXX_INCLUDE_64BIT_DIR "$withval"
5120 # Check whether --with-binutils-include was given.
5121 if test "${with_binutils_include+set}" = set; then :
5122 withval=$with_binutils_include;
5128 default) WITH_BINUTILS_INCDIR=default ;;
5129 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5130 *) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5132 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5133 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5135 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5136 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5137 as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5141 # Check whether --enable-libffi was given.
5142 if test "${enable_libffi+set}" = set; then :
5143 enableval=$enable_libffi;
5148 case "$enableval" in
5149 yes) llvm_cv_enable_libffi="yes" ;;
5150 no) llvm_cv_enable_libffi="no" ;;
5151 *) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5154 if test "$llvm_cv_os_type" = "Win32" ; then
5160 # Check whether --enable-llvmc-dynamic was given.
5161 if test "${enable_llvmc_dynamic+set}" = set; then :
5162 enableval=$enable_llvmc_dynamic;
5164 enableval=$llvmc_dynamic
5167 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5168 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5171 ENABLE_LLVMC_DYNAMIC=
5175 # Check whether --enable-llvmc-dynamic-plugins was given.
5176 if test "${enable_llvmc_dynamic_plugins+set}" = set; then :
5177 enableval=$enable_llvmc_dynamic_plugins;
5182 if test ${enableval} = "yes" ; then
5183 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5186 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5198 # On Suns, sometimes $CPP names a directory.
5199 if test -n "$CPP" && test -d "$CPP"; then
5202 if test -z "$CPP"; then
5203 if test "${ac_cv_prog_CPP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5206 # Double quotes because CPP needs to be expanded
5207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210 for ac_c_preproc_warn_flag in '' yes
5212 # Use a header file that comes with gcc, so configuring glibc
5213 # with a fresh cross-compiler works.
5214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215 # <limits.h> exists even on freestanding compilers.
5216 # On the NeXT, cc -E runs the code through the compiler's parser,
5217 # not just through cpp. "Syntax error" is here to catch this case.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5221 # include <limits.h>
5223 # include <assert.h>
5227 if ac_fn_c_try_cpp "$LINENO"; then :
5230 # Broken: fails on valid input.
5233 rm -f conftest.err conftest.$ac_ext
5235 # OK, works on sane cases. Now check whether nonexistent headers
5236 # can be detected and how.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <ac_nonexistent.h>
5241 if ac_fn_c_try_cpp "$LINENO"; then :
5242 # Broken: success on invalid input.
5245 # Passes both tests.
5249 rm -f conftest.err conftest.$ac_ext
5252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253 rm -f conftest.err conftest.$ac_ext
5254 if $ac_preproc_ok; then :
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5267 $as_echo "$CPP" >&6; }
5269 for ac_c_preproc_warn_flag in '' yes
5271 # Use a header file that comes with gcc, so configuring glibc
5272 # with a fresh cross-compiler works.
5273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274 # <limits.h> exists even on freestanding compilers.
5275 # On the NeXT, cc -E runs the code through the compiler's parser,
5276 # not just through cpp. "Syntax error" is here to catch this case.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5280 # include <limits.h>
5282 # include <assert.h>
5286 if ac_fn_c_try_cpp "$LINENO"; then :
5289 # Broken: fails on valid input.
5292 rm -f conftest.err conftest.$ac_ext
5294 # OK, works on sane cases. Now check whether nonexistent headers
5295 # can be detected and how.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <ac_nonexistent.h>
5300 if ac_fn_c_try_cpp "$LINENO"; then :
5301 # Broken: success on invalid input.
5304 # Passes both tests.
5308 rm -f conftest.err conftest.$ac_ext
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then :
5316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." "$LINENO" 5; }
5323 ac_cpp='$CPP $CPPFLAGS'
5324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if test "${ac_cv_prog_CC+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5343 if test -n "$CC"; then
5344 ac_cv_prog_CC="$CC" # Let the user override the test.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 if test -n "$CC"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5366 $as_echo "$CC" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 test -n "$CC" && break
5376 if test -z "$CC"; then
5380 # Extract the first word of "$ac_prog", so it can be a program name with args.
5381 set dummy $ac_prog; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -n "$ac_ct_CC"; then
5388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_ac_ct_CC="$ac_prog"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5408 if test -n "$ac_ct_CC"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5410 $as_echo "$ac_ct_CC" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 test -n "$ac_ct_CC" && break
5420 if test "x$ac_ct_CC" = x; then
5423 case $cross_compiling:$ac_tool_warned in
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5436 as_fn_error "no acceptable C compiler found in \$PATH
5437 See \`config.log' for more details." "$LINENO" 5; }
5439 # Provide some information about the compiler.
5440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5443 for ac_option in --version -v -V -qversion; do
5444 { { ac_try="$ac_compiler $ac_option >&5"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5450 $as_echo "$ac_try_echo"; } >&5
5451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5453 if test -s conftest.err; then
5455 ... rest of stderr output deleted ...
5456 10q' conftest.err >conftest.er1
5457 cat conftest.er1 >&5
5459 rm -f conftest.er1 conftest.err
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5466 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5483 if ac_fn_c_try_compile "$LINENO"; then :
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5494 if test $ac_compiler_gnu = yes; then
5499 ac_test_CFLAGS=${CFLAGS+set}
5500 ac_save_CFLAGS=$CFLAGS
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5503 if test "${ac_cv_prog_cc_g+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5506 ac_save_c_werror_flag=$ac_c_werror_flag
5507 ac_c_werror_flag=yes
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5521 if ac_fn_c_try_compile "$LINENO"; then :
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5536 if ac_fn_c_try_compile "$LINENO"; then :
5539 ac_c_werror_flag=$ac_save_c_werror_flag
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5552 if ac_fn_c_try_compile "$LINENO"; then :
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5563 $as_echo "$ac_cv_prog_cc_g" >&6; }
5564 if test "$ac_test_CFLAGS" = set; then
5565 CFLAGS=$ac_save_CFLAGS
5566 elif test $ac_cv_prog_cc_g = yes; then
5567 if test "$GCC" = yes; then
5573 if test "$GCC" = yes; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5581 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5584 ac_cv_prog_cc_c89=no
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 #include <sys/stat.h>
5592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5593 struct buf { int x; };
5594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5595 static char *e (p, i)
5601 static char *f (char * (*g) (char **, int), char **p, ...)
5606 s = g (p, va_arg (v,int));
5611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5612 function prototypes and stuff, but not '\xHH' hex character constants.
5613 These don't provoke an error unfortunately, instead are silently treated
5614 as 'x'. The following induces an error, until -std is added to get
5615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5616 array size at least. It's necessary to write '\x00'==0 to get something
5617 that's true only with -std. */
5618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5621 inside strings and character constants. */
5623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5625 int test (int i, double x);
5626 struct s1 {int (*f) (int a);};
5627 struct s2 {int (*f) (double a);};
5628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5634 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5642 CC="$ac_save_CC $ac_arg"
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_prog_cc_c89=$ac_arg
5646 rm -f core conftest.err conftest.$ac_objext
5647 test "x$ac_cv_prog_cc_c89" != "xno" && break
5649 rm -f conftest.$ac_ext
5654 case "x$ac_cv_prog_cc_c89" in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5657 $as_echo "none needed" >&6; } ;;
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5660 $as_echo "unsupported" >&6; } ;;
5662 CC="$CC $ac_cv_prog_cc_c89"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5666 if test "x$ac_cv_prog_cc_c89" != xno; then :
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681 if test -z "$CXX"; then
5682 if test -n "$CCC"; then
5685 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_CXX+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5695 if test -n "$CXX"; then
5696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 if test -n "$CXX"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5718 $as_echo "$CXX" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5725 test -n "$CXX" && break
5728 if test -z "$CXX"; then
5732 # Extract the first word of "$ac_prog", so it can be a program name with args.
5733 set dummy $ac_prog; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5739 if test -n "$ac_ct_CXX"; then
5740 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_ac_ct_CXX="$ac_prog"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5760 if test -n "$ac_ct_CXX"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5762 $as_echo "$ac_ct_CXX" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5769 test -n "$ac_ct_CXX" && break
5772 if test "x$ac_ct_CXX" = x; then
5775 case $cross_compiling:$ac_tool_warned in
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5787 # Provide some information about the compiler.
5788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5791 for ac_option in --version -v -V -qversion; do
5792 { { ac_try="$ac_compiler $ac_option >&5"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5798 $as_echo "$ac_try_echo"; } >&5
5799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5801 if test -s conftest.err; then
5803 ... rest of stderr output deleted ...
5804 10q' conftest.err >conftest.er1
5805 cat conftest.er1 >&5
5807 rm -f conftest.er1 conftest.err
5808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809 test $ac_status = 0; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5813 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5814 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5831 if ac_fn_cxx_try_compile "$LINENO"; then :
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5841 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5842 if test $ac_compiler_gnu = yes; then
5847 ac_test_CXXFLAGS=${CXXFLAGS+set}
5848 ac_save_CXXFLAGS=$CXXFLAGS
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5850 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5851 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5855 ac_cxx_werror_flag=yes
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_cxx_try_compile "$LINENO"; then :
5870 ac_cv_prog_cxx_g=yes
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5884 if ac_fn_cxx_try_compile "$LINENO"; then :
5887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_cxx_try_compile "$LINENO"; then :
5901 ac_cv_prog_cxx_g=yes
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5911 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5912 if test "$ac_test_CXXFLAGS" = set; then
5913 CXXFLAGS=$ac_save_CXXFLAGS
5914 elif test $ac_cv_prog_cxx_g = yes; then
5915 if test "$GXX" = yes; then
5921 if test "$GXX" = yes; then
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5935 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5936 if test "${lt_cv_path_NM+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$NM"; then
5940 # Let the user override the test.
5943 lt_nm_to_check="${ac_tool_prefix}nm"
5944 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5945 lt_nm_to_check="$lt_nm_to_check nm"
5947 for lt_tmp_nm in $lt_nm_to_check; do
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5951 test -z "$ac_dir" && ac_dir=.
5952 tmp_nm="$ac_dir/$lt_tmp_nm"
5953 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
5957 # Tru64's nm complains that /dev/null is an invalid object file
5958 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5959 */dev/null* | *'Invalid file or object type'*)
5960 lt_cv_path_NM="$tmp_nm -B"
5964 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5966 lt_cv_path_NM="$tmp_nm -p"
5970 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971 continue # so that we can try to find one that supports BSD flags
5980 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5984 $as_echo "$lt_cv_path_NM" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
5990 $as_echo_n "checking for GNU make... " >&6; }
5991 if test "${llvm_cv_gnu_make_command+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5994 llvm_cv_gnu_make_command=''
5995 for a in "$MAKE" make gmake gnumake ; do
5996 if test -z "$a" ; then continue ; fi ;
5997 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5999 llvm_cv_gnu_make_command=$a ;
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
6005 $as_echo "$llvm_cv_gnu_make_command" >&6; }
6006 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
6011 $as_echo "\"Not found\"" >&6; };
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6016 $as_echo_n "checking whether ln -s works... " >&6; }
6018 if test "$LN_S" = "ln -s"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020 $as_echo "yes" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6023 $as_echo "no, using $LN_S" >&6; }
6026 # Extract the first word of "cmp", so it can be a program name with args.
6027 set dummy cmp; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_path_CMP+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6035 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6058 if test -n "$CMP"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6060 $as_echo "$CMP" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6067 # Extract the first word of "cp", so it can be a program name with args.
6068 set dummy cp; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_path_CP+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6076 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6099 if test -n "$CP"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6101 $as_echo "$CP" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6108 # Extract the first word of "date", so it can be a program name with args.
6109 set dummy date; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_path_DATE+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6117 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6139 DATE=$ac_cv_path_DATE
6140 if test -n "$DATE"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142 $as_echo "$DATE" >&6; }
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6149 # Extract the first word of "find", so it can be a program name with args.
6150 set dummy find; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_path_FIND+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6158 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6180 FIND=$ac_cv_path_FIND
6181 if test -n "$FIND"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6183 $as_echo "$FIND" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6190 # Extract the first word of "grep", so it can be a program name with args.
6191 set dummy grep; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if test "${ac_cv_path_GREP+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6199 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6221 GREP=$ac_cv_path_GREP
6222 if test -n "$GREP"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6224 $as_echo "$GREP" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6231 # Extract the first word of "mkdir", so it can be a program name with args.
6232 set dummy mkdir; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if test "${ac_cv_path_MKDIR+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6240 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6262 MKDIR=$ac_cv_path_MKDIR
6263 if test -n "$MKDIR"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6265 $as_echo "$MKDIR" >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6272 # Extract the first word of "mv", so it can be a program name with args.
6273 set dummy mv; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_path_MV+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6281 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6304 if test -n "$MV"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6306 $as_echo "$MV" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6313 if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$RANLIB"; then
6322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 RANLIB=$ac_cv_prog_RANLIB
6342 if test -n "$RANLIB"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344 $as_echo "$RANLIB" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6352 if test -z "$ac_cv_prog_RANLIB"; then
6353 ac_ct_RANLIB=$RANLIB
6354 # Extract the first word of "ranlib", so it can be a program name with args.
6355 set dummy ranlib; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$ac_ct_RANLIB"; then
6362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_RANLIB="ranlib"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382 if test -n "$ac_ct_RANLIB"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384 $as_echo "$ac_ct_RANLIB" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6390 if test "x$ac_ct_RANLIB" = x; then
6393 case $cross_compiling:$ac_tool_warned in
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6399 RANLIB=$ac_ct_RANLIB
6402 RANLIB="$ac_cv_prog_RANLIB"
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}ar; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_AR+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$AR"; then
6414 ac_cv_prog_AR="$AR" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_AR="${ac_tool_prefix}ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 if test -n "$AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6436 $as_echo "$AR" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_AR"; then
6446 # Extract the first word of "ar", so it can be a program name with args.
6447 set dummy ar; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_AR"; then
6454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_AR="ar"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6474 if test -n "$ac_ct_AR"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6476 $as_echo "$ac_ct_AR" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_AR" = x; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6497 # Extract the first word of "rm", so it can be a program name with args.
6498 set dummy rm; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_path_RM+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6506 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6529 if test -n "$RM"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6531 $as_echo "$RM" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6538 # Extract the first word of "sed", so it can be a program name with args.
6539 set dummy sed; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_path_SED+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6547 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6570 if test -n "$SED"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6572 $as_echo "$SED" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6579 # Extract the first word of "tar", so it can be a program name with args.
6580 set dummy tar; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_path_TAR+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6588 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6611 if test -n "$TAR"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6613 $as_echo "$TAR" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6620 # Extract the first word of "pwd", so it can be a program name with args.
6621 set dummy pwd; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_path_BINPWD+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6629 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6651 BINPWD=$ac_cv_path_BINPWD
6652 if test -n "$BINPWD"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6654 $as_echo "$BINPWD" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 # Extract the first word of "Graphviz", so it can be a program name with args.
6663 set dummy Graphviz; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6671 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6693 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6694 if test -n "$GRAPHVIZ"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
6696 $as_echo "$GRAPHVIZ" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6703 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6705 $as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h
6707 if test "$llvm_cv_os_type" = "MingW" ; then
6708 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6716 # Extract the first word of "dot", so it can be a program name with args.
6717 set dummy dot; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_path_DOT+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
6725 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6748 if test -n "$DOT"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6750 $as_echo "$DOT" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6757 if test "$DOT" != "echo dot" ; then
6759 $as_echo "#define HAVE_DOT 1" >>confdefs.h
6761 if test "$llvm_cv_os_type" = "MingW" ; then
6762 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765 cat >>confdefs.h <<_ACEOF
6766 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6770 # Extract the first word of "fdp", so it can be a program name with args.
6771 set dummy fdp; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_path_FDP+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6779 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6802 if test -n "$FDP"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5
6804 $as_echo "$FDP" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6811 if test "$FDP" != "echo fdp" ; then
6813 $as_echo "#define HAVE_FDP 1" >>confdefs.h
6815 if test "$llvm_cv_os_type" = "MingW" ; then
6816 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6819 cat >>confdefs.h <<_ACEOF
6820 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6824 # Extract the first word of "neato", so it can be a program name with args.
6825 set dummy neato; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_path_NEATO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6833 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6855 NEATO=$ac_cv_path_NEATO
6856 if test -n "$NEATO"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5
6858 $as_echo "$NEATO" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6865 if test "$NEATO" != "echo neato" ; then
6867 $as_echo "#define HAVE_NEATO 1" >>confdefs.h
6869 if test "$llvm_cv_os_type" = "MingW" ; then
6870 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6873 cat >>confdefs.h <<_ACEOF
6874 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6878 # Extract the first word of "twopi", so it can be a program name with args.
6879 set dummy twopi; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_path_TWOPI+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6887 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6909 TWOPI=$ac_cv_path_TWOPI
6910 if test -n "$TWOPI"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5
6912 $as_echo "$TWOPI" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6919 if test "$TWOPI" != "echo twopi" ; then
6921 $as_echo "#define HAVE_TWOPI 1" >>confdefs.h
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6932 # Extract the first word of "circo", so it can be a program name with args.
6933 set dummy circo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_path_CIRCO+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6941 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6963 CIRCO=$ac_cv_path_CIRCO
6964 if test -n "$CIRCO"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5
6966 $as_echo "$CIRCO" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6973 if test "$CIRCO" != "echo circo" ; then
6975 $as_echo "#define HAVE_CIRCO 1" >>confdefs.h
6977 if test "$llvm_cv_os_type" = "MingW" ; then
6978 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6986 for ac_prog in gv gsview32
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_path_GV+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6997 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 if test -n "$GV"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7021 $as_echo "$GV" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7028 test -n "$GV" && break
7030 test -n "$GV" || GV="echo gv"
7032 if test "$GV" != "echo gv" ; then
7034 $as_echo "#define HAVE_GV 1" >>confdefs.h
7036 if test "$llvm_cv_os_type" = "MingW" ; then
7037 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7040 cat >>confdefs.h <<_ACEOF
7041 #define LLVM_PATH_GV "$GV${EXEEXT}"
7045 # Extract the first word of "dotty", so it can be a program name with args.
7046 set dummy dotty; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_DOTTY+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
7054 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7076 DOTTY=$ac_cv_path_DOTTY
7077 if test -n "$DOTTY"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5
7079 $as_echo "$DOTTY" >&6; }
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7086 if test "$DOTTY" != "echo dotty" ; then
7088 $as_echo "#define HAVE_DOTTY 1" >>confdefs.h
7090 if test "$llvm_cv_os_type" = "MingW" ; then
7091 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7094 cat >>confdefs.h <<_ACEOF
7095 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7101 # Extract the first word of "perl", so it can be a program name with args.
7102 set dummy perl; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_path_PERL+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7110 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7132 PERL=$ac_cv_path_PERL
7133 if test -n "$PERL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7135 $as_echo "$PERL" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7142 if test "$PERL" != "none"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5
7144 $as_echo_n "checking for Perl 5.006 or newer... " >&6; }
7145 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147 $as_echo "yes" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7151 $as_echo "not found" >&6; }
7156 if test x"$PERL" = xnone; then
7159 as_fn_error "perl is required but was not found, please install it" "$LINENO" 5
7165 # Find a good install program. We prefer a C program (faster),
7166 # so one script is as good as another. But avoid the broken or
7167 # incompatible versions:
7168 # SysV /etc/install, /usr/sbin/install
7169 # SunOS /usr/etc/install
7170 # IRIX /sbin/install
7172 # AmigaOS /C/install, which installs bootblocks on floppy discs
7173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7176 # OS/2's system install, which has a completely different semantic
7177 # ./install, which can be erroneously created by make from ./install.sh.
7178 # Reject install programs that cannot install multiple files.
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7180 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7181 if test -z "$INSTALL"; then
7182 if test "${ac_cv_path_install+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 # Account for people who put trailing slashes in PATH elements.
7191 case $as_dir/ in #((
7192 ./ | .// | /[cC]/* | \
7193 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7194 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7197 # OSF1 and SCO ODT 3.0 have their own names for install.
7198 # Don't use installbsd from OSF since it installs stuff as root
7200 for ac_prog in ginstall scoinst install; do
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7203 if test $ac_prog = install &&
7204 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7205 # AIX install. It has an incompatible calling convention.
7207 elif test $ac_prog = install &&
7208 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7209 # program-specific install script used by HP pwplus--don't use.
7212 rm -rf conftest.one conftest.two conftest.dir
7213 echo one > conftest.one
7214 echo two > conftest.two
7216 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7217 test -s conftest.one && test -s conftest.two &&
7218 test -s conftest.dir/conftest.one &&
7219 test -s conftest.dir/conftest.two
7221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7234 rm -rf conftest.one conftest.two conftest.dir
7237 if test "${ac_cv_path_install+set}" = set; then
7238 INSTALL=$ac_cv_path_install
7240 # As a last resort, use the slow shell script. Don't cache a
7241 # value for INSTALL within a source directory, because that will
7242 # break other packages using the cache if that directory is
7243 # removed, or if the value is a relative name.
7244 INSTALL=$ac_install_sh
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7248 $as_echo "$INSTALL" >&6; }
7250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251 # It thinks the first close brace ends the variable substitution.
7252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7259 # Extract the first word of "bzip2", so it can be a program name with args.
7260 set dummy bzip2; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_path_BZIP2+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7268 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 BZIP2=$ac_cv_path_BZIP2
7290 if test -n "$BZIP2"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7292 $as_echo "$BZIP2" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7299 # Extract the first word of "doxygen", so it can be a program name with args.
7300 set dummy doxygen; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7308 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 DOXYGEN=$ac_cv_path_DOXYGEN
7330 if test -n "$DOXYGEN"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7332 $as_echo "$DOXYGEN" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7339 # Extract the first word of "groff", so it can be a program name with args.
7340 set dummy groff; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_path_GROFF+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7348 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 GROFF=$ac_cv_path_GROFF
7370 if test -n "$GROFF"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
7372 $as_echo "$GROFF" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7379 # Extract the first word of "gzip", so it can be a program name with args.
7380 set dummy gzip; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if test "${ac_cv_path_GZIP+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7388 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 GZIP=$ac_cv_path_GZIP
7410 if test -n "$GZIP"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
7412 $as_echo "$GZIP" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7419 # Extract the first word of "pod2html", so it can be a program name with args.
7420 set dummy pod2html; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_path_POD2HTML+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7428 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 POD2HTML=$ac_cv_path_POD2HTML
7450 if test -n "$POD2HTML"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
7452 $as_echo "$POD2HTML" >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7459 # Extract the first word of "pod2man", so it can be a program name with args.
7460 set dummy pod2man; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_path_POD2MAN+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7468 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 POD2MAN=$ac_cv_path_POD2MAN
7490 if test -n "$POD2MAN"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
7492 $as_echo "$POD2MAN" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 # Extract the first word of "runtest", so it can be a program name with args.
7500 set dummy runtest; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_path_RUNTEST+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7508 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 RUNTEST=$ac_cv_path_RUNTEST
7530 if test -n "$RUNTEST"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7532 $as_echo "$RUNTEST" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5
7542 $as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; }
7544 # Check whether --with-tclinclude was given.
7545 if test "${with_tclinclude+set}" = set; then :
7546 withval=$with_tclinclude; with_tclinclude=${withval}
7551 if test "${ac_cv_path_tclsh+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7555 if test x"${with_tclinclude}" != x ; then
7556 if test -f ${with_tclinclude}/tclsh ; then
7557 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558 elif test -f ${with_tclinclude}/src/tclsh ; then
7559 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7561 as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
7567 if test x"${ac_cv_path_tclsh}" = x ; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7569 $as_echo "none" >&6; }
7570 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if test "${ac_cv_path_TCLSH+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7581 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 TCLSH=$ac_cv_path_TCLSH
7603 if test -n "$TCLSH"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
7605 $as_echo "$TCLSH" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7612 test -n "$TCLSH" && break
7615 if test x"${TCLSH}" = x ; then
7616 ac_cv_path_tclsh='';
7618 ac_cv_path_tclsh="${TCLSH}";
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5
7622 $as_echo "${ac_cv_path_tclsh}" >&6; }
7623 TCLSH="${ac_cv_path_tclsh}"
7627 # Extract the first word of "zip", so it can be a program name with args.
7628 set dummy zip; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_path_ZIP+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7636 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 if test -n "$ZIP"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7660 $as_echo "$ZIP" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7667 for ac_prog in ocamlc
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_path_OCAMLC+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7678 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 OCAMLC=$ac_cv_path_OCAMLC
7700 if test -n "$OCAMLC"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
7702 $as_echo "$OCAMLC" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 test -n "$OCAMLC" && break
7712 for ac_prog in ocamlopt
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_path_OCAMLOPT+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7723 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 OCAMLOPT=$ac_cv_path_OCAMLOPT
7745 if test -n "$OCAMLOPT"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
7747 $as_echo "$OCAMLOPT" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$OCAMLOPT" && break
7757 for ac_prog in ocamldep
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_path_OCAMLDEP+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7768 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 OCAMLDEP=$ac_cv_path_OCAMLDEP
7790 if test -n "$OCAMLDEP"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
7792 $as_echo "$OCAMLDEP" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7799 test -n "$OCAMLDEP" && break
7802 for ac_prog in ocamldoc
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_path_OCAMLDOC+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7813 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 OCAMLDOC=$ac_cv_path_OCAMLDOC
7835 if test -n "$OCAMLDOC"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
7837 $as_echo "$OCAMLDOC" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7844 test -n "$OCAMLDOC" && break
7847 for ac_prog in gas as
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_path_GAS+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7858 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 if test -n "$GAS"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
7882 $as_echo "$GAS" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7889 test -n "$GAS" && break
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
7894 $as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
7895 if test "${llvm_cv_link_use_r+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 CFLAGS="$CFLAGS -Wl,-R."
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7912 int main() { return 0; }
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 llvm_cv_link_use_r=yes
7920 llvm_cv_link_use_r=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7926 ac_cpp='$CPP $CPPFLAGS'
7927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5
7934 $as_echo "$llvm_cv_link_use_r" >&6; }
7935 if test "$llvm_cv_link_use_r" = yes ; then
7937 $as_echo "#define HAVE_LINK_R 1" >>confdefs.h
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5
7943 $as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; }
7944 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7961 int main() { return 0; }
7966 if ac_fn_c_try_link "$LINENO"; then :
7967 llvm_cv_link_use_export_dynamic=yes
7969 llvm_cv_link_use_export_dynamic=no
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5
7983 $as_echo "$llvm_cv_link_use_export_dynamic" >&6; }
7984 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7986 $as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7994 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7995 if test "${ac_cv_c_const+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8004 /* FIXME: Include the comments suggested by Paul. */
8006 /* Ultrix mips cc rejects this. */
8007 typedef int charset[2];
8009 /* SunOS 4.1.1 cc rejects this. */
8010 char const *const *pcpcc;
8012 /* NEC SVR4.0.2 mips cc rejects this. */
8013 struct point {int x, y;};
8014 static struct point const zero = {0,0};
8015 /* AIX XL C 1.02.0.0 rejects this.
8016 It does not let you subtract one const X* pointer from another in
8017 an arm of an if-expression whose if-part is not a constant
8019 const char *g = "string";
8020 pcpcc = &g + (g ? g-g : 0);
8021 /* HPUX 7.0 cc rejects these. */
8023 ppc = (char**) pcpcc;
8024 pcpcc = (char const *const *) ppc;
8025 { /* SCO 3.2v4 cc rejects this. */
8027 char const *s = 0 ? (char *) 0 : (char const *) 0;
8032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8034 const int *foo = &x[0];
8037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038 typedef const int *iptr;
8042 { /* AIX XL C 1.02.0.0 rejects this saying
8043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044 struct s { int j; const int *ap[3]; };
8045 struct s *b; b->j = 5;
8047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8051 return !cs[0] && !zero.x;
8058 if ac_fn_c_try_compile "$LINENO"; then :
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8066 $as_echo "$ac_cv_c_const" >&6; }
8067 if test $ac_cv_c_const = no; then
8069 $as_echo "#define const /**/" >>confdefs.h
8074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8075 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8077 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8079 $as_echo_n "(cached) " >&6
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <sys/types.h>
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 eval "$as_ac_Header=yes"
8098 eval "$as_ac_Header=no"
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 eval ac_res=\$$as_ac_Header
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8104 $as_echo "$ac_res" >&6; }
8105 eval as_val=\$$as_ac_Header
8106 if test "x$as_val" = x""yes; then :
8107 cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8111 ac_header_dirent=$ac_hdr; break
8115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116 if test $ac_header_dirent = dirent.h; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8118 $as_echo_n "checking for library containing opendir... " >&6; }
8119 if test "${ac_cv_search_opendir+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8122 ac_func_search_save_LIBS=$LIBS
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8126 /* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8141 for ac_lib in '' dir; do
8142 if test -z "$ac_lib"; then
8143 ac_res="none required"
8146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8148 if ac_fn_c_try_link "$LINENO"; then :
8149 ac_cv_search_opendir=$ac_res
8151 rm -f core conftest.err conftest.$ac_objext \
8153 if test "${ac_cv_search_opendir+set}" = set; then :
8157 if test "${ac_cv_search_opendir+set}" = set; then :
8160 ac_cv_search_opendir=no
8163 LIBS=$ac_func_search_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8166 $as_echo "$ac_cv_search_opendir" >&6; }
8167 ac_res=$ac_cv_search_opendir
8168 if test "$ac_res" != no; then :
8169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8175 $as_echo_n "checking for library containing opendir... " >&6; }
8176 if test "${ac_cv_search_opendir+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 ac_func_search_save_LIBS=$LIBS
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8183 /* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8198 for ac_lib in '' x; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_search_opendir=$ac_res
8208 rm -f core conftest.err conftest.$ac_objext \
8210 if test "${ac_cv_search_opendir+set}" = set; then :
8214 if test "${ac_cv_search_opendir+set}" = set; then :
8217 ac_cv_search_opendir=no
8220 LIBS=$ac_func_search_save_LIBS
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8223 $as_echo "$ac_cv_search_opendir" >&6; }
8224 ac_res=$ac_cv_search_opendir
8225 if test "$ac_res" != no; then :
8226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8232 for ac_header in dlfcn.h
8234 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8235 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8236 cat >>confdefs.h <<_ACEOF
8237 #define HAVE_DLFCN_H 1
8244 # Check whether --enable-ltdl-install was given.
8245 if test "${enable_ltdl_install+set}" = set; then :
8246 enableval=$enable_ltdl_install;
8250 if test x"${enable_ltdl_install-no}" != xno; then
8252 INSTALL_LTDL_FALSE='#'
8254 INSTALL_LTDL_TRUE='#'
8258 if test x"${enable_ltdl_convenience-no}" != xno; then
8259 CONVENIENCE_LTDL_TRUE=
8260 CONVENIENCE_LTDL_FALSE='#'
8262 CONVENIENCE_LTDL_TRUE='#'
8263 CONVENIENCE_LTDL_FALSE=
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8270 libname_spec='lib$name'
8278 shlibpath_overrides_runpath=unknown
8280 dynamic_linker="$host_os ld.so"
8281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8282 if test "$GCC" = yes; then
8283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8285 # if the path contains ";" then we assume it to be the separator
8286 # otherwise default to the standard path separator (i.e. ":") - it is
8287 # assumed that no part of a normal pathname contains ";" but that should
8288 # okay in the real world where ";" in dirpaths is itself problematic.
8289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8296 need_lib_prefix=unknown
8297 hardcode_into_libs=no
8299 # when you set need_version to no, make sure it does not cause -set_version
8300 # flags to be left without arguments
8301 need_version=unknown
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8307 shlibpath_var=LIBPATH
8309 # AIX 3 has no versioning support, so we append a major version to the name.
8310 soname_spec='${libname}${release}${shared_ext}$major'
8317 hardcode_into_libs=yes
8318 if test "$host_cpu" = ia64; then
8319 # AIX 5 supports IA64
8320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8321 shlibpath_var=LD_LIBRARY_PATH
8323 # With GCC up to 2.95.x, collect2 would create an import file
8324 # for dependence libraries. The import file would start with
8325 # the line `#! .'. This would cause the generated library to
8326 # depend on `.', always an invalid library. This was fixed in
8327 # development snapshots of GCC prior to 3.0.
8329 aix4 | aix4.[01] | aix4.[01].*)
8330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8340 # soname into executable. Probably we can add versioning support to
8341 # collect2, so additional links can be useful in future.
8342 if test "$aix_use_runtimelinking" = yes; then
8343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8344 # instead of lib<name>.a to let people know that these are not
8345 # typical AIX shared libraries.
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8348 # We preserve .a as extension for shared libraries through AIX4.2
8349 # and later when we are not doing run time linking.
8350 library_names_spec='${libname}${release}.a $libname.a'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8353 shlibpath_var=LIBPATH
8358 library_names_spec='$libname.ixlibrary $libname.a'
8359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8360 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8364 library_names_spec='${libname}${shared_ext}'
8365 dynamic_linker="$host_os ld.so"
8366 shlibpath_var=LIBRARY_PATH
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec='${libname}${release}${shared_ext}$major'
8374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8378 # the default ld.so.conf also contains /usr/contrib/lib and
8379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8380 # libtool to hard-code these into programs
8383 cygwin* | mingw* | pw32*)
8384 version_type=windows
8389 case $GCC,$host_os in
8390 yes,cygwin* | yes,mingw* | yes,pw32*)
8391 library_names_spec='$libname.dll.a'
8392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8393 postinstall_cmds='base_file=`basename \${file}`~
8394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8395 dldir=$destdir/`dirname \$dlpath`~
8396 test -d \$dldir || mkdir -p \$dldir~
8397 $install_prog $dir/$dlname \$dldir/$dlname~
8398 chmod a+x \$dldir/$dlname'
8399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8400 dlpath=$dir/\$dldll~
8402 shlibpath_overrides_runpath=yes
8406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8411 # MinGW DLLs use traditional 'lib' prefix
8412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8415 # It is most probably a Windows format PATH printed by
8416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8417 # path with ; separators, and with drive letters. We can handle the
8418 # drive letters (cygwin fileutils understands them), so leave them,
8419 # especially as we might pass files found there to a mingw objdump,
8420 # which wouldn't understand a cygwinified path. Ahh.
8421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8427 # pw32 DLLs use 'pw' prefix rather than 'lib'
8428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8437 dynamic_linker='Win32 ld.exe'
8438 # FIXME: first we should search . and the directory the executable is in
8442 darwin* | rhapsody*)
8443 dynamic_linker="$host_os dyld"
8447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8448 soname_spec='${libname}${release}${major}$shared_ext'
8449 shlibpath_overrides_runpath=yes
8450 shlibpath_var=DYLD_LIBRARY_PATH
8451 shrext_cmds='.dylib'
8452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8453 if test "$GCC" = yes; then
8454 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 shlibpath_var=LD_LIBRARY_PATH
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 shlibpath_overrides_runpath=no
8482 hardcode_into_libs=yes
8483 dynamic_linker='GNU ld.so'
8486 freebsd* | dragonfly*)
8487 # DragonFly does not have aout. When/if they implement a new
8488 # versioning mechanism, adjust this.
8489 if test -x /usr/bin/objformat; then
8490 objformat=`/usr/bin/objformat`
8493 freebsd[123]*) objformat=aout ;;
8497 version_type=freebsd-$objformat
8498 case $version_type in
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8509 shlibpath_var=LD_LIBRARY_PATH
8512 shlibpath_overrides_runpath=yes
8514 freebsd3.[01]* | freebsdelf3.[01]*)
8515 shlibpath_overrides_runpath=yes
8516 hardcode_into_libs=yes
8518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8520 shlibpath_overrides_runpath=no
8521 hardcode_into_libs=yes
8523 freebsd*) # from 4.6 on
8524 shlibpath_overrides_runpath=yes
8525 hardcode_into_libs=yes
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8535 soname_spec='${libname}${release}${shared_ext}$major'
8536 shlibpath_var=LD_LIBRARY_PATH
8537 hardcode_into_libs=yes
8540 hpux9* | hpux10* | hpux11*)
8541 # Give a soname corresponding to the major version so that dld.sl refuses to
8542 # link against other versions.
8549 hardcode_into_libs=yes
8550 dynamic_linker="$host_os dld.so"
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8554 soname_spec='${libname}${release}${shared_ext}$major'
8555 if test "X$HPUX_IA64_MODE" = X32; then
8556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8564 hardcode_into_libs=yes
8565 dynamic_linker="$host_os dld.sl"
8566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8575 dynamic_linker="$host_os dld.sl"
8576 shlibpath_var=SHLIB_PATH
8577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
8582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8583 postinstall_cmds='chmod 555 $lib'
8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8591 soname_spec='${libname}${release}${shared_ext}$major'
8592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8593 shlibpath_var=LD_LIBRARY_PATH
8594 shlibpath_overrides_runpath=no
8595 hardcode_into_libs=yes
8598 irix5* | irix6* | nonstopux*)
8600 nonstopux*) version_type=nonstopux ;;
8602 if test "$lt_cv_prog_gnu_ld" = yes; then
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8613 irix5* | nonstopux*)
8617 case $LD in # libtool.m4 will add one of these switches to LD
8618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8619 libsuff= shlibsuff= libmagic=32-bit;;
8620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8621 libsuff=32 shlibsuff=N32 libmagic=N32;;
8622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8624 *) libsuff= shlibsuff= libmagic=never-match;;
8628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8629 shlibpath_overrides_runpath=no
8630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8632 hardcode_into_libs=yes
8635 # No shared lib support for Linux oldld, aout, or coff.
8636 linux*oldld* | linux*aout* | linux*coff*)
8640 # This must be Linux ELF.
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 shlibpath_overrides_runpath=no
8650 # This implies no fast_install, which is unacceptable.
8651 # Some rework will be needed to allow for fast_install
8652 # before this can be enabled.
8653 hardcode_into_libs=yes
8655 # Append ld.so.conf contents to the search path
8656 if test -f /etc/ld.so.conf; then
8657 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8661 # We used to test for /lib/ld.so.1 and disable shared libraries on
8662 # powerpc, because MkLinux only supported shared libraries with the
8663 # GNU dynamic linker. Since this was broken with cross compilers,
8664 # most powerpc-linux boxes support dynamic linking these days and
8665 # people can always --disable-shared, the test was removed, and we
8666 # assume the GNU/Linux dynamic linker is in use.
8667 dynamic_linker='GNU/Linux ld.so'
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 shlibpath_overrides_runpath=no
8678 hardcode_into_libs=yes
8679 dynamic_linker='GNU ld.so'
8686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8689 dynamic_linker='NetBSD (a.out) ld.so'
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 dynamic_linker='NetBSD ld.elf_so'
8695 shlibpath_var=LD_LIBRARY_PATH
8696 shlibpath_overrides_runpath=yes
8697 hardcode_into_libs=yes
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 shlibpath_overrides_runpath=yes
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 shlibpath_overrides_runpath=yes
8719 sys_lib_dlsearch_path_spec="/usr/lib"
8721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8724 *) need_version=no ;;
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8728 shlibpath_var=LD_LIBRARY_PATH
8729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8731 openbsd2.[89] | openbsd2.[89].*)
8732 shlibpath_overrides_runpath=no
8735 shlibpath_overrides_runpath=yes
8739 shlibpath_overrides_runpath=yes
8744 libname_spec='$name'
8747 library_names_spec='$libname${shared_ext} $libname.a'
8748 dynamic_linker='OS/2 ld.exe'
8749 shlibpath_var=LIBPATH
8752 osf3* | osf4* | osf5*)
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 # ldd complains unless libraries are executable
8773 postinstall_cmds='chmod +x $lib'
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8780 shlibpath_var=LD_LIBRARY_PATH
8781 shlibpath_overrides_runpath=yes
8782 if test "$with_gnu_ld" = yes; then
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LD_LIBRARY_PATH
8793 case $host_vendor in
8795 shlibpath_overrides_runpath=no
8797 export_dynamic_flag_spec='${wl}-Blargedynsym'
8798 runpath_var=LD_RUN_PATH
8806 shlibpath_overrides_runpath=no
8807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8813 if test -d /usr/nec ;then
8815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8816 soname_spec='$libname${shared_ext}.$major'
8817 shlibpath_var=LD_LIBRARY_PATH
8821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8822 version_type=freebsd-elf
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 hardcode_into_libs=yes
8829 if test "$with_gnu_ld" = yes; then
8830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8831 shlibpath_overrides_runpath=no
8833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8834 shlibpath_overrides_runpath=yes
8837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8841 sys_lib_dlsearch_path_spec='/usr/lib'
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8856 $as_echo "$dynamic_linker" >&6; }
8857 test "$dynamic_linker" = no && can_build_shared=no
8859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8860 if test "$GCC" = yes; then
8861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
8866 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
8867 if test "${libltdl_cv_shlibext+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8872 eval libltdl_cv_shlibext=$shrext_cmds
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
8876 $as_echo "$libltdl_cv_shlibext" >&6; }
8877 if test -n "$libltdl_cv_shlibext"; then
8879 cat >>confdefs.h <<_ACEOF
8880 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
8887 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
8888 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
8891 libltdl_cv_shlibpath_var="$shlibpath_var"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
8894 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
8895 if test -n "$libltdl_cv_shlibpath_var"; then
8897 cat >>confdefs.h <<_ACEOF
8898 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
8905 $as_echo_n "checking for the default library search path... " >&6; }
8906 if test "${libltdl_cv_sys_search_path+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8909 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
8912 $as_echo "$libltdl_cv_sys_search_path" >&6; }
8913 if test -n "$libltdl_cv_sys_search_path"; then
8915 for dir in $libltdl_cv_sys_search_path; do
8916 if test -z "$sys_search_path"; then
8917 sys_search_path="$dir"
8919 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8923 cat >>confdefs.h <<_ACEOF
8924 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8930 $as_echo_n "checking for objdir... " >&6; }
8931 if test "${libltdl_cv_objdir+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8934 libltdl_cv_objdir="$objdir"
8935 if test -n "$objdir"; then
8938 rm -f .libs 2>/dev/null
8939 mkdir .libs 2>/dev/null
8940 if test -d .libs; then
8941 libltdl_cv_objdir=.libs
8943 # MS-DOS does not allow filenames that begin with a dot.
8944 libltdl_cv_objdir=_libs
8946 rmdir .libs 2>/dev/null
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
8951 $as_echo "$libltdl_cv_objdir" >&6; }
8953 cat >>confdefs.h <<_ACEOF
8954 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8962 # Check for command to grab the raw symbol name followed by C symbol from nm.
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8965 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8969 # These are sane defaults that work on at least a few old systems.
8970 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8972 # Character class describing NM global symbol codes.
8973 symcode='[BCDEGRST]'
8975 # Regexp to match symbols that can be accessed directly from C.
8976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8978 # Transform an extracted symbol line into a proper C declaration
8979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8981 # Transform an extracted symbol line into symbol name and symbol address
8982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8984 # Define system-specific variables.
8989 cygwin* | mingw* | pw32*)
8990 symcode='[ABCDGISTW]'
8992 hpux*) # Its linker distinguishes data from code symbols
8993 if test "$host_cpu" = ia64; then
8994 symcode='[ABCDEGRST]'
8996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9000 if test "$host_cpu" = ia64; then
9001 symcode='[ABCDGIRSTW]'
9002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9003 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9007 symcode='[BCDEGRST]'
9010 symcode='[BCDEGQRST]'
9021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9029 # Handle CRLF in mingw tool chain
9033 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9037 # If we're using GNU nm, then use its standard symbol codes.
9038 case `$NM -V 2>&1` in
9039 *GNU* | *'with BFD'*)
9040 symcode='[ABCDGIRSTW]' ;;
9043 # Try without a prefix undercore, then with it.
9044 for ac_symprfx in "" "_"; do
9046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9047 symxfrm="\\1 $ac_symprfx\\2 \\2"
9049 # Write the raw and C identifiers.
9050 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9052 # Check to see that the pipe works correctly.
9056 cat > conftest.$ac_ext <<EOF
9061 void nm_test_func(){}
9065 int main(){nm_test_var='a';nm_test_func();return(0);}
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069 (eval $ac_compile) 2>&5
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; }; then
9073 # Now try to grab the symbols.
9075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9076 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079 test $ac_status = 0; } && test -s "$nlist"; then
9080 # Try sorting and uniquifying the output.
9081 if sort "$nlist" | uniq > "$nlist"T; then
9082 mv -f "$nlist"T "$nlist"
9087 # Make sure that we snagged all the symbols we need.
9088 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9089 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9090 cat <<EOF > conftest.$ac_ext
9096 # Now generate the symbol file.
9097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9099 cat <<EOF >> conftest.$ac_ext
9100 #if defined (__STDC__) && __STDC__
9101 # define lt_ptr_t void *
9103 # define lt_ptr_t char *
9107 /* The mapping between symbol names and symbols. */
9112 lt_preloaded_symbols[] =
9115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9116 cat <<\EOF >> conftest.$ac_ext
9124 # Now try linking the two files.
9125 mv conftest.$ac_objext conftstm.$ac_objext
9126 lt_save_LIBS="$LIBS"
9127 lt_save_CFLAGS="$CFLAGS"
9128 LIBS="conftstm.$ac_objext"
9129 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9131 (eval $ac_link) 2>&5
9133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9134 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9137 LIBS="$lt_save_LIBS"
9138 CFLAGS="$lt_save_CFLAGS"
9140 echo "cannot find nm_test_func in $nlist" >&5
9143 echo "cannot find nm_test_var in $nlist" >&5
9146 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9149 echo "$progname: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 rm -f conftest* conftst*
9154 # Do not use the global_symbol_pipe unless it works.
9155 if test "$pipe_works" = yes; then
9158 lt_cv_sys_global_symbol_pipe=
9164 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9165 lt_cv_sys_global_symbol_to_cdecl=
9167 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9169 $as_echo "failed" >&6; }
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9172 $as_echo "ok" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
9177 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
9178 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9182 libltdl_cv_preloaded_symbols=yes
9184 libltdl_cv_preloaded_symbols=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
9189 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
9190 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9192 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
9199 ac_cpp='$CPP $CPPFLAGS'
9200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9206 if test "x$ac_cv_func_shl_load" = x""yes; then :
9208 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9212 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9213 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9216 ac_check_lib_save_LIBS=$LIBS
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 ac_cv_lib_dld_shl_load=yes
9239 ac_cv_lib_dld_shl_load=no
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9246 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9247 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9249 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9251 LIBADD_DL="$LIBADD_DL -ldld"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
9258 ac_check_lib_save_LIBS=$LIBS
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9263 /* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
9278 if ac_fn_c_try_link "$LINENO"; then :
9279 ac_cv_lib_dl_dlopen=yes
9281 ac_cv_lib_dl_dlopen=no
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 LIBS=$ac_check_lib_save_LIBS
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9289 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9291 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9293 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9309 if ac_fn_c_try_link "$LINENO"; then :
9311 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9312 libltdl_cv_func_dlopen="yes"
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9315 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9319 ac_check_lib_save_LIBS=$LIBS
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9339 if ac_fn_c_try_link "$LINENO"; then :
9340 ac_cv_lib_svld_dlopen=yes
9342 ac_cv_lib_svld_dlopen=no
9344 rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9349 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9350 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9352 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9354 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9357 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9361 ac_check_lib_save_LIBS=$LIBS
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9381 if ac_fn_c_try_link "$LINENO"; then :
9382 ac_cv_lib_dld_dld_link=yes
9384 ac_cv_lib_dld_dld_link=no
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9391 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9392 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9394 $as_echo "#define HAVE_DLD 1" >>confdefs.h
9396 LIBADD_DL="$LIBADD_DL -ldld"
9398 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
9399 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
9401 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9427 lt_save_LIBS="$LIBS"
9428 LIBS="$LIBS $LIBADD_DL"
9429 for ac_func in dlerror
9431 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
9432 if test "x$ac_cv_func_dlerror" = x""yes; then :
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DLERROR 1
9440 LIBS="$lt_save_LIBS"
9443 ac_cpp='$CPP $CPPFLAGS'
9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
9451 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
9452 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
9453 $as_echo_n "(cached) " >&6
9455 ac_cv_sys_symbol_underscore=no
9456 cat > conftest.$ac_ext <<EOF
9457 void nm_test_func(){}
9458 int main(){nm_test_func;return 0;}
9460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9461 (eval $ac_compile) 2>&5
9463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }; then
9465 # Now try to grab the symbols.
9466 ac_nlist=conftest.nm
9467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
9468 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; } && test -s "$ac_nlist"; then
9472 # See whether the symbols have a leading underscore.
9473 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9474 ac_cv_sys_symbol_underscore=yes
9476 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9479 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9483 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9486 echo "configure: failed program was:" >&5
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
9493 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
9496 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9497 if test x"$libltdl_cv_func_dlopen" = xyes ||
9498 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
9500 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
9501 if test "${libltdl_cv_need_uscore+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9504 libltdl_cv_need_uscore=unknown
9506 LIBS="$LIBS $LIBADD_DL"
9507 if test "$cross_compiling" = yes; then :
9508 libltdl_cv_need_uscore=cross
9510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9511 lt_status=$lt_dlunknown
9512 cat > conftest.$ac_ext <<EOF
9513 #line 9513 "configure"
9514 #include "confdefs.h"
9523 # define LT_DLGLOBAL RTLD_GLOBAL
9526 # define LT_DLGLOBAL DL_GLOBAL
9528 # define LT_DLGLOBAL 0
9532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9533 find out it does not work in some platform. */
9534 #ifndef LT_DLLAZY_OR_NOW
9536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9539 # define LT_DLLAZY_OR_NOW DL_LAZY
9542 # define LT_DLLAZY_OR_NOW RTLD_NOW
9545 # define LT_DLLAZY_OR_NOW DL_NOW
9547 # define LT_DLLAZY_OR_NOW 0
9555 extern "C" void exit (int);
9558 void fnord() { int i=42;}
9561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9562 int status = $lt_dlunknown;
9566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9568 /* dlclose (self); */
9576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9577 (eval $ac_link) 2>&5
9579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9581 (./conftest; exit; ) >&5 2>/dev/null
9584 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9585 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9586 x$lt_dlunknown|x*) ;;
9589 # compilation failed
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
9599 $as_echo "$libltdl_cv_need_uscore" >&6; }
9603 if test x"$libltdl_cv_need_uscore" = xyes; then
9605 $as_echo "#define NEED_USCORE 1" >>confdefs.h
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
9611 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
9612 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 # PORTME does your system automatically load deplibs for dlopen?
9616 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9617 # For now, we just catch OSes we know something about -- in the
9618 # future, we'll try test this programmatically.
9619 libltdl_cv_sys_dlopen_deplibs=unknown
9621 aix3*|aix4.1.*|aix4.2.*)
9622 # Unknown whether this is true for these versions of AIX, but
9623 # we want this `case' here to explicitly catch those versions.
9624 libltdl_cv_sys_dlopen_deplibs=unknown
9627 libltdl_cv_sys_dlopen_deplibs=yes
9630 # Assuming the user has installed a libdl from somewhere, this is true
9631 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9632 libltdl_cv_sys_dlopen_deplibs=yes
9634 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9635 # GNU and its variants, using gnu ld.so (Glibc)
9636 libltdl_cv_sys_dlopen_deplibs=yes
9639 libltdl_cv_sys_dlopen_deplibs=yes
9642 libltdl_cv_sys_dlopen_deplibs=yes
9644 irix[12345]*|irix6.[01]*)
9645 # Catch all versions of IRIX before 6.2, and indicate that we don't
9646 # know how it worked for any of those versions.
9647 libltdl_cv_sys_dlopen_deplibs=unknown
9650 # The case above catches anything before 6.2, and it's known that
9651 # at 6.2 and later dlopen does load deplibs.
9652 libltdl_cv_sys_dlopen_deplibs=yes
9655 libltdl_cv_sys_dlopen_deplibs=yes
9658 libltdl_cv_sys_dlopen_deplibs=yes
9661 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9662 # it did *not* use an RPATH in a shared library to find objects the
9663 # library depends on, so we explictly say `no'.
9664 libltdl_cv_sys_dlopen_deplibs=no
9666 osf5.0|osf5.0a|osf5.1)
9667 # dlopen *does* load deplibs and with the right loader patch applied
9668 # it even uses RPATH in a shared library to search for shared objects
9669 # that the library depends on, but there's no easy way to know if that
9670 # patch is installed. Since this is the case, all we can really
9671 # say is unknown -- it depends on the patch being installed. If
9672 # it is, this changes to `yes'. Without it, it would be `no'.
9673 libltdl_cv_sys_dlopen_deplibs=unknown
9676 # the two cases above should catch all versions of osf <= 5.1. Read
9677 # the comments above for what we know about them.
9678 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9679 # is used to find them so we can finally say `yes'.
9680 libltdl_cv_sys_dlopen_deplibs=yes
9683 libltdl_cv_sys_dlopen_deplibs=yes
9685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686 libltdl_cv_sys_dlopen_deplibs=yes
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
9692 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
9693 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
9695 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
9699 for ac_header in argz.h
9701 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
9702 if test "x$ac_cv_header_argz_h" = x""yes; then :
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_ARGZ_H 1
9712 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
9716 if test "x$ac_cv_type_error_t" = x""yes; then :
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_ERROR_T 1
9725 $as_echo "#define error_t int" >>confdefs.h
9730 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9734 eval as_val=\$$as_ac_var
9735 if test "x$as_val" = x""yes; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9762 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9767 eval as_val=\$$as_ac_Header
9768 if test "x$as_val" = x""yes; then :
9769 cat >>confdefs.h <<_ACEOF
9770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9777 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9781 eval as_val=\$$as_ac_Header
9782 if test "x$as_val" = x""yes; then :
9783 cat >>confdefs.h <<_ACEOF
9784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791 for ac_header in string.h strings.h
9793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9795 eval as_val=\$$as_ac_Header
9796 if test "x$as_val" = x""yes; then :
9797 cat >>confdefs.h <<_ACEOF
9798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9806 for ac_func in strchr index
9808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9810 eval as_val=\$$as_ac_var
9811 if test "x$as_val" = x""yes; then :
9812 cat >>confdefs.h <<_ACEOF
9813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9819 for ac_func in strrchr rindex
9821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9823 eval as_val=\$$as_ac_var
9824 if test "x$as_val" = x""yes; then :
9825 cat >>confdefs.h <<_ACEOF
9826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9832 for ac_func in memcpy bcopy
9834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9836 eval as_val=\$$as_ac_var
9837 if test "x$as_val" = x""yes; then :
9838 cat >>confdefs.h <<_ACEOF
9839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9845 for ac_func in memmove strcmp
9847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9849 eval as_val=\$$as_ac_var
9850 if test "x$as_val" = x""yes; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9858 for ac_func in closedir opendir readdir
9860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9862 eval as_val=\$$as_ac_var
9863 if test "x$as_val" = x""yes; then :
9864 cat >>confdefs.h <<_ACEOF
9865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 if test "$WITH_LLVMGCCDIR" = "default" ; then
9874 LLVMGCC="llvm-gcc${EXEEXT}"
9875 LLVMGXX="llvm-g++${EXEEXT}"
9876 LLVMGCCCOMMAND="$LLVMGCC"
9877 LLVMGXXCOMMAND="$LLVMGXX"
9878 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9880 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9882 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
9883 set dummy $LLVMGCC; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_path_LLVMGCC+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9891 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 LLVMGCC=$ac_cv_path_LLVMGCC
9913 if test -n "$LLVMGCC"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5
9915 $as_echo "$LLVMGCC" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9922 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
9923 set dummy $LLVMGXX; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_path_LLVMGXX+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9931 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 LLVMGXX=$ac_cv_path_LLVMGXX
9953 if test -n "$LLVMGXX"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5
9955 $as_echo "$LLVMGXX" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9963 if test -z "$LLVMGCC"; then
9964 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
9965 LLVMGCCCOMMAND="$LLVMGCC"
9967 if test -z "$LLVMGXX"; then
9968 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
9969 LLVMGXXCOMMAND="$LLVMGXX"
9976 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9978 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
9984 $as_echo_n "checking tool compatibility... " >&6; }
9997 if test "$GCC" != "yes" && test "$ICC" != "yes"
9999 as_fn_error "gcc|icc required but not found" "$LINENO" 5
10002 if test "$GXX" != "yes" && test "$IXX" != "yes"
10004 as_fn_error "g++|icc required but not found" "$LINENO" 5
10007 if test "$GCC" = "yes"
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 #if !defined(__GNUC__) || __GNUC__ < 3
10012 #error Unsupported GCC version
10016 if ac_fn_c_try_compile "$LINENO"; then :
10019 as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 if test -z "$llvm_cv_gnu_make_command"
10026 as_fn_error "GNU Make required but not found" "$LINENO" 5
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10030 $as_echo "ok" >&6; }
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
10033 $as_echo_n "checking optional compiler flags... " >&6; }
10034 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
10036 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
10039 $as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10043 $as_echo_n "checking for sin in -lm... " >&6; }
10044 if test "${ac_cv_lib_m_sin+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10047 ac_check_lib_save_LIBS=$LIBS
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10052 /* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
10067 if ac_fn_c_try_link "$LINENO"; then :
10068 ac_cv_lib_m_sin=yes
10072 rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10077 $as_echo "$ac_cv_lib_m_sin" >&6; }
10078 if test "x$ac_cv_lib_m_sin" = x""yes; then :
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_LIBM 1
10087 if test "$llvm_cv_os_type" = "MingW" ; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5
10089 $as_echo_n "checking for main in -limagehlp... " >&6; }
10090 if test "${ac_cv_lib_imagehlp_main+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10093 ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-limagehlp $LIBS"
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 ac_cv_lib_imagehlp_main=yes
10110 ac_cv_lib_imagehlp_main=no
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5
10117 $as_echo "$ac_cv_lib_imagehlp_main" >&6; }
10118 if test "x$ac_cv_lib_imagehlp_main" = x""yes; then :
10119 cat >>confdefs.h <<_ACEOF
10120 #define HAVE_LIBIMAGEHLP 1
10123 LIBS="-limagehlp $LIBS"
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
10128 $as_echo_n "checking for main in -lpsapi... " >&6; }
10129 if test "${ac_cv_lib_psapi_main+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10132 ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-lpsapi $LIBS"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10146 if ac_fn_c_try_link "$LINENO"; then :
10147 ac_cv_lib_psapi_main=yes
10149 ac_cv_lib_psapi_main=no
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
10156 $as_echo "$ac_cv_lib_psapi_main" >&6; }
10157 if test "x$ac_cv_lib_psapi_main" = x""yes; then :
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_LIBPSAPI 1
10162 LIBS="-lpsapi $LIBS"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10169 $as_echo_n "checking for library containing dlopen... " >&6; }
10170 if test "${ac_cv_search_dlopen+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10173 ac_func_search_save_LIBS=$LIBS
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10192 for ac_lib in '' dl; do
10193 if test -z "$ac_lib"; then
10194 ac_res="none required"
10197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 ac_cv_search_dlopen=$ac_res
10202 rm -f core conftest.err conftest.$ac_objext \
10204 if test "${ac_cv_search_dlopen+set}" = set; then :
10208 if test "${ac_cv_search_dlopen+set}" = set; then :
10211 ac_cv_search_dlopen=no
10213 rm conftest.$ac_ext
10214 LIBS=$ac_func_search_save_LIBS
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10217 $as_echo "$ac_cv_search_dlopen" >&6; }
10218 ac_res=$ac_cv_search_dlopen
10219 if test "$ac_res" != no; then :
10220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10222 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
10226 $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
10230 if test "$llvm_cv_enable_libffi" = "yes" ; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
10232 $as_echo_n "checking for library containing ffi_call... " >&6; }
10233 if test "${ac_cv_search_ffi_call+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10236 ac_func_search_save_LIBS=$LIBS
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10250 return ffi_call ();
10255 for ac_lib in '' ffi; do
10256 if test -z "$ac_lib"; then
10257 ac_res="none required"
10260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 ac_cv_search_ffi_call=$ac_res
10265 rm -f core conftest.err conftest.$ac_objext \
10267 if test "${ac_cv_search_ffi_call+set}" = set; then :
10271 if test "${ac_cv_search_ffi_call+set}" = set; then :
10274 ac_cv_search_ffi_call=no
10276 rm conftest.$ac_ext
10277 LIBS=$ac_func_search_save_LIBS
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
10280 $as_echo "$ac_cv_search_ffi_call" >&6; }
10281 ac_res=$ac_cv_search_ffi_call
10282 if test "$ac_res" != no; then :
10283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10285 $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not found - disabling external calls from interpreter" >&5
10289 $as_echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
10295 $as_echo_n "checking for library containing mallinfo... " >&6; }
10296 if test "${ac_cv_search_mallinfo+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10299 ac_func_search_save_LIBS=$LIBS
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10313 return mallinfo ();
10318 for ac_lib in '' malloc; do
10319 if test -z "$ac_lib"; then
10320 ac_res="none required"
10323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10325 if ac_fn_c_try_link "$LINENO"; then :
10326 ac_cv_search_mallinfo=$ac_res
10328 rm -f core conftest.err conftest.$ac_objext \
10330 if test "${ac_cv_search_mallinfo+set}" = set; then :
10334 if test "${ac_cv_search_mallinfo+set}" = set; then :
10337 ac_cv_search_mallinfo=no
10339 rm conftest.$ac_ext
10340 LIBS=$ac_func_search_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
10343 $as_echo "$ac_cv_search_mallinfo" >&6; }
10344 ac_res=$ac_cv_search_mallinfo
10345 if test "$ac_res" != no; then :
10346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10348 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
10353 if test "$ENABLE_THREADS" -eq 1 ; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
10355 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
10356 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lpthread $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10370 char pthread_mutex_init ();
10374 return pthread_mutex_init ();
10379 if ac_fn_c_try_link "$LINENO"; then :
10380 ac_cv_lib_pthread_pthread_mutex_init=yes
10382 ac_cv_lib_pthread_pthread_mutex_init=no
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10389 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10390 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then :
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_LIBPTHREAD 1
10395 LIBS="-lpthread $LIBS"
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
10400 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10401 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
10404 ac_func_search_save_LIBS=$LIBS
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10414 char pthread_mutex_lock ();
10418 return pthread_mutex_lock ();
10423 for ac_lib in '' pthread; do
10424 if test -z "$ac_lib"; then
10425 ac_res="none required"
10428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 ac_cv_search_pthread_mutex_lock=$ac_res
10433 rm -f core conftest.err conftest.$ac_objext \
10435 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10439 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10442 ac_cv_search_pthread_mutex_lock=no
10444 rm conftest.$ac_ext
10445 LIBS=$ac_func_search_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
10448 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10449 ac_res=$ac_cv_search_pthread_mutex_lock
10450 if test "$ac_res" != no; then :
10451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10453 $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
10458 $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
10459 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10462 ac_func_search_save_LIBS=$LIBS
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10472 char pthread_rwlock_init ();
10476 return pthread_rwlock_init ();
10481 for ac_lib in '' pthread; do
10482 if test -z "$ac_lib"; then
10483 ac_res="none required"
10486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 ac_cv_search_pthread_rwlock_init=$ac_res
10491 rm -f core conftest.err conftest.$ac_objext \
10493 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10497 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10500 ac_cv_search_pthread_rwlock_init=no
10502 rm conftest.$ac_ext
10503 LIBS=$ac_func_search_save_LIBS
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
10506 $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
10507 ac_res=$ac_cv_search_pthread_rwlock_init
10508 if test "$ac_res" != no; then :
10509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10511 $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
10516 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
10517 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10520 ac_func_search_save_LIBS=$LIBS
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10530 char pthread_getspecific ();
10534 return pthread_getspecific ();
10539 for ac_lib in '' pthread; do
10540 if test -z "$ac_lib"; then
10541 ac_res="none required"
10544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10546 if ac_fn_c_try_link "$LINENO"; then :
10547 ac_cv_search_pthread_getspecific=$ac_res
10549 rm -f core conftest.err conftest.$ac_objext \
10551 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10555 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10558 ac_cv_search_pthread_getspecific=no
10560 rm conftest.$ac_ext
10561 LIBS=$ac_func_search_save_LIBS
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
10564 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
10565 ac_res=$ac_cv_search_pthread_getspecific
10566 if test "$ac_res" != no; then :
10567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10569 $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
10576 # Check whether --with-udis86 was given.
10577 if test "${with_udis86+set}" = set; then :
10578 withval=$with_udis86;
10583 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5
10586 $as_echo_n "checking for ud_init in -ludis86... " >&6; }
10587 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-ludis86 $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_lib_udis86_ud_init=yes
10613 ac_cv_lib_udis86_ud_init=no
10615 rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5
10620 $as_echo "$ac_cv_lib_udis86_ud_init" >&6; }
10621 if test "x$ac_cv_lib_udis86_ud_init" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_LIBUDIS86 1
10626 LIBS="-ludis86 $LIBS"
10630 echo "Error! You need to have libudis86 around."
10642 cat >>confdefs.h <<_ACEOF
10643 #define USE_UDIS86 $USE_UDIS86
10648 # Check whether --with-oprofile was given.
10649 if test "${with_oprofile+set}" = set; then :
10650 withval=$with_oprofile;
10654 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10655 no) llvm_cv_oppath=
10658 *) llvm_cv_oppath="${withval}/lib/oprofile"
10659 CPPFLAGS="-I${withval}/include";;
10661 if test -n "$llvm_cv_oppath" ; then
10662 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
10664 $as_echo_n "checking for library containing bfd_init... " >&6; }
10665 if test "${ac_cv_search_bfd_init+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10668 ac_func_search_save_LIBS=$LIBS
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10682 return bfd_init ();
10687 for ac_lib in '' bfd; do
10688 if test -z "$ac_lib"; then
10689 ac_res="none required"
10692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 ac_cv_search_bfd_init=$ac_res
10697 rm -f core conftest.err conftest.$ac_objext \
10699 if test "${ac_cv_search_bfd_init+set}" = set; then :
10703 if test "${ac_cv_search_bfd_init+set}" = set; then :
10706 ac_cv_search_bfd_init=no
10708 rm conftest.$ac_ext
10709 LIBS=$ac_func_search_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
10712 $as_echo "$ac_cv_search_bfd_init" >&6; }
10713 ac_res=$ac_cv_search_bfd_init
10714 if test "$ac_res" != no; then :
10715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
10720 $as_echo_n "checking for library containing op_open_agent... " >&6; }
10721 if test "${ac_cv_search_op_open_agent+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10724 ac_func_search_save_LIBS=$LIBS
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10734 char op_open_agent ();
10738 return op_open_agent ();
10743 for ac_lib in '' opagent; do
10744 if test -z "$ac_lib"; then
10745 ac_res="none required"
10748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_search_op_open_agent=$ac_res
10753 rm -f core conftest.err conftest.$ac_objext \
10755 if test "${ac_cv_search_op_open_agent+set}" = set; then :
10759 if test "${ac_cv_search_op_open_agent+set}" = set; then :
10762 ac_cv_search_op_open_agent=no
10764 rm conftest.$ac_ext
10765 LIBS=$ac_func_search_save_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
10768 $as_echo "$ac_cv_search_op_open_agent" >&6; }
10769 ac_res=$ac_cv_search_op_open_agent
10770 if test "$ac_res" != no; then :
10771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10775 echo "Error! You need to have libopagent around."
10780 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_opagent_h" = x""yes; then :
10785 echo "Error! You need to have opagent.h around."
10801 cat >>confdefs.h <<_ACEOF
10802 #define USE_OPROFILE $USE_OPROFILE
10807 ac_header_dirent=no
10808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10809 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10811 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10813 $as_echo_n "(cached) " >&6
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <sys/types.h>
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830 eval "$as_ac_Header=yes"
10832 eval "$as_ac_Header=no"
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 eval ac_res=\$$as_ac_Header
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10839 eval as_val=\$$as_ac_Header
10840 if test "x$as_val" = x""yes; then :
10841 cat >>confdefs.h <<_ACEOF
10842 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10845 ac_header_dirent=$ac_hdr; break
10849 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10850 if test $ac_header_dirent = dirent.h; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10852 $as_echo_n "checking for library containing opendir... " >&6; }
10853 if test "${ac_cv_search_opendir+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10856 ac_func_search_save_LIBS=$LIBS
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10875 for ac_lib in '' dir; do
10876 if test -z "$ac_lib"; then
10877 ac_res="none required"
10880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_search_opendir=$ac_res
10885 rm -f core conftest.err conftest.$ac_objext \
10887 if test "${ac_cv_search_opendir+set}" = set; then :
10891 if test "${ac_cv_search_opendir+set}" = set; then :
10894 ac_cv_search_opendir=no
10896 rm conftest.$ac_ext
10897 LIBS=$ac_func_search_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10900 $as_echo "$ac_cv_search_opendir" >&6; }
10901 ac_res=$ac_cv_search_opendir
10902 if test "$ac_res" != no; then :
10903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10909 $as_echo_n "checking for library containing opendir... " >&6; }
10910 if test "${ac_cv_search_opendir+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 ac_func_search_save_LIBS=$LIBS
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10932 for ac_lib in '' x; do
10933 if test -z "$ac_lib"; then
10934 ac_res="none required"
10937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_search_opendir=$ac_res
10942 rm -f core conftest.err conftest.$ac_objext \
10944 if test "${ac_cv_search_opendir+set}" = set; then :
10948 if test "${ac_cv_search_opendir+set}" = set; then :
10951 ac_cv_search_opendir=no
10953 rm conftest.$ac_ext
10954 LIBS=$ac_func_search_save_LIBS
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10957 $as_echo "$ac_cv_search_opendir" >&6; }
10958 ac_res=$ac_cv_search_opendir
10959 if test "$ac_res" != no; then :
10960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10967 $as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; }
10968 if test "${ac_cv_header_mmap_anon+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 #include <sys/mman.h>
10980 #include <unistd.h>
10985 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991 ac_cv_header_mmap_anon=yes
10993 ac_cv_header_mmap_anon=no
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5
11005 $as_echo "$ac_cv_header_mmap_anon" >&6; }
11006 if test "$ac_cv_header_mmap_anon" = yes; then
11008 $as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11013 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11014 if test "${ac_cv_header_stat_broken+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 #include <sys/types.h>
11020 #include <sys/stat.h>
11022 #if defined S_ISBLK && defined S_IFDIR
11023 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11026 #if defined S_ISBLK && defined S_IFCHR
11027 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11030 #if defined S_ISLNK && defined S_IFREG
11031 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11034 #if defined S_ISSOCK && defined S_IFREG
11035 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040 ac_cv_header_stat_broken=no
11042 ac_cv_header_stat_broken=yes
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11047 $as_echo "$ac_cv_header_stat_broken" >&6; }
11048 if test $ac_cv_header_stat_broken = yes; then
11050 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11055 $as_echo_n "checking for ANSI C header files... " >&6; }
11056 if test "${ac_cv_header_stdc+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #include <stdlib.h>
11062 #include <stdarg.h>
11063 #include <string.h>
11074 if ac_fn_c_try_compile "$LINENO"; then :
11075 ac_cv_header_stdc=yes
11077 ac_cv_header_stdc=no
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 if test $ac_cv_header_stdc = yes; then
11082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085 #include <string.h>
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089 $EGREP "memchr" >/dev/null 2>&1; then :
11092 ac_cv_header_stdc=no
11098 if test $ac_cv_header_stdc = yes; then
11099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 #include <stdlib.h>
11105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11106 $EGREP "free" >/dev/null 2>&1; then :
11109 ac_cv_header_stdc=no
11115 if test $ac_cv_header_stdc = yes; then
11116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11117 if test "$cross_compiling" = yes; then :
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 #include <stdlib.h>
11124 #if ((' ' & 0x0FF) == 0x020)
11125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11128 # define ISLOWER(c) \
11129 (('a' <= (c) && (c) <= 'i') \
11130 || ('j' <= (c) && (c) <= 'r') \
11131 || ('s' <= (c) && (c) <= 'z'))
11132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11140 for (i = 0; i < 256; i++)
11141 if (XOR (islower (i), ISLOWER (i))
11142 || toupper (i) != TOUPPER (i))
11147 if ac_fn_c_try_run "$LINENO"; then :
11150 ac_cv_header_stdc=no
11152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11153 conftest.$ac_objext conftest.beam conftest.$ac_ext
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11159 $as_echo "$ac_cv_header_stdc" >&6; }
11160 if test $ac_cv_header_stdc = yes; then
11162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11167 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11168 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <sys/types.h>
11174 #include <sys/wait.h>
11175 #ifndef WEXITSTATUS
11176 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11179 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11187 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193 ac_cv_header_sys_wait_h=yes
11195 ac_cv_header_sys_wait_h=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11200 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11201 if test $ac_cv_header_sys_wait_h = yes; then
11203 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11208 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11209 if test "${ac_cv_header_time+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 #include <sys/types.h>
11215 #include <sys/time.h>
11221 if ((struct tm *) 0)
11227 if ac_fn_c_try_compile "$LINENO"; then :
11228 ac_cv_header_time=yes
11230 ac_cv_header_time=no
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11235 $as_echo "$ac_cv_header_time" >&6; }
11236 if test $ac_cv_header_time = yes; then
11238 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11243 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
11245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11247 eval as_val=\$$as_ac_Header
11248 if test "x$as_val" = x""yes; then :
11249 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11261 eval as_val=\$$as_ac_Header
11262 if test "x$as_val" = x""yes; then :
11263 cat >>confdefs.h <<_ACEOF
11264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271 for ac_header in utime.h windows.h
11273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11275 eval as_val=\$$as_ac_Header
11276 if test "x$as_val" = x""yes; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
11287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11289 eval as_val=\$$as_ac_Header
11290 if test "x$as_val" = x""yes; then :
11291 cat >>confdefs.h <<_ACEOF
11292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11299 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
11301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303 eval as_val=\$$as_ac_Header
11304 if test "x$as_val" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313 if test "$ENABLE_THREADS" -eq 1 ; then
11314 for ac_header in pthread.h
11316 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11317 if test "x$ac_cv_header_pthread_h" = x""yes; then :
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_PTHREAD_H 1
11335 if test "$llvm_cv_enable_libffi" = "yes" ; then
11336 for ac_header in ffi.h ffi/ffi.h
11338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11340 eval as_val=\$$as_ac_Header
11341 if test "x$as_val" = x""yes; then :
11342 cat >>confdefs.h <<_ACEOF
11343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
11356 $as_echo_n "checking for HUGE_VAL sanity... " >&6; }
11357 if test "${ac_cv_huge_val_sanity+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11362 ac_cpp='$CXXCPP $CPPFLAGS'
11363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11368 if test "$cross_compiling" = yes; then :
11369 ac_cv_huge_val_sanity=yes
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11377 double x = HUGE_VAL; return x != x;
11382 if ac_fn_cxx_try_run "$LINENO"; then :
11383 ac_cv_huge_val_sanity=yes
11385 ac_cv_huge_val_sanity=no
11387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11388 conftest.$ac_objext conftest.beam conftest.$ac_ext
11392 ac_cpp='$CPP $CPPFLAGS'
11393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
11400 $as_echo "$ac_cv_huge_val_sanity" >&6; }
11401 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
11404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11405 if test "x$ac_cv_type_pid_t" = x""yes; then :
11409 cat >>confdefs.h <<_ACEOF
11415 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11416 if test "x$ac_cv_type_size_t" = x""yes; then :
11420 cat >>confdefs.h <<_ACEOF
11421 #define size_t unsigned int
11427 cat >>confdefs.h <<_ACEOF
11428 #define RETSIGTYPE void
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11432 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11433 if test "${ac_cv_struct_tm+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 #include <sys/types.h>
11445 int *p = &tm.tm_sec;
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452 ac_cv_struct_tm=time.h
11454 ac_cv_struct_tm=sys/time.h
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11459 $as_echo "$ac_cv_struct_tm" >&6; }
11460 if test $ac_cv_struct_tm = sys/time.h; then
11462 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11466 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11467 if test "x$ac_cv_type_int64_t" = x""yes; then :
11469 cat >>confdefs.h <<_ACEOF
11470 #define HAVE_INT64_T 1
11475 as_fn_error "Type int64_t required but not found" "$LINENO" 5
11478 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11479 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11481 cat >>confdefs.h <<_ACEOF
11482 #define HAVE_UINT64_T 1
11487 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
11488 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_U_INT64_T 1
11496 as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
11503 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
11505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11507 eval as_val=\$$as_ac_var
11508 if test "x$as_val" = x""yes; then :
11509 cat >>confdefs.h <<_ACEOF
11510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516 for ac_func in powf fmodf strtof round
11518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11520 eval as_val=\$$as_ac_var
11521 if test "x$as_val" = x""yes; then :
11522 cat >>confdefs.h <<_ACEOF
11523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11529 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
11531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11533 eval as_val=\$$as_ac_var
11534 if test "x$as_val" = x""yes; then :
11535 cat >>confdefs.h <<_ACEOF
11536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 for ac_func in isatty mkdtemp mkstemp
11544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11546 eval as_val=\$$as_ac_var
11547 if test "x$as_val" = x""yes; then :
11548 cat >>confdefs.h <<_ACEOF
11549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555 for ac_func in mktemp realpath sbrk setrlimit strdup
11557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11559 eval as_val=\$$as_ac_var
11560 if test "x$as_val" = x""yes; then :
11561 cat >>confdefs.h <<_ACEOF
11562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11568 for ac_func in strerror strerror_r strerror_s setenv
11570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11572 eval as_val=\$$as_ac_var
11573 if test "x$as_val" = x""yes; then :
11574 cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11581 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
11583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11585 eval as_val=\$$as_ac_var
11586 if test "x$as_val" = x""yes; then :
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 for ac_func in setjmp longjmp sigsetjmp siglongjmp
11596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11598 eval as_val=\$$as_ac_var
11599 if test "x$as_val" = x""yes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5
11608 $as_echo_n "checking if printf has the %a format character... " >&6; }
11609 if test "${llvm_cv_c_printf_a+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11613 ac_cpp='$CPP $CPPFLAGS'
11614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618 if test "$cross_compiling" = yes; then :
11619 llvmac_cv_c_printf_a=no
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11626 #include <stdlib.h>
11632 volatile double A, B;
11636 sprintf(Buffer, "%a", A);
11640 if (A != 0x1.999999999999ap-4)
11647 if ac_fn_c_try_run "$LINENO"; then :
11648 llvm_cv_c_printf_a=yes
11650 llvmac_cv_c_printf_a=no
11652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11653 conftest.$ac_objext conftest.beam conftest.$ac_ext
11657 ac_cpp='$CPP $CPPFLAGS'
11658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5
11664 $as_echo "$llvm_cv_c_printf_a" >&6; }
11665 if test "$llvm_cv_c_printf_a" = "yes"; then
11667 $as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
11673 $as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; }
11674 if test "${ac_cv_func_rand48+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11678 ac_cpp='$CXXCPP $CPPFLAGS'
11679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685 #include <stdlib.h>
11689 srand48(0);lrand48();drand48();
11694 if ac_fn_cxx_try_compile "$LINENO"; then :
11695 ac_cv_func_rand48=yes
11697 ac_cv_func_rand48=no
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701 ac_cpp='$CPP $CPPFLAGS'
11702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5
11708 $as_echo "$ac_cv_func_rand48" >&6; }
11710 if test "$ac_cv_func_rand48" = "yes" ; then
11712 $as_echo "#define HAVE_RAND48 1" >>confdefs.h
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5
11719 $as_echo_n "checking for isnan in <math.h>... " >&6; }
11720 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11724 ac_cpp='$CXXCPP $CPPFLAGS'
11725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11740 if ac_fn_cxx_try_compile "$LINENO"; then :
11741 ac_cv_func_isnan_in_math_h=yes
11743 ac_cv_func_isnan_in_math_h=no
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 ac_cpp='$CPP $CPPFLAGS'
11748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5
11754 $as_echo "$ac_cv_func_isnan_in_math_h" >&6; }
11757 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
11759 $as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5
11764 $as_echo_n "checking for isnan in <cmath>... " >&6; }
11765 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
11769 ac_cpp='$CXXCPP $CPPFLAGS'
11770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11785 if ac_fn_cxx_try_compile "$LINENO"; then :
11786 ac_cv_func_isnan_in_cmath=yes
11788 ac_cv_func_isnan_in_cmath=no
11790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 ac_cpp='$CPP $CPPFLAGS'
11793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5
11799 $as_echo "$ac_cv_func_isnan_in_cmath" >&6; }
11801 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
11803 $as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5
11808 $as_echo_n "checking for std::isnan in <cmath>... " >&6; }
11809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11813 ac_cpp='$CXXCPP $CPPFLAGS'
11814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11824 float f; std::isnan(f);
11829 if ac_fn_cxx_try_compile "$LINENO"; then :
11830 ac_cv_func_std_isnan_in_cmath=yes
11832 ac_cv_func_std_isnan_in_cmath=no
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 ac_cpp='$CPP $CPPFLAGS'
11837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5
11843 $as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; }
11845 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
11847 $as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5
11853 $as_echo_n "checking for isinf in <math.h>... " >&6; }
11854 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then :
11855 $as_echo_n "(cached) " >&6
11858 ac_cpp='$CXXCPP $CPPFLAGS'
11859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11874 if ac_fn_cxx_try_compile "$LINENO"; then :
11875 ac_cv_func_isinf_in_math_h=yes
11877 ac_cv_func_isinf_in_math_h=no
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5
11888 $as_echo "$ac_cv_func_isinf_in_math_h" >&6; }
11890 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
11892 $as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5
11897 $as_echo_n "checking for isinf in <cmath>... " >&6; }
11898 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11918 if ac_fn_cxx_try_compile "$LINENO"; then :
11919 ac_cv_func_isinf_in_cmath=yes
11921 ac_cv_func_isinf_in_cmath=no
11923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 ac_cpp='$CPP $CPPFLAGS'
11926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5
11932 $as_echo "$ac_cv_func_isinf_in_cmath" >&6; }
11934 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
11936 $as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5
11941 $as_echo_n "checking for std::isinf in <cmath>... " >&6; }
11942 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11946 ac_cpp='$CXXCPP $CPPFLAGS'
11947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11957 float f; std::isinf(f)}
11962 if ac_fn_cxx_try_compile "$LINENO"; then :
11963 ac_cv_func_std_isinf_in_cmath=yes
11965 ac_cv_func_std_isinf_in_cmath=no
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 ac_cpp='$CPP $CPPFLAGS'
11970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5
11976 $as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; }
11978 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
11980 $as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5
11985 $as_echo_n "checking for finite in <ieeefp.h>... " >&6; }
11986 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 #include <ieeefp.h>
12001 float f; finite(f);
12006 if ac_fn_cxx_try_compile "$LINENO"; then :
12007 ac_cv_func_finite_in_ieeefp_h=yes
12009 ac_cv_func_finite_in_ieeefp_h=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5
12020 $as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; }
12022 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
12024 $as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h
12030 if test "$llvm_cv_platform_type" = "Unix" ; then
12034 for ac_header in $ac_header_list
12036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12039 eval as_val=\$$as_ac_Header
12040 if test "x$as_val" = x""yes; then :
12041 cat >>confdefs.h <<_ACEOF
12042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12056 for ac_func in getpagesize
12058 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12059 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_GETPAGESIZE 1
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12068 $as_echo_n "checking for working mmap... " >&6; }
12069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12072 if test "$cross_compiling" = yes; then :
12073 ac_cv_func_mmap_fixed_mapped=no
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 $ac_includes_default
12078 /* malloc might have been renamed as rpl_malloc. */
12081 /* Thanks to Mike Haertel and Jim Avera for this test.
12082 Here is a matrix of mmap possibilities:
12083 mmap private not fixed
12084 mmap private fixed at somewhere currently unmapped
12085 mmap private fixed at somewhere already mapped
12086 mmap shared not fixed
12087 mmap shared fixed at somewhere currently unmapped
12088 mmap shared fixed at somewhere already mapped
12089 For private mappings, we should verify that changes cannot be read()
12090 back from the file, nor mmap's back from the file at a different
12091 address. (There have been systems where private was not correctly
12092 implemented like the infamous i386 svr4.0, and systems where the
12093 VM page cache was not coherent with the file system buffer cache
12094 like early versions of FreeBSD and possibly contemporary NetBSD.)
12095 For shared mappings, we should conversely verify that changes get
12096 propagated back to all the places they're supposed to be.
12098 Grep wants private fixed already mapped.
12099 The main things grep needs to know about mmap are:
12100 * does it exist and is it safe to write into the mmap'd area
12101 * how to use it (BSD variants) */
12104 #include <sys/mman.h>
12106 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12110 /* This mess was copied from the GNU getpagesize.h. */
12111 #ifndef HAVE_GETPAGESIZE
12112 # ifdef _SC_PAGESIZE
12113 # define getpagesize() sysconf(_SC_PAGESIZE)
12114 # else /* no _SC_PAGESIZE */
12115 # ifdef HAVE_SYS_PARAM_H
12116 # include <sys/param.h>
12117 # ifdef EXEC_PAGESIZE
12118 # define getpagesize() EXEC_PAGESIZE
12119 # else /* no EXEC_PAGESIZE */
12121 # define getpagesize() NBPG * CLSIZE
12124 # endif /* no CLSIZE */
12125 # else /* no NBPG */
12127 # define getpagesize() NBPC
12128 # else /* no NBPC */
12130 # define getpagesize() PAGESIZE
12131 # endif /* PAGESIZE */
12132 # endif /* no NBPC */
12133 # endif /* no NBPG */
12134 # endif /* no EXEC_PAGESIZE */
12135 # else /* no HAVE_SYS_PARAM_H */
12136 # define getpagesize() 8192 /* punt totally */
12137 # endif /* no HAVE_SYS_PARAM_H */
12138 # endif /* no _SC_PAGESIZE */
12140 #endif /* no HAVE_GETPAGESIZE */
12145 char *data, *data2, *data3;
12146 const char *cdata2;
12150 pagesize = getpagesize ();
12152 /* First, make a file with some known garbage in it. */
12153 data = (char *) malloc (pagesize);
12156 for (i = 0; i < pagesize; ++i)
12157 *(data + i) = rand ();
12159 fd = creat ("conftest.mmap", 0600);
12162 if (write (fd, data, pagesize) != pagesize)
12166 /* Next, check that the tail of a page is zero-filled. File must have
12167 non-zero length, otherwise we risk SIGBUS for entire page. */
12168 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12172 if (write (fd2, cdata2, 1) != 1)
12174 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12175 if (data2 == MAP_FAILED)
12177 for (i = 0; i < pagesize; ++i)
12181 if (munmap (data2, pagesize))
12184 /* Next, try to mmap the file at a fixed address which already has
12185 something else allocated at it. If we can, also make sure that
12186 we see the same garbage. */
12187 fd = open ("conftest.mmap", O_RDWR);
12190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12193 for (i = 0; i < pagesize; ++i)
12194 if (*(data + i) != *(data2 + i))
12197 /* Finally, make sure that changes to the mapped area do not
12198 percolate back to the file as seen by read(). (This is a bug on
12199 some variants of i386 svr4.0.) */
12200 for (i = 0; i < pagesize; ++i)
12201 *(data2 + i) = *(data2 + i) + 1;
12202 data3 = (char *) malloc (pagesize);
12205 if (read (fd, data3, pagesize) != pagesize)
12207 for (i = 0; i < pagesize; ++i)
12208 if (*(data + i) != *(data3 + i))
12214 if ac_fn_c_try_run "$LINENO"; then :
12215 ac_cv_func_mmap_fixed_mapped=yes
12217 ac_cv_func_mmap_fixed_mapped=no
12219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12220 conftest.$ac_objext conftest.beam conftest.$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12225 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12226 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12228 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12231 rm -f conftest.mmap conftest.txt
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5
12234 $as_echo_n "checking for mmap of files... " >&6; }
12235 if test "${ac_cv_func_mmap_file+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12239 ac_cpp='$CPP $CPPFLAGS'
12240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12244 if test "$cross_compiling" = yes; then :
12245 ac_cv_func_mmap_file=no
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12251 #include <sys/types.h>
12252 #include <sys/mman.h>
12260 fd = creat ("foo",0777);
12261 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
12263 return (fd != (int) MAP_FAILED);
12268 if ac_fn_c_try_run "$LINENO"; then :
12269 ac_cv_func_mmap_file=yes
12271 ac_cv_func_mmap_file=no
12273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12274 conftest.$ac_objext conftest.beam conftest.$ac_ext
12278 ac_cpp='$CPP $CPPFLAGS'
12279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12286 $as_echo "$ac_cv_func_mmap_file" >&6; }
12287 if test "$ac_cv_func_mmap_file" = yes; then
12289 $as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5
12296 $as_echo_n "checking if /dev/zero is needed for mmap... " >&6; }
12297 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 if test "$llvm_cv_os_type" = "Interix" ; then
12301 ac_cv_need_dev_zero_for_mmap=yes
12303 ac_cv_need_dev_zero_for_mmap=no
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5
12308 $as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; }
12309 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
12311 $as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h
12315 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5
12318 $as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
12320 if test "$ac_cv_func_mmap_file" = "no"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5
12323 $as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
12328 $as_echo_n "checking for GCC atomic builtins... " >&6; }
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12332 volatile unsigned long val = 1;
12333 __sync_synchronize();
12334 __sync_val_compare_and_swap(&val, 1, 0);
12335 __sync_add_and_fetch(&val, 1);
12336 __sync_sub_and_fetch(&val, 1);
12341 if ac_fn_c_try_link "$LINENO"; then :
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12345 $as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12351 $as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
12354 $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
12356 rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12361 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
12363 $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
12364 if test "${llvm_cv_linux_mixed+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12376 error: Not x86-64 even if uname says so!
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388 llvm_cv_linux_mixed=no
12390 llvm_cv_linux_mixed=yes
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
12402 $as_echo "$llvm_cv_linux_mixed" >&6; }
12404 if test "$llvm_cv_linux_mixed" = "yes"; then
12405 llvm_cv_target_arch="x86"
12410 for ac_func in __dso_handle
12412 ac_fn_c_check_func "$LINENO" "__dso_handle" "ac_cv_func___dso_handle"
12413 if test "x$ac_cv_func___dso_handle" = x""yes; then :
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE___DSO_HANDLE 1
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5
12423 $as_echo_n "checking whether llvm-gcc is sane... " >&6; }
12424 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12427 llvm_cv_llvmgcc_sanity="no"
12428 if test -x "$LLVMGCC" ; then
12429 cp /dev/null conftest.c
12430 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
12431 grep 'target datalayout =' > /dev/null 2>&1
12432 if test $? -eq 0 ; then
12433 llvm_cv_llvmgcc_sanity="yes"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5
12439 $as_echo "$llvm_cv_llvmgcc_sanity" >&6; }
12441 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5
12443 $as_echo_n "checking llvm-gcc component support... " >&6; }
12444 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
12445 LLVMCC1=$llvmcc1path
12447 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
12448 LLVMCC1PLUS=$llvmcc1pluspath
12450 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
12451 LLVMGCCDIR=$llvmgccdir
12453 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
12454 LLVMGCCLIBEXEC=$llvmgcclibexec
12456 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
12457 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
12458 LLVMGCC_VERSION=$llvmgccversion
12460 LLVMGCC_MAJVERS=$llvmgccmajvers
12462 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
12463 LLVMGCC_LANGS=$llvmgcclangs
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12466 $as_echo "ok" >&6; }
12469 SHLIBEXT=$libltdl_cv_shlibext
12472 # Translate the various configuration directories and other basic
12473 # information into substitutions that will end up in Makefile.config.in
12474 # that these configured values can be used by the makefiles
12475 if test "${prefix}" = "NONE" ; then
12476 prefix="/usr/local"
12478 eval LLVM_PREFIX="${prefix}";
12479 eval LLVM_BINDIR="${prefix}/bin";
12480 eval LLVM_LIBDIR="${prefix}/lib";
12481 eval LLVM_DATADIR="${prefix}/share/llvm";
12482 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
12483 eval LLVM_ETCDIR="${prefix}/etc/llvm";
12484 eval LLVM_INCLUDEDIR="${prefix}/include";
12485 eval LLVM_INFODIR="${prefix}/info";
12486 eval LLVM_MANDIR="${prefix}/man";
12487 LLVM_CONFIGTIME=`date`
12499 # Place the various directores into the config.h file as #defines so that we
12500 # can know about the installation paths within LLVM.
12502 cat >>confdefs.h <<_ACEOF
12503 #define LLVM_PREFIX "$LLVM_PREFIX"
12507 cat >>confdefs.h <<_ACEOF
12508 #define LLVM_BINDIR "$LLVM_BINDIR"
12512 cat >>confdefs.h <<_ACEOF
12513 #define LLVM_LIBDIR "$LLVM_LIBDIR"
12517 cat >>confdefs.h <<_ACEOF
12518 #define LLVM_DATADIR "$LLVM_DATADIR"
12522 cat >>confdefs.h <<_ACEOF
12523 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
12527 cat >>confdefs.h <<_ACEOF
12528 #define LLVM_ETCDIR "$LLVM_ETCDIR"
12532 cat >>confdefs.h <<_ACEOF
12533 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
12537 cat >>confdefs.h <<_ACEOF
12538 #define LLVM_INFODIR "$LLVM_INFODIR"
12542 cat >>confdefs.h <<_ACEOF
12543 #define LLVM_MANDIR "$LLVM_MANDIR"
12547 cat >>confdefs.h <<_ACEOF
12548 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
12552 cat >>confdefs.h <<_ACEOF
12553 #define LLVM_HOSTTRIPLE "$host"
12557 # Determine which bindings to build.
12558 if test "$BINDINGS_TO_BUILD" = auto ; then
12559 BINDINGS_TO_BUILD=""
12560 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
12561 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
12564 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
12567 # This isn't really configurey, but it avoids having to repeat the list in
12572 # Do any work necessary to ensure that bindings have what they need.
12573 binding_prereqs_failed=0
12574 for a_binding in $BINDINGS_TO_BUILD ; do
12575 case "$a_binding" in
12577 if test "x$OCAMLC" = x ; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
12579 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
12580 binding_prereqs_failed=1
12582 if test "x$OCAMLDEP" = x ; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
12584 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
12585 binding_prereqs_failed=1
12587 if test "x$OCAMLOPT" = x ; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
12589 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
12591 if test "x$with_ocaml_libdir" != xauto ; then
12592 OCAML_LIBDIR=$with_ocaml_libdir
12595 ocaml_stdlib="`"$OCAMLC" -where`"
12596 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
12598 # ocaml stdlib is beneath our prefix; use stdlib
12599 OCAML_LIBDIR=$ocaml_stdlib
12602 # ocaml stdlib is outside our prefix; use libdir/ocaml
12603 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
12610 if test "$binding_prereqs_failed" = 1 ; then
12611 as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
12615 $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
12616 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12620 ac_cpp='$CXXCPP $CPPFLAGS'
12621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12625 oldcxxflags="$CXXFLAGS"
12626 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12638 if ac_fn_cxx_try_compile "$LINENO"; then :
12639 llvm_cv_cxx_visibility_inlines_hidden=yes
12641 llvm_cv_cxx_visibility_inlines_hidden=no
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 CXXFLAGS="$oldcxxflags"
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
12654 $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
12655 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
12656 ENABLE_VISIBILITY_INLINES_HIDDEN=1
12659 ENABLE_VISIBILITY_INLINES_HIDDEN=0
12664 if test "$llvm_cv_link_use_r" = "yes" ; then
12671 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
12672 RDYNAMIC="-Wl,-export-dynamic"
12679 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
12681 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
12683 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
12685 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
12687 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
12689 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
12692 ac_config_files="$ac_config_files Makefile.config"
12695 ac_config_files="$ac_config_files llvm.spec"
12698 ac_config_files="$ac_config_files docs/doxygen.cfg"
12701 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
12704 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
12707 ac_config_commands="$ac_config_commands setup"
12709 ac_config_commands="$ac_config_commands Makefile"
12712 ac_config_commands="$ac_config_commands Makefile.common"
12715 ac_config_commands="$ac_config_commands examples/Makefile"
12718 ac_config_commands="$ac_config_commands lib/Makefile"
12721 ac_config_commands="$ac_config_commands runtime/Makefile"
12724 ac_config_commands="$ac_config_commands test/Makefile"
12727 ac_config_commands="$ac_config_commands test/Makefile.tests"
12730 ac_config_commands="$ac_config_commands unittests/Makefile"
12733 ac_config_commands="$ac_config_commands tools/Makefile"
12736 ac_config_commands="$ac_config_commands utils/Makefile"
12739 ac_config_commands="$ac_config_commands projects/Makefile"
12742 ac_config_commands="$ac_config_commands bindings/Makefile"
12745 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
12749 cat >confcache <<\_ACEOF
12750 # This file is a shell script that caches the results of configure
12751 # tests run on this system so they can be shared between configure
12752 # scripts and configure runs, see configure's option --config-cache.
12753 # It is not useful on other systems. If it contains results you don't
12754 # want to keep, you may remove or edit it.
12756 # config.status only pays attention to the cache file if you give it
12757 # the --recheck option to rerun configure.
12759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12761 # following values.
12765 # The following way of writing the cache mishandles newlines in values,
12766 # but we know of no workaround that is simple, portable, and efficient.
12767 # So, we kill variables containing newlines.
12768 # Ultrix sh set writes to stderr and can't be redirected directly,
12769 # and sets the high bit in the cache file unless we assign to the vars.
12771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12772 eval ac_val=\$$ac_var
12776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12780 _ | IFS | as_nl) ;; #(
12781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12782 *) { eval $ac_var=; unset $ac_var;} ;;
12788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12789 *${as_nl}ac_space=\ *)
12790 # `set' does not quote correctly, so add quotes: double-quote
12791 # substitution turns \\\\ into \\, and sed turns \\ into \.
12794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12797 # `set' quotes correctly as required by POSIX, so do not add quotes.
12798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12812 if test -w "$cache_file"; then
12813 test "x$cache_file" != "x/dev/null" &&
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12815 $as_echo "$as_me: updating cache $cache_file" >&6;}
12816 cat confcache >$cache_file
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12819 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12825 # Let make expand exec_prefix.
12826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12828 DEFS=-DHAVE_CONFIG_H
12832 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12833 # 1. Remove the extension, and $U if already installed.
12834 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12835 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12837 # will be set to the directory where LIBOBJS objects are built.
12838 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12839 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12841 LIBOBJS=$ac_libobjs
12843 LTLIBOBJS=$ac_ltlibobjs
12847 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12848 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
12849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12851 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12852 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
12853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12856 : ${CONFIG_STATUS=./config.status}
12858 ac_clean_files_save=$ac_clean_files
12859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12865 # Generated by $as_me.
12866 # Run this file to recreate the current configuration.
12867 # Compiler output produced by configure, useful for debugging
12868 # configure, is in config.log if it exists.
12871 ac_cs_recheck=false
12874 SHELL=\${CONFIG_SHELL-$SHELL}
12877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12878 ## -------------------- ##
12879 ## M4sh Initialization. ##
12880 ## -------------------- ##
12882 # Be more Bourne compatible
12883 DUALCASE=1; export DUALCASE # for MKS sh
12884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12888 # is contrary to our usage. Disable this feature.
12889 alias -g '${1+"$@"}'='"$@"'
12890 setopt NO_GLOB_SUBST
12892 case `(set -o) 2>/dev/null` in #(
12904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12905 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12908 # Prefer a ksh shell builtin over an external printf program on Solaris,
12909 # but without wasting forks for bash or zsh.
12910 if test -z "$BASH_VERSION$ZSH_VERSION" \
12911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12912 as_echo='print -r --'
12913 as_echo_n='print -rn --'
12914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12915 as_echo='printf %s\n'
12916 as_echo_n='printf %s'
12918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12920 as_echo_n='/usr/ucb/echo -n'
12922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12923 as_echo_n_body='eval
12927 expr "X$arg" : "X\\(.*\\)$as_nl";
12928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12932 export as_echo_n_body
12933 as_echo_n='sh -c $as_echo_n_body as_echo'
12935 export as_echo_body
12936 as_echo='sh -c $as_echo_body as_echo'
12939 # The user is always right.
12940 if test "${PATH_SEPARATOR+set}" != set; then
12942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12950 # We need space, tab and new line, in precisely that order. Quoting is
12951 # there to prevent editors from complaining about space-tab.
12952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12953 # splitting by setting IFS to empty value.)
12956 # Find who we are. Look in the path if we contain no directory separator.
12958 *[\\/]* ) as_myself=$0 ;;
12959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12963 test -z "$as_dir" && as_dir=.
12964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12970 # We did not find ourselves, most probably we were run as `sh COMMAND'
12971 # in which case we are not to be found in the path.
12972 if test "x$as_myself" = x; then
12975 if test ! -f "$as_myself"; then
12976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12980 # Unset variables that we do not need and which cause bugs (e.g. in
12981 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12982 # suppresses any "Segmentation fault" message there. '((' could
12983 # trigger a bug in pdksh 5.2.14.
12984 for as_var in BASH_ENV ENV MAIL MAILPATH
12985 do eval test x\${$as_var+set} = xset \
12986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13002 # as_fn_error ERROR [LINENO LOG_FD]
13003 # ---------------------------------
13004 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13005 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13006 # script with status $?, using 1 if that was 0.
13009 as_status=$?; test $as_status -eq 0 && as_status=1
13011 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13014 $as_echo "$as_me: error: $1" >&2
13015 as_fn_exit $as_status
13019 # as_fn_set_status STATUS
13020 # -----------------------
13021 # Set $? to STATUS, without forking.
13022 as_fn_set_status ()
13025 } # as_fn_set_status
13027 # as_fn_exit STATUS
13028 # -----------------
13029 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13033 as_fn_set_status $1
13039 # Portably unset VAR.
13042 { eval $1=; unset $1;}
13044 as_unset=as_fn_unset
13045 # as_fn_append VAR VALUE
13046 # ----------------------
13047 # Append the text in VALUE to the end of the definition contained in VAR. Take
13048 # advantage of any shell optimizations that allow amortized linear growth over
13049 # repeated appends, instead of the typical quadratic growth present in naive
13051 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13052 eval 'as_fn_append ()
13063 # as_fn_arith ARG...
13064 # ------------------
13065 # Perform arithmetic evaluation on the ARGs, and store the result in the
13066 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13067 # must be portable across $(()) and expr.
13068 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13069 eval 'as_fn_arith ()
13076 as_val=`expr "$@" || test $? -eq 1`
13081 if expr a : '\(a\)' >/dev/null 2>&1 &&
13082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13089 as_basename=basename
13094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13100 as_me=`$as_basename -- "$0" ||
13101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13102 X"$0" : 'X\(//\)$' \| \
13103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13105 sed '/^.*\/\([^/][^/]*\)\/*$/{
13119 # Avoid depending upon Character Ranges.
13120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13123 as_cr_digits='0123456789'
13124 as_cr_alnum=$as_cr_Letters$as_cr_digits
13126 ECHO_C= ECHO_N= ECHO_T=
13127 case `echo -n x` in #(((((
13129 case `echo 'xy\c'` in
13130 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13139 rm -f conf$$ conf$$.exe conf$$.file
13140 if test -d conf$$.dir; then
13141 rm -f conf$$.dir/conf$$.file
13144 mkdir conf$$.dir 2>/dev/null
13146 if (echo >conf$$.file) 2>/dev/null; then
13147 if ln -s conf$$.file conf$$ 2>/dev/null; then
13149 # ... but there are two gotchas:
13150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13152 # In both cases, we have to default to `cp -p'.
13153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13155 elif ln conf$$.file conf$$ 2>/dev/null; then
13163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13164 rmdir conf$$.dir 2>/dev/null
13169 # Create "$as_dir" as a directory, including parents if necessary.
13174 -*) as_dir=./$as_dir;;
13176 test -d "$as_dir" || eval $as_mkdir_p || {
13180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13181 *) as_qdir=$as_dir;;
13183 as_dirs="'$as_qdir' $as_dirs"
13184 as_dir=`$as_dirname -- "$as_dir" ||
13185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13186 X"$as_dir" : 'X\(//\)[^/]' \| \
13187 X"$as_dir" : 'X\(//\)$' \| \
13188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13189 $as_echo X"$as_dir" |
13190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13194 /^X\(\/\/\)[^/].*/{
13207 test -d "$as_dir" && break
13209 test -z "$as_dirs" || eval "mkdir $as_dirs"
13210 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13214 if mkdir -p . 2>/dev/null; then
13215 as_mkdir_p='mkdir -p "$as_dir"'
13217 test -d ./-p && rmdir ./-p
13221 if test -x / >/dev/null 2>&1; then
13222 as_test_x='test -x'
13224 if ls -dL / >/dev/null 2>&1; then
13231 if test -d "$1"; then
13237 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13238 ???[sx]*):;;*)false;;esac;fi
13242 as_executable_p=$as_test_x
13244 # Sed expression to map a string onto a valid CPP name.
13245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13247 # Sed expression to map a string onto a valid variable name.
13248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13252 ## ----------------------------------- ##
13253 ## Main body of $CONFIG_STATUS script. ##
13254 ## ----------------------------------- ##
13256 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13259 # Save the log message, to keep $0 and so on meaningful, and to
13260 # report actual input values of CONFIG_FILES etc. instead of their
13261 # values after options handling.
13263 This file was extended by llvm $as_me 2.7svn, which was
13264 generated by GNU Autoconf 2.65. Invocation command line was
13266 CONFIG_FILES = $CONFIG_FILES
13267 CONFIG_HEADERS = $CONFIG_HEADERS
13268 CONFIG_LINKS = $CONFIG_LINKS
13269 CONFIG_COMMANDS = $CONFIG_COMMANDS
13272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13277 case $ac_config_files in *"
13278 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13281 case $ac_config_headers in *"
13282 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13287 # Files that config.status was made for.
13288 config_files="$ac_config_files"
13289 config_headers="$ac_config_headers"
13290 config_commands="$ac_config_commands"
13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13296 \`$as_me' instantiates files and other configuration actions
13297 from templates according to the current configuration. Unless the files
13298 and actions are specified as TAGs, all are instantiated by default.
13300 Usage: $0 [OPTION]... [TAG]...
13302 -h, --help print this help, then exit
13303 -V, --version print version number and configuration settings, then exit
13304 --config print configuration, then exit
13305 -q, --quiet, --silent
13306 do not print progress messages
13307 -d, --debug don't remove temporary files
13308 --recheck update $as_me by reconfiguring in the same conditions
13309 --file=FILE[:TEMPLATE]
13310 instantiate the configuration file FILE
13311 --header=FILE[:TEMPLATE]
13312 instantiate the configuration header FILE
13314 Configuration files:
13317 Configuration headers:
13320 Configuration commands:
13323 Report bugs to <llvmbugs@cs.uiuc.edu>."
13326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13329 llvm config.status 2.7svn
13330 configured by $0, generated by GNU Autoconf 2.65,
13331 with options \\"\$ac_cs_config\\"
13333 Copyright (C) 2009 Free Software Foundation, Inc.
13334 This config.status script is free software; the Free Software Foundation
13335 gives unlimited permission to copy, distribute and modify it."
13340 test -n "\$AWK" || AWK=awk
13343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13344 # The default lists apply if the user does not specify any file.
13350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13362 # Handling of the options.
13363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13366 $as_echo "$ac_cs_version"; exit ;;
13367 --config | --confi | --conf | --con | --co | --c )
13368 $as_echo "$ac_cs_config"; exit ;;
13369 --debug | --debu | --deb | --de | --d | -d )
13371 --file | --fil | --fi | --f )
13374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13376 as_fn_append CONFIG_FILES " '$ac_optarg'"
13377 ac_need_defaults=false;;
13378 --header | --heade | --head | --hea )
13381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13383 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13384 ac_need_defaults=false;;
13386 # Conflict between --help and --header
13387 as_fn_error "ambiguous option: \`$1'
13388 Try \`$0 --help' for more information.";;
13389 --help | --hel | -h )
13390 $as_echo "$ac_cs_usage"; exit ;;
13391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13395 # This is an error.
13396 -*) as_fn_error "unrecognized option: \`$1'
13397 Try \`$0 --help' for more information." ;;
13399 *) as_fn_append ac_config_targets " $1"
13400 ac_need_defaults=false ;;
13406 ac_configure_extra_args=
13408 if $ac_cs_silent; then
13410 ac_configure_extra_args="$ac_configure_extra_args --silent"
13414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13415 if \$ac_cs_recheck; then
13416 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13419 CONFIG_SHELL='$SHELL'
13420 export CONFIG_SHELL
13425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13430 ## Running $as_me. ##
13436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440 llvm_src="${srcdir}"
13444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446 # Handling of arguments.
13447 for ac_config_target in $ac_config_targets
13449 case $ac_config_target in
13450 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
13451 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13452 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
13453 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
13454 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
13455 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
13456 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
13457 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
13458 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
13459 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
13460 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13461 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
13462 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13463 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
13464 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
13465 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
13466 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
13467 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
13468 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
13469 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
13470 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
13471 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
13472 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
13473 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
13474 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
13476 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13481 # If the user did not use the arguments to specify the items to instantiate,
13482 # then the envvar interface is used. Set only those that are not.
13483 # We use the long form for the default assignment because of an extremely
13484 # bizarre bug on SunOS 4.1.3.
13485 if $ac_need_defaults; then
13486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13491 # Have a temporary directory for convenience. Make it in the build tree
13492 # simply because there is no reason against having it here, and in addition,
13493 # creating and moving files from /tmp can sometimes cause problems.
13494 # Hook for its removal unless debugging.
13495 # Note that there is a small window in which the directory will not be cleaned:
13496 # after its creation but before its name has been assigned to `$tmp'.
13500 trap 'exit_status=$?
13501 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13503 trap 'as_fn_exit 1' 1 2 13 15
13505 # Create a (secure) tmp directory for tmp files.
13508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13509 test -n "$tmp" && test -d "$tmp"
13512 tmp=./conf$$-$RANDOM
13513 (umask 077 && mkdir "$tmp")
13514 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13516 # Set up the scripts for CONFIG_FILES section.
13517 # No need to generate them if there are no CONFIG_FILES.
13518 # This happens for instance with `./config.status config.h'.
13519 if test -n "$CONFIG_FILES"; then
13522 ac_cr=`echo X | tr X '\015'`
13523 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13524 # But we know of no other shell where ac_cr would be empty at this
13525 # point, so we can use a bashism as a fallback.
13526 if test "x$ac_cr" = x; then
13527 eval ac_cr=\$\'\\r\'
13529 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13530 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13533 ac_cs_awk_cr=$ac_cr
13536 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13541 echo "cat >conf$$subs.awk <<_ACEOF" &&
13542 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13544 } >conf$$subs.sh ||
13545 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13546 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13548 for ac_last_try in false false false false false :; do
13549 . ./conf$$subs.sh ||
13550 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13552 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13553 if test $ac_delim_n = $ac_delim_num; then
13555 elif $ac_last_try; then
13556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13561 rm -f conf$$subs.sh
13563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13568 s/^/S["/; s/!.*/"]=/
13578 s/\(.\{148\}\)..*/\1/
13580 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13592 s/\(.\{148\}\)..*/\1/
13594 s/["\\]/\\&/g; s/^/"/; s/$/"/
13598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13603 ' <conf$$subs.awk | sed '
13608 ' >>$CONFIG_STATUS || ac_write_fail=1
13609 rm -f conf$$subs.awk
13610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13612 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13613 for (key in S) S_is_set[key] = 1
13619 nfields = split(line, field, "@")
13621 len = length(field[1])
13622 for (i = 2; i < nfields; i++) {
13624 keylen = length(key)
13625 if (S_is_set[key]) {
13627 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13628 len += length(value) + length(field[++i])
13639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13640 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13641 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13644 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13645 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13650 # trailing colons and then remove the whole line if VPATH becomes empty
13651 # (actually we leave an empty line to preserve line numbers).
13652 if test "x$srcdir" = x.; then
13653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13654 s/:*\$(srcdir):*/:/
13655 s/:*\${srcdir}:*/:/
13657 s/^\([^=]*=[ ]*\):*/\1/
13663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13664 fi # test -n "$CONFIG_FILES"
13666 # Set up the scripts for CONFIG_HEADERS section.
13667 # No need to generate them if there are no CONFIG_HEADERS.
13668 # This happens for instance with `./config.status Makefile'.
13669 if test -n "$CONFIG_HEADERS"; then
13670 cat >"$tmp/defines.awk" <<\_ACAWK ||
13674 # Transform confdefs.h into an awk script `defines.awk', embedded as
13675 # here-document in config.status, that substitutes the proper values into
13676 # config.h.in to produce config.h.
13678 # Create a delimiter string that does not exist in confdefs.h, to ease
13679 # handling of long lines.
13681 for ac_last_try in false false :; do
13682 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13683 if test -z "$ac_t"; then
13685 elif $ac_last_try; then
13686 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13692 # For the awk script, D is an array of macro values keyed by name,
13693 # likewise P contains macro parameters if any. Preserve backslash
13694 # newline sequences.
13696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13698 s/.\{148\}/&'"$ac_delim"'/g
13701 s/^[ ]*#[ ]*define[ ][ ]*/ /
13708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13715 D["\1"]=" \3\\\\\\n"\\/p
13717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13722 s/.\{148\}/&'"$ac_delim"'/g
13727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13732 ' <confdefs.h | sed '
13733 s/'"$ac_delim"'/"\\\
13734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737 for (key in D) D_is_set[key] = 1
13740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13742 split(line, arg, " ")
13743 if (arg[1] == "#") {
13747 defundef = substr(arg[1], 2)
13750 split(mac1, mac2, "(") #)
13752 prefix = substr(line, 1, index(line, defundef) - 1)
13753 if (D_is_set[macro]) {
13754 # Preserve the white space surrounding the "#".
13755 print prefix "define", macro P[macro] D[macro]
13758 # Replace #undef with comments. This is necessary, for example,
13759 # in the case of _POSIX_SOURCE, which is predefined and required
13760 # on some systems where configure will not decide to define it.
13761 if (defundef == "undef") {
13762 print "/*", prefix defundef, macro, "*/"
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13772 fi # test -n "$CONFIG_HEADERS"
13775 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13780 :[FHLC]) ac_mode=$ac_tag; continue;;
13782 case $ac_mode$ac_tag in
13784 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13785 :[FH]-) ac_tag=-:-;;
13786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13803 -) ac_f="$tmp/stdin";;
13804 *) # Look for the file first in the build tree, then in the source tree
13805 # (if the path is not absolute). The absolute path cannot be DOS-style,
13806 # because $ac_f cannot contain `:'.
13810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13812 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13815 as_fn_append ac_file_inputs " '$ac_f'"
13818 # Let's still pretend it is `configure' which instantiates (i.e., don't
13819 # use $as_me), people would be surprised to read:
13820 # /* config.h. Generated by config.status. */
13821 configure_input='Generated from '`
13822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13824 if test x"$ac_file" != x-; then
13825 configure_input="$ac_file. $configure_input"
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13827 $as_echo "$as_me: creating $ac_file" >&6;}
13829 # Neutralize special characters interpreted by sed in replacement strings.
13830 case $configure_input in #(
13831 *\&* | *\|* | *\\* )
13832 ac_sed_conf_input=`$as_echo "$configure_input" |
13833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13834 *) ac_sed_conf_input=$configure_input;;
13838 *:-:* | *:-) cat >"$tmp/stdin" \
13839 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13844 ac_dir=`$as_dirname -- "$ac_file" ||
13845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13846 X"$ac_file" : 'X\(//\)[^/]' \| \
13847 X"$ac_file" : 'X\(//\)$' \| \
13848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13849 $as_echo X"$ac_file" |
13850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13854 /^X\(\/\/\)[^/].*/{
13867 as_dir="$ac_dir"; as_fn_mkdir_p
13871 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13874 # A ".." for each directory in $ac_dir_suffix.
13875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13876 case $ac_top_builddir_sub in
13877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13881 ac_abs_top_builddir=$ac_pwd
13882 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13883 # for backward compatibility:
13884 ac_top_builddir=$ac_top_build_prefix
13887 .) # We are building in place.
13889 ac_top_srcdir=$ac_top_builddir_sub
13890 ac_abs_top_srcdir=$ac_pwd ;;
13891 [\\/]* | ?:[\\/]* ) # Absolute name.
13892 ac_srcdir=$srcdir$ac_dir_suffix;
13893 ac_top_srcdir=$srcdir
13894 ac_abs_top_srcdir=$srcdir ;;
13895 *) # Relative name.
13896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13897 ac_top_srcdir=$ac_top_build_prefix$srcdir
13898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13900 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 # If the template does not know about datarootdir, expand it.
13917 # FIXME: This hack should be removed a few years after 2.60.
13918 ac_datarootdir_hack=; ac_datarootdir_seen=
13929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13930 *datarootdir*) ac_datarootdir_seen=yes;;
13931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 ac_datarootdir_hack='
13937 s&@datadir@&$datadir&g
13938 s&@docdir@&$docdir&g
13939 s&@infodir@&$infodir&g
13940 s&@localedir@&$localedir&g
13941 s&@mandir@&$mandir&g
13942 s&\\\${datarootdir}&$datarootdir&g' ;;
13946 # Neutralize VPATH when `$srcdir' = `.'.
13947 # Shell code in configure.ac might set extrasub.
13948 # FIXME: do we really want to maintain this feature?
13949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950 ac_sed_extra="$ac_vpsub
13953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13956 s|@configure_input@|$ac_sed_conf_input|;t t
13957 s&@top_builddir@&$ac_top_builddir_sub&;t t
13958 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13959 s&@srcdir@&$ac_srcdir&;t t
13960 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13961 s&@top_srcdir@&$ac_top_srcdir&;t t
13962 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13963 s&@builddir@&$ac_builddir&;t t
13964 s&@abs_builddir@&$ac_abs_builddir&;t t
13965 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13966 s&@INSTALL@&$ac_INSTALL&;t t
13967 $ac_datarootdir_hack
13969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13970 || as_fn_error "could not create $ac_file" "$LINENO" 5
13972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13973 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13976 which seems to be undefined. Please make sure it is defined." >&5
13977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13978 which seems to be undefined. Please make sure it is defined." >&2;}
13982 -) cat "$tmp/out" && rm -f "$tmp/out";;
13983 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13985 || as_fn_error "could not create $ac_file" "$LINENO" 5
13991 if test x"$ac_file" != x-; then
13993 $as_echo "/* $configure_input */" \
13994 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13995 } >"$tmp/config.h" \
13996 || as_fn_error "could not create $ac_file" "$LINENO" 5
13997 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14002 mv "$tmp/config.h" "$ac_file" \
14003 || as_fn_error "could not create $ac_file" "$LINENO" 5
14006 $as_echo "/* $configure_input */" \
14007 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14008 || as_fn_error "could not create -" "$LINENO" 5
14012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14013 $as_echo "$as_me: executing $ac_file commands" >&6;}
14018 case $ac_file$ac_mode in
14019 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
14020 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
14021 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
14022 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
14023 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
14024 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
14025 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
14026 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
14027 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
14028 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
14029 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
14030 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
14031 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
14032 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
14033 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
14034 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
14035 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
14036 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
14037 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
14038 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
14039 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
14040 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
14041 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
14042 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
14043 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
14044 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
14052 ac_clean_files=$ac_clean_files_save
14054 test $ac_write_fail = 0 ||
14055 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14058 # configure is writing to config.log, and then calls config.status.
14059 # config.status does its own redirection, appending to config.log.
14060 # Unfortunately, on DOS this fails, as config.log is still kept open
14061 # by configure, so config.status won't be able to write to it; its
14062 # output is simply discarded. So we exec the FD to /dev/null,
14063 # effectively closing config.log, so it can be properly (re)opened and
14064 # appended to by config.status. When coming back to configure, we
14065 # need to make the FD available again.
14066 if test "$no_create" != yes; then
14068 ac_config_status_args=
14069 test "$silent" = yes &&
14070 ac_config_status_args="$ac_config_status_args --quiet"
14072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14075 # would make configure fail if this is the last instruction.
14076 $ac_cs_success || as_fn_exit $?
14080 # CONFIG_SUBDIRS section.
14082 if test "$no_recursion" != yes; then
14084 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14085 # so they do not pile up.
14086 ac_sub_configure_args=
14088 eval "set x $ac_configure_args"
14092 if test -n "$ac_prev"; then
14097 -cache-file | --cache-file | --cache-fil | --cache-fi \
14098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14099 ac_prev=cache_file ;;
14100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14104 --config-cache | -C)
14106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14114 --disable-option-checking)
14118 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14120 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14124 # Always prepend --prefix to ensure using the same prefix
14125 # in subdir configurations.
14126 ac_arg="--prefix=$prefix"
14128 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14130 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14133 if test "$silent" = yes; then
14134 ac_sub_configure_args="--silent $ac_sub_configure_args"
14137 # Always prepend --disable-option-checking to silence warnings, since
14138 # different subdirs can have different --enable and --with options.
14139 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14142 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14144 # Do not complain, so a configure script can configure whichever
14145 # parts of a large source tree are present.
14146 test -d "$srcdir/$ac_dir" || continue
14148 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14150 $as_echo "$ac_msg" >&6
14151 as_dir="$ac_dir"; as_fn_mkdir_p
14155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14158 # A ".." for each directory in $ac_dir_suffix.
14159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14160 case $ac_top_builddir_sub in
14161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14165 ac_abs_top_builddir=$ac_pwd
14166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14167 # for backward compatibility:
14168 ac_top_builddir=$ac_top_build_prefix
14171 .) # We are building in place.
14173 ac_top_srcdir=$ac_top_builddir_sub
14174 ac_abs_top_srcdir=$ac_pwd ;;
14175 [\\/]* | ?:[\\/]* ) # Absolute name.
14176 ac_srcdir=$srcdir$ac_dir_suffix;
14177 ac_top_srcdir=$srcdir
14178 ac_abs_top_srcdir=$srcdir ;;
14179 *) # Relative name.
14180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14181 ac_top_srcdir=$ac_top_build_prefix$srcdir
14182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14189 # Check for guested configure; otherwise get Cygnus style configure.
14190 if test -f "$ac_srcdir/configure.gnu"; then
14191 ac_sub_configure=$ac_srcdir/configure.gnu
14192 elif test -f "$ac_srcdir/configure"; then
14193 ac_sub_configure=$ac_srcdir/configure
14194 elif test -f "$ac_srcdir/configure.in"; then
14195 # This should be Cygnus configure.
14196 ac_sub_configure=$ac_aux_dir/configure
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14199 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14203 # The recursion is here.
14204 if test -n "$ac_sub_configure"; then
14205 # Make the cache file name correct relative to the subdirectory.
14206 case $cache_file in
14207 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14208 *) # Relative name.
14209 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14213 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14214 # The eval makes quoting arguments work.
14215 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14216 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14217 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14223 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14225 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}