configure revision 0c7f116bb6950ef819323d855415b2f2b0aad987
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
4#
5# Report bugs to <http://llvm.org/bugs/>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541exec 7<&0 </dev/null 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561# Identity of this package.
562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
564PACKAGE_VERSION='3.7.0svn'
565PACKAGE_STRING='LLVM 3.7.0svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568ac_unique_file="lib/IR/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#if HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#if HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#if STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# if HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#if HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#if HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#if HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#if HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='SHELL
606PATH_SEPARATOR
607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_VERSION_MAJOR
643LLVM_VERSION_MINOR
644LLVM_VERSION_PATCH
645LLVM_VERSION_SUFFIX
646LLVM_COPYRIGHT
647CC
648CFLAGS
649LDFLAGS
650CPPFLAGS
651ac_ct_CC
652EXEEXT
653OBJEXT
654CXX
655CXXFLAGS
656ac_ct_CXX
657CPP
658subdirs
659ENABLE_POLLY
660LLVM_HAS_POLLY
661build
662build_cpu
663build_vendor
664build_os
665host
666host_cpu
667host_vendor
668host_os
669target
670target_cpu
671target_vendor
672target_os
673OS
674HOST_OS
675TARGET_OS
676LINKALL
677NOLINKALL
678LLVM_ON_UNIX
679LLVM_ON_WIN32
680ARCH
681LLVM_NATIVE_ARCH
682HOST_ARCH
683LLVM_CROSS_COMPILING
684BUILD_CC
685BUILD_EXEEXT
686BUILD_CXX
687CVSBUILD
688ENABLE_LIBCPP
689ENABLE_CXX1Y
690ENABLE_SPLIT_DWARF
691ENABLE_CLANG_ARCMT
692CLANG_PLUGIN_SUPPORT
693ENABLE_CLANG_STATIC_ANALYZER
694ENABLE_OPTIMIZED
695ENABLE_PROFILING
696DISABLE_ASSERTIONS
697ENABLE_WERROR
698ENABLE_EXPENSIVE_CHECKS
699EXPENSIVE_CHECKS
700ENABLE_ABI_BREAKING_CHECKS
701DEBUG_RUNTIME
702DEBUG_SYMBOLS
703KEEP_SYMBOLS
704JIT
705TARGET_HAS_JIT
706TARGETS_WITH_JIT
707ENABLE_DOCS
708ENABLE_DOXYGEN
709enable_searchengine
710enable_external_search
711enable_server_based_search
712searchengine_url
713extra_search_mappings
714QHELPGENERATOR
715llvm_doxygen_generate_qhp
716llvm_doxygen_qch_filename
717llvm_doxygen_qhp_namespace
718llvm_doxygen_qhelpgenerator_path
719llvm_doxygen_qhp_cust_filter_name
720llvm_doxygen_qhp_cust_filter_attrs
721clang_doxygen_generate_qhp
722clang_doxygen_qch_filename
723clang_doxygen_qhp_namespace
724clang_doxygen_qhelpgenerator_path
725clang_doxygen_qhp_cust_filter_name
726clang_doxygen_qhp_cust_filter_attrs
727LLVM_ENABLE_THREADS
728ENABLE_PTHREADS
729LLVM_ENABLE_ZLIB
730ENABLE_PIC
731ENABLE_SHARED
732ENABLE_EMBED_STDCXX
733ENABLE_TIMESTAMPS
734ALL_TARGETS
735TARGETS_TO_BUILD
736LLVM_ENUM_TARGETS
737LLVM_ENUM_ASM_PRINTERS
738LLVM_ENUM_ASM_PARSERS
739LLVM_ENUM_DISASSEMBLERS
740OPTIMIZE_OPTION
741EXTRA_OPTIONS
742EXTRA_LD_OPTIONS
743CLANG_SRC_ROOT
744BINUTILS_INCDIR
745ENABLE_TERMINFO
746INTERNAL_PREFIX
747ifGNUmake
748LN_S
749NM
750CMP
751CP
752DATE
753FIND
754GREP
755MKDIR
756MV
757RANLIB
758AR
759RM
760SED
761TAR
762BINPWD
763DOT
764INSTALL_PROGRAM
765INSTALL_SCRIPT
766INSTALL_DATA
767BZIP2
768CAT
769DOXYGEN
770GROFF
771GZIPBIN
772PDFROFF
773ZIP
774GO
775OCAMLFIND
776GAS
777HAVE_LINK_VERSION_SCRIPT
778EGREP
779NO_VARIADIC_MACROS
780NO_MISSING_FIELD_INITIALIZERS
781COVERED_SWITCH_DEFAULT
782NO_MAYBE_UNINITIALIZED
783NO_UNINITIALIZED
784NO_COMMENT
785PYTHON
786HAVE_DLOPEN
787HAVE_TERMINFO
788USE_OPROFILE
789USE_INTEL_JITEVENTS
790XML2CONFIG
791LIBXML2_LIBS
792LIBXML2_INC
793HAVE_PTHREAD
794HAVE_LIBZ
795HUGE_VAL_SANITY
796MMAP_FILE
797SHLIBEXT
798LLVM_PREFIX
799LLVM_BINDIR
800LLVM_DATADIR
801LLVM_DOCSDIR
802LLVM_ETCDIR
803LLVM_INCLUDEDIR
804LLVM_INFODIR
805LLVM_MANDIR
806LLVM_CONFIGTIME
807BINDINGS_TO_BUILD
808HAVE_OCAMLOPT
809HAVE_OCAML_OUNIT
810OCAML_LIBDIR
811ENABLE_VISIBILITY_INLINES_HIDDEN
812RPATH
813RDYNAMIC
814program_prefix
815LIBOBJS
816LTLIBOBJS'
817ac_subst_files=''
818      ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
824CPPFLAGS
825CXX
826CXXFLAGS
827CCC
828CPP'
829ac_subdirs_all='projects/test-suite
830projects/llvm-test
831projects/poolalloc
832projects/llvm-poolalloc
833projects/safecode
834tools/polly'
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
861# (The list follows the same order as the GNU Coding Standards.)
862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886  # If the previous option needs an argument, assign it.
887  if test -n "$ac_prev"; then
888    eval $ac_prev=\$ac_option
889    ac_prev=
890    continue
891  fi
892
893  case $ac_option in
894  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895  *)	ac_optarg=yes ;;
896  esac
897
898  # Accept the important Cygnus configure options, so we can diagnose typos.
899
900  case $ac_dashdash$ac_option in
901  --)
902    ac_dashdash=yes ;;
903
904  -bindir | --bindir | --bindi | --bind | --bin | --bi)
905    ac_prev=bindir ;;
906  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907    bindir=$ac_optarg ;;
908
909  -build | --build | --buil | --bui | --bu)
910    ac_prev=build_alias ;;
911  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912    build_alias=$ac_optarg ;;
913
914  -cache-file | --cache-file | --cache-fil | --cache-fi \
915  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916    ac_prev=cache_file ;;
917  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919    cache_file=$ac_optarg ;;
920
921  --config-cache | -C)
922    cache_file=config.cache ;;
923
924  -datadir | --datadir | --datadi | --datad)
925    ac_prev=datadir ;;
926  -datadir=* | --datadir=* | --datadi=* | --datad=*)
927    datadir=$ac_optarg ;;
928
929  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930  | --dataroo | --dataro | --datar)
931    ac_prev=datarootdir ;;
932  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934    datarootdir=$ac_optarg ;;
935
936  -disable-* | --disable-*)
937    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941   { (exit 1); exit 1; }; }
942    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943    eval enable_$ac_feature=no ;;
944
945  -docdir | --docdir | --docdi | --doc | --do)
946    ac_prev=docdir ;;
947  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948    docdir=$ac_optarg ;;
949
950  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951    ac_prev=dvidir ;;
952  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953    dvidir=$ac_optarg ;;
954
955  -enable-* | --enable-*)
956    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960   { (exit 1); exit 1; }; }
961    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962    eval enable_$ac_feature=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156      { echo "$as_me: error: invalid package name: $ac_package" >&2
1157   { (exit 1); exit 1; }; }
1158    ac_package=`echo $ac_package| sed 's/-/_/g'`
1159    eval with_$ac_package=\$ac_optarg ;;
1160
1161  -without-* | --without-*)
1162    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165      { echo "$as_me: error: invalid package name: $ac_package" >&2
1166   { (exit 1); exit 1; }; }
1167    ac_package=`echo $ac_package | sed 's/-/_/g'`
1168    eval with_$ac_package=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) { echo "$as_me: error: unrecognized option: $ac_option
1189Try \`$0 --help' for more information." >&2
1190   { (exit 1); exit 1; }; }
1191    ;;
1192
1193  *=*)
1194    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198   { (exit 1); exit 1; }; }
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  { echo "$as_me: error: missing argument to $ac_option" >&2
1216   { (exit 1); exit 1; }; }
1217fi
1218
1219# Be sure to have absolute directory names.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir
1224do
1225  eval ac_val=\$$ac_var
1226  case $ac_val in
1227    [\\/$]* | ?:[\\/]* )  continue;;
1228    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229  esac
1230  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231   { (exit 1); exit 1; }; }
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246    If a cross compiler is detected then cross compile mode will be used." >&2
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  { echo "$as_me: error: Working directory cannot be determined" >&2
1262   { (exit 1); exit 1; }; }
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  { echo "$as_me: error: pwd does not report name of working directory" >&2
1265   { (exit 1); exit 1; }; }
1266
1267
1268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270  ac_srcdir_defaulted=yes
1271  # Try the directory containing this script, then the parent directory.
1272  ac_confdir=`$as_dirname -- "$0" ||
1273$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274	 X"$0" : 'X\(//\)[^/]' \| \
1275	 X"$0" : 'X\(//\)$' \| \
1276	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277echo X"$0" |
1278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)[^/].*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\).*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  s/.*/./; q'`
1295  srcdir=$ac_confdir
1296  if test ! -r "$srcdir/$ac_unique_file"; then
1297    srcdir=..
1298  fi
1299else
1300  ac_srcdir_defaulted=no
1301fi
1302if test ! -r "$srcdir/$ac_unique_file"; then
1303  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305   { (exit 1); exit 1; }; }
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310   { (exit 1); exit 1; }; }
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358			  [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360			  [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR           user executables [EPREFIX/bin]
1371  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR       program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1376  --libdir=DIR           object code libraries [EPREFIX/lib]
1377  --includedir=DIR       C header files [PREFIX/include]
1378  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR          info documentation [DATAROOTDIR/info]
1382  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR           man documentation [DATAROOTDIR/man]
1384  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1385  --htmldir=DIR          html documentation [DOCDIR]
1386  --dvidir=DIR           dvi documentation [DOCDIR]
1387  --pdfdir=DIR           pdf documentation [DOCDIR]
1388  --psdir=DIR            ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396  --target=TARGET   configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-polly          Use polly if available (default is YES)
1410  --enable-libcpp         Use libc++ if available (default is NO)
1411  --enable-compiler-version-checks
1412                          Check the version of the host compiler (default is
1413                          YES)
1414  --enable-cxx1y          Use c++1y if available (default is NO)
1415  --enable-split-dwarf    Use split-dwarf if available (default is NO)
1416  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1417  --enable-clang-plugin-support
1418                          Enable plugin support in clang (default is YES)
1419  --enable-clang-static-analyzer
1420                          Enable building of clang Static Analyzer (default is
1421                          YES)
1422  --enable-optimized      Compile with optimizations enabled (default is NO)
1423  --enable-profiling      Compile with profiling enabled (default is NO)
1424  --enable-assertions     Compile with assertion checks enabled (default is
1425                          YES)
1426  --enable-werror         Compile with -Werror enabled (default is NO)
1427  --enable-expensive-checks
1428                          Compile with expensive debug checks enabled (default
1429                          is NO)
1430  --enable-abi-breaking-checks
1431                          Compile with abi-breaking asserts support (default
1432                          is with-asserts)
1433  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1434                          NO)
1435  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1436                          optimization is on and YES if it's off)
1437  --enable-keep-symbols   Do not strip installed executables)
1438  --enable-jit            Enable Just In Time Compiling (default is YES)
1439  --enable-docs           Build documents (default is YES)
1440  --enable-doxygen        Build doxygen documentation (default is NO)
1441  --enable-doxygen-search Enable doxygen search support (default is NO)
1442  --enable-doxygen-external-search
1443                          Enable doxygen exteranl search (default is NO)
1444  --enable-doxygen-qt-help
1445                          Build Qt help files (default is NO)
1446  --enable-threads        Use threads if available (default is YES)
1447  --enable-pthreads       Use pthreads if available (default is YES)
1448  --enable-zlib           Use zlib for compression/decompression if available
1449                          (default is YES)
1450  --enable-pic            Build LLVM with Position Independent Code (default
1451                          is YES)
1452  --enable-shared         Build a shared library and link tools against it
1453                          (default is NO)
1454  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1455                          Win32 DLL (default is NO)
1456  --enable-timestamps     Enable embedding timestamp information in build
1457                          (default is YES)
1458  --enable-backtraces     Enable embedding backtraces on crash (default is
1459                          YES)
1460  --enable-crash-overrides
1461                          Enable crash handling overrides (default is YES)
1462  --enable-targets        Build specific host targets: all or
1463                          target1,target2,... Valid targets are: host, x86,
1464                          x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465                          hexagon, xcore, msp430, nvptx, systemz, r600, and
1466                          cpp (default=all)
1467  --enable-experimental-targets
1468                          Build experimental host targets: disable or
1469                          target1,target2,... (default=disable)
1470  --enable-bindings       Build specific language bindings:
1471                          all,auto,none,{binding-name} (default=auto)
1472  --enable-terminfo       Query the terminfo database if available (default is
1473                          YES)
1474  --enable-libedit        Use libedit if available (default is YES)
1475  --enable-libffi         Check for the presence of libffi (default is NO)
1476
1477Optional Packages:
1478  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480  --with-doxygen-search-engine-url
1481                          Specify the external search engine for doxygen
1482  --with-doxygen-search-mappings
1483                          Specify the extra search mapping for doxygen
1484  --with-optimize-option  Select the compiler options to use for optimized
1485                          builds
1486  --with-extra-options    Specify additional options to compile LLVM with
1487  --with-extra-ld-options Specify additional options to link LLVM with
1488  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1489                          is stdlib)
1490  --with-clang-srcdir     Directory to the out-of-tree Clang source
1491  --with-clang-resource-dir
1492                          Relative directory from the Clang binary for
1493                          resource files
1494  --with-c-include-dirs   Colon separated list of directories clang will
1495                          search for headers
1496  --with-gcc-toolchain    Directory where gcc is installed.
1497  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1498  --with-binutils-include Specify path to binutils/include/ containing
1499                          plugin-api.h file for gold plugin.
1500  --with-bug-report-url   Specify the URL where bug reports should be
1501                          submitted (default=http://llvm.org/bugs/)
1502  --with-internal-prefix  Installation directory for internal files
1503  --with-python           path to python
1504  --with-oprofile=<prefix>
1505                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1506  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1507
1508
1509Some influential environment variables:
1510  CC          C compiler command
1511  CFLAGS      C compiler flags
1512  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513              nonstandard directory <lib dir>
1514  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515              you have headers in a nonstandard directory <include dir>
1516  CXX         C++ compiler command
1517  CXXFLAGS    C++ compiler flags
1518  CPP         C preprocessor
1519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <http://llvm.org/bugs/>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" || continue
1532    ac_builddir=.
1533
1534case "$ac_dir" in
1535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536*)
1537  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538  # A ".." for each directory in $ac_dir_suffix.
1539  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540  case $ac_top_builddir_sub in
1541  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543  esac ;;
1544esac
1545ac_abs_top_builddir=$ac_pwd
1546ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547# for backward compatibility:
1548ac_top_builddir=$ac_top_build_prefix
1549
1550case $srcdir in
1551  .)  # We are building in place.
1552    ac_srcdir=.
1553    ac_top_srcdir=$ac_top_builddir_sub
1554    ac_abs_top_srcdir=$ac_pwd ;;
1555  [\\/]* | ?:[\\/]* )  # Absolute name.
1556    ac_srcdir=$srcdir$ac_dir_suffix;
1557    ac_top_srcdir=$srcdir
1558    ac_abs_top_srcdir=$srcdir ;;
1559  *) # Relative name.
1560    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561    ac_top_srcdir=$ac_top_build_prefix$srcdir
1562    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563esac
1564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566    cd "$ac_dir" || { ac_status=$?; continue; }
1567    # Check for guested configure.
1568    if test -f "$ac_srcdir/configure.gnu"; then
1569      echo &&
1570      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571    elif test -f "$ac_srcdir/configure"; then
1572      echo &&
1573      $SHELL "$ac_srcdir/configure" --help=recursive
1574    else
1575      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576    fi || ac_status=$?
1577    cd "$ac_pwd" || { ac_status=$?; break; }
1578  done
1579fi
1580
1581test -n "$ac_init_help" && exit $ac_status
1582if $ac_init_version; then
1583  cat <<\_ACEOF
1584LLVM configure 3.7.0svn
1585generated by GNU Autoconf 2.60
1586
1587Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589This configure script is free software; the Free Software Foundation
1590gives unlimited permission to copy, distribute and modify it.
1591
1592Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1593_ACEOF
1594  exit
1595fi
1596cat >config.log <<_ACEOF
1597This file contains any messages produced by compilers while
1598running configure, to aid debugging if configure makes a mistake.
1599
1600It was created by LLVM $as_me 3.7.0svn, which was
1601generated by GNU Autoconf 2.60.  Invocation command line was
1602
1603  $ $0 $@
1604
1605_ACEOF
1606exec 5>>config.log
1607{
1608cat <<_ASUNAME
1609## --------- ##
1610## Platform. ##
1611## --------- ##
1612
1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1621
1622/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1629
1630_ASUNAME
1631
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635  IFS=$as_save_IFS
1636  test -z "$as_dir" && as_dir=.
1637  echo "PATH: $as_dir"
1638done
1639IFS=$as_save_IFS
1640
1641} >&5
1642
1643cat >&5 <<_ACEOF
1644
1645
1646## ----------- ##
1647## Core tests. ##
1648## ----------- ##
1649
1650_ACEOF
1651
1652
1653# Keep a trace of the command line.
1654# Strip out --no-create and --no-recursion so they do not pile up.
1655# Strip out --silent because we don't want to record it for future runs.
1656# Also quote any args containing shell meta-characters.
1657# Make two passes to allow for proper duplicate-argument suppression.
1658ac_configure_args=
1659ac_configure_args0=
1660ac_configure_args1=
1661ac_must_keep_next=false
1662for ac_pass in 1 2
1663do
1664  for ac_arg
1665  do
1666    case $ac_arg in
1667    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669    | -silent | --silent | --silen | --sile | --sil)
1670      continue ;;
1671    *\'*)
1672      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673    esac
1674    case $ac_pass in
1675    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676    2)
1677      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678      if test $ac_must_keep_next = true; then
1679	ac_must_keep_next=false # Got value, back to normal.
1680      else
1681	case $ac_arg in
1682	  *=* | --config-cache | -C | -disable-* | --disable-* \
1683	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685	  | -with-* | --with-* | -without-* | --without-* | --x)
1686	    case "$ac_configure_args0 " in
1687	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688	    esac
1689	    ;;
1690	  -* ) ac_must_keep_next=true ;;
1691	esac
1692      fi
1693      ac_configure_args="$ac_configure_args '$ac_arg'"
1694      ;;
1695    esac
1696  done
1697done
1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700
1701# When interrupted or exit'd, cleanup temporary files, and complete
1702# config.log.  We remove comments because anyway the quotes in there
1703# would cause problems or look ugly.
1704# WARNING: Use '\'' to represent an apostrophe within the trap.
1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706trap 'exit_status=$?
1707  # Save into config.log some information that might help in debugging.
1708  {
1709    echo
1710
1711    cat <<\_ASBOX
1712## ---------------- ##
1713## Cache variables. ##
1714## ---------------- ##
1715_ASBOX
1716    echo
1717    # The following way of writing the cache mishandles newlines in values,
1718(
1719  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720    eval ac_val=\$$ac_var
1721    case $ac_val in #(
1722    *${as_nl}*)
1723      case $ac_var in #(
1724      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726      esac
1727      case $ac_var in #(
1728      _ | IFS | as_nl) ;; #(
1729      *) $as_unset $ac_var ;;
1730      esac ;;
1731    esac
1732  done
1733  (set) 2>&1 |
1734    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735    *${as_nl}ac_space=\ *)
1736      sed -n \
1737	"s/'\''/'\''\\\\'\'''\''/g;
1738	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739      ;; #(
1740    *)
1741      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742      ;;
1743    esac |
1744    sort
1745)
1746    echo
1747
1748    cat <<\_ASBOX
1749## ----------------- ##
1750## Output variables. ##
1751## ----------------- ##
1752_ASBOX
1753    echo
1754    for ac_var in $ac_subst_vars
1755    do
1756      eval ac_val=\$$ac_var
1757      case $ac_val in
1758      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759      esac
1760      echo "$ac_var='\''$ac_val'\''"
1761    done | sort
1762    echo
1763
1764    if test -n "$ac_subst_files"; then
1765      cat <<\_ASBOX
1766## ------------------- ##
1767## File substitutions. ##
1768## ------------------- ##
1769_ASBOX
1770      echo
1771      for ac_var in $ac_subst_files
1772      do
1773	eval ac_val=\$$ac_var
1774	case $ac_val in
1775	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776	esac
1777	echo "$ac_var='\''$ac_val'\''"
1778      done | sort
1779      echo
1780    fi
1781
1782    if test -s confdefs.h; then
1783      cat <<\_ASBOX
1784## ----------- ##
1785## confdefs.h. ##
1786## ----------- ##
1787_ASBOX
1788      echo
1789      cat confdefs.h
1790      echo
1791    fi
1792    test "$ac_signal" != 0 &&
1793      echo "$as_me: caught signal $ac_signal"
1794    echo "$as_me: exit $exit_status"
1795  } >&5
1796  rm -f core *.core core.conftest.* &&
1797    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798    exit $exit_status
1799' 0
1800for ac_signal in 1 2 13 15; do
1801  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802done
1803ac_signal=0
1804
1805# confdefs.h avoids OS command line length limits that DEFS can exceed.
1806rm -f -r conftest* confdefs.h
1807
1808# Predefined preprocessor variables.
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_NAME "$PACKAGE_NAME"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_VERSION "$PACKAGE_VERSION"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_STRING "$PACKAGE_STRING"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832_ACEOF
1833
1834
1835# Let the site file select an alternate cache file if it wants to.
1836# Prefer explicitly selected file to automatically selected ones.
1837if test -n "$CONFIG_SITE"; then
1838  set x "$CONFIG_SITE"
1839elif test "x$prefix" != xNONE; then
1840  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841else
1842  set x "$ac_default_prefix/share/config.site" \
1843	"$ac_default_prefix/etc/config.site"
1844fi
1845shift
1846for ac_site_file
1847do
1848  if test -r "$ac_site_file"; then
1849    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850echo "$as_me: loading site script $ac_site_file" >&6;}
1851    sed 's/^/| /' "$ac_site_file" >&5
1852    . "$ac_site_file"
1853  fi
1854done
1855
1856if test -r "$cache_file"; then
1857  # Some versions of bash will fail to source /dev/null (special
1858  # files actually), so we avoid doing that.
1859  if test -f "$cache_file"; then
1860    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861echo "$as_me: loading cache $cache_file" >&6;}
1862    case $cache_file in
1863      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864      *)                      . "./$cache_file";;
1865    esac
1866  fi
1867else
1868  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869echo "$as_me: creating cache $cache_file" >&6;}
1870  >$cache_file
1871fi
1872
1873# Check that the precious variables saved in the cache have kept the same
1874# value.
1875ac_cache_corrupted=false
1876for ac_var in $ac_precious_vars; do
1877  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878  eval ac_new_set=\$ac_env_${ac_var}_set
1879  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880  eval ac_new_val=\$ac_env_${ac_var}_value
1881  case $ac_old_set,$ac_new_set in
1882    set,)
1883      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885      ac_cache_corrupted=: ;;
1886    ,set)
1887      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889      ac_cache_corrupted=: ;;
1890    ,);;
1891    *)
1892      if test "x$ac_old_val" != "x$ac_new_val"; then
1893	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896echo "$as_me:   former value:  $ac_old_val" >&2;}
1897	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898echo "$as_me:   current value: $ac_new_val" >&2;}
1899	ac_cache_corrupted=:
1900      fi;;
1901  esac
1902  # Pass precious variables to config.status.
1903  if test "$ac_new_set" = set; then
1904    case $ac_new_val in
1905    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906    *) ac_arg=$ac_var=$ac_new_val ;;
1907    esac
1908    case " $ac_configure_args " in
1909      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911    esac
1912  fi
1913done
1914if $ac_cache_corrupted; then
1915  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919   { (exit 1); exit 1; }; }
1920fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954LLVM_VERSION_MAJOR=3
1955LLVM_VERSION_MINOR=7
1956LLVM_VERSION_PATCH=0
1957LLVM_VERSION_SUFFIX=svn
1958
1959
1960cat >>confdefs.h <<_ACEOF
1961#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1962_ACEOF
1963
1964
1965cat >>confdefs.h <<_ACEOF
1966#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1967_ACEOF
1968
1969
1970cat >>confdefs.h <<_ACEOF
1971#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1972_ACEOF
1973
1974
1975cat >>confdefs.h <<_ACEOF
1976#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1977_ACEOF
1978
1979
1980
1981
1982
1983
1984
1985LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1986
1987
1988
1989
1990
1991
1992
1993ac_aux_dir=
1994for ac_dir in autoconf "$srcdir"/autoconf; do
1995  if test -f "$ac_dir/install-sh"; then
1996    ac_aux_dir=$ac_dir
1997    ac_install_sh="$ac_aux_dir/install-sh -c"
1998    break
1999  elif test -f "$ac_dir/install.sh"; then
2000    ac_aux_dir=$ac_dir
2001    ac_install_sh="$ac_aux_dir/install.sh -c"
2002    break
2003  elif test -f "$ac_dir/shtool"; then
2004    ac_aux_dir=$ac_dir
2005    ac_install_sh="$ac_aux_dir/shtool install -c"
2006    break
2007  fi
2008done
2009if test -z "$ac_aux_dir"; then
2010  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012   { (exit 1); exit 1; }; }
2013fi
2014
2015# These three variables are undocumented and unsupported,
2016# and are intended to be withdrawn in a future Autoconf release.
2017# They can cause serious problems if a builder's source tree is in a directory
2018# whose full name contains unusual characters.
2019ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2020ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2021ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2022
2023
2024
2025if test ${srcdir} != "." ; then
2026  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2027    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029   { (exit 1); exit 1; }; }
2030  fi
2031fi
2032
2033: ${CFLAGS=}
2034: ${CXXFLAGS=}
2035
2036ac_ext=c
2037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041if test -n "$ac_tool_prefix"; then
2042  for ac_prog in clang gcc
2043  do
2044    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048if test "${ac_cv_prog_CC+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test -n "$CC"; then
2052  ac_cv_prog_CC="$CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067IFS=$as_save_IFS
2068
2069fi
2070fi
2071CC=$ac_cv_prog_CC
2072if test -n "$CC"; then
2073  { echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6; }
2075else
2076  { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
2078fi
2079
2080
2081    test -n "$CC" && break
2082  done
2083fi
2084if test -z "$CC"; then
2085  ac_ct_CC=$CC
2086  for ac_prog in clang gcc
2087do
2088  # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2105    ac_cv_prog_ac_ct_CC="$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111IFS=$as_save_IFS
2112
2113fi
2114fi
2115ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116if test -n "$ac_ct_CC"; then
2117  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118echo "${ECHO_T}$ac_ct_CC" >&6; }
2119else
2120  { echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6; }
2122fi
2123
2124
2125  test -n "$ac_ct_CC" && break
2126done
2127
2128  if test "x$ac_ct_CC" = x; then
2129    CC=""
2130  else
2131    case $cross_compiling:$ac_tool_warned in
2132yes:)
2133{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2134whose name does not start with the host triplet.  If you think this
2135configuration is useful to you, please write to autoconf@gnu.org." >&5
2136echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2137whose name does not start with the host triplet.  If you think this
2138configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2139ac_tool_warned=yes ;;
2140esac
2141    CC=$ac_ct_CC
2142  fi
2143fi
2144
2145
2146test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&2;}
2150   { (exit 1); exit 1; }; }
2151
2152# Provide some information about the compiler.
2153echo "$as_me:$LINENO: checking for C compiler version" >&5
2154ac_compiler=`set X $ac_compile; echo $2`
2155{ (ac_try="$ac_compiler --version >&5"
2156case "(($ac_try" in
2157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158  *) ac_try_echo=$ac_try;;
2159esac
2160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161  (eval "$ac_compiler --version >&5") 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (ac_try="$ac_compiler -v >&5"
2166case "(($ac_try" in
2167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168  *) ac_try_echo=$ac_try;;
2169esac
2170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171  (eval "$ac_compiler -v >&5") 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }
2175{ (ac_try="$ac_compiler -V >&5"
2176case "(($ac_try" in
2177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178  *) ac_try_echo=$ac_try;;
2179esac
2180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181  (eval "$ac_compiler -V >&5") 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }
2185
2186cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h.  */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h.  */
2192
2193int
2194main ()
2195{
2196
2197  ;
2198  return 0;
2199}
2200_ACEOF
2201ac_clean_files_save=$ac_clean_files
2202ac_clean_files="$ac_clean_files a.out a.exe b.out"
2203# Try to create an executable without -o first, disregard a.out.
2204# It will help us diagnose broken compilers, and finding out an intuition
2205# of exeext.
2206{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2207echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2208ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2209#
2210# List of possible output files, starting from the most likely.
2211# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2212# only as a last resort.  b.out is created by i960 compilers.
2213ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2214#
2215# The IRIX 6 linker writes into existing files which may not be
2216# executable, retaining their permissions.  Remove them first so a
2217# subsequent execution test works.
2218ac_rmfiles=
2219for ac_file in $ac_files
2220do
2221  case $ac_file in
2222    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2223    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2224  esac
2225done
2226rm -f $ac_rmfiles
2227
2228if { (ac_try="$ac_link_default"
2229case "(($ac_try" in
2230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231  *) ac_try_echo=$ac_try;;
2232esac
2233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234  (eval "$ac_link_default") 2>&5
2235  ac_status=$?
2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237  (exit $ac_status); }; then
2238  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2239# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2240# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2241# so that the user can short-circuit this test for compilers unknown to
2242# Autoconf.
2243for ac_file in $ac_files
2244do
2245  test -f "$ac_file" || continue
2246  case $ac_file in
2247    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2248	;;
2249    [ab].out )
2250	# We found the default executable, but exeext='' is most
2251	# certainly right.
2252	break;;
2253    *.* )
2254        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2255	then :; else
2256	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257	fi
2258	# We set ac_cv_exeext here because the later test for it is not
2259	# safe: cross compilers may not add the suffix if given an `-o'
2260	# argument, so we may need to know it at that point already.
2261	# Even if this section looks crufty: it has the advantage of
2262	# actually working.
2263	break;;
2264    * )
2265	break;;
2266  esac
2267done
2268test "$ac_cv_exeext" = no && ac_cv_exeext=
2269
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: C compiler cannot create executables
2277See \`config.log' for more details." >&2;}
2278   { (exit 77); exit 77; }; }
2279fi
2280
2281ac_exeext=$ac_cv_exeext
2282{ echo "$as_me:$LINENO: result: $ac_file" >&5
2283echo "${ECHO_T}$ac_file" >&6; }
2284
2285# Check that the compiler produces executables we can run.  If not, either
2286# the compiler is broken, or we cross compile.
2287{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2289# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290# If not cross compiling, check that we can run a simple program.
2291if test "$cross_compiling" != yes; then
2292  if { ac_try='./$ac_file'
2293  { (case "(($ac_try" in
2294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295  *) ac_try_echo=$ac_try;;
2296esac
2297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298  (eval "$ac_try") 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; }; then
2302    cross_compiling=no
2303  else
2304    if test "$cross_compiling" = maybe; then
2305	cross_compiling=yes
2306    else
2307	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308If you meant to cross compile, use \`--host'.
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot run C compiled programs.
2311If you meant to cross compile, use \`--host'.
2312See \`config.log' for more details." >&2;}
2313   { (exit 1); exit 1; }; }
2314    fi
2315  fi
2316fi
2317{ echo "$as_me:$LINENO: result: yes" >&5
2318echo "${ECHO_T}yes" >&6; }
2319
2320rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321ac_clean_files=$ac_clean_files_save
2322# Check that the compiler produces executables we can run.  If not, either
2323# the compiler is broken, or we cross compile.
2324{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2326{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327echo "${ECHO_T}$cross_compiling" >&6; }
2328
2329{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2331if { (ac_try="$ac_link"
2332case "(($ac_try" in
2333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334  *) ac_try_echo=$ac_try;;
2335esac
2336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337  (eval "$ac_link") 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2342# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2343# work properly (i.e., refer to `conftest.exe'), while it won't with
2344# `rm'.
2345for ac_file in conftest.exe conftest conftest.*; do
2346  test -f "$ac_file" || continue
2347  case $ac_file in
2348    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2349    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2350	  break;;
2351    * ) break;;
2352  esac
2353done
2354else
2355  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358See \`config.log' for more details." >&2;}
2359   { (exit 1); exit 1; }; }
2360fi
2361
2362rm -f conftest$ac_cv_exeext
2363{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364echo "${ECHO_T}$ac_cv_exeext" >&6; }
2365
2366rm -f conftest.$ac_ext
2367EXEEXT=$ac_cv_exeext
2368ac_exeext=$EXEEXT
2369{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2371if test "${ac_cv_objext+set}" = set; then
2372  echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374  cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h.  */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h.  */
2380
2381int
2382main ()
2383{
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.o conftest.obj
2390if { (ac_try="$ac_compile"
2391case "(($ac_try" in
2392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393  *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396  (eval "$ac_compile") 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; then
2400  for ac_file in conftest.o conftest.obj conftest.*; do
2401  test -f "$ac_file" || continue;
2402  case $ac_file in
2403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2404    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2405       break;;
2406  esac
2407done
2408else
2409  echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413See \`config.log' for more details." >&5
2414echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415See \`config.log' for more details." >&2;}
2416   { (exit 1); exit 1; }; }
2417fi
2418
2419rm -f conftest.$ac_cv_objext conftest.$ac_ext
2420fi
2421{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422echo "${ECHO_T}$ac_cv_objext" >&6; }
2423OBJEXT=$ac_cv_objext
2424ac_objext=$OBJEXT
2425{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2427if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h.  */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h.  */
2436
2437int
2438main ()
2439{
2440#ifndef __GNUC__
2441       choke me
2442#endif
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (ac_try="$ac_compile"
2450case "(($ac_try" in
2451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452  *) ac_try_echo=$ac_try;;
2453esac
2454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455  (eval "$ac_compile") 2>conftest.er1
2456  ac_status=$?
2457  grep -v '^ *+' conftest.er1 >conftest.err
2458  rm -f conftest.er1
2459  cat conftest.err >&5
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); } &&
2462	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463  { (case "(($ac_try" in
2464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465  *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468  (eval "$ac_try") 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472	 { ac_try='test -s conftest.$ac_objext'
2473  { (case "(($ac_try" in
2474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475  *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478  (eval "$ac_try") 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; }; then
2482  ac_compiler_gnu=yes
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487	ac_compiler_gnu=no
2488fi
2489
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492
2493fi
2494{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2496GCC=`test $ac_compiler_gnu = yes && echo yes`
2497ac_test_CFLAGS=${CFLAGS+set}
2498ac_save_CFLAGS=$CFLAGS
2499{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2500echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_cc_g+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  ac_save_c_werror_flag=$ac_c_werror_flag
2505   ac_c_werror_flag=yes
2506   ac_cv_prog_cc_g=no
2507   CFLAGS="-g"
2508   cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h.  */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h.  */
2514
2515int
2516main ()
2517{
2518
2519  ;
2520  return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527  *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530  (eval "$ac_compile") 2>conftest.er1
2531  ac_status=$?
2532  grep -v '^ *+' conftest.er1 >conftest.err
2533  rm -f conftest.er1
2534  cat conftest.err >&5
2535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536  (exit $ac_status); } &&
2537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538  { (case "(($ac_try" in
2539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540  *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543  (eval "$ac_try") 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }; } &&
2547	 { ac_try='test -s conftest.$ac_objext'
2548  { (case "(($ac_try" in
2549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550  *) ac_try_echo=$ac_try;;
2551esac
2552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553  (eval "$ac_try") 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  ac_cv_prog_cc_g=yes
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562	CFLAGS=""
2563      cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570int
2571main ()
2572{
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (ac_try="$ac_compile"
2580case "(($ac_try" in
2581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582  *) ac_try_echo=$ac_try;;
2583esac
2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585  (eval "$ac_compile") 2>conftest.er1
2586  ac_status=$?
2587  grep -v '^ *+' conftest.er1 >conftest.err
2588  rm -f conftest.er1
2589  cat conftest.err >&5
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); } &&
2592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2593  { (case "(($ac_try" in
2594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595  *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598  (eval "$ac_try") 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; } &&
2602	 { ac_try='test -s conftest.$ac_objext'
2603  { (case "(($ac_try" in
2604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605  *) ac_try_echo=$ac_try;;
2606esac
2607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608  (eval "$ac_try") 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; }; then
2612  :
2613else
2614  echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617	ac_c_werror_flag=$ac_save_c_werror_flag
2618	 CFLAGS="-g"
2619	 cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625
2626int
2627main ()
2628{
2629
2630  ;
2631  return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext
2635if { (ac_try="$ac_compile"
2636case "(($ac_try" in
2637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638  *) ac_try_echo=$ac_try;;
2639esac
2640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641  (eval "$ac_compile") 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649  { (case "(($ac_try" in
2650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651  *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654  (eval "$ac_try") 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658	 { ac_try='test -s conftest.$ac_objext'
2659  { (case "(($ac_try" in
2660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661  *) ac_try_echo=$ac_try;;
2662esac
2663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664  (eval "$ac_try") 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  ac_cv_prog_cc_g=yes
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673
2674fi
2675
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677fi
2678
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683   ac_c_werror_flag=$ac_save_c_werror_flag
2684fi
2685{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2687if test "$ac_test_CFLAGS" = set; then
2688  CFLAGS=$ac_save_CFLAGS
2689elif test $ac_cv_prog_cc_g = yes; then
2690  if test "$GCC" = yes; then
2691    CFLAGS="-g -O2"
2692  else
2693    CFLAGS="-g"
2694  fi
2695else
2696  if test "$GCC" = yes; then
2697    CFLAGS="-O2"
2698  else
2699    CFLAGS=
2700  fi
2701fi
2702{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2703echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2704if test "${ac_cv_prog_cc_c89+set}" = set; then
2705  echo $ECHO_N "(cached) $ECHO_C" >&6
2706else
2707  ac_cv_prog_cc_c89=no
2708ac_save_CC=$CC
2709cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h.  */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h.  */
2715#include <stdarg.h>
2716#include <stdio.h>
2717#include <sys/types.h>
2718#include <sys/stat.h>
2719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2720struct buf { int x; };
2721FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722static char *e (p, i)
2723     char **p;
2724     int i;
2725{
2726  return p[i];
2727}
2728static char *f (char * (*g) (char **, int), char **p, ...)
2729{
2730  char *s;
2731  va_list v;
2732  va_start (v,p);
2733  s = g (p, va_arg (v,int));
2734  va_end (v);
2735  return s;
2736}
2737
2738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2739   function prototypes and stuff, but not '\xHH' hex character constants.
2740   These don't provoke an error unfortunately, instead are silently treated
2741   as 'x'.  The following induces an error, until -std is added to get
2742   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2743   array size at least.  It's necessary to write '\x00'==0 to get something
2744   that's true only with -std.  */
2745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
2747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2748   inside strings and character constants.  */
2749#define FOO(x) 'x'
2750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2751
2752int test (int i, double x);
2753struct s1 {int (*f) (int a);};
2754struct s2 {int (*f) (double a);};
2755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756int argc;
2757char **argv;
2758int
2759main ()
2760{
2761return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2767	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768do
2769  CC="$ac_save_CC $ac_arg"
2770  rm -f conftest.$ac_objext
2771if { (ac_try="$ac_compile"
2772case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777  (eval "$ac_compile") 2>conftest.er1
2778  ac_status=$?
2779  grep -v '^ *+' conftest.er1 >conftest.err
2780  rm -f conftest.er1
2781  cat conftest.err >&5
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); } &&
2784	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785  { (case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790  (eval "$ac_try") 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }; } &&
2794	 { ac_try='test -s conftest.$ac_objext'
2795  { (case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800  (eval "$ac_try") 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  ac_cv_prog_cc_c89=$ac_arg
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809
2810fi
2811
2812rm -f core conftest.err conftest.$ac_objext
2813  test "x$ac_cv_prog_cc_c89" != "xno" && break
2814done
2815rm -f conftest.$ac_ext
2816CC=$ac_save_CC
2817
2818fi
2819# AC_CACHE_VAL
2820case "x$ac_cv_prog_cc_c89" in
2821  x)
2822    { echo "$as_me:$LINENO: result: none needed" >&5
2823echo "${ECHO_T}none needed" >&6; } ;;
2824  xno)
2825    { echo "$as_me:$LINENO: result: unsupported" >&5
2826echo "${ECHO_T}unsupported" >&6; } ;;
2827  *)
2828    CC="$CC $ac_cv_prog_cc_c89"
2829    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2830echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2831esac
2832
2833
2834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839
2840ac_ext=cpp
2841ac_cpp='$CXXCPP $CPPFLAGS'
2842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2845if test -z "$CXX"; then
2846  if test -n "$CCC"; then
2847    CXX=$CCC
2848  else
2849    if test -n "$ac_tool_prefix"; then
2850  for ac_prog in clang++ g++
2851  do
2852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856if test "${ac_cv_prog_CXX+set}" = set; then
2857  echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859  if test -n "$CXX"; then
2860  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865  IFS=$as_save_IFS
2866  test -z "$as_dir" && as_dir=.
2867  for ac_exec_ext in '' $ac_executable_extensions; do
2868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2869    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871    break 2
2872  fi
2873done
2874done
2875IFS=$as_save_IFS
2876
2877fi
2878fi
2879CXX=$ac_cv_prog_CXX
2880if test -n "$CXX"; then
2881  { echo "$as_me:$LINENO: result: $CXX" >&5
2882echo "${ECHO_T}$CXX" >&6; }
2883else
2884  { echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6; }
2886fi
2887
2888
2889    test -n "$CXX" && break
2890  done
2891fi
2892if test -z "$CXX"; then
2893  ac_ct_CXX=$CXX
2894  for ac_prog in clang++ g++
2895do
2896  # Extract the first word of "$ac_prog", so it can be a program name with args.
2897set dummy $ac_prog; ac_word=$2
2898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$ac_ct_CXX"; then
2904  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913    ac_cv_prog_ac_ct_CXX="$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919IFS=$as_save_IFS
2920
2921fi
2922fi
2923ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2924if test -n "$ac_ct_CXX"; then
2925  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2926echo "${ECHO_T}$ac_ct_CXX" >&6; }
2927else
2928  { echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6; }
2930fi
2931
2932
2933  test -n "$ac_ct_CXX" && break
2934done
2935
2936  if test "x$ac_ct_CXX" = x; then
2937    CXX="g++"
2938  else
2939    case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942whose name does not start with the host triplet.  If you think this
2943configuration is useful to you, please write to autoconf@gnu.org." >&5
2944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945whose name does not start with the host triplet.  If you think this
2946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947ac_tool_warned=yes ;;
2948esac
2949    CXX=$ac_ct_CXX
2950  fi
2951fi
2952
2953  fi
2954fi
2955# Provide some information about the compiler.
2956echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2957ac_compiler=`set X $ac_compile; echo $2`
2958{ (ac_try="$ac_compiler --version >&5"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964  (eval "$ac_compiler --version >&5") 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }
2968{ (ac_try="$ac_compiler -v >&5"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_compiler -v >&5") 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }
2978{ (ac_try="$ac_compiler -V >&5"
2979case "(($ac_try" in
2980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981  *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984  (eval "$ac_compiler -V >&5") 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }
2988
2989{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2992  echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994  cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h.  */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h.  */
3000
3001int
3002main ()
3003{
3004#ifndef __GNUC__
3005       choke me
3006#endif
3007
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016  *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019  (eval "$ac_compile") 2>conftest.er1
3020  ac_status=$?
3021  grep -v '^ *+' conftest.er1 >conftest.err
3022  rm -f conftest.er1
3023  cat conftest.err >&5
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); } &&
3026	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027  { (case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032  (eval "$ac_try") 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; } &&
3036	 { ac_try='test -s conftest.$ac_objext'
3037  { (case "(($ac_try" in
3038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039  *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042  (eval "$ac_try") 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046  ac_compiler_gnu=yes
3047else
3048  echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051	ac_compiler_gnu=no
3052fi
3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3056
3057fi
3058{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3060GXX=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CXXFLAGS=${CXXFLAGS+set}
3062ac_save_CXXFLAGS=$CXXFLAGS
3063{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3064echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3065if test "${ac_cv_prog_cxx_g+set}" = set; then
3066  echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3069   ac_cxx_werror_flag=yes
3070   ac_cv_prog_cxx_g=no
3071   CXXFLAGS="-g"
3072   cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h.  */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091  *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094  (eval "$ac_compile") 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102  { (case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107  (eval "$ac_try") 2>&5
3108  ac_status=$?
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); }; } &&
3111	 { ac_try='test -s conftest.$ac_objext'
3112  { (case "(($ac_try" in
3113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114  *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117  (eval "$ac_try") 2>&5
3118  ac_status=$?
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); }; }; then
3121  ac_cv_prog_cxx_g=yes
3122else
3123  echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126	CXXFLAGS=""
3127      cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (ac_try="$ac_compile"
3144case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149  (eval "$ac_compile") 2>conftest.er1
3150  ac_status=$?
3151  grep -v '^ *+' conftest.er1 >conftest.err
3152  rm -f conftest.er1
3153  cat conftest.err >&5
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); } &&
3156	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3157  { (case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162  (eval "$ac_try") 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; } &&
3166	 { ac_try='test -s conftest.$ac_objext'
3167  { (case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172  (eval "$ac_try") 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; }; then
3176  :
3177else
3178  echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182	 CXXFLAGS="-g"
3183	 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h.  */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h.  */
3189
3190int
3191main ()
3192{
3193
3194  ;
3195  return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205  (eval "$ac_compile") 2>conftest.er1
3206  ac_status=$?
3207  grep -v '^ *+' conftest.er1 >conftest.err
3208  rm -f conftest.er1
3209  cat conftest.err >&5
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); } &&
3212	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213  { (case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218  (eval "$ac_try") 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }; } &&
3222	 { ac_try='test -s conftest.$ac_objext'
3223  { (case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228  (eval "$ac_try") 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  ac_cv_prog_cxx_g=yes
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248fi
3249{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3250echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3251if test "$ac_test_CXXFLAGS" = set; then
3252  CXXFLAGS=$ac_save_CXXFLAGS
3253elif test $ac_cv_prog_cxx_g = yes; then
3254  if test "$GXX" = yes; then
3255    CXXFLAGS="-g -O2"
3256  else
3257    CXXFLAGS="-g"
3258  fi
3259else
3260  if test "$GXX" = yes; then
3261    CXXFLAGS="-O2"
3262  else
3263    CXXFLAGS=
3264  fi
3265fi
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
3272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3278echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3279# On Suns, sometimes $CPP names a directory.
3280if test -n "$CPP" && test -d "$CPP"; then
3281  CPP=
3282fi
3283if test -z "$CPP"; then
3284  if test "${ac_cv_prog_CPP+set}" = set; then
3285  echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287      # Double quotes because CPP needs to be expanded
3288    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3289    do
3290      ac_preproc_ok=false
3291for ac_c_preproc_warn_flag in '' yes
3292do
3293  # Use a header file that comes with gcc, so configuring glibc
3294  # with a fresh cross-compiler works.
3295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296  # <limits.h> exists even on freestanding compilers.
3297  # On the NeXT, cc -E runs the code through the compiler's parser,
3298  # not just through cpp. "Syntax error" is here to catch this case.
3299  cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305#ifdef __STDC__
3306# include <limits.h>
3307#else
3308# include <assert.h>
3309#endif
3310		     Syntax error
3311_ACEOF
3312if { (ac_try="$ac_cpp conftest.$ac_ext"
3313case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } >/dev/null; then
3325  if test -s conftest.err; then
3326    ac_cpp_err=$ac_c_preproc_warn_flag
3327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328  else
3329    ac_cpp_err=
3330  fi
3331else
3332  ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335  :
3336else
3337  echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340  # Broken: fails on valid input.
3341continue
3342fi
3343
3344rm -f conftest.err conftest.$ac_ext
3345
3346  # OK, works on sane cases.  Now check whether nonexistent headers
3347  # can be detected and how.
3348  cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354#include <ac_nonexistent.h>
3355_ACEOF
3356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363  ac_status=$?
3364  grep -v '^ *+' conftest.er1 >conftest.err
3365  rm -f conftest.er1
3366  cat conftest.err >&5
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } >/dev/null; then
3369  if test -s conftest.err; then
3370    ac_cpp_err=$ac_c_preproc_warn_flag
3371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372  else
3373    ac_cpp_err=
3374  fi
3375else
3376  ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379  # Broken: success on invalid input.
3380continue
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385  # Passes both tests.
3386ac_preproc_ok=:
3387break
3388fi
3389
3390rm -f conftest.err conftest.$ac_ext
3391
3392done
3393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394rm -f conftest.err conftest.$ac_ext
3395if $ac_preproc_ok; then
3396  break
3397fi
3398
3399    done
3400    ac_cv_prog_CPP=$CPP
3401
3402fi
3403  CPP=$ac_cv_prog_CPP
3404else
3405  ac_cv_prog_CPP=$CPP
3406fi
3407{ echo "$as_me:$LINENO: result: $CPP" >&5
3408echo "${ECHO_T}$CPP" >&6; }
3409ac_preproc_ok=false
3410for ac_c_preproc_warn_flag in '' yes
3411do
3412  # Use a header file that comes with gcc, so configuring glibc
3413  # with a fresh cross-compiler works.
3414  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415  # <limits.h> exists even on freestanding compilers.
3416  # On the NeXT, cc -E runs the code through the compiler's parser,
3417  # not just through cpp. "Syntax error" is here to catch this case.
3418  cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h.  */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h.  */
3424#ifdef __STDC__
3425# include <limits.h>
3426#else
3427# include <assert.h>
3428#endif
3429		     Syntax error
3430_ACEOF
3431if { (ac_try="$ac_cpp conftest.$ac_ext"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } >/dev/null; then
3444  if test -s conftest.err; then
3445    ac_cpp_err=$ac_c_preproc_warn_flag
3446    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447  else
3448    ac_cpp_err=
3449  fi
3450else
3451  ac_cpp_err=yes
3452fi
3453if test -z "$ac_cpp_err"; then
3454  :
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459  # Broken: fails on valid input.
3460continue
3461fi
3462
3463rm -f conftest.err conftest.$ac_ext
3464
3465  # OK, works on sane cases.  Now check whether nonexistent headers
3466  # can be detected and how.
3467  cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h.  */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h.  */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } >/dev/null; then
3488  if test -s conftest.err; then
3489    ac_cpp_err=$ac_c_preproc_warn_flag
3490    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491  else
3492    ac_cpp_err=
3493  fi
3494else
3495  ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
3498  # Broken: success on invalid input.
3499continue
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504  # Passes both tests.
3505ac_preproc_ok=:
3506break
3507fi
3508
3509rm -f conftest.err conftest.$ac_ext
3510
3511done
3512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513rm -f conftest.err conftest.$ac_ext
3514if $ac_preproc_ok; then
3515  :
3516else
3517  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518See \`config.log' for more details." >&5
3519echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520See \`config.log' for more details." >&2;}
3521   { (exit 1); exit 1; }; }
3522fi
3523
3524ac_ext=c
3525ac_cpp='$CPP $CPPFLAGS'
3526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529
3530
3531if test "$CXX" = "clang++" ; then
3532  { echo "$as_me:$LINENO: checking whether clang works" >&5
3533echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3534  ac_ext=cpp
3535ac_cpp='$CXXCPP $CPPFLAGS'
3536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539
3540
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h.  */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h.  */
3547#include <limits>
3548#if __has_include (<cxxabi.h>)
3549#include <cxxabi.h>
3550#endif
3551#if __has_include (<unwind.h>)
3552#include <unwind.h>
3553#endif
3554
3555int
3556main ()
3557{
3558
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563rm -f conftest.$ac_objext
3564if { (ac_try="$ac_compile"
3565case "(($ac_try" in
3566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567  *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570  (eval "$ac_compile") 2>conftest.er1
3571  ac_status=$?
3572  grep -v '^ *+' conftest.er1 >conftest.err
3573  rm -f conftest.er1
3574  cat conftest.err >&5
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); } &&
3577	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3578  { (case "(($ac_try" in
3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580  *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583  (eval "$ac_try") 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; } &&
3587	 { ac_try='test -s conftest.$ac_objext'
3588  { (case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593  (eval "$ac_try") 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597
3598  { echo "$as_me:$LINENO: result: yes" >&5
3599echo "${ECHO_T}yes" >&6; }
3600
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605
3606  { echo "$as_me:$LINENO: result: no" >&5
3607echo "${ECHO_T}no" >&6; }
3608  { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3609echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3610   { (exit 1); exit 1; }; }
3611
3612fi
3613
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615  ac_ext=c
3616ac_cpp='$CPP $CPPFLAGS'
3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621fi
3622
3623{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3624echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3625ac_ext=cpp
3626ac_cpp='$CXXCPP $CPPFLAGS'
3627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3630
3631llvm_cv_cxx_compiler=unknown
3632cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638#if ! __clang__
3639                                    #error
3640                                    #endif
3641
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (ac_try="$ac_compile"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650  (eval "$ac_compile") 2>conftest.er1
3651  ac_status=$?
3652  grep -v '^ *+' conftest.er1 >conftest.err
3653  rm -f conftest.er1
3654  cat conftest.err >&5
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); } &&
3657	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3658  { (case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663  (eval "$ac_try") 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667	 { ac_try='test -s conftest.$ac_objext'
3668  { (case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673  (eval "$ac_try") 2>&5
3674  ac_status=$?
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); }; }; then
3677  llvm_cv_cxx_compiler=clang
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682	cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688#if ! __GNUC__
3689                                                       #error
3690                                                       #endif
3691
3692_ACEOF
3693rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700  (eval "$ac_compile") 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3708  { (case "(($ac_try" in
3709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710  *) ac_try_echo=$ac_try;;
3711esac
3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713  (eval "$ac_try") 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; } &&
3717	 { ac_try='test -s conftest.$ac_objext'
3718  { (case "(($ac_try" in
3719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720  *) ac_try_echo=$ac_try;;
3721esac
3722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723  (eval "$ac_try") 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; }; then
3727  llvm_cv_cxx_compiler=gcc
3728else
3729  echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732
3733fi
3734
3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736fi
3737
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739ac_ext=c
3740ac_cpp='$CPP $CPPFLAGS'
3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3746echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3747
3748
3749
3750if test -d ${srcdir}/projects/test-suite ; then
3751  subdirs="$subdirs projects/test-suite"
3752
3753fi
3754
3755if test -d ${srcdir}/projects/llvm-test ; then
3756  subdirs="$subdirs projects/llvm-test"
3757
3758fi
3759
3760if test -d ${srcdir}/projects/poolalloc ; then
3761  subdirs="$subdirs projects/poolalloc"
3762
3763fi
3764
3765if test -d ${srcdir}/projects/llvm-poolalloc ; then
3766  subdirs="$subdirs projects/llvm-poolalloc"
3767
3768fi
3769
3770for i in `ls ${srcdir}/projects`
3771do
3772  if test -d ${srcdir}/projects/${i} ; then
3773    case ${i} in
3774      safecode)     subdirs="$subdirs projects/safecode"
3775 ;;
3776      compiler-rt)       ;;
3777      test-suite)     ;;
3778      llvm-test)      ;;
3779      poolalloc)      ;;
3780      llvm-poolalloc) ;;
3781      *)
3782        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3783echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3784        ;;
3785    esac
3786  fi
3787done
3788
3789# Check whether --enable-polly was given.
3790if test "${enable_polly+set}" = set; then
3791  enableval=$enable_polly;
3792else
3793  enableval=default
3794fi
3795
3796case "$enableval" in
3797  yes) ENABLE_POLLY=1
3798 ;;
3799  no)  ENABLE_POLLY=0
3800 ;;
3801  default) ENABLE_POLLY=1
3802 ;;
3803  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3804echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3805   { (exit 1); exit 1; }; } ;;
3806esac
3807
3808
3809if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3810  LLVM_HAS_POLLY=1
3811
3812  subdirs="$subdirs tools/polly"
3813
3814fi
3815
3816
3817# Make sure we can run config.sub.
3818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3819  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3820echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3821   { (exit 1); exit 1; }; }
3822
3823{ echo "$as_me:$LINENO: checking build system type" >&5
3824echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3825if test "${ac_cv_build+set}" = set; then
3826  echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828  ac_build_alias=$build_alias
3829test "x$ac_build_alias" = x &&
3830  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3831test "x$ac_build_alias" = x &&
3832  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3833echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3834   { (exit 1); exit 1; }; }
3835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3836  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3837echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3838   { (exit 1); exit 1; }; }
3839
3840fi
3841{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3842echo "${ECHO_T}$ac_cv_build" >&6; }
3843case $ac_cv_build in
3844*-*-*) ;;
3845*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3846echo "$as_me: error: invalid value of canonical build" >&2;}
3847   { (exit 1); exit 1; }; };;
3848esac
3849build=$ac_cv_build
3850ac_save_IFS=$IFS; IFS='-'
3851set x $ac_cv_build
3852shift
3853build_cpu=$1
3854build_vendor=$2
3855shift; shift
3856# Remember, the first character of IFS is used to create $*,
3857# except with old shells:
3858build_os=$*
3859IFS=$ac_save_IFS
3860case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3861
3862
3863{ echo "$as_me:$LINENO: checking host system type" >&5
3864echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3865if test "${ac_cv_host+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  if test "x$host_alias" = x; then
3869  ac_cv_host=$ac_cv_build
3870else
3871  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3872    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3873echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3874   { (exit 1); exit 1; }; }
3875fi
3876
3877fi
3878{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3879echo "${ECHO_T}$ac_cv_host" >&6; }
3880case $ac_cv_host in
3881*-*-*) ;;
3882*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3883echo "$as_me: error: invalid value of canonical host" >&2;}
3884   { (exit 1); exit 1; }; };;
3885esac
3886host=$ac_cv_host
3887ac_save_IFS=$IFS; IFS='-'
3888set x $ac_cv_host
3889shift
3890host_cpu=$1
3891host_vendor=$2
3892shift; shift
3893# Remember, the first character of IFS is used to create $*,
3894# except with old shells:
3895host_os=$*
3896IFS=$ac_save_IFS
3897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3898
3899
3900{ echo "$as_me:$LINENO: checking target system type" >&5
3901echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3902if test "${ac_cv_target+set}" = set; then
3903  echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905  if test "x$target_alias" = x; then
3906  ac_cv_target=$ac_cv_host
3907else
3908  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3909    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3911   { (exit 1); exit 1; }; }
3912fi
3913
3914fi
3915{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3916echo "${ECHO_T}$ac_cv_target" >&6; }
3917case $ac_cv_target in
3918*-*-*) ;;
3919*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3920echo "$as_me: error: invalid value of canonical target" >&2;}
3921   { (exit 1); exit 1; }; };;
3922esac
3923target=$ac_cv_target
3924ac_save_IFS=$IFS; IFS='-'
3925set x $ac_cv_target
3926shift
3927target_cpu=$1
3928target_vendor=$2
3929shift; shift
3930# Remember, the first character of IFS is used to create $*,
3931# except with old shells:
3932target_os=$*
3933IFS=$ac_save_IFS
3934case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3935
3936
3937# The aliases save the names the user supplied, while $host etc.
3938# will get canonicalized.
3939test -n "$target_alias" &&
3940  test "$program_prefix$program_suffix$program_transform_name" = \
3941    NONENONEs,x,x, &&
3942  program_prefix=${target_alias}-
3943
3944{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3945echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3946if test "${llvm_cv_os_type+set}" = set; then
3947  echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949  case $host in
3950  *-*-aix*)
3951    llvm_cv_link_all_option="-Wl,--whole-archive"
3952    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953    llvm_cv_os_type="AIX"
3954    llvm_cv_platform_type="Unix" ;;
3955  *-*-irix*)
3956    llvm_cv_link_all_option="-Wl,--whole-archive"
3957    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958    llvm_cv_os_type="IRIX"
3959    llvm_cv_platform_type="Unix" ;;
3960  *-*-cygwin*)
3961    llvm_cv_link_all_option="-Wl,--whole-archive"
3962    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963    llvm_cv_os_type="Cygwin"
3964    llvm_cv_platform_type="Unix" ;;
3965  *-*-darwin*)
3966    llvm_cv_link_all_option="-Wl,-all_load"
3967    llvm_cv_no_link_all_option="-Wl,-noall_load"
3968    llvm_cv_os_type="Darwin"
3969    llvm_cv_platform_type="Unix" ;;
3970  *-*-minix*)
3971    llvm_cv_link_all_option="-Wl,-all_load"
3972    llvm_cv_no_link_all_option="-Wl,-noall_load"
3973    llvm_cv_os_type="Minix"
3974    llvm_cv_platform_type="Unix" ;;
3975  *-*-freebsd*)
3976    llvm_cv_link_all_option="-Wl,--whole-archive"
3977    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978    llvm_cv_os_type="FreeBSD"
3979    llvm_cv_platform_type="Unix" ;;
3980  *-*-kfreebsd-gnu)
3981    llvm_cv_link_all_option="-Wl,--whole-archive"
3982    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983    llvm_cv_os_type="GNU/kFreeBSD"
3984    llvm_cv_platform_type="Unix" ;;
3985  *-*-openbsd*)
3986    llvm_cv_link_all_option="-Wl,--whole-archive"
3987    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988    llvm_cv_os_type="OpenBSD"
3989    llvm_cv_platform_type="Unix" ;;
3990  *-*-netbsd*)
3991    llvm_cv_link_all_option="-Wl,--whole-archive"
3992    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993    llvm_cv_os_type="NetBSD"
3994    llvm_cv_platform_type="Unix" ;;
3995  *-*-dragonfly*)
3996    llvm_cv_link_all_option="-Wl,--whole-archive"
3997    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998    llvm_cv_os_type="DragonFly"
3999    llvm_cv_platform_type="Unix" ;;
4000  *-*-bitrig*)
4001    llvm_cv_link_all_option="-Wl,--whole-archive"
4002    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4003    llvm_cv_os_type="Bitrig"
4004    llvm_cv_platform_type="Unix" ;;
4005  *-*-hpux*)
4006    llvm_cv_link_all_option="-Wl,--whole-archive"
4007    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008    llvm_cv_os_type="HP-UX"
4009    llvm_cv_platform_type="Unix" ;;
4010  *-*-interix*)
4011    llvm_cv_link_all_option="-Wl,--whole-archive"
4012    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013    llvm_cv_os_type="Interix"
4014    llvm_cv_platform_type="Unix" ;;
4015  *-*-linux*)
4016    llvm_cv_link_all_option="-Wl,--whole-archive"
4017    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018    llvm_cv_os_type="Linux"
4019    llvm_cv_platform_type="Unix" ;;
4020  *-*-gnu*)
4021    llvm_cv_link_all_option="-Wl,--whole-archive"
4022    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023    llvm_cv_os_type="GNU"
4024    llvm_cv_platform_type="Unix" ;;
4025  *-*-solaris*)
4026    llvm_cv_link_all_option="-Wl,-z,allextract"
4027    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4028    llvm_cv_os_type="SunOS"
4029    llvm_cv_platform_type="Unix" ;;
4030  *-*-win32*)
4031    llvm_cv_link_all_option="-Wl,--whole-archive"
4032    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4033    llvm_cv_os_type="Win32"
4034    llvm_cv_platform_type="Win32" ;;
4035  *-*-mingw*)
4036    llvm_cv_link_all_option="-Wl,--whole-archive"
4037    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4038    llvm_cv_os_type="MingW"
4039    llvm_cv_platform_type="Win32" ;;
4040  *-*-haiku*)
4041    llvm_cv_link_all_option="-Wl,--whole-archive"
4042    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4043    llvm_cv_os_type="Haiku"
4044    llvm_cv_platform_type="Unix" ;;
4045  *-unknown-eabi*)
4046    llvm_cv_link_all_option="-Wl,--whole-archive"
4047    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4048    llvm_cv_os_type="Freestanding"
4049    llvm_cv_platform_type="Unix" ;;
4050  *-unknown-elf*)
4051    llvm_cv_link_all_option="-Wl,--whole-archive"
4052    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4053    llvm_cv_os_type="Freestanding"
4054    llvm_cv_platform_type="Unix" ;;
4055  *)
4056    llvm_cv_link_all_option=""
4057    llvm_cv_no_link_all_option=""
4058    llvm_cv_os_type="Unknown"
4059    llvm_cv_platform_type="Unknown" ;;
4060esac
4061fi
4062{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4063echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4064
4065{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4066echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4067if test "${llvm_cv_target_os_type+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  case $target in
4071  *-*-aix*)
4072    llvm_cv_target_os_type="AIX" ;;
4073  *-*-irix*)
4074    llvm_cv_target_os_type="IRIX" ;;
4075  *-*-cygwin*)
4076    llvm_cv_target_os_type="Cygwin" ;;
4077  *-*-darwin*)
4078    llvm_cv_target_os_type="Darwin" ;;
4079  *-*-minix*)
4080    llvm_cv_target_os_type="Minix" ;;
4081  *-*-freebsd*)
4082    llvm_cv_target_os_type="FreeBSD" ;;
4083  *-*-kfreebsd-gnu)
4084    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4085  *-*-openbsd*)
4086    llvm_cv_target_os_type="OpenBSD" ;;
4087  *-*-netbsd*)
4088    llvm_cv_target_os_type="NetBSD" ;;
4089  *-*-dragonfly*)
4090    llvm_cv_target_os_type="DragonFly" ;;
4091  *-*-bitrig*)
4092    llvm_cv_target_os_type="Bitrig" ;;
4093  *-*-hpux*)
4094    llvm_cv_target_os_type="HP-UX" ;;
4095  *-*-interix*)
4096    llvm_cv_target_os_type="Interix" ;;
4097  *-*-linux*)
4098    llvm_cv_target_os_type="Linux" ;;
4099  *-*-gnu*)
4100    llvm_cv_target_os_type="GNU" ;;
4101  *-*-solaris*)
4102    llvm_cv_target_os_type="SunOS" ;;
4103  *-*-win32*)
4104    llvm_cv_target_os_type="Win32" ;;
4105  *-*-mingw*)
4106    llvm_cv_target_os_type="MingW" ;;
4107  *-*-haiku*)
4108    llvm_cv_target_os_type="Haiku" ;;
4109  *-*-rtems*)
4110    llvm_cv_target_os_type="RTEMS" ;;
4111  *-*-nacl*)
4112    llvm_cv_target_os_type="NativeClient" ;;
4113  *-unknown-eabi*)
4114    llvm_cv_target_os_type="Freestanding" ;;
4115  *-*-ps4)
4116    llvm_cv_target_os_type="PS4" ;;
4117  *)
4118    llvm_cv_target_os_type="Unknown" ;;
4119esac
4120fi
4121{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4122echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4123
4124if test "$llvm_cv_os_type" = "Unknown" ; then
4125  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4126echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4127   { (exit 1); exit 1; }; }
4128fi
4129
4130OS=$llvm_cv_os_type
4131
4132HOST_OS=$llvm_cv_os_type
4133
4134TARGET_OS=$llvm_cv_target_os_type
4135
4136
4137LINKALL=$llvm_cv_link_all_option
4138
4139NOLINKALL=$llvm_cv_no_link_all_option
4140
4141
4142case $llvm_cv_platform_type in
4143  Unix)
4144
4145cat >>confdefs.h <<\_ACEOF
4146#define LLVM_ON_UNIX 1
4147_ACEOF
4148
4149    LLVM_ON_UNIX=1
4150
4151    LLVM_ON_WIN32=0
4152
4153    ;;
4154  Win32)
4155
4156cat >>confdefs.h <<\_ACEOF
4157#define LLVM_ON_WIN32 1
4158_ACEOF
4159
4160    LLVM_ON_UNIX=0
4161
4162    LLVM_ON_WIN32=1
4163
4164    ;;
4165esac
4166
4167{ echo "$as_me:$LINENO: checking target architecture" >&5
4168echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4169if test "${llvm_cv_target_arch+set}" = set; then
4170  echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172  case $target in
4173  i?86-*)                 llvm_cv_target_arch="x86" ;;
4174  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4175  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4176  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4177  arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4178  arm*-*)                 llvm_cv_target_arch="ARM" ;;
4179  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4180  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4181  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4182  xcore-*)                llvm_cv_target_arch="XCore" ;;
4183  msp430-*)               llvm_cv_target_arch="MSP430" ;;
4184  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4185  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4186  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4187  *)                      llvm_cv_target_arch="Unknown" ;;
4188esac
4189fi
4190{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4191echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4192
4193if test "$llvm_cv_target_arch" = "Unknown" ; then
4194  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4195echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4196fi
4197
4198case "$llvm_cv_target_arch" in
4199    x86)     LLVM_NATIVE_ARCH="X86" ;;
4200    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4201    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4202esac
4203
4204ARCH=$llvm_cv_target_arch
4205
4206LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4207
4208
4209case $host in
4210  i?86-*)                 host_arch="x86" ;;
4211  amd64-* | x86_64-*)     host_arch="x86_64" ;;
4212  sparc*-*)               host_arch="Sparc" ;;
4213  powerpc*-*)             host_arch="PowerPC" ;;
4214  arm64*-*)               host_arch="AArch64" ;;
4215  arm*-*)                 host_arch="ARM" ;;
4216  aarch64*-*)             host_arch="AArch64" ;;
4217  mips-* | mips64-*)      host_arch="Mips" ;;
4218  mipsel-* | mips64el-*)  host_arch="Mips" ;;
4219  xcore-*)                host_arch="XCore" ;;
4220  msp430-*)               host_arch="MSP430" ;;
4221  hexagon-*)              host_arch="Hexagon" ;;
4222  s390x-*)                host_arch="SystemZ" ;;
4223  *)                      host_arch="Unknown" ;;
4224esac
4225
4226if test "$host_arch" = "Unknown" ; then
4227  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4228echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4229fi
4230
4231HOST_ARCH=$host_arch
4232
4233
4234if test "$cross_compiling" = yes; then
4235  LLVM_CROSS_COMPILING=1
4236
4237
4238{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4239echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4240if test "${ac_cv_build_exeext+set}" = set; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4244  ac_cv_build_exeext=.exe
4245else
4246  ac_build_prefix=${build_alias}-
4247
4248  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4249set dummy ${ac_build_prefix}gcc; ac_word=$2
4250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4253  echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255  if test -n "$BUILD_CC"; then
4256  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263  for ac_exec_ext in '' $ac_executable_extensions; do
4264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267    break 2
4268  fi
4269done
4270done
4271IFS=$as_save_IFS
4272
4273fi
4274fi
4275BUILD_CC=$ac_cv_prog_BUILD_CC
4276if test -n "$BUILD_CC"; then
4277  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4278echo "${ECHO_T}$BUILD_CC" >&6; }
4279else
4280  { echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6; }
4282fi
4283
4284
4285  if test -z "$BUILD_CC"; then
4286     # Extract the first word of "gcc", so it can be a program name with args.
4287set dummy gcc; ac_word=$2
4288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  if test -n "$BUILD_CC"; then
4294  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299  IFS=$as_save_IFS
4300  test -z "$as_dir" && as_dir=.
4301  for ac_exec_ext in '' $ac_executable_extensions; do
4302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4303    ac_cv_prog_BUILD_CC="gcc"
4304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305    break 2
4306  fi
4307done
4308done
4309IFS=$as_save_IFS
4310
4311fi
4312fi
4313BUILD_CC=$ac_cv_prog_BUILD_CC
4314if test -n "$BUILD_CC"; then
4315  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4316echo "${ECHO_T}$BUILD_CC" >&6; }
4317else
4318  { echo "$as_me:$LINENO: result: no" >&5
4319echo "${ECHO_T}no" >&6; }
4320fi
4321
4322
4323     if test -z "$BUILD_CC"; then
4324       # Extract the first word of "cc", so it can be a program name with args.
4325set dummy cc; ac_word=$2
4326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  if test -n "$BUILD_CC"; then
4332  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4333else
4334  ac_prog_rejected=no
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338  IFS=$as_save_IFS
4339  test -z "$as_dir" && as_dir=.
4340  for ac_exec_ext in '' $ac_executable_extensions; do
4341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4342    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4343       ac_prog_rejected=yes
4344       continue
4345     fi
4346    ac_cv_prog_BUILD_CC="cc"
4347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348    break 2
4349  fi
4350done
4351done
4352IFS=$as_save_IFS
4353
4354if test $ac_prog_rejected = yes; then
4355  # We found a bogon in the path, so make sure we never use it.
4356  set dummy $ac_cv_prog_BUILD_CC
4357  shift
4358  if test $# != 0; then
4359    # We chose a different compiler from the bogus one.
4360    # However, it has the same basename, so the bogon will be chosen
4361    # first if we set BUILD_CC to just the basename; use the full file name.
4362    shift
4363    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4364  fi
4365fi
4366fi
4367fi
4368BUILD_CC=$ac_cv_prog_BUILD_CC
4369if test -n "$BUILD_CC"; then
4370  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4371echo "${ECHO_T}$BUILD_CC" >&6; }
4372else
4373  { echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6; }
4375fi
4376
4377
4378     fi
4379  fi
4380  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4381echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4382   { (exit 1); exit 1; }; }
4383  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4384  rm -f conftest*
4385  echo 'int main () { return 0; }' > conftest.$ac_ext
4386  ac_cv_build_exeext=
4387  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4388  (eval $ac_build_link) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; then
4392    for file in conftest.*; do
4393      case $file in
4394      *.c | *.o | *.obj | *.dSYM) ;;
4395      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4396      esac
4397    done
4398  else
4399    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4400echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4401   { (exit 1); exit 1; }; }
4402  fi
4403  rm -f conftest*
4404  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4405fi
4406fi
4407
4408BUILD_EXEEXT=""
4409test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4410{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4411echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4412ac_build_exeext=$BUILD_EXEEXT
4413
4414  ac_build_prefix=${build_alias}-
4415  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4416set dummy ${ac_build_prefix}g++; ac_word=$2
4417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  if test -n "$BUILD_CXX"; then
4423  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430  for ac_exec_ext in '' $ac_executable_extensions; do
4431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442BUILD_CXX=$ac_cv_prog_BUILD_CXX
4443if test -n "$BUILD_CXX"; then
4444  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4445echo "${ECHO_T}$BUILD_CXX" >&6; }
4446else
4447  { echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6; }
4449fi
4450
4451
4452  if test -z "$BUILD_CXX"; then
4453     # Extract the first word of "g++", so it can be a program name with args.
4454set dummy g++; ac_word=$2
4455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  if test -n "$BUILD_CXX"; then
4461  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466  IFS=$as_save_IFS
4467  test -z "$as_dir" && as_dir=.
4468  for ac_exec_ext in '' $ac_executable_extensions; do
4469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4470    ac_cv_prog_BUILD_CXX="g++"
4471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472    break 2
4473  fi
4474done
4475done
4476IFS=$as_save_IFS
4477
4478fi
4479fi
4480BUILD_CXX=$ac_cv_prog_BUILD_CXX
4481if test -n "$BUILD_CXX"; then
4482  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4483echo "${ECHO_T}$BUILD_CXX" >&6; }
4484else
4485  { echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6; }
4487fi
4488
4489
4490     if test -z "$BUILD_CXX"; then
4491       # Extract the first word of "c++", so it can be a program name with args.
4492set dummy c++; ac_word=$2
4493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  if test -n "$BUILD_CXX"; then
4499  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4500else
4501  ac_prog_rejected=no
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  test -z "$as_dir" && as_dir=.
4507  for ac_exec_ext in '' $ac_executable_extensions; do
4508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4509    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4510       ac_prog_rejected=yes
4511       continue
4512     fi
4513    ac_cv_prog_BUILD_CXX="c++"
4514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518done
4519IFS=$as_save_IFS
4520
4521if test $ac_prog_rejected = yes; then
4522  # We found a bogon in the path, so make sure we never use it.
4523  set dummy $ac_cv_prog_BUILD_CXX
4524  shift
4525  if test $# != 0; then
4526    # We chose a different compiler from the bogus one.
4527    # However, it has the same basename, so the bogon will be chosen
4528    # first if we set BUILD_CXX to just the basename; use the full file name.
4529    shift
4530    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4531  fi
4532fi
4533fi
4534fi
4535BUILD_CXX=$ac_cv_prog_BUILD_CXX
4536if test -n "$BUILD_CXX"; then
4537  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4538echo "${ECHO_T}$BUILD_CXX" >&6; }
4539else
4540  { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
4542fi
4543
4544
4545     fi
4546  fi
4547else
4548  LLVM_CROSS_COMPILING=0
4549
4550fi
4551
4552if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4553  cvsbuild="yes"
4554  optimize="no"
4555  CVSBUILD=CVSBUILD=1
4556
4557else
4558  cvsbuild="no"
4559  optimize="yes"
4560fi
4561
4562
4563# Check whether --enable-libcpp was given.
4564if test "${enable_libcpp+set}" = set; then
4565  enableval=$enable_libcpp;
4566else
4567  enableval=default
4568fi
4569
4570case "$enableval" in
4571  yes) ENABLE_LIBCPP=1
4572 ;;
4573  no)  ENABLE_LIBCPP=0
4574 ;;
4575  default) ENABLE_LIBCPP=0
4576;;
4577  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4578echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4579   { (exit 1); exit 1; }; } ;;
4580esac
4581
4582# Check whether --enable-compiler-version-checks was given.
4583if test "${enable_compiler_version_checks+set}" = set; then
4584  enableval=$enable_compiler_version_checks;
4585else
4586  enableval=default
4587fi
4588
4589case "$enableval" in
4590  no)
4591    ;;
4592  yes|default)
4593    ac_ext=cpp
4594ac_cpp='$CXXCPP $CPPFLAGS'
4595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4598
4599    case "$llvm_cv_cxx_compiler" in
4600    clang)
4601      { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4602echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4603      cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609
4610#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4611#error This version of Clang is too old to build LLVM
4612#endif
4613
4614_ACEOF
4615rm -f conftest.$ac_objext
4616if { (ac_try="$ac_compile"
4617case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622  (eval "$ac_compile") 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } &&
4629	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4630  { (case "(($ac_try" in
4631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632  *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635  (eval "$ac_try") 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; } &&
4639	 { ac_try='test -s conftest.$ac_objext'
4640  { (case "(($ac_try" in
4641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642  *) ac_try_echo=$ac_try;;
4643esac
4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645  (eval "$ac_try") 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; }; then
4649  { echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6; }
4651else
4652  echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655	{ echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
4657           { { echo "$as_me:$LINENO: error:
4658The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4659Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4660bypass these sanity checks." >&5
4661echo "$as_me: error:
4662The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4663Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4664bypass these sanity checks." >&2;}
4665   { (exit 1); exit 1; }; }
4666fi
4667
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669
4670                                          if test "$ENABLE_LIBCPP" -eq 0 ; then
4671        { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4672echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4673        llvm_cv_old_cxxflags="$CXXFLAGS"
4674        CXXFLAGS="$CXXFLAGS -std=c++0x"
4675        cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h.  */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h.  */
4681
4682#include <atomic>
4683std::atomic<float> x(0.0f);
4684int main() { return (float)x; }
4685
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (ac_try="$ac_link"
4689case "(($ac_try" in
4690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691  *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694  (eval "$ac_link") 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } &&
4701	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4702  { (case "(($ac_try" in
4703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704  *) ac_try_echo=$ac_try;;
4705esac
4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707  (eval "$ac_try") 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711	 { ac_try='test -s conftest$ac_exeext'
4712  { (case "(($ac_try" in
4713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714  *) ac_try_echo=$ac_try;;
4715esac
4716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717  (eval "$ac_try") 2>&5
4718  ac_status=$?
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); }; }; then
4721  { echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6; }
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727	{ echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6; }
4729             { { echo "$as_me:$LINENO: error:
4730We detected a missing feature in the standard C++ library that was known to be
4731missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4732C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4733than 4.7. You will need to update your system and ensure Clang uses the newer
4734standard library.
4735
4736If this error is incorrect or you need to force things to work, you may pass
4737'--disable-compiler-version-checks' to configure to bypass this test." >&5
4738echo "$as_me: error:
4739We detected a missing feature in the standard C++ library that was known to be
4740missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4741C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4742than 4.7. You will need to update your system and ensure Clang uses the newer
4743standard library.
4744
4745If this error is incorrect or you need to force things to work, you may pass
4746'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4747   { (exit 1); exit 1; }; }
4748fi
4749
4750rm -f core conftest.err conftest.$ac_objext \
4751      conftest$ac_exeext conftest.$ac_ext
4752        CXXFLAGS="$llvm_cv_old_cxxflags"
4753      fi
4754      ;;
4755    gcc)
4756      { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4757echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4758      cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764
4765#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4766#error This version of GCC is too old to build LLVM
4767#endif
4768
4769_ACEOF
4770rm -f conftest.$ac_objext
4771if { (ac_try="$ac_compile"
4772case "(($ac_try" in
4773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774  *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777  (eval "$ac_compile") 2>conftest.er1
4778  ac_status=$?
4779  grep -v '^ *+' conftest.er1 >conftest.err
4780  rm -f conftest.er1
4781  cat conftest.err >&5
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); } &&
4784	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4785  { (case "(($ac_try" in
4786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787  *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790  (eval "$ac_try") 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); }; } &&
4794	 { ac_try='test -s conftest.$ac_objext'
4795  { (case "(($ac_try" in
4796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797  *) ac_try_echo=$ac_try;;
4798esac
4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800  (eval "$ac_try") 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; }; then
4804  { echo "$as_me:$LINENO: result: yes" >&5
4805echo "${ECHO_T}yes" >&6; }
4806else
4807  echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810	{ echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6; }
4812           { { echo "$as_me:$LINENO: error:
4813The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4814to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4815bypass these sanity checks." >&5
4816echo "$as_me: error:
4817The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4818to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4819bypass these sanity checks." >&2;}
4820   { (exit 1); exit 1; }; }
4821fi
4822
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824      ;;
4825    unknown)
4826      ;;
4827    esac
4828    ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
4834    ;;
4835  *)
4836    { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4837echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4838   { (exit 1); exit 1; }; }
4839    ;;
4840esac
4841
4842# Check whether --enable-cxx1y was given.
4843if test "${enable_cxx1y+set}" = set; then
4844  enableval=$enable_cxx1y;
4845else
4846  enableval=default
4847fi
4848
4849case "$enableval" in
4850  yes) ENABLE_CXX1Y=1
4851 ;;
4852  no)  ENABLE_CXX1Y=0
4853 ;;
4854  default) ENABLE_CXX1Y=0
4855;;
4856  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4857echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4858   { (exit 1); exit 1; }; } ;;
4859esac
4860
4861# Check whether --enable-split-dwarf was given.
4862if test "${enable_split_dwarf+set}" = set; then
4863  enableval=$enable_split_dwarf;
4864else
4865  enableval=default
4866fi
4867
4868case "$enableval" in
4869  yes) ENABLE_SPLIT_DWARF=1
4870 ;;
4871  no)  ENABLE_SPLIT_DWARF=0
4872 ;;
4873  default) ENABLE_SPLIT_DWARF=0
4874;;
4875  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4877   { (exit 1); exit 1; }; } ;;
4878esac
4879
4880clang_arcmt="yes"
4881# Check whether --enable-clang-arcmt was given.
4882if test "${enable_clang_arcmt+set}" = set; then
4883  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4884else
4885  enableval="yes"
4886fi
4887
4888case "$enableval" in
4889  yes) ENABLE_CLANG_ARCMT=1
4890 ;;
4891  no)  ENABLE_CLANG_ARCMT=0
4892 ;;
4893  default) ENABLE_CLANG_ARCMT=1
4894;;
4895  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4897   { (exit 1); exit 1; }; } ;;
4898esac
4899
4900clang_plugin_support="yes"
4901# Check whether --enable-clang-plugin-support was given.
4902if test "${enable_clang_plugin_support+set}" = set; then
4903  enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4904else
4905  enableval="yes"
4906fi
4907
4908case "$enableval" in
4909  yes) CLANG_PLUGIN_SUPPORT=1
4910 ;;
4911  no)  CLANG_PLUGIN_SUPPORT=0
4912 ;;
4913  default) CLANG_PLUGIN_SUPPORT=1
4914;;
4915  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4916echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4917   { (exit 1); exit 1; }; } ;;
4918esac
4919
4920clang_static_analyzer="yes"
4921# Check whether --enable-clang-static-analyzer was given.
4922if test "${enable_clang_static_analyzer+set}" = set; then
4923  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4924else
4925  enableval="yes"
4926fi
4927
4928case "$enableval" in
4929  yes) ENABLE_CLANG_STATIC_ANALYZER=1
4930 ;;
4931  no)
4932    if test ${clang_arcmt} != "no" ; then
4933      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4934echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4935   { (exit 1); exit 1; }; }
4936    fi
4937    ENABLE_CLANG_STATIC_ANALYZER=0
4938
4939    ;;
4940  default) ENABLE_CLANG_STATIC_ANALYZER=1
4941;;
4942  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4943echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4944   { (exit 1); exit 1; }; } ;;
4945esac
4946
4947# Check whether --enable-optimized was given.
4948if test "${enable_optimized+set}" = set; then
4949  enableval=$enable_optimized;
4950else
4951  enableval=$optimize
4952fi
4953
4954if test ${enableval} = "no" ; then
4955  ENABLE_OPTIMIZED=
4956
4957else
4958  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4959
4960fi
4961
4962# Check whether --enable-profiling was given.
4963if test "${enable_profiling+set}" = set; then
4964  enableval=$enable_profiling;
4965else
4966  enableval="no"
4967fi
4968
4969if test ${enableval} = "no" ; then
4970  ENABLE_PROFILING=
4971
4972else
4973  ENABLE_PROFILING=ENABLE_PROFILING=1
4974
4975fi
4976
4977# Check whether --enable-assertions was given.
4978if test "${enable_assertions+set}" = set; then
4979  enableval=$enable_assertions;
4980else
4981  enableval="yes"
4982fi
4983
4984if test ${enableval} = "yes" ; then
4985  DISABLE_ASSERTIONS=
4986
4987  assertions_enabled="yes"
4988else
4989  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4990
4991  assertions_enabled="no"
4992fi
4993
4994# Check whether --enable-werror was given.
4995if test "${enable_werror+set}" = set; then
4996  enableval=$enable_werror;
4997else
4998  enableval="no"
4999fi
5000
5001case "$enableval" in
5002  yes) ENABLE_WERROR=1
5003 ;;
5004  no)  ENABLE_WERROR=0
5005 ;;
5006  default) ENABLE_WERROR=0
5007;;
5008  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5009echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5010   { (exit 1); exit 1; }; } ;;
5011esac
5012
5013# Check whether --enable-expensive-checks was given.
5014if test "${enable_expensive_checks+set}" = set; then
5015  enableval=$enable_expensive_checks;
5016else
5017  enableval="no"
5018fi
5019
5020if test ${enableval} = "yes" ; then
5021  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5022
5023  EXPENSIVE_CHECKS=yes
5024
5025else
5026  ENABLE_EXPENSIVE_CHECKS=
5027
5028  EXPENSIVE_CHECKS=no
5029
5030fi
5031
5032# Check whether --enable-abi-breaking-checks was given.
5033if test "${enable_abi_breaking_checks+set}" = set; then
5034  enableval=$enable_abi_breaking_checks;
5035else
5036  enableval="with-asserts"
5037fi
5038
5039case "$enableval" in
5040  with-asserts)  if test ${assertions_enabled} = "yes" ; then
5041
5042cat >>confdefs.h <<\_ACEOF
5043#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5044_ACEOF
5045
5046                   ENABLE_ABI_BREAKING_CHECKS=1
5047
5048                 else
5049                   ENABLE_ABI_BREAKING_CHECKS=0
5050
5051		 fi ;;
5052  yes)
5053
5054cat >>confdefs.h <<\_ACEOF
5055#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5056_ACEOF
5057
5058                 ENABLE_ABI_BREAKING_CHECKS=1
5059
5060                 ;;
5061  no)
5062                 ENABLE_ABI_BREAKING_CHECKS=0
5063
5064                 ;;
5065  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5066echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5067   { (exit 1); exit 1; }; }
5068esac
5069
5070# Check whether --enable-debug-runtime was given.
5071if test "${enable_debug_runtime+set}" = set; then
5072  enableval=$enable_debug_runtime;
5073else
5074  enableval=no
5075fi
5076
5077if test ${enableval} = "no" ; then
5078  DEBUG_RUNTIME=
5079
5080else
5081  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5082
5083fi
5084
5085# Check whether --enable-debug-symbols was given.
5086if test "${enable_debug_symbols+set}" = set; then
5087  enableval=$enable_debug_symbols;
5088else
5089  enableval=no
5090fi
5091
5092if test ${enableval} = "no" ; then
5093  DEBUG_SYMBOLS=
5094
5095else
5096  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5097
5098fi
5099
5100# Check whether --enable-keep-symbols was given.
5101if test "${enable_keep_symbols+set}" = set; then
5102  enableval=$enable_keep_symbols;
5103else
5104  enableval=no
5105fi
5106
5107if test ${enableval} = "no" ; then
5108  KEEP_SYMBOLS=
5109
5110else
5111  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5112
5113fi
5114
5115# Check whether --enable-jit was given.
5116if test "${enable_jit+set}" = set; then
5117  enableval=$enable_jit;
5118else
5119  enableval=default
5120fi
5121
5122if test ${enableval} = "no"
5123then
5124  JIT=
5125
5126else
5127  case "$llvm_cv_target_arch" in
5128    x86)         TARGET_HAS_JIT=1
5129 ;;
5130    Sparc)       TARGET_HAS_JIT=0
5131 ;;
5132    PowerPC)     TARGET_HAS_JIT=1
5133 ;;
5134    x86_64)      TARGET_HAS_JIT=1
5135 ;;
5136    ARM)         TARGET_HAS_JIT=1
5137 ;;
5138    Mips)        TARGET_HAS_JIT=1
5139 ;;
5140    XCore)       TARGET_HAS_JIT=0
5141 ;;
5142    MSP430)      TARGET_HAS_JIT=0
5143 ;;
5144    Hexagon)     TARGET_HAS_JIT=0
5145 ;;
5146    NVPTX)       TARGET_HAS_JIT=0
5147 ;;
5148    SystemZ)     TARGET_HAS_JIT=1
5149 ;;
5150    *)           TARGET_HAS_JIT=0
5151 ;;
5152  esac
5153fi
5154
5155TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5156TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5157
5158
5159# Check whether --enable-docs was given.
5160if test "${enable_docs+set}" = set; then
5161  enableval=$enable_docs;
5162else
5163  enableval=default
5164fi
5165
5166case "$enableval" in
5167  yes) ENABLE_DOCS=1
5168 ;;
5169  no)  ENABLE_DOCS=0
5170 ;;
5171  default) ENABLE_DOCS=1
5172 ;;
5173  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5175   { (exit 1); exit 1; }; } ;;
5176esac
5177
5178# Check whether --enable-doxygen was given.
5179if test "${enable_doxygen+set}" = set; then
5180  enableval=$enable_doxygen;
5181else
5182  enableval=default
5183fi
5184
5185case "$enableval" in
5186  yes) ENABLE_DOXYGEN=1
5187 ;;
5188  no|default) ENABLE_DOXYGEN=0
5189 ;;
5190  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5192   { (exit 1); exit 1; }; } ;;
5193esac
5194
5195# Check whether --enable-doxygen-search was given.
5196if test "${enable_doxygen_search+set}" = set; then
5197  enableval=$enable_doxygen_search;
5198else
5199  enableval=default
5200fi
5201
5202ENABLE_DOXYGEN_SEARCH="$enableval"
5203
5204case "$enableval" in
5205  yes|no|default) ;;
5206  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5207echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5208   { (exit 1); exit 1; }; } ;;
5209esac
5210
5211# Check whether --enable-doxygen-external-search was given.
5212if test "${enable_doxygen_external_search+set}" = set; then
5213  enableval=$enable_doxygen_external_search;
5214else
5215  enableval=default
5216fi
5217
5218ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5219
5220case "$enableval" in
5221  yes)
5222            case "$ENABLE_DOXYGEN_SEARCH" in
5223      yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5224      no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5225echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5226   { (exit 1); exit 1; }; } ;;
5227    esac
5228    ;;
5229  no|default) ;;
5230  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5231echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5232   { (exit 1); exit 1; }; } ;;
5233esac
5234
5235
5236# Check whether --with-doxygen-search-engine-url was given.
5237if test "${with_doxygen_search_engine_url+set}" = set; then
5238  withval=$with_doxygen_search_engine_url;
5239fi
5240
5241WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5242
5243
5244# Check whether --with-doxygen-search-mappings was given.
5245if test "${with_doxygen_search_mappings+set}" = set; then
5246  withval=$with_doxygen_search_mappings;
5247fi
5248
5249WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5250
5251case "$ENABLE_DOXYGEN_SEARCH" in
5252  yes)
5253    if test "$ENABLE_DOXYGEN" = "0" ; then
5254      { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5255echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5256   { (exit 1); exit 1; }; }
5257    fi
5258
5259    enable_searchengine=YES
5260
5261
5262    case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5263      yes)
5264        enable_external_search=YES
5265
5266        enable_server_based_search=YES
5267
5268        searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5269
5270        extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5271
5272        ;;
5273
5274      no|default)
5275        enable_external_search=NO
5276
5277        enable_server_based_search=NO
5278
5279
5280
5281        ;;
5282    esac
5283    ;;
5284
5285  no|default)
5286    enable_searchengine=NO
5287
5288
5289    enable_server_based_search=NO
5290
5291    enable_external_search=NO
5292
5293
5294    ;;
5295
5296  *)
5297    { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5298echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5299   { (exit 1); exit 1; }; }
5300    ;;
5301esac
5302
5303# Check whether --enable-doxygen-qt-help was given.
5304if test "${enable_doxygen_qt_help+set}" = set; then
5305  enableval=$enable_doxygen_qt_help;
5306else
5307  enableval=default
5308fi
5309
5310case "$enableval" in
5311  yes)
5312    if test "$ENABLE_DOXYGEN" = "0" ; then
5313      { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5314echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5315   { (exit 1); exit 1; }; }
5316    fi
5317
5318    # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5319set dummy qhelpgenerator; ac_word=$2
5320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  case $QHELPGENERATOR in
5326  [\\/]* | ?:[\\/]*)
5327  ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5328  ;;
5329  *)
5330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335  for ac_exec_ext in '' $ac_executable_extensions; do
5336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5337    ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339    break 2
5340  fi
5341done
5342done
5343IFS=$as_save_IFS
5344
5345  test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5346  ;;
5347esac
5348fi
5349QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5350if test -n "$QHELPGENERATOR"; then
5351  { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5352echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5353else
5354  { echo "$as_me:$LINENO: result: no" >&5
5355echo "${ECHO_T}no" >&6; }
5356fi
5357
5358
5359
5360        llvm_doxygen_generate_qhp=YES
5361
5362    llvm_doxygen_qch_filename=org.llvm.qch
5363
5364    llvm_doxygen_qhp_namespace=org.llvm
5365
5366    llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5367
5368    llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5369
5370    llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5371
5372
5373        clang_doxygen_generate_qhp=YES
5374
5375    clang_doxygen_qch_filename=org.llvm.clang.qch
5376
5377    clang_doxygen_qhp_namespace=org.llvm.clang
5378
5379    clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5380
5381    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5382
5383    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5384
5385    ;;
5386
5387  no|default)
5388    llvm_doxygen_generate_qhp=NO
5389
5390
5391
5392
5393
5394
5395
5396    clang_doxygen_generate_qhp=NO
5397
5398
5399
5400
5401    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5402
5403    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5404
5405    ;;
5406
5407  *)
5408    { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5409echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5410   { (exit 1); exit 1; }; } ;;
5411esac
5412
5413# Check whether --enable-threads was given.
5414if test "${enable_threads+set}" = set; then
5415  enableval=$enable_threads;
5416else
5417  enableval=default
5418fi
5419
5420case "$enableval" in
5421  yes) LLVM_ENABLE_THREADS=1
5422 ;;
5423  no)  LLVM_ENABLE_THREADS=0
5424 ;;
5425  default) LLVM_ENABLE_THREADS=1
5426 ;;
5427  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5428echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5429   { (exit 1); exit 1; }; } ;;
5430esac
5431
5432cat >>confdefs.h <<_ACEOF
5433#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5434_ACEOF
5435
5436
5437# Check whether --enable-pthreads was given.
5438if test "${enable_pthreads+set}" = set; then
5439  enableval=$enable_pthreads;
5440else
5441  enableval=default
5442fi
5443
5444case "$enableval" in
5445  yes) ENABLE_PTHREADS=1
5446 ;;
5447  no)  ENABLE_PTHREADS=0
5448 ;;
5449  default) ENABLE_PTHREADS=1
5450 ;;
5451  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5452echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5453   { (exit 1); exit 1; }; } ;;
5454esac
5455
5456# Check whether --enable-zlib was given.
5457if test "${enable_zlib+set}" = set; then
5458  enableval=$enable_zlib;
5459else
5460  enableval=default
5461fi
5462
5463case "$enableval" in
5464  yes) LLVM_ENABLE_ZLIB=1
5465 ;;
5466  no)  LLVM_ENABLE_ZLIB=0
5467 ;;
5468  default) LLVM_ENABLE_ZLIB=1
5469 ;;
5470  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5471echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5472   { (exit 1); exit 1; }; } ;;
5473esac
5474
5475cat >>confdefs.h <<_ACEOF
5476#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5477_ACEOF
5478
5479
5480# Check whether --enable-pic was given.
5481if test "${enable_pic+set}" = set; then
5482  enableval=$enable_pic;
5483else
5484  enableval=default
5485fi
5486
5487case "$enableval" in
5488  yes) ENABLE_PIC=1
5489 ;;
5490  no)  ENABLE_PIC=0
5491 ;;
5492  default) ENABLE_PIC=1
5493 ;;
5494  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5495echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5496   { (exit 1); exit 1; }; } ;;
5497esac
5498
5499cat >>confdefs.h <<_ACEOF
5500#define ENABLE_PIC $ENABLE_PIC
5501_ACEOF
5502
5503
5504# Check whether --enable-shared was given.
5505if test "${enable_shared+set}" = set; then
5506  enableval=$enable_shared;
5507else
5508  enableval=default
5509fi
5510
5511case "$enableval" in
5512  yes) ENABLE_SHARED=1
5513 ;;
5514  no)  ENABLE_SHARED=0
5515 ;;
5516  default) ENABLE_SHARED=0
5517 ;;
5518  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5519echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5520   { (exit 1); exit 1; }; } ;;
5521esac
5522
5523# Check whether --enable-embed-stdcxx was given.
5524if test "${enable_embed_stdcxx+set}" = set; then
5525  enableval=$enable_embed_stdcxx;
5526else
5527  enableval=default
5528fi
5529
5530case "$enableval" in
5531  yes) ENABLE_EMBED_STDCXX=1
5532 ;;
5533  no)  ENABLE_EMBED_STDCXX=0
5534 ;;
5535  default) ENABLE_EMBED_STDCXX=0
5536 ;;
5537  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5538echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5539   { (exit 1); exit 1; }; } ;;
5540esac
5541
5542# Check whether --enable-timestamps was given.
5543if test "${enable_timestamps+set}" = set; then
5544  enableval=$enable_timestamps;
5545else
5546  enableval=default
5547fi
5548
5549case "$enableval" in
5550  yes) ENABLE_TIMESTAMPS=1
5551 ;;
5552  no)  ENABLE_TIMESTAMPS=0
5553 ;;
5554  default) ENABLE_TIMESTAMPS=1
5555 ;;
5556  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5557echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5558   { (exit 1); exit 1; }; } ;;
5559esac
5560
5561cat >>confdefs.h <<_ACEOF
5562#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5563_ACEOF
5564
5565
5566# Check whether --enable-backtraces was given.
5567if test "${enable_backtraces+set}" = set; then
5568  enableval=$enable_backtraces; case "$enableval" in
5569    yes) llvm_cv_enable_backtraces="yes" ;;
5570    no)  llvm_cv_enable_backtraces="no"  ;;
5571    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5572echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573   { (exit 1); exit 1; }; } ;;
5574  esac
5575else
5576  llvm_cv_enable_backtraces="yes"
5577fi
5578
5579if test "$llvm_cv_enable_backtraces" = "yes" ; then
5580
5581cat >>confdefs.h <<\_ACEOF
5582#define ENABLE_BACKTRACES 1
5583_ACEOF
5584
5585fi
5586
5587# Check whether --enable-crash-overrides was given.
5588if test "${enable_crash_overrides+set}" = set; then
5589  enableval=$enable_crash_overrides; case "$enableval" in
5590    yes) llvm_cv_enable_crash_overrides="yes" ;;
5591    no)  llvm_cv_enable_crash_overrides="no"  ;;
5592    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5593echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5594   { (exit 1); exit 1; }; } ;;
5595  esac
5596else
5597  llvm_cv_enable_crash_overrides="yes"
5598fi
5599
5600if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5601
5602cat >>confdefs.h <<\_ACEOF
5603#define ENABLE_CRASH_OVERRIDES 1
5604_ACEOF
5605
5606fi
5607
5608ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5609ALL_TARGETS=$ALL_TARGETS
5610
5611
5612TARGETS_TO_BUILD=""
5613# Check whether --enable-targets was given.
5614if test "${enable_targets+set}" = set; then
5615  enableval=$enable_targets;
5616else
5617  enableval=all
5618fi
5619
5620if test "$enableval" = host-only ; then
5621  enableval=host
5622fi
5623case "$enableval" in
5624  all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5625  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5626      case "$a_target" in
5627        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5628        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5629        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5630        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5631        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5632        arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5633        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5634        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5635        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5636        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5637        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5638        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5639        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5640        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5641        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5642        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5643        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5644        r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5645        host) case "$llvm_cv_target_arch" in
5646            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5647            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5648            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5649            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5650            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5651            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5652            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5653            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5654            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5655            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5657            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5658            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5659echo "$as_me: error: Can not set target to build" >&2;}
5660   { (exit 1); exit 1; }; } ;;
5661          esac ;;
5662        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5663echo "$as_me: error: Unrecognized target $a_target" >&2;}
5664   { (exit 1); exit 1; }; } ;;
5665      esac
5666  done
5667  ;;
5668esac
5669
5670# Check whether --enable-experimental-targets was given.
5671if test "${enable_experimental_targets+set}" = set; then
5672  enableval=$enable_experimental_targets;
5673else
5674  enableval=disable
5675fi
5676
5677
5678if test ${enableval} != "disable"
5679then
5680  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5681fi
5682
5683TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5684
5685
5686for a_target in $TARGETS_TO_BUILD; do
5687  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5688
5689cat >>confdefs.h <<_ACEOF
5690#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5691_ACEOF
5692
5693    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5694    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5695    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5696    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5697    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5698      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5699    fi
5700    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5701      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5702    fi
5703
5704cat >>confdefs.h <<_ACEOF
5705#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5706_ACEOF
5707
5708
5709cat >>confdefs.h <<_ACEOF
5710#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5711_ACEOF
5712
5713
5714cat >>confdefs.h <<_ACEOF
5715#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5716_ACEOF
5717
5718
5719cat >>confdefs.h <<_ACEOF
5720#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5721_ACEOF
5722
5723    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5724
5725cat >>confdefs.h <<_ACEOF
5726#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5727_ACEOF
5728
5729    fi
5730    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5731
5732cat >>confdefs.h <<_ACEOF
5733#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5734_ACEOF
5735
5736    fi
5737  fi
5738done
5739
5740LLVM_ENUM_TARGETS=""
5741LLVM_ENUM_ASM_PRINTERS=""
5742LLVM_ENUM_ASM_PARSERS=""
5743LLVM_ENUM_DISASSEMBLERS=""
5744for target_to_build in $TARGETS_TO_BUILD; do
5745  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5746  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5747    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5748  fi
5749  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5750    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5751  fi
5752  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5753    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5754  fi
5755done
5756
5757
5758
5759
5760
5761
5762# Check whether --with-optimize-option was given.
5763if test "${with_optimize_option+set}" = set; then
5764  withval=$with_optimize_option;
5765else
5766  withval=default
5767fi
5768
5769{ echo "$as_me:$LINENO: checking optimization flags" >&5
5770echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5771case "$withval" in
5772  default)
5773    case "$llvm_cv_os_type" in
5774    FreeBSD) optimize_option=-O2 ;;
5775    MingW) optimize_option=-O2 ;;
5776    *)     optimize_option=-O3 ;;
5777    esac ;;
5778  *) optimize_option="$withval" ;;
5779esac
5780OPTIMIZE_OPTION=$optimize_option
5781
5782{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5783echo "${ECHO_T}$optimize_option" >&6; }
5784
5785
5786# Check whether --with-extra-options was given.
5787if test "${with_extra_options+set}" = set; then
5788  withval=$with_extra_options;
5789else
5790  withval=default
5791fi
5792
5793case "$withval" in
5794  default) EXTRA_OPTIONS= ;;
5795  *) EXTRA_OPTIONS=$withval ;;
5796esac
5797EXTRA_OPTIONS=$EXTRA_OPTIONS
5798
5799
5800
5801# Check whether --with-extra-ld-options was given.
5802if test "${with_extra_ld_options+set}" = set; then
5803  withval=$with_extra_ld_options;
5804else
5805  withval=default
5806fi
5807
5808case "$withval" in
5809  default) EXTRA_LD_OPTIONS= ;;
5810  *) EXTRA_LD_OPTIONS=$withval ;;
5811esac
5812EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5813
5814
5815# Check whether --enable-bindings was given.
5816if test "${enable_bindings+set}" = set; then
5817  enableval=$enable_bindings;
5818else
5819  enableval=default
5820fi
5821
5822BINDINGS_TO_BUILD=""
5823case "$enableval" in
5824  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5825  all ) BINDINGS_TO_BUILD="ocaml" ;;
5826  none | no) BINDINGS_TO_BUILD="" ;;
5827  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5828      case "$a_binding" in
5829        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5830        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5831echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5832   { (exit 1); exit 1; }; } ;;
5833      esac
5834  done
5835  ;;
5836esac
5837
5838
5839# Check whether --with-ocaml-libdir was given.
5840if test "${with_ocaml_libdir+set}" = set; then
5841  withval=$with_ocaml_libdir;
5842else
5843  withval=auto
5844fi
5845
5846case "$withval" in
5847  auto) with_ocaml_libdir="$withval" ;;
5848  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5849  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5850echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5851   { (exit 1); exit 1; }; } ;;
5852esac
5853
5854
5855# Check whether --with-clang-srcdir was given.
5856if test "${with_clang_srcdir+set}" = set; then
5857  withval=$with_clang_srcdir;
5858else
5859  withval="-"
5860fi
5861
5862case "$withval" in
5863  -) clang_src_root="" ;;
5864  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5865  *) clang_src_root="$ac_pwd/$withval" ;;
5866esac
5867CLANG_SRC_ROOT=$clang_src_root
5868
5869
5870
5871# Check whether --with-clang-resource-dir was given.
5872if test "${with_clang_resource_dir+set}" = set; then
5873  withval=$with_clang_resource_dir;
5874else
5875  withval=""
5876fi
5877
5878
5879cat >>confdefs.h <<_ACEOF
5880#define CLANG_RESOURCE_DIR "$withval"
5881_ACEOF
5882
5883
5884
5885# Check whether --with-c-include-dirs was given.
5886if test "${with_c_include_dirs+set}" = set; then
5887  withval=$with_c_include_dirs;
5888else
5889  withval=""
5890fi
5891
5892
5893cat >>confdefs.h <<_ACEOF
5894#define C_INCLUDE_DIRS "$withval"
5895_ACEOF
5896
5897
5898# Clang normally uses the system c++ headers and libraries. With this option,
5899# clang will use the ones provided by a gcc installation instead. This option should
5900# be passed the same value that was used with --prefix when configuring gcc.
5901
5902# Check whether --with-gcc-toolchain was given.
5903if test "${with_gcc_toolchain+set}" = set; then
5904  withval=$with_gcc_toolchain;
5905else
5906  withval=""
5907fi
5908
5909
5910cat >>confdefs.h <<_ACEOF
5911#define GCC_INSTALL_PREFIX "$withval"
5912_ACEOF
5913
5914
5915
5916# Check whether --with-default-sysroot was given.
5917if test "${with_default_sysroot+set}" = set; then
5918  withval=$with_default_sysroot;
5919else
5920  withval=""
5921fi
5922
5923
5924cat >>confdefs.h <<_ACEOF
5925#define DEFAULT_SYSROOT "$withval"
5926_ACEOF
5927
5928
5929
5930# Check whether --with-binutils-include was given.
5931if test "${with_binutils_include+set}" = set; then
5932  withval=$with_binutils_include;
5933else
5934  withval=default
5935fi
5936
5937case "$withval" in
5938  default) WITH_BINUTILS_INCDIR=default ;;
5939  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5940  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5941echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5942   { (exit 1); exit 1; }; } ;;
5943esac
5944if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5945  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5946
5947  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5948     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5949     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5950echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5951   { (exit 1); exit 1; }; };
5952  fi
5953fi
5954
5955
5956# Check whether --with-bug-report-url was given.
5957if test "${with_bug_report_url+set}" = set; then
5958  withval=$with_bug_report_url;
5959else
5960  withval="http://llvm.org/bugs/"
5961fi
5962
5963
5964cat >>confdefs.h <<_ACEOF
5965#define BUG_REPORT_URL "$withval"
5966_ACEOF
5967
5968
5969# Check whether --enable-terminfo was given.
5970if test "${enable_terminfo+set}" = set; then
5971  enableval=$enable_terminfo; case "$enableval" in
5972    yes) llvm_cv_enable_terminfo="yes" ;;
5973    no)  llvm_cv_enable_terminfo="no"  ;;
5974    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5975echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5976   { (exit 1); exit 1; }; } ;;
5977  esac
5978else
5979  llvm_cv_enable_terminfo="yes"
5980fi
5981
5982case "$llvm_cv_enable_terminfo" in
5983  yes) ENABLE_TERMINFO=1
5984 ;;
5985  no)  ENABLE_TERMINFO=0
5986 ;;
5987esac
5988
5989# Check whether --enable-libedit was given.
5990if test "${enable_libedit+set}" = set; then
5991  enableval=$enable_libedit; case "$enableval" in
5992    yes) llvm_cv_enable_libedit="yes" ;;
5993    no)  llvm_cv_enable_libedit="no"  ;;
5994    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5995echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5996   { (exit 1); exit 1; }; } ;;
5997  esac
5998else
5999  llvm_cv_enable_libedit="yes"
6000fi
6001
6002
6003# Check whether --enable-libffi was given.
6004if test "${enable_libffi+set}" = set; then
6005  enableval=$enable_libffi; case "$enableval" in
6006    yes) llvm_cv_enable_libffi="yes" ;;
6007    no)  llvm_cv_enable_libffi="no"  ;;
6008    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6009echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6010   { (exit 1); exit 1; }; } ;;
6011  esac
6012else
6013  llvm_cv_enable_libffi=no
6014fi
6015
6016
6017
6018# Check whether --with-internal-prefix was given.
6019if test "${with_internal_prefix+set}" = set; then
6020  withval=$with_internal_prefix;
6021else
6022  withval=""
6023fi
6024
6025INTERNAL_PREFIX=$withval
6026
6027
6028
6029{ echo "$as_me:$LINENO: checking for GNU make" >&5
6030echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6031if test "${llvm_cv_gnu_make_command+set}" = set; then
6032  echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034  llvm_cv_gnu_make_command=''
6035 for a in "$MAKE" make gmake gnumake ; do
6036  if test -z "$a" ; then continue ; fi ;
6037  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6038  then
6039   llvm_cv_gnu_make_command=$a ;
6040   break;
6041  fi
6042 done
6043fi
6044{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6045echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6046 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6047   ifGNUmake='' ;
6048 else
6049   ifGNUmake='#' ;
6050   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6051echo "${ECHO_T}\"Not found\"" >&6; };
6052 fi
6053
6054
6055{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6056echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6057LN_S=$as_ln_s
6058if test "$LN_S" = "ln -s"; then
6059  { echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6; }
6061else
6062  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6063echo "${ECHO_T}no, using $LN_S" >&6; }
6064fi
6065
6066# Extract the first word of "nm", so it can be a program name with args.
6067set dummy nm; ac_word=$2
6068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070if test "${ac_cv_path_NM+set}" = set; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  case $NM in
6074  [\\/]* | ?:[\\/]*)
6075  ac_cv_path_NM="$NM" # Let the user override the test with a path.
6076  ;;
6077  *)
6078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081  IFS=$as_save_IFS
6082  test -z "$as_dir" && as_dir=.
6083  for ac_exec_ext in '' $ac_executable_extensions; do
6084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087    break 2
6088  fi
6089done
6090done
6091IFS=$as_save_IFS
6092
6093  test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6094  ;;
6095esac
6096fi
6097NM=$ac_cv_path_NM
6098if test -n "$NM"; then
6099  { echo "$as_me:$LINENO: result: $NM" >&5
6100echo "${ECHO_T}$NM" >&6; }
6101else
6102  { echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6; }
6104fi
6105
6106
6107# Extract the first word of "cmp", so it can be a program name with args.
6108set dummy cmp; ac_word=$2
6109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111if test "${ac_cv_path_CMP+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  case $CMP in
6115  [\\/]* | ?:[\\/]*)
6116  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6117  ;;
6118  *)
6119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122  IFS=$as_save_IFS
6123  test -z "$as_dir" && as_dir=.
6124  for ac_exec_ext in '' $ac_executable_extensions; do
6125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131done
6132IFS=$as_save_IFS
6133
6134  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6135  ;;
6136esac
6137fi
6138CMP=$ac_cv_path_CMP
6139if test -n "$CMP"; then
6140  { echo "$as_me:$LINENO: result: $CMP" >&5
6141echo "${ECHO_T}$CMP" >&6; }
6142else
6143  { echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6; }
6145fi
6146
6147
6148# Extract the first word of "cp", so it can be a program name with args.
6149set dummy cp; ac_word=$2
6150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152if test "${ac_cv_path_CP+set}" = set; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  case $CP in
6156  [\\/]* | ?:[\\/]*)
6157  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6158  ;;
6159  *)
6160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165  for ac_exec_ext in '' $ac_executable_extensions; do
6166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172done
6173IFS=$as_save_IFS
6174
6175  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6176  ;;
6177esac
6178fi
6179CP=$ac_cv_path_CP
6180if test -n "$CP"; then
6181  { echo "$as_me:$LINENO: result: $CP" >&5
6182echo "${ECHO_T}$CP" >&6; }
6183else
6184  { echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6; }
6186fi
6187
6188
6189# Extract the first word of "date", so it can be a program name with args.
6190set dummy date; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_path_DATE+set}" = set; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196  case $DATE in
6197  [\\/]* | ?:[\\/]*)
6198  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6199  ;;
6200  *)
6201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206  for ac_exec_ext in '' $ac_executable_extensions; do
6207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6217  ;;
6218esac
6219fi
6220DATE=$ac_cv_path_DATE
6221if test -n "$DATE"; then
6222  { echo "$as_me:$LINENO: result: $DATE" >&5
6223echo "${ECHO_T}$DATE" >&6; }
6224else
6225  { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230# Extract the first word of "find", so it can be a program name with args.
6231set dummy find; ac_word=$2
6232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_FIND+set}" = set; then
6235  echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237  case $FIND in
6238  [\\/]* | ?:[\\/]*)
6239  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6240  ;;
6241  *)
6242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  test -z "$as_dir" && as_dir=.
6247  for ac_exec_ext in '' $ac_executable_extensions; do
6248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251    break 2
6252  fi
6253done
6254done
6255IFS=$as_save_IFS
6256
6257  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6258  ;;
6259esac
6260fi
6261FIND=$ac_cv_path_FIND
6262if test -n "$FIND"; then
6263  { echo "$as_me:$LINENO: result: $FIND" >&5
6264echo "${ECHO_T}$FIND" >&6; }
6265else
6266  { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
6268fi
6269
6270
6271# Extract the first word of "grep", so it can be a program name with args.
6272set dummy grep; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_GREP+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278  case $GREP in
6279  [\\/]* | ?:[\\/]*)
6280  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6281  ;;
6282  *)
6283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288  for ac_exec_ext in '' $ac_executable_extensions; do
6289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6299  ;;
6300esac
6301fi
6302GREP=$ac_cv_path_GREP
6303if test -n "$GREP"; then
6304  { echo "$as_me:$LINENO: result: $GREP" >&5
6305echo "${ECHO_T}$GREP" >&6; }
6306else
6307  { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
6309fi
6310
6311
6312# Extract the first word of "mkdir", so it can be a program name with args.
6313set dummy mkdir; ac_word=$2
6314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_MKDIR+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  case $MKDIR in
6320  [\\/]* | ?:[\\/]*)
6321  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6322  ;;
6323  *)
6324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327  IFS=$as_save_IFS
6328  test -z "$as_dir" && as_dir=.
6329  for ac_exec_ext in '' $ac_executable_extensions; do
6330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6340  ;;
6341esac
6342fi
6343MKDIR=$ac_cv_path_MKDIR
6344if test -n "$MKDIR"; then
6345  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6346echo "${ECHO_T}$MKDIR" >&6; }
6347else
6348  { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
6350fi
6351
6352
6353# Extract the first word of "mv", so it can be a program name with args.
6354set dummy mv; ac_word=$2
6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_MV+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360  case $MV in
6361  [\\/]* | ?:[\\/]*)
6362  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6363  ;;
6364  *)
6365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  test -z "$as_dir" && as_dir=.
6370  for ac_exec_ext in '' $ac_executable_extensions; do
6371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374    break 2
6375  fi
6376done
6377done
6378IFS=$as_save_IFS
6379
6380  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6381  ;;
6382esac
6383fi
6384MV=$ac_cv_path_MV
6385if test -n "$MV"; then
6386  { echo "$as_me:$LINENO: result: $MV" >&5
6387echo "${ECHO_T}$MV" >&6; }
6388else
6389  { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
6391fi
6392
6393
6394if test -n "$ac_tool_prefix"; then
6395  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6396set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_RANLIB+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  if test -n "$RANLIB"; then
6403  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408  IFS=$as_save_IFS
6409  test -z "$as_dir" && as_dir=.
6410  for ac_exec_ext in '' $ac_executable_extensions; do
6411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414    break 2
6415  fi
6416done
6417done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422RANLIB=$ac_cv_prog_RANLIB
6423if test -n "$RANLIB"; then
6424  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6425echo "${ECHO_T}$RANLIB" >&6; }
6426else
6427  { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
6429fi
6430
6431
6432fi
6433if test -z "$ac_cv_prog_RANLIB"; then
6434  ac_ct_RANLIB=$RANLIB
6435  # Extract the first word of "ranlib", so it can be a program name with args.
6436set dummy ranlib; ac_word=$2
6437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6440  echo $ECHO_N "(cached) $ECHO_C" >&6
6441else
6442  if test -n "$ac_ct_RANLIB"; then
6443  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6444else
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448  IFS=$as_save_IFS
6449  test -z "$as_dir" && as_dir=.
6450  for ac_exec_ext in '' $ac_executable_extensions; do
6451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452    ac_cv_prog_ac_ct_RANLIB="ranlib"
6453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454    break 2
6455  fi
6456done
6457done
6458IFS=$as_save_IFS
6459
6460fi
6461fi
6462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6463if test -n "$ac_ct_RANLIB"; then
6464  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6465echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6466else
6467  { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
6469fi
6470
6471  if test "x$ac_ct_RANLIB" = x; then
6472    RANLIB=":"
6473  else
6474    case $cross_compiling:$ac_tool_warned in
6475yes:)
6476{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6477whose name does not start with the host triplet.  If you think this
6478configuration is useful to you, please write to autoconf@gnu.org." >&5
6479echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6480whose name does not start with the host triplet.  If you think this
6481configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6482ac_tool_warned=yes ;;
6483esac
6484    RANLIB=$ac_ct_RANLIB
6485  fi
6486else
6487  RANLIB="$ac_cv_prog_RANLIB"
6488fi
6489
6490if test -n "$ac_tool_prefix"; then
6491  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492set dummy ${ac_tool_prefix}ar; ac_word=$2
6493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495if test "${ac_cv_prog_AR+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  if test -n "$AR"; then
6499  ac_cv_prog_AR="$AR" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506  for ac_exec_ext in '' $ac_executable_extensions; do
6507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6508    ac_cv_prog_AR="${ac_tool_prefix}ar"
6509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518AR=$ac_cv_prog_AR
6519if test -n "$AR"; then
6520  { echo "$as_me:$LINENO: result: $AR" >&5
6521echo "${ECHO_T}$AR" >&6; }
6522else
6523  { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
6525fi
6526
6527
6528fi
6529if test -z "$ac_cv_prog_AR"; then
6530  ac_ct_AR=$AR
6531  # Extract the first word of "ar", so it can be a program name with args.
6532set dummy ar; ac_word=$2
6533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  if test -n "$ac_ct_AR"; then
6539  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544  IFS=$as_save_IFS
6545  test -z "$as_dir" && as_dir=.
6546  for ac_exec_ext in '' $ac_executable_extensions; do
6547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548    ac_cv_prog_ac_ct_AR="ar"
6549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550    break 2
6551  fi
6552done
6553done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559if test -n "$ac_ct_AR"; then
6560  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6561echo "${ECHO_T}$ac_ct_AR" >&6; }
6562else
6563  { echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6; }
6565fi
6566
6567  if test "x$ac_ct_AR" = x; then
6568    AR="false"
6569  else
6570    case $cross_compiling:$ac_tool_warned in
6571yes:)
6572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6573whose name does not start with the host triplet.  If you think this
6574configuration is useful to you, please write to autoconf@gnu.org." >&5
6575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6576whose name does not start with the host triplet.  If you think this
6577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580    AR=$ac_ct_AR
6581  fi
6582else
6583  AR="$ac_cv_prog_AR"
6584fi
6585
6586# Extract the first word of "rm", so it can be a program name with args.
6587set dummy rm; ac_word=$2
6588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590if test "${ac_cv_path_RM+set}" = set; then
6591  echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593  case $RM in
6594  [\\/]* | ?:[\\/]*)
6595  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6596  ;;
6597  *)
6598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601  IFS=$as_save_IFS
6602  test -z "$as_dir" && as_dir=.
6603  for ac_exec_ext in '' $ac_executable_extensions; do
6604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607    break 2
6608  fi
6609done
6610done
6611IFS=$as_save_IFS
6612
6613  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6614  ;;
6615esac
6616fi
6617RM=$ac_cv_path_RM
6618if test -n "$RM"; then
6619  { echo "$as_me:$LINENO: result: $RM" >&5
6620echo "${ECHO_T}$RM" >&6; }
6621else
6622  { echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6; }
6624fi
6625
6626
6627# Extract the first word of "sed", so it can be a program name with args.
6628set dummy sed; ac_word=$2
6629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631if test "${ac_cv_path_SED+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  case $SED in
6635  [\\/]* | ?:[\\/]*)
6636  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6637  ;;
6638  *)
6639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642  IFS=$as_save_IFS
6643  test -z "$as_dir" && as_dir=.
6644  for ac_exec_ext in '' $ac_executable_extensions; do
6645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651done
6652IFS=$as_save_IFS
6653
6654  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6655  ;;
6656esac
6657fi
6658SED=$ac_cv_path_SED
6659if test -n "$SED"; then
6660  { echo "$as_me:$LINENO: result: $SED" >&5
6661echo "${ECHO_T}$SED" >&6; }
6662else
6663  { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
6665fi
6666
6667
6668# Extract the first word of "tar", so it can be a program name with args.
6669set dummy tar; ac_word=$2
6670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672if test "${ac_cv_path_TAR+set}" = set; then
6673  echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675  case $TAR in
6676  [\\/]* | ?:[\\/]*)
6677  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6678  ;;
6679  *)
6680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683  IFS=$as_save_IFS
6684  test -z "$as_dir" && as_dir=.
6685  for ac_exec_ext in '' $ac_executable_extensions; do
6686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689    break 2
6690  fi
6691done
6692done
6693IFS=$as_save_IFS
6694
6695  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6696  ;;
6697esac
6698fi
6699TAR=$ac_cv_path_TAR
6700if test -n "$TAR"; then
6701  { echo "$as_me:$LINENO: result: $TAR" >&5
6702echo "${ECHO_T}$TAR" >&6; }
6703else
6704  { echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6; }
6706fi
6707
6708
6709# Extract the first word of "pwd", so it can be a program name with args.
6710set dummy pwd; ac_word=$2
6711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_BINPWD+set}" = set; then
6714  echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716  case $BINPWD in
6717  [\\/]* | ?:[\\/]*)
6718  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6719  ;;
6720  *)
6721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  test -z "$as_dir" && as_dir=.
6726  for ac_exec_ext in '' $ac_executable_extensions; do
6727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733done
6734IFS=$as_save_IFS
6735
6736  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6737  ;;
6738esac
6739fi
6740BINPWD=$ac_cv_path_BINPWD
6741if test -n "$BINPWD"; then
6742  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6743echo "${ECHO_T}$BINPWD" >&6; }
6744else
6745  { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
6747fi
6748
6749
6750
6751# Extract the first word of "dot", so it can be a program name with args.
6752set dummy dot; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_DOT+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  case $DOT in
6759  [\\/]* | ?:[\\/]*)
6760  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6761  ;;
6762  *)
6763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768  for ac_exec_ext in '' $ac_executable_extensions; do
6769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6779  ;;
6780esac
6781fi
6782DOT=$ac_cv_path_DOT
6783if test -n "$DOT"; then
6784  { echo "$as_me:$LINENO: result: $DOT" >&5
6785echo "${ECHO_T}$DOT" >&6; }
6786else
6787  { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
6789fi
6790
6791
6792if test "$DOT" != "echo dot" ; then
6793
6794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_DOT 1
6796_ACEOF
6797
6798    if test "$llvm_cv_os_type" = "MingW" ; then
6799    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800  fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6804_ACEOF
6805
6806fi
6807
6808# Find a good install program.  We prefer a C program (faster),
6809# so one script is as good as another.  But avoid the broken or
6810# incompatible versions:
6811# SysV /etc/install, /usr/sbin/install
6812# SunOS /usr/etc/install
6813# IRIX /sbin/install
6814# AIX /bin/install
6815# AmigaOS /C/install, which installs bootblocks on floppy discs
6816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819# OS/2's system install, which has a completely different semantic
6820# ./install, which can be erroneously created by make from ./install.sh.
6821{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6823if test -z "$INSTALL"; then
6824if test "${ac_cv_path_install+set}" = set; then
6825  echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832  # Account for people who put trailing slashes in PATH elements.
6833case $as_dir/ in
6834  ./ | .// | /cC/* | \
6835  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6836  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6837  /usr/ucb/* ) ;;
6838  *)
6839    # OSF1 and SCO ODT 3.0 have their own names for install.
6840    # Don't use installbsd from OSF since it installs stuff as root
6841    # by default.
6842    for ac_prog in ginstall scoinst install; do
6843      for ac_exec_ext in '' $ac_executable_extensions; do
6844	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6845	  if test $ac_prog = install &&
6846	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847	    # AIX install.  It has an incompatible calling convention.
6848	    :
6849	  elif test $ac_prog = install &&
6850	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851	    # program-specific install script used by HP pwplus--don't use.
6852	    :
6853	  else
6854	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6855	    break 3
6856	  fi
6857	fi
6858      done
6859    done
6860    ;;
6861esac
6862done
6863IFS=$as_save_IFS
6864
6865
6866fi
6867  if test "${ac_cv_path_install+set}" = set; then
6868    INSTALL=$ac_cv_path_install
6869  else
6870    # As a last resort, use the slow shell script.  Don't cache a
6871    # value for INSTALL within a source directory, because that will
6872    # break other packages using the cache if that directory is
6873    # removed, or if the value is a relative name.
6874    INSTALL=$ac_install_sh
6875  fi
6876fi
6877{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6878echo "${ECHO_T}$INSTALL" >&6; }
6879
6880# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881# It thinks the first close brace ends the variable substitution.
6882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6883
6884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6885
6886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6887
6888case "$INSTALL" in
6889 [\\/$]* | ?:[\\/]* ) ;;
6890 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6891esac
6892
6893# Extract the first word of "bzip2", so it can be a program name with args.
6894set dummy bzip2; ac_word=$2
6895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897if test "${ac_cv_path_BZIP2+set}" = set; then
6898  echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900  case $BZIP2 in
6901  [\\/]* | ?:[\\/]*)
6902  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6903  ;;
6904  *)
6905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910  for ac_exec_ext in '' $ac_executable_extensions; do
6911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917done
6918IFS=$as_save_IFS
6919
6920  ;;
6921esac
6922fi
6923BZIP2=$ac_cv_path_BZIP2
6924if test -n "$BZIP2"; then
6925  { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926echo "${ECHO_T}$BZIP2" >&6; }
6927else
6928  { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
6930fi
6931
6932
6933# Extract the first word of "cat", so it can be a program name with args.
6934set dummy cat; ac_word=$2
6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_CAT+set}" = set; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940  case $CAT in
6941  [\\/]* | ?:[\\/]*)
6942  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6943  ;;
6944  *)
6945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950  for ac_exec_ext in '' $ac_executable_extensions; do
6951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960  ;;
6961esac
6962fi
6963CAT=$ac_cv_path_CAT
6964if test -n "$CAT"; then
6965  { echo "$as_me:$LINENO: result: $CAT" >&5
6966echo "${ECHO_T}$CAT" >&6; }
6967else
6968  { echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6; }
6970fi
6971
6972
6973# Extract the first word of "doxygen", so it can be a program name with args.
6974set dummy doxygen; ac_word=$2
6975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978  echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980  case $DOXYGEN in
6981  [\\/]* | ?:[\\/]*)
6982  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6983  ;;
6984  *)
6985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990  for ac_exec_ext in '' $ac_executable_extensions; do
6991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997done
6998IFS=$as_save_IFS
6999
7000  ;;
7001esac
7002fi
7003DOXYGEN=$ac_cv_path_DOXYGEN
7004if test -n "$DOXYGEN"; then
7005  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006echo "${ECHO_T}$DOXYGEN" >&6; }
7007else
7008  { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
7010fi
7011
7012
7013# Extract the first word of "groff", so it can be a program name with args.
7014set dummy groff; ac_word=$2
7015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017if test "${ac_cv_path_GROFF+set}" = set; then
7018  echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020  case $GROFF in
7021  [\\/]* | ?:[\\/]*)
7022  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7023  ;;
7024  *)
7025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028  IFS=$as_save_IFS
7029  test -z "$as_dir" && as_dir=.
7030  for ac_exec_ext in '' $ac_executable_extensions; do
7031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034    break 2
7035  fi
7036done
7037done
7038IFS=$as_save_IFS
7039
7040  ;;
7041esac
7042fi
7043GROFF=$ac_cv_path_GROFF
7044if test -n "$GROFF"; then
7045  { echo "$as_me:$LINENO: result: $GROFF" >&5
7046echo "${ECHO_T}$GROFF" >&6; }
7047else
7048  { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
7053# Extract the first word of "gzip", so it can be a program name with args.
7054set dummy gzip; ac_word=$2
7055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057if test "${ac_cv_path_GZIPBIN+set}" = set; then
7058  echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060  case $GZIPBIN in
7061  [\\/]* | ?:[\\/]*)
7062  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7063  ;;
7064  *)
7065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070  for ac_exec_ext in '' $ac_executable_extensions; do
7071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077done
7078IFS=$as_save_IFS
7079
7080  ;;
7081esac
7082fi
7083GZIPBIN=$ac_cv_path_GZIPBIN
7084if test -n "$GZIPBIN"; then
7085  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086echo "${ECHO_T}$GZIPBIN" >&6; }
7087else
7088  { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093# Extract the first word of "pdfroff", so it can be a program name with args.
7094set dummy pdfroff; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_PDFROFF+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  case $PDFROFF in
7101  [\\/]* | ?:[\\/]*)
7102  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7103  ;;
7104  *)
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110  for ac_exec_ext in '' $ac_executable_extensions; do
7111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120  ;;
7121esac
7122fi
7123PDFROFF=$ac_cv_path_PDFROFF
7124if test -n "$PDFROFF"; then
7125  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7126echo "${ECHO_T}$PDFROFF" >&6; }
7127else
7128  { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133# Extract the first word of "zip", so it can be a program name with args.
7134set dummy zip; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_ZIP+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  case $ZIP in
7141  [\\/]* | ?:[\\/]*)
7142  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7143  ;;
7144  *)
7145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160  ;;
7161esac
7162fi
7163ZIP=$ac_cv_path_ZIP
7164if test -n "$ZIP"; then
7165  { echo "$as_me:$LINENO: result: $ZIP" >&5
7166echo "${ECHO_T}$ZIP" >&6; }
7167else
7168  { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
7170fi
7171
7172
7173# Extract the first word of "go", so it can be a program name with args.
7174set dummy go; ac_word=$2
7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_path_GO+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180  case $GO in
7181  [\\/]* | ?:[\\/]*)
7182  ac_cv_path_GO="$GO" # Let the user override the test with a path.
7183  ;;
7184  *)
7185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190  for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200  ;;
7201esac
7202fi
7203GO=$ac_cv_path_GO
7204if test -n "$GO"; then
7205  { echo "$as_me:$LINENO: result: $GO" >&5
7206echo "${ECHO_T}$GO" >&6; }
7207else
7208  { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
7210fi
7211
7212
7213for ac_prog in ocamlfind
7214do
7215  # Extract the first word of "$ac_prog", so it can be a program name with args.
7216set dummy $ac_prog; ac_word=$2
7217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7220  echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222  case $OCAMLFIND in
7223  [\\/]* | ?:[\\/]*)
7224  ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7225  ;;
7226  *)
7227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230  IFS=$as_save_IFS
7231  test -z "$as_dir" && as_dir=.
7232  for ac_exec_ext in '' $ac_executable_extensions; do
7233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234    ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236    break 2
7237  fi
7238done
7239done
7240IFS=$as_save_IFS
7241
7242  ;;
7243esac
7244fi
7245OCAMLFIND=$ac_cv_path_OCAMLFIND
7246if test -n "$OCAMLFIND"; then
7247  { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7248echo "${ECHO_T}$OCAMLFIND" >&6; }
7249else
7250  { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
7252fi
7253
7254
7255  test -n "$OCAMLFIND" && break
7256done
7257
7258for ac_prog in gas as
7259do
7260  # Extract the first word of "$ac_prog", so it can be a program name with args.
7261set dummy $ac_prog; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_GAS+set}" = set; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  case $GAS in
7268  [\\/]* | ?:[\\/]*)
7269  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7270  ;;
7271  *)
7272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277  for ac_exec_ext in '' $ac_executable_extensions; do
7278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287  ;;
7288esac
7289fi
7290GAS=$ac_cv_path_GAS
7291if test -n "$GAS"; then
7292  { echo "$as_me:$LINENO: result: $GAS" >&5
7293echo "${ECHO_T}$GAS" >&6; }
7294else
7295  { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300  test -n "$GAS" && break
7301done
7302
7303
7304{ echo "$as_me:$LINENO: checking for linker version" >&5
7305echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7306if test "${llvm_cv_link_version+set}" = set; then
7307  echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309
7310   version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7311
7312   # Check for ld64.
7313   if (echo "$version_string" | grep -q "ld64"); then
7314     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7315   else
7316     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7317   fi
7318
7319fi
7320{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7321echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7322
7323cat >>confdefs.h <<_ACEOF
7324#define HOST_LINK_VERSION "$llvm_cv_link_version"
7325_ACEOF
7326
7327
7328
7329
7330{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7331echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7332if test "${llvm_cv_link_use_r+set}" = set; then
7333  echo $ECHO_N "(cached) $ECHO_C" >&6
7334else
7335   ac_ext=c
7336ac_cpp='$CPP $CPPFLAGS'
7337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340
7341  oldcflags="$CFLAGS"
7342  CFLAGS="$CFLAGS -Wl,-R."
7343  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349
7350int
7351main ()
7352{
7353
7354  ;
7355  return 0;
7356}
7357_ACEOF
7358rm -f conftest.$ac_objext conftest$ac_exeext
7359if { (ac_try="$ac_link"
7360case "(($ac_try" in
7361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362  *) ac_try_echo=$ac_try;;
7363esac
7364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365  (eval "$ac_link") 2>conftest.er1
7366  ac_status=$?
7367  grep -v '^ *+' conftest.er1 >conftest.err
7368  rm -f conftest.er1
7369  cat conftest.err >&5
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); } &&
7372	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373  { (case "(($ac_try" in
7374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375  *) ac_try_echo=$ac_try;;
7376esac
7377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378  (eval "$ac_try") 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); }; } &&
7382	 { ac_try='test -s conftest$ac_exeext'
7383  { (case "(($ac_try" in
7384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385  *) ac_try_echo=$ac_try;;
7386esac
7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388  (eval "$ac_try") 2>&5
7389  ac_status=$?
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); }; }; then
7392  llvm_cv_link_use_r=yes
7393else
7394  echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397	llvm_cv_link_use_r=no
7398fi
7399
7400rm -f core conftest.err conftest.$ac_objext \
7401      conftest$ac_exeext conftest.$ac_ext
7402  CFLAGS="$oldcflags"
7403  ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410fi
7411{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7412echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7413if test "$llvm_cv_link_use_r" = yes ; then
7414
7415cat >>confdefs.h <<\_ACEOF
7416#define HAVE_LINK_R 1
7417_ACEOF
7418
7419  fi
7420
7421
7422{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7423echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7424if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427   ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433  oldcflags="$CFLAGS"
7434  CFLAGS="$CFLAGS -rdynamic"
7435  cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h.  */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h.  */
7441
7442int
7443main ()
7444{
7445
7446  ;
7447  return 0;
7448}
7449_ACEOF
7450rm -f conftest.$ac_objext conftest$ac_exeext
7451if { (ac_try="$ac_link"
7452case "(($ac_try" in
7453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454  *) ac_try_echo=$ac_try;;
7455esac
7456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457  (eval "$ac_link") 2>conftest.er1
7458  ac_status=$?
7459  grep -v '^ *+' conftest.er1 >conftest.err
7460  rm -f conftest.er1
7461  cat conftest.err >&5
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); } &&
7464	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465  { (case "(($ac_try" in
7466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467  *) ac_try_echo=$ac_try;;
7468esac
7469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470  (eval "$ac_try") 2>&5
7471  ac_status=$?
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); }; } &&
7474	 { ac_try='test -s conftest$ac_exeext'
7475  { (case "(($ac_try" in
7476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477  *) ac_try_echo=$ac_try;;
7478esac
7479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480  (eval "$ac_try") 2>&5
7481  ac_status=$?
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); }; }; then
7484  llvm_cv_link_use_export_dynamic=yes
7485else
7486  echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489	llvm_cv_link_use_export_dynamic=no
7490fi
7491
7492rm -f core conftest.err conftest.$ac_objext \
7493      conftest$ac_exeext conftest.$ac_ext
7494  CFLAGS="$oldcflags"
7495  ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502fi
7503{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7504echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7505if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7506
7507cat >>confdefs.h <<\_ACEOF
7508#define HAVE_LINK_EXPORT_DYNAMIC 1
7509_ACEOF
7510
7511  fi
7512
7513
7514{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7515echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7516if test "${llvm_cv_link_use_version_script+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519   ac_ext=c
7520ac_cpp='$CPP $CPPFLAGS'
7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
7525  oldcflags="$CFLAGS"
7526
7527  # The following code is from the autoconf manual,
7528  # "11.13: Limitations of Usual Tools".
7529  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7530  # Use mktemp if possible; otherwise fall back on mkdir,
7531  # with $RANDOM to make collisions less likely.
7532  : ${TMPDIR=/tmp}
7533  {
7534    tmp=`
7535      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7536    ` &&
7537    test -n "$tmp" && test -d "$tmp"
7538  } || {
7539    tmp=$TMPDIR/foo$$-$RANDOM
7540    (umask 077 && mkdir "$tmp")
7541  } || exit $?
7542
7543  echo "{" > "$tmp/export.map"
7544  echo "  global: main;" >> "$tmp/export.map"
7545  echo "  local: *;" >> "$tmp/export.map"
7546  echo "};" >> "$tmp/export.map"
7547
7548  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7549  cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h.  */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h.  */
7555
7556int
7557main ()
7558{
7559
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
7565if { (ac_try="$ac_link"
7566case "(($ac_try" in
7567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568  *) ac_try_echo=$ac_try;;
7569esac
7570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571  (eval "$ac_link") 2>conftest.er1
7572  ac_status=$?
7573  grep -v '^ *+' conftest.er1 >conftest.err
7574  rm -f conftest.er1
7575  cat conftest.err >&5
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); } &&
7578	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7579  { (case "(($ac_try" in
7580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581  *) ac_try_echo=$ac_try;;
7582esac
7583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584  (eval "$ac_try") 2>&5
7585  ac_status=$?
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); }; } &&
7588	 { ac_try='test -s conftest$ac_exeext'
7589  { (case "(($ac_try" in
7590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591  *) ac_try_echo=$ac_try;;
7592esac
7593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594  (eval "$ac_try") 2>&5
7595  ac_status=$?
7596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597  (exit $ac_status); }; }; then
7598  llvm_cv_link_use_version_script=yes
7599else
7600  echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603	llvm_cv_link_use_version_script=no
7604fi
7605
7606rm -f core conftest.err conftest.$ac_objext \
7607      conftest$ac_exeext conftest.$ac_ext
7608  rm "$tmp/export.map"
7609  rmdir "$tmp"
7610  CFLAGS="$oldcflags"
7611  ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617
7618fi
7619{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7620echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7621if test "$llvm_cv_link_use_version_script" = yes ; then
7622  HAVE_LINK_VERSION_SCRIPT=1
7623
7624  fi
7625
7626
7627
7628{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7629echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7630if test "${ac_cv_path_GREP+set}" = set; then
7631  echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633  # Extract the first word of "grep ggrep" to use in msg output
7634if test -z "$GREP"; then
7635set dummy grep ggrep; ac_prog_name=$2
7636if test "${ac_cv_path_GREP+set}" = set; then
7637  echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639  ac_path_GREP_found=false
7640# Loop through the user's path and test for each of PROGNAME-LIST
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646  for ac_prog in grep ggrep; do
7647  for ac_exec_ext in '' $ac_executable_extensions; do
7648    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7649    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7650    # Check for GNU ac_path_GREP and select it if it is found.
7651  # Check for GNU $ac_path_GREP
7652case `"$ac_path_GREP" --version 2>&1` in
7653*GNU*)
7654  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7655*)
7656  ac_count=0
7657  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7658  while :
7659  do
7660    cat "conftest.in" "conftest.in" >"conftest.tmp"
7661    mv "conftest.tmp" "conftest.in"
7662    cp "conftest.in" "conftest.nl"
7663    echo 'GREP' >> "conftest.nl"
7664    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7665    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7666    ac_count=`expr $ac_count + 1`
7667    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7668      # Best one so far, save it but keep looking for a better one
7669      ac_cv_path_GREP="$ac_path_GREP"
7670      ac_path_GREP_max=$ac_count
7671    fi
7672    # 10*(2^10) chars as input seems more than enough
7673    test $ac_count -gt 10 && break
7674  done
7675  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7676esac
7677
7678
7679    $ac_path_GREP_found && break 3
7680  done
7681done
7682
7683done
7684IFS=$as_save_IFS
7685
7686
7687fi
7688
7689GREP="$ac_cv_path_GREP"
7690if test -z "$GREP"; then
7691  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7692echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7693   { (exit 1); exit 1; }; }
7694fi
7695
7696else
7697  ac_cv_path_GREP=$GREP
7698fi
7699
7700
7701fi
7702{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7703echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7704 GREP="$ac_cv_path_GREP"
7705
7706
7707{ echo "$as_me:$LINENO: checking for egrep" >&5
7708echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7709if test "${ac_cv_path_EGREP+set}" = set; then
7710  echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7713   then ac_cv_path_EGREP="$GREP -E"
7714   else
7715     # Extract the first word of "egrep" to use in msg output
7716if test -z "$EGREP"; then
7717set dummy egrep; ac_prog_name=$2
7718if test "${ac_cv_path_EGREP+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  ac_path_EGREP_found=false
7722# Loop through the user's path and test for each of PROGNAME-LIST
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728  for ac_prog in egrep; do
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7731    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7732    # Check for GNU ac_path_EGREP and select it if it is found.
7733  # Check for GNU $ac_path_EGREP
7734case `"$ac_path_EGREP" --version 2>&1` in
7735*GNU*)
7736  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7737*)
7738  ac_count=0
7739  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7740  while :
7741  do
7742    cat "conftest.in" "conftest.in" >"conftest.tmp"
7743    mv "conftest.tmp" "conftest.in"
7744    cp "conftest.in" "conftest.nl"
7745    echo 'EGREP' >> "conftest.nl"
7746    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7747    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7748    ac_count=`expr $ac_count + 1`
7749    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7750      # Best one so far, save it but keep looking for a better one
7751      ac_cv_path_EGREP="$ac_path_EGREP"
7752      ac_path_EGREP_max=$ac_count
7753    fi
7754    # 10*(2^10) chars as input seems more than enough
7755    test $ac_count -gt 10 && break
7756  done
7757  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7758esac
7759
7760
7761    $ac_path_EGREP_found && break 3
7762  done
7763done
7764
7765done
7766IFS=$as_save_IFS
7767
7768
7769fi
7770
7771EGREP="$ac_cv_path_EGREP"
7772if test -z "$EGREP"; then
7773  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7775   { (exit 1); exit 1; }; }
7776fi
7777
7778else
7779  ac_cv_path_EGREP=$EGREP
7780fi
7781
7782
7783   fi
7784fi
7785{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7786echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7787 EGREP="$ac_cv_path_EGREP"
7788
7789
7790{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7792if test "${ac_cv_header_stdc+set}" = set; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h.  */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h.  */
7801#include <stdlib.h>
7802#include <stdarg.h>
7803#include <string.h>
7804#include <float.h>
7805
7806int
7807main ()
7808{
7809
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext
7815if { (ac_try="$ac_compile"
7816case "(($ac_try" in
7817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818  *) ac_try_echo=$ac_try;;
7819esac
7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821  (eval "$ac_compile") 2>conftest.er1
7822  ac_status=$?
7823  grep -v '^ *+' conftest.er1 >conftest.err
7824  rm -f conftest.er1
7825  cat conftest.err >&5
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); } &&
7828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829  { (case "(($ac_try" in
7830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831  *) ac_try_echo=$ac_try;;
7832esac
7833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834  (eval "$ac_try") 2>&5
7835  ac_status=$?
7836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837  (exit $ac_status); }; } &&
7838	 { ac_try='test -s conftest.$ac_objext'
7839  { (case "(($ac_try" in
7840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841  *) ac_try_echo=$ac_try;;
7842esac
7843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844  (eval "$ac_try") 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; }; then
7848  ac_cv_header_stdc=yes
7849else
7850  echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853	ac_cv_header_stdc=no
7854fi
7855
7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857
7858if test $ac_cv_header_stdc = yes; then
7859  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7860  cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h.  */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h.  */
7866#include <string.h>
7867
7868_ACEOF
7869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7870  $EGREP "memchr" >/dev/null 2>&1; then
7871  :
7872else
7873  ac_cv_header_stdc=no
7874fi
7875rm -f conftest*
7876
7877fi
7878
7879if test $ac_cv_header_stdc = yes; then
7880  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7881  cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h.  */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h.  */
7887#include <stdlib.h>
7888
7889_ACEOF
7890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891  $EGREP "free" >/dev/null 2>&1; then
7892  :
7893else
7894  ac_cv_header_stdc=no
7895fi
7896rm -f conftest*
7897
7898fi
7899
7900if test $ac_cv_header_stdc = yes; then
7901  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7902  if test "$cross_compiling" = yes; then
7903  :
7904else
7905  cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h.  */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h.  */
7911#include <ctype.h>
7912#include <stdlib.h>
7913#if ((' ' & 0x0FF) == 0x020)
7914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7916#else
7917# define ISLOWER(c) \
7918		   (('a' <= (c) && (c) <= 'i') \
7919		     || ('j' <= (c) && (c) <= 'r') \
7920		     || ('s' <= (c) && (c) <= 'z'))
7921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7922#endif
7923
7924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925int
7926main ()
7927{
7928  int i;
7929  for (i = 0; i < 256; i++)
7930    if (XOR (islower (i), ISLOWER (i))
7931	|| toupper (i) != TOUPPER (i))
7932      return 2;
7933  return 0;
7934}
7935_ACEOF
7936rm -f conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940  *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943  (eval "$ac_link") 2>&5
7944  ac_status=$?
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7947  { (case "(($ac_try" in
7948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949  *) ac_try_echo=$ac_try;;
7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952  (eval "$ac_try") 2>&5
7953  ac_status=$?
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); }; }; then
7956  :
7957else
7958  echo "$as_me: program exited with status $ac_status" >&5
7959echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962( exit $ac_status )
7963ac_cv_header_stdc=no
7964fi
7965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7966fi
7967
7968
7969fi
7970fi
7971{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7972echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7973if test $ac_cv_header_stdc = yes; then
7974
7975cat >>confdefs.h <<\_ACEOF
7976#define STDC_HEADERS 1
7977_ACEOF
7978
7979fi
7980
7981# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7992		  inttypes.h stdint.h unistd.h
7993do
7994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  cat >conftest.$ac_ext <<_ACEOF
8001/* confdefs.h.  */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
8005/* end confdefs.h.  */
8006$ac_includes_default
8007
8008#include <$ac_header>
8009_ACEOF
8010rm -f conftest.$ac_objext
8011if { (ac_try="$ac_compile"
8012case "(($ac_try" in
8013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014  *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017  (eval "$ac_compile") 2>conftest.er1
8018  ac_status=$?
8019  grep -v '^ *+' conftest.er1 >conftest.err
8020  rm -f conftest.er1
8021  cat conftest.err >&5
8022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023  (exit $ac_status); } &&
8024	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025  { (case "(($ac_try" in
8026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027  *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030  (eval "$ac_try") 2>&5
8031  ac_status=$?
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); }; } &&
8034	 { ac_try='test -s conftest.$ac_objext'
8035  { (case "(($ac_try" in
8036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037  *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040  (eval "$ac_try") 2>&5
8041  ac_status=$?
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); }; }; then
8044  eval "$as_ac_Header=yes"
8045else
8046  echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049	eval "$as_ac_Header=no"
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053fi
8054ac_res=`eval echo '${'$as_ac_Header'}'`
8055	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8056echo "${ECHO_T}$ac_res" >&6; }
8057if test `eval echo '${'$as_ac_Header'}'` = yes; then
8058  cat >>confdefs.h <<_ACEOF
8059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060_ACEOF
8061
8062fi
8063
8064done
8065
8066
8067
8068for ac_header in errno.h
8069do
8070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8072  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8075  echo $ECHO_N "(cached) $ECHO_C" >&6
8076fi
8077ac_res=`eval echo '${'$as_ac_Header'}'`
8078	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8079echo "${ECHO_T}$ac_res" >&6; }
8080else
8081  # Is the header compilable?
8082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h.  */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h.  */
8090$ac_includes_default
8091#include <$ac_header>
8092_ACEOF
8093rm -f conftest.$ac_objext
8094if { (ac_try="$ac_compile"
8095case "(($ac_try" in
8096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097  *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100  (eval "$ac_compile") 2>conftest.er1
8101  ac_status=$?
8102  grep -v '^ *+' conftest.er1 >conftest.err
8103  rm -f conftest.er1
8104  cat conftest.err >&5
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); } &&
8107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108  { (case "(($ac_try" in
8109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110  *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113  (eval "$ac_try") 2>&5
8114  ac_status=$?
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); }; } &&
8117	 { ac_try='test -s conftest.$ac_objext'
8118  { (case "(($ac_try" in
8119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120  *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123  (eval "$ac_try") 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; }; then
8127  ac_header_compiler=yes
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132	ac_header_compiler=no
8133fi
8134
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137echo "${ECHO_T}$ac_header_compiler" >&6; }
8138
8139# Is the header present?
8140{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h.  */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h.  */
8148#include <$ac_header>
8149_ACEOF
8150if { (ac_try="$ac_cpp conftest.$ac_ext"
8151case "(($ac_try" in
8152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153  *) ac_try_echo=$ac_try;;
8154esac
8155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8157  ac_status=$?
8158  grep -v '^ *+' conftest.er1 >conftest.err
8159  rm -f conftest.er1
8160  cat conftest.err >&5
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); } >/dev/null; then
8163  if test -s conftest.err; then
8164    ac_cpp_err=$ac_c_preproc_warn_flag
8165    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8166  else
8167    ac_cpp_err=
8168  fi
8169else
8170  ac_cpp_err=yes
8171fi
8172if test -z "$ac_cpp_err"; then
8173  ac_header_preproc=yes
8174else
8175  echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178  ac_header_preproc=no
8179fi
8180
8181rm -f conftest.err conftest.$ac_ext
8182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183echo "${ECHO_T}$ac_header_preproc" >&6; }
8184
8185# So?  What about this header?
8186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8187  yes:no: )
8188    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8192    ac_header_preproc=yes
8193    ;;
8194  no:yes:* )
8195    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8197    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8198echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8199    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8201    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8202echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8205    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207    ( cat <<\_ASBOX
8208## ------------------------------------ ##
8209## Report this to http://llvm.org/bugs/ ##
8210## ------------------------------------ ##
8211_ASBOX
8212     ) | sed "s/^/$as_me: WARNING:     /" >&2
8213    ;;
8214esac
8215{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220  eval "$as_ac_Header=\$ac_header_preproc"
8221fi
8222ac_res=`eval echo '${'$as_ac_Header'}'`
8223	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8224echo "${ECHO_T}$ac_res" >&6; }
8225
8226fi
8227if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228  cat >>confdefs.h <<_ACEOF
8229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230_ACEOF
8231
8232fi
8233
8234done
8235
8236
8237case "$llvm_cv_os_type" in
8238  Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8239  Darwin) llvm_shlib_ext=.dylib ;;
8240  *) llvm_shlib_ext=.so ;;
8241esac
8242
8243
8244cat >>confdefs.h <<_ACEOF
8245#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8246_ACEOF
8247
8248
8249{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8250echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8251
8252ICC=no
8253IXX=no
8254case $CC in
8255  icc*|icpc*)
8256    ICC=yes
8257    IXX=yes
8258    ;;
8259   *)
8260    ;;
8261esac
8262
8263if test "$GCC" != "yes" && test "$ICC" != "yes"
8264then
8265  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8266echo "$as_me: error: gcc|icc required but not found" >&2;}
8267   { (exit 1); exit 1; }; }
8268fi
8269
8270if test "$GXX" != "yes" && test "$IXX" != "yes"
8271then
8272  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8273echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8274   { (exit 1); exit 1; }; }
8275fi
8276
8277if test "$GCC" = "yes"
8278then
8279  cat >conftest.$ac_ext <<_ACEOF
8280
8281  /* confdefs.h.  */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h.  */
8286
8287    #if !defined(__GNUC__) || __GNUC__ < 3
8288    #error Unsupported GCC version
8289    #endif
8290
8291
8292_ACEOF
8293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297  *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300  (eval "$ac_compile") 2>conftest.er1
8301  ac_status=$?
8302  grep -v '^ *+' conftest.er1 >conftest.err
8303  rm -f conftest.er1
8304  cat conftest.err >&5
8305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306  (exit $ac_status); } &&
8307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308  { (case "(($ac_try" in
8309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310  *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313  (eval "$ac_try") 2>&5
8314  ac_status=$?
8315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316  (exit $ac_status); }; } &&
8317	 { ac_try='test -s conftest.$ac_objext'
8318  { (case "(($ac_try" in
8319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320  *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323  (eval "$ac_try") 2>&5
8324  ac_status=$?
8325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326  (exit $ac_status); }; }; then
8327  :
8328else
8329  echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8333echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8334   { (exit 1); exit 1; }; }
8335fi
8336
8337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338fi
8339
8340if test -z "$llvm_cv_gnu_make_command"
8341then
8342  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8343echo "$as_me: error: GNU Make required but not found" >&2;}
8344   { (exit 1); exit 1; }; }
8345fi
8346
8347{ echo "$as_me:$LINENO: result: ok" >&5
8348echo "${ECHO_T}ok" >&6; }
8349
8350{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8351echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8352NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8353
8354NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8355
8356COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8357
8358
8359NO_UNINITIALIZED=
8360NO_MAYBE_UNINITIALIZED=
8361if test "$GXX" = "yes"
8362then
8363  NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8364
8365        if test -z "$NO_MAYBE_UNINITIALIZED"
8366  then
8367    NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8368
8369  fi
8370fi
8371
8372no_comment=
8373llvm_cv_old_cxxflags="$CXXFLAGS"
8374CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8375cat >conftest.$ac_ext <<_ACEOF
8376
8377  /* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382// Comment \o\
8383// Another comment
8384int main() { return 0; }
8385
8386
8387_ACEOF
8388rm -f conftest.$ac_objext
8389if { (ac_try="$ac_compile"
8390case "(($ac_try" in
8391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392  *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395  (eval "$ac_compile") 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403  { (case "(($ac_try" in
8404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405  *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408  (eval "$ac_try") 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); }; } &&
8412	 { ac_try='test -s conftest.$ac_objext'
8413  { (case "(($ac_try" in
8414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415  *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418  (eval "$ac_try") 2>&5
8419  ac_status=$?
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); }; }; then
8422
8423  no_comment=-Wno-comment
8424
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433NO_COMMENT=$no_comment
8434
8435CXXFLAGS="$llvm_cv_old_cxxflags"
8436
8437{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8438echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8439
8440
8441# Check whether --with-python was given.
8442if test "${with_python+set}" = set; then
8443  withval=$with_python; PYTHON="$withval"
8444fi
8445
8446
8447if test -n "$PYTHON" && test -x "$PYTHON" ; then
8448  { echo "$as_me:$LINENO: checking for python" >&5
8449echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8450  { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8451echo "${ECHO_T}user defined: $with_python" >&6; }
8452else
8453  if test -n "$PYTHON" ; then
8454    { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8455echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8456  fi
8457
8458  # Extract the first word of "python python2 python27", so it can be a program name with args.
8459set dummy python python2 python27; ac_word=$2
8460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462if test "${ac_cv_path_PYTHON+set}" = set; then
8463  echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465  case $PYTHON in
8466  [\\/]* | ?:[\\/]*)
8467  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8468  ;;
8469  *)
8470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473  IFS=$as_save_IFS
8474  test -z "$as_dir" && as_dir=.
8475  for ac_exec_ext in '' $ac_executable_extensions; do
8476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479    break 2
8480  fi
8481done
8482done
8483IFS=$as_save_IFS
8484
8485  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8486echo "${ECHO_T}not found" >&6; }
8487                { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8488echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8489   { (exit 1); exit 1; }; }"
8490  ;;
8491esac
8492fi
8493PYTHON=$ac_cv_path_PYTHON
8494if test -n "$PYTHON"; then
8495  { echo "$as_me:$LINENO: result: $PYTHON" >&5
8496echo "${ECHO_T}$PYTHON" >&6; }
8497else
8498  { echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6; }
8500fi
8501
8502
8503fi
8504
8505{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8506echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8507ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8508ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8509ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8510ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8511if test "$ac_python_version_major" -gt "2" || \
8512   (test "$ac_python_version_major" -eq "2" && \
8513    test "$ac_python_version_minor" -ge "7") ; then
8514  { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8515echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8516else
8517  { echo "$as_me:$LINENO: result: not found" >&5
8518echo "${ECHO_T}not found" >&6; }
8519  { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8520See \`config.log' for more details." >&5
8521echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8522See \`config.log' for more details." >&2;}
8523   { (exit 1); exit 1; }; }
8524fi
8525
8526
8527
8528{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8529echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8530if test "${ac_cv_lib_m_sin+set}" = set; then
8531  echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533  ac_check_lib_save_LIBS=$LIBS
8534LIBS="-lm  $LIBS"
8535cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h.  */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h.  */
8541
8542/* Override any GCC internal prototype to avoid an error.
8543   Use char because int might match the return type of a GCC
8544   builtin and then its argument prototype would still apply.  */
8545#ifdef __cplusplus
8546extern "C"
8547#endif
8548char sin ();
8549int
8550main ()
8551{
8552return sin ();
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (ac_try="$ac_link"
8559case "(($ac_try" in
8560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561  *) ac_try_echo=$ac_try;;
8562esac
8563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564  (eval "$ac_link") 2>conftest.er1
8565  ac_status=$?
8566  grep -v '^ *+' conftest.er1 >conftest.err
8567  rm -f conftest.er1
8568  cat conftest.err >&5
8569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); } &&
8571	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572  { (case "(($ac_try" in
8573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574  *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577  (eval "$ac_try") 2>&5
8578  ac_status=$?
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); }; } &&
8581	 { ac_try='test -s conftest$ac_exeext'
8582  { (case "(($ac_try" in
8583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584  *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587  (eval "$ac_try") 2>&5
8588  ac_status=$?
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); }; }; then
8591  ac_cv_lib_m_sin=yes
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596	ac_cv_lib_m_sin=no
8597fi
8598
8599rm -f core conftest.err conftest.$ac_objext \
8600      conftest$ac_exeext conftest.$ac_ext
8601LIBS=$ac_check_lib_save_LIBS
8602fi
8603{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8604echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8605if test $ac_cv_lib_m_sin = yes; then
8606  cat >>confdefs.h <<_ACEOF
8607#define HAVE_LIBM 1
8608_ACEOF
8609
8610  LIBS="-lm $LIBS"
8611
8612fi
8613
8614if test "$llvm_cv_os_type" = "MingW" ; then
8615
8616{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8617echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8618if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8619  echo $ECHO_N "(cached) $ECHO_C" >&6
8620else
8621  ac_check_lib_save_LIBS=$LIBS
8622LIBS="-limagehlp  $LIBS"
8623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h.  */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h.  */
8629
8630
8631int
8632main ()
8633{
8634return main ();
8635  ;
8636  return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
8640if { (ac_try="$ac_link"
8641case "(($ac_try" in
8642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643  *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646  (eval "$ac_link") 2>conftest.er1
8647  ac_status=$?
8648  grep -v '^ *+' conftest.er1 >conftest.err
8649  rm -f conftest.er1
8650  cat conftest.err >&5
8651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652  (exit $ac_status); } &&
8653	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654  { (case "(($ac_try" in
8655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656  *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659  (eval "$ac_try") 2>&5
8660  ac_status=$?
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); }; } &&
8663	 { ac_try='test -s conftest$ac_exeext'
8664  { (case "(($ac_try" in
8665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666  *) ac_try_echo=$ac_try;;
8667esac
8668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669  (eval "$ac_try") 2>&5
8670  ac_status=$?
8671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672  (exit $ac_status); }; }; then
8673  ac_cv_lib_imagehlp_main=yes
8674else
8675  echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678	ac_cv_lib_imagehlp_main=no
8679fi
8680
8681rm -f core conftest.err conftest.$ac_objext \
8682      conftest$ac_exeext conftest.$ac_ext
8683LIBS=$ac_check_lib_save_LIBS
8684fi
8685{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8686echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8687if test $ac_cv_lib_imagehlp_main = yes; then
8688  cat >>confdefs.h <<_ACEOF
8689#define HAVE_LIBIMAGEHLP 1
8690_ACEOF
8691
8692  LIBS="-limagehlp $LIBS"
8693
8694fi
8695
8696
8697{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8698echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8699if test "${ac_cv_lib_psapi_main+set}" = set; then
8700  echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702  ac_check_lib_save_LIBS=$LIBS
8703LIBS="-lpsapi  $LIBS"
8704cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h.  */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h.  */
8710
8711
8712int
8713main ()
8714{
8715return main ();
8716  ;
8717  return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (ac_try="$ac_link"
8722case "(($ac_try" in
8723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724  *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727  (eval "$ac_link") 2>conftest.er1
8728  ac_status=$?
8729  grep -v '^ *+' conftest.er1 >conftest.err
8730  rm -f conftest.er1
8731  cat conftest.err >&5
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); } &&
8734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8735  { (case "(($ac_try" in
8736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737  *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740  (eval "$ac_try") 2>&5
8741  ac_status=$?
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); }; } &&
8744	 { ac_try='test -s conftest$ac_exeext'
8745  { (case "(($ac_try" in
8746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747  *) ac_try_echo=$ac_try;;
8748esac
8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750  (eval "$ac_try") 2>&5
8751  ac_status=$?
8752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753  (exit $ac_status); }; }; then
8754  ac_cv_lib_psapi_main=yes
8755else
8756  echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759	ac_cv_lib_psapi_main=no
8760fi
8761
8762rm -f core conftest.err conftest.$ac_objext \
8763      conftest$ac_exeext conftest.$ac_ext
8764LIBS=$ac_check_lib_save_LIBS
8765fi
8766{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8767echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8768if test $ac_cv_lib_psapi_main = yes; then
8769  cat >>confdefs.h <<_ACEOF
8770#define HAVE_LIBPSAPI 1
8771_ACEOF
8772
8773  LIBS="-lpsapi $LIBS"
8774
8775fi
8776
8777
8778{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8779echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8780if test "${ac_cv_lib_shell32_main+set}" = set; then
8781  echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783  ac_check_lib_save_LIBS=$LIBS
8784LIBS="-lshell32  $LIBS"
8785cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h.  */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h.  */
8791
8792
8793int
8794main ()
8795{
8796return main ();
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801rm -f conftest.$ac_objext conftest$ac_exeext
8802if { (ac_try="$ac_link"
8803case "(($ac_try" in
8804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805  *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808  (eval "$ac_link") 2>conftest.er1
8809  ac_status=$?
8810  grep -v '^ *+' conftest.er1 >conftest.err
8811  rm -f conftest.er1
8812  cat conftest.err >&5
8813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); } &&
8815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816  { (case "(($ac_try" in
8817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818  *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821  (eval "$ac_try") 2>&5
8822  ac_status=$?
8823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824  (exit $ac_status); }; } &&
8825	 { ac_try='test -s conftest$ac_exeext'
8826  { (case "(($ac_try" in
8827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828  *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831  (eval "$ac_try") 2>&5
8832  ac_status=$?
8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); }; }; then
8835  ac_cv_lib_shell32_main=yes
8836else
8837  echo "$as_me: failed program was:" >&5
8838sed 's/^/| /' conftest.$ac_ext >&5
8839
8840	ac_cv_lib_shell32_main=no
8841fi
8842
8843rm -f core conftest.err conftest.$ac_objext \
8844      conftest$ac_exeext conftest.$ac_ext
8845LIBS=$ac_check_lib_save_LIBS
8846fi
8847{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8848echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8849if test $ac_cv_lib_shell32_main = yes; then
8850  cat >>confdefs.h <<_ACEOF
8851#define HAVE_LIBSHELL32 1
8852_ACEOF
8853
8854  LIBS="-lshell32 $LIBS"
8855
8856fi
8857
8858fi
8859
8860{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8861echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8862if test "${ac_cv_search_dlopen+set}" = set; then
8863  echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865  ac_func_search_save_LIBS=$LIBS
8866cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h.  */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
8871/* end confdefs.h.  */
8872
8873/* Override any GCC internal prototype to avoid an error.
8874   Use char because int might match the return type of a GCC
8875   builtin and then its argument prototype would still apply.  */
8876#ifdef __cplusplus
8877extern "C"
8878#endif
8879char dlopen ();
8880int
8881main ()
8882{
8883return dlopen ();
8884  ;
8885  return 0;
8886}
8887_ACEOF
8888for ac_lib in '' dl; do
8889  if test -z "$ac_lib"; then
8890    ac_res="none required"
8891  else
8892    ac_res=-l$ac_lib
8893    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8894  fi
8895  rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (ac_try="$ac_link"
8897case "(($ac_try" in
8898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899  *) ac_try_echo=$ac_try;;
8900esac
8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902  (eval "$ac_link") 2>conftest.er1
8903  ac_status=$?
8904  grep -v '^ *+' conftest.er1 >conftest.err
8905  rm -f conftest.er1
8906  cat conftest.err >&5
8907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908  (exit $ac_status); } &&
8909	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910  { (case "(($ac_try" in
8911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912  *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915  (eval "$ac_try") 2>&5
8916  ac_status=$?
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); }; } &&
8919	 { ac_try='test -s conftest$ac_exeext'
8920  { (case "(($ac_try" in
8921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922  *) ac_try_echo=$ac_try;;
8923esac
8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925  (eval "$ac_try") 2>&5
8926  ac_status=$?
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); }; }; then
8929  ac_cv_search_dlopen=$ac_res
8930else
8931  echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934
8935fi
8936
8937rm -f core conftest.err conftest.$ac_objext \
8938      conftest$ac_exeext
8939  if test "${ac_cv_search_dlopen+set}" = set; then
8940  break
8941fi
8942done
8943if test "${ac_cv_search_dlopen+set}" = set; then
8944  :
8945else
8946  ac_cv_search_dlopen=no
8947fi
8948rm conftest.$ac_ext
8949LIBS=$ac_func_search_save_LIBS
8950fi
8951{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8952echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8953ac_res=$ac_cv_search_dlopen
8954if test "$ac_res" != no; then
8955  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956
8957
8958cat >>confdefs.h <<\_ACEOF
8959#define HAVE_DLOPEN 1
8960_ACEOF
8961
8962HAVE_DLOPEN='1'
8963
8964
8965else
8966  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8967echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8968fi
8969
8970
8971{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8972echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8973if test "${ac_cv_search_clock_gettime+set}" = set; then
8974  echo $ECHO_N "(cached) $ECHO_C" >&6
8975else
8976  ac_func_search_save_LIBS=$LIBS
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h.  */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h.  */
8983
8984/* Override any GCC internal prototype to avoid an error.
8985   Use char because int might match the return type of a GCC
8986   builtin and then its argument prototype would still apply.  */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char clock_gettime ();
8991int
8992main ()
8993{
8994return clock_gettime ();
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999for ac_lib in '' rt; do
9000  if test -z "$ac_lib"; then
9001    ac_res="none required"
9002  else
9003    ac_res=-l$ac_lib
9004    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9005  fi
9006  rm -f conftest.$ac_objext conftest$ac_exeext
9007if { (ac_try="$ac_link"
9008case "(($ac_try" in
9009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010  *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013  (eval "$ac_link") 2>conftest.er1
9014  ac_status=$?
9015  grep -v '^ *+' conftest.er1 >conftest.err
9016  rm -f conftest.er1
9017  cat conftest.err >&5
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); } &&
9020	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021  { (case "(($ac_try" in
9022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023  *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026  (eval "$ac_try") 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; } &&
9030	 { ac_try='test -s conftest$ac_exeext'
9031  { (case "(($ac_try" in
9032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033  *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036  (eval "$ac_try") 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); }; }; then
9040  ac_cv_search_clock_gettime=$ac_res
9041else
9042  echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045
9046fi
9047
9048rm -f core conftest.err conftest.$ac_objext \
9049      conftest$ac_exeext
9050  if test "${ac_cv_search_clock_gettime+set}" = set; then
9051  break
9052fi
9053done
9054if test "${ac_cv_search_clock_gettime+set}" = set; then
9055  :
9056else
9057  ac_cv_search_clock_gettime=no
9058fi
9059rm conftest.$ac_ext
9060LIBS=$ac_func_search_save_LIBS
9061fi
9062{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9063echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9064ac_res=$ac_cv_search_clock_gettime
9065if test "$ac_res" != no; then
9066  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067
9068fi
9069
9070
9071if test "$llvm_cv_enable_terminfo" = "yes" ; then
9072    { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9073echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9074if test "${ac_cv_search_setupterm+set}" = set; then
9075  echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077  ac_func_search_save_LIBS=$LIBS
9078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h.  */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h.  */
9084
9085/* Override any GCC internal prototype to avoid an error.
9086   Use char because int might match the return type of a GCC
9087   builtin and then its argument prototype would still apply.  */
9088#ifdef __cplusplus
9089extern "C"
9090#endif
9091char setupterm ();
9092int
9093main ()
9094{
9095return setupterm ();
9096  ;
9097  return 0;
9098}
9099_ACEOF
9100for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9101  if test -z "$ac_lib"; then
9102    ac_res="none required"
9103  else
9104    ac_res=-l$ac_lib
9105    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9106  fi
9107  rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (ac_try="$ac_link"
9109case "(($ac_try" in
9110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111  *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114  (eval "$ac_link") 2>conftest.er1
9115  ac_status=$?
9116  grep -v '^ *+' conftest.er1 >conftest.err
9117  rm -f conftest.er1
9118  cat conftest.err >&5
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } &&
9121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122  { (case "(($ac_try" in
9123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124  *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127  (eval "$ac_try") 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; } &&
9131	 { ac_try='test -s conftest$ac_exeext'
9132  { (case "(($ac_try" in
9133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134  *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137  (eval "$ac_try") 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; }; then
9141  ac_cv_search_setupterm=$ac_res
9142else
9143  echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146
9147fi
9148
9149rm -f core conftest.err conftest.$ac_objext \
9150      conftest$ac_exeext
9151  if test "${ac_cv_search_setupterm+set}" = set; then
9152  break
9153fi
9154done
9155if test "${ac_cv_search_setupterm+set}" = set; then
9156  :
9157else
9158  ac_cv_search_setupterm=no
9159fi
9160rm conftest.$ac_ext
9161LIBS=$ac_func_search_save_LIBS
9162fi
9163{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9164echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9165ac_res=$ac_cv_search_setupterm
9166if test "$ac_res" != no; then
9167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9168
9169
9170cat >>confdefs.h <<\_ACEOF
9171#define HAVE_TERMINFO 1
9172_ACEOF
9173
9174HAVE_TERMINFO='1'
9175
9176
9177fi
9178
9179fi
9180
9181if test "$llvm_cv_enable_libedit" = "yes" ; then
9182  { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9183echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9184if test "${ac_cv_search_el_init+set}" = set; then
9185  echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187  ac_func_search_save_LIBS=$LIBS
9188cat >conftest.$ac_ext <<_ACEOF
9189/* confdefs.h.  */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h.  */
9194
9195/* Override any GCC internal prototype to avoid an error.
9196   Use char because int might match the return type of a GCC
9197   builtin and then its argument prototype would still apply.  */
9198#ifdef __cplusplus
9199extern "C"
9200#endif
9201char el_init ();
9202int
9203main ()
9204{
9205return el_init ();
9206  ;
9207  return 0;
9208}
9209_ACEOF
9210for ac_lib in '' edit; do
9211  if test -z "$ac_lib"; then
9212    ac_res="none required"
9213  else
9214    ac_res=-l$ac_lib
9215    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9216  fi
9217  rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (ac_try="$ac_link"
9219case "(($ac_try" in
9220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221  *) ac_try_echo=$ac_try;;
9222esac
9223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224  (eval "$ac_link") 2>conftest.er1
9225  ac_status=$?
9226  grep -v '^ *+' conftest.er1 >conftest.err
9227  rm -f conftest.er1
9228  cat conftest.err >&5
9229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230  (exit $ac_status); } &&
9231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9232  { (case "(($ac_try" in
9233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234  *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237  (eval "$ac_try") 2>&5
9238  ac_status=$?
9239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240  (exit $ac_status); }; } &&
9241	 { ac_try='test -s conftest$ac_exeext'
9242  { (case "(($ac_try" in
9243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244  *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247  (eval "$ac_try") 2>&5
9248  ac_status=$?
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); }; }; then
9251  ac_cv_search_el_init=$ac_res
9252else
9253  echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257fi
9258
9259rm -f core conftest.err conftest.$ac_objext \
9260      conftest$ac_exeext
9261  if test "${ac_cv_search_el_init+set}" = set; then
9262  break
9263fi
9264done
9265if test "${ac_cv_search_el_init+set}" = set; then
9266  :
9267else
9268  ac_cv_search_el_init=no
9269fi
9270rm conftest.$ac_ext
9271LIBS=$ac_func_search_save_LIBS
9272fi
9273{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9274echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9275ac_res=$ac_cv_search_el_init
9276if test "$ac_res" != no; then
9277  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9278
9279cat >>confdefs.h <<\_ACEOF
9280#define HAVE_LIBEDIT 1
9281_ACEOF
9282
9283fi
9284
9285fi
9286
9287if test "$llvm_cv_enable_libffi" = "yes" ; then
9288  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9289echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9290if test "${ac_cv_search_ffi_call+set}" = set; then
9291  echo $ECHO_N "(cached) $ECHO_C" >&6
9292else
9293  ac_func_search_save_LIBS=$LIBS
9294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h.  */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h.  */
9300
9301/* Override any GCC internal prototype to avoid an error.
9302   Use char because int might match the return type of a GCC
9303   builtin and then its argument prototype would still apply.  */
9304#ifdef __cplusplus
9305extern "C"
9306#endif
9307char ffi_call ();
9308int
9309main ()
9310{
9311return ffi_call ();
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316for ac_lib in '' ffi; do
9317  if test -z "$ac_lib"; then
9318    ac_res="none required"
9319  else
9320    ac_res=-l$ac_lib
9321    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9322  fi
9323  rm -f conftest.$ac_objext conftest$ac_exeext
9324if { (ac_try="$ac_link"
9325case "(($ac_try" in
9326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327  *) ac_try_echo=$ac_try;;
9328esac
9329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330  (eval "$ac_link") 2>conftest.er1
9331  ac_status=$?
9332  grep -v '^ *+' conftest.er1 >conftest.err
9333  rm -f conftest.er1
9334  cat conftest.err >&5
9335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); } &&
9337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338  { (case "(($ac_try" in
9339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340  *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343  (eval "$ac_try") 2>&5
9344  ac_status=$?
9345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346  (exit $ac_status); }; } &&
9347	 { ac_try='test -s conftest$ac_exeext'
9348  { (case "(($ac_try" in
9349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350  *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353  (eval "$ac_try") 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); }; }; then
9357  ac_cv_search_ffi_call=$ac_res
9358else
9359  echo "$as_me: failed program was:" >&5
9360sed 's/^/| /' conftest.$ac_ext >&5
9361
9362
9363fi
9364
9365rm -f core conftest.err conftest.$ac_objext \
9366      conftest$ac_exeext
9367  if test "${ac_cv_search_ffi_call+set}" = set; then
9368  break
9369fi
9370done
9371if test "${ac_cv_search_ffi_call+set}" = set; then
9372  :
9373else
9374  ac_cv_search_ffi_call=no
9375fi
9376rm conftest.$ac_ext
9377LIBS=$ac_func_search_save_LIBS
9378fi
9379{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9380echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9381ac_res=$ac_cv_search_ffi_call
9382if test "$ac_res" != no; then
9383  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384
9385cat >>confdefs.h <<\_ACEOF
9386#define HAVE_FFI_CALL 1
9387_ACEOF
9388
9389else
9390  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9391echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9392   { (exit 1); exit 1; }; }
9393fi
9394
9395fi
9396
9397{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9398echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9399if test "${ac_cv_search_mallinfo+set}" = set; then
9400  echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402  ac_func_search_save_LIBS=$LIBS
9403cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h.  */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h.  */
9409
9410/* Override any GCC internal prototype to avoid an error.
9411   Use char because int might match the return type of a GCC
9412   builtin and then its argument prototype would still apply.  */
9413#ifdef __cplusplus
9414extern "C"
9415#endif
9416char mallinfo ();
9417int
9418main ()
9419{
9420return mallinfo ();
9421  ;
9422  return 0;
9423}
9424_ACEOF
9425for ac_lib in '' malloc; do
9426  if test -z "$ac_lib"; then
9427    ac_res="none required"
9428  else
9429    ac_res=-l$ac_lib
9430    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9431  fi
9432  rm -f conftest.$ac_objext conftest$ac_exeext
9433if { (ac_try="$ac_link"
9434case "(($ac_try" in
9435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436  *) ac_try_echo=$ac_try;;
9437esac
9438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439  (eval "$ac_link") 2>conftest.er1
9440  ac_status=$?
9441  grep -v '^ *+' conftest.er1 >conftest.err
9442  rm -f conftest.er1
9443  cat conftest.err >&5
9444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445  (exit $ac_status); } &&
9446	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447  { (case "(($ac_try" in
9448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449  *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452  (eval "$ac_try") 2>&5
9453  ac_status=$?
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); }; } &&
9456	 { ac_try='test -s conftest$ac_exeext'
9457  { (case "(($ac_try" in
9458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459  *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462  (eval "$ac_try") 2>&5
9463  ac_status=$?
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); }; }; then
9466  ac_cv_search_mallinfo=$ac_res
9467else
9468  echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471
9472fi
9473
9474rm -f core conftest.err conftest.$ac_objext \
9475      conftest$ac_exeext
9476  if test "${ac_cv_search_mallinfo+set}" = set; then
9477  break
9478fi
9479done
9480if test "${ac_cv_search_mallinfo+set}" = set; then
9481  :
9482else
9483  ac_cv_search_mallinfo=no
9484fi
9485rm conftest.$ac_ext
9486LIBS=$ac_func_search_save_LIBS
9487fi
9488{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9489echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9490ac_res=$ac_cv_search_mallinfo
9491if test "$ac_res" != no; then
9492  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9493
9494cat >>confdefs.h <<\_ACEOF
9495#define HAVE_MALLINFO 1
9496_ACEOF
9497
9498fi
9499
9500
9501if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9502
9503{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9504echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9505if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9506  echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508  ac_check_lib_save_LIBS=$LIBS
9509LIBS="-lpthread  $LIBS"
9510cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h.  */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h.  */
9516
9517/* Override any GCC internal prototype to avoid an error.
9518   Use char because int might match the return type of a GCC
9519   builtin and then its argument prototype would still apply.  */
9520#ifdef __cplusplus
9521extern "C"
9522#endif
9523char pthread_mutex_init ();
9524int
9525main ()
9526{
9527return pthread_mutex_init ();
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (ac_try="$ac_link"
9534case "(($ac_try" in
9535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536  *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539  (eval "$ac_link") 2>conftest.er1
9540  ac_status=$?
9541  grep -v '^ *+' conftest.er1 >conftest.err
9542  rm -f conftest.er1
9543  cat conftest.err >&5
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); } &&
9546	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547  { (case "(($ac_try" in
9548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549  *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552  (eval "$ac_try") 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); }; } &&
9556	 { ac_try='test -s conftest$ac_exeext'
9557  { (case "(($ac_try" in
9558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559  *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562  (eval "$ac_try") 2>&5
9563  ac_status=$?
9564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565  (exit $ac_status); }; }; then
9566  ac_cv_lib_pthread_pthread_mutex_init=yes
9567else
9568  echo "$as_me: failed program was:" >&5
9569sed 's/^/| /' conftest.$ac_ext >&5
9570
9571	ac_cv_lib_pthread_pthread_mutex_init=no
9572fi
9573
9574rm -f core conftest.err conftest.$ac_objext \
9575      conftest$ac_exeext conftest.$ac_ext
9576LIBS=$ac_check_lib_save_LIBS
9577fi
9578{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9579echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9580if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9581  cat >>confdefs.h <<_ACEOF
9582#define HAVE_LIBPTHREAD 1
9583_ACEOF
9584
9585  LIBS="-lpthread $LIBS"
9586
9587fi
9588
9589  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9590echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9591if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9592  echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594  ac_func_search_save_LIBS=$LIBS
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h.  */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h.  */
9601
9602/* Override any GCC internal prototype to avoid an error.
9603   Use char because int might match the return type of a GCC
9604   builtin and then its argument prototype would still apply.  */
9605#ifdef __cplusplus
9606extern "C"
9607#endif
9608char pthread_mutex_lock ();
9609int
9610main ()
9611{
9612return pthread_mutex_lock ();
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617for ac_lib in '' pthread; do
9618  if test -z "$ac_lib"; then
9619    ac_res="none required"
9620  else
9621    ac_res=-l$ac_lib
9622    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9623  fi
9624  rm -f conftest.$ac_objext conftest$ac_exeext
9625if { (ac_try="$ac_link"
9626case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_link") 2>conftest.er1
9632  ac_status=$?
9633  grep -v '^ *+' conftest.er1 >conftest.err
9634  rm -f conftest.er1
9635  cat conftest.err >&5
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); } &&
9638	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639  { (case "(($ac_try" in
9640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641  *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644  (eval "$ac_try") 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); }; } &&
9648	 { ac_try='test -s conftest$ac_exeext'
9649  { (case "(($ac_try" in
9650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651  *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654  (eval "$ac_try") 2>&5
9655  ac_status=$?
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); }; }; then
9658  ac_cv_search_pthread_mutex_lock=$ac_res
9659else
9660  echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663
9664fi
9665
9666rm -f core conftest.err conftest.$ac_objext \
9667      conftest$ac_exeext
9668  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9669  break
9670fi
9671done
9672if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9673  :
9674else
9675  ac_cv_search_pthread_mutex_lock=no
9676fi
9677rm conftest.$ac_ext
9678LIBS=$ac_func_search_save_LIBS
9679fi
9680{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9681echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9682ac_res=$ac_cv_search_pthread_mutex_lock
9683if test "$ac_res" != no; then
9684  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9685
9686cat >>confdefs.h <<\_ACEOF
9687#define HAVE_PTHREAD_MUTEX_LOCK 1
9688_ACEOF
9689
9690fi
9691
9692  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9693echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9694if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9695  echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697  ac_func_search_save_LIBS=$LIBS
9698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h.  */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h.  */
9704
9705/* Override any GCC internal prototype to avoid an error.
9706   Use char because int might match the return type of a GCC
9707   builtin and then its argument prototype would still apply.  */
9708#ifdef __cplusplus
9709extern "C"
9710#endif
9711char pthread_rwlock_init ();
9712int
9713main ()
9714{
9715return pthread_rwlock_init ();
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720for ac_lib in '' pthread; do
9721  if test -z "$ac_lib"; then
9722    ac_res="none required"
9723  else
9724    ac_res=-l$ac_lib
9725    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9726  fi
9727  rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731  *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734  (eval "$ac_link") 2>conftest.er1
9735  ac_status=$?
9736  grep -v '^ *+' conftest.er1 >conftest.err
9737  rm -f conftest.er1
9738  cat conftest.err >&5
9739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740  (exit $ac_status); } &&
9741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742  { (case "(($ac_try" in
9743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744  *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747  (eval "$ac_try") 2>&5
9748  ac_status=$?
9749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750  (exit $ac_status); }; } &&
9751	 { ac_try='test -s conftest$ac_exeext'
9752  { (case "(($ac_try" in
9753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754  *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757  (eval "$ac_try") 2>&5
9758  ac_status=$?
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); }; }; then
9761  ac_cv_search_pthread_rwlock_init=$ac_res
9762else
9763  echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766
9767fi
9768
9769rm -f core conftest.err conftest.$ac_objext \
9770      conftest$ac_exeext
9771  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9772  break
9773fi
9774done
9775if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9776  :
9777else
9778  ac_cv_search_pthread_rwlock_init=no
9779fi
9780rm conftest.$ac_ext
9781LIBS=$ac_func_search_save_LIBS
9782fi
9783{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9784echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9785ac_res=$ac_cv_search_pthread_rwlock_init
9786if test "$ac_res" != no; then
9787  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9788
9789cat >>confdefs.h <<\_ACEOF
9790#define HAVE_PTHREAD_RWLOCK_INIT 1
9791_ACEOF
9792
9793fi
9794
9795  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9796echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9797if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9798  echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800  ac_func_search_save_LIBS=$LIBS
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807
9808/* Override any GCC internal prototype to avoid an error.
9809   Use char because int might match the return type of a GCC
9810   builtin and then its argument prototype would still apply.  */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char pthread_getspecific ();
9815int
9816main ()
9817{
9818return pthread_getspecific ();
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823for ac_lib in '' pthread; do
9824  if test -z "$ac_lib"; then
9825    ac_res="none required"
9826  else
9827    ac_res=-l$ac_lib
9828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9829  fi
9830  rm -f conftest.$ac_objext conftest$ac_exeext
9831if { (ac_try="$ac_link"
9832case "(($ac_try" in
9833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834  *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837  (eval "$ac_link") 2>conftest.er1
9838  ac_status=$?
9839  grep -v '^ *+' conftest.er1 >conftest.err
9840  rm -f conftest.er1
9841  cat conftest.err >&5
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); } &&
9844	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845  { (case "(($ac_try" in
9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847  *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850  (eval "$ac_try") 2>&5
9851  ac_status=$?
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }; } &&
9854	 { ac_try='test -s conftest$ac_exeext'
9855  { (case "(($ac_try" in
9856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857  *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860  (eval "$ac_try") 2>&5
9861  ac_status=$?
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); }; }; then
9864  ac_cv_search_pthread_getspecific=$ac_res
9865else
9866  echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869
9870fi
9871
9872rm -f core conftest.err conftest.$ac_objext \
9873      conftest$ac_exeext
9874  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9875  break
9876fi
9877done
9878if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9879  :
9880else
9881  ac_cv_search_pthread_getspecific=no
9882fi
9883rm conftest.$ac_ext
9884LIBS=$ac_func_search_save_LIBS
9885fi
9886{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9887echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9888ac_res=$ac_cv_search_pthread_getspecific
9889if test "$ac_res" != no; then
9890  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9891
9892cat >>confdefs.h <<\_ACEOF
9893#define HAVE_PTHREAD_GETSPECIFIC 1
9894_ACEOF
9895
9896fi
9897
9898fi
9899
9900if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9901
9902{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9903echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9904if test "${ac_cv_lib_z_compress2+set}" = set; then
9905  echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907  ac_check_lib_save_LIBS=$LIBS
9908LIBS="-lz  $LIBS"
9909cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h.  */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h.  */
9915
9916/* Override any GCC internal prototype to avoid an error.
9917   Use char because int might match the return type of a GCC
9918   builtin and then its argument prototype would still apply.  */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char compress2 ();
9923int
9924main ()
9925{
9926return compress2 ();
9927  ;
9928  return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
9932if { (ac_try="$ac_link"
9933case "(($ac_try" in
9934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935  *) ac_try_echo=$ac_try;;
9936esac
9937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938  (eval "$ac_link") 2>conftest.er1
9939  ac_status=$?
9940  grep -v '^ *+' conftest.er1 >conftest.err
9941  rm -f conftest.er1
9942  cat conftest.err >&5
9943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944  (exit $ac_status); } &&
9945	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946  { (case "(($ac_try" in
9947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948  *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951  (eval "$ac_try") 2>&5
9952  ac_status=$?
9953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954  (exit $ac_status); }; } &&
9955	 { ac_try='test -s conftest$ac_exeext'
9956  { (case "(($ac_try" in
9957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958  *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961  (eval "$ac_try") 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; }; then
9965  ac_cv_lib_z_compress2=yes
9966else
9967  echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970	ac_cv_lib_z_compress2=no
9971fi
9972
9973rm -f core conftest.err conftest.$ac_objext \
9974      conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9978echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9979if test $ac_cv_lib_z_compress2 = yes; then
9980  cat >>confdefs.h <<_ACEOF
9981#define HAVE_LIBZ 1
9982_ACEOF
9983
9984  LIBS="-lz $LIBS"
9985
9986fi
9987
9988fi
9989
9990
9991# Check whether --with-oprofile was given.
9992if test "${with_oprofile+set}" = set; then
9993  withval=$with_oprofile;
9994      USE_OPROFILE=1
9995
9996      case "$withval" in
9997        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9998        no) llvm_cv_oppath=
9999            USE_OPROFILE=0
10000 ;;
10001        *) llvm_cv_oppath="${withval}/lib/oprofile"
10002           CPPFLAGS="-I${withval}/include";;
10003      esac
10004      case $llvm_cv_os_type in
10005        Linux)
10006          if test -n "$llvm_cv_oppath" ; then
10007            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10008                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10009echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10010if test "${ac_cv_search_bfd_init+set}" = set; then
10011  echo $ECHO_N "(cached) $ECHO_C" >&6
10012else
10013  ac_func_search_save_LIBS=$LIBS
10014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h.  */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h.  */
10020
10021/* Override any GCC internal prototype to avoid an error.
10022   Use char because int might match the return type of a GCC
10023   builtin and then its argument prototype would still apply.  */
10024#ifdef __cplusplus
10025extern "C"
10026#endif
10027char bfd_init ();
10028int
10029main ()
10030{
10031return bfd_init ();
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036for ac_lib in '' bfd; do
10037  if test -z "$ac_lib"; then
10038    ac_res="none required"
10039  else
10040    ac_res=-l$ac_lib
10041    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10042  fi
10043  rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047  *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050  (eval "$ac_link") 2>conftest.er1
10051  ac_status=$?
10052  grep -v '^ *+' conftest.er1 >conftest.err
10053  rm -f conftest.er1
10054  cat conftest.err >&5
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); } &&
10057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058  { (case "(($ac_try" in
10059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060  *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063  (eval "$ac_try") 2>&5
10064  ac_status=$?
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); }; } &&
10067	 { ac_try='test -s conftest$ac_exeext'
10068  { (case "(($ac_try" in
10069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070  *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073  (eval "$ac_try") 2>&5
10074  ac_status=$?
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); }; }; then
10077  ac_cv_search_bfd_init=$ac_res
10078else
10079  echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082
10083fi
10084
10085rm -f core conftest.err conftest.$ac_objext \
10086      conftest$ac_exeext
10087  if test "${ac_cv_search_bfd_init+set}" = set; then
10088  break
10089fi
10090done
10091if test "${ac_cv_search_bfd_init+set}" = set; then
10092  :
10093else
10094  ac_cv_search_bfd_init=no
10095fi
10096rm conftest.$ac_ext
10097LIBS=$ac_func_search_save_LIBS
10098fi
10099{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10100echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10101ac_res=$ac_cv_search_bfd_init
10102if test "$ac_res" != no; then
10103  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10104
10105fi
10106
10107            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10108echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10109if test "${ac_cv_search_op_open_agent+set}" = set; then
10110  echo $ECHO_N "(cached) $ECHO_C" >&6
10111else
10112  ac_func_search_save_LIBS=$LIBS
10113cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h.  */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h.  */
10119
10120/* Override any GCC internal prototype to avoid an error.
10121   Use char because int might match the return type of a GCC
10122   builtin and then its argument prototype would still apply.  */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char op_open_agent ();
10127int
10128main ()
10129{
10130return op_open_agent ();
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135for ac_lib in '' opagent; do
10136  if test -z "$ac_lib"; then
10137    ac_res="none required"
10138  else
10139    ac_res=-l$ac_lib
10140    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10141  fi
10142  rm -f conftest.$ac_objext conftest$ac_exeext
10143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146  *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149  (eval "$ac_link") 2>conftest.er1
10150  ac_status=$?
10151  grep -v '^ *+' conftest.er1 >conftest.err
10152  rm -f conftest.er1
10153  cat conftest.err >&5
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); } &&
10156	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157  { (case "(($ac_try" in
10158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159  *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162  (eval "$ac_try") 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; } &&
10166	 { ac_try='test -s conftest$ac_exeext'
10167  { (case "(($ac_try" in
10168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169  *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172  (eval "$ac_try") 2>&5
10173  ac_status=$?
10174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175  (exit $ac_status); }; }; then
10176  ac_cv_search_op_open_agent=$ac_res
10177else
10178  echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
10181
10182fi
10183
10184rm -f core conftest.err conftest.$ac_objext \
10185      conftest$ac_exeext
10186  if test "${ac_cv_search_op_open_agent+set}" = set; then
10187  break
10188fi
10189done
10190if test "${ac_cv_search_op_open_agent+set}" = set; then
10191  :
10192else
10193  ac_cv_search_op_open_agent=no
10194fi
10195rm conftest.$ac_ext
10196LIBS=$ac_func_search_save_LIBS
10197fi
10198{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10199echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10200ac_res=$ac_cv_search_op_open_agent
10201if test "$ac_res" != no; then
10202  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10203
10204else
10205
10206              echo "Error! You need to have libopagent around."
10207              exit 1
10208
10209fi
10210
10211            if test "${ac_cv_header_opagent_h+set}" = set; then
10212  { echo "$as_me:$LINENO: checking for opagent.h" >&5
10213echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10214if test "${ac_cv_header_opagent_h+set}" = set; then
10215  echo $ECHO_N "(cached) $ECHO_C" >&6
10216fi
10217{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10218echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10219else
10220  # Is the header compilable?
10221{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10222echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10223cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h.  */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h.  */
10229$ac_includes_default
10230#include <opagent.h>
10231_ACEOF
10232rm -f conftest.$ac_objext
10233if { (ac_try="$ac_compile"
10234case "(($ac_try" in
10235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236  *) ac_try_echo=$ac_try;;
10237esac
10238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239  (eval "$ac_compile") 2>conftest.er1
10240  ac_status=$?
10241  grep -v '^ *+' conftest.er1 >conftest.err
10242  rm -f conftest.er1
10243  cat conftest.err >&5
10244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245  (exit $ac_status); } &&
10246	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10247  { (case "(($ac_try" in
10248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249  *) ac_try_echo=$ac_try;;
10250esac
10251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252  (eval "$ac_try") 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); }; } &&
10256	 { ac_try='test -s conftest.$ac_objext'
10257  { (case "(($ac_try" in
10258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259  *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262  (eval "$ac_try") 2>&5
10263  ac_status=$?
10264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265  (exit $ac_status); }; }; then
10266  ac_header_compiler=yes
10267else
10268  echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271	ac_header_compiler=no
10272fi
10273
10274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10276echo "${ECHO_T}$ac_header_compiler" >&6; }
10277
10278# Is the header present?
10279{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10280echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10281cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h.  */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h.  */
10287#include <opagent.h>
10288_ACEOF
10289if { (ac_try="$ac_cpp conftest.$ac_ext"
10290case "(($ac_try" in
10291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292  *) ac_try_echo=$ac_try;;
10293esac
10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10296  ac_status=$?
10297  grep -v '^ *+' conftest.er1 >conftest.err
10298  rm -f conftest.er1
10299  cat conftest.err >&5
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); } >/dev/null; then
10302  if test -s conftest.err; then
10303    ac_cpp_err=$ac_c_preproc_warn_flag
10304    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10305  else
10306    ac_cpp_err=
10307  fi
10308else
10309  ac_cpp_err=yes
10310fi
10311if test -z "$ac_cpp_err"; then
10312  ac_header_preproc=yes
10313else
10314  echo "$as_me: failed program was:" >&5
10315sed 's/^/| /' conftest.$ac_ext >&5
10316
10317  ac_header_preproc=no
10318fi
10319
10320rm -f conftest.err conftest.$ac_ext
10321{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6; }
10323
10324# So?  What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326  yes:no: )
10327    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10331    ac_header_preproc=yes
10332    ;;
10333  no:yes:* )
10334    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10336    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10338    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10340    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10342    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10344    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10346    ( cat <<\_ASBOX
10347## ------------------------------------ ##
10348## Report this to http://llvm.org/bugs/ ##
10349## ------------------------------------ ##
10350_ASBOX
10351     ) | sed "s/^/$as_me: WARNING:     /" >&2
10352    ;;
10353esac
10354{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10355echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10356if test "${ac_cv_header_opagent_h+set}" = set; then
10357  echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359  ac_cv_header_opagent_h=$ac_header_preproc
10360fi
10361{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10362echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10363
10364fi
10365if test $ac_cv_header_opagent_h = yes; then
10366  :
10367else
10368
10369              echo "Error! You need to have opagent.h around."
10370              exit 1
10371
10372fi
10373
10374
10375          fi ;;
10376        *)
10377          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10378echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10379   { (exit 1); exit 1; }; } ;;
10380      esac
10381
10382else
10383
10384      USE_OPROFILE=0
10385
10386
10387fi
10388
10389
10390cat >>confdefs.h <<_ACEOF
10391#define LLVM_USE_OPROFILE $USE_OPROFILE
10392_ACEOF
10393
10394
10395
10396# Check whether --with-intel-jitevents was given.
10397if test "${with_intel_jitevents+set}" = set; then
10398  withval=$with_intel_jitevents;
10399       case "$withval" in
10400          yes) USE_INTEL_JITEVENTS=1
10401;;
10402          no)  USE_INTEL_JITEVENTS=0
10403;;
10404          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10405echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10406   { (exit 1); exit 1; }; };;
10407       esac
10408
10409      case $llvm_cv_os_type in
10410        Linux|Win32|Cygwin|MingW) ;;
10411        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10412echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10413   { (exit 1); exit 1; }; };;
10414      esac
10415
10416      case "$llvm_cv_target_arch" in
10417        x86|x86_64) ;;
10418        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10419echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10420   { (exit 1); exit 1; }; };;
10421      esac
10422
10423else
10424
10425      USE_INTEL_JITEVENTS=0
10426
10427
10428fi
10429
10430
10431cat >>confdefs.h <<_ACEOF
10432#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10433_ACEOF
10434
10435
10436for ac_prog in xml2-config
10437do
10438  # Extract the first word of "$ac_prog", so it can be a program name with args.
10439set dummy $ac_prog; ac_word=$2
10440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10442if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10443  echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445  if test -n "$XML2CONFIG"; then
10446  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451  IFS=$as_save_IFS
10452  test -z "$as_dir" && as_dir=.
10453  for ac_exec_ext in '' $ac_executable_extensions; do
10454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10455    ac_cv_prog_XML2CONFIG="$ac_prog"
10456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457    break 2
10458  fi
10459done
10460done
10461IFS=$as_save_IFS
10462
10463fi
10464fi
10465XML2CONFIG=$ac_cv_prog_XML2CONFIG
10466if test -n "$XML2CONFIG"; then
10467  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10468echo "${ECHO_T}$XML2CONFIG" >&6; }
10469else
10470  { echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6; }
10472fi
10473
10474
10475  test -n "$XML2CONFIG" && break
10476done
10477
10478
10479{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10480echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10481if test "x$XML2CONFIG" = "x"; then
10482 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10483echo "${ECHO_T}xml2-config not found" >&6; }
10484else
10485 LIBXML2_INC=`$XML2CONFIG --cflags`
10486 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10487echo "${ECHO_T}$LIBXML2_INC" >&6; }
10488 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10489echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10490if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493  ac_check_lib_save_LIBS=$LIBS
10494LIBS="-lxml2  $LIBS"
10495cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h.  */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h.  */
10501
10502/* Override any GCC internal prototype to avoid an error.
10503   Use char because int might match the return type of a GCC
10504   builtin and then its argument prototype would still apply.  */
10505#ifdef __cplusplus
10506extern "C"
10507#endif
10508char xmlReadFile ();
10509int
10510main ()
10511{
10512return xmlReadFile ();
10513  ;
10514  return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
10518if { (ac_try="$ac_link"
10519case "(($ac_try" in
10520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521  *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524  (eval "$ac_link") 2>conftest.er1
10525  ac_status=$?
10526  grep -v '^ *+' conftest.er1 >conftest.err
10527  rm -f conftest.er1
10528  cat conftest.err >&5
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); } &&
10531	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532  { (case "(($ac_try" in
10533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534  *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537  (eval "$ac_try") 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; } &&
10541	 { ac_try='test -s conftest$ac_exeext'
10542  { (case "(($ac_try" in
10543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544  *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547  (eval "$ac_try") 2>&5
10548  ac_status=$?
10549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550  (exit $ac_status); }; }; then
10551  ac_cv_lib_xml2_xmlReadFile=yes
10552else
10553  echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556	ac_cv_lib_xml2_xmlReadFile=no
10557fi
10558
10559rm -f core conftest.err conftest.$ac_objext \
10560      conftest$ac_exeext conftest.$ac_ext
10561LIBS=$ac_check_lib_save_LIBS
10562fi
10563{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10564echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10565if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10566
10567cat >>confdefs.h <<\_ACEOF
10568#define CLANG_HAVE_LIBXML 1
10569_ACEOF
10570
10571                                LIBXML2_LIBS="-lxml2"
10572fi
10573
10574fi
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584ac_header_dirent=no
10585for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10586  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10587{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10588echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10590  echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
10592  cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h.  */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h.  */
10598#include <sys/types.h>
10599#include <$ac_hdr>
10600
10601int
10602main ()
10603{
10604if ((DIR *) 0)
10605return 0;
10606  ;
10607  return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext
10611if { (ac_try="$ac_compile"
10612case "(($ac_try" in
10613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614  *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617  (eval "$ac_compile") 2>conftest.er1
10618  ac_status=$?
10619  grep -v '^ *+' conftest.er1 >conftest.err
10620  rm -f conftest.er1
10621  cat conftest.err >&5
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); } &&
10624	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625  { (case "(($ac_try" in
10626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627  *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630  (eval "$ac_try") 2>&5
10631  ac_status=$?
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); }; } &&
10634	 { ac_try='test -s conftest.$ac_objext'
10635  { (case "(($ac_try" in
10636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637  *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640  (eval "$ac_try") 2>&5
10641  ac_status=$?
10642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643  (exit $ac_status); }; }; then
10644  eval "$as_ac_Header=yes"
10645else
10646  echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649	eval "$as_ac_Header=no"
10650fi
10651
10652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653fi
10654ac_res=`eval echo '${'$as_ac_Header'}'`
10655	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10656echo "${ECHO_T}$ac_res" >&6; }
10657if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658  cat >>confdefs.h <<_ACEOF
10659#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10660_ACEOF
10661
10662ac_header_dirent=$ac_hdr; break
10663fi
10664
10665done
10666# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10667if test $ac_header_dirent = dirent.h; then
10668  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10669echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10670if test "${ac_cv_search_opendir+set}" = set; then
10671  echo $ECHO_N "(cached) $ECHO_C" >&6
10672else
10673  ac_func_search_save_LIBS=$LIBS
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h.  */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h.  */
10680
10681/* Override any GCC internal prototype to avoid an error.
10682   Use char because int might match the return type of a GCC
10683   builtin and then its argument prototype would still apply.  */
10684#ifdef __cplusplus
10685extern "C"
10686#endif
10687char opendir ();
10688int
10689main ()
10690{
10691return opendir ();
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696for ac_lib in '' dir; do
10697  if test -z "$ac_lib"; then
10698    ac_res="none required"
10699  else
10700    ac_res=-l$ac_lib
10701    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10702  fi
10703  rm -f conftest.$ac_objext conftest$ac_exeext
10704if { (ac_try="$ac_link"
10705case "(($ac_try" in
10706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707  *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710  (eval "$ac_link") 2>conftest.er1
10711  ac_status=$?
10712  grep -v '^ *+' conftest.er1 >conftest.err
10713  rm -f conftest.er1
10714  cat conftest.err >&5
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); } &&
10717	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718  { (case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723  (eval "$ac_try") 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; } &&
10727	 { ac_try='test -s conftest$ac_exeext'
10728  { (case "(($ac_try" in
10729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730  *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733  (eval "$ac_try") 2>&5
10734  ac_status=$?
10735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736  (exit $ac_status); }; }; then
10737  ac_cv_search_opendir=$ac_res
10738else
10739  echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742
10743fi
10744
10745rm -f core conftest.err conftest.$ac_objext \
10746      conftest$ac_exeext
10747  if test "${ac_cv_search_opendir+set}" = set; then
10748  break
10749fi
10750done
10751if test "${ac_cv_search_opendir+set}" = set; then
10752  :
10753else
10754  ac_cv_search_opendir=no
10755fi
10756rm conftest.$ac_ext
10757LIBS=$ac_func_search_save_LIBS
10758fi
10759{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10760echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10761ac_res=$ac_cv_search_opendir
10762if test "$ac_res" != no; then
10763  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10764
10765fi
10766
10767else
10768  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10769echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10770if test "${ac_cv_search_opendir+set}" = set; then
10771  echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773  ac_func_search_save_LIBS=$LIBS
10774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h.  */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h.  */
10780
10781/* Override any GCC internal prototype to avoid an error.
10782   Use char because int might match the return type of a GCC
10783   builtin and then its argument prototype would still apply.  */
10784#ifdef __cplusplus
10785extern "C"
10786#endif
10787char opendir ();
10788int
10789main ()
10790{
10791return opendir ();
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796for ac_lib in '' x; do
10797  if test -z "$ac_lib"; then
10798    ac_res="none required"
10799  else
10800    ac_res=-l$ac_lib
10801    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10802  fi
10803  rm -f conftest.$ac_objext conftest$ac_exeext
10804if { (ac_try="$ac_link"
10805case "(($ac_try" in
10806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807  *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810  (eval "$ac_link") 2>conftest.er1
10811  ac_status=$?
10812  grep -v '^ *+' conftest.er1 >conftest.err
10813  rm -f conftest.er1
10814  cat conftest.err >&5
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); } &&
10817	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818  { (case "(($ac_try" in
10819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820  *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823  (eval "$ac_try") 2>&5
10824  ac_status=$?
10825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826  (exit $ac_status); }; } &&
10827	 { ac_try='test -s conftest$ac_exeext'
10828  { (case "(($ac_try" in
10829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830  *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833  (eval "$ac_try") 2>&5
10834  ac_status=$?
10835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836  (exit $ac_status); }; }; then
10837  ac_cv_search_opendir=$ac_res
10838else
10839  echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
10842
10843fi
10844
10845rm -f core conftest.err conftest.$ac_objext \
10846      conftest$ac_exeext
10847  if test "${ac_cv_search_opendir+set}" = set; then
10848  break
10849fi
10850done
10851if test "${ac_cv_search_opendir+set}" = set; then
10852  :
10853else
10854  ac_cv_search_opendir=no
10855fi
10856rm conftest.$ac_ext
10857LIBS=$ac_func_search_save_LIBS
10858fi
10859{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10860echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10861ac_res=$ac_cv_search_opendir
10862if test "$ac_res" != no; then
10863  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10864
10865fi
10866
10867fi
10868
10869{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10870echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10871if test "${ac_cv_header_mmap_anon+set}" = set; then
10872  echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874   ac_ext=c
10875ac_cpp='$CPP $CPPFLAGS'
10876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878ac_compiler_gnu=$ac_cv_c_compiler_gnu
10879
10880  cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h.  */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h.  */
10886#include <sys/mman.h>
10887#include <unistd.h>
10888#include <fcntl.h>
10889int
10890main ()
10891{
10892mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10893  ;
10894  return 0;
10895}
10896_ACEOF
10897rm -f conftest.$ac_objext
10898if { (ac_try="$ac_compile"
10899case "(($ac_try" in
10900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901  *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904  (eval "$ac_compile") 2>conftest.er1
10905  ac_status=$?
10906  grep -v '^ *+' conftest.er1 >conftest.err
10907  rm -f conftest.er1
10908  cat conftest.err >&5
10909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910  (exit $ac_status); } &&
10911	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912  { (case "(($ac_try" in
10913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914  *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917  (eval "$ac_try") 2>&5
10918  ac_status=$?
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); }; } &&
10921	 { ac_try='test -s conftest.$ac_objext'
10922  { (case "(($ac_try" in
10923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924  *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927  (eval "$ac_try") 2>&5
10928  ac_status=$?
10929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930  (exit $ac_status); }; }; then
10931  ac_cv_header_mmap_anon=yes
10932else
10933  echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936	ac_cv_header_mmap_anon=no
10937fi
10938
10939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940  ac_ext=c
10941ac_cpp='$CPP $CPPFLAGS'
10942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
10946
10947fi
10948{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10949echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10950if test "$ac_cv_header_mmap_anon" = yes; then
10951
10952cat >>confdefs.h <<\_ACEOF
10953#define HAVE_MMAP_ANONYMOUS 1
10954_ACEOF
10955
10956fi
10957
10958{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10959echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10960if test "${ac_cv_header_stat_broken+set}" = set; then
10961  echo $ECHO_N "(cached) $ECHO_C" >&6
10962else
10963  cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h.  */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h.  */
10969#include <sys/types.h>
10970#include <sys/stat.h>
10971
10972#if defined S_ISBLK && defined S_IFDIR
10973# if S_ISBLK (S_IFDIR)
10974You lose.
10975# endif
10976#endif
10977
10978#if defined S_ISBLK && defined S_IFCHR
10979# if S_ISBLK (S_IFCHR)
10980You lose.
10981# endif
10982#endif
10983
10984#if defined S_ISLNK && defined S_IFREG
10985# if S_ISLNK (S_IFREG)
10986You lose.
10987# endif
10988#endif
10989
10990#if defined S_ISSOCK && defined S_IFREG
10991# if S_ISSOCK (S_IFREG)
10992You lose.
10993# endif
10994#endif
10995
10996_ACEOF
10997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10998  $EGREP "You lose" >/dev/null 2>&1; then
10999  ac_cv_header_stat_broken=yes
11000else
11001  ac_cv_header_stat_broken=no
11002fi
11003rm -f conftest*
11004
11005fi
11006{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11007echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11008if test $ac_cv_header_stat_broken = yes; then
11009
11010cat >>confdefs.h <<\_ACEOF
11011#define STAT_MACROS_BROKEN 1
11012_ACEOF
11013
11014fi
11015
11016{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11017echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11018if test "${ac_cv_header_sys_wait_h+set}" = set; then
11019  echo $ECHO_N "(cached) $ECHO_C" >&6
11020else
11021  cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h.  */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h.  */
11027#include <sys/types.h>
11028#include <sys/wait.h>
11029#ifndef WEXITSTATUS
11030# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11031#endif
11032#ifndef WIFEXITED
11033# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11034#endif
11035
11036int
11037main ()
11038{
11039  int s;
11040  wait (&s);
11041  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046rm -f conftest.$ac_objext
11047if { (ac_try="$ac_compile"
11048case "(($ac_try" in
11049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050  *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053  (eval "$ac_compile") 2>conftest.er1
11054  ac_status=$?
11055  grep -v '^ *+' conftest.er1 >conftest.err
11056  rm -f conftest.er1
11057  cat conftest.err >&5
11058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059  (exit $ac_status); } &&
11060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061  { (case "(($ac_try" in
11062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063  *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066  (eval "$ac_try") 2>&5
11067  ac_status=$?
11068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069  (exit $ac_status); }; } &&
11070	 { ac_try='test -s conftest.$ac_objext'
11071  { (case "(($ac_try" in
11072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073  *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076  (eval "$ac_try") 2>&5
11077  ac_status=$?
11078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079  (exit $ac_status); }; }; then
11080  ac_cv_header_sys_wait_h=yes
11081else
11082  echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085	ac_cv_header_sys_wait_h=no
11086fi
11087
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089fi
11090{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11091echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11092if test $ac_cv_header_sys_wait_h = yes; then
11093
11094cat >>confdefs.h <<\_ACEOF
11095#define HAVE_SYS_WAIT_H 1
11096_ACEOF
11097
11098fi
11099
11100{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11101echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11102if test "${ac_cv_header_time+set}" = set; then
11103  echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105  cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h.  */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h.  */
11111#include <sys/types.h>
11112#include <sys/time.h>
11113#include <time.h>
11114
11115int
11116main ()
11117{
11118if ((struct tm *) 0)
11119return 0;
11120  ;
11121  return 0;
11122}
11123_ACEOF
11124rm -f conftest.$ac_objext
11125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128  *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131  (eval "$ac_compile") 2>conftest.er1
11132  ac_status=$?
11133  grep -v '^ *+' conftest.er1 >conftest.err
11134  rm -f conftest.er1
11135  cat conftest.err >&5
11136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137  (exit $ac_status); } &&
11138	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139  { (case "(($ac_try" in
11140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141  *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144  (eval "$ac_try") 2>&5
11145  ac_status=$?
11146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147  (exit $ac_status); }; } &&
11148	 { ac_try='test -s conftest.$ac_objext'
11149  { (case "(($ac_try" in
11150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151  *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154  (eval "$ac_try") 2>&5
11155  ac_status=$?
11156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157  (exit $ac_status); }; }; then
11158  ac_cv_header_time=yes
11159else
11160  echo "$as_me: failed program was:" >&5
11161sed 's/^/| /' conftest.$ac_ext >&5
11162
11163	ac_cv_header_time=no
11164fi
11165
11166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167fi
11168{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11169echo "${ECHO_T}$ac_cv_header_time" >&6; }
11170if test $ac_cv_header_time = yes; then
11171
11172cat >>confdefs.h <<\_ACEOF
11173#define TIME_WITH_SYS_TIME 1
11174_ACEOF
11175
11176fi
11177
11178
11179ac_ext=cpp
11180ac_cpp='$CXXCPP $CPPFLAGS'
11181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11184
11185
11186for ac_header in cxxabi.h
11187do
11188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192  echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194  cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h.  */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h.  */
11200#include <stddef.h>
11201
11202
11203#include <$ac_header>
11204_ACEOF
11205rm -f conftest.$ac_objext
11206if { (ac_try="$ac_compile"
11207case "(($ac_try" in
11208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209  *) ac_try_echo=$ac_try;;
11210esac
11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212  (eval "$ac_compile") 2>conftest.er1
11213  ac_status=$?
11214  grep -v '^ *+' conftest.er1 >conftest.err
11215  rm -f conftest.er1
11216  cat conftest.err >&5
11217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218  (exit $ac_status); } &&
11219	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11220  { (case "(($ac_try" in
11221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222  *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225  (eval "$ac_try") 2>&5
11226  ac_status=$?
11227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228  (exit $ac_status); }; } &&
11229	 { ac_try='test -s conftest.$ac_objext'
11230  { (case "(($ac_try" in
11231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232  *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235  (eval "$ac_try") 2>&5
11236  ac_status=$?
11237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238  (exit $ac_status); }; }; then
11239  eval "$as_ac_Header=yes"
11240else
11241  echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244	eval "$as_ac_Header=no"
11245fi
11246
11247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248fi
11249ac_res=`eval echo '${'$as_ac_Header'}'`
11250	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11251echo "${ECHO_T}$ac_res" >&6; }
11252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253  cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261ac_ext=c
11262ac_cpp='$CPP $CPPFLAGS'
11263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11265ac_compiler_gnu=$ac_cv_c_compiler_gnu
11266
11267
11268
11269
11270
11271
11272
11273for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11274do
11275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280  echo $ECHO_N "(cached) $ECHO_C" >&6
11281fi
11282ac_res=`eval echo '${'$as_ac_Header'}'`
11283	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11284echo "${ECHO_T}$ac_res" >&6; }
11285else
11286  # Is the header compilable?
11287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11289cat >conftest.$ac_ext <<_ACEOF
11290/* confdefs.h.  */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h.  */
11295$ac_includes_default
11296#include <$ac_header>
11297_ACEOF
11298rm -f conftest.$ac_objext
11299if { (ac_try="$ac_compile"
11300case "(($ac_try" in
11301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302  *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305  (eval "$ac_compile") 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } &&
11312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313  { (case "(($ac_try" in
11314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315  *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318  (eval "$ac_try") 2>&5
11319  ac_status=$?
11320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); }; } &&
11322	 { ac_try='test -s conftest.$ac_objext'
11323  { (case "(($ac_try" in
11324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325  *) ac_try_echo=$ac_try;;
11326esac
11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328  (eval "$ac_try") 2>&5
11329  ac_status=$?
11330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331  (exit $ac_status); }; }; then
11332  ac_header_compiler=yes
11333else
11334  echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337	ac_header_compiler=no
11338fi
11339
11340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342echo "${ECHO_T}$ac_header_compiler" >&6; }
11343
11344# Is the header present?
11345{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h.  */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h.  */
11353#include <$ac_header>
11354_ACEOF
11355if { (ac_try="$ac_cpp conftest.$ac_ext"
11356case "(($ac_try" in
11357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358  *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11362  ac_status=$?
11363  grep -v '^ *+' conftest.er1 >conftest.err
11364  rm -f conftest.er1
11365  cat conftest.err >&5
11366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367  (exit $ac_status); } >/dev/null; then
11368  if test -s conftest.err; then
11369    ac_cpp_err=$ac_c_preproc_warn_flag
11370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11371  else
11372    ac_cpp_err=
11373  fi
11374else
11375  ac_cpp_err=yes
11376fi
11377if test -z "$ac_cpp_err"; then
11378  ac_header_preproc=yes
11379else
11380  echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
11383  ac_header_preproc=no
11384fi
11385
11386rm -f conftest.err conftest.$ac_ext
11387{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388echo "${ECHO_T}$ac_header_preproc" >&6; }
11389
11390# So?  What about this header?
11391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392  yes:no: )
11393    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397    ac_header_preproc=yes
11398    ;;
11399  no:yes:* )
11400    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11403echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11404    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11407echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11412    ( cat <<\_ASBOX
11413## ------------------------------------ ##
11414## Report this to http://llvm.org/bugs/ ##
11415## ------------------------------------ ##
11416_ASBOX
11417     ) | sed "s/^/$as_me: WARNING:     /" >&2
11418    ;;
11419esac
11420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11423  echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425  eval "$as_ac_Header=\$ac_header_preproc"
11426fi
11427ac_res=`eval echo '${'$as_ac_Header'}'`
11428	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11429echo "${ECHO_T}$ac_res" >&6; }
11430
11431fi
11432if test `eval echo '${'$as_ac_Header'}'` = yes; then
11433  cat >>confdefs.h <<_ACEOF
11434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11435_ACEOF
11436
11437fi
11438
11439done
11440
11441
11442
11443
11444
11445
11446
11447for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11448do
11449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454  echo $ECHO_N "(cached) $ECHO_C" >&6
11455fi
11456ac_res=`eval echo '${'$as_ac_Header'}'`
11457	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11458echo "${ECHO_T}$ac_res" >&6; }
11459else
11460  # Is the header compilable?
11461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11463cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h.  */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h.  */
11469$ac_includes_default
11470#include <$ac_header>
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476  *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479  (eval "$ac_compile") 2>conftest.er1
11480  ac_status=$?
11481  grep -v '^ *+' conftest.er1 >conftest.err
11482  rm -f conftest.er1
11483  cat conftest.err >&5
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); } &&
11486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487  { (case "(($ac_try" in
11488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489  *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492  (eval "$ac_try") 2>&5
11493  ac_status=$?
11494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495  (exit $ac_status); }; } &&
11496	 { ac_try='test -s conftest.$ac_objext'
11497  { (case "(($ac_try" in
11498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499  *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502  (eval "$ac_try") 2>&5
11503  ac_status=$?
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); }; }; then
11506  ac_header_compiler=yes
11507else
11508  echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511	ac_header_compiler=no
11512fi
11513
11514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11516echo "${ECHO_T}$ac_header_compiler" >&6; }
11517
11518# Is the header present?
11519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11521cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h.  */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h.  */
11527#include <$ac_header>
11528_ACEOF
11529if { (ac_try="$ac_cpp conftest.$ac_ext"
11530case "(($ac_try" in
11531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532  *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11536  ac_status=$?
11537  grep -v '^ *+' conftest.er1 >conftest.err
11538  rm -f conftest.er1
11539  cat conftest.err >&5
11540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541  (exit $ac_status); } >/dev/null; then
11542  if test -s conftest.err; then
11543    ac_cpp_err=$ac_c_preproc_warn_flag
11544    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11545  else
11546    ac_cpp_err=
11547  fi
11548else
11549  ac_cpp_err=yes
11550fi
11551if test -z "$ac_cpp_err"; then
11552  ac_header_preproc=yes
11553else
11554  echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557  ac_header_preproc=no
11558fi
11559
11560rm -f conftest.err conftest.$ac_ext
11561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11562echo "${ECHO_T}$ac_header_preproc" >&6; }
11563
11564# So?  What about this header?
11565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11566  yes:no: )
11567    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11571    ac_header_preproc=yes
11572    ;;
11573  no:yes:* )
11574    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11576    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11577echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11578    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11580    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11581echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11584    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11586    ( cat <<\_ASBOX
11587## ------------------------------------ ##
11588## Report this to http://llvm.org/bugs/ ##
11589## ------------------------------------ ##
11590_ASBOX
11591     ) | sed "s/^/$as_me: WARNING:     /" >&2
11592    ;;
11593esac
11594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597  echo $ECHO_N "(cached) $ECHO_C" >&6
11598else
11599  eval "$as_ac_Header=\$ac_header_preproc"
11600fi
11601ac_res=`eval echo '${'$as_ac_Header'}'`
11602	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11603echo "${ECHO_T}$ac_res" >&6; }
11604
11605fi
11606if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607  cat >>confdefs.h <<_ACEOF
11608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11609_ACEOF
11610
11611fi
11612
11613done
11614
11615
11616for ac_header in utime.h
11617do
11618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623  echo $ECHO_N "(cached) $ECHO_C" >&6
11624fi
11625ac_res=`eval echo '${'$as_ac_Header'}'`
11626	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11627echo "${ECHO_T}$ac_res" >&6; }
11628else
11629  # Is the header compilable?
11630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11632cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h.  */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h.  */
11638$ac_includes_default
11639#include <$ac_header>
11640_ACEOF
11641rm -f conftest.$ac_objext
11642if { (ac_try="$ac_compile"
11643case "(($ac_try" in
11644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645  *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648  (eval "$ac_compile") 2>conftest.er1
11649  ac_status=$?
11650  grep -v '^ *+' conftest.er1 >conftest.err
11651  rm -f conftest.er1
11652  cat conftest.err >&5
11653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654  (exit $ac_status); } &&
11655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11656  { (case "(($ac_try" in
11657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658  *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661  (eval "$ac_try") 2>&5
11662  ac_status=$?
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); }; } &&
11665	 { ac_try='test -s conftest.$ac_objext'
11666  { (case "(($ac_try" in
11667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668  *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671  (eval "$ac_try") 2>&5
11672  ac_status=$?
11673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674  (exit $ac_status); }; }; then
11675  ac_header_compiler=yes
11676else
11677  echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680	ac_header_compiler=no
11681fi
11682
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11685echo "${ECHO_T}$ac_header_compiler" >&6; }
11686
11687# Is the header present?
11688{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11690cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h.  */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h.  */
11696#include <$ac_header>
11697_ACEOF
11698if { (ac_try="$ac_cpp conftest.$ac_ext"
11699case "(($ac_try" in
11700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701  *) ac_try_echo=$ac_try;;
11702esac
11703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11705  ac_status=$?
11706  grep -v '^ *+' conftest.er1 >conftest.err
11707  rm -f conftest.er1
11708  cat conftest.err >&5
11709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710  (exit $ac_status); } >/dev/null; then
11711  if test -s conftest.err; then
11712    ac_cpp_err=$ac_c_preproc_warn_flag
11713    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11714  else
11715    ac_cpp_err=
11716  fi
11717else
11718  ac_cpp_err=yes
11719fi
11720if test -z "$ac_cpp_err"; then
11721  ac_header_preproc=yes
11722else
11723  echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726  ac_header_preproc=no
11727fi
11728
11729rm -f conftest.err conftest.$ac_ext
11730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731echo "${ECHO_T}$ac_header_preproc" >&6; }
11732
11733# So?  What about this header?
11734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11735  yes:no: )
11736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11740    ac_header_preproc=yes
11741    ;;
11742  no:yes:* )
11743    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11745    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11746echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11747    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11749    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11750echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11753    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11755    ( cat <<\_ASBOX
11756## ------------------------------------ ##
11757## Report this to http://llvm.org/bugs/ ##
11758## ------------------------------------ ##
11759_ASBOX
11760     ) | sed "s/^/$as_me: WARNING:     /" >&2
11761    ;;
11762esac
11763{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766  echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768  eval "$as_ac_Header=\$ac_header_preproc"
11769fi
11770ac_res=`eval echo '${'$as_ac_Header'}'`
11771	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11772echo "${ECHO_T}$ac_res" >&6; }
11773
11774fi
11775if test `eval echo '${'$as_ac_Header'}'` = yes; then
11776  cat >>confdefs.h <<_ACEOF
11777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11778_ACEOF
11779
11780fi
11781
11782done
11783
11784
11785
11786
11787
11788
11789for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11790do
11791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796  echo $ECHO_N "(cached) $ECHO_C" >&6
11797fi
11798ac_res=`eval echo '${'$as_ac_Header'}'`
11799	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11800echo "${ECHO_T}$ac_res" >&6; }
11801else
11802  # Is the header compilable?
11803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11805cat >conftest.$ac_ext <<_ACEOF
11806/* confdefs.h.  */
11807_ACEOF
11808cat confdefs.h >>conftest.$ac_ext
11809cat >>conftest.$ac_ext <<_ACEOF
11810/* end confdefs.h.  */
11811$ac_includes_default
11812#include <$ac_header>
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (ac_try="$ac_compile"
11816case "(($ac_try" in
11817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818  *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821  (eval "$ac_compile") 2>conftest.er1
11822  ac_status=$?
11823  grep -v '^ *+' conftest.er1 >conftest.err
11824  rm -f conftest.er1
11825  cat conftest.err >&5
11826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827  (exit $ac_status); } &&
11828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829  { (case "(($ac_try" in
11830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831  *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834  (eval "$ac_try") 2>&5
11835  ac_status=$?
11836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837  (exit $ac_status); }; } &&
11838	 { ac_try='test -s conftest.$ac_objext'
11839  { (case "(($ac_try" in
11840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841  *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844  (eval "$ac_try") 2>&5
11845  ac_status=$?
11846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847  (exit $ac_status); }; }; then
11848  ac_header_compiler=yes
11849else
11850  echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853	ac_header_compiler=no
11854fi
11855
11856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11858echo "${ECHO_T}$ac_header_compiler" >&6; }
11859
11860# Is the header present?
11861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11863cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h.  */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h.  */
11869#include <$ac_header>
11870_ACEOF
11871if { (ac_try="$ac_cpp conftest.$ac_ext"
11872case "(($ac_try" in
11873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874  *) ac_try_echo=$ac_try;;
11875esac
11876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11878  ac_status=$?
11879  grep -v '^ *+' conftest.er1 >conftest.err
11880  rm -f conftest.er1
11881  cat conftest.err >&5
11882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883  (exit $ac_status); } >/dev/null; then
11884  if test -s conftest.err; then
11885    ac_cpp_err=$ac_c_preproc_warn_flag
11886    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11887  else
11888    ac_cpp_err=
11889  fi
11890else
11891  ac_cpp_err=yes
11892fi
11893if test -z "$ac_cpp_err"; then
11894  ac_header_preproc=yes
11895else
11896  echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899  ac_header_preproc=no
11900fi
11901
11902rm -f conftest.err conftest.$ac_ext
11903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904echo "${ECHO_T}$ac_header_preproc" >&6; }
11905
11906# So?  What about this header?
11907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11908  yes:no: )
11909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11913    ac_header_preproc=yes
11914    ;;
11915  no:yes:* )
11916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11928    ( cat <<\_ASBOX
11929## ------------------------------------ ##
11930## Report this to http://llvm.org/bugs/ ##
11931## ------------------------------------ ##
11932_ASBOX
11933     ) | sed "s/^/$as_me: WARNING:     /" >&2
11934    ;;
11935esac
11936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11939  echo $ECHO_N "(cached) $ECHO_C" >&6
11940else
11941  eval "$as_ac_Header=\$ac_header_preproc"
11942fi
11943ac_res=`eval echo '${'$as_ac_Header'}'`
11944	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11945echo "${ECHO_T}$ac_res" >&6; }
11946
11947fi
11948if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949  cat >>confdefs.h <<_ACEOF
11950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951_ACEOF
11952
11953fi
11954
11955done
11956
11957
11958
11959
11960for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11961do
11962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967  echo $ECHO_N "(cached) $ECHO_C" >&6
11968fi
11969ac_res=`eval echo '${'$as_ac_Header'}'`
11970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11971echo "${ECHO_T}$ac_res" >&6; }
11972else
11973  # Is the header compilable?
11974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11976cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h.  */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h.  */
11982$ac_includes_default
11983#include <$ac_header>
11984_ACEOF
11985rm -f conftest.$ac_objext
11986if { (ac_try="$ac_compile"
11987case "(($ac_try" in
11988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989  *) ac_try_echo=$ac_try;;
11990esac
11991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992  (eval "$ac_compile") 2>conftest.er1
11993  ac_status=$?
11994  grep -v '^ *+' conftest.er1 >conftest.err
11995  rm -f conftest.er1
11996  cat conftest.err >&5
11997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998  (exit $ac_status); } &&
11999	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12000  { (case "(($ac_try" in
12001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002  *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005  (eval "$ac_try") 2>&5
12006  ac_status=$?
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); }; } &&
12009	 { ac_try='test -s conftest.$ac_objext'
12010  { (case "(($ac_try" in
12011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012  *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015  (eval "$ac_try") 2>&5
12016  ac_status=$?
12017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018  (exit $ac_status); }; }; then
12019  ac_header_compiler=yes
12020else
12021  echo "$as_me: failed program was:" >&5
12022sed 's/^/| /' conftest.$ac_ext >&5
12023
12024	ac_header_compiler=no
12025fi
12026
12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029echo "${ECHO_T}$ac_header_compiler" >&6; }
12030
12031# Is the header present?
12032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12034cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h.  */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h.  */
12040#include <$ac_header>
12041_ACEOF
12042if { (ac_try="$ac_cpp conftest.$ac_ext"
12043case "(($ac_try" in
12044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045  *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12049  ac_status=$?
12050  grep -v '^ *+' conftest.er1 >conftest.err
12051  rm -f conftest.er1
12052  cat conftest.err >&5
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); } >/dev/null; then
12055  if test -s conftest.err; then
12056    ac_cpp_err=$ac_c_preproc_warn_flag
12057    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12058  else
12059    ac_cpp_err=
12060  fi
12061else
12062  ac_cpp_err=yes
12063fi
12064if test -z "$ac_cpp_err"; then
12065  ac_header_preproc=yes
12066else
12067  echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070  ac_header_preproc=no
12071fi
12072
12073rm -f conftest.err conftest.$ac_ext
12074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075echo "${ECHO_T}$ac_header_preproc" >&6; }
12076
12077# So?  What about this header?
12078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079  yes:no: )
12080    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084    ac_header_preproc=yes
12085    ;;
12086  no:yes:* )
12087    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12090echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12091    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12094echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099    ( cat <<\_ASBOX
12100## ------------------------------------ ##
12101## Report this to http://llvm.org/bugs/ ##
12102## ------------------------------------ ##
12103_ASBOX
12104     ) | sed "s/^/$as_me: WARNING:     /" >&2
12105    ;;
12106esac
12107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110  echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112  eval "$as_ac_Header=\$ac_header_preproc"
12113fi
12114ac_res=`eval echo '${'$as_ac_Header'}'`
12115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12116echo "${ECHO_T}$ac_res" >&6; }
12117
12118fi
12119if test `eval echo '${'$as_ac_Header'}'` = yes; then
12120  cat >>confdefs.h <<_ACEOF
12121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12122_ACEOF
12123
12124fi
12125
12126done
12127
12128
12129for ac_header in valgrind/valgrind.h
12130do
12131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12136  echo $ECHO_N "(cached) $ECHO_C" >&6
12137fi
12138ac_res=`eval echo '${'$as_ac_Header'}'`
12139	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12140echo "${ECHO_T}$ac_res" >&6; }
12141else
12142  # Is the header compilable?
12143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h.  */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h.  */
12151$ac_includes_default
12152#include <$ac_header>
12153_ACEOF
12154rm -f conftest.$ac_objext
12155if { (ac_try="$ac_compile"
12156case "(($ac_try" in
12157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158  *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161  (eval "$ac_compile") 2>conftest.er1
12162  ac_status=$?
12163  grep -v '^ *+' conftest.er1 >conftest.err
12164  rm -f conftest.er1
12165  cat conftest.err >&5
12166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167  (exit $ac_status); } &&
12168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169  { (case "(($ac_try" in
12170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171  *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174  (eval "$ac_try") 2>&5
12175  ac_status=$?
12176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177  (exit $ac_status); }; } &&
12178	 { ac_try='test -s conftest.$ac_objext'
12179  { (case "(($ac_try" in
12180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181  *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184  (eval "$ac_try") 2>&5
12185  ac_status=$?
12186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187  (exit $ac_status); }; }; then
12188  ac_header_compiler=yes
12189else
12190  echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193	ac_header_compiler=no
12194fi
12195
12196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198echo "${ECHO_T}$ac_header_compiler" >&6; }
12199
12200# Is the header present?
12201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12203cat >conftest.$ac_ext <<_ACEOF
12204/* confdefs.h.  */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
12208/* end confdefs.h.  */
12209#include <$ac_header>
12210_ACEOF
12211if { (ac_try="$ac_cpp conftest.$ac_ext"
12212case "(($ac_try" in
12213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214  *) ac_try_echo=$ac_try;;
12215esac
12216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12218  ac_status=$?
12219  grep -v '^ *+' conftest.er1 >conftest.err
12220  rm -f conftest.er1
12221  cat conftest.err >&5
12222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223  (exit $ac_status); } >/dev/null; then
12224  if test -s conftest.err; then
12225    ac_cpp_err=$ac_c_preproc_warn_flag
12226    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12227  else
12228    ac_cpp_err=
12229  fi
12230else
12231  ac_cpp_err=yes
12232fi
12233if test -z "$ac_cpp_err"; then
12234  ac_header_preproc=yes
12235else
12236  echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239  ac_header_preproc=no
12240fi
12241
12242rm -f conftest.err conftest.$ac_ext
12243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244echo "${ECHO_T}$ac_header_preproc" >&6; }
12245
12246# So?  What about this header?
12247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12248  yes:no: )
12249    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12253    ac_header_preproc=yes
12254    ;;
12255  no:yes:* )
12256    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12258    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12259echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12260    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12262    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12263echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12268    ( cat <<\_ASBOX
12269## ------------------------------------ ##
12270## Report this to http://llvm.org/bugs/ ##
12271## ------------------------------------ ##
12272_ASBOX
12273     ) | sed "s/^/$as_me: WARNING:     /" >&2
12274    ;;
12275esac
12276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279  echo $ECHO_N "(cached) $ECHO_C" >&6
12280else
12281  eval "$as_ac_Header=\$ac_header_preproc"
12282fi
12283ac_res=`eval echo '${'$as_ac_Header'}'`
12284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12285echo "${ECHO_T}$ac_res" >&6; }
12286
12287fi
12288if test `eval echo '${'$as_ac_Header'}'` = yes; then
12289  cat >>confdefs.h <<_ACEOF
12290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291_ACEOF
12292
12293fi
12294
12295done
12296
12297
12298for ac_header in fenv.h
12299do
12300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12302  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305  echo $ECHO_N "(cached) $ECHO_C" >&6
12306fi
12307ac_res=`eval echo '${'$as_ac_Header'}'`
12308	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12309echo "${ECHO_T}$ac_res" >&6; }
12310else
12311  # Is the header compilable?
12312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12314cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h.  */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h.  */
12320$ac_includes_default
12321#include <$ac_header>
12322_ACEOF
12323rm -f conftest.$ac_objext
12324if { (ac_try="$ac_compile"
12325case "(($ac_try" in
12326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327  *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330  (eval "$ac_compile") 2>conftest.er1
12331  ac_status=$?
12332  grep -v '^ *+' conftest.er1 >conftest.err
12333  rm -f conftest.er1
12334  cat conftest.err >&5
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); } &&
12337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338  { (case "(($ac_try" in
12339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340  *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343  (eval "$ac_try") 2>&5
12344  ac_status=$?
12345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346  (exit $ac_status); }; } &&
12347	 { ac_try='test -s conftest.$ac_objext'
12348  { (case "(($ac_try" in
12349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350  *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353  (eval "$ac_try") 2>&5
12354  ac_status=$?
12355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356  (exit $ac_status); }; }; then
12357  ac_header_compiler=yes
12358else
12359  echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362	ac_header_compiler=no
12363fi
12364
12365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367echo "${ECHO_T}$ac_header_compiler" >&6; }
12368
12369# Is the header present?
12370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12372cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h.  */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h.  */
12378#include <$ac_header>
12379_ACEOF
12380if { (ac_try="$ac_cpp conftest.$ac_ext"
12381case "(($ac_try" in
12382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383  *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12387  ac_status=$?
12388  grep -v '^ *+' conftest.er1 >conftest.err
12389  rm -f conftest.er1
12390  cat conftest.err >&5
12391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392  (exit $ac_status); } >/dev/null; then
12393  if test -s conftest.err; then
12394    ac_cpp_err=$ac_c_preproc_warn_flag
12395    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12396  else
12397    ac_cpp_err=
12398  fi
12399else
12400  ac_cpp_err=yes
12401fi
12402if test -z "$ac_cpp_err"; then
12403  ac_header_preproc=yes
12404else
12405  echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408  ac_header_preproc=no
12409fi
12410
12411rm -f conftest.err conftest.$ac_ext
12412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12413echo "${ECHO_T}$ac_header_preproc" >&6; }
12414
12415# So?  What about this header?
12416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12417  yes:no: )
12418    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12422    ac_header_preproc=yes
12423    ;;
12424  no:yes:* )
12425    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12427    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12428echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12429    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12431    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12432echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12433    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12435    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12437    ( cat <<\_ASBOX
12438## ------------------------------------ ##
12439## Report this to http://llvm.org/bugs/ ##
12440## ------------------------------------ ##
12441_ASBOX
12442     ) | sed "s/^/$as_me: WARNING:     /" >&2
12443    ;;
12444esac
12445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12448  echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
12450  eval "$as_ac_Header=\$ac_header_preproc"
12451fi
12452ac_res=`eval echo '${'$as_ac_Header'}'`
12453	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12454echo "${ECHO_T}$ac_res" >&6; }
12455
12456fi
12457if test `eval echo '${'$as_ac_Header'}'` = yes; then
12458  cat >>confdefs.h <<_ACEOF
12459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460_ACEOF
12461
12462fi
12463
12464done
12465
12466{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12467echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12468if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12469  echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471  cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h.  */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h.  */
12477#include <fenv.h>
12478
12479int
12480main ()
12481{
12482#ifndef FE_ALL_EXCEPT
12483  char *p = (char *) FE_ALL_EXCEPT;
12484  return !p;
12485#endif
12486
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491rm -f conftest.$ac_objext
12492if { (ac_try="$ac_compile"
12493case "(($ac_try" in
12494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495  *) ac_try_echo=$ac_try;;
12496esac
12497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498  (eval "$ac_compile") 2>conftest.er1
12499  ac_status=$?
12500  grep -v '^ *+' conftest.er1 >conftest.err
12501  rm -f conftest.er1
12502  cat conftest.err >&5
12503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504  (exit $ac_status); } &&
12505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506  { (case "(($ac_try" in
12507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508  *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511  (eval "$ac_try") 2>&5
12512  ac_status=$?
12513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514  (exit $ac_status); }; } &&
12515	 { ac_try='test -s conftest.$ac_objext'
12516  { (case "(($ac_try" in
12517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518  *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521  (eval "$ac_try") 2>&5
12522  ac_status=$?
12523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524  (exit $ac_status); }; }; then
12525  ac_cv_have_decl_FE_ALL_EXCEPT=yes
12526else
12527  echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530	ac_cv_have_decl_FE_ALL_EXCEPT=no
12531fi
12532
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
12535{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12536echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12537if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12538
12539cat >>confdefs.h <<_ACEOF
12540#define HAVE_DECL_FE_ALL_EXCEPT 1
12541_ACEOF
12542
12543
12544else
12545  cat >>confdefs.h <<_ACEOF
12546#define HAVE_DECL_FE_ALL_EXCEPT 0
12547_ACEOF
12548
12549
12550fi
12551{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12552echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12553if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12554  echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556  cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h.  */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h.  */
12562#include <fenv.h>
12563
12564int
12565main ()
12566{
12567#ifndef FE_INEXACT
12568  char *p = (char *) FE_INEXACT;
12569  return !p;
12570#endif
12571
12572  ;
12573  return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext
12577if { (ac_try="$ac_compile"
12578case "(($ac_try" in
12579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580  *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583  (eval "$ac_compile") 2>conftest.er1
12584  ac_status=$?
12585  grep -v '^ *+' conftest.er1 >conftest.err
12586  rm -f conftest.er1
12587  cat conftest.err >&5
12588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589  (exit $ac_status); } &&
12590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591  { (case "(($ac_try" in
12592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593  *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596  (eval "$ac_try") 2>&5
12597  ac_status=$?
12598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599  (exit $ac_status); }; } &&
12600	 { ac_try='test -s conftest.$ac_objext'
12601  { (case "(($ac_try" in
12602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603  *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606  (eval "$ac_try") 2>&5
12607  ac_status=$?
12608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609  (exit $ac_status); }; }; then
12610  ac_cv_have_decl_FE_INEXACT=yes
12611else
12612  echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615	ac_cv_have_decl_FE_INEXACT=no
12616fi
12617
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619fi
12620{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12621echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12622if test $ac_cv_have_decl_FE_INEXACT = yes; then
12623
12624cat >>confdefs.h <<_ACEOF
12625#define HAVE_DECL_FE_INEXACT 1
12626_ACEOF
12627
12628
12629else
12630  cat >>confdefs.h <<_ACEOF
12631#define HAVE_DECL_FE_INEXACT 0
12632_ACEOF
12633
12634
12635fi
12636
12637
12638if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12639
12640for ac_header in pthread.h
12641do
12642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647  echo $ECHO_N "(cached) $ECHO_C" >&6
12648fi
12649ac_res=`eval echo '${'$as_ac_Header'}'`
12650	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12651echo "${ECHO_T}$ac_res" >&6; }
12652else
12653  # Is the header compilable?
12654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h.  */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h.  */
12662$ac_includes_default
12663#include <$ac_header>
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (ac_try="$ac_compile"
12667case "(($ac_try" in
12668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669  *) ac_try_echo=$ac_try;;
12670esac
12671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672  (eval "$ac_compile") 2>conftest.er1
12673  ac_status=$?
12674  grep -v '^ *+' conftest.er1 >conftest.err
12675  rm -f conftest.er1
12676  cat conftest.err >&5
12677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678  (exit $ac_status); } &&
12679	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680  { (case "(($ac_try" in
12681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682  *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685  (eval "$ac_try") 2>&5
12686  ac_status=$?
12687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688  (exit $ac_status); }; } &&
12689	 { ac_try='test -s conftest.$ac_objext'
12690  { (case "(($ac_try" in
12691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692  *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695  (eval "$ac_try") 2>&5
12696  ac_status=$?
12697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698  (exit $ac_status); }; }; then
12699  ac_header_compiler=yes
12700else
12701  echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704	ac_header_compiler=no
12705fi
12706
12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709echo "${ECHO_T}$ac_header_compiler" >&6; }
12710
12711# Is the header present?
12712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12714cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h.  */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h.  */
12720#include <$ac_header>
12721_ACEOF
12722if { (ac_try="$ac_cpp conftest.$ac_ext"
12723case "(($ac_try" in
12724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725  *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12729  ac_status=$?
12730  grep -v '^ *+' conftest.er1 >conftest.err
12731  rm -f conftest.er1
12732  cat conftest.err >&5
12733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); } >/dev/null; then
12735  if test -s conftest.err; then
12736    ac_cpp_err=$ac_c_preproc_warn_flag
12737    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12738  else
12739    ac_cpp_err=
12740  fi
12741else
12742  ac_cpp_err=yes
12743fi
12744if test -z "$ac_cpp_err"; then
12745  ac_header_preproc=yes
12746else
12747  echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
12750  ac_header_preproc=no
12751fi
12752
12753rm -f conftest.err conftest.$ac_ext
12754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12755echo "${ECHO_T}$ac_header_preproc" >&6; }
12756
12757# So?  What about this header?
12758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12759  yes:no: )
12760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12764    ac_header_preproc=yes
12765    ;;
12766  no:yes:* )
12767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12779    ( cat <<\_ASBOX
12780## ------------------------------------ ##
12781## Report this to http://llvm.org/bugs/ ##
12782## ------------------------------------ ##
12783_ASBOX
12784     ) | sed "s/^/$as_me: WARNING:     /" >&2
12785    ;;
12786esac
12787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790  echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792  eval "$as_ac_Header=\$ac_header_preproc"
12793fi
12794ac_res=`eval echo '${'$as_ac_Header'}'`
12795	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12796echo "${ECHO_T}$ac_res" >&6; }
12797
12798fi
12799if test `eval echo '${'$as_ac_Header'}'` = yes; then
12800  cat >>confdefs.h <<_ACEOF
12801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12802_ACEOF
12803 HAVE_PTHREAD=1
12804
12805else
12806  HAVE_PTHREAD=0
12807
12808fi
12809
12810done
12811
12812else
12813  HAVE_PTHREAD=0
12814
12815fi
12816if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12817
12818for ac_header in zlib.h
12819do
12820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12822  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825  echo $ECHO_N "(cached) $ECHO_C" >&6
12826fi
12827ac_res=`eval echo '${'$as_ac_Header'}'`
12828	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12829echo "${ECHO_T}$ac_res" >&6; }
12830else
12831  # Is the header compilable?
12832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h.  */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h.  */
12840$ac_includes_default
12841#include <$ac_header>
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (ac_try="$ac_compile"
12845case "(($ac_try" in
12846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847  *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850  (eval "$ac_compile") 2>conftest.er1
12851  ac_status=$?
12852  grep -v '^ *+' conftest.er1 >conftest.err
12853  rm -f conftest.er1
12854  cat conftest.err >&5
12855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856  (exit $ac_status); } &&
12857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858  { (case "(($ac_try" in
12859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860  *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863  (eval "$ac_try") 2>&5
12864  ac_status=$?
12865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866  (exit $ac_status); }; } &&
12867	 { ac_try='test -s conftest.$ac_objext'
12868  { (case "(($ac_try" in
12869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870  *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873  (eval "$ac_try") 2>&5
12874  ac_status=$?
12875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876  (exit $ac_status); }; }; then
12877  ac_header_compiler=yes
12878else
12879  echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882	ac_header_compiler=no
12883fi
12884
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887echo "${ECHO_T}$ac_header_compiler" >&6; }
12888
12889# Is the header present?
12890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h.  */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h.  */
12898#include <$ac_header>
12899_ACEOF
12900if { (ac_try="$ac_cpp conftest.$ac_ext"
12901case "(($ac_try" in
12902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903  *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907  ac_status=$?
12908  grep -v '^ *+' conftest.er1 >conftest.err
12909  rm -f conftest.er1
12910  cat conftest.err >&5
12911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912  (exit $ac_status); } >/dev/null; then
12913  if test -s conftest.err; then
12914    ac_cpp_err=$ac_c_preproc_warn_flag
12915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12916  else
12917    ac_cpp_err=
12918  fi
12919else
12920  ac_cpp_err=yes
12921fi
12922if test -z "$ac_cpp_err"; then
12923  ac_header_preproc=yes
12924else
12925  echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928  ac_header_preproc=no
12929fi
12930
12931rm -f conftest.err conftest.$ac_ext
12932{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933echo "${ECHO_T}$ac_header_preproc" >&6; }
12934
12935# So?  What about this header?
12936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12937  yes:no: )
12938    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12942    ac_header_preproc=yes
12943    ;;
12944  no:yes:* )
12945    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12947    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12948echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12949    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12951    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12952echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12953    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12955    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12957    ( cat <<\_ASBOX
12958## ------------------------------------ ##
12959## Report this to http://llvm.org/bugs/ ##
12960## ------------------------------------ ##
12961_ASBOX
12962     ) | sed "s/^/$as_me: WARNING:     /" >&2
12963    ;;
12964esac
12965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12968  echo $ECHO_N "(cached) $ECHO_C" >&6
12969else
12970  eval "$as_ac_Header=\$ac_header_preproc"
12971fi
12972ac_res=`eval echo '${'$as_ac_Header'}'`
12973	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12974echo "${ECHO_T}$ac_res" >&6; }
12975
12976fi
12977if test `eval echo '${'$as_ac_Header'}'` = yes; then
12978  cat >>confdefs.h <<_ACEOF
12979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12980_ACEOF
12981 HAVE_LIBZ=1
12982
12983else
12984  HAVE_LIBZ=0
12985
12986fi
12987
12988done
12989
12990else
12991  HAVE_LIBZ=0
12992
12993fi
12994
12995if test "$llvm_cv_enable_libffi" = "yes" ; then
12996
12997
12998for ac_header in ffi.h ffi/ffi.h
12999do
13000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005  echo $ECHO_N "(cached) $ECHO_C" >&6
13006fi
13007ac_res=`eval echo '${'$as_ac_Header'}'`
13008	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13009echo "${ECHO_T}$ac_res" >&6; }
13010else
13011  # Is the header compilable?
13012{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h.  */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h.  */
13020$ac_includes_default
13021#include <$ac_header>
13022_ACEOF
13023rm -f conftest.$ac_objext
13024if { (ac_try="$ac_compile"
13025case "(($ac_try" in
13026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027  *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030  (eval "$ac_compile") 2>conftest.er1
13031  ac_status=$?
13032  grep -v '^ *+' conftest.er1 >conftest.err
13033  rm -f conftest.er1
13034  cat conftest.err >&5
13035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036  (exit $ac_status); } &&
13037	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038  { (case "(($ac_try" in
13039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040  *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043  (eval "$ac_try") 2>&5
13044  ac_status=$?
13045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046  (exit $ac_status); }; } &&
13047	 { ac_try='test -s conftest.$ac_objext'
13048  { (case "(($ac_try" in
13049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050  *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053  (eval "$ac_try") 2>&5
13054  ac_status=$?
13055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056  (exit $ac_status); }; }; then
13057  ac_header_compiler=yes
13058else
13059  echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062	ac_header_compiler=no
13063fi
13064
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067echo "${ECHO_T}$ac_header_compiler" >&6; }
13068
13069# Is the header present?
13070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h.  */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h.  */
13078#include <$ac_header>
13079_ACEOF
13080if { (ac_try="$ac_cpp conftest.$ac_ext"
13081case "(($ac_try" in
13082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083  *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087  ac_status=$?
13088  grep -v '^ *+' conftest.er1 >conftest.err
13089  rm -f conftest.er1
13090  cat conftest.err >&5
13091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092  (exit $ac_status); } >/dev/null; then
13093  if test -s conftest.err; then
13094    ac_cpp_err=$ac_c_preproc_warn_flag
13095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13096  else
13097    ac_cpp_err=
13098  fi
13099else
13100  ac_cpp_err=yes
13101fi
13102if test -z "$ac_cpp_err"; then
13103  ac_header_preproc=yes
13104else
13105  echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108  ac_header_preproc=no
13109fi
13110
13111rm -f conftest.err conftest.$ac_ext
13112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113echo "${ECHO_T}$ac_header_preproc" >&6; }
13114
13115# So?  What about this header?
13116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13117  yes:no: )
13118    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122    ac_header_preproc=yes
13123    ;;
13124  no:yes:* )
13125    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13128echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13129    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13132echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137    ( cat <<\_ASBOX
13138## ------------------------------------ ##
13139## Report this to http://llvm.org/bugs/ ##
13140## ------------------------------------ ##
13141_ASBOX
13142     ) | sed "s/^/$as_me: WARNING:     /" >&2
13143    ;;
13144esac
13145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148  echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150  eval "$as_ac_Header=\$ac_header_preproc"
13151fi
13152ac_res=`eval echo '${'$as_ac_Header'}'`
13153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13154echo "${ECHO_T}$ac_res" >&6; }
13155
13156fi
13157if test `eval echo '${'$as_ac_Header'}'` = yes; then
13158  cat >>confdefs.h <<_ACEOF
13159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13160_ACEOF
13161
13162fi
13163
13164done
13165
13166fi
13167
13168
13169for ac_header in CrashReporterClient.h
13170do
13171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13173  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13176  echo $ECHO_N "(cached) $ECHO_C" >&6
13177fi
13178ac_res=`eval echo '${'$as_ac_Header'}'`
13179	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13180echo "${ECHO_T}$ac_res" >&6; }
13181else
13182  # Is the header compilable?
13183{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13185cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h.  */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h.  */
13191$ac_includes_default
13192#include <$ac_header>
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198  *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201  (eval "$ac_compile") 2>conftest.er1
13202  ac_status=$?
13203  grep -v '^ *+' conftest.er1 >conftest.err
13204  rm -f conftest.er1
13205  cat conftest.err >&5
13206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207  (exit $ac_status); } &&
13208	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13209  { (case "(($ac_try" in
13210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211  *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214  (eval "$ac_try") 2>&5
13215  ac_status=$?
13216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217  (exit $ac_status); }; } &&
13218	 { ac_try='test -s conftest.$ac_objext'
13219  { (case "(($ac_try" in
13220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221  *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224  (eval "$ac_try") 2>&5
13225  ac_status=$?
13226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227  (exit $ac_status); }; }; then
13228  ac_header_compiler=yes
13229else
13230  echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233	ac_header_compiler=no
13234fi
13235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238echo "${ECHO_T}$ac_header_compiler" >&6; }
13239
13240# Is the header present?
13241{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h.  */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h.  */
13249#include <$ac_header>
13250_ACEOF
13251if { (ac_try="$ac_cpp conftest.$ac_ext"
13252case "(($ac_try" in
13253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254  *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13258  ac_status=$?
13259  grep -v '^ *+' conftest.er1 >conftest.err
13260  rm -f conftest.er1
13261  cat conftest.err >&5
13262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263  (exit $ac_status); } >/dev/null; then
13264  if test -s conftest.err; then
13265    ac_cpp_err=$ac_c_preproc_warn_flag
13266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13267  else
13268    ac_cpp_err=
13269  fi
13270else
13271  ac_cpp_err=yes
13272fi
13273if test -z "$ac_cpp_err"; then
13274  ac_header_preproc=yes
13275else
13276  echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279  ac_header_preproc=no
13280fi
13281
13282rm -f conftest.err conftest.$ac_ext
13283{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13284echo "${ECHO_T}$ac_header_preproc" >&6; }
13285
13286# So?  What about this header?
13287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13288  yes:no: )
13289    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13293    ac_header_preproc=yes
13294    ;;
13295  no:yes:* )
13296    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13298    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13299echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13300    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13302    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13303echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13304    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13306    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13308    ( cat <<\_ASBOX
13309## ------------------------------------ ##
13310## Report this to http://llvm.org/bugs/ ##
13311## ------------------------------------ ##
13312_ASBOX
13313     ) | sed "s/^/$as_me: WARNING:     /" >&2
13314    ;;
13315esac
13316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319  echo $ECHO_N "(cached) $ECHO_C" >&6
13320else
13321  eval "$as_ac_Header=\$ac_header_preproc"
13322fi
13323ac_res=`eval echo '${'$as_ac_Header'}'`
13324	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13325echo "${ECHO_T}$ac_res" >&6; }
13326
13327fi
13328if test `eval echo '${'$as_ac_Header'}'` = yes; then
13329  cat >>confdefs.h <<_ACEOF
13330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331_ACEOF
13332
13333fi
13334
13335done
13336
13337
13338{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13339echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13340cat >conftest.$ac_ext <<_ACEOF
13341
13342  /* confdefs.h.  */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h.  */
13347
13348    extern const char *__crashreporter_info__;
13349    int main() {
13350      __crashreporter_info__ = "test";
13351      return 0;
13352    }
13353
13354
13355_ACEOF
13356rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360  *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363  (eval "$ac_link") 2>conftest.er1
13364  ac_status=$?
13365  grep -v '^ *+' conftest.er1 >conftest.err
13366  rm -f conftest.er1
13367  cat conftest.err >&5
13368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369  (exit $ac_status); } &&
13370	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371  { (case "(($ac_try" in
13372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373  *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376  (eval "$ac_try") 2>&5
13377  ac_status=$?
13378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379  (exit $ac_status); }; } &&
13380	 { ac_try='test -s conftest$ac_exeext'
13381  { (case "(($ac_try" in
13382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383  *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386  (eval "$ac_try") 2>&5
13387  ac_status=$?
13388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389  (exit $ac_status); }; }; then
13390
13391  { echo "$as_me:$LINENO: result: yes" >&5
13392echo "${ECHO_T}yes" >&6; }
13393
13394cat >>confdefs.h <<\_ACEOF
13395#define HAVE_CRASHREPORTER_INFO 1
13396_ACEOF
13397
13398
13399else
13400  echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403
13404  { echo "$as_me:$LINENO: result: no" >&5
13405echo "${ECHO_T}no" >&6; }
13406
13407cat >>confdefs.h <<\_ACEOF
13408#define HAVE_CRASHREPORTER_INFO 0
13409_ACEOF
13410
13411
13412fi
13413
13414rm -f core conftest.err conftest.$ac_objext \
13415      conftest$ac_exeext conftest.$ac_ext
13416
13417
13418
13419  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13420echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13421if test "${ac_cv_huge_val_sanity+set}" = set; then
13422  echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424
13425    ac_ext=cpp
13426ac_cpp='$CXXCPP $CPPFLAGS'
13427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13430
13431    ac_save_CXXFLAGS=$CXXFLAGS
13432    CXXFLAGS="$CXXFLAGS -pedantic"
13433    if test "$cross_compiling" = yes; then
13434  ac_cv_huge_val_sanity=yes
13435else
13436  cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h.  */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h.  */
13442#include <math.h>
13443int
13444main ()
13445{
13446double x = HUGE_VAL; return x != x;
13447  ;
13448  return 0;
13449}
13450_ACEOF
13451rm -f conftest$ac_exeext
13452if { (ac_try="$ac_link"
13453case "(($ac_try" in
13454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455  *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458  (eval "$ac_link") 2>&5
13459  ac_status=$?
13460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13462  { (case "(($ac_try" in
13463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464  *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467  (eval "$ac_try") 2>&5
13468  ac_status=$?
13469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470  (exit $ac_status); }; }; then
13471  ac_cv_huge_val_sanity=yes
13472else
13473  echo "$as_me: program exited with status $ac_status" >&5
13474echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477( exit $ac_status )
13478ac_cv_huge_val_sanity=no
13479fi
13480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13481fi
13482
13483
13484    CXXFLAGS=$ac_save_CXXFLAGS
13485    ac_ext=c
13486ac_cpp='$CPP $CPPFLAGS'
13487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489ac_compiler_gnu=$ac_cv_c_compiler_gnu
13490
13491
13492fi
13493{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13494echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13495  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13496
13497
13498{ echo "$as_me:$LINENO: checking for pid_t" >&5
13499echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13500if test "${ac_cv_type_pid_t+set}" = set; then
13501  echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503  cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h.  */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h.  */
13509$ac_includes_default
13510typedef pid_t ac__type_new_;
13511int
13512main ()
13513{
13514if ((ac__type_new_ *) 0)
13515  return 0;
13516if (sizeof (ac__type_new_))
13517  return 0;
13518  ;
13519  return 0;
13520}
13521_ACEOF
13522rm -f conftest.$ac_objext
13523if { (ac_try="$ac_compile"
13524case "(($ac_try" in
13525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526  *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529  (eval "$ac_compile") 2>conftest.er1
13530  ac_status=$?
13531  grep -v '^ *+' conftest.er1 >conftest.err
13532  rm -f conftest.er1
13533  cat conftest.err >&5
13534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535  (exit $ac_status); } &&
13536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537  { (case "(($ac_try" in
13538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539  *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542  (eval "$ac_try") 2>&5
13543  ac_status=$?
13544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545  (exit $ac_status); }; } &&
13546	 { ac_try='test -s conftest.$ac_objext'
13547  { (case "(($ac_try" in
13548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549  *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552  (eval "$ac_try") 2>&5
13553  ac_status=$?
13554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555  (exit $ac_status); }; }; then
13556  ac_cv_type_pid_t=yes
13557else
13558  echo "$as_me: failed program was:" >&5
13559sed 's/^/| /' conftest.$ac_ext >&5
13560
13561	ac_cv_type_pid_t=no
13562fi
13563
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565fi
13566{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13567echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13568if test $ac_cv_type_pid_t = yes; then
13569  :
13570else
13571
13572cat >>confdefs.h <<_ACEOF
13573#define pid_t int
13574_ACEOF
13575
13576fi
13577
13578{ echo "$as_me:$LINENO: checking for size_t" >&5
13579echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13580if test "${ac_cv_type_size_t+set}" = set; then
13581  echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583  cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h.  */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h.  */
13589$ac_includes_default
13590typedef size_t ac__type_new_;
13591int
13592main ()
13593{
13594if ((ac__type_new_ *) 0)
13595  return 0;
13596if (sizeof (ac__type_new_))
13597  return 0;
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (ac_try="$ac_compile"
13604case "(($ac_try" in
13605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606  *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609  (eval "$ac_compile") 2>conftest.er1
13610  ac_status=$?
13611  grep -v '^ *+' conftest.er1 >conftest.err
13612  rm -f conftest.er1
13613  cat conftest.err >&5
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); } &&
13616	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617  { (case "(($ac_try" in
13618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619  *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622  (eval "$ac_try") 2>&5
13623  ac_status=$?
13624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625  (exit $ac_status); }; } &&
13626	 { ac_try='test -s conftest.$ac_objext'
13627  { (case "(($ac_try" in
13628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629  *) ac_try_echo=$ac_try;;
13630esac
13631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632  (eval "$ac_try") 2>&5
13633  ac_status=$?
13634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635  (exit $ac_status); }; }; then
13636  ac_cv_type_size_t=yes
13637else
13638  echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641	ac_cv_type_size_t=no
13642fi
13643
13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645fi
13646{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13647echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13648if test $ac_cv_type_size_t = yes; then
13649  :
13650else
13651
13652cat >>confdefs.h <<_ACEOF
13653#define size_t unsigned int
13654_ACEOF
13655
13656fi
13657
13658
13659cat >>confdefs.h <<_ACEOF
13660#define RETSIGTYPE void
13661_ACEOF
13662
13663{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13664echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13665if test "${ac_cv_struct_tm+set}" = set; then
13666  echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668  cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h.  */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h.  */
13674#include <sys/types.h>
13675#include <time.h>
13676
13677int
13678main ()
13679{
13680struct tm *tp; tp->tm_sec;
13681  ;
13682  return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (ac_try="$ac_compile"
13687case "(($ac_try" in
13688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689  *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692  (eval "$ac_compile") 2>conftest.er1
13693  ac_status=$?
13694  grep -v '^ *+' conftest.er1 >conftest.err
13695  rm -f conftest.er1
13696  cat conftest.err >&5
13697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698  (exit $ac_status); } &&
13699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700  { (case "(($ac_try" in
13701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702  *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705  (eval "$ac_try") 2>&5
13706  ac_status=$?
13707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708  (exit $ac_status); }; } &&
13709	 { ac_try='test -s conftest.$ac_objext'
13710  { (case "(($ac_try" in
13711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712  *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715  (eval "$ac_try") 2>&5
13716  ac_status=$?
13717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718  (exit $ac_status); }; }; then
13719  ac_cv_struct_tm=time.h
13720else
13721  echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724	ac_cv_struct_tm=sys/time.h
13725fi
13726
13727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728fi
13729{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13730echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13731if test $ac_cv_struct_tm = sys/time.h; then
13732
13733cat >>confdefs.h <<\_ACEOF
13734#define TM_IN_SYS_TIME 1
13735_ACEOF
13736
13737fi
13738
13739{ echo "$as_me:$LINENO: checking for int64_t" >&5
13740echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13741if test "${ac_cv_type_int64_t+set}" = set; then
13742  echo $ECHO_N "(cached) $ECHO_C" >&6
13743else
13744  cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h.  */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h.  */
13750$ac_includes_default
13751typedef int64_t ac__type_new_;
13752int
13753main ()
13754{
13755if ((ac__type_new_ *) 0)
13756  return 0;
13757if (sizeof (ac__type_new_))
13758  return 0;
13759  ;
13760  return 0;
13761}
13762_ACEOF
13763rm -f conftest.$ac_objext
13764if { (ac_try="$ac_compile"
13765case "(($ac_try" in
13766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767  *) ac_try_echo=$ac_try;;
13768esac
13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770  (eval "$ac_compile") 2>conftest.er1
13771  ac_status=$?
13772  grep -v '^ *+' conftest.er1 >conftest.err
13773  rm -f conftest.er1
13774  cat conftest.err >&5
13775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776  (exit $ac_status); } &&
13777	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778  { (case "(($ac_try" in
13779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780  *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783  (eval "$ac_try") 2>&5
13784  ac_status=$?
13785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786  (exit $ac_status); }; } &&
13787	 { ac_try='test -s conftest.$ac_objext'
13788  { (case "(($ac_try" in
13789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790  *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793  (eval "$ac_try") 2>&5
13794  ac_status=$?
13795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796  (exit $ac_status); }; }; then
13797  ac_cv_type_int64_t=yes
13798else
13799  echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802	ac_cv_type_int64_t=no
13803fi
13804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806fi
13807{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13808echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13809if test $ac_cv_type_int64_t = yes; then
13810
13811cat >>confdefs.h <<_ACEOF
13812#define HAVE_INT64_T 1
13813_ACEOF
13814
13815
13816else
13817  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13818echo "$as_me: error: Type int64_t required but not found" >&2;}
13819   { (exit 1); exit 1; }; }
13820fi
13821
13822{ echo "$as_me:$LINENO: checking for uint64_t" >&5
13823echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13824if test "${ac_cv_type_uint64_t+set}" = set; then
13825  echo $ECHO_N "(cached) $ECHO_C" >&6
13826else
13827  cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h.  */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h.  */
13833$ac_includes_default
13834typedef uint64_t ac__type_new_;
13835int
13836main ()
13837{
13838if ((ac__type_new_ *) 0)
13839  return 0;
13840if (sizeof (ac__type_new_))
13841  return 0;
13842  ;
13843  return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (ac_try="$ac_compile"
13848case "(($ac_try" in
13849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850  *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853  (eval "$ac_compile") 2>conftest.er1
13854  ac_status=$?
13855  grep -v '^ *+' conftest.er1 >conftest.err
13856  rm -f conftest.er1
13857  cat conftest.err >&5
13858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859  (exit $ac_status); } &&
13860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861  { (case "(($ac_try" in
13862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863  *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866  (eval "$ac_try") 2>&5
13867  ac_status=$?
13868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869  (exit $ac_status); }; } &&
13870	 { ac_try='test -s conftest.$ac_objext'
13871  { (case "(($ac_try" in
13872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873  *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876  (eval "$ac_try") 2>&5
13877  ac_status=$?
13878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879  (exit $ac_status); }; }; then
13880  ac_cv_type_uint64_t=yes
13881else
13882  echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885	ac_cv_type_uint64_t=no
13886fi
13887
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889fi
13890{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13891echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13892if test $ac_cv_type_uint64_t = yes; then
13893
13894cat >>confdefs.h <<_ACEOF
13895#define HAVE_UINT64_T 1
13896_ACEOF
13897
13898
13899else
13900  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13901echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13902if test "${ac_cv_type_u_int64_t+set}" = set; then
13903  echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905  cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h.  */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h.  */
13911$ac_includes_default
13912typedef u_int64_t ac__type_new_;
13913int
13914main ()
13915{
13916if ((ac__type_new_ *) 0)
13917  return 0;
13918if (sizeof (ac__type_new_))
13919  return 0;
13920  ;
13921  return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (ac_try="$ac_compile"
13926case "(($ac_try" in
13927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928  *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931  (eval "$ac_compile") 2>conftest.er1
13932  ac_status=$?
13933  grep -v '^ *+' conftest.er1 >conftest.err
13934  rm -f conftest.er1
13935  cat conftest.err >&5
13936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937  (exit $ac_status); } &&
13938	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939  { (case "(($ac_try" in
13940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941  *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944  (eval "$ac_try") 2>&5
13945  ac_status=$?
13946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947  (exit $ac_status); }; } &&
13948	 { ac_try='test -s conftest.$ac_objext'
13949  { (case "(($ac_try" in
13950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951  *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954  (eval "$ac_try") 2>&5
13955  ac_status=$?
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); }; }; then
13958  ac_cv_type_u_int64_t=yes
13959else
13960  echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963	ac_cv_type_u_int64_t=no
13964fi
13965
13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967fi
13968{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13969echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13970if test $ac_cv_type_u_int64_t = yes; then
13971
13972cat >>confdefs.h <<_ACEOF
13973#define HAVE_U_INT64_T 1
13974_ACEOF
13975
13976
13977else
13978  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13979echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13980   { (exit 1); exit 1; }; }
13981fi
13982
13983fi
13984
13985
13986
13987
13988
13989for ac_func in backtrace getcwd
13990do
13991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13995  echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997  cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h.  */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h.  */
14003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14005#define $ac_func innocuous_$ac_func
14006
14007/* System header to define __stub macros and hopefully few prototypes,
14008    which can conflict with char $ac_func (); below.
14009    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010    <limits.h> exists even on freestanding compilers.  */
14011
14012#ifdef __STDC__
14013# include <limits.h>
14014#else
14015# include <assert.h>
14016#endif
14017
14018#undef $ac_func
14019
14020/* Override any GCC internal prototype to avoid an error.
14021   Use char because int might match the return type of a GCC
14022   builtin and then its argument prototype would still apply.  */
14023#ifdef __cplusplus
14024extern "C"
14025#endif
14026char $ac_func ();
14027/* The GNU C library defines this for functions which it implements
14028    to always fail with ENOSYS.  Some functions are actually named
14029    something starting with __ and the normal name is an alias.  */
14030#if defined __stub_$ac_func || defined __stub___$ac_func
14031choke me
14032#endif
14033
14034int
14035main ()
14036{
14037return $ac_func ();
14038  ;
14039  return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext conftest$ac_exeext
14043if { (ac_try="$ac_link"
14044case "(($ac_try" in
14045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046  *) ac_try_echo=$ac_try;;
14047esac
14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049  (eval "$ac_link") 2>conftest.er1
14050  ac_status=$?
14051  grep -v '^ *+' conftest.er1 >conftest.err
14052  rm -f conftest.er1
14053  cat conftest.err >&5
14054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055  (exit $ac_status); } &&
14056	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057  { (case "(($ac_try" in
14058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059  *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062  (eval "$ac_try") 2>&5
14063  ac_status=$?
14064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065  (exit $ac_status); }; } &&
14066	 { ac_try='test -s conftest$ac_exeext'
14067  { (case "(($ac_try" in
14068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069  *) ac_try_echo=$ac_try;;
14070esac
14071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072  (eval "$ac_try") 2>&5
14073  ac_status=$?
14074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075  (exit $ac_status); }; }; then
14076  eval "$as_ac_var=yes"
14077else
14078  echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
14081	eval "$as_ac_var=no"
14082fi
14083
14084rm -f core conftest.err conftest.$ac_objext \
14085      conftest$ac_exeext conftest.$ac_ext
14086fi
14087ac_res=`eval echo '${'$as_ac_var'}'`
14088	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14089echo "${ECHO_T}$ac_res" >&6; }
14090if test `eval echo '${'$as_ac_var'}'` = yes; then
14091  cat >>confdefs.h <<_ACEOF
14092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093_ACEOF
14094
14095fi
14096done
14097
14098
14099
14100
14101
14102
14103for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14104do
14105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14109  echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111  cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h.  */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h.  */
14117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14119#define $ac_func innocuous_$ac_func
14120
14121/* System header to define __stub macros and hopefully few prototypes,
14122    which can conflict with char $ac_func (); below.
14123    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124    <limits.h> exists even on freestanding compilers.  */
14125
14126#ifdef __STDC__
14127# include <limits.h>
14128#else
14129# include <assert.h>
14130#endif
14131
14132#undef $ac_func
14133
14134/* Override any GCC internal prototype to avoid an error.
14135   Use char because int might match the return type of a GCC
14136   builtin and then its argument prototype would still apply.  */
14137#ifdef __cplusplus
14138extern "C"
14139#endif
14140char $ac_func ();
14141/* The GNU C library defines this for functions which it implements
14142    to always fail with ENOSYS.  Some functions are actually named
14143    something starting with __ and the normal name is an alias.  */
14144#if defined __stub_$ac_func || defined __stub___$ac_func
14145choke me
14146#endif
14147
14148int
14149main ()
14150{
14151return $ac_func ();
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext conftest$ac_exeext
14157if { (ac_try="$ac_link"
14158case "(($ac_try" in
14159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160  *) ac_try_echo=$ac_try;;
14161esac
14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163  (eval "$ac_link") 2>conftest.er1
14164  ac_status=$?
14165  grep -v '^ *+' conftest.er1 >conftest.err
14166  rm -f conftest.er1
14167  cat conftest.err >&5
14168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169  (exit $ac_status); } &&
14170	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171  { (case "(($ac_try" in
14172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173  *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176  (eval "$ac_try") 2>&5
14177  ac_status=$?
14178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179  (exit $ac_status); }; } &&
14180	 { ac_try='test -s conftest$ac_exeext'
14181  { (case "(($ac_try" in
14182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183  *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186  (eval "$ac_try") 2>&5
14187  ac_status=$?
14188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189  (exit $ac_status); }; }; then
14190  eval "$as_ac_var=yes"
14191else
14192  echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
14195	eval "$as_ac_var=no"
14196fi
14197
14198rm -f core conftest.err conftest.$ac_objext \
14199      conftest$ac_exeext conftest.$ac_ext
14200fi
14201ac_res=`eval echo '${'$as_ac_var'}'`
14202	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14203echo "${ECHO_T}$ac_res" >&6; }
14204if test `eval echo '${'$as_ac_var'}'` = yes; then
14205  cat >>confdefs.h <<_ACEOF
14206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14207_ACEOF
14208
14209fi
14210done
14211
14212
14213
14214
14215for ac_func in isatty mkdtemp mkstemp
14216do
14217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221  echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223  cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h.  */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h.  */
14229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14231#define $ac_func innocuous_$ac_func
14232
14233/* System header to define __stub macros and hopefully few prototypes,
14234    which can conflict with char $ac_func (); below.
14235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236    <limits.h> exists even on freestanding compilers.  */
14237
14238#ifdef __STDC__
14239# include <limits.h>
14240#else
14241# include <assert.h>
14242#endif
14243
14244#undef $ac_func
14245
14246/* Override any GCC internal prototype to avoid an error.
14247   Use char because int might match the return type of a GCC
14248   builtin and then its argument prototype would still apply.  */
14249#ifdef __cplusplus
14250extern "C"
14251#endif
14252char $ac_func ();
14253/* The GNU C library defines this for functions which it implements
14254    to always fail with ENOSYS.  Some functions are actually named
14255    something starting with __ and the normal name is an alias.  */
14256#if defined __stub_$ac_func || defined __stub___$ac_func
14257choke me
14258#endif
14259
14260int
14261main ()
14262{
14263return $ac_func ();
14264  ;
14265  return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext conftest$ac_exeext
14269if { (ac_try="$ac_link"
14270case "(($ac_try" in
14271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272  *) ac_try_echo=$ac_try;;
14273esac
14274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275  (eval "$ac_link") 2>conftest.er1
14276  ac_status=$?
14277  grep -v '^ *+' conftest.er1 >conftest.err
14278  rm -f conftest.er1
14279  cat conftest.err >&5
14280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281  (exit $ac_status); } &&
14282	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283  { (case "(($ac_try" in
14284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285  *) ac_try_echo=$ac_try;;
14286esac
14287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288  (eval "$ac_try") 2>&5
14289  ac_status=$?
14290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291  (exit $ac_status); }; } &&
14292	 { ac_try='test -s conftest$ac_exeext'
14293  { (case "(($ac_try" in
14294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295  *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298  (eval "$ac_try") 2>&5
14299  ac_status=$?
14300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301  (exit $ac_status); }; }; then
14302  eval "$as_ac_var=yes"
14303else
14304  echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307	eval "$as_ac_var=no"
14308fi
14309
14310rm -f core conftest.err conftest.$ac_objext \
14311      conftest$ac_exeext conftest.$ac_ext
14312fi
14313ac_res=`eval echo '${'$as_ac_var'}'`
14314	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14315echo "${ECHO_T}$ac_res" >&6; }
14316if test `eval echo '${'$as_ac_var'}'` = yes; then
14317  cat >>confdefs.h <<_ACEOF
14318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14319_ACEOF
14320
14321fi
14322done
14323
14324
14325
14326
14327
14328
14329
14330for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14331do
14332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14336  echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338  cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h.  */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h.  */
14344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14346#define $ac_func innocuous_$ac_func
14347
14348/* System header to define __stub macros and hopefully few prototypes,
14349    which can conflict with char $ac_func (); below.
14350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351    <limits.h> exists even on freestanding compilers.  */
14352
14353#ifdef __STDC__
14354# include <limits.h>
14355#else
14356# include <assert.h>
14357#endif
14358
14359#undef $ac_func
14360
14361/* Override any GCC internal prototype to avoid an error.
14362   Use char because int might match the return type of a GCC
14363   builtin and then its argument prototype would still apply.  */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367char $ac_func ();
14368/* The GNU C library defines this for functions which it implements
14369    to always fail with ENOSYS.  Some functions are actually named
14370    something starting with __ and the normal name is an alias.  */
14371#if defined __stub_$ac_func || defined __stub___$ac_func
14372choke me
14373#endif
14374
14375int
14376main ()
14377{
14378return $ac_func ();
14379  ;
14380  return 0;
14381}
14382_ACEOF
14383rm -f conftest.$ac_objext conftest$ac_exeext
14384if { (ac_try="$ac_link"
14385case "(($ac_try" in
14386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387  *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390  (eval "$ac_link") 2>conftest.er1
14391  ac_status=$?
14392  grep -v '^ *+' conftest.er1 >conftest.err
14393  rm -f conftest.er1
14394  cat conftest.err >&5
14395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396  (exit $ac_status); } &&
14397	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398  { (case "(($ac_try" in
14399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400  *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403  (eval "$ac_try") 2>&5
14404  ac_status=$?
14405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406  (exit $ac_status); }; } &&
14407	 { ac_try='test -s conftest$ac_exeext'
14408  { (case "(($ac_try" in
14409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410  *) ac_try_echo=$ac_try;;
14411esac
14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413  (eval "$ac_try") 2>&5
14414  ac_status=$?
14415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416  (exit $ac_status); }; }; then
14417  eval "$as_ac_var=yes"
14418else
14419  echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422	eval "$as_ac_var=no"
14423fi
14424
14425rm -f core conftest.err conftest.$ac_objext \
14426      conftest$ac_exeext conftest.$ac_ext
14427fi
14428ac_res=`eval echo '${'$as_ac_var'}'`
14429	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14430echo "${ECHO_T}$ac_res" >&6; }
14431if test `eval echo '${'$as_ac_var'}'` = yes; then
14432  cat >>confdefs.h <<_ACEOF
14433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434_ACEOF
14435
14436fi
14437done
14438
14439
14440
14441
14442for ac_func in strerror strerror_r setenv
14443do
14444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448  echo $ECHO_N "(cached) $ECHO_C" >&6
14449else
14450  cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h.  */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h.  */
14456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14458#define $ac_func innocuous_$ac_func
14459
14460/* System header to define __stub macros and hopefully few prototypes,
14461    which can conflict with char $ac_func (); below.
14462    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463    <limits.h> exists even on freestanding compilers.  */
14464
14465#ifdef __STDC__
14466# include <limits.h>
14467#else
14468# include <assert.h>
14469#endif
14470
14471#undef $ac_func
14472
14473/* Override any GCC internal prototype to avoid an error.
14474   Use char because int might match the return type of a GCC
14475   builtin and then its argument prototype would still apply.  */
14476#ifdef __cplusplus
14477extern "C"
14478#endif
14479char $ac_func ();
14480/* The GNU C library defines this for functions which it implements
14481    to always fail with ENOSYS.  Some functions are actually named
14482    something starting with __ and the normal name is an alias.  */
14483#if defined __stub_$ac_func || defined __stub___$ac_func
14484choke me
14485#endif
14486
14487int
14488main ()
14489{
14490return $ac_func ();
14491  ;
14492  return 0;
14493}
14494_ACEOF
14495rm -f conftest.$ac_objext conftest$ac_exeext
14496if { (ac_try="$ac_link"
14497case "(($ac_try" in
14498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499  *) ac_try_echo=$ac_try;;
14500esac
14501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502  (eval "$ac_link") 2>conftest.er1
14503  ac_status=$?
14504  grep -v '^ *+' conftest.er1 >conftest.err
14505  rm -f conftest.er1
14506  cat conftest.err >&5
14507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508  (exit $ac_status); } &&
14509	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510  { (case "(($ac_try" in
14511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512  *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515  (eval "$ac_try") 2>&5
14516  ac_status=$?
14517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518  (exit $ac_status); }; } &&
14519	 { ac_try='test -s conftest$ac_exeext'
14520  { (case "(($ac_try" in
14521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522  *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525  (eval "$ac_try") 2>&5
14526  ac_status=$?
14527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528  (exit $ac_status); }; }; then
14529  eval "$as_ac_var=yes"
14530else
14531  echo "$as_me: failed program was:" >&5
14532sed 's/^/| /' conftest.$ac_ext >&5
14533
14534	eval "$as_ac_var=no"
14535fi
14536
14537rm -f core conftest.err conftest.$ac_objext \
14538      conftest$ac_exeext conftest.$ac_ext
14539fi
14540ac_res=`eval echo '${'$as_ac_var'}'`
14541	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14542echo "${ECHO_T}$ac_res" >&6; }
14543if test `eval echo '${'$as_ac_var'}'` = yes; then
14544  cat >>confdefs.h <<_ACEOF
14545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14546_ACEOF
14547
14548fi
14549done
14550
14551
14552
14553
14554
14555for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14556do
14557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14561  echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563  cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h.  */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h.  */
14569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14571#define $ac_func innocuous_$ac_func
14572
14573/* System header to define __stub macros and hopefully few prototypes,
14574    which can conflict with char $ac_func (); below.
14575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14576    <limits.h> exists even on freestanding compilers.  */
14577
14578#ifdef __STDC__
14579# include <limits.h>
14580#else
14581# include <assert.h>
14582#endif
14583
14584#undef $ac_func
14585
14586/* Override any GCC internal prototype to avoid an error.
14587   Use char because int might match the return type of a GCC
14588   builtin and then its argument prototype would still apply.  */
14589#ifdef __cplusplus
14590extern "C"
14591#endif
14592char $ac_func ();
14593/* The GNU C library defines this for functions which it implements
14594    to always fail with ENOSYS.  Some functions are actually named
14595    something starting with __ and the normal name is an alias.  */
14596#if defined __stub_$ac_func || defined __stub___$ac_func
14597choke me
14598#endif
14599
14600int
14601main ()
14602{
14603return $ac_func ();
14604  ;
14605  return 0;
14606}
14607_ACEOF
14608rm -f conftest.$ac_objext conftest$ac_exeext
14609if { (ac_try="$ac_link"
14610case "(($ac_try" in
14611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612  *) ac_try_echo=$ac_try;;
14613esac
14614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615  (eval "$ac_link") 2>conftest.er1
14616  ac_status=$?
14617  grep -v '^ *+' conftest.er1 >conftest.err
14618  rm -f conftest.er1
14619  cat conftest.err >&5
14620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621  (exit $ac_status); } &&
14622	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623  { (case "(($ac_try" in
14624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625  *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628  (eval "$ac_try") 2>&5
14629  ac_status=$?
14630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631  (exit $ac_status); }; } &&
14632	 { ac_try='test -s conftest$ac_exeext'
14633  { (case "(($ac_try" in
14634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635  *) ac_try_echo=$ac_try;;
14636esac
14637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638  (eval "$ac_try") 2>&5
14639  ac_status=$?
14640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641  (exit $ac_status); }; }; then
14642  eval "$as_ac_var=yes"
14643else
14644  echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
14647	eval "$as_ac_var=no"
14648fi
14649
14650rm -f core conftest.err conftest.$ac_objext \
14651      conftest$ac_exeext conftest.$ac_ext
14652fi
14653ac_res=`eval echo '${'$as_ac_var'}'`
14654	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14655echo "${ECHO_T}$ac_res" >&6; }
14656if test `eval echo '${'$as_ac_var'}'` = yes; then
14657  cat >>confdefs.h <<_ACEOF
14658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659_ACEOF
14660
14661fi
14662done
14663
14664
14665
14666
14667
14668
14669for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14670do
14671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14675  echo $ECHO_N "(cached) $ECHO_C" >&6
14676else
14677  cat >conftest.$ac_ext <<_ACEOF
14678/* confdefs.h.  */
14679_ACEOF
14680cat confdefs.h >>conftest.$ac_ext
14681cat >>conftest.$ac_ext <<_ACEOF
14682/* end confdefs.h.  */
14683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14684   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14685#define $ac_func innocuous_$ac_func
14686
14687/* System header to define __stub macros and hopefully few prototypes,
14688    which can conflict with char $ac_func (); below.
14689    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14690    <limits.h> exists even on freestanding compilers.  */
14691
14692#ifdef __STDC__
14693# include <limits.h>
14694#else
14695# include <assert.h>
14696#endif
14697
14698#undef $ac_func
14699
14700/* Override any GCC internal prototype to avoid an error.
14701   Use char because int might match the return type of a GCC
14702   builtin and then its argument prototype would still apply.  */
14703#ifdef __cplusplus
14704extern "C"
14705#endif
14706char $ac_func ();
14707/* The GNU C library defines this for functions which it implements
14708    to always fail with ENOSYS.  Some functions are actually named
14709    something starting with __ and the normal name is an alias.  */
14710#if defined __stub_$ac_func || defined __stub___$ac_func
14711choke me
14712#endif
14713
14714int
14715main ()
14716{
14717return $ac_func ();
14718  ;
14719  return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext conftest$ac_exeext
14723if { (ac_try="$ac_link"
14724case "(($ac_try" in
14725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726  *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729  (eval "$ac_link") 2>conftest.er1
14730  ac_status=$?
14731  grep -v '^ *+' conftest.er1 >conftest.err
14732  rm -f conftest.er1
14733  cat conftest.err >&5
14734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735  (exit $ac_status); } &&
14736	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737  { (case "(($ac_try" in
14738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739  *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742  (eval "$ac_try") 2>&5
14743  ac_status=$?
14744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745  (exit $ac_status); }; } &&
14746	 { ac_try='test -s conftest$ac_exeext'
14747  { (case "(($ac_try" in
14748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749  *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752  (eval "$ac_try") 2>&5
14753  ac_status=$?
14754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755  (exit $ac_status); }; }; then
14756  eval "$as_ac_var=yes"
14757else
14758  echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761	eval "$as_ac_var=no"
14762fi
14763
14764rm -f core conftest.err conftest.$ac_objext \
14765      conftest$ac_exeext conftest.$ac_ext
14766fi
14767ac_res=`eval echo '${'$as_ac_var'}'`
14768	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14769echo "${ECHO_T}$ac_res" >&6; }
14770if test `eval echo '${'$as_ac_var'}'` = yes; then
14771  cat >>confdefs.h <<_ACEOF
14772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14773_ACEOF
14774
14775fi
14776done
14777
14778
14779
14780for ac_func in futimes futimens
14781do
14782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786  echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788  cat >conftest.$ac_ext <<_ACEOF
14789/* confdefs.h.  */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h.  */
14794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14796#define $ac_func innocuous_$ac_func
14797
14798/* System header to define __stub macros and hopefully few prototypes,
14799    which can conflict with char $ac_func (); below.
14800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801    <limits.h> exists even on freestanding compilers.  */
14802
14803#ifdef __STDC__
14804# include <limits.h>
14805#else
14806# include <assert.h>
14807#endif
14808
14809#undef $ac_func
14810
14811/* Override any GCC internal prototype to avoid an error.
14812   Use char because int might match the return type of a GCC
14813   builtin and then its argument prototype would still apply.  */
14814#ifdef __cplusplus
14815extern "C"
14816#endif
14817char $ac_func ();
14818/* The GNU C library defines this for functions which it implements
14819    to always fail with ENOSYS.  Some functions are actually named
14820    something starting with __ and the normal name is an alias.  */
14821#if defined __stub_$ac_func || defined __stub___$ac_func
14822choke me
14823#endif
14824
14825int
14826main ()
14827{
14828return $ac_func ();
14829  ;
14830  return 0;
14831}
14832_ACEOF
14833rm -f conftest.$ac_objext conftest$ac_exeext
14834if { (ac_try="$ac_link"
14835case "(($ac_try" in
14836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837  *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840  (eval "$ac_link") 2>conftest.er1
14841  ac_status=$?
14842  grep -v '^ *+' conftest.er1 >conftest.err
14843  rm -f conftest.er1
14844  cat conftest.err >&5
14845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846  (exit $ac_status); } &&
14847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848  { (case "(($ac_try" in
14849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850  *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853  (eval "$ac_try") 2>&5
14854  ac_status=$?
14855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856  (exit $ac_status); }; } &&
14857	 { ac_try='test -s conftest$ac_exeext'
14858  { (case "(($ac_try" in
14859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860  *) ac_try_echo=$ac_try;;
14861esac
14862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863  (eval "$ac_try") 2>&5
14864  ac_status=$?
14865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866  (exit $ac_status); }; }; then
14867  eval "$as_ac_var=yes"
14868else
14869  echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872	eval "$as_ac_var=no"
14873fi
14874
14875rm -f core conftest.err conftest.$ac_objext \
14876      conftest$ac_exeext conftest.$ac_ext
14877fi
14878ac_res=`eval echo '${'$as_ac_var'}'`
14879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14880echo "${ECHO_T}$ac_res" >&6; }
14881if test `eval echo '${'$as_ac_var'}'` = yes; then
14882  cat >>confdefs.h <<_ACEOF
14883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14884_ACEOF
14885
14886fi
14887done
14888
14889{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14890echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14891if test "${llvm_cv_c_printf_a+set}" = set; then
14892  echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894  ac_ext=c
14895ac_cpp='$CPP $CPPFLAGS'
14896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900 if test "$cross_compiling" = yes; then
14901  llvmac_cv_c_printf_a=no
14902else
14903  cat >conftest.$ac_ext <<_ACEOF
14904
14905  /* confdefs.h.  */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h.  */
14910
14911#include <stdio.h>
14912#include <stdlib.h>
14913
14914int
14915main ()
14916{
14917
14918volatile double A, B;
14919char Buffer[100];
14920A = 1;
14921A /= 10.0;
14922sprintf(Buffer, "%a", A);
14923B = atof(Buffer);
14924if (A != B)
14925  return (1);
14926if (A != 0x1.999999999999ap-4)
14927  return (1);
14928return (0);
14929  ;
14930  return 0;
14931}
14932_ACEOF
14933rm -f conftest$ac_exeext
14934if { (ac_try="$ac_link"
14935case "(($ac_try" in
14936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937  *) ac_try_echo=$ac_try;;
14938esac
14939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940  (eval "$ac_link") 2>&5
14941  ac_status=$?
14942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14944  { (case "(($ac_try" in
14945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946  *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949  (eval "$ac_try") 2>&5
14950  ac_status=$?
14951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952  (exit $ac_status); }; }; then
14953  llvm_cv_c_printf_a=yes
14954else
14955  echo "$as_me: program exited with status $ac_status" >&5
14956echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959( exit $ac_status )
14960llvmac_cv_c_printf_a=no
14961fi
14962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14963fi
14964
14965
14966 ac_ext=c
14967ac_cpp='$CPP $CPPFLAGS'
14968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972fi
14973{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14974echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14975 if test "$llvm_cv_c_printf_a" = "yes"; then
14976
14977cat >>confdefs.h <<\_ACEOF
14978#define HAVE_PRINTF_A 1
14979_ACEOF
14980
14981 fi
14982
14983
14984
14985  { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14986echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14987if test "${ac_cv_func_rand48+set}" = set; then
14988  echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990
14991    ac_ext=cpp
14992ac_cpp='$CXXCPP $CPPFLAGS'
14993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14996
14997    cat >conftest.$ac_ext <<_ACEOF
14998/* confdefs.h.  */
14999_ACEOF
15000cat confdefs.h >>conftest.$ac_ext
15001cat >>conftest.$ac_ext <<_ACEOF
15002/* end confdefs.h.  */
15003#include <stdlib.h>
15004int
15005main ()
15006{
15007srand48(0);lrand48();drand48();
15008  ;
15009  return 0;
15010}
15011_ACEOF
15012rm -f conftest.$ac_objext
15013if { (ac_try="$ac_compile"
15014case "(($ac_try" in
15015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016  *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019  (eval "$ac_compile") 2>conftest.er1
15020  ac_status=$?
15021  grep -v '^ *+' conftest.er1 >conftest.err
15022  rm -f conftest.er1
15023  cat conftest.err >&5
15024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025  (exit $ac_status); } &&
15026	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027  { (case "(($ac_try" in
15028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029  *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032  (eval "$ac_try") 2>&5
15033  ac_status=$?
15034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); }; } &&
15036	 { ac_try='test -s conftest.$ac_objext'
15037  { (case "(($ac_try" in
15038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039  *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042  (eval "$ac_try") 2>&5
15043  ac_status=$?
15044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045  (exit $ac_status); }; }; then
15046  ac_cv_func_rand48=yes
15047else
15048  echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051	ac_cv_func_rand48=no
15052fi
15053
15054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055    ac_ext=c
15056ac_cpp='$CPP $CPPFLAGS'
15057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060
15061
15062fi
15063{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15064echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15065
15066if test "$ac_cv_func_rand48" = "yes" ; then
15067
15068cat >>confdefs.h <<\_ACEOF
15069#define HAVE_RAND48 1
15070_ACEOF
15071
15072fi
15073
15074
15075{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15076echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15077if test "${ac_cv_have_decl_arc4random+set}" = set; then
15078  echo $ECHO_N "(cached) $ECHO_C" >&6
15079else
15080  cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h.  */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h.  */
15086$ac_includes_default
15087int
15088main ()
15089{
15090#ifndef arc4random
15091  char *p = (char *) arc4random;
15092  return !p;
15093#endif
15094
15095  ;
15096  return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext
15100if { (ac_try="$ac_compile"
15101case "(($ac_try" in
15102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103  *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106  (eval "$ac_compile") 2>conftest.er1
15107  ac_status=$?
15108  grep -v '^ *+' conftest.er1 >conftest.err
15109  rm -f conftest.er1
15110  cat conftest.err >&5
15111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112  (exit $ac_status); } &&
15113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114  { (case "(($ac_try" in
15115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116  *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119  (eval "$ac_try") 2>&5
15120  ac_status=$?
15121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122  (exit $ac_status); }; } &&
15123	 { ac_try='test -s conftest.$ac_objext'
15124  { (case "(($ac_try" in
15125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126  *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129  (eval "$ac_try") 2>&5
15130  ac_status=$?
15131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132  (exit $ac_status); }; }; then
15133  ac_cv_have_decl_arc4random=yes
15134else
15135  echo "$as_me: failed program was:" >&5
15136sed 's/^/| /' conftest.$ac_ext >&5
15137
15138	ac_cv_have_decl_arc4random=no
15139fi
15140
15141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142fi
15143{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15144echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15145if test $ac_cv_have_decl_arc4random = yes; then
15146
15147cat >>confdefs.h <<_ACEOF
15148#define HAVE_DECL_ARC4RANDOM 1
15149_ACEOF
15150
15151
15152else
15153  cat >>confdefs.h <<_ACEOF
15154#define HAVE_DECL_ARC4RANDOM 0
15155_ACEOF
15156
15157
15158fi
15159
15160
15161
15162{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15163echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15164if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15165  echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
15167  cat >conftest.$ac_ext <<_ACEOF
15168/* confdefs.h.  */
15169_ACEOF
15170cat confdefs.h >>conftest.$ac_ext
15171cat >>conftest.$ac_ext <<_ACEOF
15172/* end confdefs.h.  */
15173$ac_includes_default
15174int
15175main ()
15176{
15177#ifndef strerror_s
15178  char *p = (char *) strerror_s;
15179  return !p;
15180#endif
15181
15182  ;
15183  return 0;
15184}
15185_ACEOF
15186rm -f conftest.$ac_objext
15187if { (ac_try="$ac_compile"
15188case "(($ac_try" in
15189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190  *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193  (eval "$ac_compile") 2>conftest.er1
15194  ac_status=$?
15195  grep -v '^ *+' conftest.er1 >conftest.err
15196  rm -f conftest.er1
15197  cat conftest.err >&5
15198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199  (exit $ac_status); } &&
15200	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201  { (case "(($ac_try" in
15202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203  *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206  (eval "$ac_try") 2>&5
15207  ac_status=$?
15208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209  (exit $ac_status); }; } &&
15210	 { ac_try='test -s conftest.$ac_objext'
15211  { (case "(($ac_try" in
15212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213  *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216  (eval "$ac_try") 2>&5
15217  ac_status=$?
15218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219  (exit $ac_status); }; }; then
15220  ac_cv_have_decl_strerror_s=yes
15221else
15222  echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225	ac_cv_have_decl_strerror_s=no
15226fi
15227
15228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229fi
15230{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15231echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15232if test $ac_cv_have_decl_strerror_s = yes; then
15233
15234cat >>confdefs.h <<_ACEOF
15235#define HAVE_DECL_STRERROR_S 1
15236_ACEOF
15237
15238
15239else
15240  cat >>confdefs.h <<_ACEOF
15241#define HAVE_DECL_STRERROR_S 0
15242_ACEOF
15243
15244
15245fi
15246
15247
15248
15249if test "$llvm_cv_os_type" = "MingW" ; then
15250  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15251echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15252if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15253  echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255  ac_check_lib_save_LIBS=$LIBS
15256LIBS="-lgcc  $LIBS"
15257cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h.  */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h.  */
15263
15264/* Override any GCC internal prototype to avoid an error.
15265   Use char because int might match the return type of a GCC
15266   builtin and then its argument prototype would still apply.  */
15267#ifdef __cplusplus
15268extern "C"
15269#endif
15270char _alloca ();
15271int
15272main ()
15273{
15274return _alloca ();
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext conftest$ac_exeext
15280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283  *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286  (eval "$ac_link") 2>conftest.er1
15287  ac_status=$?
15288  grep -v '^ *+' conftest.er1 >conftest.err
15289  rm -f conftest.er1
15290  cat conftest.err >&5
15291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292  (exit $ac_status); } &&
15293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294  { (case "(($ac_try" in
15295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296  *) ac_try_echo=$ac_try;;
15297esac
15298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299  (eval "$ac_try") 2>&5
15300  ac_status=$?
15301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302  (exit $ac_status); }; } &&
15303	 { ac_try='test -s conftest$ac_exeext'
15304  { (case "(($ac_try" in
15305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306  *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309  (eval "$ac_try") 2>&5
15310  ac_status=$?
15311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312  (exit $ac_status); }; }; then
15313  ac_cv_lib_gcc__alloca=yes
15314else
15315  echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318	ac_cv_lib_gcc__alloca=no
15319fi
15320
15321rm -f core conftest.err conftest.$ac_objext \
15322      conftest$ac_exeext conftest.$ac_ext
15323LIBS=$ac_check_lib_save_LIBS
15324fi
15325{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15326echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15327if test $ac_cv_lib_gcc__alloca = yes; then
15328
15329cat >>confdefs.h <<\_ACEOF
15330#define HAVE__ALLOCA 1
15331_ACEOF
15332
15333fi
15334
15335  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15336echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15337if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15338  echo $ECHO_N "(cached) $ECHO_C" >&6
15339else
15340  ac_check_lib_save_LIBS=$LIBS
15341LIBS="-lgcc  $LIBS"
15342cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h.  */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h.  */
15348
15349/* Override any GCC internal prototype to avoid an error.
15350   Use char because int might match the return type of a GCC
15351   builtin and then its argument prototype would still apply.  */
15352#ifdef __cplusplus
15353extern "C"
15354#endif
15355char __alloca ();
15356int
15357main ()
15358{
15359return __alloca ();
15360  ;
15361  return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (ac_try="$ac_link"
15366case "(($ac_try" in
15367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368  *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371  (eval "$ac_link") 2>conftest.er1
15372  ac_status=$?
15373  grep -v '^ *+' conftest.er1 >conftest.err
15374  rm -f conftest.er1
15375  cat conftest.err >&5
15376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377  (exit $ac_status); } &&
15378	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379  { (case "(($ac_try" in
15380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381  *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384  (eval "$ac_try") 2>&5
15385  ac_status=$?
15386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387  (exit $ac_status); }; } &&
15388	 { ac_try='test -s conftest$ac_exeext'
15389  { (case "(($ac_try" in
15390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391  *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394  (eval "$ac_try") 2>&5
15395  ac_status=$?
15396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397  (exit $ac_status); }; }; then
15398  ac_cv_lib_gcc___alloca=yes
15399else
15400  echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403	ac_cv_lib_gcc___alloca=no
15404fi
15405
15406rm -f core conftest.err conftest.$ac_objext \
15407      conftest$ac_exeext conftest.$ac_ext
15408LIBS=$ac_check_lib_save_LIBS
15409fi
15410{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15411echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15412if test $ac_cv_lib_gcc___alloca = yes; then
15413
15414cat >>confdefs.h <<\_ACEOF
15415#define HAVE___ALLOCA 1
15416_ACEOF
15417
15418fi
15419
15420  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15421echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15422if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15423  echo $ECHO_N "(cached) $ECHO_C" >&6
15424else
15425  ac_check_lib_save_LIBS=$LIBS
15426LIBS="-lgcc  $LIBS"
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h.  */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h.  */
15433
15434/* Override any GCC internal prototype to avoid an error.
15435   Use char because int might match the return type of a GCC
15436   builtin and then its argument prototype would still apply.  */
15437#ifdef __cplusplus
15438extern "C"
15439#endif
15440char __chkstk ();
15441int
15442main ()
15443{
15444return __chkstk ();
15445  ;
15446  return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext conftest$ac_exeext
15450if { (ac_try="$ac_link"
15451case "(($ac_try" in
15452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453  *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456  (eval "$ac_link") 2>conftest.er1
15457  ac_status=$?
15458  grep -v '^ *+' conftest.er1 >conftest.err
15459  rm -f conftest.er1
15460  cat conftest.err >&5
15461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462  (exit $ac_status); } &&
15463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464  { (case "(($ac_try" in
15465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466  *) ac_try_echo=$ac_try;;
15467esac
15468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469  (eval "$ac_try") 2>&5
15470  ac_status=$?
15471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472  (exit $ac_status); }; } &&
15473	 { ac_try='test -s conftest$ac_exeext'
15474  { (case "(($ac_try" in
15475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476  *) ac_try_echo=$ac_try;;
15477esac
15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479  (eval "$ac_try") 2>&5
15480  ac_status=$?
15481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482  (exit $ac_status); }; }; then
15483  ac_cv_lib_gcc___chkstk=yes
15484else
15485  echo "$as_me: failed program was:" >&5
15486sed 's/^/| /' conftest.$ac_ext >&5
15487
15488	ac_cv_lib_gcc___chkstk=no
15489fi
15490
15491rm -f core conftest.err conftest.$ac_objext \
15492      conftest$ac_exeext conftest.$ac_ext
15493LIBS=$ac_check_lib_save_LIBS
15494fi
15495{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15496echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15497if test $ac_cv_lib_gcc___chkstk = yes; then
15498
15499cat >>confdefs.h <<\_ACEOF
15500#define HAVE___CHKSTK 1
15501_ACEOF
15502
15503fi
15504
15505  { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15506echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15507if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15508  echo $ECHO_N "(cached) $ECHO_C" >&6
15509else
15510  ac_check_lib_save_LIBS=$LIBS
15511LIBS="-lgcc  $LIBS"
15512cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h.  */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h.  */
15518
15519/* Override any GCC internal prototype to avoid an error.
15520   Use char because int might match the return type of a GCC
15521   builtin and then its argument prototype would still apply.  */
15522#ifdef __cplusplus
15523extern "C"
15524#endif
15525char __chkstk_ms ();
15526int
15527main ()
15528{
15529return __chkstk_ms ();
15530  ;
15531  return 0;
15532}
15533_ACEOF
15534rm -f conftest.$ac_objext conftest$ac_exeext
15535if { (ac_try="$ac_link"
15536case "(($ac_try" in
15537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538  *) ac_try_echo=$ac_try;;
15539esac
15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541  (eval "$ac_link") 2>conftest.er1
15542  ac_status=$?
15543  grep -v '^ *+' conftest.er1 >conftest.err
15544  rm -f conftest.er1
15545  cat conftest.err >&5
15546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547  (exit $ac_status); } &&
15548	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549  { (case "(($ac_try" in
15550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551  *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554  (eval "$ac_try") 2>&5
15555  ac_status=$?
15556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557  (exit $ac_status); }; } &&
15558	 { ac_try='test -s conftest$ac_exeext'
15559  { (case "(($ac_try" in
15560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561  *) ac_try_echo=$ac_try;;
15562esac
15563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564  (eval "$ac_try") 2>&5
15565  ac_status=$?
15566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567  (exit $ac_status); }; }; then
15568  ac_cv_lib_gcc___chkstk_ms=yes
15569else
15570  echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573	ac_cv_lib_gcc___chkstk_ms=no
15574fi
15575
15576rm -f core conftest.err conftest.$ac_objext \
15577      conftest$ac_exeext conftest.$ac_ext
15578LIBS=$ac_check_lib_save_LIBS
15579fi
15580{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15581echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15582if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15583
15584cat >>confdefs.h <<\_ACEOF
15585#define HAVE___CHKSTK_MS 1
15586_ACEOF
15587
15588fi
15589
15590  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15591echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15592if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15593  echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595  ac_check_lib_save_LIBS=$LIBS
15596LIBS="-lgcc  $LIBS"
15597cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h.  */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h.  */
15603
15604/* Override any GCC internal prototype to avoid an error.
15605   Use char because int might match the return type of a GCC
15606   builtin and then its argument prototype would still apply.  */
15607#ifdef __cplusplus
15608extern "C"
15609#endif
15610char ___chkstk ();
15611int
15612main ()
15613{
15614return ___chkstk ();
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext conftest$ac_exeext
15620if { (ac_try="$ac_link"
15621case "(($ac_try" in
15622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623  *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626  (eval "$ac_link") 2>conftest.er1
15627  ac_status=$?
15628  grep -v '^ *+' conftest.er1 >conftest.err
15629  rm -f conftest.er1
15630  cat conftest.err >&5
15631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632  (exit $ac_status); } &&
15633	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15634  { (case "(($ac_try" in
15635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636  *) ac_try_echo=$ac_try;;
15637esac
15638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639  (eval "$ac_try") 2>&5
15640  ac_status=$?
15641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642  (exit $ac_status); }; } &&
15643	 { ac_try='test -s conftest$ac_exeext'
15644  { (case "(($ac_try" in
15645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646  *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649  (eval "$ac_try") 2>&5
15650  ac_status=$?
15651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652  (exit $ac_status); }; }; then
15653  ac_cv_lib_gcc____chkstk=yes
15654else
15655  echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658	ac_cv_lib_gcc____chkstk=no
15659fi
15660
15661rm -f core conftest.err conftest.$ac_objext \
15662      conftest$ac_exeext conftest.$ac_ext
15663LIBS=$ac_check_lib_save_LIBS
15664fi
15665{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15666echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15667if test $ac_cv_lib_gcc____chkstk = yes; then
15668
15669cat >>confdefs.h <<\_ACEOF
15670#define HAVE____CHKSTK 1
15671_ACEOF
15672
15673fi
15674
15675  { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15676echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15677if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15678  echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680  ac_check_lib_save_LIBS=$LIBS
15681LIBS="-lgcc  $LIBS"
15682cat >conftest.$ac_ext <<_ACEOF
15683/* confdefs.h.  */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h.  */
15688
15689/* Override any GCC internal prototype to avoid an error.
15690   Use char because int might match the return type of a GCC
15691   builtin and then its argument prototype would still apply.  */
15692#ifdef __cplusplus
15693extern "C"
15694#endif
15695char ___chkstk_ms ();
15696int
15697main ()
15698{
15699return ___chkstk_ms ();
15700  ;
15701  return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext conftest$ac_exeext
15705if { (ac_try="$ac_link"
15706case "(($ac_try" in
15707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708  *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711  (eval "$ac_link") 2>conftest.er1
15712  ac_status=$?
15713  grep -v '^ *+' conftest.er1 >conftest.err
15714  rm -f conftest.er1
15715  cat conftest.err >&5
15716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717  (exit $ac_status); } &&
15718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15719  { (case "(($ac_try" in
15720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721  *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724  (eval "$ac_try") 2>&5
15725  ac_status=$?
15726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727  (exit $ac_status); }; } &&
15728	 { ac_try='test -s conftest$ac_exeext'
15729  { (case "(($ac_try" in
15730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731  *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734  (eval "$ac_try") 2>&5
15735  ac_status=$?
15736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737  (exit $ac_status); }; }; then
15738  ac_cv_lib_gcc____chkstk_ms=yes
15739else
15740  echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743	ac_cv_lib_gcc____chkstk_ms=no
15744fi
15745
15746rm -f core conftest.err conftest.$ac_objext \
15747      conftest$ac_exeext conftest.$ac_ext
15748LIBS=$ac_check_lib_save_LIBS
15749fi
15750{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15751echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15752if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15753
15754cat >>confdefs.h <<\_ACEOF
15755#define HAVE____CHKSTK_MS 1
15756_ACEOF
15757
15758fi
15759
15760
15761  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15762echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15763if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15764  echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766  ac_check_lib_save_LIBS=$LIBS
15767LIBS="-lgcc  $LIBS"
15768cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h.  */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h.  */
15774
15775/* Override any GCC internal prototype to avoid an error.
15776   Use char because int might match the return type of a GCC
15777   builtin and then its argument prototype would still apply.  */
15778#ifdef __cplusplus
15779extern "C"
15780#endif
15781char __ashldi3 ();
15782int
15783main ()
15784{
15785return __ashldi3 ();
15786  ;
15787  return 0;
15788}
15789_ACEOF
15790rm -f conftest.$ac_objext conftest$ac_exeext
15791if { (ac_try="$ac_link"
15792case "(($ac_try" in
15793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794  *) ac_try_echo=$ac_try;;
15795esac
15796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797  (eval "$ac_link") 2>conftest.er1
15798  ac_status=$?
15799  grep -v '^ *+' conftest.er1 >conftest.err
15800  rm -f conftest.er1
15801  cat conftest.err >&5
15802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803  (exit $ac_status); } &&
15804	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805  { (case "(($ac_try" in
15806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807  *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810  (eval "$ac_try") 2>&5
15811  ac_status=$?
15812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813  (exit $ac_status); }; } &&
15814	 { ac_try='test -s conftest$ac_exeext'
15815  { (case "(($ac_try" in
15816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817  *) ac_try_echo=$ac_try;;
15818esac
15819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820  (eval "$ac_try") 2>&5
15821  ac_status=$?
15822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823  (exit $ac_status); }; }; then
15824  ac_cv_lib_gcc___ashldi3=yes
15825else
15826  echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829	ac_cv_lib_gcc___ashldi3=no
15830fi
15831
15832rm -f core conftest.err conftest.$ac_objext \
15833      conftest$ac_exeext conftest.$ac_ext
15834LIBS=$ac_check_lib_save_LIBS
15835fi
15836{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15837echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15838if test $ac_cv_lib_gcc___ashldi3 = yes; then
15839
15840cat >>confdefs.h <<\_ACEOF
15841#define HAVE___ASHLDI3 1
15842_ACEOF
15843
15844fi
15845
15846  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15847echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15848if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15849  echo $ECHO_N "(cached) $ECHO_C" >&6
15850else
15851  ac_check_lib_save_LIBS=$LIBS
15852LIBS="-lgcc  $LIBS"
15853cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h.  */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h.  */
15859
15860/* Override any GCC internal prototype to avoid an error.
15861   Use char because int might match the return type of a GCC
15862   builtin and then its argument prototype would still apply.  */
15863#ifdef __cplusplus
15864extern "C"
15865#endif
15866char __ashrdi3 ();
15867int
15868main ()
15869{
15870return __ashrdi3 ();
15871  ;
15872  return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext conftest$ac_exeext
15876if { (ac_try="$ac_link"
15877case "(($ac_try" in
15878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879  *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882  (eval "$ac_link") 2>conftest.er1
15883  ac_status=$?
15884  grep -v '^ *+' conftest.er1 >conftest.err
15885  rm -f conftest.er1
15886  cat conftest.err >&5
15887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888  (exit $ac_status); } &&
15889	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15890  { (case "(($ac_try" in
15891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892  *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895  (eval "$ac_try") 2>&5
15896  ac_status=$?
15897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898  (exit $ac_status); }; } &&
15899	 { ac_try='test -s conftest$ac_exeext'
15900  { (case "(($ac_try" in
15901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902  *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905  (eval "$ac_try") 2>&5
15906  ac_status=$?
15907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908  (exit $ac_status); }; }; then
15909  ac_cv_lib_gcc___ashrdi3=yes
15910else
15911  echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914	ac_cv_lib_gcc___ashrdi3=no
15915fi
15916
15917rm -f core conftest.err conftest.$ac_objext \
15918      conftest$ac_exeext conftest.$ac_ext
15919LIBS=$ac_check_lib_save_LIBS
15920fi
15921{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15922echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15923if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15924
15925cat >>confdefs.h <<\_ACEOF
15926#define HAVE___ASHRDI3 1
15927_ACEOF
15928
15929fi
15930
15931  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15932echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15933if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15934  echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
15936  ac_check_lib_save_LIBS=$LIBS
15937LIBS="-lgcc  $LIBS"
15938cat >conftest.$ac_ext <<_ACEOF
15939/* confdefs.h.  */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h.  */
15944
15945/* Override any GCC internal prototype to avoid an error.
15946   Use char because int might match the return type of a GCC
15947   builtin and then its argument prototype would still apply.  */
15948#ifdef __cplusplus
15949extern "C"
15950#endif
15951char __divdi3 ();
15952int
15953main ()
15954{
15955return __divdi3 ();
15956  ;
15957  return 0;
15958}
15959_ACEOF
15960rm -f conftest.$ac_objext conftest$ac_exeext
15961if { (ac_try="$ac_link"
15962case "(($ac_try" in
15963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964  *) ac_try_echo=$ac_try;;
15965esac
15966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967  (eval "$ac_link") 2>conftest.er1
15968  ac_status=$?
15969  grep -v '^ *+' conftest.er1 >conftest.err
15970  rm -f conftest.er1
15971  cat conftest.err >&5
15972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973  (exit $ac_status); } &&
15974	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15975  { (case "(($ac_try" in
15976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977  *) ac_try_echo=$ac_try;;
15978esac
15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980  (eval "$ac_try") 2>&5
15981  ac_status=$?
15982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983  (exit $ac_status); }; } &&
15984	 { ac_try='test -s conftest$ac_exeext'
15985  { (case "(($ac_try" in
15986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987  *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990  (eval "$ac_try") 2>&5
15991  ac_status=$?
15992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993  (exit $ac_status); }; }; then
15994  ac_cv_lib_gcc___divdi3=yes
15995else
15996  echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999	ac_cv_lib_gcc___divdi3=no
16000fi
16001
16002rm -f core conftest.err conftest.$ac_objext \
16003      conftest$ac_exeext conftest.$ac_ext
16004LIBS=$ac_check_lib_save_LIBS
16005fi
16006{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16007echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16008if test $ac_cv_lib_gcc___divdi3 = yes; then
16009
16010cat >>confdefs.h <<\_ACEOF
16011#define HAVE___DIVDI3 1
16012_ACEOF
16013
16014fi
16015
16016  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16017echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16018if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16019  echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021  ac_check_lib_save_LIBS=$LIBS
16022LIBS="-lgcc  $LIBS"
16023cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h.  */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h.  */
16029
16030/* Override any GCC internal prototype to avoid an error.
16031   Use char because int might match the return type of a GCC
16032   builtin and then its argument prototype would still apply.  */
16033#ifdef __cplusplus
16034extern "C"
16035#endif
16036char __fixdfdi ();
16037int
16038main ()
16039{
16040return __fixdfdi ();
16041  ;
16042  return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext conftest$ac_exeext
16046if { (ac_try="$ac_link"
16047case "(($ac_try" in
16048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049  *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052  (eval "$ac_link") 2>conftest.er1
16053  ac_status=$?
16054  grep -v '^ *+' conftest.er1 >conftest.err
16055  rm -f conftest.er1
16056  cat conftest.err >&5
16057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058  (exit $ac_status); } &&
16059	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060  { (case "(($ac_try" in
16061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062  *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065  (eval "$ac_try") 2>&5
16066  ac_status=$?
16067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); }; } &&
16069	 { ac_try='test -s conftest$ac_exeext'
16070  { (case "(($ac_try" in
16071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072  *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075  (eval "$ac_try") 2>&5
16076  ac_status=$?
16077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078  (exit $ac_status); }; }; then
16079  ac_cv_lib_gcc___fixdfdi=yes
16080else
16081  echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084	ac_cv_lib_gcc___fixdfdi=no
16085fi
16086
16087rm -f core conftest.err conftest.$ac_objext \
16088      conftest$ac_exeext conftest.$ac_ext
16089LIBS=$ac_check_lib_save_LIBS
16090fi
16091{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16092echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16093if test $ac_cv_lib_gcc___fixdfdi = yes; then
16094
16095cat >>confdefs.h <<\_ACEOF
16096#define HAVE___FIXDFDI 1
16097_ACEOF
16098
16099fi
16100
16101  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16102echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16103if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16104  echo $ECHO_N "(cached) $ECHO_C" >&6
16105else
16106  ac_check_lib_save_LIBS=$LIBS
16107LIBS="-lgcc  $LIBS"
16108cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h.  */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h.  */
16114
16115/* Override any GCC internal prototype to avoid an error.
16116   Use char because int might match the return type of a GCC
16117   builtin and then its argument prototype would still apply.  */
16118#ifdef __cplusplus
16119extern "C"
16120#endif
16121char __fixsfdi ();
16122int
16123main ()
16124{
16125return __fixsfdi ();
16126  ;
16127  return 0;
16128}
16129_ACEOF
16130rm -f conftest.$ac_objext conftest$ac_exeext
16131if { (ac_try="$ac_link"
16132case "(($ac_try" in
16133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134  *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137  (eval "$ac_link") 2>conftest.er1
16138  ac_status=$?
16139  grep -v '^ *+' conftest.er1 >conftest.err
16140  rm -f conftest.er1
16141  cat conftest.err >&5
16142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143  (exit $ac_status); } &&
16144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145  { (case "(($ac_try" in
16146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147  *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150  (eval "$ac_try") 2>&5
16151  ac_status=$?
16152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153  (exit $ac_status); }; } &&
16154	 { ac_try='test -s conftest$ac_exeext'
16155  { (case "(($ac_try" in
16156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157  *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160  (eval "$ac_try") 2>&5
16161  ac_status=$?
16162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163  (exit $ac_status); }; }; then
16164  ac_cv_lib_gcc___fixsfdi=yes
16165else
16166  echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
16169	ac_cv_lib_gcc___fixsfdi=no
16170fi
16171
16172rm -f core conftest.err conftest.$ac_objext \
16173      conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16177echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16178if test $ac_cv_lib_gcc___fixsfdi = yes; then
16179
16180cat >>confdefs.h <<\_ACEOF
16181#define HAVE___FIXSFDI 1
16182_ACEOF
16183
16184fi
16185
16186  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16187echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16188if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16189  echo $ECHO_N "(cached) $ECHO_C" >&6
16190else
16191  ac_check_lib_save_LIBS=$LIBS
16192LIBS="-lgcc  $LIBS"
16193cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h.  */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h.  */
16199
16200/* Override any GCC internal prototype to avoid an error.
16201   Use char because int might match the return type of a GCC
16202   builtin and then its argument prototype would still apply.  */
16203#ifdef __cplusplus
16204extern "C"
16205#endif
16206char __floatdidf ();
16207int
16208main ()
16209{
16210return __floatdidf ();
16211  ;
16212  return 0;
16213}
16214_ACEOF
16215rm -f conftest.$ac_objext conftest$ac_exeext
16216if { (ac_try="$ac_link"
16217case "(($ac_try" in
16218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219  *) ac_try_echo=$ac_try;;
16220esac
16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222  (eval "$ac_link") 2>conftest.er1
16223  ac_status=$?
16224  grep -v '^ *+' conftest.er1 >conftest.err
16225  rm -f conftest.er1
16226  cat conftest.err >&5
16227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228  (exit $ac_status); } &&
16229	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230  { (case "(($ac_try" in
16231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232  *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235  (eval "$ac_try") 2>&5
16236  ac_status=$?
16237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238  (exit $ac_status); }; } &&
16239	 { ac_try='test -s conftest$ac_exeext'
16240  { (case "(($ac_try" in
16241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242  *) ac_try_echo=$ac_try;;
16243esac
16244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245  (eval "$ac_try") 2>&5
16246  ac_status=$?
16247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248  (exit $ac_status); }; }; then
16249  ac_cv_lib_gcc___floatdidf=yes
16250else
16251  echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254	ac_cv_lib_gcc___floatdidf=no
16255fi
16256
16257rm -f core conftest.err conftest.$ac_objext \
16258      conftest$ac_exeext conftest.$ac_ext
16259LIBS=$ac_check_lib_save_LIBS
16260fi
16261{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16262echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16263if test $ac_cv_lib_gcc___floatdidf = yes; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define HAVE___FLOATDIDF 1
16267_ACEOF
16268
16269fi
16270
16271  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16272echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16273if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16274  echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276  ac_check_lib_save_LIBS=$LIBS
16277LIBS="-lgcc  $LIBS"
16278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h.  */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h.  */
16284
16285/* Override any GCC internal prototype to avoid an error.
16286   Use char because int might match the return type of a GCC
16287   builtin and then its argument prototype would still apply.  */
16288#ifdef __cplusplus
16289extern "C"
16290#endif
16291char __lshrdi3 ();
16292int
16293main ()
16294{
16295return __lshrdi3 ();
16296  ;
16297  return 0;
16298}
16299_ACEOF
16300rm -f conftest.$ac_objext conftest$ac_exeext
16301if { (ac_try="$ac_link"
16302case "(($ac_try" in
16303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304  *) ac_try_echo=$ac_try;;
16305esac
16306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307  (eval "$ac_link") 2>conftest.er1
16308  ac_status=$?
16309  grep -v '^ *+' conftest.er1 >conftest.err
16310  rm -f conftest.er1
16311  cat conftest.err >&5
16312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313  (exit $ac_status); } &&
16314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16315  { (case "(($ac_try" in
16316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317  *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320  (eval "$ac_try") 2>&5
16321  ac_status=$?
16322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323  (exit $ac_status); }; } &&
16324	 { ac_try='test -s conftest$ac_exeext'
16325  { (case "(($ac_try" in
16326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327  *) ac_try_echo=$ac_try;;
16328esac
16329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330  (eval "$ac_try") 2>&5
16331  ac_status=$?
16332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333  (exit $ac_status); }; }; then
16334  ac_cv_lib_gcc___lshrdi3=yes
16335else
16336  echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339	ac_cv_lib_gcc___lshrdi3=no
16340fi
16341
16342rm -f core conftest.err conftest.$ac_objext \
16343      conftest$ac_exeext conftest.$ac_ext
16344LIBS=$ac_check_lib_save_LIBS
16345fi
16346{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16347echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16348if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16349
16350cat >>confdefs.h <<\_ACEOF
16351#define HAVE___LSHRDI3 1
16352_ACEOF
16353
16354fi
16355
16356  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16357echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16358if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16359  echo $ECHO_N "(cached) $ECHO_C" >&6
16360else
16361  ac_check_lib_save_LIBS=$LIBS
16362LIBS="-lgcc  $LIBS"
16363cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h.  */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h.  */
16369
16370/* Override any GCC internal prototype to avoid an error.
16371   Use char because int might match the return type of a GCC
16372   builtin and then its argument prototype would still apply.  */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376char __moddi3 ();
16377int
16378main ()
16379{
16380return __moddi3 ();
16381  ;
16382  return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext conftest$ac_exeext
16386if { (ac_try="$ac_link"
16387case "(($ac_try" in
16388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389  *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392  (eval "$ac_link") 2>conftest.er1
16393  ac_status=$?
16394  grep -v '^ *+' conftest.er1 >conftest.err
16395  rm -f conftest.er1
16396  cat conftest.err >&5
16397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398  (exit $ac_status); } &&
16399	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400  { (case "(($ac_try" in
16401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402  *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405  (eval "$ac_try") 2>&5
16406  ac_status=$?
16407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408  (exit $ac_status); }; } &&
16409	 { ac_try='test -s conftest$ac_exeext'
16410  { (case "(($ac_try" in
16411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412  *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415  (eval "$ac_try") 2>&5
16416  ac_status=$?
16417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418  (exit $ac_status); }; }; then
16419  ac_cv_lib_gcc___moddi3=yes
16420else
16421  echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424	ac_cv_lib_gcc___moddi3=no
16425fi
16426
16427rm -f core conftest.err conftest.$ac_objext \
16428      conftest$ac_exeext conftest.$ac_ext
16429LIBS=$ac_check_lib_save_LIBS
16430fi
16431{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16432echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16433if test $ac_cv_lib_gcc___moddi3 = yes; then
16434
16435cat >>confdefs.h <<\_ACEOF
16436#define HAVE___MODDI3 1
16437_ACEOF
16438
16439fi
16440
16441  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16442echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16443if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16444  echo $ECHO_N "(cached) $ECHO_C" >&6
16445else
16446  ac_check_lib_save_LIBS=$LIBS
16447LIBS="-lgcc  $LIBS"
16448cat >conftest.$ac_ext <<_ACEOF
16449/* confdefs.h.  */
16450_ACEOF
16451cat confdefs.h >>conftest.$ac_ext
16452cat >>conftest.$ac_ext <<_ACEOF
16453/* end confdefs.h.  */
16454
16455/* Override any GCC internal prototype to avoid an error.
16456   Use char because int might match the return type of a GCC
16457   builtin and then its argument prototype would still apply.  */
16458#ifdef __cplusplus
16459extern "C"
16460#endif
16461char __udivdi3 ();
16462int
16463main ()
16464{
16465return __udivdi3 ();
16466  ;
16467  return 0;
16468}
16469_ACEOF
16470rm -f conftest.$ac_objext conftest$ac_exeext
16471if { (ac_try="$ac_link"
16472case "(($ac_try" in
16473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474  *) ac_try_echo=$ac_try;;
16475esac
16476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477  (eval "$ac_link") 2>conftest.er1
16478  ac_status=$?
16479  grep -v '^ *+' conftest.er1 >conftest.err
16480  rm -f conftest.er1
16481  cat conftest.err >&5
16482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483  (exit $ac_status); } &&
16484	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485  { (case "(($ac_try" in
16486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487  *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490  (eval "$ac_try") 2>&5
16491  ac_status=$?
16492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493  (exit $ac_status); }; } &&
16494	 { ac_try='test -s conftest$ac_exeext'
16495  { (case "(($ac_try" in
16496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497  *) ac_try_echo=$ac_try;;
16498esac
16499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500  (eval "$ac_try") 2>&5
16501  ac_status=$?
16502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503  (exit $ac_status); }; }; then
16504  ac_cv_lib_gcc___udivdi3=yes
16505else
16506  echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509	ac_cv_lib_gcc___udivdi3=no
16510fi
16511
16512rm -f core conftest.err conftest.$ac_objext \
16513      conftest$ac_exeext conftest.$ac_ext
16514LIBS=$ac_check_lib_save_LIBS
16515fi
16516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16517echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16518if test $ac_cv_lib_gcc___udivdi3 = yes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define HAVE___UDIVDI3 1
16522_ACEOF
16523
16524fi
16525
16526  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16527echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16528if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16529  echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531  ac_check_lib_save_LIBS=$LIBS
16532LIBS="-lgcc  $LIBS"
16533cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h.  */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h.  */
16539
16540/* Override any GCC internal prototype to avoid an error.
16541   Use char because int might match the return type of a GCC
16542   builtin and then its argument prototype would still apply.  */
16543#ifdef __cplusplus
16544extern "C"
16545#endif
16546char __umoddi3 ();
16547int
16548main ()
16549{
16550return __umoddi3 ();
16551  ;
16552  return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext conftest$ac_exeext
16556if { (ac_try="$ac_link"
16557case "(($ac_try" in
16558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559  *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562  (eval "$ac_link") 2>conftest.er1
16563  ac_status=$?
16564  grep -v '^ *+' conftest.er1 >conftest.err
16565  rm -f conftest.er1
16566  cat conftest.err >&5
16567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568  (exit $ac_status); } &&
16569	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16570  { (case "(($ac_try" in
16571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572  *) ac_try_echo=$ac_try;;
16573esac
16574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575  (eval "$ac_try") 2>&5
16576  ac_status=$?
16577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578  (exit $ac_status); }; } &&
16579	 { ac_try='test -s conftest$ac_exeext'
16580  { (case "(($ac_try" in
16581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582  *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585  (eval "$ac_try") 2>&5
16586  ac_status=$?
16587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588  (exit $ac_status); }; }; then
16589  ac_cv_lib_gcc___umoddi3=yes
16590else
16591  echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594	ac_cv_lib_gcc___umoddi3=no
16595fi
16596
16597rm -f core conftest.err conftest.$ac_objext \
16598      conftest$ac_exeext conftest.$ac_ext
16599LIBS=$ac_check_lib_save_LIBS
16600fi
16601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16602echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16603if test $ac_cv_lib_gcc___umoddi3 = yes; then
16604
16605cat >>confdefs.h <<\_ACEOF
16606#define HAVE___UMODDI3 1
16607_ACEOF
16608
16609fi
16610
16611
16612  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16613echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16614if test "${ac_cv_lib_gcc___main+set}" = set; then
16615  echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617  ac_check_lib_save_LIBS=$LIBS
16618LIBS="-lgcc  $LIBS"
16619cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h.  */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h.  */
16625
16626/* Override any GCC internal prototype to avoid an error.
16627   Use char because int might match the return type of a GCC
16628   builtin and then its argument prototype would still apply.  */
16629#ifdef __cplusplus
16630extern "C"
16631#endif
16632char __main ();
16633int
16634main ()
16635{
16636return __main ();
16637  ;
16638  return 0;
16639}
16640_ACEOF
16641rm -f conftest.$ac_objext conftest$ac_exeext
16642if { (ac_try="$ac_link"
16643case "(($ac_try" in
16644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645  *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648  (eval "$ac_link") 2>conftest.er1
16649  ac_status=$?
16650  grep -v '^ *+' conftest.er1 >conftest.err
16651  rm -f conftest.er1
16652  cat conftest.err >&5
16653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654  (exit $ac_status); } &&
16655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656  { (case "(($ac_try" in
16657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658  *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661  (eval "$ac_try") 2>&5
16662  ac_status=$?
16663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664  (exit $ac_status); }; } &&
16665	 { ac_try='test -s conftest$ac_exeext'
16666  { (case "(($ac_try" in
16667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668  *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671  (eval "$ac_try") 2>&5
16672  ac_status=$?
16673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674  (exit $ac_status); }; }; then
16675  ac_cv_lib_gcc___main=yes
16676else
16677  echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680	ac_cv_lib_gcc___main=no
16681fi
16682
16683rm -f core conftest.err conftest.$ac_objext \
16684      conftest$ac_exeext conftest.$ac_ext
16685LIBS=$ac_check_lib_save_LIBS
16686fi
16687{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16688echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16689if test $ac_cv_lib_gcc___main = yes; then
16690
16691cat >>confdefs.h <<\_ACEOF
16692#define HAVE___MAIN 1
16693_ACEOF
16694
16695fi
16696
16697  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16698echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16699if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16700  echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702  ac_check_lib_save_LIBS=$LIBS
16703LIBS="-lgcc  $LIBS"
16704cat >conftest.$ac_ext <<_ACEOF
16705/* confdefs.h.  */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
16709/* end confdefs.h.  */
16710
16711/* Override any GCC internal prototype to avoid an error.
16712   Use char because int might match the return type of a GCC
16713   builtin and then its argument prototype would still apply.  */
16714#ifdef __cplusplus
16715extern "C"
16716#endif
16717char __cmpdi2 ();
16718int
16719main ()
16720{
16721return __cmpdi2 ();
16722  ;
16723  return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext conftest$ac_exeext
16727if { (ac_try="$ac_link"
16728case "(($ac_try" in
16729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730  *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733  (eval "$ac_link") 2>conftest.er1
16734  ac_status=$?
16735  grep -v '^ *+' conftest.er1 >conftest.err
16736  rm -f conftest.er1
16737  cat conftest.err >&5
16738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739  (exit $ac_status); } &&
16740	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741  { (case "(($ac_try" in
16742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743  *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746  (eval "$ac_try") 2>&5
16747  ac_status=$?
16748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749  (exit $ac_status); }; } &&
16750	 { ac_try='test -s conftest$ac_exeext'
16751  { (case "(($ac_try" in
16752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753  *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756  (eval "$ac_try") 2>&5
16757  ac_status=$?
16758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759  (exit $ac_status); }; }; then
16760  ac_cv_lib_gcc___cmpdi2=yes
16761else
16762  echo "$as_me: failed program was:" >&5
16763sed 's/^/| /' conftest.$ac_ext >&5
16764
16765	ac_cv_lib_gcc___cmpdi2=no
16766fi
16767
16768rm -f core conftest.err conftest.$ac_objext \
16769      conftest$ac_exeext conftest.$ac_ext
16770LIBS=$ac_check_lib_save_LIBS
16771fi
16772{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16773echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16774if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16775
16776cat >>confdefs.h <<\_ACEOF
16777#define HAVE___CMPDI2 1
16778_ACEOF
16779
16780fi
16781
16782fi
16783
16784if test "$llvm_cv_os_type" = "MingW" ; then
16785  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16786echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16787  cat >conftest.$ac_ext <<_ACEOF
16788
16789  /* confdefs.h.  */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h.  */
16794
16795    #include <windows.h>
16796    #include <imagehlp.h>
16797    extern void foo(PENUMLOADED_MODULES_CALLBACK);
16798    extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16799
16800
16801_ACEOF
16802rm -f conftest.$ac_objext
16803if { (ac_try="$ac_compile"
16804case "(($ac_try" in
16805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806  *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809  (eval "$ac_compile") 2>conftest.er1
16810  ac_status=$?
16811  grep -v '^ *+' conftest.er1 >conftest.err
16812  rm -f conftest.er1
16813  cat conftest.err >&5
16814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815  (exit $ac_status); } &&
16816	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817  { (case "(($ac_try" in
16818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819  *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822  (eval "$ac_try") 2>&5
16823  ac_status=$?
16824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825  (exit $ac_status); }; } &&
16826	 { ac_try='test -s conftest.$ac_objext'
16827  { (case "(($ac_try" in
16828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829  *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832  (eval "$ac_try") 2>&5
16833  ac_status=$?
16834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835  (exit $ac_status); }; }; then
16836
16837  { echo "$as_me:$LINENO: result: yes" >&5
16838echo "${ECHO_T}yes" >&6; }
16839  llvm_cv_win32_elmcb_pcstr="PCSTR"
16840
16841else
16842  echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845
16846  { echo "$as_me:$LINENO: result: no" >&5
16847echo "${ECHO_T}no" >&6; }
16848  llvm_cv_win32_elmcb_pcstr="PSTR"
16849
16850fi
16851
16852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853
16854cat >>confdefs.h <<_ACEOF
16855#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16856_ACEOF
16857
16858fi
16859
16860if test "$llvm_cv_platform_type" = "Unix" ; then
16861
16862
16863for ac_header in stdlib.h unistd.h
16864do
16865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870  echo $ECHO_N "(cached) $ECHO_C" >&6
16871fi
16872ac_res=`eval echo '${'$as_ac_Header'}'`
16873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16874echo "${ECHO_T}$ac_res" >&6; }
16875else
16876  # Is the header compilable?
16877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h.  */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h.  */
16885$ac_includes_default
16886#include <$ac_header>
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (ac_try="$ac_compile"
16890case "(($ac_try" in
16891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892  *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895  (eval "$ac_compile") 2>conftest.er1
16896  ac_status=$?
16897  grep -v '^ *+' conftest.er1 >conftest.err
16898  rm -f conftest.er1
16899  cat conftest.err >&5
16900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901  (exit $ac_status); } &&
16902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903  { (case "(($ac_try" in
16904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905  *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908  (eval "$ac_try") 2>&5
16909  ac_status=$?
16910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911  (exit $ac_status); }; } &&
16912	 { ac_try='test -s conftest.$ac_objext'
16913  { (case "(($ac_try" in
16914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915  *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918  (eval "$ac_try") 2>&5
16919  ac_status=$?
16920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921  (exit $ac_status); }; }; then
16922  ac_header_compiler=yes
16923else
16924  echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927	ac_header_compiler=no
16928fi
16929
16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16932echo "${ECHO_T}$ac_header_compiler" >&6; }
16933
16934# Is the header present?
16935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16937cat >conftest.$ac_ext <<_ACEOF
16938/* confdefs.h.  */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h.  */
16943#include <$ac_header>
16944_ACEOF
16945if { (ac_try="$ac_cpp conftest.$ac_ext"
16946case "(($ac_try" in
16947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948  *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16952  ac_status=$?
16953  grep -v '^ *+' conftest.er1 >conftest.err
16954  rm -f conftest.er1
16955  cat conftest.err >&5
16956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957  (exit $ac_status); } >/dev/null; then
16958  if test -s conftest.err; then
16959    ac_cpp_err=$ac_c_preproc_warn_flag
16960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16961  else
16962    ac_cpp_err=
16963  fi
16964else
16965  ac_cpp_err=yes
16966fi
16967if test -z "$ac_cpp_err"; then
16968  ac_header_preproc=yes
16969else
16970  echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973  ac_header_preproc=no
16974fi
16975
16976rm -f conftest.err conftest.$ac_ext
16977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978echo "${ECHO_T}$ac_header_preproc" >&6; }
16979
16980# So?  What about this header?
16981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16982  yes:no: )
16983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16987    ac_header_preproc=yes
16988    ;;
16989  no:yes:* )
16990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17002    ( cat <<\_ASBOX
17003## ------------------------------------ ##
17004## Report this to http://llvm.org/bugs/ ##
17005## ------------------------------------ ##
17006_ASBOX
17007     ) | sed "s/^/$as_me: WARNING:     /" >&2
17008    ;;
17009esac
17010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17013  echo $ECHO_N "(cached) $ECHO_C" >&6
17014else
17015  eval "$as_ac_Header=\$ac_header_preproc"
17016fi
17017ac_res=`eval echo '${'$as_ac_Header'}'`
17018	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17019echo "${ECHO_T}$ac_res" >&6; }
17020
17021fi
17022if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023  cat >>confdefs.h <<_ACEOF
17024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17025_ACEOF
17026
17027fi
17028
17029done
17030
17031
17032for ac_func in getpagesize
17033do
17034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17035{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17038  echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040  cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h.  */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h.  */
17046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17047   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17048#define $ac_func innocuous_$ac_func
17049
17050/* System header to define __stub macros and hopefully few prototypes,
17051    which can conflict with char $ac_func (); below.
17052    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053    <limits.h> exists even on freestanding compilers.  */
17054
17055#ifdef __STDC__
17056# include <limits.h>
17057#else
17058# include <assert.h>
17059#endif
17060
17061#undef $ac_func
17062
17063/* Override any GCC internal prototype to avoid an error.
17064   Use char because int might match the return type of a GCC
17065   builtin and then its argument prototype would still apply.  */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069char $ac_func ();
17070/* The GNU C library defines this for functions which it implements
17071    to always fail with ENOSYS.  Some functions are actually named
17072    something starting with __ and the normal name is an alias.  */
17073#if defined __stub_$ac_func || defined __stub___$ac_func
17074choke me
17075#endif
17076
17077int
17078main ()
17079{
17080return $ac_func ();
17081  ;
17082  return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext conftest$ac_exeext
17086if { (ac_try="$ac_link"
17087case "(($ac_try" in
17088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089  *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092  (eval "$ac_link") 2>conftest.er1
17093  ac_status=$?
17094  grep -v '^ *+' conftest.er1 >conftest.err
17095  rm -f conftest.er1
17096  cat conftest.err >&5
17097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098  (exit $ac_status); } &&
17099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100  { (case "(($ac_try" in
17101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102  *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105  (eval "$ac_try") 2>&5
17106  ac_status=$?
17107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108  (exit $ac_status); }; } &&
17109	 { ac_try='test -s conftest$ac_exeext'
17110  { (case "(($ac_try" in
17111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112  *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115  (eval "$ac_try") 2>&5
17116  ac_status=$?
17117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118  (exit $ac_status); }; }; then
17119  eval "$as_ac_var=yes"
17120else
17121  echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124	eval "$as_ac_var=no"
17125fi
17126
17127rm -f core conftest.err conftest.$ac_objext \
17128      conftest$ac_exeext conftest.$ac_ext
17129fi
17130ac_res=`eval echo '${'$as_ac_var'}'`
17131	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17132echo "${ECHO_T}$ac_res" >&6; }
17133if test `eval echo '${'$as_ac_var'}'` = yes; then
17134  cat >>confdefs.h <<_ACEOF
17135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17136_ACEOF
17137
17138fi
17139done
17140
17141{ echo "$as_me:$LINENO: checking for working mmap" >&5
17142echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17143if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17144  echo $ECHO_N "(cached) $ECHO_C" >&6
17145else
17146  if test "$cross_compiling" = yes; then
17147  ac_cv_func_mmap_fixed_mapped=no
17148else
17149  cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h.  */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h.  */
17155$ac_includes_default
17156/* malloc might have been renamed as rpl_malloc. */
17157#undef malloc
17158
17159/* Thanks to Mike Haertel and Jim Avera for this test.
17160   Here is a matrix of mmap possibilities:
17161	mmap private not fixed
17162	mmap private fixed at somewhere currently unmapped
17163	mmap private fixed at somewhere already mapped
17164	mmap shared not fixed
17165	mmap shared fixed at somewhere currently unmapped
17166	mmap shared fixed at somewhere already mapped
17167   For private mappings, we should verify that changes cannot be read()
17168   back from the file, nor mmap's back from the file at a different
17169   address.  (There have been systems where private was not correctly
17170   implemented like the infamous i386 svr4.0, and systems where the
17171   VM page cache was not coherent with the file system buffer cache
17172   like early versions of FreeBSD and possibly contemporary NetBSD.)
17173   For shared mappings, we should conversely verify that changes get
17174   propagated back to all the places they're supposed to be.
17175
17176   Grep wants private fixed already mapped.
17177   The main things grep needs to know about mmap are:
17178   * does it exist and is it safe to write into the mmap'd area
17179   * how to use it (BSD variants)  */
17180
17181#include <fcntl.h>
17182#include <sys/mman.h>
17183
17184#if !STDC_HEADERS && !HAVE_STDLIB_H
17185char *malloc ();
17186#endif
17187
17188/* This mess was copied from the GNU getpagesize.h.  */
17189#if !HAVE_GETPAGESIZE
17190/* Assume that all systems that can run configure have sys/param.h.  */
17191# if !HAVE_SYS_PARAM_H
17192#  define HAVE_SYS_PARAM_H 1
17193# endif
17194
17195# ifdef _SC_PAGESIZE
17196#  define getpagesize() sysconf(_SC_PAGESIZE)
17197# else /* no _SC_PAGESIZE */
17198#  if HAVE_SYS_PARAM_H
17199#   include <sys/param.h>
17200#   ifdef EXEC_PAGESIZE
17201#    define getpagesize() EXEC_PAGESIZE
17202#   else /* no EXEC_PAGESIZE */
17203#    ifdef NBPG
17204#     define getpagesize() NBPG * CLSIZE
17205#     ifndef CLSIZE
17206#      define CLSIZE 1
17207#     endif /* no CLSIZE */
17208#    else /* no NBPG */
17209#     ifdef NBPC
17210#      define getpagesize() NBPC
17211#     else /* no NBPC */
17212#      ifdef PAGESIZE
17213#       define getpagesize() PAGESIZE
17214#      endif /* PAGESIZE */
17215#     endif /* no NBPC */
17216#    endif /* no NBPG */
17217#   endif /* no EXEC_PAGESIZE */
17218#  else /* no HAVE_SYS_PARAM_H */
17219#   define getpagesize() 8192	/* punt totally */
17220#  endif /* no HAVE_SYS_PARAM_H */
17221# endif /* no _SC_PAGESIZE */
17222
17223#endif /* no HAVE_GETPAGESIZE */
17224
17225int
17226main ()
17227{
17228  char *data, *data2, *data3;
17229  int i, pagesize;
17230  int fd;
17231
17232  pagesize = getpagesize ();
17233
17234  /* First, make a file with some known garbage in it. */
17235  data = (char *) malloc (pagesize);
17236  if (!data)
17237    return 1;
17238  for (i = 0; i < pagesize; ++i)
17239    *(data + i) = rand ();
17240  umask (0);
17241  fd = creat ("conftest.mmap", 0600);
17242  if (fd < 0)
17243    return 1;
17244  if (write (fd, data, pagesize) != pagesize)
17245    return 1;
17246  close (fd);
17247
17248  /* Next, try to mmap the file at a fixed address which already has
17249     something else allocated at it.  If we can, also make sure that
17250     we see the same garbage.  */
17251  fd = open ("conftest.mmap", O_RDWR);
17252  if (fd < 0)
17253    return 1;
17254  data2 = (char *) malloc (2 * pagesize);
17255  if (!data2)
17256    return 1;
17257  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17258  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17259		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
17260    return 1;
17261  for (i = 0; i < pagesize; ++i)
17262    if (*(data + i) != *(data2 + i))
17263      return 1;
17264
17265  /* Finally, make sure that changes to the mapped area do not
17266     percolate back to the file as seen by read().  (This is a bug on
17267     some variants of i386 svr4.0.)  */
17268  for (i = 0; i < pagesize; ++i)
17269    *(data2 + i) = *(data2 + i) + 1;
17270  data3 = (char *) malloc (pagesize);
17271  if (!data3)
17272    return 1;
17273  if (read (fd, data3, pagesize) != pagesize)
17274    return 1;
17275  for (i = 0; i < pagesize; ++i)
17276    if (*(data + i) != *(data3 + i))
17277      return 1;
17278  close (fd);
17279  return 0;
17280}
17281_ACEOF
17282rm -f conftest$ac_exeext
17283if { (ac_try="$ac_link"
17284case "(($ac_try" in
17285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286  *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289  (eval "$ac_link") 2>&5
17290  ac_status=$?
17291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17293  { (case "(($ac_try" in
17294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295  *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298  (eval "$ac_try") 2>&5
17299  ac_status=$?
17300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301  (exit $ac_status); }; }; then
17302  ac_cv_func_mmap_fixed_mapped=yes
17303else
17304  echo "$as_me: program exited with status $ac_status" >&5
17305echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308( exit $ac_status )
17309ac_cv_func_mmap_fixed_mapped=no
17310fi
17311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17312fi
17313
17314
17315fi
17316{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17317echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17318if test $ac_cv_func_mmap_fixed_mapped = yes; then
17319
17320cat >>confdefs.h <<\_ACEOF
17321#define HAVE_MMAP 1
17322_ACEOF
17323
17324fi
17325rm -f conftest.mmap
17326
17327  { echo "$as_me:$LINENO: checking for mmap of files" >&5
17328echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17329if test "${ac_cv_func_mmap_file+set}" = set; then
17330  echo $ECHO_N "(cached) $ECHO_C" >&6
17331else
17332   ac_ext=c
17333ac_cpp='$CPP $CPPFLAGS'
17334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336ac_compiler_gnu=$ac_cv_c_compiler_gnu
17337
17338  if test "$cross_compiling" = yes; then
17339  ac_cv_func_mmap_file=no
17340else
17341  cat >conftest.$ac_ext <<_ACEOF
17342
17343    /* confdefs.h.  */
17344_ACEOF
17345cat confdefs.h >>conftest.$ac_ext
17346cat >>conftest.$ac_ext <<_ACEOF
17347/* end confdefs.h.  */
17348
17349#include <sys/types.h>
17350#include <sys/mman.h>
17351#include <fcntl.h>
17352
17353int
17354main ()
17355{
17356
17357  int fd;
17358  fd = creat ("foo",0777);
17359  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17360  unlink ("foo");
17361  return (fd != (int) MAP_FAILED);
17362  ;
17363  return 0;
17364}
17365_ACEOF
17366rm -f conftest$ac_exeext
17367if { (ac_try="$ac_link"
17368case "(($ac_try" in
17369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370  *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373  (eval "$ac_link") 2>&5
17374  ac_status=$?
17375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377  { (case "(($ac_try" in
17378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379  *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382  (eval "$ac_try") 2>&5
17383  ac_status=$?
17384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385  (exit $ac_status); }; }; then
17386  ac_cv_func_mmap_file=yes
17387else
17388  echo "$as_me: program exited with status $ac_status" >&5
17389echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392( exit $ac_status )
17393ac_cv_func_mmap_file=no
17394fi
17395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17396fi
17397
17398
17399  ac_ext=c
17400ac_cpp='$CPP $CPPFLAGS'
17401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403ac_compiler_gnu=$ac_cv_c_compiler_gnu
17404
17405
17406fi
17407{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17408echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17409if test "$ac_cv_func_mmap_file" = yes; then
17410
17411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_MMAP_FILE
17413_ACEOF
17414
17415   MMAP_FILE=yes
17416
17417fi
17418
17419  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17420echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17421if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17422  echo $ECHO_N "(cached) $ECHO_C" >&6
17423else
17424  if test "$llvm_cv_os_type" = "Interix" ; then
17425   ac_cv_need_dev_zero_for_mmap=yes
17426 else
17427   ac_cv_need_dev_zero_for_mmap=no
17428 fi
17429
17430fi
17431{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17432echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17433if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17434
17435cat >>confdefs.h <<\_ACEOF
17436#define NEED_DEV_ZERO_FOR_MMAP 1
17437_ACEOF
17438
17439fi
17440
17441  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17442  then
17443    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17444echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17445  fi
17446  if test "$ac_cv_func_mmap_file" = "no"
17447  then
17448    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17449echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17450  fi
17451fi
17452
17453{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17454echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17455ac_ext=cpp
17456ac_cpp='$CXXCPP $CPPFLAGS'
17457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17460
17461cat >conftest.$ac_ext <<_ACEOF
17462
17463  /* confdefs.h.  */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h.  */
17468
17469    int main() {
17470      volatile unsigned long val = 1;
17471      __sync_synchronize();
17472      __sync_val_compare_and_swap(&val, 1, 0);
17473      __sync_add_and_fetch(&val, 1);
17474      __sync_sub_and_fetch(&val, 1);
17475      return 0;
17476    }
17477
17478
17479_ACEOF
17480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484  *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487  (eval "$ac_link") 2>conftest.er1
17488  ac_status=$?
17489  grep -v '^ *+' conftest.er1 >conftest.err
17490  rm -f conftest.er1
17491  cat conftest.err >&5
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); } &&
17494	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17495  { (case "(($ac_try" in
17496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497  *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500  (eval "$ac_try") 2>&5
17501  ac_status=$?
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); }; } &&
17504	 { ac_try='test -s conftest$ac_exeext'
17505  { (case "(($ac_try" in
17506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507  *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510  (eval "$ac_try") 2>&5
17511  ac_status=$?
17512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513  (exit $ac_status); }; }; then
17514
17515  { echo "$as_me:$LINENO: result: yes" >&5
17516echo "${ECHO_T}yes" >&6; }
17517
17518cat >>confdefs.h <<\_ACEOF
17519#define LLVM_HAS_ATOMICS 1
17520_ACEOF
17521
17522
17523else
17524  echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
17527
17528  { echo "$as_me:$LINENO: result: no" >&5
17529echo "${ECHO_T}no" >&6; }
17530
17531cat >>confdefs.h <<\_ACEOF
17532#define LLVM_HAS_ATOMICS 0
17533_ACEOF
17534
17535  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17536echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17537
17538fi
17539
17540rm -f core conftest.err conftest.$ac_objext \
17541      conftest$ac_exeext conftest.$ac_ext
17542ac_ext=c
17543ac_cpp='$CPP $CPPFLAGS'
17544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546ac_compiler_gnu=$ac_cv_c_compiler_gnu
17547
17548
17549
17550if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17551  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17552echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17553if test "${llvm_cv_linux_mixed+set}" = set; then
17554  echo $ECHO_N "(cached) $ECHO_C" >&6
17555else
17556   ac_ext=c
17557ac_cpp='$CPP $CPPFLAGS'
17558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560ac_compiler_gnu=$ac_cv_c_compiler_gnu
17561
17562  cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h.  */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h.  */
17568#ifndef __x86_64__
17569       error: Not x86-64 even if uname says so!
17570      #endif
17571
17572int
17573main ()
17574{
17575
17576  ;
17577  return 0;
17578}
17579_ACEOF
17580rm -f conftest.$ac_objext
17581if { (ac_try="$ac_compile"
17582case "(($ac_try" in
17583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584  *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587  (eval "$ac_compile") 2>conftest.er1
17588  ac_status=$?
17589  grep -v '^ *+' conftest.er1 >conftest.err
17590  rm -f conftest.er1
17591  cat conftest.err >&5
17592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593  (exit $ac_status); } &&
17594	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595  { (case "(($ac_try" in
17596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597  *) ac_try_echo=$ac_try;;
17598esac
17599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600  (eval "$ac_try") 2>&5
17601  ac_status=$?
17602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603  (exit $ac_status); }; } &&
17604	 { ac_try='test -s conftest.$ac_objext'
17605  { (case "(($ac_try" in
17606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607  *) ac_try_echo=$ac_try;;
17608esac
17609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610  (eval "$ac_try") 2>&5
17611  ac_status=$?
17612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613  (exit $ac_status); }; }; then
17614  llvm_cv_linux_mixed=no
17615else
17616  echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619	llvm_cv_linux_mixed=yes
17620fi
17621
17622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623  ac_ext=c
17624ac_cpp='$CPP $CPPFLAGS'
17625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628
17629
17630fi
17631{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17632echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17633
17634  if test "$llvm_cv_linux_mixed" = "yes"; then
17635    llvm_cv_target_arch="x86"
17636    ARCH="x86"
17637  fi
17638fi
17639
17640
17641for ac_func in __dso_handle
17642do
17643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17644{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17646if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17647  echo $ECHO_N "(cached) $ECHO_C" >&6
17648else
17649  cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h.  */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h.  */
17655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17656   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17657#define $ac_func innocuous_$ac_func
17658
17659/* System header to define __stub macros and hopefully few prototypes,
17660    which can conflict with char $ac_func (); below.
17661    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662    <limits.h> exists even on freestanding compilers.  */
17663
17664#ifdef __STDC__
17665# include <limits.h>
17666#else
17667# include <assert.h>
17668#endif
17669
17670#undef $ac_func
17671
17672/* Override any GCC internal prototype to avoid an error.
17673   Use char because int might match the return type of a GCC
17674   builtin and then its argument prototype would still apply.  */
17675#ifdef __cplusplus
17676extern "C"
17677#endif
17678char $ac_func ();
17679/* The GNU C library defines this for functions which it implements
17680    to always fail with ENOSYS.  Some functions are actually named
17681    something starting with __ and the normal name is an alias.  */
17682#if defined __stub_$ac_func || defined __stub___$ac_func
17683choke me
17684#endif
17685
17686int
17687main ()
17688{
17689return $ac_func ();
17690  ;
17691  return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (ac_try="$ac_link"
17696case "(($ac_try" in
17697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698  *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701  (eval "$ac_link") 2>conftest.er1
17702  ac_status=$?
17703  grep -v '^ *+' conftest.er1 >conftest.err
17704  rm -f conftest.er1
17705  cat conftest.err >&5
17706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707  (exit $ac_status); } &&
17708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17709  { (case "(($ac_try" in
17710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711  *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714  (eval "$ac_try") 2>&5
17715  ac_status=$?
17716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717  (exit $ac_status); }; } &&
17718	 { ac_try='test -s conftest$ac_exeext'
17719  { (case "(($ac_try" in
17720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721  *) ac_try_echo=$ac_try;;
17722esac
17723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724  (eval "$ac_try") 2>&5
17725  ac_status=$?
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); }; }; then
17728  eval "$as_ac_var=yes"
17729else
17730  echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733	eval "$as_ac_var=no"
17734fi
17735
17736rm -f core conftest.err conftest.$ac_objext \
17737      conftest$ac_exeext conftest.$ac_ext
17738fi
17739ac_res=`eval echo '${'$as_ac_var'}'`
17740	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17741echo "${ECHO_T}$ac_res" >&6; }
17742if test `eval echo '${'$as_ac_var'}'` = yes; then
17743  cat >>confdefs.h <<_ACEOF
17744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17745_ACEOF
17746
17747fi
17748done
17749
17750
17751SHLIBEXT=$llvm_shlib_ext
17752
17753
17754if test "${prefix}" = "NONE" ; then
17755  prefix="/usr/local"
17756fi
17757eval LLVM_PREFIX="${prefix}";
17758eval LLVM_BINDIR="${prefix}/bin";
17759eval LLVM_DATADIR="${prefix}/share/llvm";
17760eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17761eval LLVM_ETCDIR="${prefix}/etc/llvm";
17762eval LLVM_INCLUDEDIR="${prefix}/include";
17763eval LLVM_INFODIR="${prefix}/info";
17764eval LLVM_MANDIR="${prefix}/man";
17765LLVM_CONFIGTIME=`date`
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776if test "${ENABLE_TIMESTAMPS}" = "0"; then
17777  LLVM_CONFIGTIME="(timestamp not enabled)"
17778fi
17779
17780
17781cat >>confdefs.h <<_ACEOF
17782#define LLVM_PREFIX "$LLVM_PREFIX"
17783_ACEOF
17784
17785
17786cat >>confdefs.h <<_ACEOF
17787#define LLVM_BINDIR "$LLVM_BINDIR"
17788_ACEOF
17789
17790
17791cat >>confdefs.h <<_ACEOF
17792#define LLVM_DATADIR "$LLVM_DATADIR"
17793_ACEOF
17794
17795
17796cat >>confdefs.h <<_ACEOF
17797#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17798_ACEOF
17799
17800
17801cat >>confdefs.h <<_ACEOF
17802#define LLVM_ETCDIR "$LLVM_ETCDIR"
17803_ACEOF
17804
17805
17806cat >>confdefs.h <<_ACEOF
17807#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17808_ACEOF
17809
17810
17811cat >>confdefs.h <<_ACEOF
17812#define LLVM_INFODIR "$LLVM_INFODIR"
17813_ACEOF
17814
17815
17816cat >>confdefs.h <<_ACEOF
17817#define LLVM_MANDIR "$LLVM_MANDIR"
17818_ACEOF
17819
17820
17821cat >>confdefs.h <<_ACEOF
17822#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17823_ACEOF
17824
17825
17826cat >>confdefs.h <<_ACEOF
17827#define LLVM_HOST_TRIPLE "$host"
17828_ACEOF
17829
17830
17831cat >>confdefs.h <<_ACEOF
17832#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17833_ACEOF
17834
17835
17836if test "$BINDINGS_TO_BUILD" = auto ; then
17837  BINDINGS_TO_BUILD=""
17838  if test "x$OCAMLFIND" != x ; then
17839    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17840  fi
17841  if test "x$GO" != x ; then
17842    if $GO run ${srcdir}/bindings/go/conftest.go ; then
17843      BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17844    fi
17845  fi
17846fi
17847BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17848
17849
17850binding_prereqs_failed=0
17851for a_binding in $BINDINGS_TO_BUILD ; do
17852  case "$a_binding" in
17853  ocaml)
17854    if test "x$OCAMLFIND" = x ; then
17855      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17856echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17857      binding_prereqs_failed=1
17858    fi
17859
17860    if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17861      HAVE_OCAMLOPT=1
17862    else
17863      HAVE_OCAMLOPT=0
17864    fi
17865
17866
17867    if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17868      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17869echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17870      binding_prereqs_failed=1
17871    fi
17872
17873    if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17874      HAVE_OCAML_OUNIT=1
17875    else
17876      HAVE_OCAML_OUNIT=0
17877      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17878echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17879          fi
17880
17881
17882    if test "x$with_ocaml_libdir" != xauto ; then
17883      OCAML_LIBDIR=$with_ocaml_libdir
17884
17885    else
17886      ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17887      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17888      then
17889        # ocaml stdlib is beneath our prefix; use stdlib
17890        OCAML_LIBDIR=$ocaml_stdlib
17891
17892      else
17893        # ocaml stdlib is outside our prefix; use libdir/ocaml
17894        OCAML_LIBDIR=${prefix}/lib/ocaml
17895
17896      fi
17897    fi
17898    ;;
17899  go)
17900    if test "x$GO" = x ; then
17901      { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17902echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17903      binding_prereqs_failed=1
17904    else
17905      if $GO run ${srcdir}/bindings/go/conftest.go ; then
17906        :
17907      else
17908        { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17909echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17910        binding_prereqs_failed=1
17911      fi
17912    fi
17913    ;;
17914  esac
17915done
17916if test "$binding_prereqs_failed" = 1 ; then
17917  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17918echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17919   { (exit 1); exit 1; }; }
17920fi
17921
17922{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17923echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17924if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17925  echo $ECHO_N "(cached) $ECHO_C" >&6
17926else
17927   ac_ext=cpp
17928ac_cpp='$CXXCPP $CPPFLAGS'
17929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17932
17933  oldcxxflags="$CXXFLAGS"
17934  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17935  cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h.  */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
17940/* end confdefs.h.  */
17941template <typename T> struct X { void __attribute__((noinline)) f() {} };
17942int
17943main ()
17944{
17945X<int>().f();
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext
17951if { (ac_try="$ac_compile"
17952case "(($ac_try" in
17953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954  *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957  (eval "$ac_compile") 2>conftest.er1
17958  ac_status=$?
17959  grep -v '^ *+' conftest.er1 >conftest.err
17960  rm -f conftest.er1
17961  cat conftest.err >&5
17962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963  (exit $ac_status); } &&
17964	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17965  { (case "(($ac_try" in
17966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967  *) ac_try_echo=$ac_try;;
17968esac
17969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970  (eval "$ac_try") 2>&5
17971  ac_status=$?
17972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973  (exit $ac_status); }; } &&
17974	 { ac_try='test -s conftest.$ac_objext'
17975  { (case "(($ac_try" in
17976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977  *) ac_try_echo=$ac_try;;
17978esac
17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980  (eval "$ac_try") 2>&5
17981  ac_status=$?
17982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983  (exit $ac_status); }; }; then
17984  llvm_cv_cxx_visibility_inlines_hidden=yes
17985else
17986  echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989	llvm_cv_cxx_visibility_inlines_hidden=no
17990fi
17991
17992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993  CXXFLAGS="$oldcxxflags"
17994  ac_ext=c
17995ac_cpp='$CPP $CPPFLAGS'
17996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999
18000
18001fi
18002{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18003echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18004if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18005  ENABLE_VISIBILITY_INLINES_HIDDEN=1
18006
18007else
18008  ENABLE_VISIBILITY_INLINES_HIDDEN=0
18009
18010fi
18011
18012
18013if test "$llvm_cv_link_use_r" = "yes" ; then
18014  RPATH="-Wl,-R"
18015else
18016  RPATH="-Wl,-rpath"
18017fi
18018
18019
18020if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18021  RDYNAMIC="-rdynamic"
18022else
18023  RDYNAMIC=""
18024fi
18025
18026
18027
18028ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18029
18030
18031
18032
18033
18034
18035ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18036
18037ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18038
18039ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18040
18041ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18042
18043ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18044
18045
18046ac_config_files="$ac_config_files Makefile.config"
18047
18048
18049ac_config_files="$ac_config_files llvm.spec"
18050
18051
18052ac_config_files="$ac_config_files docs/doxygen.cfg"
18053
18054
18055if test "${clang_src_root}" = ""; then
18056  clang_src_root="$srcdir/tools/clang"
18057fi
18058if test -f ${clang_src_root}/README.txt; then
18059
18060cat >>confdefs.h <<_ACEOF
18061#define CLANG_LIBDIR_SUFFIX ""
18062_ACEOF
18063
18064
18065    configh="include/clang/Config/config.h"
18066  doxy="docs/doxygen.cfg"
18067  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18068
18069  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18070
18071fi
18072
18073ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18074
18075
18076test "x$program_prefix" = "xNONE" && program_prefix=""
18077
18078
18079
18080ac_config_commands="$ac_config_commands setup"
18081
18082ac_config_commands="$ac_config_commands Makefile"
18083
18084
18085ac_config_commands="$ac_config_commands Makefile.common"
18086
18087
18088ac_config_commands="$ac_config_commands examples/Makefile"
18089
18090
18091ac_config_commands="$ac_config_commands lib/Makefile"
18092
18093
18094ac_config_commands="$ac_config_commands test/Makefile"
18095
18096
18097ac_config_commands="$ac_config_commands test/Makefile.tests"
18098
18099
18100ac_config_commands="$ac_config_commands unittests/Makefile"
18101
18102
18103ac_config_commands="$ac_config_commands tools/Makefile"
18104
18105
18106ac_config_commands="$ac_config_commands utils/Makefile"
18107
18108
18109ac_config_commands="$ac_config_commands projects/Makefile"
18110
18111
18112ac_config_commands="$ac_config_commands bindings/Makefile"
18113
18114
18115ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18116
18117
18118
18119cat >confcache <<\_ACEOF
18120# This file is a shell script that caches the results of configure
18121# tests run on this system so they can be shared between configure
18122# scripts and configure runs, see configure's option --config-cache.
18123# It is not useful on other systems.  If it contains results you don't
18124# want to keep, you may remove or edit it.
18125#
18126# config.status only pays attention to the cache file if you give it
18127# the --recheck option to rerun configure.
18128#
18129# `ac_cv_env_foo' variables (set or unset) will be overridden when
18130# loading this file, other *unset* `ac_cv_foo' will be assigned the
18131# following values.
18132
18133_ACEOF
18134
18135# The following way of writing the cache mishandles newlines in values,
18136# but we know of no workaround that is simple, portable, and efficient.
18137# So, we kill variables containing newlines.
18138# Ultrix sh set writes to stderr and can't be redirected directly,
18139# and sets the high bit in the cache file unless we assign to the vars.
18140(
18141  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18142    eval ac_val=\$$ac_var
18143    case $ac_val in #(
18144    *${as_nl}*)
18145      case $ac_var in #(
18146      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18147echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18148      esac
18149      case $ac_var in #(
18150      _ | IFS | as_nl) ;; #(
18151      *) $as_unset $ac_var ;;
18152      esac ;;
18153    esac
18154  done
18155
18156  (set) 2>&1 |
18157    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18158    *${as_nl}ac_space=\ *)
18159      # `set' does not quote correctly, so add quotes (double-quote
18160      # substitution turns \\\\ into \\, and sed turns \\ into \).
18161      sed -n \
18162	"s/'/'\\\\''/g;
18163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18164      ;; #(
18165    *)
18166      # `set' quotes correctly as required by POSIX, so do not add quotes.
18167      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18168      ;;
18169    esac |
18170    sort
18171) |
18172  sed '
18173     /^ac_cv_env_/b end
18174     t clear
18175     :clear
18176     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18177     t end
18178     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18179     :end' >>confcache
18180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18181  if test -w "$cache_file"; then
18182    test "x$cache_file" != "x/dev/null" &&
18183      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18184echo "$as_me: updating cache $cache_file" >&6;}
18185    cat confcache >$cache_file
18186  else
18187    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18188echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18189  fi
18190fi
18191rm -f confcache
18192
18193test "x$prefix" = xNONE && prefix=$ac_default_prefix
18194# Let make expand exec_prefix.
18195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18196
18197DEFS=-DHAVE_CONFIG_H
18198
18199ac_libobjs=
18200ac_ltlibobjs=
18201for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18202  # 1. Remove the extension, and $U if already installed.
18203  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18204  ac_i=`echo "$ac_i" | sed "$ac_script"`
18205  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18206  #    will be set to the directory where LIBOBJS objects are built.
18207  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18208  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18209done
18210LIBOBJS=$ac_libobjs
18211
18212LTLIBOBJS=$ac_ltlibobjs
18213
18214
18215
18216: ${CONFIG_STATUS=./config.status}
18217ac_clean_files_save=$ac_clean_files
18218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18220echo "$as_me: creating $CONFIG_STATUS" >&6;}
18221cat >$CONFIG_STATUS <<_ACEOF
18222#! $SHELL
18223# Generated by $as_me.
18224# Run this file to recreate the current configuration.
18225# Compiler output produced by configure, useful for debugging
18226# configure, is in config.log if it exists.
18227
18228debug=false
18229ac_cs_recheck=false
18230ac_cs_silent=false
18231SHELL=\${CONFIG_SHELL-$SHELL}
18232_ACEOF
18233
18234cat >>$CONFIG_STATUS <<\_ACEOF
18235## --------------------- ##
18236## M4sh Initialization.  ##
18237## --------------------- ##
18238
18239# Be Bourne compatible
18240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18241  emulate sh
18242  NULLCMD=:
18243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18244  # is contrary to our usage.  Disable this feature.
18245  alias -g '${1+"$@"}'='"$@"'
18246  setopt NO_GLOB_SUBST
18247else
18248  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18249fi
18250BIN_SH=xpg4; export BIN_SH # for Tru64
18251DUALCASE=1; export DUALCASE # for MKS sh
18252
18253
18254# PATH needs CR
18255# Avoid depending upon Character Ranges.
18256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18259as_cr_digits='0123456789'
18260as_cr_alnum=$as_cr_Letters$as_cr_digits
18261
18262# The user is always right.
18263if test "${PATH_SEPARATOR+set}" != set; then
18264  echo "#! /bin/sh" >conf$$.sh
18265  echo  "exit 0"   >>conf$$.sh
18266  chmod +x conf$$.sh
18267  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18268    PATH_SEPARATOR=';'
18269  else
18270    PATH_SEPARATOR=:
18271  fi
18272  rm -f conf$$.sh
18273fi
18274
18275# Support unset when possible.
18276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18277  as_unset=unset
18278else
18279  as_unset=false
18280fi
18281
18282
18283# IFS
18284# We need space, tab and new line, in precisely that order.  Quoting is
18285# there to prevent editors from complaining about space-tab.
18286# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18287# splitting by setting IFS to empty value.)
18288as_nl='
18289'
18290IFS=" ""	$as_nl"
18291
18292# Find who we are.  Look in the path if we contain no directory separator.
18293case $0 in
18294  *[\\/]* ) as_myself=$0 ;;
18295  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18296for as_dir in $PATH
18297do
18298  IFS=$as_save_IFS
18299  test -z "$as_dir" && as_dir=.
18300  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18301done
18302IFS=$as_save_IFS
18303
18304     ;;
18305esac
18306# We did not find ourselves, most probably we were run as `sh COMMAND'
18307# in which case we are not to be found in the path.
18308if test "x$as_myself" = x; then
18309  as_myself=$0
18310fi
18311if test ! -f "$as_myself"; then
18312  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18313  { (exit 1); exit 1; }
18314fi
18315
18316# Work around bugs in pre-3.0 UWIN ksh.
18317for as_var in ENV MAIL MAILPATH
18318do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18319done
18320PS1='$ '
18321PS2='> '
18322PS4='+ '
18323
18324# NLS nuisances.
18325for as_var in \
18326  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18327  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18328  LC_TELEPHONE LC_TIME
18329do
18330  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18331    eval $as_var=C; export $as_var
18332  else
18333    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18334  fi
18335done
18336
18337# Required to use basename.
18338if expr a : '\(a\)' >/dev/null 2>&1 &&
18339   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18340  as_expr=expr
18341else
18342  as_expr=false
18343fi
18344
18345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18346  as_basename=basename
18347else
18348  as_basename=false
18349fi
18350
18351
18352# Name of the executable.
18353as_me=`$as_basename -- "$0" ||
18354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18355	 X"$0" : 'X\(//\)$' \| \
18356	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18357echo X/"$0" |
18358    sed '/^.*\/\([^/][^/]*\)\/*$/{
18359	    s//\1/
18360	    q
18361	  }
18362	  /^X\/\(\/\/\)$/{
18363	    s//\1/
18364	    q
18365	  }
18366	  /^X\/\(\/\).*/{
18367	    s//\1/
18368	    q
18369	  }
18370	  s/.*/./; q'`
18371
18372# CDPATH.
18373$as_unset CDPATH
18374
18375
18376
18377  as_lineno_1=$LINENO
18378  as_lineno_2=$LINENO
18379  test "x$as_lineno_1" != "x$as_lineno_2" &&
18380  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18381
18382  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18383  # uniformly replaced by the line number.  The first 'sed' inserts a
18384  # line-number line after each line using $LINENO; the second 'sed'
18385  # does the real work.  The second script uses 'N' to pair each
18386  # line-number line with the line containing $LINENO, and appends
18387  # trailing '-' during substitution so that $LINENO is not a special
18388  # case at line end.
18389  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18390  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18391  # E. McMahon (1931-1989) for sed's syntax.  :-)
18392  sed -n '
18393    p
18394    /[$]LINENO/=
18395  ' <$as_myself |
18396    sed '
18397      s/[$]LINENO.*/&-/
18398      t lineno
18399      b
18400      :lineno
18401      N
18402      :loop
18403      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18404      t loop
18405      s/-\n.*//
18406    ' >$as_me.lineno &&
18407  chmod +x "$as_me.lineno" ||
18408    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18409   { (exit 1); exit 1; }; }
18410
18411  # Don't try to exec as it changes $[0], causing all sort of problems
18412  # (the dirname of $[0] is not the place where we might find the
18413  # original and so on.  Autoconf is especially sensitive to this).
18414  . "./$as_me.lineno"
18415  # Exit status is that of the last command.
18416  exit
18417}
18418
18419
18420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18421  as_dirname=dirname
18422else
18423  as_dirname=false
18424fi
18425
18426ECHO_C= ECHO_N= ECHO_T=
18427case `echo -n x` in
18428-n*)
18429  case `echo 'x\c'` in
18430  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18431  *)   ECHO_C='\c';;
18432  esac;;
18433*)
18434  ECHO_N='-n';;
18435esac
18436
18437if expr a : '\(a\)' >/dev/null 2>&1 &&
18438   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18439  as_expr=expr
18440else
18441  as_expr=false
18442fi
18443
18444rm -f conf$$ conf$$.exe conf$$.file
18445if test -d conf$$.dir; then
18446  rm -f conf$$.dir/conf$$.file
18447else
18448  rm -f conf$$.dir
18449  mkdir conf$$.dir
18450fi
18451echo >conf$$.file
18452if ln -s conf$$.file conf$$ 2>/dev/null; then
18453  as_ln_s='ln -s'
18454  # ... but there are two gotchas:
18455  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18456  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18457  # In both cases, we have to default to `cp -p'.
18458  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18459    as_ln_s='cp -p'
18460elif ln conf$$.file conf$$ 2>/dev/null; then
18461  as_ln_s=ln
18462else
18463  as_ln_s='cp -p'
18464fi
18465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18466rmdir conf$$.dir 2>/dev/null
18467
18468if mkdir -p . 2>/dev/null; then
18469  as_mkdir_p=:
18470else
18471  test -d ./-p && rmdir ./-p
18472  as_mkdir_p=false
18473fi
18474
18475# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18476# systems may use methods other than mode bits to determine executability.
18477cat >conf$$.file <<_ASEOF
18478#! /bin/sh
18479exit 0
18480_ASEOF
18481chmod +x conf$$.file
18482if test -x conf$$.file >/dev/null 2>&1; then
18483  as_executable_p="test -x"
18484else
18485  as_executable_p=:
18486fi
18487rm -f conf$$.file
18488
18489# Sed expression to map a string onto a valid CPP name.
18490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18491
18492# Sed expression to map a string onto a valid variable name.
18493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18494
18495
18496exec 6>&1
18497
18498# Save the log message, to keep $[0] and so on meaningful, and to
18499# report actual input values of CONFIG_FILES etc. instead of their
18500# values after options handling.
18501ac_log="
18502This file was extended by LLVM $as_me 3.7.0svn, which was
18503generated by GNU Autoconf 2.60.  Invocation command line was
18504
18505  CONFIG_FILES    = $CONFIG_FILES
18506  CONFIG_HEADERS  = $CONFIG_HEADERS
18507  CONFIG_LINKS    = $CONFIG_LINKS
18508  CONFIG_COMMANDS = $CONFIG_COMMANDS
18509  $ $0 $@
18510
18511on `(hostname || uname -n) 2>/dev/null | sed 1q`
18512"
18513
18514_ACEOF
18515
18516cat >>$CONFIG_STATUS <<_ACEOF
18517# Files that config.status was made for.
18518config_files="$ac_config_files"
18519config_headers="$ac_config_headers"
18520config_commands="$ac_config_commands"
18521
18522_ACEOF
18523
18524cat >>$CONFIG_STATUS <<\_ACEOF
18525ac_cs_usage="\
18526\`$as_me' instantiates files from templates according to the
18527current configuration.
18528
18529Usage: $0 [OPTIONS] [FILE]...
18530
18531  -h, --help       print this help, then exit
18532  -V, --version    print version number, then exit
18533  -q, --quiet      do not print progress messages
18534  -d, --debug      don't remove temporary files
18535      --recheck    update $as_me by reconfiguring in the same conditions
18536  --file=FILE[:TEMPLATE]
18537		   instantiate the configuration file FILE
18538  --header=FILE[:TEMPLATE]
18539		   instantiate the configuration header FILE
18540
18541Configuration files:
18542$config_files
18543
18544Configuration headers:
18545$config_headers
18546
18547Configuration commands:
18548$config_commands
18549
18550Report bugs to <bug-autoconf@gnu.org>."
18551
18552_ACEOF
18553cat >>$CONFIG_STATUS <<_ACEOF
18554ac_cs_version="\\
18555LLVM config.status 3.7.0svn
18556configured by $0, generated by GNU Autoconf 2.60,
18557  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18558
18559Copyright (C) 2006 Free Software Foundation, Inc.
18560This config.status script is free software; the Free Software Foundation
18561gives unlimited permission to copy, distribute and modify it."
18562
18563ac_pwd='$ac_pwd'
18564srcdir='$srcdir'
18565INSTALL='$INSTALL'
18566_ACEOF
18567
18568cat >>$CONFIG_STATUS <<\_ACEOF
18569# If no file are specified by the user, then we need to provide default
18570# value.  By we need to know if files were specified by the user.
18571ac_need_defaults=:
18572while test $# != 0
18573do
18574  case $1 in
18575  --*=*)
18576    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18577    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18578    ac_shift=:
18579    ;;
18580  *)
18581    ac_option=$1
18582    ac_optarg=$2
18583    ac_shift=shift
18584    ;;
18585  esac
18586
18587  case $ac_option in
18588  # Handling of the options.
18589  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18590    ac_cs_recheck=: ;;
18591  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18592    echo "$ac_cs_version"; exit ;;
18593  --debug | --debu | --deb | --de | --d | -d )
18594    debug=: ;;
18595  --file | --fil | --fi | --f )
18596    $ac_shift
18597    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18598    ac_need_defaults=false;;
18599  --header | --heade | --head | --hea )
18600    $ac_shift
18601    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18602    ac_need_defaults=false;;
18603  --he | --h)
18604    # Conflict between --help and --header
18605    { echo "$as_me: error: ambiguous option: $1
18606Try \`$0 --help' for more information." >&2
18607   { (exit 1); exit 1; }; };;
18608  --help | --hel | -h )
18609    echo "$ac_cs_usage"; exit ;;
18610  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18611  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18612    ac_cs_silent=: ;;
18613
18614  # This is an error.
18615  -*) { echo "$as_me: error: unrecognized option: $1
18616Try \`$0 --help' for more information." >&2
18617   { (exit 1); exit 1; }; } ;;
18618
18619  *) ac_config_targets="$ac_config_targets $1"
18620     ac_need_defaults=false ;;
18621
18622  esac
18623  shift
18624done
18625
18626ac_configure_extra_args=
18627
18628if $ac_cs_silent; then
18629  exec 6>/dev/null
18630  ac_configure_extra_args="$ac_configure_extra_args --silent"
18631fi
18632
18633_ACEOF
18634cat >>$CONFIG_STATUS <<_ACEOF
18635if \$ac_cs_recheck; then
18636  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18637  CONFIG_SHELL=$SHELL
18638  export CONFIG_SHELL
18639  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18640fi
18641
18642_ACEOF
18643cat >>$CONFIG_STATUS <<\_ACEOF
18644exec 5>>config.log
18645{
18646  echo
18647  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18648## Running $as_me. ##
18649_ASBOX
18650  echo "$ac_log"
18651} >&5
18652
18653_ACEOF
18654cat >>$CONFIG_STATUS <<_ACEOF
18655#
18656# INIT-COMMANDS
18657#
18658llvm_src="${srcdir}"
18659
18660_ACEOF
18661
18662cat >>$CONFIG_STATUS <<\_ACEOF
18663
18664# Handling of arguments.
18665for ac_config_target in $ac_config_targets
18666do
18667  case $ac_config_target in
18668    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18669    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18670    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18671    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18672    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18673    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18674    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18675    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18676    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18677    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18678    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18679    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18680    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18681    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18682    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18683    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18684    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18685    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18686    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18687    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18688    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18689    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18690    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18691    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18692    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18693    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18694
18695  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18696echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18697   { (exit 1); exit 1; }; };;
18698  esac
18699done
18700
18701
18702# If the user did not use the arguments to specify the items to instantiate,
18703# then the envvar interface is used.  Set only those that are not.
18704# We use the long form for the default assignment because of an extremely
18705# bizarre bug on SunOS 4.1.3.
18706if $ac_need_defaults; then
18707  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18708  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18709  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18710fi
18711
18712# Have a temporary directory for convenience.  Make it in the build tree
18713# simply because there is no reason against having it here, and in addition,
18714# creating and moving files from /tmp can sometimes cause problems.
18715# Hook for its removal unless debugging.
18716# Note that there is a small window in which the directory will not be cleaned:
18717# after its creation but before its name has been assigned to `$tmp'.
18718$debug ||
18719{
18720  tmp=
18721  trap 'exit_status=$?
18722  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18723' 0
18724  trap '{ (exit 1); exit 1; }' 1 2 13 15
18725}
18726# Create a (secure) tmp directory for tmp files.
18727
18728{
18729  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18730  test -n "$tmp" && test -d "$tmp"
18731}  ||
18732{
18733  tmp=./conf$$-$RANDOM
18734  (umask 077 && mkdir "$tmp")
18735} ||
18736{
18737   echo "$me: cannot create a temporary directory in ." >&2
18738   { (exit 1); exit 1; }
18739}
18740
18741#
18742# Set up the sed scripts for CONFIG_FILES section.
18743#
18744
18745# No need to generate the scripts if there are no CONFIG_FILES.
18746# This happens for instance when ./config.status config.h
18747if test -n "$CONFIG_FILES"; then
18748
18749_ACEOF
18750
18751
18752
18753ac_delim='%!_!# '
18754for ac_last_try in false false false false false :; do
18755  cat >conf$$subs.sed <<_ACEOF
18756SHELL!$SHELL$ac_delim
18757PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18758PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18759PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18760PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18761PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18762PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18763exec_prefix!$exec_prefix$ac_delim
18764prefix!$prefix$ac_delim
18765program_transform_name!$program_transform_name$ac_delim
18766bindir!$bindir$ac_delim
18767sbindir!$sbindir$ac_delim
18768libexecdir!$libexecdir$ac_delim
18769datarootdir!$datarootdir$ac_delim
18770datadir!$datadir$ac_delim
18771sysconfdir!$sysconfdir$ac_delim
18772sharedstatedir!$sharedstatedir$ac_delim
18773localstatedir!$localstatedir$ac_delim
18774includedir!$includedir$ac_delim
18775oldincludedir!$oldincludedir$ac_delim
18776docdir!$docdir$ac_delim
18777infodir!$infodir$ac_delim
18778htmldir!$htmldir$ac_delim
18779dvidir!$dvidir$ac_delim
18780pdfdir!$pdfdir$ac_delim
18781psdir!$psdir$ac_delim
18782libdir!$libdir$ac_delim
18783localedir!$localedir$ac_delim
18784mandir!$mandir$ac_delim
18785DEFS!$DEFS$ac_delim
18786ECHO_C!$ECHO_C$ac_delim
18787ECHO_N!$ECHO_N$ac_delim
18788ECHO_T!$ECHO_T$ac_delim
18789LIBS!$LIBS$ac_delim
18790build_alias!$build_alias$ac_delim
18791host_alias!$host_alias$ac_delim
18792target_alias!$target_alias$ac_delim
18793LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18794LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18795LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18796LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18797LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18798CC!$CC$ac_delim
18799CFLAGS!$CFLAGS$ac_delim
18800LDFLAGS!$LDFLAGS$ac_delim
18801CPPFLAGS!$CPPFLAGS$ac_delim
18802ac_ct_CC!$ac_ct_CC$ac_delim
18803EXEEXT!$EXEEXT$ac_delim
18804OBJEXT!$OBJEXT$ac_delim
18805CXX!$CXX$ac_delim
18806CXXFLAGS!$CXXFLAGS$ac_delim
18807ac_ct_CXX!$ac_ct_CXX$ac_delim
18808CPP!$CPP$ac_delim
18809subdirs!$subdirs$ac_delim
18810ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18811LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18812build!$build$ac_delim
18813build_cpu!$build_cpu$ac_delim
18814build_vendor!$build_vendor$ac_delim
18815build_os!$build_os$ac_delim
18816host!$host$ac_delim
18817host_cpu!$host_cpu$ac_delim
18818host_vendor!$host_vendor$ac_delim
18819host_os!$host_os$ac_delim
18820target!$target$ac_delim
18821target_cpu!$target_cpu$ac_delim
18822target_vendor!$target_vendor$ac_delim
18823target_os!$target_os$ac_delim
18824OS!$OS$ac_delim
18825HOST_OS!$HOST_OS$ac_delim
18826TARGET_OS!$TARGET_OS$ac_delim
18827LINKALL!$LINKALL$ac_delim
18828NOLINKALL!$NOLINKALL$ac_delim
18829LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18830LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18831ARCH!$ARCH$ac_delim
18832LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18833HOST_ARCH!$HOST_ARCH$ac_delim
18834LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18835BUILD_CC!$BUILD_CC$ac_delim
18836BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18837BUILD_CXX!$BUILD_CXX$ac_delim
18838CVSBUILD!$CVSBUILD$ac_delim
18839ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18840ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18841ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18842ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18843CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18844ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18845ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18846ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18847DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18848ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18849ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18850EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18851ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18852DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18853_ACEOF
18854
18855  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18856    break
18857  elif $ac_last_try; then
18858    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18859echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18860   { (exit 1); exit 1; }; }
18861  else
18862    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18863  fi
18864done
18865
18866ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18867if test -n "$ac_eof"; then
18868  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18869  ac_eof=`expr $ac_eof + 1`
18870fi
18871
18872cat >>$CONFIG_STATUS <<_ACEOF
18873cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18875_ACEOF
18876sed '
18877s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18878s/^/s,@/; s/!/@,|#_!!_#|/
18879:n
18880t n
18881s/'"$ac_delim"'$/,g/; t
18882s/$/\\/; p
18883N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18884' >>$CONFIG_STATUS <conf$$subs.sed
18885rm -f conf$$subs.sed
18886cat >>$CONFIG_STATUS <<_ACEOF
18887CEOF$ac_eof
18888_ACEOF
18889
18890
18891ac_delim='%!_!# '
18892for ac_last_try in false false false false false :; do
18893  cat >conf$$subs.sed <<_ACEOF
18894DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18895KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18896JIT!$JIT$ac_delim
18897TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18898TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18899ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18900ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18901enable_searchengine!$enable_searchengine$ac_delim
18902enable_external_search!$enable_external_search$ac_delim
18903enable_server_based_search!$enable_server_based_search$ac_delim
18904searchengine_url!$searchengine_url$ac_delim
18905extra_search_mappings!$extra_search_mappings$ac_delim
18906QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18907llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18908llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18909llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18910llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18911llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18912llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18913clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18914clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18915clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18916clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18917clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18918clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18919LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18920ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18921LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18922ENABLE_PIC!$ENABLE_PIC$ac_delim
18923ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18924ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18925ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18926ALL_TARGETS!$ALL_TARGETS$ac_delim
18927TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18928LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18929LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18930LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18931LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18932OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18933EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18934EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18935CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18936BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18937ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18938INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18939ifGNUmake!$ifGNUmake$ac_delim
18940LN_S!$LN_S$ac_delim
18941NM!$NM$ac_delim
18942CMP!$CMP$ac_delim
18943CP!$CP$ac_delim
18944DATE!$DATE$ac_delim
18945FIND!$FIND$ac_delim
18946GREP!$GREP$ac_delim
18947MKDIR!$MKDIR$ac_delim
18948MV!$MV$ac_delim
18949RANLIB!$RANLIB$ac_delim
18950AR!$AR$ac_delim
18951RM!$RM$ac_delim
18952SED!$SED$ac_delim
18953TAR!$TAR$ac_delim
18954BINPWD!$BINPWD$ac_delim
18955DOT!$DOT$ac_delim
18956INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18957INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18958INSTALL_DATA!$INSTALL_DATA$ac_delim
18959BZIP2!$BZIP2$ac_delim
18960CAT!$CAT$ac_delim
18961DOXYGEN!$DOXYGEN$ac_delim
18962GROFF!$GROFF$ac_delim
18963GZIPBIN!$GZIPBIN$ac_delim
18964PDFROFF!$PDFROFF$ac_delim
18965ZIP!$ZIP$ac_delim
18966GO!$GO$ac_delim
18967OCAMLFIND!$OCAMLFIND$ac_delim
18968GAS!$GAS$ac_delim
18969HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18970EGREP!$EGREP$ac_delim
18971NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18972NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18973COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18974NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18975NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18976NO_COMMENT!$NO_COMMENT$ac_delim
18977PYTHON!$PYTHON$ac_delim
18978HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18979HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18980USE_OPROFILE!$USE_OPROFILE$ac_delim
18981USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18982XML2CONFIG!$XML2CONFIG$ac_delim
18983LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18984LIBXML2_INC!$LIBXML2_INC$ac_delim
18985HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18986HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18987HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18988MMAP_FILE!$MMAP_FILE$ac_delim
18989SHLIBEXT!$SHLIBEXT$ac_delim
18990LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18991_ACEOF
18992
18993  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18994    break
18995  elif $ac_last_try; then
18996    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18997echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18998   { (exit 1); exit 1; }; }
18999  else
19000    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19001  fi
19002done
19003
19004ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19005if test -n "$ac_eof"; then
19006  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19007  ac_eof=`expr $ac_eof + 1`
19008fi
19009
19010cat >>$CONFIG_STATUS <<_ACEOF
19011cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19012/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19013_ACEOF
19014sed '
19015s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19016s/^/s,@/; s/!/@,|#_!!_#|/
19017:n
19018t n
19019s/'"$ac_delim"'$/,g/; t
19020s/$/\\/; p
19021N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19022' >>$CONFIG_STATUS <conf$$subs.sed
19023rm -f conf$$subs.sed
19024cat >>$CONFIG_STATUS <<_ACEOF
19025CEOF$ac_eof
19026_ACEOF
19027
19028
19029ac_delim='%!_!# '
19030for ac_last_try in false false false false false :; do
19031  cat >conf$$subs.sed <<_ACEOF
19032LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19033LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19034LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19035LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19036LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19037LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19038LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19039LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19040BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19041HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19042HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19043OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19044ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19045RPATH!$RPATH$ac_delim
19046RDYNAMIC!$RDYNAMIC$ac_delim
19047program_prefix!$program_prefix$ac_delim
19048LIBOBJS!$LIBOBJS$ac_delim
19049LTLIBOBJS!$LTLIBOBJS$ac_delim
19050_ACEOF
19051
19052  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19053    break
19054  elif $ac_last_try; then
19055    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19056echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19057   { (exit 1); exit 1; }; }
19058  else
19059    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19060  fi
19061done
19062
19063ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19064if test -n "$ac_eof"; then
19065  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19066  ac_eof=`expr $ac_eof + 1`
19067fi
19068
19069cat >>$CONFIG_STATUS <<_ACEOF
19070cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19072_ACEOF
19073sed '
19074s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19075s/^/s,@/; s/!/@,|#_!!_#|/
19076:n
19077t n
19078s/'"$ac_delim"'$/,g/; t
19079s/$/\\/; p
19080N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19081' >>$CONFIG_STATUS <conf$$subs.sed
19082rm -f conf$$subs.sed
19083cat >>$CONFIG_STATUS <<_ACEOF
19084:end
19085s/|#_!!_#|//g
19086CEOF$ac_eof
19087_ACEOF
19088
19089
19090# VPATH may cause trouble with some makes, so we remove $(srcdir),
19091# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19092# trailing colons and then remove the whole line if VPATH becomes empty
19093# (actually we leave an empty line to preserve line numbers).
19094if test "x$srcdir" = x.; then
19095  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19096s/:*\$(srcdir):*/:/
19097s/:*\${srcdir}:*/:/
19098s/:*@srcdir@:*/:/
19099s/^\([^=]*=[	 ]*\):*/\1/
19100s/:*$//
19101s/^[^=]*=[	 ]*$//
19102}'
19103fi
19104
19105cat >>$CONFIG_STATUS <<\_ACEOF
19106fi # test -n "$CONFIG_FILES"
19107
19108
19109for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19110do
19111  case $ac_tag in
19112  :[FHLC]) ac_mode=$ac_tag; continue;;
19113  esac
19114  case $ac_mode$ac_tag in
19115  :[FHL]*:*);;
19116  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19117echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19118   { (exit 1); exit 1; }; };;
19119  :[FH]-) ac_tag=-:-;;
19120  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19121  esac
19122  ac_save_IFS=$IFS
19123  IFS=:
19124  set x $ac_tag
19125  IFS=$ac_save_IFS
19126  shift
19127  ac_file=$1
19128  shift
19129
19130  case $ac_mode in
19131  :L) ac_source=$1;;
19132  :[FH])
19133    ac_file_inputs=
19134    for ac_f
19135    do
19136      case $ac_f in
19137      -) ac_f="$tmp/stdin";;
19138      *) # Look for the file first in the build tree, then in the source tree
19139	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19140	 # because $ac_f cannot contain `:'.
19141	 test -f "$ac_f" ||
19142	   case $ac_f in
19143	   [\\/$]*) false;;
19144	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19145	   esac ||
19146	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19147echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19148   { (exit 1); exit 1; }; };;
19149      esac
19150      ac_file_inputs="$ac_file_inputs $ac_f"
19151    done
19152
19153    # Let's still pretend it is `configure' which instantiates (i.e., don't
19154    # use $as_me), people would be surprised to read:
19155    #    /* config.h.  Generated by config.status.  */
19156    configure_input="Generated from "`IFS=:
19157	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19158    if test x"$ac_file" != x-; then
19159      configure_input="$ac_file.  $configure_input"
19160      { echo "$as_me:$LINENO: creating $ac_file" >&5
19161echo "$as_me: creating $ac_file" >&6;}
19162    fi
19163
19164    case $ac_tag in
19165    *:-:* | *:-) cat >"$tmp/stdin";;
19166    esac
19167    ;;
19168  esac
19169
19170  ac_dir=`$as_dirname -- "$ac_file" ||
19171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19172	 X"$ac_file" : 'X\(//\)[^/]' \| \
19173	 X"$ac_file" : 'X\(//\)$' \| \
19174	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19175echo X"$ac_file" |
19176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19177	    s//\1/
19178	    q
19179	  }
19180	  /^X\(\/\/\)[^/].*/{
19181	    s//\1/
19182	    q
19183	  }
19184	  /^X\(\/\/\)$/{
19185	    s//\1/
19186	    q
19187	  }
19188	  /^X\(\/\).*/{
19189	    s//\1/
19190	    q
19191	  }
19192	  s/.*/./; q'`
19193  { as_dir="$ac_dir"
19194  case $as_dir in #(
19195  -*) as_dir=./$as_dir;;
19196  esac
19197  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19198    as_dirs=
19199    while :; do
19200      case $as_dir in #(
19201      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19202      *) as_qdir=$as_dir;;
19203      esac
19204      as_dirs="'$as_qdir' $as_dirs"
19205      as_dir=`$as_dirname -- "$as_dir" ||
19206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19207	 X"$as_dir" : 'X\(//\)[^/]' \| \
19208	 X"$as_dir" : 'X\(//\)$' \| \
19209	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19210echo X"$as_dir" |
19211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19212	    s//\1/
19213	    q
19214	  }
19215	  /^X\(\/\/\)[^/].*/{
19216	    s//\1/
19217	    q
19218	  }
19219	  /^X\(\/\/\)$/{
19220	    s//\1/
19221	    q
19222	  }
19223	  /^X\(\/\).*/{
19224	    s//\1/
19225	    q
19226	  }
19227	  s/.*/./; q'`
19228      test -d "$as_dir" && break
19229    done
19230    test -z "$as_dirs" || eval "mkdir $as_dirs"
19231  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19232echo "$as_me: error: cannot create directory $as_dir" >&2;}
19233   { (exit 1); exit 1; }; }; }
19234  ac_builddir=.
19235
19236case "$ac_dir" in
19237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19238*)
19239  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19240  # A ".." for each directory in $ac_dir_suffix.
19241  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19242  case $ac_top_builddir_sub in
19243  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19244  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19245  esac ;;
19246esac
19247ac_abs_top_builddir=$ac_pwd
19248ac_abs_builddir=$ac_pwd$ac_dir_suffix
19249# for backward compatibility:
19250ac_top_builddir=$ac_top_build_prefix
19251
19252case $srcdir in
19253  .)  # We are building in place.
19254    ac_srcdir=.
19255    ac_top_srcdir=$ac_top_builddir_sub
19256    ac_abs_top_srcdir=$ac_pwd ;;
19257  [\\/]* | ?:[\\/]* )  # Absolute name.
19258    ac_srcdir=$srcdir$ac_dir_suffix;
19259    ac_top_srcdir=$srcdir
19260    ac_abs_top_srcdir=$srcdir ;;
19261  *) # Relative name.
19262    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19263    ac_top_srcdir=$ac_top_build_prefix$srcdir
19264    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19265esac
19266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19267
19268
19269  case $ac_mode in
19270  :F)
19271  #
19272  # CONFIG_FILE
19273  #
19274
19275  case $INSTALL in
19276  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19277  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19278  esac
19279_ACEOF
19280
19281cat >>$CONFIG_STATUS <<\_ACEOF
19282# If the template does not know about datarootdir, expand it.
19283# FIXME: This hack should be removed a few years after 2.60.
19284ac_datarootdir_hack=; ac_datarootdir_seen=
19285
19286case `sed -n '/datarootdir/ {
19287  p
19288  q
19289}
19290/@datadir@/p
19291/@docdir@/p
19292/@infodir@/p
19293/@localedir@/p
19294/@mandir@/p
19295' $ac_file_inputs` in
19296*datarootdir*) ac_datarootdir_seen=yes;;
19297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19298  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19299echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19300_ACEOF
19301cat >>$CONFIG_STATUS <<_ACEOF
19302  ac_datarootdir_hack='
19303  s&@datadir@&$datadir&g
19304  s&@docdir@&$docdir&g
19305  s&@infodir@&$infodir&g
19306  s&@localedir@&$localedir&g
19307  s&@mandir@&$mandir&g
19308    s&\\\${datarootdir}&$datarootdir&g' ;;
19309esac
19310_ACEOF
19311
19312# Neutralize VPATH when `$srcdir' = `.'.
19313# Shell code in configure.ac might set extrasub.
19314# FIXME: do we really want to maintain this feature?
19315cat >>$CONFIG_STATUS <<_ACEOF
19316  sed "$ac_vpsub
19317$extrasub
19318_ACEOF
19319cat >>$CONFIG_STATUS <<\_ACEOF
19320:t
19321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19322s&@configure_input@&$configure_input&;t t
19323s&@top_builddir@&$ac_top_builddir_sub&;t t
19324s&@srcdir@&$ac_srcdir&;t t
19325s&@abs_srcdir@&$ac_abs_srcdir&;t t
19326s&@top_srcdir@&$ac_top_srcdir&;t t
19327s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19328s&@builddir@&$ac_builddir&;t t
19329s&@abs_builddir@&$ac_abs_builddir&;t t
19330s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19331s&@INSTALL@&$ac_INSTALL&;t t
19332$ac_datarootdir_hack
19333" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19334
19335test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19336  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19337  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19338  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19339which seems to be undefined.  Please make sure it is defined." >&5
19340echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19341which seems to be undefined.  Please make sure it is defined." >&2;}
19342
19343  rm -f "$tmp/stdin"
19344  case $ac_file in
19345  -) cat "$tmp/out"; rm -f "$tmp/out";;
19346  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19347  esac
19348 ;;
19349  :H)
19350  #
19351  # CONFIG_HEADER
19352  #
19353_ACEOF
19354
19355# Transform confdefs.h into a sed script `conftest.defines', that
19356# substitutes the proper values into config.h.in to produce config.h.
19357rm -f conftest.defines conftest.tail
19358# First, append a space to every undef/define line, to ease matching.
19359echo 's/$/ /' >conftest.defines
19360# Then, protect against being on the right side of a sed subst, or in
19361# an unquoted here document, in config.status.  If some macros were
19362# called several times there might be several #defines for the same
19363# symbol, which is useless.  But do not sort them, since the last
19364# AC_DEFINE must be honored.
19365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19366# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19367# NAME is the cpp macro being defined, VALUE is the value it is being given.
19368# PARAMS is the parameter list in the macro definition--in most cases, it's
19369# just an empty string.
19370ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
19371ac_dB='\\)[	 (].*,\\1define\\2'
19372ac_dC=' '
19373ac_dD=' ,'
19374
19375uniq confdefs.h |
19376  sed -n '
19377	t rset
19378	:rset
19379	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
19380	t ok
19381	d
19382	:ok
19383	s/[\\&,]/\\&/g
19384	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19385	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19386  ' >>conftest.defines
19387
19388# Remove the space that was appended to ease matching.
19389# Then replace #undef with comments.  This is necessary, for
19390# example, in the case of _POSIX_SOURCE, which is predefined and required
19391# on some systems where configure will not decide to define it.
19392# (The regexp can be short, since the line contains either #define or #undef.)
19393echo 's/ $//
19394s,^[	 #]*u.*,/* & */,' >>conftest.defines
19395
19396# Break up conftest.defines:
19397ac_max_sed_lines=50
19398
19399# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19400# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19401# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19402# et cetera.
19403ac_in='$ac_file_inputs'
19404ac_out='"$tmp/out1"'
19405ac_nxt='"$tmp/out2"'
19406
19407while :
19408do
19409  # Write a here document:
19410    cat >>$CONFIG_STATUS <<_ACEOF
19411    # First, check the format of the line:
19412    cat >"\$tmp/defines.sed" <<\\CEOF
19413/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
19414/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
19415b
19416:def
19417_ACEOF
19418  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19419  echo 'CEOF
19420    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19421  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19422  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19423  grep . conftest.tail >/dev/null || break
19424  rm -f conftest.defines
19425  mv conftest.tail conftest.defines
19426done
19427rm -f conftest.defines conftest.tail
19428
19429echo "ac_result=$ac_in" >>$CONFIG_STATUS
19430cat >>$CONFIG_STATUS <<\_ACEOF
19431  if test x"$ac_file" != x-; then
19432    echo "/* $configure_input  */" >"$tmp/config.h"
19433    cat "$ac_result" >>"$tmp/config.h"
19434    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19435      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19436echo "$as_me: $ac_file is unchanged" >&6;}
19437    else
19438      rm -f $ac_file
19439      mv "$tmp/config.h" $ac_file
19440    fi
19441  else
19442    echo "/* $configure_input  */"
19443    cat "$ac_result"
19444  fi
19445  rm -f "$tmp/out12"
19446 ;;
19447
19448  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19449echo "$as_me: executing $ac_file commands" >&6;}
19450 ;;
19451  esac
19452
19453
19454  case $ac_file$ac_mode in
19455    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19456   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19457    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19458   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19459    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19460   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19461    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19462   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19463    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19464   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19465    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19466   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19467    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19468   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19469    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19470   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19471    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19472   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19473    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19474   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19475    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19476   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19477    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19478   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19479
19480  esac
19481done # for ac_tag
19482
19483
19484{ (exit 0); exit 0; }
19485_ACEOF
19486chmod +x $CONFIG_STATUS
19487ac_clean_files=$ac_clean_files_save
19488
19489
19490# configure is writing to config.log, and then calls config.status.
19491# config.status does its own redirection, appending to config.log.
19492# Unfortunately, on DOS this fails, as config.log is still kept open
19493# by configure, so config.status won't be able to write to it; its
19494# output is simply discarded.  So we exec the FD to /dev/null,
19495# effectively closing config.log, so it can be properly (re)opened and
19496# appended to by config.status.  When coming back to configure, we
19497# need to make the FD available again.
19498if test "$no_create" != yes; then
19499  ac_cs_success=:
19500  ac_config_status_args=
19501  test "$silent" = yes &&
19502    ac_config_status_args="$ac_config_status_args --quiet"
19503  exec 5>/dev/null
19504  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19505  exec 5>>config.log
19506  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19507  # would make configure fail if this is the last instruction.
19508  $ac_cs_success || { (exit 1); exit 1; }
19509fi
19510
19511#
19512# CONFIG_SUBDIRS section.
19513#
19514if test "$no_recursion" != yes; then
19515
19516  # Remove --cache-file and --srcdir arguments so they do not pile up.
19517  ac_sub_configure_args=
19518  ac_prev=
19519  eval "set x $ac_configure_args"
19520  shift
19521  for ac_arg
19522  do
19523    if test -n "$ac_prev"; then
19524      ac_prev=
19525      continue
19526    fi
19527    case $ac_arg in
19528    -cache-file | --cache-file | --cache-fil | --cache-fi \
19529    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19530      ac_prev=cache_file ;;
19531    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19532    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19533    | --c=*)
19534      ;;
19535    --config-cache | -C)
19536      ;;
19537    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19538      ac_prev=srcdir ;;
19539    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19540      ;;
19541    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19542      ac_prev=prefix ;;
19543    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19544      ;;
19545    *)
19546      case $ac_arg in
19547      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19548      esac
19549      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19550    esac
19551  done
19552
19553  # Always prepend --prefix to ensure using the same prefix
19554  # in subdir configurations.
19555  ac_arg="--prefix=$prefix"
19556  case $ac_arg in
19557  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19558  esac
19559  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19560
19561  ac_popdir=`pwd`
19562  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19563
19564    # Do not complain, so a configure script can configure whichever
19565    # parts of a large source tree are present.
19566    test -d "$srcdir/$ac_dir" || continue
19567
19568    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19569    echo "$as_me:$LINENO: $ac_msg" >&5
19570    echo "$ac_msg" >&6
19571    { as_dir="$ac_dir"
19572  case $as_dir in #(
19573  -*) as_dir=./$as_dir;;
19574  esac
19575  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19576    as_dirs=
19577    while :; do
19578      case $as_dir in #(
19579      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19580      *) as_qdir=$as_dir;;
19581      esac
19582      as_dirs="'$as_qdir' $as_dirs"
19583      as_dir=`$as_dirname -- "$as_dir" ||
19584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19585	 X"$as_dir" : 'X\(//\)[^/]' \| \
19586	 X"$as_dir" : 'X\(//\)$' \| \
19587	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19588echo X"$as_dir" |
19589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19590	    s//\1/
19591	    q
19592	  }
19593	  /^X\(\/\/\)[^/].*/{
19594	    s//\1/
19595	    q
19596	  }
19597	  /^X\(\/\/\)$/{
19598	    s//\1/
19599	    q
19600	  }
19601	  /^X\(\/\).*/{
19602	    s//\1/
19603	    q
19604	  }
19605	  s/.*/./; q'`
19606      test -d "$as_dir" && break
19607    done
19608    test -z "$as_dirs" || eval "mkdir $as_dirs"
19609  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19610echo "$as_me: error: cannot create directory $as_dir" >&2;}
19611   { (exit 1); exit 1; }; }; }
19612    ac_builddir=.
19613
19614case "$ac_dir" in
19615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19616*)
19617  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19618  # A ".." for each directory in $ac_dir_suffix.
19619  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19620  case $ac_top_builddir_sub in
19621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19623  esac ;;
19624esac
19625ac_abs_top_builddir=$ac_pwd
19626ac_abs_builddir=$ac_pwd$ac_dir_suffix
19627# for backward compatibility:
19628ac_top_builddir=$ac_top_build_prefix
19629
19630case $srcdir in
19631  .)  # We are building in place.
19632    ac_srcdir=.
19633    ac_top_srcdir=$ac_top_builddir_sub
19634    ac_abs_top_srcdir=$ac_pwd ;;
19635  [\\/]* | ?:[\\/]* )  # Absolute name.
19636    ac_srcdir=$srcdir$ac_dir_suffix;
19637    ac_top_srcdir=$srcdir
19638    ac_abs_top_srcdir=$srcdir ;;
19639  *) # Relative name.
19640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19641    ac_top_srcdir=$ac_top_build_prefix$srcdir
19642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19643esac
19644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19645
19646
19647    cd "$ac_dir"
19648
19649    # Check for guested configure; otherwise get Cygnus style configure.
19650    if test -f "$ac_srcdir/configure.gnu"; then
19651      ac_sub_configure=$ac_srcdir/configure.gnu
19652    elif test -f "$ac_srcdir/configure"; then
19653      ac_sub_configure=$ac_srcdir/configure
19654    elif test -f "$ac_srcdir/configure.in"; then
19655      # This should be Cygnus configure.
19656      ac_sub_configure=$ac_aux_dir/configure
19657    else
19658      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19659echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19660      ac_sub_configure=
19661    fi
19662
19663    # The recursion is here.
19664    if test -n "$ac_sub_configure"; then
19665      # Make the cache file name correct relative to the subdirectory.
19666      case $cache_file in
19667      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19668      *) # Relative name.
19669	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19670      esac
19671
19672      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19673echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19674      # The eval makes quoting arguments work.
19675      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19676	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19677	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19678echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19679   { (exit 1); exit 1; }; }
19680    fi
19681
19682    cd "$ac_popdir"
19683  done
19684fi
19685
19686