1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
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-2013 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.4svn'
565PACKAGE_STRING='LLVM 3.4svn'
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_COPYRIGHT
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654subdirs
655ENABLE_POLLY
656LLVM_HAS_POLLY
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677HOST_ARCH
678ENDIAN
679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
686ENABLE_LIBCPP
687ENABLE_CXX11
688ENABLE_SPLIT_DWARF
689ENABLE_CLANG_ARCMT
690ENABLE_CLANG_STATIC_ANALYZER
691ENABLE_CLANG_REWRITER
692ENABLE_OPTIMIZED
693ENABLE_PROFILING
694DISABLE_ASSERTIONS
695ENABLE_WERROR
696ENABLE_EXPENSIVE_CHECKS
697EXPENSIVE_CHECKS
698DEBUG_RUNTIME
699DEBUG_SYMBOLS
700KEEP_SYMBOLS
701JIT
702TARGET_HAS_JIT
703ENABLE_DOCS
704ENABLE_DOXYGEN
705LLVM_ENABLE_THREADS
706ENABLE_PTHREADS
707LLVM_ENABLE_ZLIB
708ENABLE_PIC
709ENABLE_SHARED
710ENABLE_EMBED_STDCXX
711ENABLE_TIMESTAMPS
712ENABLE_BACKTRACES
713TARGETS_TO_BUILD
714LLVM_ENUM_TARGETS
715LLVM_ENUM_ASM_PRINTERS
716LLVM_ENUM_ASM_PARSERS
717LLVM_ENUM_DISASSEMBLERS
718OPTIMIZE_OPTION
719EXTRA_OPTIONS
720EXTRA_LD_OPTIONS
721CLANG_SRC_ROOT
722BINUTILS_INCDIR
723INTERNAL_PREFIX
724NM
725ifGNUmake
726LN_S
727CMP
728CP
729DATE
730FIND
731MKDIR
732MV
733RANLIB
734AR
735RM
736SED
737TAR
738BINPWD
739GRAPHVIZ
740DOT
741FDP
742NEATO
743TWOPI
744CIRCO
745GV
746DOTTY
747XDOT
748INSTALL_PROGRAM
749INSTALL_SCRIPT
750INSTALL_DATA
751BZIP2
752CAT
753DOXYGEN
754GROFF
755GZIPBIN
756PDFROFF
757ZIP
758OCAMLC
759OCAMLOPT
760OCAMLDEP
761OCAMLDOC
762GAS
763HAVE_LINK_VERSION_SCRIPT
764INSTALL_LTDL_TRUE
765INSTALL_LTDL_FALSE
766CONVENIENCE_LTDL_TRUE
767CONVENIENCE_LTDL_FALSE
768LIBADD_DL
769NO_VARIADIC_MACROS
770NO_MISSING_FIELD_INITIALIZERS
771COVERED_SWITCH_DEFAULT
772NO_MAYBE_UNINITIALIZED
773NO_UNINITIALIZED
774PYTHON
775USE_UDIS86
776USE_OPROFILE
777USE_INTEL_JITEVENTS
778XML2CONFIG
779LIBXML2_LIBS
780LIBXML2_INC
781CXXCPP
782HAVE_PTHREAD
783HAVE_LIBZ
784HUGE_VAL_SANITY
785MMAP_FILE
786SHLIBEXT
787SHLIBPATH_VAR
788LLVM_PREFIX
789LLVM_BINDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803program_prefix
804LIBOBJS
805LTLIBOBJS'
806ac_subst_files=''
807      ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813CPPFLAGS
814CXX
815CXXFLAGS
816CCC
817CPP
818CXXCPP'
819ac_subdirs_all='projects/llvm-gcc
820projects/test-suite
821projects/llvm-test
822projects/poolalloc
823projects/llvm-poolalloc
824projects/sample
825projects/privbracket
826projects/llvm-stacker
827projects/llvm-reopt
828projects/llvm-java
829projects/llvm-tv
830projects/safecode
831projects/llvm-kernel
832tools/polly'
833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *)	ac_optarg=yes ;;
894  esac
895
896  # Accept the important Cygnus configure options, so we can diagnose typos.
897
898  case $ac_dashdash$ac_option in
899  --)
900    ac_dashdash=yes ;;
901
902  -bindir | --bindir | --bindi | --bind | --bin | --bi)
903    ac_prev=bindir ;;
904  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905    bindir=$ac_optarg ;;
906
907  -build | --build | --buil | --bui | --bu)
908    ac_prev=build_alias ;;
909  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910    build_alias=$ac_optarg ;;
911
912  -cache-file | --cache-file | --cache-fil | --cache-fi \
913  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914    ac_prev=cache_file ;;
915  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917    cache_file=$ac_optarg ;;
918
919  --config-cache | -C)
920    cache_file=config.cache ;;
921
922  -datadir | --datadir | --datadi | --datad)
923    ac_prev=datadir ;;
924  -datadir=* | --datadir=* | --datadi=* | --datad=*)
925    datadir=$ac_optarg ;;
926
927  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928  | --dataroo | --dataro | --datar)
929    ac_prev=datarootdir ;;
930  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932    datarootdir=$ac_optarg ;;
933
934  -disable-* | --disable-*)
935    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939   { (exit 1); exit 1; }; }
940    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941    eval enable_$ac_feature=no ;;
942
943  -docdir | --docdir | --docdi | --doc | --do)
944    ac_prev=docdir ;;
945  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946    docdir=$ac_optarg ;;
947
948  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949    ac_prev=dvidir ;;
950  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951    dvidir=$ac_optarg ;;
952
953  -enable-* | --enable-*)
954    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955    # Reject names that are not valid shell variable names.
956    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958   { (exit 1); exit 1; }; }
959    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960    eval enable_$ac_feature=\$ac_optarg ;;
961
962  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964  | --exec | --exe | --ex)
965    ac_prev=exec_prefix ;;
966  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968  | --exec=* | --exe=* | --ex=*)
969    exec_prefix=$ac_optarg ;;
970
971  -gas | --gas | --ga | --g)
972    # Obsolete; use --with-gas.
973    with_gas=yes ;;
974
975  -help | --help | --hel | --he | -h)
976    ac_init_help=long ;;
977  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978    ac_init_help=recursive ;;
979  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980    ac_init_help=short ;;
981
982  -host | --host | --hos | --ho)
983    ac_prev=host_alias ;;
984  -host=* | --host=* | --hos=* | --ho=*)
985    host_alias=$ac_optarg ;;
986
987  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988    ac_prev=htmldir ;;
989  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990  | --ht=*)
991    htmldir=$ac_optarg ;;
992
993  -includedir | --includedir | --includedi | --included | --include \
994  | --includ | --inclu | --incl | --inc)
995    ac_prev=includedir ;;
996  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997  | --includ=* | --inclu=* | --incl=* | --inc=*)
998    includedir=$ac_optarg ;;
999
1000  -infodir | --infodir | --infodi | --infod | --info | --inf)
1001    ac_prev=infodir ;;
1002  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003    infodir=$ac_optarg ;;
1004
1005  -libdir | --libdir | --libdi | --libd)
1006    ac_prev=libdir ;;
1007  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008    libdir=$ac_optarg ;;
1009
1010  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011  | --libexe | --libex | --libe)
1012    ac_prev=libexecdir ;;
1013  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014  | --libexe=* | --libex=* | --libe=*)
1015    libexecdir=$ac_optarg ;;
1016
1017  -localedir | --localedir | --localedi | --localed | --locale)
1018    ac_prev=localedir ;;
1019  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020    localedir=$ac_optarg ;;
1021
1022  -localstatedir | --localstatedir | --localstatedi | --localstated \
1023  | --localstate | --localstat | --localsta | --localst | --locals)
1024    ac_prev=localstatedir ;;
1025  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027    localstatedir=$ac_optarg ;;
1028
1029  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030    ac_prev=mandir ;;
1031  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032    mandir=$ac_optarg ;;
1033
1034  -nfp | --nfp | --nf)
1035    # Obsolete; use --without-fp.
1036    with_fp=no ;;
1037
1038  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039  | --no-cr | --no-c | -n)
1040    no_create=yes ;;
1041
1042  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044    no_recursion=yes ;;
1045
1046  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048  | --oldin | --oldi | --old | --ol | --o)
1049    ac_prev=oldincludedir ;;
1050  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053    oldincludedir=$ac_optarg ;;
1054
1055  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056    ac_prev=prefix ;;
1057  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058    prefix=$ac_optarg ;;
1059
1060  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061  | --program-pre | --program-pr | --program-p)
1062    ac_prev=program_prefix ;;
1063  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065    program_prefix=$ac_optarg ;;
1066
1067  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068  | --program-suf | --program-su | --program-s)
1069    ac_prev=program_suffix ;;
1070  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072    program_suffix=$ac_optarg ;;
1073
1074  -program-transform-name | --program-transform-name \
1075  | --program-transform-nam | --program-transform-na \
1076  | --program-transform-n | --program-transform- \
1077  | --program-transform | --program-transfor \
1078  | --program-transfo | --program-transf \
1079  | --program-trans | --program-tran \
1080  | --progr-tra | --program-tr | --program-t)
1081    ac_prev=program_transform_name ;;
1082  -program-transform-name=* | --program-transform-name=* \
1083  | --program-transform-nam=* | --program-transform-na=* \
1084  | --program-transform-n=* | --program-transform-=* \
1085  | --program-transform=* | --program-transfor=* \
1086  | --program-transfo=* | --program-transf=* \
1087  | --program-trans=* | --program-tran=* \
1088  | --progr-tra=* | --program-tr=* | --program-t=*)
1089    program_transform_name=$ac_optarg ;;
1090
1091  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092    ac_prev=pdfdir ;;
1093  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094    pdfdir=$ac_optarg ;;
1095
1096  -psdir | --psdir | --psdi | --psd | --ps)
1097    ac_prev=psdir ;;
1098  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099    psdir=$ac_optarg ;;
1100
1101  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102  | -silent | --silent | --silen | --sile | --sil)
1103    silent=yes ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154      { echo "$as_me: error: invalid package name: $ac_package" >&2
1155   { (exit 1); exit 1; }; }
1156    ac_package=`echo $ac_package| sed 's/-/_/g'`
1157    eval with_$ac_package=\$ac_optarg ;;
1158
1159  -without-* | --without-*)
1160    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163      { echo "$as_me: error: invalid package name: $ac_package" >&2
1164   { (exit 1); exit 1; }; }
1165    ac_package=`echo $ac_package | sed 's/-/_/g'`
1166    eval with_$ac_package=no ;;
1167
1168  --x)
1169    # Obsolete; use --with-x.
1170    with_x=yes ;;
1171
1172  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173  | --x-incl | --x-inc | --x-in | --x-i)
1174    ac_prev=x_includes ;;
1175  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177    x_includes=$ac_optarg ;;
1178
1179  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181    ac_prev=x_libraries ;;
1182  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184    x_libraries=$ac_optarg ;;
1185
1186  -*) { echo "$as_me: error: unrecognized option: $ac_option
1187Try \`$0 --help' for more information." >&2
1188   { (exit 1); exit 1; }; }
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196   { (exit 1); exit 1; }; }
1197    eval $ac_envvar=\$ac_optarg
1198    export $ac_envvar ;;
1199
1200  *)
1201    # FIXME: should be removed in autoconf 3.0.
1202    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206    ;;
1207
1208  esac
1209done
1210
1211if test -n "$ac_prev"; then
1212  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213  { echo "$as_me: error: missing argument to $ac_option" >&2
1214   { (exit 1); exit 1; }; }
1215fi
1216
1217# Be sure to have absolute directory names.
1218for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219		datadir sysconfdir sharedstatedir localstatedir includedir \
1220		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221		libdir localedir mandir
1222do
1223  eval ac_val=\$$ac_var
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229   { (exit 1); exit 1; }; }
1230done
1231
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241  if test "x$build_alias" = x; then
1242    cross_compiling=maybe
1243    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244    If a cross compiler is detected then cross compile mode will be used." >&2
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  { echo "$as_me: error: Working directory cannot be determined" >&2
1260   { (exit 1); exit 1; }; }
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  { echo "$as_me: error: pwd does not report name of working directory" >&2
1263   { (exit 1); exit 1; }; }
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$0" ||
1271$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$0" : 'X\(//\)[^/]' \| \
1273	 X"$0" : 'X\(//\)$' \| \
1274	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275echo X"$0" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303   { (exit 1); exit 1; }; }
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308   { (exit 1); exit 1; }; }
1309	pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312  srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_env_${ac_var}_value=\$${ac_var}
1323  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
1326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331  # Omit some internal or obsolete options to make the list less imposing.
1332  # This message is too long to be a string in the A/UX 3.1 sh.
1333  cat <<_ACEOF
1334\`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344  -h, --help              display this help and exit
1345      --help=short        display options specific to this package
1346      --help=recursive    display the short help of all the included packages
1347  -V, --version           display version information and exit
1348  -q, --quiet, --silent   do not print \`checking...' messages
1349      --cache-file=FILE   cache test results in FILE [disabled]
1350  -C, --config-cache      alias for \`--cache-file=config.cache'
1351  -n, --no-create         do not create output files
1352      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354Installation directories:
1355  --prefix=PREFIX         install architecture-independent files in PREFIX
1356			  [$ac_default_prefix]
1357  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358			  [PREFIX]
1359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
1368  --bindir=DIR           user executables [EPREFIX/bin]
1369  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370  --libexecdir=DIR       program executables [EPREFIX/libexec]
1371  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374  --libdir=DIR           object code libraries [EPREFIX/lib]
1375  --includedir=DIR       C header files [PREFIX/include]
1376  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379  --infodir=DIR          info documentation [DATAROOTDIR/info]
1380  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381  --mandir=DIR           man documentation [DATAROOTDIR/man]
1382  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383  --htmldir=DIR          html documentation [DOCDIR]
1384  --dvidir=DIR           dvi documentation [DOCDIR]
1385  --pdfdir=DIR           pdf documentation [DOCDIR]
1386  --psdir=DIR            ps documentation [DOCDIR]
1387_ACEOF
1388
1389  cat <<\_ACEOF
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394  --target=TARGET   configure for building compilers for TARGET [HOST]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --enable-polly          Use polly if available (default is YES)
1408  --enable-libcpp         Use libc++ if available (default is NO)
1409  --enable-cxx11          Use c++11 if available (default is NO)
1410  --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412  --enable-clang-static-analyzer
1413                          Enable building of clang Static Analyzer (default is
1414                          YES)
1415  --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416  --enable-optimized      Compile with optimizations enabled (default is NO)
1417  --enable-profiling      Compile with profiling enabled (default is NO)
1418  --enable-assertions     Compile with assertion checks enabled (default is
1419                          YES)
1420  --enable-werror         Compile with -Werror enabled (default is NO)
1421  --enable-expensive-checks
1422                          Compile with expensive debug checks enabled (default
1423                          is NO)
1424  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                          NO)
1426  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                          optimization is on and YES if it's off)
1428  --enable-keep-symbols   Do not strip installed executables)
1429  --enable-jit            Enable Just In Time Compiling (default is YES)
1430  --enable-docs           Build documents (default is YES)
1431  --enable-doxygen        Build doxygen documentation (default is NO)
1432  --enable-threads        Use threads if available (default is YES)
1433  --enable-pthreads       Use pthreads if available (default is YES)
1434  --enable-zlib           Use zlib for compression/decompression if available
1435                          (default is YES)
1436  --enable-pic            Build LLVM with Position Independent Code (default
1437                          is YES)
1438  --enable-shared         Build a shared library and link tools against it
1439                          (default is NO)
1440  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                          Win32 DLL (default is NO)
1442  --enable-timestamps     Enable embedding timestamp information in build
1443                          (default is YES)
1444  --enable-backtraces     Enable embedding backtraces on crash (default is
1445                          YES)
1446  --enable-targets        Build specific host targets: all or
1447                          target1,target2,... Valid targets are: host, x86,
1448                          x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                          xcore, msp430, nvptx, systemz, r600, and cpp
1450                          (default=all)
1451  --enable-experimental-targets
1452                          Build experimental host targets: disable or
1453                          target1,target2,... (default=disable)
1454  --enable-bindings       Build specific language bindings:
1455                          all,auto,none,{binding-name} (default=auto)
1456  --enable-curses         Use curses for querying terminal infomation if
1457                          available (default is YES)
1458  --enable-libffi         Check for the presence of libffi (default is NO)
1459  --enable-ltdl-install   install libltdl
1460
1461Optional Packages:
1462  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464  --with-optimize-option  Select the compiler options to use for optimized
1465                          builds
1466  --with-extra-options    Specify additional options to compile LLVM with
1467  --with-extra-ld-options Specify additional options to link LLVM with
1468  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1469                          is stdlib)
1470  --with-clang-srcdir     Directory to the out-of-tree Clang source
1471  --with-clang-resource-dir
1472                          Relative directory from the Clang binary for
1473                          resource files
1474  --with-c-include-dirs   Colon separated list of directories clang will
1475                          search for headers
1476  --with-gcc-toolchain    Directory where gcc is installed.
1477  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1478  --with-binutils-include Specify path to binutils/include/ containing
1479                          plugin-api.h file for gold plugin.
1480  --with-bug-report-url   Specify the URL where bug reports should be
1481                          submitted (default=http://llvm.org/bugs/)
1482  --with-internal-prefix  Installation directory for internal files
1483  --with-python           path to python
1484  --with-udis86=<path>    Use udis86 external x86 disassembler library
1485  --with-oprofile=<prefix>
1486                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1487  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488
1489
1490Some influential environment variables:
1491  CC          C compiler command
1492  CFLAGS      C compiler flags
1493  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494              nonstandard directory <lib dir>
1495  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496              you have headers in a nonstandard directory <include dir>
1497  CXX         C++ compiler command
1498  CXXFLAGS    C++ compiler flags
1499  CPP         C preprocessor
1500  CXXCPP      C++ preprocessor
1501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
1505Report bugs to <http://llvm.org/bugs/>.
1506_ACEOF
1507ac_status=$?
1508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511  # If there are subdirs, report their specific --help.
1512  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513    test -d "$ac_dir" || continue
1514    ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520  # A ".." for each directory in $ac_dir_suffix.
1521  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522  case $ac_top_builddir_sub in
1523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525  esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533  .)  # We are building in place.
1534    ac_srcdir=.
1535    ac_top_srcdir=$ac_top_builddir_sub
1536    ac_abs_top_srcdir=$ac_pwd ;;
1537  [\\/]* | ?:[\\/]* )  # Absolute name.
1538    ac_srcdir=$srcdir$ac_dir_suffix;
1539    ac_top_srcdir=$srcdir
1540    ac_abs_top_srcdir=$srcdir ;;
1541  *) # Relative name.
1542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543    ac_top_srcdir=$ac_top_build_prefix$srcdir
1544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548    cd "$ac_dir" || { ac_status=$?; continue; }
1549    # Check for guested configure.
1550    if test -f "$ac_srcdir/configure.gnu"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553    elif test -f "$ac_srcdir/configure"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure" --help=recursive
1556    else
1557      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558    fi || ac_status=$?
1559    cd "$ac_pwd" || { ac_status=$?; break; }
1560  done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565  cat <<\_ACEOF
1566LLVM configure 3.4svn
1567generated by GNU Autoconf 2.60
1568
1569Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571This configure script is free software; the Free Software Foundation
1572gives unlimited permission to copy, distribute and modify it.
1573
1574Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1575_ACEOF
1576  exit
1577fi
1578cat >config.log <<_ACEOF
1579This file contains any messages produced by compilers while
1580running configure, to aid debugging if configure makes a mistake.
1581
1582It was created by LLVM $as_me 3.4svn, which was
1583generated by GNU Autoconf 2.60.  Invocation command line was
1584
1585  $ $0 $@
1586
1587_ACEOF
1588exec 5>>config.log
1589{
1590cat <<_ASUNAME
1591## --------- ##
1592## Platform. ##
1593## --------- ##
1594
1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1603
1604/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1605/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1608/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1609/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1610/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1611
1612_ASUNAME
1613
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617  IFS=$as_save_IFS
1618  test -z "$as_dir" && as_dir=.
1619  echo "PATH: $as_dir"
1620done
1621IFS=$as_save_IFS
1622
1623} >&5
1624
1625cat >&5 <<_ACEOF
1626
1627
1628## ----------- ##
1629## Core tests. ##
1630## ----------- ##
1631
1632_ACEOF
1633
1634
1635# Keep a trace of the command line.
1636# Strip out --no-create and --no-recursion so they do not pile up.
1637# Strip out --silent because we don't want to record it for future runs.
1638# Also quote any args containing shell meta-characters.
1639# Make two passes to allow for proper duplicate-argument suppression.
1640ac_configure_args=
1641ac_configure_args0=
1642ac_configure_args1=
1643ac_must_keep_next=false
1644for ac_pass in 1 2
1645do
1646  for ac_arg
1647  do
1648    case $ac_arg in
1649    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651    | -silent | --silent | --silen | --sile | --sil)
1652      continue ;;
1653    *\'*)
1654      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655    esac
1656    case $ac_pass in
1657    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658    2)
1659      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660      if test $ac_must_keep_next = true; then
1661	ac_must_keep_next=false # Got value, back to normal.
1662      else
1663	case $ac_arg in
1664	  *=* | --config-cache | -C | -disable-* | --disable-* \
1665	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667	  | -with-* | --with-* | -without-* | --without-* | --x)
1668	    case "$ac_configure_args0 " in
1669	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670	    esac
1671	    ;;
1672	  -* ) ac_must_keep_next=true ;;
1673	esac
1674      fi
1675      ac_configure_args="$ac_configure_args '$ac_arg'"
1676      ;;
1677    esac
1678  done
1679done
1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683# When interrupted or exit'd, cleanup temporary files, and complete
1684# config.log.  We remove comments because anyway the quotes in there
1685# would cause problems or look ugly.
1686# WARNING: Use '\'' to represent an apostrophe within the trap.
1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688trap 'exit_status=$?
1689  # Save into config.log some information that might help in debugging.
1690  {
1691    echo
1692
1693    cat <<\_ASBOX
1694## ---------------- ##
1695## Cache variables. ##
1696## ---------------- ##
1697_ASBOX
1698    echo
1699    # The following way of writing the cache mishandles newlines in values,
1700(
1701  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702    eval ac_val=\$$ac_var
1703    case $ac_val in #(
1704    *${as_nl}*)
1705      case $ac_var in #(
1706      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708      esac
1709      case $ac_var in #(
1710      _ | IFS | as_nl) ;; #(
1711      *) $as_unset $ac_var ;;
1712      esac ;;
1713    esac
1714  done
1715  (set) 2>&1 |
1716    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717    *${as_nl}ac_space=\ *)
1718      sed -n \
1719	"s/'\''/'\''\\\\'\'''\''/g;
1720	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721      ;; #(
1722    *)
1723      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724      ;;
1725    esac |
1726    sort
1727)
1728    echo
1729
1730    cat <<\_ASBOX
1731## ----------------- ##
1732## Output variables. ##
1733## ----------------- ##
1734_ASBOX
1735    echo
1736    for ac_var in $ac_subst_vars
1737    do
1738      eval ac_val=\$$ac_var
1739      case $ac_val in
1740      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741      esac
1742      echo "$ac_var='\''$ac_val'\''"
1743    done | sort
1744    echo
1745
1746    if test -n "$ac_subst_files"; then
1747      cat <<\_ASBOX
1748## ------------------- ##
1749## File substitutions. ##
1750## ------------------- ##
1751_ASBOX
1752      echo
1753      for ac_var in $ac_subst_files
1754      do
1755	eval ac_val=\$$ac_var
1756	case $ac_val in
1757	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758	esac
1759	echo "$ac_var='\''$ac_val'\''"
1760      done | sort
1761      echo
1762    fi
1763
1764    if test -s confdefs.h; then
1765      cat <<\_ASBOX
1766## ----------- ##
1767## confdefs.h. ##
1768## ----------- ##
1769_ASBOX
1770      echo
1771      cat confdefs.h
1772      echo
1773    fi
1774    test "$ac_signal" != 0 &&
1775      echo "$as_me: caught signal $ac_signal"
1776    echo "$as_me: exit $exit_status"
1777  } >&5
1778  rm -f core *.core core.conftest.* &&
1779    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780    exit $exit_status
1781' 0
1782for ac_signal in 1 2 13 15; do
1783  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784done
1785ac_signal=0
1786
1787# confdefs.h avoids OS command line length limits that DEFS can exceed.
1788rm -f -r conftest* confdefs.h
1789
1790# Predefined preprocessor variables.
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_NAME "$PACKAGE_NAME"
1794_ACEOF
1795
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_VERSION "$PACKAGE_VERSION"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_STRING "$PACKAGE_STRING"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814_ACEOF
1815
1816
1817# Let the site file select an alternate cache file if it wants to.
1818# Prefer explicitly selected file to automatically selected ones.
1819if test -n "$CONFIG_SITE"; then
1820  set x "$CONFIG_SITE"
1821elif test "x$prefix" != xNONE; then
1822  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823else
1824  set x "$ac_default_prefix/share/config.site" \
1825	"$ac_default_prefix/etc/config.site"
1826fi
1827shift
1828for ac_site_file
1829do
1830  if test -r "$ac_site_file"; then
1831    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832echo "$as_me: loading site script $ac_site_file" >&6;}
1833    sed 's/^/| /' "$ac_site_file" >&5
1834    . "$ac_site_file"
1835  fi
1836done
1837
1838if test -r "$cache_file"; then
1839  # Some versions of bash will fail to source /dev/null (special
1840  # files actually), so we avoid doing that.
1841  if test -f "$cache_file"; then
1842    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843echo "$as_me: loading cache $cache_file" >&6;}
1844    case $cache_file in
1845      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846      *)                      . "./$cache_file";;
1847    esac
1848  fi
1849else
1850  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851echo "$as_me: creating cache $cache_file" >&6;}
1852  >$cache_file
1853fi
1854
1855# Check that the precious variables saved in the cache have kept the same
1856# value.
1857ac_cache_corrupted=false
1858for ac_var in $ac_precious_vars; do
1859  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860  eval ac_new_set=\$ac_env_${ac_var}_set
1861  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862  eval ac_new_val=\$ac_env_${ac_var}_value
1863  case $ac_old_set,$ac_new_set in
1864    set,)
1865      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867      ac_cache_corrupted=: ;;
1868    ,set)
1869      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871      ac_cache_corrupted=: ;;
1872    ,);;
1873    *)
1874      if test "x$ac_old_val" != "x$ac_new_val"; then
1875	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1878echo "$as_me:   former value:  $ac_old_val" >&2;}
1879	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1880echo "$as_me:   current value: $ac_new_val" >&2;}
1881	ac_cache_corrupted=:
1882      fi;;
1883  esac
1884  # Pass precious variables to config.status.
1885  if test "$ac_new_set" = set; then
1886    case $ac_new_val in
1887    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888    *) ac_arg=$ac_var=$ac_new_val ;;
1889    esac
1890    case " $ac_configure_args " in
1891      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893    esac
1894  fi
1895done
1896if $ac_cache_corrupted; then
1897  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901   { (exit 1); exit 1; }; }
1902fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936cat >>confdefs.h <<\_ACEOF
1937#define LLVM_VERSION_MAJOR 3
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<\_ACEOF
1942#define LLVM_VERSION_MINOR 4
1943_ACEOF
1944
1945
1946LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1947
1948
1949
1950
1951
1952
1953
1954ac_aux_dir=
1955for ac_dir in autoconf "$srcdir"/autoconf; do
1956  if test -f "$ac_dir/install-sh"; then
1957    ac_aux_dir=$ac_dir
1958    ac_install_sh="$ac_aux_dir/install-sh -c"
1959    break
1960  elif test -f "$ac_dir/install.sh"; then
1961    ac_aux_dir=$ac_dir
1962    ac_install_sh="$ac_aux_dir/install.sh -c"
1963    break
1964  elif test -f "$ac_dir/shtool"; then
1965    ac_aux_dir=$ac_dir
1966    ac_install_sh="$ac_aux_dir/shtool install -c"
1967    break
1968  fi
1969done
1970if test -z "$ac_aux_dir"; then
1971  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973   { (exit 1); exit 1; }; }
1974fi
1975
1976# These three variables are undocumented and unsupported,
1977# and are intended to be withdrawn in a future Autoconf release.
1978# They can cause serious problems if a builder's source tree is in a directory
1979# whose full name contains unusual characters.
1980ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985
1986if test ${srcdir} != "." ; then
1987  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990   { (exit 1); exit 1; }; }
1991  fi
1992fi
1993
1994${CFLAGS=}
1995${CXXFLAGS=}
1996
1997ac_ext=c
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002if test -n "$ac_tool_prefix"; then
2003  for ac_prog in clang llvm-gcc gcc
2004  do
2005    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009if test "${ac_cv_prog_CC+set}" = set; then
2010  echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012  if test -n "$CC"; then
2013  ac_cv_prog_CC="$CC" # Let the user override the test.
2014else
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020  for ac_exec_ext in '' $ac_executable_extensions; do
2021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024    break 2
2025  fi
2026done
2027done
2028IFS=$as_save_IFS
2029
2030fi
2031fi
2032CC=$ac_cv_prog_CC
2033if test -n "$CC"; then
2034  { echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6; }
2036else
2037  { echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6; }
2039fi
2040
2041
2042    test -n "$CC" && break
2043  done
2044fi
2045if test -z "$CC"; then
2046  ac_ct_CC=$CC
2047  for ac_prog in clang llvm-gcc gcc
2048do
2049  # Extract the first word of "$ac_prog", so it can be a program name with args.
2050set dummy $ac_prog; ac_word=$2
2051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$ac_ct_CC"; then
2057  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064  for ac_exec_ext in '' $ac_executable_extensions; do
2065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066    ac_cv_prog_ac_ct_CC="$ac_prog"
2067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068    break 2
2069  fi
2070done
2071done
2072IFS=$as_save_IFS
2073
2074fi
2075fi
2076ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077if test -n "$ac_ct_CC"; then
2078  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079echo "${ECHO_T}$ac_ct_CC" >&6; }
2080else
2081  { echo "$as_me:$LINENO: result: no" >&5
2082echo "${ECHO_T}no" >&6; }
2083fi
2084
2085
2086  test -n "$ac_ct_CC" && break
2087done
2088
2089  if test "x$ac_ct_CC" = x; then
2090    CC=""
2091  else
2092    case $cross_compiling:$ac_tool_warned in
2093yes:)
2094{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095whose name does not start with the host triplet.  If you think this
2096configuration is useful to you, please write to autoconf@gnu.org." >&5
2097echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098whose name does not start with the host triplet.  If you think this
2099configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100ac_tool_warned=yes ;;
2101esac
2102    CC=$ac_ct_CC
2103  fi
2104fi
2105
2106
2107test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: no acceptable C compiler found in \$PATH
2110See \`config.log' for more details." >&2;}
2111   { (exit 1); exit 1; }; }
2112
2113# Provide some information about the compiler.
2114echo "$as_me:$LINENO: checking for C compiler version" >&5
2115ac_compiler=`set X $ac_compile; echo $2`
2116{ (ac_try="$ac_compiler --version >&5"
2117case "(($ac_try" in
2118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119  *) ac_try_echo=$ac_try;;
2120esac
2121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122  (eval "$ac_compiler --version >&5") 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126{ (ac_try="$ac_compiler -v >&5"
2127case "(($ac_try" in
2128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129  *) ac_try_echo=$ac_try;;
2130esac
2131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132  (eval "$ac_compiler -v >&5") 2>&5
2133  ac_status=$?
2134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135  (exit $ac_status); }
2136{ (ac_try="$ac_compiler -V >&5"
2137case "(($ac_try" in
2138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139  *) ac_try_echo=$ac_try;;
2140esac
2141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142  (eval "$ac_compiler -V >&5") 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }
2146
2147cat >conftest.$ac_ext <<_ACEOF
2148/* confdefs.h.  */
2149_ACEOF
2150cat confdefs.h >>conftest.$ac_ext
2151cat >>conftest.$ac_ext <<_ACEOF
2152/* end confdefs.h.  */
2153
2154int
2155main ()
2156{
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162ac_clean_files_save=$ac_clean_files
2163ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164# Try to create an executable without -o first, disregard a.out.
2165# It will help us diagnose broken compilers, and finding out an intuition
2166# of exeext.
2167{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170#
2171# List of possible output files, starting from the most likely.
2172# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173# only as a last resort.  b.out is created by i960 compilers.
2174ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2175#
2176# The IRIX 6 linker writes into existing files which may not be
2177# executable, retaining their permissions.  Remove them first so a
2178# subsequent execution test works.
2179ac_rmfiles=
2180for ac_file in $ac_files
2181do
2182  case $ac_file in
2183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185  esac
2186done
2187rm -f $ac_rmfiles
2188
2189if { (ac_try="$ac_link_default"
2190case "(($ac_try" in
2191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192  *) ac_try_echo=$ac_try;;
2193esac
2194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195  (eval "$ac_link_default") 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; then
2199  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2202# so that the user can short-circuit this test for compilers unknown to
2203# Autoconf.
2204for ac_file in $ac_files
2205do
2206  test -f "$ac_file" || continue
2207  case $ac_file in
2208    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209	;;
2210    [ab].out )
2211	# We found the default executable, but exeext='' is most
2212	# certainly right.
2213	break;;
2214    *.* )
2215        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2216	then :; else
2217	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218	fi
2219	# We set ac_cv_exeext here because the later test for it is not
2220	# safe: cross compilers may not add the suffix if given an `-o'
2221	# argument, so we may need to know it at that point already.
2222	# Even if this section looks crufty: it has the advantage of
2223	# actually working.
2224	break;;
2225    * )
2226	break;;
2227  esac
2228done
2229test "$ac_cv_exeext" = no && ac_cv_exeext=
2230
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: C compiler cannot create executables
2238See \`config.log' for more details." >&2;}
2239   { (exit 77); exit 77; }; }
2240fi
2241
2242ac_exeext=$ac_cv_exeext
2243{ echo "$as_me:$LINENO: result: $ac_file" >&5
2244echo "${ECHO_T}$ac_file" >&6; }
2245
2246# Check that the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251# If not cross compiling, check that we can run a simple program.
2252if test "$cross_compiling" != yes; then
2253  if { ac_try='./$ac_file'
2254  { (case "(($ac_try" in
2255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256  *) ac_try_echo=$ac_try;;
2257esac
2258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259  (eval "$ac_try") 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263    cross_compiling=no
2264  else
2265    if test "$cross_compiling" = maybe; then
2266	cross_compiling=yes
2267    else
2268	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot run C compiled programs.
2272If you meant to cross compile, use \`--host'.
2273See \`config.log' for more details." >&2;}
2274   { (exit 1); exit 1; }; }
2275    fi
2276  fi
2277fi
2278{ echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6; }
2280
2281rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282ac_clean_files=$ac_clean_files_save
2283# Check that the compiler produces executables we can run.  If not, either
2284# the compiler is broken, or we cross compile.
2285{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288echo "${ECHO_T}$cross_compiling" >&6; }
2289
2290{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292if { (ac_try="$ac_link"
2293case "(($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_link") 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; then
2302  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2304# work properly (i.e., refer to `conftest.exe'), while it won't with
2305# `rm'.
2306for ac_file in conftest.exe conftest conftest.*; do
2307  test -f "$ac_file" || continue
2308  case $ac_file in
2309    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311	  break;;
2312    * ) break;;
2313  esac
2314done
2315else
2316  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319See \`config.log' for more details." >&2;}
2320   { (exit 1); exit 1; }; }
2321fi
2322
2323rm -f conftest$ac_cv_exeext
2324{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325echo "${ECHO_T}$ac_cv_exeext" >&6; }
2326
2327rm -f conftest.$ac_ext
2328EXEEXT=$ac_cv_exeext
2329ac_exeext=$EXEEXT
2330{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332if test "${ac_cv_objext+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.o conftest.obj
2351if { (ac_try="$ac_compile"
2352case "(($ac_try" in
2353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354  *) ac_try_echo=$ac_try;;
2355esac
2356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357  (eval "$ac_compile") 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; then
2361  for ac_file in conftest.o conftest.obj conftest.*; do
2362  test -f "$ac_file" || continue;
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366       break;;
2367  esac
2368done
2369else
2370  echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&2;}
2377   { (exit 1); exit 1; }; }
2378fi
2379
2380rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381fi
2382{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383echo "${ECHO_T}$ac_cv_objext" >&6; }
2384OBJEXT=$ac_cv_objext
2385ac_objext=$OBJEXT
2386{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401#ifndef __GNUC__
2402       choke me
2403#endif
2404
2405  ;
2406  return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (ac_try="$ac_compile"
2411case "(($ac_try" in
2412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413  *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416  (eval "$ac_compile") 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424  { (case "(($ac_try" in
2425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426  *) ac_try_echo=$ac_try;;
2427esac
2428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429  (eval "$ac_try") 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; } &&
2433	 { ac_try='test -s conftest.$ac_objext'
2434  { (case "(($ac_try" in
2435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436  *) ac_try_echo=$ac_try;;
2437esac
2438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439  (eval "$ac_try") 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }; }; then
2443  ac_compiler_gnu=yes
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448	ac_compiler_gnu=no
2449fi
2450
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454fi
2455{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457GCC=`test $ac_compiler_gnu = yes && echo yes`
2458ac_test_CFLAGS=${CFLAGS+set}
2459ac_save_CFLAGS=$CFLAGS
2460{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_cc_g+set}" = set; then
2463  echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465  ac_save_c_werror_flag=$ac_c_werror_flag
2466   ac_c_werror_flag=yes
2467   ac_cv_prog_cc_g=no
2468   CFLAGS="-g"
2469   cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h.  */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h.  */
2475
2476int
2477main ()
2478{
2479
2480  ;
2481  return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (ac_try="$ac_compile"
2486case "(($ac_try" in
2487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488  *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491  (eval "$ac_compile") 2>conftest.er1
2492  ac_status=$?
2493  grep -v '^ *+' conftest.er1 >conftest.err
2494  rm -f conftest.er1
2495  cat conftest.err >&5
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); } &&
2498	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499  { (case "(($ac_try" in
2500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501  *) ac_try_echo=$ac_try;;
2502esac
2503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504  (eval "$ac_try") 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; } &&
2508	 { ac_try='test -s conftest.$ac_objext'
2509  { (case "(($ac_try" in
2510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511  *) ac_try_echo=$ac_try;;
2512esac
2513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514  (eval "$ac_try") 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; }; then
2518  ac_cv_prog_cc_g=yes
2519else
2520  echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523	CFLAGS=""
2524      cat >conftest.$ac_ext <<_ACEOF
2525/* confdefs.h.  */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h.  */
2530
2531int
2532main ()
2533{
2534
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539rm -f conftest.$ac_objext
2540if { (ac_try="$ac_compile"
2541case "(($ac_try" in
2542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543  *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546  (eval "$ac_compile") 2>conftest.er1
2547  ac_status=$?
2548  grep -v '^ *+' conftest.er1 >conftest.err
2549  rm -f conftest.er1
2550  cat conftest.err >&5
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554  { (case "(($ac_try" in
2555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556  *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559  (eval "$ac_try") 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; } &&
2563	 { ac_try='test -s conftest.$ac_objext'
2564  { (case "(($ac_try" in
2565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566  *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569  (eval "$ac_try") 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; }; then
2573  :
2574else
2575  echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578	ac_c_werror_flag=$ac_save_c_werror_flag
2579	 CFLAGS="-g"
2580	 cat >conftest.$ac_ext <<_ACEOF
2581/* confdefs.h.  */
2582_ACEOF
2583cat confdefs.h >>conftest.$ac_ext
2584cat >>conftest.$ac_ext <<_ACEOF
2585/* end confdefs.h.  */
2586
2587int
2588main ()
2589{
2590
2591  ;
2592  return 0;
2593}
2594_ACEOF
2595rm -f conftest.$ac_objext
2596if { (ac_try="$ac_compile"
2597case "(($ac_try" in
2598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599  *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602  (eval "$ac_compile") 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610  { (case "(($ac_try" in
2611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612  *) ac_try_echo=$ac_try;;
2613esac
2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615  (eval "$ac_try") 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; } &&
2619	 { ac_try='test -s conftest.$ac_objext'
2620  { (case "(($ac_try" in
2621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622  *) ac_try_echo=$ac_try;;
2623esac
2624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625  (eval "$ac_try") 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  ac_cv_prog_cc_g=yes
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
2635fi
2636
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642
2643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644   ac_c_werror_flag=$ac_save_c_werror_flag
2645fi
2646{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648if test "$ac_test_CFLAGS" = set; then
2649  CFLAGS=$ac_save_CFLAGS
2650elif test $ac_cv_prog_cc_g = yes; then
2651  if test "$GCC" = yes; then
2652    CFLAGS="-g -O2"
2653  else
2654    CFLAGS="-g"
2655  fi
2656else
2657  if test "$GCC" = yes; then
2658    CFLAGS="-O2"
2659  else
2660    CFLAGS=
2661  fi
2662fi
2663{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665if test "${ac_cv_prog_cc_c89+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  ac_cv_prog_cc_c89=no
2669ac_save_CC=$CC
2670cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676#include <stdarg.h>
2677#include <stdio.h>
2678#include <sys/types.h>
2679#include <sys/stat.h>
2680/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681struct buf { int x; };
2682FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683static char *e (p, i)
2684     char **p;
2685     int i;
2686{
2687  return p[i];
2688}
2689static char *f (char * (*g) (char **, int), char **p, ...)
2690{
2691  char *s;
2692  va_list v;
2693  va_start (v,p);
2694  s = g (p, va_arg (v,int));
2695  va_end (v);
2696  return s;
2697}
2698
2699/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700   function prototypes and stuff, but not '\xHH' hex character constants.
2701   These don't provoke an error unfortunately, instead are silently treated
2702   as 'x'.  The following induces an error, until -std is added to get
2703   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704   array size at least.  It's necessary to write '\x00'==0 to get something
2705   that's true only with -std.  */
2706int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709   inside strings and character constants.  */
2710#define FOO(x) 'x'
2711int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713int test (int i, double x);
2714struct s1 {int (*f) (int a);};
2715struct s2 {int (*f) (double a);};
2716int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717int argc;
2718char **argv;
2719int
2720main ()
2721{
2722return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729do
2730  CC="$ac_save_CC $ac_arg"
2731  rm -f conftest.$ac_objext
2732if { (ac_try="$ac_compile"
2733case "(($ac_try" in
2734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735  *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738  (eval "$ac_compile") 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746  { (case "(($ac_try" in
2747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748  *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751  (eval "$ac_try") 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; } &&
2755	 { ac_try='test -s conftest.$ac_objext'
2756  { (case "(($ac_try" in
2757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758  *) ac_try_echo=$ac_try;;
2759esac
2760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761  (eval "$ac_try") 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; }; then
2765  ac_cv_prog_cc_c89=$ac_arg
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771fi
2772
2773rm -f core conftest.err conftest.$ac_objext
2774  test "x$ac_cv_prog_cc_c89" != "xno" && break
2775done
2776rm -f conftest.$ac_ext
2777CC=$ac_save_CC
2778
2779fi
2780# AC_CACHE_VAL
2781case "x$ac_cv_prog_cc_c89" in
2782  x)
2783    { echo "$as_me:$LINENO: result: none needed" >&5
2784echo "${ECHO_T}none needed" >&6; } ;;
2785  xno)
2786    { echo "$as_me:$LINENO: result: unsupported" >&5
2787echo "${ECHO_T}unsupported" >&6; } ;;
2788  *)
2789    CC="$CC $ac_cv_prog_cc_c89"
2790    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792esac
2793
2794
2795ac_ext=c
2796ac_cpp='$CPP $CPPFLAGS'
2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801ac_ext=cpp
2802ac_cpp='$CXXCPP $CPPFLAGS'
2803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806if test -z "$CXX"; then
2807  if test -n "$CCC"; then
2808    CXX=$CCC
2809  else
2810    if test -n "$ac_tool_prefix"; then
2811  for ac_prog in clang++ llvm-g++ g++
2812  do
2813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817if test "${ac_cv_prog_CXX+set}" = set; then
2818  echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820  if test -n "$CXX"; then
2821  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826  IFS=$as_save_IFS
2827  test -z "$as_dir" && as_dir=.
2828  for ac_exec_ext in '' $ac_executable_extensions; do
2829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840CXX=$ac_cv_prog_CXX
2841if test -n "$CXX"; then
2842  { echo "$as_me:$LINENO: result: $CXX" >&5
2843echo "${ECHO_T}$CXX" >&6; }
2844else
2845  { echo "$as_me:$LINENO: result: no" >&5
2846echo "${ECHO_T}no" >&6; }
2847fi
2848
2849
2850    test -n "$CXX" && break
2851  done
2852fi
2853if test -z "$CXX"; then
2854  ac_ct_CXX=$CXX
2855  for ac_prog in clang++ llvm-g++ g++
2856do
2857  # Extract the first word of "$ac_prog", so it can be a program name with args.
2858set dummy $ac_prog; ac_word=$2
2859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862  echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864  if test -n "$ac_ct_CXX"; then
2865  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870  IFS=$as_save_IFS
2871  test -z "$as_dir" && as_dir=.
2872  for ac_exec_ext in '' $ac_executable_extensions; do
2873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874    ac_cv_prog_ac_ct_CXX="$ac_prog"
2875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885if test -n "$ac_ct_CXX"; then
2886  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887echo "${ECHO_T}$ac_ct_CXX" >&6; }
2888else
2889  { echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6; }
2891fi
2892
2893
2894  test -n "$ac_ct_CXX" && break
2895done
2896
2897  if test "x$ac_ct_CXX" = x; then
2898    CXX="g++"
2899  else
2900    case $cross_compiling:$ac_tool_warned in
2901yes:)
2902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2903whose name does not start with the host triplet.  If you think this
2904configuration is useful to you, please write to autoconf@gnu.org." >&5
2905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906whose name does not start with the host triplet.  If you think this
2907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908ac_tool_warned=yes ;;
2909esac
2910    CXX=$ac_ct_CXX
2911  fi
2912fi
2913
2914  fi
2915fi
2916# Provide some information about the compiler.
2917echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918ac_compiler=`set X $ac_compile; echo $2`
2919{ (ac_try="$ac_compiler --version >&5"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925  (eval "$ac_compiler --version >&5") 2>&5
2926  ac_status=$?
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }
2929{ (ac_try="$ac_compiler -v >&5"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935  (eval "$ac_compiler -v >&5") 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }
2939{ (ac_try="$ac_compiler -V >&5"
2940case "(($ac_try" in
2941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942  *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945  (eval "$ac_compiler -V >&5") 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }
2949
2950{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953  echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955  cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965#ifndef __GNUC__
2966       choke me
2967#endif
2968
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext
2974if { (ac_try="$ac_compile"
2975case "(($ac_try" in
2976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977  *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980  (eval "$ac_compile") 2>conftest.er1
2981  ac_status=$?
2982  grep -v '^ *+' conftest.er1 >conftest.err
2983  rm -f conftest.er1
2984  cat conftest.err >&5
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); } &&
2987	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988  { (case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993  (eval "$ac_try") 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }; } &&
2997	 { ac_try='test -s conftest.$ac_objext'
2998  { (case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003  (eval "$ac_try") 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  ac_compiler_gnu=yes
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012	ac_compiler_gnu=no
3013fi
3014
3015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017
3018fi
3019{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021GXX=`test $ac_compiler_gnu = yes && echo yes`
3022ac_test_CXXFLAGS=${CXXFLAGS+set}
3023ac_save_CXXFLAGS=$CXXFLAGS
3024{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026if test "${ac_cv_prog_cxx_g+set}" = set; then
3027  echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030   ac_cxx_werror_flag=yes
3031   ac_cv_prog_cxx_g=no
3032   CXXFLAGS="-g"
3033   cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039
3040int
3041main ()
3042{
3043
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (ac_try="$ac_compile"
3050case "(($ac_try" in
3051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052  *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055  (eval "$ac_compile") 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063  { (case "(($ac_try" in
3064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065  *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068  (eval "$ac_try") 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072	 { ac_try='test -s conftest.$ac_objext'
3073  { (case "(($ac_try" in
3074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075  *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078  (eval "$ac_try") 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; }; then
3082  ac_cv_prog_cxx_g=yes
3083else
3084  echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087	CXXFLAGS=""
3088      cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (ac_try="$ac_compile"
3105case "(($ac_try" in
3106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107  *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110  (eval "$ac_compile") 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } &&
3117	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118  { (case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123  (eval "$ac_try") 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }; } &&
3127	 { ac_try='test -s conftest.$ac_objext'
3128  { (case "(($ac_try" in
3129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130  *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133  (eval "$ac_try") 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); }; }; then
3137  :
3138else
3139  echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3143	 CXXFLAGS="-g"
3144	 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h.  */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h.  */
3150
3151int
3152main ()
3153{
3154
3155  ;
3156  return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (ac_try="$ac_compile"
3161case "(($ac_try" in
3162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163  *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166  (eval "$ac_compile") 2>conftest.er1
3167  ac_status=$?
3168  grep -v '^ *+' conftest.er1 >conftest.err
3169  rm -f conftest.er1
3170  cat conftest.err >&5
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); } &&
3173	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174  { (case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179  (eval "$ac_try") 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183	 { ac_try='test -s conftest.$ac_objext'
3184  { (case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189  (eval "$ac_try") 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; }; then
3193  ac_cv_prog_cxx_g=yes
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205fi
3206
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209fi
3210{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212if test "$ac_test_CXXFLAGS" = set; then
3213  CXXFLAGS=$ac_save_CXXFLAGS
3214elif test $ac_cv_prog_cxx_g = yes; then
3215  if test "$GXX" = yes; then
3216    CXXFLAGS="-g -O2"
3217  else
3218    CXXFLAGS="-g"
3219  fi
3220else
3221  if test "$GXX" = yes; then
3222    CXXFLAGS="-O2"
3223  else
3224    CXXFLAGS=
3225  fi
3226fi
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240# On Suns, sometimes $CPP names a directory.
3241if test -n "$CPP" && test -d "$CPP"; then
3242  CPP=
3243fi
3244if test -z "$CPP"; then
3245  if test "${ac_cv_prog_CPP+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248      # Double quotes because CPP needs to be expanded
3249    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250    do
3251      ac_preproc_ok=false
3252for ac_c_preproc_warn_flag in '' yes
3253do
3254  # Use a header file that comes with gcc, so configuring glibc
3255  # with a fresh cross-compiler works.
3256  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257  # <limits.h> exists even on freestanding compilers.
3258  # On the NeXT, cc -E runs the code through the compiler's parser,
3259  # not just through cpp. "Syntax error" is here to catch this case.
3260  cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h.  */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h.  */
3266#ifdef __STDC__
3267# include <limits.h>
3268#else
3269# include <assert.h>
3270#endif
3271		     Syntax error
3272_ACEOF
3273if { (ac_try="$ac_cpp conftest.$ac_ext"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } >/dev/null; then
3286  if test -s conftest.err; then
3287    ac_cpp_err=$ac_c_preproc_warn_flag
3288    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289  else
3290    ac_cpp_err=
3291  fi
3292else
3293  ac_cpp_err=yes
3294fi
3295if test -z "$ac_cpp_err"; then
3296  :
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301  # Broken: fails on valid input.
3302continue
3303fi
3304
3305rm -f conftest.err conftest.$ac_ext
3306
3307  # OK, works on sane cases.  Now check whether nonexistent headers
3308  # can be detected and how.
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315#include <ac_nonexistent.h>
3316_ACEOF
3317if { (ac_try="$ac_cpp conftest.$ac_ext"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } >/dev/null; then
3330  if test -s conftest.err; then
3331    ac_cpp_err=$ac_c_preproc_warn_flag
3332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333  else
3334    ac_cpp_err=
3335  fi
3336else
3337  ac_cpp_err=yes
3338fi
3339if test -z "$ac_cpp_err"; then
3340  # Broken: success on invalid input.
3341continue
3342else
3343  echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346  # Passes both tests.
3347ac_preproc_ok=:
3348break
3349fi
3350
3351rm -f conftest.err conftest.$ac_ext
3352
3353done
3354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355rm -f conftest.err conftest.$ac_ext
3356if $ac_preproc_ok; then
3357  break
3358fi
3359
3360    done
3361    ac_cv_prog_CPP=$CPP
3362
3363fi
3364  CPP=$ac_cv_prog_CPP
3365else
3366  ac_cv_prog_CPP=$CPP
3367fi
3368{ echo "$as_me:$LINENO: result: $CPP" >&5
3369echo "${ECHO_T}$CPP" >&6; }
3370ac_preproc_ok=false
3371for ac_c_preproc_warn_flag in '' yes
3372do
3373  # Use a header file that comes with gcc, so configuring glibc
3374  # with a fresh cross-compiler works.
3375  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376  # <limits.h> exists even on freestanding compilers.
3377  # On the NeXT, cc -E runs the code through the compiler's parser,
3378  # not just through cpp. "Syntax error" is here to catch this case.
3379  cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h.  */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h.  */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
3390		     Syntax error
3391_ACEOF
3392if { (ac_try="$ac_cpp conftest.$ac_ext"
3393case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399  ac_status=$?
3400  grep -v '^ *+' conftest.er1 >conftest.err
3401  rm -f conftest.er1
3402  cat conftest.err >&5
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); } >/dev/null; then
3405  if test -s conftest.err; then
3406    ac_cpp_err=$ac_c_preproc_warn_flag
3407    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408  else
3409    ac_cpp_err=
3410  fi
3411else
3412  ac_cpp_err=yes
3413fi
3414if test -z "$ac_cpp_err"; then
3415  :
3416else
3417  echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420  # Broken: fails on valid input.
3421continue
3422fi
3423
3424rm -f conftest.err conftest.$ac_ext
3425
3426  # OK, works on sane cases.  Now check whether nonexistent headers
3427  # can be detected and how.
3428  cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h.  */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h.  */
3434#include <ac_nonexistent.h>
3435_ACEOF
3436if { (ac_try="$ac_cpp conftest.$ac_ext"
3437case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443  ac_status=$?
3444  grep -v '^ *+' conftest.er1 >conftest.err
3445  rm -f conftest.er1
3446  cat conftest.err >&5
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); } >/dev/null; then
3449  if test -s conftest.err; then
3450    ac_cpp_err=$ac_c_preproc_warn_flag
3451    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452  else
3453    ac_cpp_err=
3454  fi
3455else
3456  ac_cpp_err=yes
3457fi
3458if test -z "$ac_cpp_err"; then
3459  # Broken: success on invalid input.
3460continue
3461else
3462  echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465  # Passes both tests.
3466ac_preproc_ok=:
3467break
3468fi
3469
3470rm -f conftest.err conftest.$ac_ext
3471
3472done
3473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474rm -f conftest.err conftest.$ac_ext
3475if $ac_preproc_ok; then
3476  :
3477else
3478  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479See \`config.log' for more details." >&5
3480echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481See \`config.log' for more details." >&2;}
3482   { (exit 1); exit 1; }; }
3483fi
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492if test "$CXX" = "clang++" ; then
3493  { echo "$as_me:$LINENO: checking whether clang works" >&5
3494echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3495  ac_ext=cpp
3496ac_cpp='$CXXCPP $CPPFLAGS'
3497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500
3501
3502cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508#include <limits>
3509#if __has_include (<cxxabi.h>)
3510#include <cxxabi.h>
3511#endif
3512#if __has_include (<unwind.h>)
3513#include <unwind.h>
3514#endif
3515
3516int
3517main ()
3518{
3519
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext
3525if { (ac_try="$ac_compile"
3526case "(($ac_try" in
3527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528  *) ac_try_echo=$ac_try;;
3529esac
3530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531  (eval "$ac_compile") 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539  { (case "(($ac_try" in
3540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541  *) ac_try_echo=$ac_try;;
3542esac
3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544  (eval "$ac_try") 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; } &&
3548	 { ac_try='test -s conftest.$ac_objext'
3549  { (case "(($ac_try" in
3550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551  *) ac_try_echo=$ac_try;;
3552esac
3553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554  (eval "$ac_try") 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558
3559  { echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6; }
3561
3562else
3563  echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566
3567  { echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6; }
3569  { { 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
3570echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3571   { (exit 1); exit 1; }; }
3572
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576  ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582fi
3583
3584
3585
3586if test -d ${srcdir}/projects/llvm-gcc ; then
3587  subdirs="$subdirs projects/llvm-gcc"
3588
3589fi
3590
3591if test -d ${srcdir}/projects/test-suite ; then
3592  subdirs="$subdirs projects/test-suite"
3593
3594fi
3595
3596if test -d ${srcdir}/projects/llvm-test ; then
3597  subdirs="$subdirs projects/llvm-test"
3598
3599fi
3600
3601if test -d ${srcdir}/projects/poolalloc ; then
3602  subdirs="$subdirs projects/poolalloc"
3603
3604fi
3605
3606if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607  subdirs="$subdirs projects/llvm-poolalloc"
3608
3609fi
3610
3611for i in `ls ${srcdir}/projects`
3612do
3613  if test -d ${srcdir}/projects/${i} ; then
3614    case ${i} in
3615      sample)       subdirs="$subdirs projects/sample"
3616    ;;
3617      privbracket)  subdirs="$subdirs projects/privbracket"
3618 ;;
3619      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3620 ;;
3621      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3622;;
3623      llvm-java)    subdirs="$subdirs projects/llvm-java"
3624 ;;
3625      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3626   ;;
3627      safecode)     subdirs="$subdirs projects/safecode"
3628 ;;
3629      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3630 ;;
3631      compiler-rt)       ;;
3632      llvm-gcc)       ;;
3633      test-suite)     ;;
3634      llvm-test)      ;;
3635      poolalloc)      ;;
3636      llvm-poolalloc) ;;
3637      *)
3638        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3640        ;;
3641    esac
3642  fi
3643done
3644
3645# Check whether --enable-polly was given.
3646if test "${enable_polly+set}" = set; then
3647  enableval=$enable_polly;
3648else
3649  enableval=default
3650fi
3651
3652case "$enableval" in
3653  yes) ENABLE_POLLY=1
3654 ;;
3655  no)  ENABLE_POLLY=0
3656 ;;
3657  default) ENABLE_POLLY=1
3658 ;;
3659  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661   { (exit 1); exit 1; }; } ;;
3662esac
3663
3664
3665if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666  LLVM_HAS_POLLY=1
3667
3668  subdirs="$subdirs tools/polly"
3669
3670fi
3671
3672
3673# Make sure we can run config.sub.
3674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677   { (exit 1); exit 1; }; }
3678
3679{ echo "$as_me:$LINENO: checking build system type" >&5
3680echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681if test "${ac_cv_build+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  ac_build_alias=$build_alias
3685test "x$ac_build_alias" = x &&
3686  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687test "x$ac_build_alias" = x &&
3688  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690   { (exit 1); exit 1; }; }
3691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694   { (exit 1); exit 1; }; }
3695
3696fi
3697{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698echo "${ECHO_T}$ac_cv_build" >&6; }
3699case $ac_cv_build in
3700*-*-*) ;;
3701*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702echo "$as_me: error: invalid value of canonical build" >&2;}
3703   { (exit 1); exit 1; }; };;
3704esac
3705build=$ac_cv_build
3706ac_save_IFS=$IFS; IFS='-'
3707set x $ac_cv_build
3708shift
3709build_cpu=$1
3710build_vendor=$2
3711shift; shift
3712# Remember, the first character of IFS is used to create $*,
3713# except with old shells:
3714build_os=$*
3715IFS=$ac_save_IFS
3716case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717
3718
3719{ echo "$as_me:$LINENO: checking host system type" >&5
3720echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721if test "${ac_cv_host+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  if test "x$host_alias" = x; then
3725  ac_cv_host=$ac_cv_build
3726else
3727  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730   { (exit 1); exit 1; }; }
3731fi
3732
3733fi
3734{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735echo "${ECHO_T}$ac_cv_host" >&6; }
3736case $ac_cv_host in
3737*-*-*) ;;
3738*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739echo "$as_me: error: invalid value of canonical host" >&2;}
3740   { (exit 1); exit 1; }; };;
3741esac
3742host=$ac_cv_host
3743ac_save_IFS=$IFS; IFS='-'
3744set x $ac_cv_host
3745shift
3746host_cpu=$1
3747host_vendor=$2
3748shift; shift
3749# Remember, the first character of IFS is used to create $*,
3750# except with old shells:
3751host_os=$*
3752IFS=$ac_save_IFS
3753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756{ echo "$as_me:$LINENO: checking target system type" >&5
3757echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758if test "${ac_cv_target+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  if test "x$target_alias" = x; then
3762  ac_cv_target=$ac_cv_host
3763else
3764  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767   { (exit 1); exit 1; }; }
3768fi
3769
3770fi
3771{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772echo "${ECHO_T}$ac_cv_target" >&6; }
3773case $ac_cv_target in
3774*-*-*) ;;
3775*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776echo "$as_me: error: invalid value of canonical target" >&2;}
3777   { (exit 1); exit 1; }; };;
3778esac
3779target=$ac_cv_target
3780ac_save_IFS=$IFS; IFS='-'
3781set x $ac_cv_target
3782shift
3783target_cpu=$1
3784target_vendor=$2
3785shift; shift
3786# Remember, the first character of IFS is used to create $*,
3787# except with old shells:
3788target_os=$*
3789IFS=$ac_save_IFS
3790case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791
3792
3793# The aliases save the names the user supplied, while $host etc.
3794# will get canonicalized.
3795test -n "$target_alias" &&
3796  test "$program_prefix$program_suffix$program_transform_name" = \
3797    NONENONEs,x,x, &&
3798  program_prefix=${target_alias}-
3799
3800{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802if test "${llvm_cv_os_type+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  case $host in
3806  *-*-aix*)
3807    llvm_cv_link_all_option="-Wl,--whole-archive"
3808    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809    llvm_cv_os_type="AIX"
3810    llvm_cv_platform_type="Unix" ;;
3811  *-*-irix*)
3812    llvm_cv_link_all_option="-Wl,--whole-archive"
3813    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814    llvm_cv_os_type="IRIX"
3815    llvm_cv_platform_type="Unix" ;;
3816  *-*-cygwin*)
3817    llvm_cv_link_all_option="-Wl,--whole-archive"
3818    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819    llvm_cv_os_type="Cygwin"
3820    llvm_cv_platform_type="Unix" ;;
3821  *-*-darwin*)
3822    llvm_cv_link_all_option="-Wl,-all_load"
3823    llvm_cv_no_link_all_option="-Wl,-noall_load"
3824    llvm_cv_os_type="Darwin"
3825    llvm_cv_platform_type="Unix" ;;
3826  *-*-minix*)
3827    llvm_cv_link_all_option="-Wl,-all_load"
3828    llvm_cv_no_link_all_option="-Wl,-noall_load"
3829    llvm_cv_os_type="Minix"
3830    llvm_cv_platform_type="Unix" ;;
3831  *-*-freebsd*)
3832    llvm_cv_link_all_option="-Wl,--whole-archive"
3833    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834    llvm_cv_os_type="FreeBSD"
3835    llvm_cv_platform_type="Unix" ;;
3836  *-*-kfreebsd-gnu)
3837    llvm_cv_link_all_option="-Wl,--whole-archive"
3838    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839    llvm_cv_os_type="GNU/kFreeBSD"
3840    llvm_cv_platform_type="Unix" ;;
3841  *-*-openbsd*)
3842    llvm_cv_link_all_option="-Wl,--whole-archive"
3843    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844    llvm_cv_os_type="OpenBSD"
3845    llvm_cv_platform_type="Unix" ;;
3846  *-*-netbsd*)
3847    llvm_cv_link_all_option="-Wl,--whole-archive"
3848    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849    llvm_cv_os_type="NetBSD"
3850    llvm_cv_platform_type="Unix" ;;
3851  *-*-dragonfly*)
3852    llvm_cv_link_all_option="-Wl,--whole-archive"
3853    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854    llvm_cv_os_type="DragonFly"
3855    llvm_cv_platform_type="Unix" ;;
3856  *-*-hpux*)
3857    llvm_cv_link_all_option="-Wl,--whole-archive"
3858    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859    llvm_cv_os_type="HP-UX"
3860    llvm_cv_platform_type="Unix" ;;
3861  *-*-interix*)
3862    llvm_cv_link_all_option="-Wl,--whole-archive"
3863    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864    llvm_cv_os_type="Interix"
3865    llvm_cv_platform_type="Unix" ;;
3866  *-*-linux*)
3867    llvm_cv_link_all_option="-Wl,--whole-archive"
3868    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869    llvm_cv_os_type="Linux"
3870    llvm_cv_platform_type="Unix" ;;
3871  *-*-gnu*)
3872    llvm_cv_link_all_option="-Wl,--whole-archive"
3873    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874    llvm_cv_os_type="GNU"
3875    llvm_cv_platform_type="Unix" ;;
3876  *-*-solaris*)
3877    llvm_cv_link_all_option="-Wl,-z,allextract"
3878    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879    llvm_cv_os_type="SunOS"
3880    llvm_cv_platform_type="Unix" ;;
3881  *-*-auroraux*)
3882    llvm_cv_link_all_option="-Wl,-z,allextract"
3883    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884    llvm_cv_os_type="AuroraUX"
3885    llvm_cv_platform_type="Unix" ;;
3886  *-*-win32*)
3887    llvm_cv_link_all_option="-Wl,--whole-archive"
3888    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889    llvm_cv_os_type="Win32"
3890    llvm_cv_platform_type="Win32" ;;
3891  *-*-mingw*)
3892    llvm_cv_link_all_option="-Wl,--whole-archive"
3893    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894    llvm_cv_os_type="MingW"
3895    llvm_cv_platform_type="Win32" ;;
3896  *-*-haiku*)
3897    llvm_cv_link_all_option="-Wl,--whole-archive"
3898    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899    llvm_cv_os_type="Haiku"
3900    llvm_cv_platform_type="Unix" ;;
3901  *-unknown-eabi*)
3902    llvm_cv_link_all_option="-Wl,--whole-archive"
3903    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904    llvm_cv_os_type="Freestanding"
3905    llvm_cv_platform_type="Unix" ;;
3906  *-unknown-elf*)
3907    llvm_cv_link_all_option="-Wl,--whole-archive"
3908    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909    llvm_cv_os_type="Freestanding"
3910    llvm_cv_platform_type="Unix" ;;
3911  *)
3912    llvm_cv_link_all_option=""
3913    llvm_cv_no_link_all_option=""
3914    llvm_cv_os_type="Unknown"
3915    llvm_cv_platform_type="Unknown" ;;
3916esac
3917fi
3918{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3920
3921{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923if test "${llvm_cv_target_os_type+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  case $target in
3927  *-*-aix*)
3928    llvm_cv_target_os_type="AIX" ;;
3929  *-*-irix*)
3930    llvm_cv_target_os_type="IRIX" ;;
3931  *-*-cygwin*)
3932    llvm_cv_target_os_type="Cygwin" ;;
3933  *-*-darwin*)
3934    llvm_cv_target_os_type="Darwin" ;;
3935  *-*-minix*)
3936    llvm_cv_target_os_type="Minix" ;;
3937  *-*-freebsd*)
3938    llvm_cv_target_os_type="FreeBSD" ;;
3939  *-*-kfreebsd-gnu)
3940    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3941  *-*-openbsd*)
3942    llvm_cv_target_os_type="OpenBSD" ;;
3943  *-*-netbsd*)
3944    llvm_cv_target_os_type="NetBSD" ;;
3945  *-*-dragonfly*)
3946    llvm_cv_target_os_type="DragonFly" ;;
3947  *-*-hpux*)
3948    llvm_cv_target_os_type="HP-UX" ;;
3949  *-*-interix*)
3950    llvm_cv_target_os_type="Interix" ;;
3951  *-*-linux*)
3952    llvm_cv_target_os_type="Linux" ;;
3953  *-*-gnu*)
3954    llvm_cv_target_os_type="GNU" ;;
3955  *-*-solaris*)
3956    llvm_cv_target_os_type="SunOS" ;;
3957  *-*-auroraux*)
3958    llvm_cv_target_os_type="AuroraUX" ;;
3959  *-*-win32*)
3960    llvm_cv_target_os_type="Win32" ;;
3961  *-*-mingw*)
3962    llvm_cv_target_os_type="MingW" ;;
3963  *-*-haiku*)
3964    llvm_cv_target_os_type="Haiku" ;;
3965  *-*-rtems*)
3966    llvm_cv_target_os_type="RTEMS" ;;
3967  *-*-nacl*)
3968    llvm_cv_target_os_type="NativeClient" ;;
3969  *-unknown-eabi*)
3970    llvm_cv_target_os_type="Freestanding" ;;
3971  *)
3972    llvm_cv_target_os_type="Unknown" ;;
3973esac
3974fi
3975{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3977
3978if test "$llvm_cv_os_type" = "Unknown" ; then
3979  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981   { (exit 1); exit 1; }; }
3982fi
3983
3984OS=$llvm_cv_os_type
3985
3986HOST_OS=$llvm_cv_os_type
3987
3988TARGET_OS=$llvm_cv_target_os_type
3989
3990
3991LINKALL=$llvm_cv_link_all_option
3992
3993NOLINKALL=$llvm_cv_no_link_all_option
3994
3995
3996case $llvm_cv_platform_type in
3997  Unix)
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define LLVM_ON_UNIX 1
4001_ACEOF
4002
4003    LLVM_ON_UNIX=1
4004
4005    LLVM_ON_WIN32=0
4006
4007    ;;
4008  Win32)
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define LLVM_ON_WIN32 1
4012_ACEOF
4013
4014    LLVM_ON_UNIX=0
4015
4016    LLVM_ON_WIN32=1
4017
4018    ;;
4019esac
4020
4021{ echo "$as_me:$LINENO: checking target architecture" >&5
4022echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023if test "${llvm_cv_target_arch+set}" = set; then
4024  echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026  case $target in
4027  i?86-*)                 llvm_cv_target_arch="x86" ;;
4028  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4029  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4030  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4031  arm*-*)                 llvm_cv_target_arch="ARM" ;;
4032  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4033  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4034  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4035  xcore-*)                llvm_cv_target_arch="XCore" ;;
4036  msp430-*)               llvm_cv_target_arch="MSP430" ;;
4037  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4038  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4039  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4040  *)                      llvm_cv_target_arch="Unknown" ;;
4041esac
4042fi
4043{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045
4046if test "$llvm_cv_target_arch" = "Unknown" ; then
4047  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4049fi
4050
4051case "$llvm_cv_target_arch" in
4052    x86)     LLVM_NATIVE_ARCH="X86" ;;
4053    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4054    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4055esac
4056
4057ARCH=$llvm_cv_target_arch
4058
4059
4060case $host in
4061  i?86-*)                 host_arch="x86" ;;
4062  amd64-* | x86_64-*)     host_arch="x86_64" ;;
4063  sparc*-*)               host_arch="Sparc" ;;
4064  powerpc*-*)             host_arch="PowerPC" ;;
4065  arm*-*)                 host_arch="ARM" ;;
4066  aarch64*-*)             host_arch="AArch64" ;;
4067  mips-* | mips64-*)      host_arch="Mips" ;;
4068  mipsel-* | mips64el-*)  host_arch="Mips" ;;
4069  xcore-*)                host_arch="XCore" ;;
4070  msp430-*)               host_arch="MSP430" ;;
4071  hexagon-*)              host_arch="Hexagon" ;;
4072  s390x-*)                host_arch="SystemZ" ;;
4073  *)                      host_arch="Unknown" ;;
4074esac
4075
4076if test "$host_arch" = "Unknown" ; then
4077  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079fi
4080
4081HOST_ARCH=$host_arch
4082
4083
4084
4085
4086{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088if test "${ac_cv_path_GREP+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  # Extract the first word of "grep ggrep" to use in msg output
4092if test -z "$GREP"; then
4093set dummy grep ggrep; ac_prog_name=$2
4094if test "${ac_cv_path_GREP+set}" = set; then
4095  echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097  ac_path_GREP_found=false
4098# Loop through the user's path and test for each of PROGNAME-LIST
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101do
4102  IFS=$as_save_IFS
4103  test -z "$as_dir" && as_dir=.
4104  for ac_prog in grep ggrep; do
4105  for ac_exec_ext in '' $ac_executable_extensions; do
4106    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108    # Check for GNU ac_path_GREP and select it if it is found.
4109  # Check for GNU $ac_path_GREP
4110case `"$ac_path_GREP" --version 2>&1` in
4111*GNU*)
4112  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113*)
4114  ac_count=0
4115  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116  while :
4117  do
4118    cat "conftest.in" "conftest.in" >"conftest.tmp"
4119    mv "conftest.tmp" "conftest.in"
4120    cp "conftest.in" "conftest.nl"
4121    echo 'GREP' >> "conftest.nl"
4122    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124    ac_count=`expr $ac_count + 1`
4125    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126      # Best one so far, save it but keep looking for a better one
4127      ac_cv_path_GREP="$ac_path_GREP"
4128      ac_path_GREP_max=$ac_count
4129    fi
4130    # 10*(2^10) chars as input seems more than enough
4131    test $ac_count -gt 10 && break
4132  done
4133  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134esac
4135
4136
4137    $ac_path_GREP_found && break 3
4138  done
4139done
4140
4141done
4142IFS=$as_save_IFS
4143
4144
4145fi
4146
4147GREP="$ac_cv_path_GREP"
4148if test -z "$GREP"; then
4149  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151   { (exit 1); exit 1; }; }
4152fi
4153
4154else
4155  ac_cv_path_GREP=$GREP
4156fi
4157
4158
4159fi
4160{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4163
4164
4165{ echo "$as_me:$LINENO: checking for egrep" >&5
4166echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167if test "${ac_cv_path_EGREP+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171   then ac_cv_path_EGREP="$GREP -E"
4172   else
4173     # Extract the first word of "egrep" to use in msg output
4174if test -z "$EGREP"; then
4175set dummy egrep; ac_prog_name=$2
4176if test "${ac_cv_path_EGREP+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  ac_path_EGREP_found=false
4180# Loop through the user's path and test for each of PROGNAME-LIST
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186  for ac_prog in egrep; do
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190    # Check for GNU ac_path_EGREP and select it if it is found.
4191  # Check for GNU $ac_path_EGREP
4192case `"$ac_path_EGREP" --version 2>&1` in
4193*GNU*)
4194  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195*)
4196  ac_count=0
4197  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198  while :
4199  do
4200    cat "conftest.in" "conftest.in" >"conftest.tmp"
4201    mv "conftest.tmp" "conftest.in"
4202    cp "conftest.in" "conftest.nl"
4203    echo 'EGREP' >> "conftest.nl"
4204    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206    ac_count=`expr $ac_count + 1`
4207    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208      # Best one so far, save it but keep looking for a better one
4209      ac_cv_path_EGREP="$ac_path_EGREP"
4210      ac_path_EGREP_max=$ac_count
4211    fi
4212    # 10*(2^10) chars as input seems more than enough
4213    test $ac_count -gt 10 && break
4214  done
4215  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216esac
4217
4218
4219    $ac_path_EGREP_found && break 3
4220  done
4221done
4222
4223done
4224IFS=$as_save_IFS
4225
4226
4227fi
4228
4229EGREP="$ac_cv_path_EGREP"
4230if test -z "$EGREP"; then
4231  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233   { (exit 1); exit 1; }; }
4234fi
4235
4236else
4237  ac_cv_path_EGREP=$EGREP
4238fi
4239
4240
4241   fi
4242fi
4243{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4246
4247
4248{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250if test "${ac_cv_header_stdc+set}" = set; then
4251  echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253  cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h.  */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h.  */
4259#include <stdlib.h>
4260#include <stdarg.h>
4261#include <string.h>
4262#include <float.h>
4263
4264int
4265main ()
4266{
4267
4268  ;
4269  return 0;
4270}
4271_ACEOF
4272rm -f conftest.$ac_objext
4273if { (ac_try="$ac_compile"
4274case "(($ac_try" in
4275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276  *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279  (eval "$ac_compile") 2>conftest.er1
4280  ac_status=$?
4281  grep -v '^ *+' conftest.er1 >conftest.err
4282  rm -f conftest.er1
4283  cat conftest.err >&5
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); } &&
4286	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287  { (case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292  (eval "$ac_try") 2>&5
4293  ac_status=$?
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); }; } &&
4296	 { ac_try='test -s conftest.$ac_objext'
4297  { (case "(($ac_try" in
4298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299  *) ac_try_echo=$ac_try;;
4300esac
4301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302  (eval "$ac_try") 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; }; then
4306  ac_cv_header_stdc=yes
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311	ac_cv_header_stdc=no
4312fi
4313
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315
4316if test $ac_cv_header_stdc = yes; then
4317  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318  cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h.  */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h.  */
4324#include <string.h>
4325
4326_ACEOF
4327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328  $EGREP "memchr" >/dev/null 2>&1; then
4329  :
4330else
4331  ac_cv_header_stdc=no
4332fi
4333rm -f conftest*
4334
4335fi
4336
4337if test $ac_cv_header_stdc = yes; then
4338  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339  cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345#include <stdlib.h>
4346
4347_ACEOF
4348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349  $EGREP "free" >/dev/null 2>&1; then
4350  :
4351else
4352  ac_cv_header_stdc=no
4353fi
4354rm -f conftest*
4355
4356fi
4357
4358if test $ac_cv_header_stdc = yes; then
4359  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360  if test "$cross_compiling" = yes; then
4361  :
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369#include <ctype.h>
4370#include <stdlib.h>
4371#if ((' ' & 0x0FF) == 0x020)
4372# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374#else
4375# define ISLOWER(c) \
4376		   (('a' <= (c) && (c) <= 'i') \
4377		     || ('j' <= (c) && (c) <= 'r') \
4378		     || ('s' <= (c) && (c) <= 'z'))
4379# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380#endif
4381
4382#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383int
4384main ()
4385{
4386  int i;
4387  for (i = 0; i < 256; i++)
4388    if (XOR (islower (i), ISLOWER (i))
4389	|| toupper (i) != TOUPPER (i))
4390      return 2;
4391  return 0;
4392}
4393_ACEOF
4394rm -f conftest$ac_exeext
4395if { (ac_try="$ac_link"
4396case "(($ac_try" in
4397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398  *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401  (eval "$ac_link") 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405  { (case "(($ac_try" in
4406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407  *) ac_try_echo=$ac_try;;
4408esac
4409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410  (eval "$ac_try") 2>&5
4411  ac_status=$?
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); }; }; then
4414  :
4415else
4416  echo "$as_me: program exited with status $ac_status" >&5
4417echo "$as_me: failed program was:" >&5
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
4420( exit $ac_status )
4421ac_cv_header_stdc=no
4422fi
4423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424fi
4425
4426
4427fi
4428fi
4429{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431if test $ac_cv_header_stdc = yes; then
4432
4433cat >>confdefs.h <<\_ACEOF
4434#define STDC_HEADERS 1
4435_ACEOF
4436
4437fi
4438
4439# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450		  inttypes.h stdint.h unistd.h
4451do
4452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h.  */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h.  */
4464$ac_includes_default
4465
4466#include <$ac_header>
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472  *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475  (eval "$ac_compile") 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483  { (case "(($ac_try" in
4484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485  *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488  (eval "$ac_try") 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; } &&
4492	 { ac_try='test -s conftest.$ac_objext'
4493  { (case "(($ac_try" in
4494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495  *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498  (eval "$ac_try") 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; }; then
4502  eval "$as_ac_Header=yes"
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507	eval "$as_ac_Header=no"
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511fi
4512ac_res=`eval echo '${'$as_ac_Header'}'`
4513	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4514echo "${ECHO_T}$ac_res" >&6; }
4515if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516  cat >>confdefs.h <<_ACEOF
4517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518_ACEOF
4519
4520fi
4521
4522done
4523
4524
4525{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527if test "${ac_cv_c_bigendian+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  # See if sys/param.h defines the BYTE_ORDER macro.
4531cat >conftest.$ac_ext <<_ACEOF
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537#include <sys/types.h>
4538#include <sys/param.h>
4539
4540int
4541main ()
4542{
4543#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544 bogus endian macros
4545#endif
4546
4547  ;
4548  return 0;
4549}
4550_ACEOF
4551rm -f conftest.$ac_objext
4552if { (ac_try="$ac_compile"
4553case "(($ac_try" in
4554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555  *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558  (eval "$ac_compile") 2>conftest.er1
4559  ac_status=$?
4560  grep -v '^ *+' conftest.er1 >conftest.err
4561  rm -f conftest.er1
4562  cat conftest.err >&5
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); } &&
4565	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566  { (case "(($ac_try" in
4567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568  *) ac_try_echo=$ac_try;;
4569esac
4570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571  (eval "$ac_try") 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }; } &&
4575	 { ac_try='test -s conftest.$ac_objext'
4576  { (case "(($ac_try" in
4577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578  *) ac_try_echo=$ac_try;;
4579esac
4580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581  (eval "$ac_try") 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); }; }; then
4585  # It does; now see whether it defined to BIG_ENDIAN or not.
4586cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592#include <sys/types.h>
4593#include <sys/param.h>
4594
4595int
4596main ()
4597{
4598#if BYTE_ORDER != BIG_ENDIAN
4599 not big endian
4600#endif
4601
4602  ;
4603  return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext
4607if { (ac_try="$ac_compile"
4608case "(($ac_try" in
4609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610  *) ac_try_echo=$ac_try;;
4611esac
4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613  (eval "$ac_compile") 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } &&
4620	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621  { (case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626  (eval "$ac_try") 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; } &&
4630	 { ac_try='test -s conftest.$ac_objext'
4631  { (case "(($ac_try" in
4632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633  *) ac_try_echo=$ac_try;;
4634esac
4635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636  (eval "$ac_try") 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }; }; then
4640  ac_cv_c_bigendian=yes
4641else
4642  echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645	ac_cv_c_bigendian=no
4646fi
4647
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653	# It does not; compile a test program.
4654if test "$cross_compiling" = yes; then
4655  # try to guess the endianness by grepping values into an object file
4656  ac_cv_c_bigendian=unknown
4657  cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h.  */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h.  */
4663short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4669int
4670main ()
4671{
4672 _ascii (); _ebcdic ();
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677rm -f conftest.$ac_objext
4678if { (ac_try="$ac_compile"
4679case "(($ac_try" in
4680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681  *) ac_try_echo=$ac_try;;
4682esac
4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684  (eval "$ac_compile") 2>conftest.er1
4685  ac_status=$?
4686  grep -v '^ *+' conftest.er1 >conftest.err
4687  rm -f conftest.er1
4688  cat conftest.err >&5
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); } &&
4691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692  { (case "(($ac_try" in
4693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694  *) ac_try_echo=$ac_try;;
4695esac
4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697  (eval "$ac_try") 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }; } &&
4701	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4711  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712  ac_cv_c_bigendian=yes
4713fi
4714if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715  if test "$ac_cv_c_bigendian" = unknown; then
4716    ac_cv_c_bigendian=no
4717  else
4718    # finding both strings is unlikely to happen, but who knows?
4719    ac_cv_c_bigendian=unknown
4720  fi
4721fi
4722else
4723  echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726
4727fi
4728
4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730else
4731  cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737$ac_includes_default
4738int
4739main ()
4740{
4741
4742  /* Are we little or big endian?  From Harbison&Steele.  */
4743  union
4744  {
4745    long int l;
4746    char c[sizeof (long int)];
4747  } u;
4748  u.l = 1;
4749  return u.c[sizeof (long int) - 1] == 1;
4750
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755rm -f conftest$ac_exeext
4756if { (ac_try="$ac_link"
4757case "(($ac_try" in
4758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759  *) ac_try_echo=$ac_try;;
4760esac
4761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762  (eval "$ac_link") 2>&5
4763  ac_status=$?
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766  { (case "(($ac_try" in
4767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768  *) ac_try_echo=$ac_try;;
4769esac
4770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771  (eval "$ac_try") 2>&5
4772  ac_status=$?
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); }; }; then
4775  ac_cv_c_bigendian=no
4776else
4777  echo "$as_me: program exited with status $ac_status" >&5
4778echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781( exit $ac_status )
4782ac_cv_c_bigendian=yes
4783fi
4784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785fi
4786
4787
4788fi
4789
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791fi
4792{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794case $ac_cv_c_bigendian in
4795  yes)
4796    ENDIAN=big
4797 ;;
4798  no)
4799    ENDIAN=little
4800 ;;
4801  *)
4802    { { echo "$as_me:$LINENO: error: unknown endianness
4803presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804echo "$as_me: error: unknown endianness
4805presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806   { (exit 1); exit 1; }; } ;;
4807esac
4808
4809
4810if test "$cross_compiling" = yes; then
4811  LLVM_CROSS_COMPILING=1
4812
4813
4814{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816if test "${ac_cv_build_exeext+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820  ac_cv_build_exeext=.exe
4821else
4822  ac_build_prefix=${build_alias}-
4823
4824  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825set dummy ${ac_build_prefix}gcc; ac_word=$2
4826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  if test -n "$BUILD_CC"; then
4832  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837  IFS=$as_save_IFS
4838  test -z "$as_dir" && as_dir=.
4839  for ac_exec_ext in '' $ac_executable_extensions; do
4840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843    break 2
4844  fi
4845done
4846done
4847IFS=$as_save_IFS
4848
4849fi
4850fi
4851BUILD_CC=$ac_cv_prog_BUILD_CC
4852if test -n "$BUILD_CC"; then
4853  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854echo "${ECHO_T}$BUILD_CC" >&6; }
4855else
4856  { echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6; }
4858fi
4859
4860
4861  if test -z "$BUILD_CC"; then
4862     # Extract the first word of "gcc", so it can be a program name with args.
4863set dummy gcc; ac_word=$2
4864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  if test -n "$BUILD_CC"; then
4870  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877  for ac_exec_ext in '' $ac_executable_extensions; do
4878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879    ac_cv_prog_BUILD_CC="gcc"
4880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881    break 2
4882  fi
4883done
4884done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889BUILD_CC=$ac_cv_prog_BUILD_CC
4890if test -n "$BUILD_CC"; then
4891  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892echo "${ECHO_T}$BUILD_CC" >&6; }
4893else
4894  { echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6; }
4896fi
4897
4898
4899     if test -z "$BUILD_CC"; then
4900       # Extract the first word of "cc", so it can be a program name with args.
4901set dummy cc; ac_word=$2
4902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  if test -n "$BUILD_CC"; then
4908  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909else
4910  ac_prog_rejected=no
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916  for ac_exec_ext in '' $ac_executable_extensions; do
4917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919       ac_prog_rejected=yes
4920       continue
4921     fi
4922    ac_cv_prog_BUILD_CC="cc"
4923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924    break 2
4925  fi
4926done
4927done
4928IFS=$as_save_IFS
4929
4930if test $ac_prog_rejected = yes; then
4931  # We found a bogon in the path, so make sure we never use it.
4932  set dummy $ac_cv_prog_BUILD_CC
4933  shift
4934  if test $# != 0; then
4935    # We chose a different compiler from the bogus one.
4936    # However, it has the same basename, so the bogon will be chosen
4937    # first if we set BUILD_CC to just the basename; use the full file name.
4938    shift
4939    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4940  fi
4941fi
4942fi
4943fi
4944BUILD_CC=$ac_cv_prog_BUILD_CC
4945if test -n "$BUILD_CC"; then
4946  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947echo "${ECHO_T}$BUILD_CC" >&6; }
4948else
4949  { echo "$as_me:$LINENO: result: no" >&5
4950echo "${ECHO_T}no" >&6; }
4951fi
4952
4953
4954     fi
4955  fi
4956  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958   { (exit 1); exit 1; }; }
4959  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960  rm -f conftest*
4961  echo 'int main () { return 0; }' > conftest.$ac_ext
4962  ac_cv_build_exeext=
4963  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964  (eval $ac_build_link) 2>&5
4965  ac_status=$?
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); }; then
4968    for file in conftest.*; do
4969      case $file in
4970      *.c | *.o | *.obj | *.dSYM) ;;
4971      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4972      esac
4973    done
4974  else
4975    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977   { (exit 1); exit 1; }; }
4978  fi
4979  rm -f conftest*
4980  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4981fi
4982fi
4983
4984BUILD_EXEEXT=""
4985test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988ac_build_exeext=$BUILD_EXEEXT
4989
4990  ac_build_prefix=${build_alias}-
4991  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992set dummy ${ac_build_prefix}g++; ac_word=$2
4993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  if test -n "$BUILD_CXX"; then
4999  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5000else
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  test -z "$as_dir" && as_dir=.
5006  for ac_exec_ext in '' $ac_executable_extensions; do
5007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010    break 2
5011  fi
5012done
5013done
5014IFS=$as_save_IFS
5015
5016fi
5017fi
5018BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019if test -n "$BUILD_CXX"; then
5020  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021echo "${ECHO_T}$BUILD_CXX" >&6; }
5022else
5023  { echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6; }
5025fi
5026
5027
5028  if test -z "$BUILD_CXX"; then
5029     # Extract the first word of "g++", so it can be a program name with args.
5030set dummy g++; ac_word=$2
5031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034  echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036  if test -n "$BUILD_CXX"; then
5037  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042  IFS=$as_save_IFS
5043  test -z "$as_dir" && as_dir=.
5044  for ac_exec_ext in '' $ac_executable_extensions; do
5045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046    ac_cv_prog_BUILD_CXX="g++"
5047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048    break 2
5049  fi
5050done
5051done
5052IFS=$as_save_IFS
5053
5054fi
5055fi
5056BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057if test -n "$BUILD_CXX"; then
5058  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059echo "${ECHO_T}$BUILD_CXX" >&6; }
5060else
5061  { echo "$as_me:$LINENO: result: no" >&5
5062echo "${ECHO_T}no" >&6; }
5063fi
5064
5065
5066     if test -z "$BUILD_CXX"; then
5067       # Extract the first word of "c++", so it can be a program name with args.
5068set dummy c++; ac_word=$2
5069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074  if test -n "$BUILD_CXX"; then
5075  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076else
5077  ac_prog_rejected=no
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083  for ac_exec_ext in '' $ac_executable_extensions; do
5084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086       ac_prog_rejected=yes
5087       continue
5088     fi
5089    ac_cv_prog_BUILD_CXX="c++"
5090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094done
5095IFS=$as_save_IFS
5096
5097if test $ac_prog_rejected = yes; then
5098  # We found a bogon in the path, so make sure we never use it.
5099  set dummy $ac_cv_prog_BUILD_CXX
5100  shift
5101  if test $# != 0; then
5102    # We chose a different compiler from the bogus one.
5103    # However, it has the same basename, so the bogon will be chosen
5104    # first if we set BUILD_CXX to just the basename; use the full file name.
5105    shift
5106    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5107  fi
5108fi
5109fi
5110fi
5111BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112if test -n "$BUILD_CXX"; then
5113  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114echo "${ECHO_T}$BUILD_CXX" >&6; }
5115else
5116  { echo "$as_me:$LINENO: result: no" >&5
5117echo "${ECHO_T}no" >&6; }
5118fi
5119
5120
5121     fi
5122  fi
5123else
5124  LLVM_CROSS_COMPILING=0
5125
5126fi
5127
5128if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5129  cvsbuild="yes"
5130  optimize="no"
5131  CVSBUILD=CVSBUILD=1
5132
5133else
5134  cvsbuild="no"
5135  optimize="yes"
5136fi
5137
5138
5139# Check whether --enable-libcpp was given.
5140if test "${enable_libcpp+set}" = set; then
5141  enableval=$enable_libcpp;
5142else
5143  enableval=default
5144fi
5145
5146case "$enableval" in
5147  yes) ENABLE_LIBCPP=1
5148 ;;
5149  no)  ENABLE_LIBCPP=0
5150 ;;
5151  default) ENABLE_LIBCPP=0
5152;;
5153  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155   { (exit 1); exit 1; }; } ;;
5156esac
5157
5158# Check whether --enable-cxx11 was given.
5159if test "${enable_cxx11+set}" = set; then
5160  enableval=$enable_cxx11;
5161else
5162  enableval=default
5163fi
5164
5165case "$enableval" in
5166  yes) ENABLE_CXX11=1
5167 ;;
5168  no)  ENABLE_CXX11=0
5169 ;;
5170  default) ENABLE_CXX11=0
5171;;
5172  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174   { (exit 1); exit 1; }; } ;;
5175esac
5176
5177# Check whether --enable-split-dwarf was given.
5178if test "${enable_split_dwarf+set}" = set; then
5179  enableval=$enable_split_dwarf;
5180else
5181  enableval=default
5182fi
5183
5184case "$enableval" in
5185  yes) ENABLE_SPLIT_DWARF=1
5186 ;;
5187  no)  ENABLE_SPLIT_DWARF=0
5188 ;;
5189  default) ENABLE_SPLIT_DWARF=0
5190;;
5191  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193   { (exit 1); exit 1; }; } ;;
5194esac
5195
5196clang_arcmt="yes"
5197# Check whether --enable-clang-arcmt was given.
5198if test "${enable_clang_arcmt+set}" = set; then
5199  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5200else
5201  enableval="yes"
5202fi
5203
5204case "$enableval" in
5205  yes) ENABLE_CLANG_ARCMT=1
5206 ;;
5207  no)  ENABLE_CLANG_ARCMT=0
5208 ;;
5209  default) ENABLE_CLANG_ARCMT=1
5210;;
5211  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213   { (exit 1); exit 1; }; } ;;
5214esac
5215
5216clang_static_analyzer="yes"
5217# Check whether --enable-clang-static-analyzer was given.
5218if test "${enable_clang_static_analyzer+set}" = set; then
5219  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5220else
5221  enableval="yes"
5222fi
5223
5224case "$enableval" in
5225  yes) ENABLE_CLANG_STATIC_ANALYZER=1
5226 ;;
5227  no)  ENABLE_CLANG_STATIC_ANALYZER=0
5228 ;;
5229  default) ENABLE_CLANG_STATIC_ANALYZER=1
5230;;
5231  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233   { (exit 1); exit 1; }; } ;;
5234esac
5235
5236# Check whether --enable-clang-rewriter was given.
5237if test "${enable_clang_rewriter+set}" = set; then
5238  enableval=$enable_clang_rewriter;
5239else
5240  enableval="yes"
5241fi
5242
5243case "$enableval" in
5244  yes) ENABLE_CLANG_REWRITER=1
5245 ;;
5246  no)
5247    if test ${clang_arcmt} != "no" ; then
5248      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250   { (exit 1); exit 1; }; }
5251    fi
5252    if test ${clang_static_analyzer} != "no" ; then
5253      { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255   { (exit 1); exit 1; }; }
5256    fi
5257    ENABLE_CLANG_REWRITER=0
5258
5259    ;;
5260  default) ENABLE_CLANG_REWRITER=1
5261;;
5262  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264   { (exit 1); exit 1; }; } ;;
5265esac
5266
5267# Check whether --enable-optimized was given.
5268if test "${enable_optimized+set}" = set; then
5269  enableval=$enable_optimized;
5270else
5271  enableval=$optimize
5272fi
5273
5274if test ${enableval} = "no" ; then
5275  ENABLE_OPTIMIZED=
5276
5277else
5278  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5279
5280fi
5281
5282# Check whether --enable-profiling was given.
5283if test "${enable_profiling+set}" = set; then
5284  enableval=$enable_profiling;
5285else
5286  enableval="no"
5287fi
5288
5289if test ${enableval} = "no" ; then
5290  ENABLE_PROFILING=
5291
5292else
5293  ENABLE_PROFILING=ENABLE_PROFILING=1
5294
5295fi
5296
5297# Check whether --enable-assertions was given.
5298if test "${enable_assertions+set}" = set; then
5299  enableval=$enable_assertions;
5300else
5301  enableval="yes"
5302fi
5303
5304if test ${enableval} = "yes" ; then
5305  DISABLE_ASSERTIONS=
5306
5307else
5308  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5309
5310fi
5311
5312# Check whether --enable-werror was given.
5313if test "${enable_werror+set}" = set; then
5314  enableval=$enable_werror;
5315else
5316  enableval="no"
5317fi
5318
5319case "$enableval" in
5320  yes) ENABLE_WERROR=1
5321 ;;
5322  no)  ENABLE_WERROR=0
5323 ;;
5324  default) ENABLE_WERROR=0
5325;;
5326  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328   { (exit 1); exit 1; }; } ;;
5329esac
5330
5331# Check whether --enable-expensive-checks was given.
5332if test "${enable_expensive_checks+set}" = set; then
5333  enableval=$enable_expensive_checks;
5334else
5335  enableval="no"
5336fi
5337
5338if test ${enableval} = "yes" ; then
5339  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5340
5341  EXPENSIVE_CHECKS=yes
5342
5343else
5344  ENABLE_EXPENSIVE_CHECKS=
5345
5346  EXPENSIVE_CHECKS=no
5347
5348fi
5349
5350# Check whether --enable-debug-runtime was given.
5351if test "${enable_debug_runtime+set}" = set; then
5352  enableval=$enable_debug_runtime;
5353else
5354  enableval=no
5355fi
5356
5357if test ${enableval} = "no" ; then
5358  DEBUG_RUNTIME=
5359
5360else
5361  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5362
5363fi
5364
5365# Check whether --enable-debug-symbols was given.
5366if test "${enable_debug_symbols+set}" = set; then
5367  enableval=$enable_debug_symbols;
5368else
5369  enableval=no
5370fi
5371
5372if test ${enableval} = "no" ; then
5373  DEBUG_SYMBOLS=
5374
5375else
5376  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5377
5378fi
5379
5380# Check whether --enable-keep-symbols was given.
5381if test "${enable_keep_symbols+set}" = set; then
5382  enableval=$enable_keep_symbols;
5383else
5384  enableval=no
5385fi
5386
5387if test ${enableval} = "no" ; then
5388  KEEP_SYMBOLS=
5389
5390else
5391  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5392
5393fi
5394
5395# Check whether --enable-jit was given.
5396if test "${enable_jit+set}" = set; then
5397  enableval=$enable_jit;
5398else
5399  enableval=default
5400fi
5401
5402if test ${enableval} = "no"
5403then
5404  JIT=
5405
5406else
5407  case "$llvm_cv_target_arch" in
5408    x86)         TARGET_HAS_JIT=1
5409 ;;
5410    Sparc)       TARGET_HAS_JIT=0
5411 ;;
5412    PowerPC)     TARGET_HAS_JIT=1
5413 ;;
5414    x86_64)      TARGET_HAS_JIT=1
5415 ;;
5416    ARM)         TARGET_HAS_JIT=1
5417 ;;
5418    AArch64)     TARGET_HAS_JIT=0
5419 ;;
5420    Mips)        TARGET_HAS_JIT=1
5421 ;;
5422    XCore)       TARGET_HAS_JIT=0
5423 ;;
5424    MSP430)      TARGET_HAS_JIT=0
5425 ;;
5426    Hexagon)     TARGET_HAS_JIT=0
5427 ;;
5428    NVPTX)       TARGET_HAS_JIT=0
5429 ;;
5430    SystemZ)     TARGET_HAS_JIT=1
5431 ;;
5432    *)           TARGET_HAS_JIT=0
5433 ;;
5434  esac
5435fi
5436
5437# Check whether --enable-docs was given.
5438if test "${enable_docs+set}" = set; then
5439  enableval=$enable_docs;
5440else
5441  enableval=default
5442fi
5443
5444case "$enableval" in
5445  yes) ENABLE_DOCS=1
5446 ;;
5447  no)  ENABLE_DOCS=0
5448 ;;
5449  default) ENABLE_DOCS=1
5450 ;;
5451  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5452echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5453   { (exit 1); exit 1; }; } ;;
5454esac
5455
5456# Check whether --enable-doxygen was given.
5457if test "${enable_doxygen+set}" = set; then
5458  enableval=$enable_doxygen;
5459else
5460  enableval=default
5461fi
5462
5463case "$enableval" in
5464  yes) ENABLE_DOXYGEN=1
5465 ;;
5466  no)  ENABLE_DOXYGEN=0
5467 ;;
5468  default) ENABLE_DOXYGEN=0
5469 ;;
5470  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5471echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5472   { (exit 1); exit 1; }; } ;;
5473esac
5474
5475# Check whether --enable-threads was given.
5476if test "${enable_threads+set}" = set; then
5477  enableval=$enable_threads;
5478else
5479  enableval=default
5480fi
5481
5482case "$enableval" in
5483  yes) LLVM_ENABLE_THREADS=1
5484 ;;
5485  no)  LLVM_ENABLE_THREADS=0
5486 ;;
5487  default) LLVM_ENABLE_THREADS=1
5488 ;;
5489  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5490echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5491   { (exit 1); exit 1; }; } ;;
5492esac
5493
5494cat >>confdefs.h <<_ACEOF
5495#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5496_ACEOF
5497
5498
5499# Check whether --enable-pthreads was given.
5500if test "${enable_pthreads+set}" = set; then
5501  enableval=$enable_pthreads;
5502else
5503  enableval=default
5504fi
5505
5506case "$enableval" in
5507  yes) ENABLE_PTHREADS=1
5508 ;;
5509  no)  ENABLE_PTHREADS=0
5510 ;;
5511  default) ENABLE_PTHREADS=1
5512 ;;
5513  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5514echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5515   { (exit 1); exit 1; }; } ;;
5516esac
5517
5518# Check whether --enable-zlib was given.
5519if test "${enable_zlib+set}" = set; then
5520  enableval=$enable_zlib;
5521else
5522  enableval=default
5523fi
5524
5525case "$enableval" in
5526  yes) LLVM_ENABLE_ZLIB=1
5527 ;;
5528  no)  LLVM_ENABLE_ZLIB=0
5529 ;;
5530  default) LLVM_ENABLE_ZLIB=1
5531 ;;
5532  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5533echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5534   { (exit 1); exit 1; }; } ;;
5535esac
5536
5537cat >>confdefs.h <<_ACEOF
5538#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5539_ACEOF
5540
5541
5542# Check whether --enable-pic was given.
5543if test "${enable_pic+set}" = set; then
5544  enableval=$enable_pic;
5545else
5546  enableval=default
5547fi
5548
5549case "$enableval" in
5550  yes) ENABLE_PIC=1
5551 ;;
5552  no)  ENABLE_PIC=0
5553 ;;
5554  default) ENABLE_PIC=1
5555 ;;
5556  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5557echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5558   { (exit 1); exit 1; }; } ;;
5559esac
5560
5561cat >>confdefs.h <<_ACEOF
5562#define ENABLE_PIC $ENABLE_PIC
5563_ACEOF
5564
5565
5566# Check whether --enable-shared was given.
5567if test "${enable_shared+set}" = set; then
5568  enableval=$enable_shared;
5569else
5570  enableval=default
5571fi
5572
5573case "$enableval" in
5574  yes) ENABLE_SHARED=1
5575 ;;
5576  no)  ENABLE_SHARED=0
5577 ;;
5578  default) ENABLE_SHARED=0
5579 ;;
5580  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5581echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5582   { (exit 1); exit 1; }; } ;;
5583esac
5584
5585# Check whether --enable-embed-stdcxx was given.
5586if test "${enable_embed_stdcxx+set}" = set; then
5587  enableval=$enable_embed_stdcxx;
5588else
5589  enableval=default
5590fi
5591
5592case "$enableval" in
5593  yes) ENABLE_EMBED_STDCXX=1
5594 ;;
5595  no)  ENABLE_EMBED_STDCXX=0
5596 ;;
5597  default) ENABLE_EMBED_STDCXX=0
5598 ;;
5599  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5600echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5601   { (exit 1); exit 1; }; } ;;
5602esac
5603
5604# Check whether --enable-timestamps was given.
5605if test "${enable_timestamps+set}" = set; then
5606  enableval=$enable_timestamps;
5607else
5608  enableval=default
5609fi
5610
5611case "$enableval" in
5612  yes) ENABLE_TIMESTAMPS=1
5613 ;;
5614  no)  ENABLE_TIMESTAMPS=0
5615 ;;
5616  default) ENABLE_TIMESTAMPS=1
5617 ;;
5618  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5619echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5620   { (exit 1); exit 1; }; } ;;
5621esac
5622
5623cat >>confdefs.h <<_ACEOF
5624#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5625_ACEOF
5626
5627
5628
5629# Check whether --enable-backtraces was given.
5630if test "${enable_backtraces+set}" = set; then
5631  enableval=$enable_backtraces;
5632else
5633  enableval=default
5634fi
5635
5636case "$enableval" in
5637  yes) ENABLE_BACKTRACES=1
5638 ;;
5639  no)  ENABLE_BACKTRACES=0
5640 ;;
5641  default) ENABLE_BACKTRACES=1
5642 ;;
5643  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5644echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5645   { (exit 1); exit 1; }; } ;;
5646esac
5647
5648cat >>confdefs.h <<_ACEOF
5649#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5650_ACEOF
5651
5652
5653TARGETS_TO_BUILD=""
5654# Check whether --enable-targets was given.
5655if test "${enable_targets+set}" = set; then
5656  enableval=$enable_targets;
5657else
5658  enableval=all
5659fi
5660
5661if test "$enableval" = host-only ; then
5662  enableval=host
5663fi
5664case "$enableval" in
5665  all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5666  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5667      case "$a_target" in
5668        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5671        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5672        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5673        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5674        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5681        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5682        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5683        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5684        r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5685        host) case "$llvm_cv_target_arch" in
5686            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5687            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5688            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5689            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5690            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5691            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5692            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5693            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5694            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5695            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5696            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5697            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5698            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5699echo "$as_me: error: Can not set target to build" >&2;}
5700   { (exit 1); exit 1; }; } ;;
5701          esac ;;
5702        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5703echo "$as_me: error: Unrecognized target $a_target" >&2;}
5704   { (exit 1); exit 1; }; } ;;
5705      esac
5706  done
5707  ;;
5708esac
5709
5710# Check whether --enable-experimental-targets was given.
5711if test "${enable_experimental_targets+set}" = set; then
5712  enableval=$enable_experimental_targets;
5713else
5714  enableval=disable
5715fi
5716
5717
5718if test ${enableval} != "disable"
5719then
5720  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5721fi
5722
5723TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5724
5725
5726for a_target in $TARGETS_TO_BUILD; do
5727  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5728
5729cat >>confdefs.h <<_ACEOF
5730#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5731_ACEOF
5732
5733    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5734    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5735    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5736    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5737    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5738      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5739    fi
5740    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5741      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5742    fi
5743
5744cat >>confdefs.h <<_ACEOF
5745#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5746_ACEOF
5747
5748
5749cat >>confdefs.h <<_ACEOF
5750#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5751_ACEOF
5752
5753
5754cat >>confdefs.h <<_ACEOF
5755#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5756_ACEOF
5757
5758
5759cat >>confdefs.h <<_ACEOF
5760#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5761_ACEOF
5762
5763    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5764
5765cat >>confdefs.h <<_ACEOF
5766#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5767_ACEOF
5768
5769    fi
5770    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5771
5772cat >>confdefs.h <<_ACEOF
5773#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5774_ACEOF
5775
5776    fi
5777  fi
5778done
5779
5780LLVM_ENUM_TARGETS=""
5781LLVM_ENUM_ASM_PRINTERS=""
5782LLVM_ENUM_ASM_PARSERS=""
5783LLVM_ENUM_DISASSEMBLERS=""
5784for target_to_build in $TARGETS_TO_BUILD; do
5785  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5786  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5787    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5788  fi
5789  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5790    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5791  fi
5792  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5793    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5794  fi
5795done
5796
5797
5798
5799
5800
5801
5802# Check whether --with-optimize-option was given.
5803if test "${with_optimize_option+set}" = set; then
5804  withval=$with_optimize_option;
5805else
5806  withval=default
5807fi
5808
5809{ echo "$as_me:$LINENO: checking optimization flags" >&5
5810echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5811case "$withval" in
5812  default)
5813    case "$llvm_cv_os_type" in
5814    FreeBSD) optimize_option=-O2 ;;
5815    MingW) optimize_option=-O2 ;;
5816    *)     optimize_option=-O3 ;;
5817    esac ;;
5818  *) optimize_option="$withval" ;;
5819esac
5820OPTIMIZE_OPTION=$optimize_option
5821
5822{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5823echo "${ECHO_T}$optimize_option" >&6; }
5824
5825
5826# Check whether --with-extra-options was given.
5827if test "${with_extra_options+set}" = set; then
5828  withval=$with_extra_options;
5829else
5830  withval=default
5831fi
5832
5833case "$withval" in
5834  default) EXTRA_OPTIONS= ;;
5835  *) EXTRA_OPTIONS=$withval ;;
5836esac
5837EXTRA_OPTIONS=$EXTRA_OPTIONS
5838
5839
5840
5841# Check whether --with-extra-ld-options was given.
5842if test "${with_extra_ld_options+set}" = set; then
5843  withval=$with_extra_ld_options;
5844else
5845  withval=default
5846fi
5847
5848case "$withval" in
5849  default) EXTRA_LD_OPTIONS= ;;
5850  *) EXTRA_LD_OPTIONS=$withval ;;
5851esac
5852EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5853
5854
5855# Check whether --enable-bindings was given.
5856if test "${enable_bindings+set}" = set; then
5857  enableval=$enable_bindings;
5858else
5859  enableval=default
5860fi
5861
5862BINDINGS_TO_BUILD=""
5863case "$enableval" in
5864  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5865  all ) BINDINGS_TO_BUILD="ocaml" ;;
5866  none | no) BINDINGS_TO_BUILD="" ;;
5867  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5868      case "$a_binding" in
5869        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5870        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5871echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5872   { (exit 1); exit 1; }; } ;;
5873      esac
5874  done
5875  ;;
5876esac
5877
5878
5879# Check whether --with-ocaml-libdir was given.
5880if test "${with_ocaml_libdir+set}" = set; then
5881  withval=$with_ocaml_libdir;
5882else
5883  withval=auto
5884fi
5885
5886case "$withval" in
5887  auto) with_ocaml_libdir="$withval" ;;
5888  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5889  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5890echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5891   { (exit 1); exit 1; }; } ;;
5892esac
5893
5894
5895# Check whether --with-clang-srcdir was given.
5896if test "${with_clang_srcdir+set}" = set; then
5897  withval=$with_clang_srcdir;
5898else
5899  withval="-"
5900fi
5901
5902case "$withval" in
5903  -) clang_src_root="" ;;
5904  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5905  *) clang_src_root="$ac_pwd/$withval" ;;
5906esac
5907CLANG_SRC_ROOT=$clang_src_root
5908
5909
5910
5911# Check whether --with-clang-resource-dir was given.
5912if test "${with_clang_resource_dir+set}" = set; then
5913  withval=$with_clang_resource_dir;
5914else
5915  withval=""
5916fi
5917
5918
5919cat >>confdefs.h <<_ACEOF
5920#define CLANG_RESOURCE_DIR "$withval"
5921_ACEOF
5922
5923
5924
5925# Check whether --with-c-include-dirs was given.
5926if test "${with_c_include_dirs+set}" = set; then
5927  withval=$with_c_include_dirs;
5928else
5929  withval=""
5930fi
5931
5932
5933cat >>confdefs.h <<_ACEOF
5934#define C_INCLUDE_DIRS "$withval"
5935_ACEOF
5936
5937
5938# Clang normally uses the system c++ headers and libraries. With this option,
5939# clang will use the ones provided by a gcc installation instead. This option should
5940# be passed the same value that was used with --prefix when configuring gcc.
5941
5942# Check whether --with-gcc-toolchain was given.
5943if test "${with_gcc_toolchain+set}" = set; then
5944  withval=$with_gcc_toolchain;
5945else
5946  withval=""
5947fi
5948
5949
5950cat >>confdefs.h <<_ACEOF
5951#define GCC_INSTALL_PREFIX "$withval"
5952_ACEOF
5953
5954
5955
5956# Check whether --with-default-sysroot was given.
5957if test "${with_default_sysroot+set}" = set; then
5958  withval=$with_default_sysroot;
5959else
5960  withval=""
5961fi
5962
5963
5964cat >>confdefs.h <<_ACEOF
5965#define DEFAULT_SYSROOT "$withval"
5966_ACEOF
5967
5968
5969
5970# Check whether --with-binutils-include was given.
5971if test "${with_binutils_include+set}" = set; then
5972  withval=$with_binutils_include;
5973else
5974  withval=default
5975fi
5976
5977case "$withval" in
5978  default) WITH_BINUTILS_INCDIR=default ;;
5979  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5980  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5981echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5982   { (exit 1); exit 1; }; } ;;
5983esac
5984if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5985  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5986
5987  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5988     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5989     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5990echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5991   { (exit 1); exit 1; }; };
5992  fi
5993fi
5994
5995
5996# Check whether --with-bug-report-url was given.
5997if test "${with_bug_report_url+set}" = set; then
5998  withval=$with_bug_report_url;
5999else
6000  withval="http://llvm.org/bugs/"
6001fi
6002
6003
6004cat >>confdefs.h <<_ACEOF
6005#define BUG_REPORT_URL "$withval"
6006_ACEOF
6007
6008
6009# Check whether --enable-curses was given.
6010if test "${enable_curses+set}" = set; then
6011  enableval=$enable_curses; case "$enableval" in
6012    yes) llvm_cv_enable_curses="yes" ;;
6013    no)  llvm_cv_enable_curses="no"  ;;
6014    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&5
6015echo "$as_me: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&2;}
6016   { (exit 1); exit 1; }; } ;;
6017  esac
6018else
6019  llvm_cv_enable_curses="yes"
6020fi
6021
6022
6023# Check whether --enable-libffi was given.
6024if test "${enable_libffi+set}" = set; then
6025  enableval=$enable_libffi; case "$enableval" in
6026    yes) llvm_cv_enable_libffi="yes" ;;
6027    no)  llvm_cv_enable_libffi="no"  ;;
6028    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6029echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6030   { (exit 1); exit 1; }; } ;;
6031  esac
6032else
6033  llvm_cv_enable_libffi=no
6034fi
6035
6036
6037
6038# Check whether --with-internal-prefix was given.
6039if test "${with_internal_prefix+set}" = set; then
6040  withval=$with_internal_prefix;
6041else
6042  withval=""
6043fi
6044
6045INTERNAL_PREFIX=$withval
6046
6047
6048
6049{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6050echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6051if test "${lt_cv_path_NM+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  if test -n "$NM"; then
6055  # Let the user override the test.
6056  lt_cv_path_NM="$NM"
6057else
6058  lt_nm_to_check="${ac_tool_prefix}nm"
6059  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6060    lt_nm_to_check="$lt_nm_to_check nm"
6061  fi
6062  for lt_tmp_nm in $lt_nm_to_check; do
6063    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6065      IFS="$lt_save_ifs"
6066      test -z "$ac_dir" && ac_dir=.
6067      tmp_nm="$ac_dir/$lt_tmp_nm"
6068      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6069	# Check to see if the nm accepts a BSD-compat flag.
6070	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6071	#   nm: unknown option "B" ignored
6072	# Tru64's nm complains that /dev/null is an invalid object file
6073	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6074	*/dev/null* | *'Invalid file or object type'*)
6075	  lt_cv_path_NM="$tmp_nm -B"
6076	  break
6077	  ;;
6078	*)
6079	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6080	  */dev/null*)
6081	    lt_cv_path_NM="$tmp_nm -p"
6082	    break
6083	    ;;
6084	  *)
6085	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6086	    continue # so that we can try to find one that supports BSD flags
6087	    ;;
6088	  esac
6089	  ;;
6090	esac
6091      fi
6092    done
6093    IFS="$lt_save_ifs"
6094  done
6095  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6096fi
6097fi
6098{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6099echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6100NM="$lt_cv_path_NM"
6101
6102
6103
6104{ echo "$as_me:$LINENO: checking for GNU make" >&5
6105echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6106if test "${llvm_cv_gnu_make_command+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  llvm_cv_gnu_make_command=''
6110 for a in "$MAKE" make gmake gnumake ; do
6111  if test -z "$a" ; then continue ; fi ;
6112  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6113  then
6114   llvm_cv_gnu_make_command=$a ;
6115   break;
6116  fi
6117 done
6118fi
6119{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6120echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6121 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6122   ifGNUmake='' ;
6123 else
6124   ifGNUmake='#' ;
6125   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6126echo "${ECHO_T}\"Not found\"" >&6; };
6127 fi
6128
6129
6130{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6131echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6132LN_S=$as_ln_s
6133if test "$LN_S" = "ln -s"; then
6134  { echo "$as_me:$LINENO: result: yes" >&5
6135echo "${ECHO_T}yes" >&6; }
6136else
6137  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6138echo "${ECHO_T}no, using $LN_S" >&6; }
6139fi
6140
6141# Extract the first word of "cmp", so it can be a program name with args.
6142set dummy cmp; ac_word=$2
6143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145if test "${ac_cv_path_CMP+set}" = set; then
6146  echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148  case $CMP in
6149  [\\/]* | ?:[\\/]*)
6150  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6151  ;;
6152  *)
6153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158  for ac_exec_ext in '' $ac_executable_extensions; do
6159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162    break 2
6163  fi
6164done
6165done
6166IFS=$as_save_IFS
6167
6168  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6169  ;;
6170esac
6171fi
6172CMP=$ac_cv_path_CMP
6173if test -n "$CMP"; then
6174  { echo "$as_me:$LINENO: result: $CMP" >&5
6175echo "${ECHO_T}$CMP" >&6; }
6176else
6177  { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
6179fi
6180
6181
6182# Extract the first word of "cp", so it can be a program name with args.
6183set dummy cp; ac_word=$2
6184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186if test "${ac_cv_path_CP+set}" = set; then
6187  echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189  case $CP in
6190  [\\/]* | ?:[\\/]*)
6191  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6192  ;;
6193  *)
6194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197  IFS=$as_save_IFS
6198  test -z "$as_dir" && as_dir=.
6199  for ac_exec_ext in '' $ac_executable_extensions; do
6200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203    break 2
6204  fi
6205done
6206done
6207IFS=$as_save_IFS
6208
6209  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6210  ;;
6211esac
6212fi
6213CP=$ac_cv_path_CP
6214if test -n "$CP"; then
6215  { echo "$as_me:$LINENO: result: $CP" >&5
6216echo "${ECHO_T}$CP" >&6; }
6217else
6218  { echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6; }
6220fi
6221
6222
6223# Extract the first word of "date", so it can be a program name with args.
6224set dummy date; ac_word=$2
6225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227if test "${ac_cv_path_DATE+set}" = set; then
6228  echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230  case $DATE in
6231  [\\/]* | ?:[\\/]*)
6232  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6233  ;;
6234  *)
6235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238  IFS=$as_save_IFS
6239  test -z "$as_dir" && as_dir=.
6240  for ac_exec_ext in '' $ac_executable_extensions; do
6241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6242    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244    break 2
6245  fi
6246done
6247done
6248IFS=$as_save_IFS
6249
6250  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6251  ;;
6252esac
6253fi
6254DATE=$ac_cv_path_DATE
6255if test -n "$DATE"; then
6256  { echo "$as_me:$LINENO: result: $DATE" >&5
6257echo "${ECHO_T}$DATE" >&6; }
6258else
6259  { echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6; }
6261fi
6262
6263
6264# Extract the first word of "find", so it can be a program name with args.
6265set dummy find; ac_word=$2
6266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268if test "${ac_cv_path_FIND+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  case $FIND in
6272  [\\/]* | ?:[\\/]*)
6273  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6274  ;;
6275  *)
6276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279  IFS=$as_save_IFS
6280  test -z "$as_dir" && as_dir=.
6281  for ac_exec_ext in '' $ac_executable_extensions; do
6282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285    break 2
6286  fi
6287done
6288done
6289IFS=$as_save_IFS
6290
6291  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6292  ;;
6293esac
6294fi
6295FIND=$ac_cv_path_FIND
6296if test -n "$FIND"; then
6297  { echo "$as_me:$LINENO: result: $FIND" >&5
6298echo "${ECHO_T}$FIND" >&6; }
6299else
6300  { echo "$as_me:$LINENO: result: no" >&5
6301echo "${ECHO_T}no" >&6; }
6302fi
6303
6304
6305# Extract the first word of "grep", so it can be a program name with args.
6306set dummy grep; ac_word=$2
6307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309if test "${ac_cv_path_GREP+set}" = set; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  case $GREP in
6313  [\\/]* | ?:[\\/]*)
6314  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6315  ;;
6316  *)
6317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322  for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329done
6330IFS=$as_save_IFS
6331
6332  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6333  ;;
6334esac
6335fi
6336GREP=$ac_cv_path_GREP
6337if test -n "$GREP"; then
6338  { echo "$as_me:$LINENO: result: $GREP" >&5
6339echo "${ECHO_T}$GREP" >&6; }
6340else
6341  { echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6; }
6343fi
6344
6345
6346# Extract the first word of "mkdir", so it can be a program name with args.
6347set dummy mkdir; ac_word=$2
6348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350if test "${ac_cv_path_MKDIR+set}" = set; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353  case $MKDIR in
6354  [\\/]* | ?:[\\/]*)
6355  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6356  ;;
6357  *)
6358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371IFS=$as_save_IFS
6372
6373  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6374  ;;
6375esac
6376fi
6377MKDIR=$ac_cv_path_MKDIR
6378if test -n "$MKDIR"; then
6379  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6380echo "${ECHO_T}$MKDIR" >&6; }
6381else
6382  { echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6; }
6384fi
6385
6386
6387# Extract the first word of "mv", so it can be a program name with args.
6388set dummy mv; ac_word=$2
6389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391if test "${ac_cv_path_MV+set}" = set; then
6392  echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394  case $MV in
6395  [\\/]* | ?:[\\/]*)
6396  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6397  ;;
6398  *)
6399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402  IFS=$as_save_IFS
6403  test -z "$as_dir" && as_dir=.
6404  for ac_exec_ext in '' $ac_executable_extensions; do
6405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408    break 2
6409  fi
6410done
6411done
6412IFS=$as_save_IFS
6413
6414  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6415  ;;
6416esac
6417fi
6418MV=$ac_cv_path_MV
6419if test -n "$MV"; then
6420  { echo "$as_me:$LINENO: result: $MV" >&5
6421echo "${ECHO_T}$MV" >&6; }
6422else
6423  { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425fi
6426
6427
6428if test -n "$ac_tool_prefix"; then
6429  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6430set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433if test "${ac_cv_prog_RANLIB+set}" = set; then
6434  echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436  if test -n "$RANLIB"; then
6437  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442  IFS=$as_save_IFS
6443  test -z "$as_dir" && as_dir=.
6444  for ac_exec_ext in '' $ac_executable_extensions; do
6445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448    break 2
6449  fi
6450done
6451done
6452IFS=$as_save_IFS
6453
6454fi
6455fi
6456RANLIB=$ac_cv_prog_RANLIB
6457if test -n "$RANLIB"; then
6458  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6459echo "${ECHO_T}$RANLIB" >&6; }
6460else
6461  { echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6; }
6463fi
6464
6465
6466fi
6467if test -z "$ac_cv_prog_RANLIB"; then
6468  ac_ct_RANLIB=$RANLIB
6469  # Extract the first word of "ranlib", so it can be a program name with args.
6470set dummy ranlib; ac_word=$2
6471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  if test -n "$ac_ct_RANLIB"; then
6477  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482  IFS=$as_save_IFS
6483  test -z "$as_dir" && as_dir=.
6484  for ac_exec_ext in '' $ac_executable_extensions; do
6485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486    ac_cv_prog_ac_ct_RANLIB="ranlib"
6487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488    break 2
6489  fi
6490done
6491done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6497if test -n "$ac_ct_RANLIB"; then
6498  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6499echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6500else
6501  { echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6; }
6503fi
6504
6505  if test "x$ac_ct_RANLIB" = x; then
6506    RANLIB=":"
6507  else
6508    case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6511whose name does not start with the host triplet.  If you think this
6512configuration is useful to you, please write to autoconf@gnu.org." >&5
6513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6514whose name does not start with the host triplet.  If you think this
6515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6516ac_tool_warned=yes ;;
6517esac
6518    RANLIB=$ac_ct_RANLIB
6519  fi
6520else
6521  RANLIB="$ac_cv_prog_RANLIB"
6522fi
6523
6524if test -n "$ac_tool_prefix"; then
6525  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}ar; ac_word=$2
6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529if test "${ac_cv_prog_AR+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  if test -n "$AR"; then
6533  ac_cv_prog_AR="$AR" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540  for ac_exec_ext in '' $ac_executable_extensions; do
6541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542    ac_cv_prog_AR="${ac_tool_prefix}ar"
6543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552AR=$ac_cv_prog_AR
6553if test -n "$AR"; then
6554  { echo "$as_me:$LINENO: result: $AR" >&5
6555echo "${ECHO_T}$AR" >&6; }
6556else
6557  { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_AR"; then
6564  ac_ct_AR=$AR
6565  # Extract the first word of "ar", so it can be a program name with args.
6566set dummy ar; ac_word=$2
6567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  if test -n "$ac_ct_AR"; then
6573  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580  for ac_exec_ext in '' $ac_executable_extensions; do
6581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582    ac_cv_prog_ac_ct_AR="ar"
6583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593if test -n "$ac_ct_AR"; then
6594  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595echo "${ECHO_T}$ac_ct_AR" >&6; }
6596else
6597  { echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6; }
6599fi
6600
6601  if test "x$ac_ct_AR" = x; then
6602    AR="false"
6603  else
6604    case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607whose name does not start with the host triplet.  If you think this
6608configuration is useful to you, please write to autoconf@gnu.org." >&5
6609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610whose name does not start with the host triplet.  If you think this
6611configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614    AR=$ac_ct_AR
6615  fi
6616else
6617  AR="$ac_cv_prog_AR"
6618fi
6619
6620# Extract the first word of "rm", so it can be a program name with args.
6621set dummy rm; ac_word=$2
6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624if test "${ac_cv_path_RM+set}" = set; then
6625  echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627  case $RM in
6628  [\\/]* | ?:[\\/]*)
6629  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6630  ;;
6631  *)
6632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637  for ac_exec_ext in '' $ac_executable_extensions; do
6638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644done
6645IFS=$as_save_IFS
6646
6647  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6648  ;;
6649esac
6650fi
6651RM=$ac_cv_path_RM
6652if test -n "$RM"; then
6653  { echo "$as_me:$LINENO: result: $RM" >&5
6654echo "${ECHO_T}$RM" >&6; }
6655else
6656  { echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6; }
6658fi
6659
6660
6661# Extract the first word of "sed", so it can be a program name with args.
6662set dummy sed; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_path_SED+set}" = set; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  case $SED in
6669  [\\/]* | ?:[\\/]*)
6670  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6671  ;;
6672  *)
6673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676  IFS=$as_save_IFS
6677  test -z "$as_dir" && as_dir=.
6678  for ac_exec_ext in '' $ac_executable_extensions; do
6679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685done
6686IFS=$as_save_IFS
6687
6688  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6689  ;;
6690esac
6691fi
6692SED=$ac_cv_path_SED
6693if test -n "$SED"; then
6694  { echo "$as_me:$LINENO: result: $SED" >&5
6695echo "${ECHO_T}$SED" >&6; }
6696else
6697  { echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; }
6699fi
6700
6701
6702# Extract the first word of "tar", so it can be a program name with args.
6703set dummy tar; ac_word=$2
6704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706if test "${ac_cv_path_TAR+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709  case $TAR in
6710  [\\/]* | ?:[\\/]*)
6711  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6712  ;;
6713  *)
6714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719  for ac_exec_ext in '' $ac_executable_extensions; do
6720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726done
6727IFS=$as_save_IFS
6728
6729  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6730  ;;
6731esac
6732fi
6733TAR=$ac_cv_path_TAR
6734if test -n "$TAR"; then
6735  { echo "$as_me:$LINENO: result: $TAR" >&5
6736echo "${ECHO_T}$TAR" >&6; }
6737else
6738  { echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6; }
6740fi
6741
6742
6743# Extract the first word of "pwd", so it can be a program name with args.
6744set dummy pwd; ac_word=$2
6745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747if test "${ac_cv_path_BINPWD+set}" = set; then
6748  echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750  case $BINPWD in
6751  [\\/]* | ?:[\\/]*)
6752  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6753  ;;
6754  *)
6755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760  for ac_exec_ext in '' $ac_executable_extensions; do
6761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767done
6768IFS=$as_save_IFS
6769
6770  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6771  ;;
6772esac
6773fi
6774BINPWD=$ac_cv_path_BINPWD
6775if test -n "$BINPWD"; then
6776  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6777echo "${ECHO_T}$BINPWD" >&6; }
6778else
6779  { echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6; }
6781fi
6782
6783
6784
6785# Extract the first word of "Graphviz", so it can be a program name with args.
6786set dummy Graphviz; ac_word=$2
6787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6790  echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792  case $GRAPHVIZ in
6793  [\\/]* | ?:[\\/]*)
6794  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6795  ;;
6796  *)
6797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802  for ac_exec_ext in '' $ac_executable_extensions; do
6803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809done
6810IFS=$as_save_IFS
6811
6812  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6813  ;;
6814esac
6815fi
6816GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6817if test -n "$GRAPHVIZ"; then
6818  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6819echo "${ECHO_T}$GRAPHVIZ" >&6; }
6820else
6821  { echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6; }
6823fi
6824
6825
6826if test "$GRAPHVIZ" != "echo Graphviz" ; then
6827
6828cat >>confdefs.h <<\_ACEOF
6829#define HAVE_GRAPHVIZ 1
6830_ACEOF
6831
6832    if test "$llvm_cv_os_type" = "MingW" ; then
6833    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834  fi
6835
6836cat >>confdefs.h <<_ACEOF
6837#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6838_ACEOF
6839
6840fi
6841# Extract the first word of "dot", so it can be a program name with args.
6842set dummy dot; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_DOT+set}" = set; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  case $DOT in
6849  [\\/]* | ?:[\\/]*)
6850  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6851  ;;
6852  *)
6853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858  for ac_exec_ext in '' $ac_executable_extensions; do
6859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6869  ;;
6870esac
6871fi
6872DOT=$ac_cv_path_DOT
6873if test -n "$DOT"; then
6874  { echo "$as_me:$LINENO: result: $DOT" >&5
6875echo "${ECHO_T}$DOT" >&6; }
6876else
6877  { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882if test "$DOT" != "echo dot" ; then
6883
6884cat >>confdefs.h <<\_ACEOF
6885#define HAVE_DOT 1
6886_ACEOF
6887
6888    if test "$llvm_cv_os_type" = "MingW" ; then
6889    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6890  fi
6891
6892cat >>confdefs.h <<_ACEOF
6893#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6894_ACEOF
6895
6896fi
6897# Extract the first word of "fdp", so it can be a program name with args.
6898set dummy fdp; ac_word=$2
6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_FDP+set}" = set; then
6902  echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904  case $FDP in
6905  [\\/]* | ?:[\\/]*)
6906  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6907  ;;
6908  *)
6909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914  for ac_exec_ext in '' $ac_executable_extensions; do
6915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6925  ;;
6926esac
6927fi
6928FDP=$ac_cv_path_FDP
6929if test -n "$FDP"; then
6930  { echo "$as_me:$LINENO: result: $FDP" >&5
6931echo "${ECHO_T}$FDP" >&6; }
6932else
6933  { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937
6938if test "$FDP" != "echo fdp" ; then
6939
6940cat >>confdefs.h <<\_ACEOF
6941#define HAVE_FDP 1
6942_ACEOF
6943
6944    if test "$llvm_cv_os_type" = "MingW" ; then
6945    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6946  fi
6947
6948cat >>confdefs.h <<_ACEOF
6949#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6950_ACEOF
6951
6952fi
6953# Extract the first word of "neato", so it can be a program name with args.
6954set dummy neato; ac_word=$2
6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957if test "${ac_cv_path_NEATO+set}" = set; then
6958  echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960  case $NEATO in
6961  [\\/]* | ?:[\\/]*)
6962  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6963  ;;
6964  *)
6965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968  IFS=$as_save_IFS
6969  test -z "$as_dir" && as_dir=.
6970  for ac_exec_ext in '' $ac_executable_extensions; do
6971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974    break 2
6975  fi
6976done
6977done
6978IFS=$as_save_IFS
6979
6980  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6981  ;;
6982esac
6983fi
6984NEATO=$ac_cv_path_NEATO
6985if test -n "$NEATO"; then
6986  { echo "$as_me:$LINENO: result: $NEATO" >&5
6987echo "${ECHO_T}$NEATO" >&6; }
6988else
6989  { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991fi
6992
6993
6994if test "$NEATO" != "echo neato" ; then
6995
6996cat >>confdefs.h <<\_ACEOF
6997#define HAVE_NEATO 1
6998_ACEOF
6999
7000    if test "$llvm_cv_os_type" = "MingW" ; then
7001    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002  fi
7003
7004cat >>confdefs.h <<_ACEOF
7005#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7006_ACEOF
7007
7008fi
7009# Extract the first word of "twopi", so it can be a program name with args.
7010set dummy twopi; ac_word=$2
7011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013if test "${ac_cv_path_TWOPI+set}" = set; then
7014  echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016  case $TWOPI in
7017  [\\/]* | ?:[\\/]*)
7018  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7019  ;;
7020  *)
7021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024  IFS=$as_save_IFS
7025  test -z "$as_dir" && as_dir=.
7026  for ac_exec_ext in '' $ac_executable_extensions; do
7027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030    break 2
7031  fi
7032done
7033done
7034IFS=$as_save_IFS
7035
7036  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7037  ;;
7038esac
7039fi
7040TWOPI=$ac_cv_path_TWOPI
7041if test -n "$TWOPI"; then
7042  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7043echo "${ECHO_T}$TWOPI" >&6; }
7044else
7045  { echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6; }
7047fi
7048
7049
7050if test "$TWOPI" != "echo twopi" ; then
7051
7052cat >>confdefs.h <<\_ACEOF
7053#define HAVE_TWOPI 1
7054_ACEOF
7055
7056    if test "$llvm_cv_os_type" = "MingW" ; then
7057    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7058  fi
7059
7060cat >>confdefs.h <<_ACEOF
7061#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7062_ACEOF
7063
7064fi
7065# Extract the first word of "circo", so it can be a program name with args.
7066set dummy circo; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_CIRCO+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072  case $CIRCO in
7073  [\\/]* | ?:[\\/]*)
7074  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7075  ;;
7076  *)
7077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  test -z "$as_dir" && as_dir=.
7082  for ac_exec_ext in '' $ac_executable_extensions; do
7083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086    break 2
7087  fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7093  ;;
7094esac
7095fi
7096CIRCO=$ac_cv_path_CIRCO
7097if test -n "$CIRCO"; then
7098  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7099echo "${ECHO_T}$CIRCO" >&6; }
7100else
7101  { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106if test "$CIRCO" != "echo circo" ; then
7107
7108cat >>confdefs.h <<\_ACEOF
7109#define HAVE_CIRCO 1
7110_ACEOF
7111
7112    if test "$llvm_cv_os_type" = "MingW" ; then
7113    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7114  fi
7115
7116cat >>confdefs.h <<_ACEOF
7117#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7118_ACEOF
7119
7120fi
7121for ac_prog in gv gsview32
7122do
7123  # Extract the first word of "$ac_prog", so it can be a program name with args.
7124set dummy $ac_prog; ac_word=$2
7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_GV+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130  case $GV in
7131  [\\/]* | ?:[\\/]*)
7132  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7133  ;;
7134  *)
7135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138  IFS=$as_save_IFS
7139  test -z "$as_dir" && as_dir=.
7140  for ac_exec_ext in '' $ac_executable_extensions; do
7141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144    break 2
7145  fi
7146done
7147done
7148IFS=$as_save_IFS
7149
7150  ;;
7151esac
7152fi
7153GV=$ac_cv_path_GV
7154if test -n "$GV"; then
7155  { echo "$as_me:$LINENO: result: $GV" >&5
7156echo "${ECHO_T}$GV" >&6; }
7157else
7158  { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
7160fi
7161
7162
7163  test -n "$GV" && break
7164done
7165test -n "$GV" || GV="echo gv"
7166
7167if test "$GV" != "echo gv" ; then
7168
7169cat >>confdefs.h <<\_ACEOF
7170#define HAVE_GV 1
7171_ACEOF
7172
7173    if test "$llvm_cv_os_type" = "MingW" ; then
7174    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7175  fi
7176
7177cat >>confdefs.h <<_ACEOF
7178#define LLVM_PATH_GV "$GV${EXEEXT}"
7179_ACEOF
7180
7181fi
7182# Extract the first word of "dotty", so it can be a program name with args.
7183set dummy dotty; ac_word=$2
7184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_path_DOTTY+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  case $DOTTY in
7190  [\\/]* | ?:[\\/]*)
7191  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7192  ;;
7193  *)
7194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199  for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206done
7207IFS=$as_save_IFS
7208
7209  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7210  ;;
7211esac
7212fi
7213DOTTY=$ac_cv_path_DOTTY
7214if test -n "$DOTTY"; then
7215  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7216echo "${ECHO_T}$DOTTY" >&6; }
7217else
7218  { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
7220fi
7221
7222
7223if test "$DOTTY" != "echo dotty" ; then
7224
7225cat >>confdefs.h <<\_ACEOF
7226#define HAVE_DOTTY 1
7227_ACEOF
7228
7229    if test "$llvm_cv_os_type" = "MingW" ; then
7230    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7231  fi
7232
7233cat >>confdefs.h <<_ACEOF
7234#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7235_ACEOF
7236
7237fi
7238for ac_prog in xdot xdot.py
7239do
7240  # Extract the first word of "$ac_prog", so it can be a program name with args.
7241set dummy $ac_prog; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_XDOT+set}" = set; then
7245  echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247  case $XDOT in
7248  [\\/]* | ?:[\\/]*)
7249  ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7250  ;;
7251  *)
7252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257  for ac_exec_ext in '' $ac_executable_extensions; do
7258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259    ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267  ;;
7268esac
7269fi
7270XDOT=$ac_cv_path_XDOT
7271if test -n "$XDOT"; then
7272  { echo "$as_me:$LINENO: result: $XDOT" >&5
7273echo "${ECHO_T}$XDOT" >&6; }
7274else
7275  { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279
7280  test -n "$XDOT" && break
7281done
7282test -n "$XDOT" || XDOT="echo xdot"
7283
7284if test "$XDOT" != "echo xdot" ; then
7285
7286cat >>confdefs.h <<\_ACEOF
7287#define HAVE_XDOT 1
7288_ACEOF
7289
7290    if test "$llvm_cv_os_type" = "MingW" ; then
7291    XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7292  fi
7293
7294cat >>confdefs.h <<_ACEOF
7295#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7296_ACEOF
7297
7298fi
7299
7300# Find a good install program.  We prefer a C program (faster),
7301# so one script is as good as another.  But avoid the broken or
7302# incompatible versions:
7303# SysV /etc/install, /usr/sbin/install
7304# SunOS /usr/etc/install
7305# IRIX /sbin/install
7306# AIX /bin/install
7307# AmigaOS /C/install, which installs bootblocks on floppy discs
7308# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7309# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7310# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7311# OS/2's system install, which has a completely different semantic
7312# ./install, which can be erroneously created by make from ./install.sh.
7313{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7314echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7315if test -z "$INSTALL"; then
7316if test "${ac_cv_path_install+set}" = set; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324  # Account for people who put trailing slashes in PATH elements.
7325case $as_dir/ in
7326  ./ | .// | /cC/* | \
7327  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7328  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7329  /usr/ucb/* ) ;;
7330  *)
7331    # OSF1 and SCO ODT 3.0 have their own names for install.
7332    # Don't use installbsd from OSF since it installs stuff as root
7333    # by default.
7334    for ac_prog in ginstall scoinst install; do
7335      for ac_exec_ext in '' $ac_executable_extensions; do
7336	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7337	  if test $ac_prog = install &&
7338	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7339	    # AIX install.  It has an incompatible calling convention.
7340	    :
7341	  elif test $ac_prog = install &&
7342	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7343	    # program-specific install script used by HP pwplus--don't use.
7344	    :
7345	  else
7346	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7347	    break 3
7348	  fi
7349	fi
7350      done
7351    done
7352    ;;
7353esac
7354done
7355IFS=$as_save_IFS
7356
7357
7358fi
7359  if test "${ac_cv_path_install+set}" = set; then
7360    INSTALL=$ac_cv_path_install
7361  else
7362    # As a last resort, use the slow shell script.  Don't cache a
7363    # value for INSTALL within a source directory, because that will
7364    # break other packages using the cache if that directory is
7365    # removed, or if the value is a relative name.
7366    INSTALL=$ac_install_sh
7367  fi
7368fi
7369{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7370echo "${ECHO_T}$INSTALL" >&6; }
7371
7372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7373# It thinks the first close brace ends the variable substitution.
7374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7375
7376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7377
7378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7379
7380case "$INSTALL" in
7381 [\\/$]* | ?:[\\/]* ) ;;
7382 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7383esac
7384
7385# Extract the first word of "bzip2", so it can be a program name with args.
7386set dummy bzip2; ac_word=$2
7387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389if test "${ac_cv_path_BZIP2+set}" = set; then
7390  echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392  case $BZIP2 in
7393  [\\/]* | ?:[\\/]*)
7394  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7395  ;;
7396  *)
7397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412  ;;
7413esac
7414fi
7415BZIP2=$ac_cv_path_BZIP2
7416if test -n "$BZIP2"; then
7417  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7418echo "${ECHO_T}$BZIP2" >&6; }
7419else
7420  { echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6; }
7422fi
7423
7424
7425# Extract the first word of "cat", so it can be a program name with args.
7426set dummy cat; ac_word=$2
7427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429if test "${ac_cv_path_CAT+set}" = set; then
7430  echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432  case $CAT in
7433  [\\/]* | ?:[\\/]*)
7434  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7435  ;;
7436  *)
7437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440  IFS=$as_save_IFS
7441  test -z "$as_dir" && as_dir=.
7442  for ac_exec_ext in '' $ac_executable_extensions; do
7443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7444    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446    break 2
7447  fi
7448done
7449done
7450IFS=$as_save_IFS
7451
7452  ;;
7453esac
7454fi
7455CAT=$ac_cv_path_CAT
7456if test -n "$CAT"; then
7457  { echo "$as_me:$LINENO: result: $CAT" >&5
7458echo "${ECHO_T}$CAT" >&6; }
7459else
7460  { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
7462fi
7463
7464
7465# Extract the first word of "doxygen", so it can be a program name with args.
7466set dummy doxygen; ac_word=$2
7467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469if test "${ac_cv_path_DOXYGEN+set}" = set; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472  case $DOXYGEN in
7473  [\\/]* | ?:[\\/]*)
7474  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7475  ;;
7476  *)
7477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482  for ac_exec_ext in '' $ac_executable_extensions; do
7483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486    break 2
7487  fi
7488done
7489done
7490IFS=$as_save_IFS
7491
7492  ;;
7493esac
7494fi
7495DOXYGEN=$ac_cv_path_DOXYGEN
7496if test -n "$DOXYGEN"; then
7497  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7498echo "${ECHO_T}$DOXYGEN" >&6; }
7499else
7500  { echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6; }
7502fi
7503
7504
7505# Extract the first word of "groff", so it can be a program name with args.
7506set dummy groff; ac_word=$2
7507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509if test "${ac_cv_path_GROFF+set}" = set; then
7510  echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512  case $GROFF in
7513  [\\/]* | ?:[\\/]*)
7514  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7515  ;;
7516  *)
7517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520  IFS=$as_save_IFS
7521  test -z "$as_dir" && as_dir=.
7522  for ac_exec_ext in '' $ac_executable_extensions; do
7523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526    break 2
7527  fi
7528done
7529done
7530IFS=$as_save_IFS
7531
7532  ;;
7533esac
7534fi
7535GROFF=$ac_cv_path_GROFF
7536if test -n "$GROFF"; then
7537  { echo "$as_me:$LINENO: result: $GROFF" >&5
7538echo "${ECHO_T}$GROFF" >&6; }
7539else
7540  { echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6; }
7542fi
7543
7544
7545# Extract the first word of "gzip", so it can be a program name with args.
7546set dummy gzip; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_GZIPBIN+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  case $GZIPBIN in
7553  [\\/]* | ?:[\\/]*)
7554  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7555  ;;
7556  *)
7557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560  IFS=$as_save_IFS
7561  test -z "$as_dir" && as_dir=.
7562  for ac_exec_ext in '' $ac_executable_extensions; do
7563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566    break 2
7567  fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572  ;;
7573esac
7574fi
7575GZIPBIN=$ac_cv_path_GZIPBIN
7576if test -n "$GZIPBIN"; then
7577  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7578echo "${ECHO_T}$GZIPBIN" >&6; }
7579else
7580  { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
7582fi
7583
7584
7585# Extract the first word of "pdfroff", so it can be a program name with args.
7586set dummy pdfroff; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_PDFROFF+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  case $PDFROFF in
7593  [\\/]* | ?:[\\/]*)
7594  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7595  ;;
7596  *)
7597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600  IFS=$as_save_IFS
7601  test -z "$as_dir" && as_dir=.
7602  for ac_exec_ext in '' $ac_executable_extensions; do
7603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606    break 2
7607  fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612  ;;
7613esac
7614fi
7615PDFROFF=$ac_cv_path_PDFROFF
7616if test -n "$PDFROFF"; then
7617  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7618echo "${ECHO_T}$PDFROFF" >&6; }
7619else
7620  { echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6; }
7622fi
7623
7624
7625# Extract the first word of "zip", so it can be a program name with args.
7626set dummy zip; ac_word=$2
7627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629if test "${ac_cv_path_ZIP+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  case $ZIP in
7633  [\\/]* | ?:[\\/]*)
7634  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7635  ;;
7636  *)
7637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640  IFS=$as_save_IFS
7641  test -z "$as_dir" && as_dir=.
7642  for ac_exec_ext in '' $ac_executable_extensions; do
7643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646    break 2
7647  fi
7648done
7649done
7650IFS=$as_save_IFS
7651
7652  ;;
7653esac
7654fi
7655ZIP=$ac_cv_path_ZIP
7656if test -n "$ZIP"; then
7657  { echo "$as_me:$LINENO: result: $ZIP" >&5
7658echo "${ECHO_T}$ZIP" >&6; }
7659else
7660  { echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6; }
7662fi
7663
7664
7665for ac_prog in ocamlc
7666do
7667  # Extract the first word of "$ac_prog", so it can be a program name with args.
7668set dummy $ac_prog; ac_word=$2
7669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_OCAMLC+set}" = set; then
7672  echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674  case $OCAMLC in
7675  [\\/]* | ?:[\\/]*)
7676  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7677  ;;
7678  *)
7679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684  for ac_exec_ext in '' $ac_executable_extensions; do
7685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691done
7692IFS=$as_save_IFS
7693
7694  ;;
7695esac
7696fi
7697OCAMLC=$ac_cv_path_OCAMLC
7698if test -n "$OCAMLC"; then
7699  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7700echo "${ECHO_T}$OCAMLC" >&6; }
7701else
7702  { echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6; }
7704fi
7705
7706
7707  test -n "$OCAMLC" && break
7708done
7709
7710for ac_prog in ocamlopt
7711do
7712  # Extract the first word of "$ac_prog", so it can be a program name with args.
7713set dummy $ac_prog; ac_word=$2
7714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7717  echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719  case $OCAMLOPT in
7720  [\\/]* | ?:[\\/]*)
7721  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7722  ;;
7723  *)
7724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737IFS=$as_save_IFS
7738
7739  ;;
7740esac
7741fi
7742OCAMLOPT=$ac_cv_path_OCAMLOPT
7743if test -n "$OCAMLOPT"; then
7744  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7745echo "${ECHO_T}$OCAMLOPT" >&6; }
7746else
7747  { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
7749fi
7750
7751
7752  test -n "$OCAMLOPT" && break
7753done
7754
7755for ac_prog in ocamldep
7756do
7757  # Extract the first word of "$ac_prog", so it can be a program name with args.
7758set dummy $ac_prog; ac_word=$2
7759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764  case $OCAMLDEP in
7765  [\\/]* | ?:[\\/]*)
7766  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7767  ;;
7768  *)
7769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774  for ac_exec_ext in '' $ac_executable_extensions; do
7775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781done
7782IFS=$as_save_IFS
7783
7784  ;;
7785esac
7786fi
7787OCAMLDEP=$ac_cv_path_OCAMLDEP
7788if test -n "$OCAMLDEP"; then
7789  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7790echo "${ECHO_T}$OCAMLDEP" >&6; }
7791else
7792  { echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6; }
7794fi
7795
7796
7797  test -n "$OCAMLDEP" && break
7798done
7799
7800for ac_prog in ocamldoc
7801do
7802  # Extract the first word of "$ac_prog", so it can be a program name with args.
7803set dummy $ac_prog; ac_word=$2
7804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7807  echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809  case $OCAMLDOC in
7810  [\\/]* | ?:[\\/]*)
7811  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7812  ;;
7813  *)
7814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817  IFS=$as_save_IFS
7818  test -z "$as_dir" && as_dir=.
7819  for ac_exec_ext in '' $ac_executable_extensions; do
7820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823    break 2
7824  fi
7825done
7826done
7827IFS=$as_save_IFS
7828
7829  ;;
7830esac
7831fi
7832OCAMLDOC=$ac_cv_path_OCAMLDOC
7833if test -n "$OCAMLDOC"; then
7834  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7835echo "${ECHO_T}$OCAMLDOC" >&6; }
7836else
7837  { echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6; }
7839fi
7840
7841
7842  test -n "$OCAMLDOC" && break
7843done
7844
7845for ac_prog in gas as
7846do
7847  # Extract the first word of "$ac_prog", so it can be a program name with args.
7848set dummy $ac_prog; ac_word=$2
7849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851if test "${ac_cv_path_GAS+set}" = set; then
7852  echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854  case $GAS in
7855  [\\/]* | ?:[\\/]*)
7856  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7857  ;;
7858  *)
7859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862  IFS=$as_save_IFS
7863  test -z "$as_dir" && as_dir=.
7864  for ac_exec_ext in '' $ac_executable_extensions; do
7865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868    break 2
7869  fi
7870done
7871done
7872IFS=$as_save_IFS
7873
7874  ;;
7875esac
7876fi
7877GAS=$ac_cv_path_GAS
7878if test -n "$GAS"; then
7879  { echo "$as_me:$LINENO: result: $GAS" >&5
7880echo "${ECHO_T}$GAS" >&6; }
7881else
7882  { echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6; }
7884fi
7885
7886
7887  test -n "$GAS" && break
7888done
7889
7890
7891{ echo "$as_me:$LINENO: checking for linker version" >&5
7892echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7893if test "${llvm_cv_link_version+set}" = set; then
7894  echo $ECHO_N "(cached) $ECHO_C" >&6
7895else
7896
7897   version_string="$(ld -v 2>&1 | head -1)"
7898
7899   # Check for ld64.
7900   if (echo "$version_string" | grep -q "ld64"); then
7901     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7902   else
7903     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7904   fi
7905
7906fi
7907{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7908echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7909
7910cat >>confdefs.h <<_ACEOF
7911#define HOST_LINK_VERSION "$llvm_cv_link_version"
7912_ACEOF
7913
7914
7915
7916{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918if test "${llvm_cv_link_use_r+set}" = set; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921   ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927  oldcflags="$CFLAGS"
7928  CFLAGS="$CFLAGS -Wl,-R."
7929  cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h.  */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h.  */
7935
7936int
7937main ()
7938{
7939
7940  ;
7941  return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (ac_try="$ac_link"
7946case "(($ac_try" in
7947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948  *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951  (eval "$ac_link") 2>conftest.er1
7952  ac_status=$?
7953  grep -v '^ *+' conftest.er1 >conftest.err
7954  rm -f conftest.er1
7955  cat conftest.err >&5
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); } &&
7958	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959  { (case "(($ac_try" in
7960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961  *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964  (eval "$ac_try") 2>&5
7965  ac_status=$?
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); }; } &&
7968	 { ac_try='test -s conftest$ac_exeext'
7969  { (case "(($ac_try" in
7970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971  *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974  (eval "$ac_try") 2>&5
7975  ac_status=$?
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); }; }; then
7978  llvm_cv_link_use_r=yes
7979else
7980  echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983	llvm_cv_link_use_r=no
7984fi
7985
7986rm -f core conftest.err conftest.$ac_objext \
7987      conftest$ac_exeext conftest.$ac_ext
7988  CFLAGS="$oldcflags"
7989  ac_ext=c
7990ac_cpp='$CPP $CPPFLAGS'
7991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995
7996fi
7997{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7998echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999if test "$llvm_cv_link_use_r" = yes ; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define HAVE_LINK_R 1
8003_ACEOF
8004
8005  fi
8006
8007
8008{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8009echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8010if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8011  echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013   ac_ext=c
8014ac_cpp='$CPP $CPPFLAGS'
8015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019  oldcflags="$CFLAGS"
8020  CFLAGS="$CFLAGS -rdynamic"
8021  cat >conftest.$ac_ext <<_ACEOF
8022/* confdefs.h.  */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h.  */
8027
8028int
8029main ()
8030{
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036rm -f conftest.$ac_objext conftest$ac_exeext
8037if { (ac_try="$ac_link"
8038case "(($ac_try" in
8039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040  *) ac_try_echo=$ac_try;;
8041esac
8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043  (eval "$ac_link") 2>conftest.er1
8044  ac_status=$?
8045  grep -v '^ *+' conftest.er1 >conftest.err
8046  rm -f conftest.er1
8047  cat conftest.err >&5
8048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); } &&
8050	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8051  { (case "(($ac_try" in
8052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053  *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056  (eval "$ac_try") 2>&5
8057  ac_status=$?
8058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059  (exit $ac_status); }; } &&
8060	 { ac_try='test -s conftest$ac_exeext'
8061  { (case "(($ac_try" in
8062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063  *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066  (eval "$ac_try") 2>&5
8067  ac_status=$?
8068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069  (exit $ac_status); }; }; then
8070  llvm_cv_link_use_export_dynamic=yes
8071else
8072  echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075	llvm_cv_link_use_export_dynamic=no
8076fi
8077
8078rm -f core conftest.err conftest.$ac_objext \
8079      conftest$ac_exeext conftest.$ac_ext
8080  CFLAGS="$oldcflags"
8081  ac_ext=c
8082ac_cpp='$CPP $CPPFLAGS'
8083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088fi
8089{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8090echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8091if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8092
8093cat >>confdefs.h <<\_ACEOF
8094#define HAVE_LINK_EXPORT_DYNAMIC 1
8095_ACEOF
8096
8097  fi
8098
8099
8100{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8101echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8102if test "${llvm_cv_link_use_version_script+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105   ac_ext=c
8106ac_cpp='$CPP $CPPFLAGS'
8107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111  oldcflags="$CFLAGS"
8112
8113  # The following code is from the autoconf manual,
8114  # "11.13: Limitations of Usual Tools".
8115  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8116  # Use mktemp if possible; otherwise fall back on mkdir,
8117  # with $RANDOM to make collisions less likely.
8118  : ${TMPDIR=/tmp}
8119  {
8120    tmp=`
8121      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8122    ` &&
8123    test -n "$tmp" && test -d "$tmp"
8124  } || {
8125    tmp=$TMPDIR/foo$$-$RANDOM
8126    (umask 077 && mkdir "$tmp")
8127  } || exit $?
8128
8129  echo "{" > "$tmp/export.map"
8130  echo "  global: main;" >> "$tmp/export.map"
8131  echo "  local: *;" >> "$tmp/export.map"
8132  echo "};" >> "$tmp/export.map"
8133
8134  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8135  cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h.  */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h.  */
8141
8142int
8143main ()
8144{
8145
8146  ;
8147  return 0;
8148}
8149_ACEOF
8150rm -f conftest.$ac_objext conftest$ac_exeext
8151if { (ac_try="$ac_link"
8152case "(($ac_try" in
8153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154  *) ac_try_echo=$ac_try;;
8155esac
8156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157  (eval "$ac_link") 2>conftest.er1
8158  ac_status=$?
8159  grep -v '^ *+' conftest.er1 >conftest.err
8160  rm -f conftest.er1
8161  cat conftest.err >&5
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); } &&
8164	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8165  { (case "(($ac_try" in
8166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167  *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170  (eval "$ac_try") 2>&5
8171  ac_status=$?
8172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173  (exit $ac_status); }; } &&
8174	 { ac_try='test -s conftest$ac_exeext'
8175  { (case "(($ac_try" in
8176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177  *) ac_try_echo=$ac_try;;
8178esac
8179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180  (eval "$ac_try") 2>&5
8181  ac_status=$?
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); }; }; then
8184  llvm_cv_link_use_version_script=yes
8185else
8186  echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189	llvm_cv_link_use_version_script=no
8190fi
8191
8192rm -f core conftest.err conftest.$ac_objext \
8193      conftest$ac_exeext conftest.$ac_ext
8194  rm "$tmp/export.map"
8195  rmdir "$tmp"
8196  CFLAGS="$oldcflags"
8197  ac_ext=c
8198ac_cpp='$CPP $CPPFLAGS'
8199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202
8203
8204fi
8205{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8206echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8207if test "$llvm_cv_link_use_version_script" = yes ; then
8208  HAVE_LINK_VERSION_SCRIPT=1
8209
8210  fi
8211
8212
8213
8214
8215{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8216echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8217if test "${ac_cv_c_const+set}" = set; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220  cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h.  */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h.  */
8226
8227int
8228main ()
8229{
8230/* FIXME: Include the comments suggested by Paul. */
8231#ifndef __cplusplus
8232  /* Ultrix mips cc rejects this.  */
8233  typedef int charset[2];
8234  const charset x;
8235  /* SunOS 4.1.1 cc rejects this.  */
8236  char const *const *ccp;
8237  char **p;
8238  /* NEC SVR4.0.2 mips cc rejects this.  */
8239  struct point {int x, y;};
8240  static struct point const zero = {0,0};
8241  /* AIX XL C 1.02.0.0 rejects this.
8242     It does not let you subtract one const X* pointer from another in
8243     an arm of an if-expression whose if-part is not a constant
8244     expression */
8245  const char *g = "string";
8246  ccp = &g + (g ? g-g : 0);
8247  /* HPUX 7.0 cc rejects these. */
8248  ++ccp;
8249  p = (char**) ccp;
8250  ccp = (char const *const *) p;
8251  { /* SCO 3.2v4 cc rejects this.  */
8252    char *t;
8253    char const *s = 0 ? (char *) 0 : (char const *) 0;
8254
8255    *t++ = 0;
8256    if (s) return 0;
8257  }
8258  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8259    int x[] = {25, 17};
8260    const int *foo = &x[0];
8261    ++foo;
8262  }
8263  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8264    typedef const int *iptr;
8265    iptr p = 0;
8266    ++p;
8267  }
8268  { /* AIX XL C 1.02.0.0 rejects this saying
8269       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8270    struct s { int j; const int *ap[3]; };
8271    struct s *b; b->j = 5;
8272  }
8273  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8274    const int foo = 10;
8275    if (!foo) return 0;
8276  }
8277  return !x[0] && !zero.x;
8278#endif
8279
8280  ;
8281  return 0;
8282}
8283_ACEOF
8284rm -f conftest.$ac_objext
8285if { (ac_try="$ac_compile"
8286case "(($ac_try" in
8287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288  *) ac_try_echo=$ac_try;;
8289esac
8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291  (eval "$ac_compile") 2>conftest.er1
8292  ac_status=$?
8293  grep -v '^ *+' conftest.er1 >conftest.err
8294  rm -f conftest.er1
8295  cat conftest.err >&5
8296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297  (exit $ac_status); } &&
8298	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299  { (case "(($ac_try" in
8300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301  *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304  (eval "$ac_try") 2>&5
8305  ac_status=$?
8306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307  (exit $ac_status); }; } &&
8308	 { ac_try='test -s conftest.$ac_objext'
8309  { (case "(($ac_try" in
8310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311  *) ac_try_echo=$ac_try;;
8312esac
8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314  (eval "$ac_try") 2>&5
8315  ac_status=$?
8316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317  (exit $ac_status); }; }; then
8318  ac_cv_c_const=yes
8319else
8320  echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323	ac_cv_c_const=no
8324fi
8325
8326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327fi
8328{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8329echo "${ECHO_T}$ac_cv_c_const" >&6; }
8330if test $ac_cv_c_const = no; then
8331
8332cat >>confdefs.h <<\_ACEOF
8333#define const
8334_ACEOF
8335
8336fi
8337
8338
8339
8340
8341
8342
8343ac_header_dirent=no
8344for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8345  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8346{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8347echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349  echo $ECHO_N "(cached) $ECHO_C" >&6
8350else
8351  cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h.  */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h.  */
8357#include <sys/types.h>
8358#include <$ac_hdr>
8359
8360int
8361main ()
8362{
8363if ((DIR *) 0)
8364return 0;
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext
8370if { (ac_try="$ac_compile"
8371case "(($ac_try" in
8372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373  *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376  (eval "$ac_compile") 2>conftest.er1
8377  ac_status=$?
8378  grep -v '^ *+' conftest.er1 >conftest.err
8379  rm -f conftest.er1
8380  cat conftest.err >&5
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); } &&
8383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384  { (case "(($ac_try" in
8385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386  *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389  (eval "$ac_try") 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }; } &&
8393	 { ac_try='test -s conftest.$ac_objext'
8394  { (case "(($ac_try" in
8395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396  *) ac_try_echo=$ac_try;;
8397esac
8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399  (eval "$ac_try") 2>&5
8400  ac_status=$?
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); }; }; then
8403  eval "$as_ac_Header=yes"
8404else
8405  echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408	eval "$as_ac_Header=no"
8409fi
8410
8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412fi
8413ac_res=`eval echo '${'$as_ac_Header'}'`
8414	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8415echo "${ECHO_T}$ac_res" >&6; }
8416if test `eval echo '${'$as_ac_Header'}'` = yes; then
8417  cat >>confdefs.h <<_ACEOF
8418#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8419_ACEOF
8420
8421ac_header_dirent=$ac_hdr; break
8422fi
8423
8424done
8425# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8426if test $ac_header_dirent = dirent.h; then
8427  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8428echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8429if test "${ac_cv_search_opendir+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  ac_func_search_save_LIBS=$LIBS
8433cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h.  */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h.  */
8439
8440/* Override any GCC internal prototype to avoid an error.
8441   Use char because int might match the return type of a GCC
8442   builtin and then its argument prototype would still apply.  */
8443#ifdef __cplusplus
8444extern "C"
8445#endif
8446char opendir ();
8447int
8448main ()
8449{
8450return opendir ();
8451  ;
8452  return 0;
8453}
8454_ACEOF
8455for ac_lib in '' dir; do
8456  if test -z "$ac_lib"; then
8457    ac_res="none required"
8458  else
8459    ac_res=-l$ac_lib
8460    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8461  fi
8462  rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (ac_try="$ac_link"
8464case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469  (eval "$ac_link") 2>conftest.er1
8470  ac_status=$?
8471  grep -v '^ *+' conftest.er1 >conftest.err
8472  rm -f conftest.er1
8473  cat conftest.err >&5
8474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } &&
8476	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477  { (case "(($ac_try" in
8478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479  *) ac_try_echo=$ac_try;;
8480esac
8481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482  (eval "$ac_try") 2>&5
8483  ac_status=$?
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); }; } &&
8486	 { ac_try='test -s conftest$ac_exeext'
8487  { (case "(($ac_try" in
8488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489  *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492  (eval "$ac_try") 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; }; then
8496  ac_cv_search_opendir=$ac_res
8497else
8498  echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501
8502fi
8503
8504rm -f core conftest.err conftest.$ac_objext \
8505      conftest$ac_exeext
8506  if test "${ac_cv_search_opendir+set}" = set; then
8507  break
8508fi
8509done
8510if test "${ac_cv_search_opendir+set}" = set; then
8511  :
8512else
8513  ac_cv_search_opendir=no
8514fi
8515rm conftest.$ac_ext
8516LIBS=$ac_func_search_save_LIBS
8517fi
8518{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8519echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8520ac_res=$ac_cv_search_opendir
8521if test "$ac_res" != no; then
8522  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8523
8524fi
8525
8526else
8527  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8528echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8529if test "${ac_cv_search_opendir+set}" = set; then
8530  echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532  ac_func_search_save_LIBS=$LIBS
8533cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h.  */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h.  */
8539
8540/* Override any GCC internal prototype to avoid an error.
8541   Use char because int might match the return type of a GCC
8542   builtin and then its argument prototype would still apply.  */
8543#ifdef __cplusplus
8544extern "C"
8545#endif
8546char opendir ();
8547int
8548main ()
8549{
8550return opendir ();
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555for ac_lib in '' x; do
8556  if test -z "$ac_lib"; then
8557    ac_res="none required"
8558  else
8559    ac_res=-l$ac_lib
8560    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8561  fi
8562  rm -f conftest.$ac_objext conftest$ac_exeext
8563if { (ac_try="$ac_link"
8564case "(($ac_try" in
8565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566  *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569  (eval "$ac_link") 2>conftest.er1
8570  ac_status=$?
8571  grep -v '^ *+' conftest.er1 >conftest.err
8572  rm -f conftest.er1
8573  cat conftest.err >&5
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); } &&
8576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577  { (case "(($ac_try" in
8578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579  *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582  (eval "$ac_try") 2>&5
8583  ac_status=$?
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); }; } &&
8586	 { ac_try='test -s conftest$ac_exeext'
8587  { (case "(($ac_try" in
8588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589  *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592  (eval "$ac_try") 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; }; then
8596  ac_cv_search_opendir=$ac_res
8597else
8598  echo "$as_me: failed program was:" >&5
8599sed 's/^/| /' conftest.$ac_ext >&5
8600
8601
8602fi
8603
8604rm -f core conftest.err conftest.$ac_objext \
8605      conftest$ac_exeext
8606  if test "${ac_cv_search_opendir+set}" = set; then
8607  break
8608fi
8609done
8610if test "${ac_cv_search_opendir+set}" = set; then
8611  :
8612else
8613  ac_cv_search_opendir=no
8614fi
8615rm conftest.$ac_ext
8616LIBS=$ac_func_search_save_LIBS
8617fi
8618{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8619echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8620ac_res=$ac_cv_search_opendir
8621if test "$ac_res" != no; then
8622  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8623
8624fi
8625
8626fi
8627
8628
8629for ac_header in dlfcn.h
8630do
8631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8633  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8636  echo $ECHO_N "(cached) $ECHO_C" >&6
8637fi
8638ac_res=`eval echo '${'$as_ac_Header'}'`
8639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8640echo "${ECHO_T}$ac_res" >&6; }
8641else
8642  # Is the header compilable?
8643{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8645cat >conftest.$ac_ext <<_ACEOF
8646/* confdefs.h.  */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h.  */
8651$ac_includes_default
8652#include <$ac_header>
8653_ACEOF
8654rm -f conftest.$ac_objext
8655if { (ac_try="$ac_compile"
8656case "(($ac_try" in
8657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658  *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661  (eval "$ac_compile") 2>conftest.er1
8662  ac_status=$?
8663  grep -v '^ *+' conftest.er1 >conftest.err
8664  rm -f conftest.er1
8665  cat conftest.err >&5
8666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667  (exit $ac_status); } &&
8668	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669  { (case "(($ac_try" in
8670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671  *) ac_try_echo=$ac_try;;
8672esac
8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674  (eval "$ac_try") 2>&5
8675  ac_status=$?
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); }; } &&
8678	 { ac_try='test -s conftest.$ac_objext'
8679  { (case "(($ac_try" in
8680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681  *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684  (eval "$ac_try") 2>&5
8685  ac_status=$?
8686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); }; }; then
8688  ac_header_compiler=yes
8689else
8690  echo "$as_me: failed program was:" >&5
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
8693	ac_header_compiler=no
8694fi
8695
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698echo "${ECHO_T}$ac_header_compiler" >&6; }
8699
8700# Is the header present?
8701{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8703cat >conftest.$ac_ext <<_ACEOF
8704/* confdefs.h.  */
8705_ACEOF
8706cat confdefs.h >>conftest.$ac_ext
8707cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h.  */
8709#include <$ac_header>
8710_ACEOF
8711if { (ac_try="$ac_cpp conftest.$ac_ext"
8712case "(($ac_try" in
8713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714  *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8718  ac_status=$?
8719  grep -v '^ *+' conftest.er1 >conftest.err
8720  rm -f conftest.er1
8721  cat conftest.err >&5
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); } >/dev/null; then
8724  if test -s conftest.err; then
8725    ac_cpp_err=$ac_c_preproc_warn_flag
8726    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8727  else
8728    ac_cpp_err=
8729  fi
8730else
8731  ac_cpp_err=yes
8732fi
8733if test -z "$ac_cpp_err"; then
8734  ac_header_preproc=yes
8735else
8736  echo "$as_me: failed program was:" >&5
8737sed 's/^/| /' conftest.$ac_ext >&5
8738
8739  ac_header_preproc=no
8740fi
8741
8742rm -f conftest.err conftest.$ac_ext
8743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8744echo "${ECHO_T}$ac_header_preproc" >&6; }
8745
8746# So?  What about this header?
8747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8748  yes:no: )
8749    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8753    ac_header_preproc=yes
8754    ;;
8755  no:yes:* )
8756    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8758    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8759echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8760    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8762    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8763echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8764    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8766    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8768    ( cat <<\_ASBOX
8769## ------------------------------------ ##
8770## Report this to http://llvm.org/bugs/ ##
8771## ------------------------------------ ##
8772_ASBOX
8773     ) | sed "s/^/$as_me: WARNING:     /" >&2
8774    ;;
8775esac
8776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779  echo $ECHO_N "(cached) $ECHO_C" >&6
8780else
8781  eval "$as_ac_Header=\$ac_header_preproc"
8782fi
8783ac_res=`eval echo '${'$as_ac_Header'}'`
8784	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8785echo "${ECHO_T}$ac_res" >&6; }
8786
8787fi
8788if test `eval echo '${'$as_ac_Header'}'` = yes; then
8789  cat >>confdefs.h <<_ACEOF
8790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791_ACEOF
8792
8793fi
8794
8795done
8796
8797# Check whether --enable-ltdl-install was given.
8798if test "${enable_ltdl_install+set}" = set; then
8799  enableval=$enable_ltdl_install;
8800fi
8801
8802
8803
8804
8805if test x"${enable_ltdl_install-no}" != xno; then
8806  INSTALL_LTDL_TRUE=
8807  INSTALL_LTDL_FALSE='#'
8808else
8809  INSTALL_LTDL_TRUE='#'
8810  INSTALL_LTDL_FALSE=
8811fi
8812
8813
8814
8815if test x"${enable_ltdl_convenience-no}" != xno; then
8816  CONVENIENCE_LTDL_TRUE=
8817  CONVENIENCE_LTDL_FALSE='#'
8818else
8819  CONVENIENCE_LTDL_TRUE='#'
8820  CONVENIENCE_LTDL_FALSE=
8821fi
8822
8823
8824{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8825echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8826library_names_spec=
8827libname_spec='lib$name'
8828soname_spec=
8829shrext_cmds=".so"
8830postinstall_cmds=
8831postuninstall_cmds=
8832finish_cmds=
8833finish_eval=
8834shlibpath_var=
8835shlibpath_overrides_runpath=unknown
8836version_type=none
8837dynamic_linker="$host_os ld.so"
8838sys_lib_dlsearch_path_spec="/lib /usr/lib"
8839if test "$GCC" = yes; then
8840  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8841  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8842    # if the path contains ";" then we assume it to be the separator
8843    # otherwise default to the standard path separator (i.e. ":") - it is
8844    # assumed that no part of a normal pathname contains ";" but that should
8845    # okay in the real world where ";" in dirpaths is itself problematic.
8846    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8847  else
8848    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8849  fi
8850else
8851  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8852fi
8853need_lib_prefix=unknown
8854hardcode_into_libs=no
8855
8856# when you set need_version to no, make sure it does not cause -set_version
8857# flags to be left without arguments
8858need_version=unknown
8859
8860case $host_os in
8861aix3*)
8862  version_type=linux
8863  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8864  shlibpath_var=LIBPATH
8865
8866  # AIX 3 has no versioning support, so we append a major version to the name.
8867  soname_spec='${libname}${release}${shared_ext}$major'
8868  ;;
8869
8870aix4* | aix5*)
8871  version_type=linux
8872  need_lib_prefix=no
8873  need_version=no
8874  hardcode_into_libs=yes
8875  if test "$host_cpu" = ia64; then
8876    # AIX 5 supports IA64
8877    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8878    shlibpath_var=LD_LIBRARY_PATH
8879  else
8880    # With GCC up to 2.95.x, collect2 would create an import file
8881    # for dependence libraries.  The import file would start with
8882    # the line `#! .'.  This would cause the generated library to
8883    # depend on `.', always an invalid library.  This was fixed in
8884    # development snapshots of GCC prior to 3.0.
8885    case $host_os in
8886      aix4 | aix4.[01] | aix4.[01].*)
8887      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8888	   echo ' yes '
8889	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8890	:
8891      else
8892	can_build_shared=no
8893      fi
8894      ;;
8895    esac
8896    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8897    # soname into executable. Probably we can add versioning support to
8898    # collect2, so additional links can be useful in future.
8899    if test "$aix_use_runtimelinking" = yes; then
8900      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8901      # instead of lib<name>.a to let people know that these are not
8902      # typical AIX shared libraries.
8903      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904    else
8905      # We preserve .a as extension for shared libraries through AIX4.2
8906      # and later when we are not doing run time linking.
8907      library_names_spec='${libname}${release}.a $libname.a'
8908      soname_spec='${libname}${release}${shared_ext}$major'
8909    fi
8910    shlibpath_var=LIBPATH
8911  fi
8912  ;;
8913
8914amigaos*)
8915  library_names_spec='$libname.ixlibrary $libname.a'
8916  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8918  ;;
8919
8920beos*)
8921  library_names_spec='${libname}${shared_ext}'
8922  dynamic_linker="$host_os ld.so"
8923  shlibpath_var=LIBRARY_PATH
8924  ;;
8925
8926bsdi[45]*)
8927  version_type=linux
8928  need_version=no
8929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930  soname_spec='${libname}${release}${shared_ext}$major'
8931  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8932  shlibpath_var=LD_LIBRARY_PATH
8933  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8934  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8935  # the default ld.so.conf also contains /usr/contrib/lib and
8936  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8937  # libtool to hard-code these into programs
8938  ;;
8939
8940cygwin* | mingw* | pw32*)
8941  version_type=windows
8942  shrext_cmds=".dll"
8943  need_version=no
8944  need_lib_prefix=no
8945
8946  case $GCC,$host_os in
8947  yes,cygwin* | yes,mingw* | yes,pw32*)
8948    library_names_spec='$libname.dll.a'
8949    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8950    postinstall_cmds='base_file=`basename \${file}`~
8951      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8952      dldir=$destdir/`dirname \$dlpath`~
8953      test -d \$dldir || mkdir -p \$dldir~
8954      $install_prog $dir/$dlname \$dldir/$dlname~
8955      chmod a+x \$dldir/$dlname'
8956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8957      dlpath=$dir/\$dldll~
8958       $rm \$dlpath'
8959    shlibpath_overrides_runpath=yes
8960
8961    case $host_os in
8962    cygwin*)
8963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8964      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8966      ;;
8967    mingw*)
8968      # MinGW DLLs use traditional 'lib' prefix
8969      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8971      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8972        # It is most probably a Windows format PATH printed by
8973        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8974        # path with ; separators, and with drive letters. We can handle the
8975        # drive letters (cygwin fileutils understands them), so leave them,
8976        # especially as we might pass files found there to a mingw objdump,
8977        # which wouldn't understand a cygwinified path. Ahh.
8978        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8979      else
8980        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8981      fi
8982      ;;
8983    pw32*)
8984      # pw32 DLLs use 'pw' prefix rather than 'lib'
8985      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986      ;;
8987    esac
8988    ;;
8989
8990  *)
8991    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8992    ;;
8993  esac
8994  dynamic_linker='Win32 ld.exe'
8995  # FIXME: first we should search . and the directory the executable is in
8996  shlibpath_var=PATH
8997  ;;
8998
8999darwin* | rhapsody*)
9000  dynamic_linker="$host_os dyld"
9001  version_type=darwin
9002  need_lib_prefix=no
9003  need_version=no
9004  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9005  soname_spec='${libname}${release}${major}$shared_ext'
9006  shlibpath_overrides_runpath=yes
9007  shlibpath_var=DYLD_LIBRARY_PATH
9008  shrext_cmds='.dylib'
9009  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9010  if test "$GCC" = yes; then
9011    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9012  else
9013    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9014  fi
9015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9016  ;;
9017
9018dgux*)
9019  version_type=linux
9020  need_lib_prefix=no
9021  need_version=no
9022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9023  soname_spec='${libname}${release}${shared_ext}$major'
9024  shlibpath_var=LD_LIBRARY_PATH
9025  ;;
9026
9027freebsd1.*)
9028  dynamic_linker=no
9029  ;;
9030
9031kfreebsd*-gnu)
9032  version_type=linux
9033  need_lib_prefix=no
9034  need_version=no
9035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036  soname_spec='${libname}${release}${shared_ext}$major'
9037  shlibpath_var=LD_LIBRARY_PATH
9038  shlibpath_overrides_runpath=no
9039  hardcode_into_libs=yes
9040  dynamic_linker='GNU ld.so'
9041  ;;
9042
9043freebsd* | dragonfly*)
9044  # DragonFly does not have aout.  When/if they implement a new
9045  # versioning mechanism, adjust this.
9046  if test -x /usr/bin/objformat; then
9047    objformat=`/usr/bin/objformat`
9048  else
9049    case $host_os in
9050    freebsd[123].*) objformat=aout ;;
9051    *) objformat=elf ;;
9052    esac
9053  fi
9054  version_type=freebsd-$objformat
9055  case $version_type in
9056    freebsd-elf*)
9057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9058      need_version=no
9059      need_lib_prefix=no
9060      ;;
9061    freebsd-*)
9062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9063      need_version=yes
9064      ;;
9065  esac
9066  shlibpath_var=LD_LIBRARY_PATH
9067  case $host_os in
9068  freebsd2.*)
9069    shlibpath_overrides_runpath=yes
9070    ;;
9071  freebsd3.[01]* | freebsdelf3.[01]*)
9072    shlibpath_overrides_runpath=yes
9073    hardcode_into_libs=yes
9074    ;;
9075  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9076  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9077    shlibpath_overrides_runpath=no
9078    hardcode_into_libs=yes
9079    ;;
9080  freebsd*) # from 4.6 on
9081    shlibpath_overrides_runpath=yes
9082    hardcode_into_libs=yes
9083    ;;
9084  esac
9085  ;;
9086
9087gnu*)
9088  version_type=linux
9089  need_lib_prefix=no
9090  need_version=no
9091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9092  soname_spec='${libname}${release}${shared_ext}$major'
9093  shlibpath_var=LD_LIBRARY_PATH
9094  hardcode_into_libs=yes
9095  ;;
9096
9097hpux9* | hpux10* | hpux11*)
9098  # Give a soname corresponding to the major version so that dld.sl refuses to
9099  # link against other versions.
9100  version_type=sunos
9101  need_lib_prefix=no
9102  need_version=no
9103  case $host_cpu in
9104  ia64*)
9105    shrext_cmds='.so'
9106    hardcode_into_libs=yes
9107    dynamic_linker="$host_os dld.so"
9108    shlibpath_var=LD_LIBRARY_PATH
9109    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111    soname_spec='${libname}${release}${shared_ext}$major'
9112    if test "X$HPUX_IA64_MODE" = X32; then
9113      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9114    else
9115      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9116    fi
9117    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9118    ;;
9119   hppa*64*)
9120     shrext_cmds='.sl'
9121     hardcode_into_libs=yes
9122     dynamic_linker="$host_os dld.sl"
9123     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126     soname_spec='${libname}${release}${shared_ext}$major'
9127     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9128     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9129     ;;
9130   *)
9131    shrext_cmds='.sl'
9132    dynamic_linker="$host_os dld.sl"
9133    shlibpath_var=SHLIB_PATH
9134    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136    soname_spec='${libname}${release}${shared_ext}$major'
9137    ;;
9138  esac
9139  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9140  postinstall_cmds='chmod 555 $lib'
9141  ;;
9142
9143interix3*)
9144  version_type=linux
9145  need_lib_prefix=no
9146  need_version=no
9147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148  soname_spec='${libname}${release}${shared_ext}$major'
9149  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9150  shlibpath_var=LD_LIBRARY_PATH
9151  shlibpath_overrides_runpath=no
9152  hardcode_into_libs=yes
9153  ;;
9154
9155irix5* | irix6* | nonstopux*)
9156  case $host_os in
9157    nonstopux*) version_type=nonstopux ;;
9158    *)
9159	if test "$lt_cv_prog_gnu_ld" = yes; then
9160		version_type=linux
9161	else
9162		version_type=irix
9163	fi ;;
9164  esac
9165  need_lib_prefix=no
9166  need_version=no
9167  soname_spec='${libname}${release}${shared_ext}$major'
9168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9169  case $host_os in
9170  irix5* | nonstopux*)
9171    libsuff= shlibsuff=
9172    ;;
9173  *)
9174    case $LD in # libtool.m4 will add one of these switches to LD
9175    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9176      libsuff= shlibsuff= libmagic=32-bit;;
9177    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9178      libsuff=32 shlibsuff=N32 libmagic=N32;;
9179    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9180      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9181    *) libsuff= shlibsuff= libmagic=never-match;;
9182    esac
9183    ;;
9184  esac
9185  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9186  shlibpath_overrides_runpath=no
9187  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9188  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9189  hardcode_into_libs=yes
9190  ;;
9191
9192# No shared lib support for Linux oldld, aout, or coff.
9193linux*oldld* | linux*aout* | linux*coff*)
9194  dynamic_linker=no
9195  ;;
9196
9197# This must be Linux ELF.
9198linux*)
9199  version_type=linux
9200  need_lib_prefix=no
9201  need_version=no
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203  soname_spec='${libname}${release}${shared_ext}$major'
9204  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9205  shlibpath_var=LD_LIBRARY_PATH
9206  shlibpath_overrides_runpath=no
9207  # This implies no fast_install, which is unacceptable.
9208  # Some rework will be needed to allow for fast_install
9209  # before this can be enabled.
9210  hardcode_into_libs=yes
9211
9212  # Append ld.so.conf contents to the search path
9213  if test -f /etc/ld.so.conf; then
9214    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9215    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9216  fi
9217
9218  # We used to test for /lib/ld.so.1 and disable shared libraries on
9219  # powerpc, because MkLinux only supported shared libraries with the
9220  # GNU dynamic linker.  Since this was broken with cross compilers,
9221  # most powerpc-linux boxes support dynamic linking these days and
9222  # people can always --disable-shared, the test was removed, and we
9223  # assume the GNU/Linux dynamic linker is in use.
9224  dynamic_linker='GNU/Linux ld.so'
9225  ;;
9226
9227knetbsd*-gnu)
9228  version_type=linux
9229  need_lib_prefix=no
9230  need_version=no
9231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9232  soname_spec='${libname}${release}${shared_ext}$major'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  shlibpath_overrides_runpath=no
9235  hardcode_into_libs=yes
9236  dynamic_linker='GNU ld.so'
9237  ;;
9238
9239netbsd*)
9240  version_type=sunos
9241  need_lib_prefix=no
9242  need_version=no
9243  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246    dynamic_linker='NetBSD (a.out) ld.so'
9247  else
9248    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249    soname_spec='${libname}${release}${shared_ext}$major'
9250    dynamic_linker='NetBSD ld.elf_so'
9251  fi
9252  shlibpath_var=LD_LIBRARY_PATH
9253  shlibpath_overrides_runpath=yes
9254  hardcode_into_libs=yes
9255  ;;
9256
9257newsos6)
9258  version_type=linux
9259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260  shlibpath_var=LD_LIBRARY_PATH
9261  shlibpath_overrides_runpath=yes
9262  ;;
9263
9264nto-qnx*)
9265  version_type=linux
9266  need_lib_prefix=no
9267  need_version=no
9268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269  soname_spec='${libname}${release}${shared_ext}$major'
9270  shlibpath_var=LD_LIBRARY_PATH
9271  shlibpath_overrides_runpath=yes
9272  ;;
9273
9274openbsd* | bitrig*)
9275  version_type=sunos
9276  sys_lib_dlsearch_path_spec="/usr/lib"
9277  need_lib_prefix=no
9278  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9279  case $host_os in
9280    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9281    *)                         need_version=no  ;;
9282  esac
9283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9284  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9285  shlibpath_var=LD_LIBRARY_PATH
9286  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9287    case $host_os in
9288      openbsd2.[89] | openbsd2.[89].*)
9289	shlibpath_overrides_runpath=no
9290	;;
9291      *)
9292	shlibpath_overrides_runpath=yes
9293	;;
9294      esac
9295  else
9296    shlibpath_overrides_runpath=yes
9297  fi
9298  ;;
9299
9300os2*)
9301  libname_spec='$name'
9302  shrext_cmds=".dll"
9303  need_lib_prefix=no
9304  library_names_spec='$libname${shared_ext} $libname.a'
9305  dynamic_linker='OS/2 ld.exe'
9306  shlibpath_var=LIBPATH
9307  ;;
9308
9309osf3* | osf4* | osf5*)
9310  version_type=osf
9311  need_lib_prefix=no
9312  need_version=no
9313  soname_spec='${libname}${release}${shared_ext}$major'
9314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315  shlibpath_var=LD_LIBRARY_PATH
9316  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9317  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9318  ;;
9319
9320solaris*)
9321  version_type=linux
9322  need_lib_prefix=no
9323  need_version=no
9324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325  soname_spec='${libname}${release}${shared_ext}$major'
9326  shlibpath_var=LD_LIBRARY_PATH
9327  shlibpath_overrides_runpath=yes
9328  hardcode_into_libs=yes
9329  # ldd complains unless libraries are executable
9330  postinstall_cmds='chmod +x $lib'
9331  ;;
9332
9333sunos4*)
9334  version_type=sunos
9335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9337  shlibpath_var=LD_LIBRARY_PATH
9338  shlibpath_overrides_runpath=yes
9339  if test "$with_gnu_ld" = yes; then
9340    need_lib_prefix=no
9341  fi
9342  need_version=yes
9343  ;;
9344
9345sysv4 | sysv4.3*)
9346  version_type=linux
9347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348  soname_spec='${libname}${release}${shared_ext}$major'
9349  shlibpath_var=LD_LIBRARY_PATH
9350  case $host_vendor in
9351    sni)
9352      shlibpath_overrides_runpath=no
9353      need_lib_prefix=no
9354      export_dynamic_flag_spec='${wl}-Blargedynsym'
9355      runpath_var=LD_RUN_PATH
9356      ;;
9357    siemens)
9358      need_lib_prefix=no
9359      ;;
9360    motorola)
9361      need_lib_prefix=no
9362      need_version=no
9363      shlibpath_overrides_runpath=no
9364      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9365      ;;
9366  esac
9367  ;;
9368
9369sysv4*MP*)
9370  if test -d /usr/nec ;then
9371    version_type=linux
9372    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9373    soname_spec='$libname${shared_ext}.$major'
9374    shlibpath_var=LD_LIBRARY_PATH
9375  fi
9376  ;;
9377
9378sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9379  version_type=freebsd-elf
9380  need_lib_prefix=no
9381  need_version=no
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9383  soname_spec='${libname}${release}${shared_ext}$major'
9384  shlibpath_var=LD_LIBRARY_PATH
9385  hardcode_into_libs=yes
9386  if test "$with_gnu_ld" = yes; then
9387    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9388    shlibpath_overrides_runpath=no
9389  else
9390    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9391    shlibpath_overrides_runpath=yes
9392    case $host_os in
9393      sco3.2v5*)
9394        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9395	;;
9396    esac
9397  fi
9398  sys_lib_dlsearch_path_spec='/usr/lib'
9399  ;;
9400
9401uts4*)
9402  version_type=linux
9403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404  soname_spec='${libname}${release}${shared_ext}$major'
9405  shlibpath_var=LD_LIBRARY_PATH
9406  ;;
9407
9408*)
9409  dynamic_linker=no
9410  ;;
9411esac
9412{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9413echo "${ECHO_T}$dynamic_linker" >&6; }
9414test "$dynamic_linker" = no && can_build_shared=no
9415
9416variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9417if test "$GCC" = yes; then
9418  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9419fi
9420
9421
9422{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9423echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9424if test "${libltdl_cv_shlibext+set}" = set; then
9425  echo $ECHO_N "(cached) $ECHO_C" >&6
9426else
9427
9428module=yes
9429eval libltdl_cv_shlibext=$shrext_cmds
9430
9431fi
9432{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9433echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9434if test -n "$libltdl_cv_shlibext"; then
9435
9436cat >>confdefs.h <<_ACEOF
9437#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9438_ACEOF
9439
9440fi
9441
9442
9443{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9444echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9445if test "${libltdl_cv_sys_search_path+set}" = set; then
9446  echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9449fi
9450{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9451echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9452if test -n "$libltdl_cv_sys_search_path"; then
9453  sys_search_path=
9454  for dir in $libltdl_cv_sys_search_path; do
9455    if test -z "$sys_search_path"; then
9456      sys_search_path="$dir"
9457    else
9458      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9459    fi
9460  done
9461
9462cat >>confdefs.h <<_ACEOF
9463#define LTDL_SYSSEARCHPATH "$sys_search_path"
9464_ACEOF
9465
9466fi
9467
9468{ echo "$as_me:$LINENO: checking for objdir" >&5
9469echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9470if test "${libltdl_cv_objdir+set}" = set; then
9471  echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473  libltdl_cv_objdir="$objdir"
9474  if test -n "$objdir"; then
9475    :
9476  else
9477    rm -f .libs 2>/dev/null
9478    mkdir .libs 2>/dev/null
9479    if test -d .libs; then
9480      libltdl_cv_objdir=.libs
9481    else
9482      # MS-DOS does not allow filenames that begin with a dot.
9483      libltdl_cv_objdir=_libs
9484    fi
9485  rmdir .libs 2>/dev/null
9486  fi
9487
9488fi
9489{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9490echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9491
9492cat >>confdefs.h <<_ACEOF
9493#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9494_ACEOF
9495
9496
9497
9498
9499
9500
9501# Check for command to grab the raw symbol name followed by C symbol from nm.
9502{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9503echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9505  echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507
9508# These are sane defaults that work on at least a few old systems.
9509# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9510
9511# Character class describing NM global symbol codes.
9512symcode='[BCDEGRST]'
9513
9514# Regexp to match symbols that can be accessed directly from C.
9515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9516
9517# Transform an extracted symbol line into a proper C declaration
9518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9519
9520# Transform an extracted symbol line into symbol name and symbol address
9521lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9522
9523# Define system-specific variables.
9524case $host_os in
9525aix*)
9526  symcode='[BCDT]'
9527  ;;
9528cygwin* | mingw* | pw32*)
9529  symcode='[ABCDGISTW]'
9530  ;;
9531hpux*) # Its linker distinguishes data from code symbols
9532  if test "$host_cpu" = ia64; then
9533    symcode='[ABCDEGRST]'
9534  fi
9535  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9536  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9537  ;;
9538linux*)
9539  if test "$host_cpu" = ia64; then
9540    symcode='[ABCDGIRSTW]'
9541    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9542    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9543  fi
9544  ;;
9545irix* | nonstopux*)
9546  symcode='[BCDEGRST]'
9547  ;;
9548osf*)
9549  symcode='[BCDEGQRST]'
9550  ;;
9551solaris*)
9552  symcode='[BDRT]'
9553  ;;
9554sco3.2v5*)
9555  symcode='[DT]'
9556  ;;
9557sysv4.2uw2*)
9558  symcode='[DT]'
9559  ;;
9560sysv5* | sco5v6* | unixware* | OpenUNIX*)
9561  symcode='[ABDT]'
9562  ;;
9563sysv4)
9564  symcode='[DFNSTU]'
9565  ;;
9566esac
9567
9568# Handle CRLF in mingw tool chain
9569opt_cr=
9570case $build_os in
9571mingw*)
9572  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9573  ;;
9574esac
9575
9576# If we're using GNU nm, then use its standard symbol codes.
9577case `$NM -V 2>&1` in
9578*GNU* | *'with BFD'*)
9579  symcode='[ABCDGIRSTW]' ;;
9580esac
9581
9582# Try without a prefix undercore, then with it.
9583for ac_symprfx in "" "_"; do
9584
9585  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9586  symxfrm="\\1 $ac_symprfx\\2 \\2"
9587
9588  # Write the raw and C identifiers.
9589  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9590
9591  # Check to see that the pipe works correctly.
9592  pipe_works=no
9593
9594  rm -f conftest*
9595  cat > conftest.$ac_ext <<EOF
9596#ifdef __cplusplus
9597extern "C" {
9598#endif
9599char nm_test_var;
9600void nm_test_func(){}
9601#ifdef __cplusplus
9602}
9603#endif
9604int main(){nm_test_var='a';nm_test_func();return(0);}
9605EOF
9606
9607  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608  (eval $ac_compile) 2>&5
9609  ac_status=$?
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); }; then
9612    # Now try to grab the symbols.
9613    nlist=conftest.nm
9614    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9615  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9616  ac_status=$?
9617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618  (exit $ac_status); } && test -s "$nlist"; then
9619      # Try sorting and uniquifying the output.
9620      if sort "$nlist" | uniq > "$nlist"T; then
9621	mv -f "$nlist"T "$nlist"
9622      else
9623	rm -f "$nlist"T
9624      fi
9625
9626      # Make sure that we snagged all the symbols we need.
9627      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9628	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9629	  cat <<EOF > conftest.$ac_ext
9630#ifdef __cplusplus
9631extern "C" {
9632#endif
9633
9634EOF
9635	  # Now generate the symbol file.
9636	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9637
9638	  cat <<EOF >> conftest.$ac_ext
9639#if defined (__STDC__) && __STDC__
9640# define lt_ptr_t void *
9641#else
9642# define lt_ptr_t char *
9643# define const
9644#endif
9645
9646/* The mapping between symbol names and symbols. */
9647const struct {
9648  const char *name;
9649  lt_ptr_t address;
9650}
9651lt_preloaded_symbols[] =
9652{
9653EOF
9654	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9655	  cat <<\EOF >> conftest.$ac_ext
9656  {0, (lt_ptr_t) 0}
9657};
9658
9659#ifdef __cplusplus
9660}
9661#endif
9662EOF
9663	  # Now try linking the two files.
9664	  mv conftest.$ac_objext conftstm.$ac_objext
9665	  lt_save_LIBS="$LIBS"
9666	  lt_save_CFLAGS="$CFLAGS"
9667	  LIBS="conftstm.$ac_objext"
9668	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9669	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670  (eval $ac_link) 2>&5
9671  ac_status=$?
9672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9674	    pipe_works=yes
9675	  fi
9676	  LIBS="$lt_save_LIBS"
9677	  CFLAGS="$lt_save_CFLAGS"
9678	else
9679	  echo "cannot find nm_test_func in $nlist" >&5
9680	fi
9681      else
9682	echo "cannot find nm_test_var in $nlist" >&5
9683      fi
9684    else
9685      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9686    fi
9687  else
9688    echo "$progname: failed program was:" >&5
9689    cat conftest.$ac_ext >&5
9690  fi
9691  rm -f conftest* conftst*
9692
9693  # Do not use the global_symbol_pipe unless it works.
9694  if test "$pipe_works" = yes; then
9695    break
9696  else
9697    lt_cv_sys_global_symbol_pipe=
9698  fi
9699done
9700
9701fi
9702
9703if test -z "$lt_cv_sys_global_symbol_pipe"; then
9704  lt_cv_sys_global_symbol_to_cdecl=
9705fi
9706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9707  { echo "$as_me:$LINENO: result: failed" >&5
9708echo "${ECHO_T}failed" >&6; }
9709else
9710  { echo "$as_me:$LINENO: result: ok" >&5
9711echo "${ECHO_T}ok" >&6; }
9712fi
9713
9714
9715{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9716echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9717if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9718  echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9721    libltdl_cv_preloaded_symbols=yes
9722  else
9723    libltdl_cv_preloaded_symbols=no
9724  fi
9725
9726fi
9727{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9728echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9729if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define HAVE_PRELOADED_SYMBOLS 1
9733_ACEOF
9734
9735fi
9736
9737LIBADD_DL=
9738
9739ac_ext=c
9740ac_cpp='$CPP $CPPFLAGS'
9741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743ac_compiler_gnu=$ac_cv_c_compiler_gnu
9744
9745
9746{ echo "$as_me:$LINENO: checking for shl_load" >&5
9747echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9748if test "${ac_cv_func_shl_load+set}" = set; then
9749  echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751  cat >conftest.$ac_ext <<_ACEOF
9752/* confdefs.h.  */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
9756/* end confdefs.h.  */
9757/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9759#define shl_load innocuous_shl_load
9760
9761/* System header to define __stub macros and hopefully few prototypes,
9762    which can conflict with char shl_load (); below.
9763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764    <limits.h> exists even on freestanding compilers.  */
9765
9766#ifdef __STDC__
9767# include <limits.h>
9768#else
9769# include <assert.h>
9770#endif
9771
9772#undef shl_load
9773
9774/* Override any GCC internal prototype to avoid an error.
9775   Use char because int might match the return type of a GCC
9776   builtin and then its argument prototype would still apply.  */
9777#ifdef __cplusplus
9778extern "C"
9779#endif
9780char shl_load ();
9781/* The GNU C library defines this for functions which it implements
9782    to always fail with ENOSYS.  Some functions are actually named
9783    something starting with __ and the normal name is an alias.  */
9784#if defined __stub_shl_load || defined __stub___shl_load
9785choke me
9786#endif
9787
9788int
9789main ()
9790{
9791return shl_load ();
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796rm -f conftest.$ac_objext conftest$ac_exeext
9797if { (ac_try="$ac_link"
9798case "(($ac_try" in
9799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800  *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803  (eval "$ac_link") 2>conftest.er1
9804  ac_status=$?
9805  grep -v '^ *+' conftest.er1 >conftest.err
9806  rm -f conftest.er1
9807  cat conftest.err >&5
9808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809  (exit $ac_status); } &&
9810	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811  { (case "(($ac_try" in
9812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813  *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816  (eval "$ac_try") 2>&5
9817  ac_status=$?
9818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819  (exit $ac_status); }; } &&
9820	 { ac_try='test -s conftest$ac_exeext'
9821  { (case "(($ac_try" in
9822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823  *) ac_try_echo=$ac_try;;
9824esac
9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826  (eval "$ac_try") 2>&5
9827  ac_status=$?
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); }; }; then
9830  ac_cv_func_shl_load=yes
9831else
9832  echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835	ac_cv_func_shl_load=no
9836fi
9837
9838rm -f core conftest.err conftest.$ac_objext \
9839      conftest$ac_exeext conftest.$ac_ext
9840fi
9841{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9842echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9843if test $ac_cv_func_shl_load = yes; then
9844
9845cat >>confdefs.h <<\_ACEOF
9846#define HAVE_SHL_LOAD 1
9847_ACEOF
9848
9849else
9850  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9851echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9852if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9853  echo $ECHO_N "(cached) $ECHO_C" >&6
9854else
9855  ac_check_lib_save_LIBS=$LIBS
9856LIBS="-ldld  $LIBS"
9857cat >conftest.$ac_ext <<_ACEOF
9858/* confdefs.h.  */
9859_ACEOF
9860cat confdefs.h >>conftest.$ac_ext
9861cat >>conftest.$ac_ext <<_ACEOF
9862/* end confdefs.h.  */
9863
9864/* Override any GCC internal prototype to avoid an error.
9865   Use char because int might match the return type of a GCC
9866   builtin and then its argument prototype would still apply.  */
9867#ifdef __cplusplus
9868extern "C"
9869#endif
9870char shl_load ();
9871int
9872main ()
9873{
9874return shl_load ();
9875  ;
9876  return 0;
9877}
9878_ACEOF
9879rm -f conftest.$ac_objext conftest$ac_exeext
9880if { (ac_try="$ac_link"
9881case "(($ac_try" in
9882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883  *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886  (eval "$ac_link") 2>conftest.er1
9887  ac_status=$?
9888  grep -v '^ *+' conftest.er1 >conftest.err
9889  rm -f conftest.er1
9890  cat conftest.err >&5
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); } &&
9893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894  { (case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899  (eval "$ac_try") 2>&5
9900  ac_status=$?
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); }; } &&
9903	 { ac_try='test -s conftest$ac_exeext'
9904  { (case "(($ac_try" in
9905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906  *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909  (eval "$ac_try") 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); }; }; then
9913  ac_cv_lib_dld_shl_load=yes
9914else
9915  echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918	ac_cv_lib_dld_shl_load=no
9919fi
9920
9921rm -f core conftest.err conftest.$ac_objext \
9922      conftest$ac_exeext conftest.$ac_ext
9923LIBS=$ac_check_lib_save_LIBS
9924fi
9925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9926echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9927if test $ac_cv_lib_dld_shl_load = yes; then
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define HAVE_SHL_LOAD 1
9931_ACEOF
9932
9933	LIBADD_DL="$LIBADD_DL -ldld"
9934else
9935  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-ldl  $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h.  */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h.  */
9948
9949/* Override any GCC internal prototype to avoid an error.
9950   Use char because int might match the return type of a GCC
9951   builtin and then its argument prototype would still apply.  */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955char dlopen ();
9956int
9957main ()
9958{
9959return dlopen ();
9960  ;
9961  return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968  *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971  (eval "$ac_link") 2>conftest.er1
9972  ac_status=$?
9973  grep -v '^ *+' conftest.er1 >conftest.err
9974  rm -f conftest.er1
9975  cat conftest.err >&5
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); } &&
9978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979  { (case "(($ac_try" in
9980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981  *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984  (eval "$ac_try") 2>&5
9985  ac_status=$?
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); }; } &&
9988	 { ac_try='test -s conftest$ac_exeext'
9989  { (case "(($ac_try" in
9990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991  *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994  (eval "$ac_try") 2>&5
9995  ac_status=$?
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); }; }; then
9998  ac_cv_lib_dl_dlopen=yes
9999else
10000  echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003	ac_cv_lib_dl_dlopen=no
10004fi
10005
10006rm -f core conftest.err conftest.$ac_objext \
10007      conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
10010{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012if test $ac_cv_lib_dl_dlopen = yes; then
10013
10014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_LIBDL 1
10016_ACEOF
10017
10018	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10019else
10020  cat >conftest.$ac_ext <<_ACEOF
10021/* confdefs.h.  */
10022_ACEOF
10023cat confdefs.h >>conftest.$ac_ext
10024cat >>conftest.$ac_ext <<_ACEOF
10025/* end confdefs.h.  */
10026#if HAVE_DLFCN_H
10027#  include <dlfcn.h>
10028#endif
10029
10030int
10031main ()
10032{
10033dlopen(0, 0);
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038rm -f conftest.$ac_objext conftest$ac_exeext
10039if { (ac_try="$ac_link"
10040case "(($ac_try" in
10041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042  *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045  (eval "$ac_link") 2>conftest.er1
10046  ac_status=$?
10047  grep -v '^ *+' conftest.er1 >conftest.err
10048  rm -f conftest.er1
10049  cat conftest.err >&5
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } &&
10052	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053  { (case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_try") 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062	 { ac_try='test -s conftest$ac_exeext'
10063  { (case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068  (eval "$ac_try") 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; }; then
10072
10073cat >>confdefs.h <<\_ACEOF
10074#define HAVE_LIBDL 1
10075_ACEOF
10076 libltdl_cv_func_dlopen="yes"
10077else
10078  echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10082echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10083if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10084  echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086  ac_check_lib_save_LIBS=$LIBS
10087LIBS="-lsvld  $LIBS"
10088cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h.  */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h.  */
10094
10095/* Override any GCC internal prototype to avoid an error.
10096   Use char because int might match the return type of a GCC
10097   builtin and then its argument prototype would still apply.  */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101char dlopen ();
10102int
10103main ()
10104{
10105return dlopen ();
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext conftest$ac_exeext
10111if { (ac_try="$ac_link"
10112case "(($ac_try" in
10113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114  *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117  (eval "$ac_link") 2>conftest.er1
10118  ac_status=$?
10119  grep -v '^ *+' conftest.er1 >conftest.err
10120  rm -f conftest.er1
10121  cat conftest.err >&5
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); } &&
10124	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125  { (case "(($ac_try" in
10126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127  *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130  (eval "$ac_try") 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; } &&
10134	 { ac_try='test -s conftest$ac_exeext'
10135  { (case "(($ac_try" in
10136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137  *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140  (eval "$ac_try") 2>&5
10141  ac_status=$?
10142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143  (exit $ac_status); }; }; then
10144  ac_cv_lib_svld_dlopen=yes
10145else
10146  echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149	ac_cv_lib_svld_dlopen=no
10150fi
10151
10152rm -f core conftest.err conftest.$ac_objext \
10153      conftest$ac_exeext conftest.$ac_ext
10154LIBS=$ac_check_lib_save_LIBS
10155fi
10156{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10157echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10158if test $ac_cv_lib_svld_dlopen = yes; then
10159
10160cat >>confdefs.h <<\_ACEOF
10161#define HAVE_LIBDL 1
10162_ACEOF
10163
10164	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10165else
10166  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10167echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10168if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10169  echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171  ac_check_lib_save_LIBS=$LIBS
10172LIBS="-ldld  $LIBS"
10173cat >conftest.$ac_ext <<_ACEOF
10174/* confdefs.h.  */
10175_ACEOF
10176cat confdefs.h >>conftest.$ac_ext
10177cat >>conftest.$ac_ext <<_ACEOF
10178/* end confdefs.h.  */
10179
10180/* Override any GCC internal prototype to avoid an error.
10181   Use char because int might match the return type of a GCC
10182   builtin and then its argument prototype would still apply.  */
10183#ifdef __cplusplus
10184extern "C"
10185#endif
10186char dld_link ();
10187int
10188main ()
10189{
10190return dld_link ();
10191  ;
10192  return 0;
10193}
10194_ACEOF
10195rm -f conftest.$ac_objext conftest$ac_exeext
10196if { (ac_try="$ac_link"
10197case "(($ac_try" in
10198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199  *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202  (eval "$ac_link") 2>conftest.er1
10203  ac_status=$?
10204  grep -v '^ *+' conftest.er1 >conftest.err
10205  rm -f conftest.er1
10206  cat conftest.err >&5
10207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208  (exit $ac_status); } &&
10209	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210  { (case "(($ac_try" in
10211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212  *) ac_try_echo=$ac_try;;
10213esac
10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215  (eval "$ac_try") 2>&5
10216  ac_status=$?
10217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218  (exit $ac_status); }; } &&
10219	 { ac_try='test -s conftest$ac_exeext'
10220  { (case "(($ac_try" in
10221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222  *) ac_try_echo=$ac_try;;
10223esac
10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225  (eval "$ac_try") 2>&5
10226  ac_status=$?
10227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); }; }; then
10229  ac_cv_lib_dld_dld_link=yes
10230else
10231  echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234	ac_cv_lib_dld_dld_link=no
10235fi
10236
10237rm -f core conftest.err conftest.$ac_objext \
10238      conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
10241{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243if test $ac_cv_lib_dld_dld_link = yes; then
10244
10245cat >>confdefs.h <<\_ACEOF
10246#define HAVE_DLD 1
10247_ACEOF
10248
10249	 	LIBADD_DL="$LIBADD_DL -ldld"
10250else
10251  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10252echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10253if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10254  echo $ECHO_N "(cached) $ECHO_C" >&6
10255else
10256  cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10263   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10264#define _dyld_func_lookup innocuous__dyld_func_lookup
10265
10266/* System header to define __stub macros and hopefully few prototypes,
10267    which can conflict with char _dyld_func_lookup (); below.
10268    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269    <limits.h> exists even on freestanding compilers.  */
10270
10271#ifdef __STDC__
10272# include <limits.h>
10273#else
10274# include <assert.h>
10275#endif
10276
10277#undef _dyld_func_lookup
10278
10279/* Override any GCC internal prototype to avoid an error.
10280   Use char because int might match the return type of a GCC
10281   builtin and then its argument prototype would still apply.  */
10282#ifdef __cplusplus
10283extern "C"
10284#endif
10285char _dyld_func_lookup ();
10286/* The GNU C library defines this for functions which it implements
10287    to always fail with ENOSYS.  Some functions are actually named
10288    something starting with __ and the normal name is an alias.  */
10289#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10290choke me
10291#endif
10292
10293int
10294main ()
10295{
10296return _dyld_func_lookup ();
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301rm -f conftest.$ac_objext conftest$ac_exeext
10302if { (ac_try="$ac_link"
10303case "(($ac_try" in
10304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305  *) ac_try_echo=$ac_try;;
10306esac
10307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308  (eval "$ac_link") 2>conftest.er1
10309  ac_status=$?
10310  grep -v '^ *+' conftest.er1 >conftest.err
10311  rm -f conftest.er1
10312  cat conftest.err >&5
10313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); } &&
10315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10316  { (case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_try") 2>&5
10322  ac_status=$?
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); }; } &&
10325	 { ac_try='test -s conftest$ac_exeext'
10326  { (case "(($ac_try" in
10327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328  *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331  (eval "$ac_try") 2>&5
10332  ac_status=$?
10333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); }; }; then
10335  ac_cv_func__dyld_func_lookup=yes
10336else
10337  echo "$as_me: failed program was:" >&5
10338sed 's/^/| /' conftest.$ac_ext >&5
10339
10340	ac_cv_func__dyld_func_lookup=no
10341fi
10342
10343rm -f core conftest.err conftest.$ac_objext \
10344      conftest$ac_exeext conftest.$ac_ext
10345fi
10346{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10347echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10348if test $ac_cv_func__dyld_func_lookup = yes; then
10349
10350cat >>confdefs.h <<\_ACEOF
10351#define HAVE_DYLD 1
10352_ACEOF
10353
10354fi
10355
10356
10357fi
10358
10359
10360fi
10361
10362
10363fi
10364
10365rm -f core conftest.err conftest.$ac_objext \
10366      conftest$ac_exeext conftest.$ac_ext
10367
10368fi
10369
10370
10371fi
10372
10373
10374fi
10375
10376
10377if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10378then
10379  lt_save_LIBS="$LIBS"
10380  LIBS="$LIBS $LIBADD_DL"
10381
10382for ac_func in dlerror
10383do
10384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10388  echo $ECHO_N "(cached) $ECHO_C" >&6
10389else
10390  cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h.  */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h.  */
10396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10398#define $ac_func innocuous_$ac_func
10399
10400/* System header to define __stub macros and hopefully few prototypes,
10401    which can conflict with char $ac_func (); below.
10402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403    <limits.h> exists even on freestanding compilers.  */
10404
10405#ifdef __STDC__
10406# include <limits.h>
10407#else
10408# include <assert.h>
10409#endif
10410
10411#undef $ac_func
10412
10413/* Override any GCC internal prototype to avoid an error.
10414   Use char because int might match the return type of a GCC
10415   builtin and then its argument prototype would still apply.  */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419char $ac_func ();
10420/* The GNU C library defines this for functions which it implements
10421    to always fail with ENOSYS.  Some functions are actually named
10422    something starting with __ and the normal name is an alias.  */
10423#if defined __stub_$ac_func || defined __stub___$ac_func
10424choke me
10425#endif
10426
10427int
10428main ()
10429{
10430return $ac_func ();
10431  ;
10432  return 0;
10433}
10434_ACEOF
10435rm -f conftest.$ac_objext conftest$ac_exeext
10436if { (ac_try="$ac_link"
10437case "(($ac_try" in
10438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439  *) ac_try_echo=$ac_try;;
10440esac
10441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442  (eval "$ac_link") 2>conftest.er1
10443  ac_status=$?
10444  grep -v '^ *+' conftest.er1 >conftest.err
10445  rm -f conftest.er1
10446  cat conftest.err >&5
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); } &&
10449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450  { (case "(($ac_try" in
10451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452  *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455  (eval "$ac_try") 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }; } &&
10459	 { ac_try='test -s conftest$ac_exeext'
10460  { (case "(($ac_try" in
10461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462  *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465  (eval "$ac_try") 2>&5
10466  ac_status=$?
10467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468  (exit $ac_status); }; }; then
10469  eval "$as_ac_var=yes"
10470else
10471  echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474	eval "$as_ac_var=no"
10475fi
10476
10477rm -f core conftest.err conftest.$ac_objext \
10478      conftest$ac_exeext conftest.$ac_ext
10479fi
10480ac_res=`eval echo '${'$as_ac_var'}'`
10481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10482echo "${ECHO_T}$ac_res" >&6; }
10483if test `eval echo '${'$as_ac_var'}'` = yes; then
10484  cat >>confdefs.h <<_ACEOF
10485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486_ACEOF
10487
10488fi
10489done
10490
10491  LIBS="$lt_save_LIBS"
10492fi
10493ac_ext=c
10494ac_cpp='$CPP $CPPFLAGS'
10495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498
10499
10500
10501{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10502echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10503if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10504  echo $ECHO_N "(cached) $ECHO_C" >&6
10505else
10506  ac_cv_sys_symbol_underscore=no
10507  cat > conftest.$ac_ext <<EOF
10508void nm_test_func(){}
10509int main(){nm_test_func;return 0;}
10510EOF
10511  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512  (eval $ac_compile) 2>&5
10513  ac_status=$?
10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); }; then
10516    # Now try to grab the symbols.
10517    ac_nlist=conftest.nm
10518    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10519  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10520  ac_status=$?
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); } && test -s "$ac_nlist"; then
10523      # See whether the symbols have a leading underscore.
10524      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10525        ac_cv_sys_symbol_underscore=yes
10526      else
10527        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10528	  :
10529        else
10530	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10531        fi
10532      fi
10533    else
10534      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10535    fi
10536  else
10537    echo "configure: failed program was:" >&5
10538    cat conftest.c >&5
10539  fi
10540  rm -rf conftest*
10541
10542fi
10543{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10544echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10545
10546
10547if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10548  if test x"$libltdl_cv_func_dlopen" = xyes ||
10549     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10550	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10551echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10552if test "${libltdl_cv_need_uscore+set}" = set; then
10553  echo $ECHO_N "(cached) $ECHO_C" >&6
10554else
10555  libltdl_cv_need_uscore=unknown
10556          save_LIBS="$LIBS"
10557          LIBS="$LIBS $LIBADD_DL"
10558	  if test "$cross_compiling" = yes; then :
10559  libltdl_cv_need_uscore=cross
10560else
10561  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10562  lt_status=$lt_dlunknown
10563  cat > conftest.$ac_ext <<EOF
10564#line 10564 "configure"
10565#include "confdefs.h"
10566
10567#if HAVE_DLFCN_H
10568#include <dlfcn.h>
10569#endif
10570
10571#include <stdio.h>
10572
10573#ifdef RTLD_GLOBAL
10574#  define LT_DLGLOBAL		RTLD_GLOBAL
10575#else
10576#  ifdef DL_GLOBAL
10577#    define LT_DLGLOBAL		DL_GLOBAL
10578#  else
10579#    define LT_DLGLOBAL		0
10580#  endif
10581#endif
10582
10583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10584   find out it does not work in some platform. */
10585#ifndef LT_DLLAZY_OR_NOW
10586#  ifdef RTLD_LAZY
10587#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10588#  else
10589#    ifdef DL_LAZY
10590#      define LT_DLLAZY_OR_NOW		DL_LAZY
10591#    else
10592#      ifdef RTLD_NOW
10593#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10594#      else
10595#        ifdef DL_NOW
10596#          define LT_DLLAZY_OR_NOW	DL_NOW
10597#        else
10598#          define LT_DLLAZY_OR_NOW	0
10599#        endif
10600#      endif
10601#    endif
10602#  endif
10603#endif
10604
10605#ifdef __cplusplus
10606extern "C" void exit (int);
10607#endif
10608
10609void fnord() { int i=42;}
10610int main ()
10611{
10612  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10613  int status = $lt_dlunknown;
10614
10615  if (self)
10616    {
10617      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10618      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10619      /* dlclose (self); */
10620    }
10621  else
10622    puts (dlerror ());
10623
10624    exit (status);
10625}
10626EOF
10627  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628  (eval $ac_link) 2>&5
10629  ac_status=$?
10630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10632    (./conftest; exit; ) >&5 2>/dev/null
10633    lt_status=$?
10634    case x$lt_status in
10635      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10636      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10637      x$lt_dlunknown|x*)  ;;
10638    esac
10639  else :
10640    # compilation failed
10641
10642  fi
10643fi
10644rm -fr conftest*
10645
10646	  LIBS="$save_LIBS"
10647
10648fi
10649{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10650echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10651  fi
10652fi
10653
10654if test x"$libltdl_cv_need_uscore" = xyes; then
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define NEED_USCORE 1
10658_ACEOF
10659
10660fi
10661
10662
10663{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10664echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10665if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10666  echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668  # PORTME does your system automatically load deplibs for dlopen?
10669  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10670  # For now, we just catch OSes we know something about -- in the
10671  # future, we'll try test this programmatically.
10672  libltdl_cv_sys_dlopen_deplibs=unknown
10673  case "$host_os" in
10674  aix3*|aix4.1.*|aix4.2.*)
10675    # Unknown whether this is true for these versions of AIX, but
10676    # we want this `case' here to explicitly catch those versions.
10677    libltdl_cv_sys_dlopen_deplibs=unknown
10678    ;;
10679  aix[45]*)
10680    libltdl_cv_sys_dlopen_deplibs=yes
10681    ;;
10682  darwin*)
10683    # Assuming the user has installed a libdl from somewhere, this is true
10684    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10685    libltdl_cv_sys_dlopen_deplibs=yes
10686    ;;
10687  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10688    # GNU and its variants, using gnu ld.so (Glibc)
10689    libltdl_cv_sys_dlopen_deplibs=yes
10690    ;;
10691  hpux10*|hpux11*)
10692    libltdl_cv_sys_dlopen_deplibs=yes
10693    ;;
10694  interix*)
10695    libltdl_cv_sys_dlopen_deplibs=yes
10696    ;;
10697  irix[12345]*|irix6.[01]*)
10698    # Catch all versions of IRIX before 6.2, and indicate that we don't
10699    # know how it worked for any of those versions.
10700    libltdl_cv_sys_dlopen_deplibs=unknown
10701    ;;
10702  irix*)
10703    # The case above catches anything before 6.2, and it's known that
10704    # at 6.2 and later dlopen does load deplibs.
10705    libltdl_cv_sys_dlopen_deplibs=yes
10706    ;;
10707  netbsd*)
10708    libltdl_cv_sys_dlopen_deplibs=yes
10709    ;;
10710  openbsd*)
10711    libltdl_cv_sys_dlopen_deplibs=yes
10712    ;;
10713  osf[1234]*)
10714    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10715    # it did *not* use an RPATH in a shared library to find objects the
10716    # library depends on, so we explicitly say `no'.
10717    libltdl_cv_sys_dlopen_deplibs=no
10718    ;;
10719  osf5.0|osf5.0a|osf5.1)
10720    # dlopen *does* load deplibs and with the right loader patch applied
10721    # it even uses RPATH in a shared library to search for shared objects
10722    # that the library depends on, but there's no easy way to know if that
10723    # patch is installed.  Since this is the case, all we can really
10724    # say is unknown -- it depends on the patch being installed.  If
10725    # it is, this changes to `yes'.  Without it, it would be `no'.
10726    libltdl_cv_sys_dlopen_deplibs=unknown
10727    ;;
10728  osf*)
10729    # the two cases above should catch all versions of osf <= 5.1.  Read
10730    # the comments above for what we know about them.
10731    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10732    # is used to find them so we can finally say `yes'.
10733    libltdl_cv_sys_dlopen_deplibs=yes
10734    ;;
10735  solaris*)
10736    libltdl_cv_sys_dlopen_deplibs=yes
10737    ;;
10738  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10739    libltdl_cv_sys_dlopen_deplibs=yes
10740    ;;
10741  esac
10742
10743fi
10744{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10745echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10746if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define LTDL_DLOPEN_DEPLIBS 1
10750_ACEOF
10751
10752fi
10753
10754
10755for ac_header in argz.h
10756do
10757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762  echo $ECHO_N "(cached) $ECHO_C" >&6
10763fi
10764ac_res=`eval echo '${'$as_ac_Header'}'`
10765	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10766echo "${ECHO_T}$ac_res" >&6; }
10767else
10768  # Is the header compilable?
10769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10771cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h.  */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h.  */
10777$ac_includes_default
10778#include <$ac_header>
10779_ACEOF
10780rm -f conftest.$ac_objext
10781if { (ac_try="$ac_compile"
10782case "(($ac_try" in
10783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784  *) ac_try_echo=$ac_try;;
10785esac
10786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787  (eval "$ac_compile") 2>conftest.er1
10788  ac_status=$?
10789  grep -v '^ *+' conftest.er1 >conftest.err
10790  rm -f conftest.er1
10791  cat conftest.err >&5
10792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); } &&
10794	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10795  { (case "(($ac_try" in
10796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797  *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800  (eval "$ac_try") 2>&5
10801  ac_status=$?
10802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803  (exit $ac_status); }; } &&
10804	 { ac_try='test -s conftest.$ac_objext'
10805  { (case "(($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_try") 2>&5
10811  ac_status=$?
10812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813  (exit $ac_status); }; }; then
10814  ac_header_compiler=yes
10815else
10816  echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819	ac_header_compiler=no
10820fi
10821
10822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10824echo "${ECHO_T}$ac_header_compiler" >&6; }
10825
10826# Is the header present?
10827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10829cat >conftest.$ac_ext <<_ACEOF
10830/* confdefs.h.  */
10831_ACEOF
10832cat confdefs.h >>conftest.$ac_ext
10833cat >>conftest.$ac_ext <<_ACEOF
10834/* end confdefs.h.  */
10835#include <$ac_header>
10836_ACEOF
10837if { (ac_try="$ac_cpp conftest.$ac_ext"
10838case "(($ac_try" in
10839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840  *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10844  ac_status=$?
10845  grep -v '^ *+' conftest.er1 >conftest.err
10846  rm -f conftest.er1
10847  cat conftest.err >&5
10848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849  (exit $ac_status); } >/dev/null; then
10850  if test -s conftest.err; then
10851    ac_cpp_err=$ac_c_preproc_warn_flag
10852    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10853  else
10854    ac_cpp_err=
10855  fi
10856else
10857  ac_cpp_err=yes
10858fi
10859if test -z "$ac_cpp_err"; then
10860  ac_header_preproc=yes
10861else
10862  echo "$as_me: failed program was:" >&5
10863sed 's/^/| /' conftest.$ac_ext >&5
10864
10865  ac_header_preproc=no
10866fi
10867
10868rm -f conftest.err conftest.$ac_ext
10869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870echo "${ECHO_T}$ac_header_preproc" >&6; }
10871
10872# So?  What about this header?
10873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874  yes:no: )
10875    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879    ac_header_preproc=yes
10880    ;;
10881  no:yes:* )
10882    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10885echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10886    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10889echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10894    ( cat <<\_ASBOX
10895## ------------------------------------ ##
10896## Report this to http://llvm.org/bugs/ ##
10897## ------------------------------------ ##
10898_ASBOX
10899     ) | sed "s/^/$as_me: WARNING:     /" >&2
10900    ;;
10901esac
10902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905  echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907  eval "$as_ac_Header=\$ac_header_preproc"
10908fi
10909ac_res=`eval echo '${'$as_ac_Header'}'`
10910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10911echo "${ECHO_T}$ac_res" >&6; }
10912
10913fi
10914if test `eval echo '${'$as_ac_Header'}'` = yes; then
10915  cat >>confdefs.h <<_ACEOF
10916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10917_ACEOF
10918
10919fi
10920
10921done
10922
10923
10924{ echo "$as_me:$LINENO: checking for error_t" >&5
10925echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10926if test "${ac_cv_type_error_t+set}" = set; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929  cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h.  */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h.  */
10935#if HAVE_ARGZ_H
10936#  include <argz.h>
10937#endif
10938
10939typedef error_t ac__type_new_;
10940int
10941main ()
10942{
10943if ((ac__type_new_ *) 0)
10944  return 0;
10945if (sizeof (ac__type_new_))
10946  return 0;
10947  ;
10948  return 0;
10949}
10950_ACEOF
10951rm -f conftest.$ac_objext
10952if { (ac_try="$ac_compile"
10953case "(($ac_try" in
10954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955  *) ac_try_echo=$ac_try;;
10956esac
10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958  (eval "$ac_compile") 2>conftest.er1
10959  ac_status=$?
10960  grep -v '^ *+' conftest.er1 >conftest.err
10961  rm -f conftest.er1
10962  cat conftest.err >&5
10963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964  (exit $ac_status); } &&
10965	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966  { (case "(($ac_try" in
10967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968  *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971  (eval "$ac_try") 2>&5
10972  ac_status=$?
10973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974  (exit $ac_status); }; } &&
10975	 { ac_try='test -s conftest.$ac_objext'
10976  { (case "(($ac_try" in
10977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978  *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981  (eval "$ac_try") 2>&5
10982  ac_status=$?
10983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984  (exit $ac_status); }; }; then
10985  ac_cv_type_error_t=yes
10986else
10987  echo "$as_me: failed program was:" >&5
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
10990	ac_cv_type_error_t=no
10991fi
10992
10993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994fi
10995{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10996echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10997if test $ac_cv_type_error_t = yes; then
10998
10999cat >>confdefs.h <<_ACEOF
11000#define HAVE_ERROR_T 1
11001_ACEOF
11002
11003
11004else
11005
11006cat >>confdefs.h <<\_ACEOF
11007#define error_t int
11008_ACEOF
11009
11010fi
11011
11012
11013
11014
11015
11016
11017
11018for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11019do
11020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11024  echo $ECHO_N "(cached) $ECHO_C" >&6
11025else
11026  cat >conftest.$ac_ext <<_ACEOF
11027/* confdefs.h.  */
11028_ACEOF
11029cat confdefs.h >>conftest.$ac_ext
11030cat >>conftest.$ac_ext <<_ACEOF
11031/* end confdefs.h.  */
11032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11034#define $ac_func innocuous_$ac_func
11035
11036/* System header to define __stub macros and hopefully few prototypes,
11037    which can conflict with char $ac_func (); below.
11038    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039    <limits.h> exists even on freestanding compilers.  */
11040
11041#ifdef __STDC__
11042# include <limits.h>
11043#else
11044# include <assert.h>
11045#endif
11046
11047#undef $ac_func
11048
11049/* Override any GCC internal prototype to avoid an error.
11050   Use char because int might match the return type of a GCC
11051   builtin and then its argument prototype would still apply.  */
11052#ifdef __cplusplus
11053extern "C"
11054#endif
11055char $ac_func ();
11056/* The GNU C library defines this for functions which it implements
11057    to always fail with ENOSYS.  Some functions are actually named
11058    something starting with __ and the normal name is an alias.  */
11059#if defined __stub_$ac_func || defined __stub___$ac_func
11060choke me
11061#endif
11062
11063int
11064main ()
11065{
11066return $ac_func ();
11067  ;
11068  return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext conftest$ac_exeext
11072if { (ac_try="$ac_link"
11073case "(($ac_try" in
11074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075  *) ac_try_echo=$ac_try;;
11076esac
11077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078  (eval "$ac_link") 2>conftest.er1
11079  ac_status=$?
11080  grep -v '^ *+' conftest.er1 >conftest.err
11081  rm -f conftest.er1
11082  cat conftest.err >&5
11083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084  (exit $ac_status); } &&
11085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086  { (case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091  (eval "$ac_try") 2>&5
11092  ac_status=$?
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); }; } &&
11095	 { ac_try='test -s conftest$ac_exeext'
11096  { (case "(($ac_try" in
11097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098  *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101  (eval "$ac_try") 2>&5
11102  ac_status=$?
11103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104  (exit $ac_status); }; }; then
11105  eval "$as_ac_var=yes"
11106else
11107  echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110	eval "$as_ac_var=no"
11111fi
11112
11113rm -f core conftest.err conftest.$ac_objext \
11114      conftest$ac_exeext conftest.$ac_ext
11115fi
11116ac_res=`eval echo '${'$as_ac_var'}'`
11117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11118echo "${ECHO_T}$ac_res" >&6; }
11119if test `eval echo '${'$as_ac_var'}'` = yes; then
11120  cat >>confdefs.h <<_ACEOF
11121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122_ACEOF
11123
11124fi
11125done
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149for ac_header in errno.h malloc.h memory.h unistd.h
11150do
11151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156  echo $ECHO_N "(cached) $ECHO_C" >&6
11157fi
11158ac_res=`eval echo '${'$as_ac_Header'}'`
11159	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11160echo "${ECHO_T}$ac_res" >&6; }
11161else
11162  # Is the header compilable?
11163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h.  */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h.  */
11171$ac_includes_default
11172#include <$ac_header>
11173_ACEOF
11174rm -f conftest.$ac_objext
11175if { (ac_try="$ac_compile"
11176case "(($ac_try" in
11177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178  *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181  (eval "$ac_compile") 2>conftest.er1
11182  ac_status=$?
11183  grep -v '^ *+' conftest.er1 >conftest.err
11184  rm -f conftest.er1
11185  cat conftest.err >&5
11186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187  (exit $ac_status); } &&
11188	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11189  { (case "(($ac_try" in
11190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191  *) ac_try_echo=$ac_try;;
11192esac
11193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194  (eval "$ac_try") 2>&5
11195  ac_status=$?
11196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197  (exit $ac_status); }; } &&
11198	 { ac_try='test -s conftest.$ac_objext'
11199  { (case "(($ac_try" in
11200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201  *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204  (eval "$ac_try") 2>&5
11205  ac_status=$?
11206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207  (exit $ac_status); }; }; then
11208  ac_header_compiler=yes
11209else
11210  echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213	ac_header_compiler=no
11214fi
11215
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11218echo "${ECHO_T}$ac_header_compiler" >&6; }
11219
11220# Is the header present?
11221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11223cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h.  */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h.  */
11229#include <$ac_header>
11230_ACEOF
11231if { (ac_try="$ac_cpp conftest.$ac_ext"
11232case "(($ac_try" in
11233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234  *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11238  ac_status=$?
11239  grep -v '^ *+' conftest.er1 >conftest.err
11240  rm -f conftest.er1
11241  cat conftest.err >&5
11242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243  (exit $ac_status); } >/dev/null; then
11244  if test -s conftest.err; then
11245    ac_cpp_err=$ac_c_preproc_warn_flag
11246    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11247  else
11248    ac_cpp_err=
11249  fi
11250else
11251  ac_cpp_err=yes
11252fi
11253if test -z "$ac_cpp_err"; then
11254  ac_header_preproc=yes
11255else
11256  echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259  ac_header_preproc=no
11260fi
11261
11262rm -f conftest.err conftest.$ac_ext
11263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264echo "${ECHO_T}$ac_header_preproc" >&6; }
11265
11266# So?  What about this header?
11267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11268  yes:no: )
11269    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11273    ac_header_preproc=yes
11274    ;;
11275  no:yes:* )
11276    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11278    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11279echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11280    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11282    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11283echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11286    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11288    ( cat <<\_ASBOX
11289## ------------------------------------ ##
11290## Report this to http://llvm.org/bugs/ ##
11291## ------------------------------------ ##
11292_ASBOX
11293     ) | sed "s/^/$as_me: WARNING:     /" >&2
11294    ;;
11295esac
11296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299  echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301  eval "$as_ac_Header=\$ac_header_preproc"
11302fi
11303ac_res=`eval echo '${'$as_ac_Header'}'`
11304	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11305echo "${ECHO_T}$ac_res" >&6; }
11306
11307fi
11308if test `eval echo '${'$as_ac_Header'}'` = yes; then
11309  cat >>confdefs.h <<_ACEOF
11310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11311_ACEOF
11312
11313fi
11314
11315done
11316
11317
11318for ac_header in mach-o/dyld.h
11319do
11320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325  echo $ECHO_N "(cached) $ECHO_C" >&6
11326fi
11327ac_res=`eval echo '${'$as_ac_Header'}'`
11328	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11329echo "${ECHO_T}$ac_res" >&6; }
11330else
11331  # Is the header compilable?
11332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11334cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h.  */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h.  */
11340$ac_includes_default
11341#include <$ac_header>
11342_ACEOF
11343rm -f conftest.$ac_objext
11344if { (ac_try="$ac_compile"
11345case "(($ac_try" in
11346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347  *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350  (eval "$ac_compile") 2>conftest.er1
11351  ac_status=$?
11352  grep -v '^ *+' conftest.er1 >conftest.err
11353  rm -f conftest.er1
11354  cat conftest.err >&5
11355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356  (exit $ac_status); } &&
11357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358  { (case "(($ac_try" in
11359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360  *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363  (eval "$ac_try") 2>&5
11364  ac_status=$?
11365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366  (exit $ac_status); }; } &&
11367	 { ac_try='test -s conftest.$ac_objext'
11368  { (case "(($ac_try" in
11369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370  *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373  (eval "$ac_try") 2>&5
11374  ac_status=$?
11375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376  (exit $ac_status); }; }; then
11377  ac_header_compiler=yes
11378else
11379  echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382	ac_header_compiler=no
11383fi
11384
11385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387echo "${ECHO_T}$ac_header_compiler" >&6; }
11388
11389# Is the header present?
11390{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392cat >conftest.$ac_ext <<_ACEOF
11393/* confdefs.h.  */
11394_ACEOF
11395cat confdefs.h >>conftest.$ac_ext
11396cat >>conftest.$ac_ext <<_ACEOF
11397/* end confdefs.h.  */
11398#include <$ac_header>
11399_ACEOF
11400if { (ac_try="$ac_cpp conftest.$ac_ext"
11401case "(($ac_try" in
11402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403  *) ac_try_echo=$ac_try;;
11404esac
11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11407  ac_status=$?
11408  grep -v '^ *+' conftest.er1 >conftest.err
11409  rm -f conftest.er1
11410  cat conftest.err >&5
11411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412  (exit $ac_status); } >/dev/null; then
11413  if test -s conftest.err; then
11414    ac_cpp_err=$ac_c_preproc_warn_flag
11415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416  else
11417    ac_cpp_err=
11418  fi
11419else
11420  ac_cpp_err=yes
11421fi
11422if test -z "$ac_cpp_err"; then
11423  ac_header_preproc=yes
11424else
11425  echo "$as_me: failed program was:" >&5
11426sed 's/^/| /' conftest.$ac_ext >&5
11427
11428  ac_header_preproc=no
11429fi
11430
11431rm -f conftest.err conftest.$ac_ext
11432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433echo "${ECHO_T}$ac_header_preproc" >&6; }
11434
11435# So?  What about this header?
11436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437  yes:no: )
11438    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442    ac_header_preproc=yes
11443    ;;
11444  no:yes:* )
11445    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11448echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11449    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11452echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457    ( cat <<\_ASBOX
11458## ------------------------------------ ##
11459## Report this to http://llvm.org/bugs/ ##
11460## ------------------------------------ ##
11461_ASBOX
11462     ) | sed "s/^/$as_me: WARNING:     /" >&2
11463    ;;
11464esac
11465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468  echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470  eval "$as_ac_Header=\$ac_header_preproc"
11471fi
11472ac_res=`eval echo '${'$as_ac_Header'}'`
11473	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11474echo "${ECHO_T}$ac_res" >&6; }
11475
11476fi
11477if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478  cat >>confdefs.h <<_ACEOF
11479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480_ACEOF
11481
11482fi
11483
11484done
11485
11486
11487
11488
11489
11490for ac_func in closedir opendir readdir
11491do
11492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496  echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498  cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h.  */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h.  */
11504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11506#define $ac_func innocuous_$ac_func
11507
11508/* System header to define __stub macros and hopefully few prototypes,
11509    which can conflict with char $ac_func (); below.
11510    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511    <limits.h> exists even on freestanding compilers.  */
11512
11513#ifdef __STDC__
11514# include <limits.h>
11515#else
11516# include <assert.h>
11517#endif
11518
11519#undef $ac_func
11520
11521/* Override any GCC internal prototype to avoid an error.
11522   Use char because int might match the return type of a GCC
11523   builtin and then its argument prototype would still apply.  */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char $ac_func ();
11528/* The GNU C library defines this for functions which it implements
11529    to always fail with ENOSYS.  Some functions are actually named
11530    something starting with __ and the normal name is an alias.  */
11531#if defined __stub_$ac_func || defined __stub___$ac_func
11532choke me
11533#endif
11534
11535int
11536main ()
11537{
11538return $ac_func ();
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext conftest$ac_exeext
11544if { (ac_try="$ac_link"
11545case "(($ac_try" in
11546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547  *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550  (eval "$ac_link") 2>conftest.er1
11551  ac_status=$?
11552  grep -v '^ *+' conftest.er1 >conftest.err
11553  rm -f conftest.er1
11554  cat conftest.err >&5
11555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556  (exit $ac_status); } &&
11557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558  { (case "(($ac_try" in
11559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560  *) ac_try_echo=$ac_try;;
11561esac
11562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563  (eval "$ac_try") 2>&5
11564  ac_status=$?
11565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566  (exit $ac_status); }; } &&
11567	 { ac_try='test -s conftest$ac_exeext'
11568  { (case "(($ac_try" in
11569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570  *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573  (eval "$ac_try") 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); }; }; then
11577  eval "$as_ac_var=yes"
11578else
11579  echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582	eval "$as_ac_var=no"
11583fi
11584
11585rm -f core conftest.err conftest.$ac_objext \
11586      conftest$ac_exeext conftest.$ac_ext
11587fi
11588ac_res=`eval echo '${'$as_ac_var'}'`
11589	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11590echo "${ECHO_T}$ac_res" >&6; }
11591if test `eval echo '${'$as_ac_var'}'` = yes; then
11592  cat >>confdefs.h <<_ACEOF
11593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594_ACEOF
11595
11596fi
11597done
11598
11599
11600
11601{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11602echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11603
11604ICC=no
11605IXX=no
11606case $CC in
11607  icc*|icpc*)
11608    ICC=yes
11609    IXX=yes
11610    ;;
11611   *)
11612    ;;
11613esac
11614
11615if test "$GCC" != "yes" && test "$ICC" != "yes"
11616then
11617  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11618echo "$as_me: error: gcc|icc required but not found" >&2;}
11619   { (exit 1); exit 1; }; }
11620fi
11621
11622if test "$GXX" != "yes" && test "$IXX" != "yes"
11623then
11624  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11625echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11626   { (exit 1); exit 1; }; }
11627fi
11628
11629if test "$GCC" = "yes"
11630then
11631  cat >conftest.$ac_ext <<_ACEOF
11632
11633  /* confdefs.h.  */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h.  */
11638
11639    #if !defined(__GNUC__) || __GNUC__ < 3
11640    #error Unsupported GCC version
11641    #endif
11642
11643
11644_ACEOF
11645rm -f conftest.$ac_objext
11646if { (ac_try="$ac_compile"
11647case "(($ac_try" in
11648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649  *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652  (eval "$ac_compile") 2>conftest.er1
11653  ac_status=$?
11654  grep -v '^ *+' conftest.er1 >conftest.err
11655  rm -f conftest.er1
11656  cat conftest.err >&5
11657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658  (exit $ac_status); } &&
11659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660  { (case "(($ac_try" in
11661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662  *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665  (eval "$ac_try") 2>&5
11666  ac_status=$?
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); }; } &&
11669	 { ac_try='test -s conftest.$ac_objext'
11670  { (case "(($ac_try" in
11671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672  *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675  (eval "$ac_try") 2>&5
11676  ac_status=$?
11677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678  (exit $ac_status); }; }; then
11679  :
11680else
11681  echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11685echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11686   { (exit 1); exit 1; }; }
11687fi
11688
11689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690fi
11691
11692if test -z "$llvm_cv_gnu_make_command"
11693then
11694  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11695echo "$as_me: error: GNU Make required but not found" >&2;}
11696   { (exit 1); exit 1; }; }
11697fi
11698
11699{ echo "$as_me:$LINENO: result: ok" >&5
11700echo "${ECHO_T}ok" >&6; }
11701
11702{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11703echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11704NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11705
11706NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11707
11708COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11709
11710
11711NO_UNINITIALIZED=
11712NO_MAYBE_UNINITIALIZED=
11713if test "$GXX" = "yes"
11714then
11715  NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11716
11717        if test -z "$NO_MAYBE_UNINITIALIZED"
11718  then
11719    NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11720
11721  fi
11722fi
11723{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11724echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11725
11726
11727# Check whether --with-python was given.
11728if test "${with_python+set}" = set; then
11729  withval=$with_python; PYTHON="$withval"
11730fi
11731
11732
11733if test -n "$PYTHON" && test -x "$PYTHON" ; then
11734  { echo "$as_me:$LINENO: checking for python" >&5
11735echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11736  { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11737echo "${ECHO_T}user defined: $with_python" >&6; }
11738else
11739  if test -n "$PYTHON" ; then
11740    { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11741echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11742  fi
11743
11744  # Extract the first word of "python python2 python26", so it can be a program name with args.
11745set dummy python python2 python26; ac_word=$2
11746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11748if test "${ac_cv_path_PYTHON+set}" = set; then
11749  echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751  case $PYTHON in
11752  [\\/]* | ?:[\\/]*)
11753  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11754  ;;
11755  *)
11756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $PATH
11758do
11759  IFS=$as_save_IFS
11760  test -z "$as_dir" && as_dir=.
11761  for ac_exec_ext in '' $ac_executable_extensions; do
11762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11763    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11765    break 2
11766  fi
11767done
11768done
11769IFS=$as_save_IFS
11770
11771  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11772echo "${ECHO_T}not found" >&6; }
11773                { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11774echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11775   { (exit 1); exit 1; }; }"
11776  ;;
11777esac
11778fi
11779PYTHON=$ac_cv_path_PYTHON
11780if test -n "$PYTHON"; then
11781  { echo "$as_me:$LINENO: result: $PYTHON" >&5
11782echo "${ECHO_T}$PYTHON" >&6; }
11783else
11784  { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786fi
11787
11788
11789fi
11790
11791{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11792echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11793ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11794ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11795ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11796ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11797if   test "$ac_python_version_major" -eq "2" \
11798   && test "$ac_python_version_minor" -ge "5" ; then
11799  { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11800echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11801else
11802  { echo "$as_me:$LINENO: result: not found" >&5
11803echo "${ECHO_T}not found" >&6; }
11804  { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11805See \`config.log' for more details." >&5
11806echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11807See \`config.log' for more details." >&2;}
11808   { (exit 1); exit 1; }; }
11809fi
11810
11811
11812
11813{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11814echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11815if test "${ac_cv_lib_m_sin+set}" = set; then
11816  echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818  ac_check_lib_save_LIBS=$LIBS
11819LIBS="-lm  $LIBS"
11820cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h.  */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h.  */
11826
11827/* Override any GCC internal prototype to avoid an error.
11828   Use char because int might match the return type of a GCC
11829   builtin and then its argument prototype would still apply.  */
11830#ifdef __cplusplus
11831extern "C"
11832#endif
11833char sin ();
11834int
11835main ()
11836{
11837return sin ();
11838  ;
11839  return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext conftest$ac_exeext
11843if { (ac_try="$ac_link"
11844case "(($ac_try" in
11845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846  *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849  (eval "$ac_link") 2>conftest.er1
11850  ac_status=$?
11851  grep -v '^ *+' conftest.er1 >conftest.err
11852  rm -f conftest.er1
11853  cat conftest.err >&5
11854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855  (exit $ac_status); } &&
11856	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857  { (case "(($ac_try" in
11858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859  *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862  (eval "$ac_try") 2>&5
11863  ac_status=$?
11864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865  (exit $ac_status); }; } &&
11866	 { ac_try='test -s conftest$ac_exeext'
11867  { (case "(($ac_try" in
11868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869  *) ac_try_echo=$ac_try;;
11870esac
11871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872  (eval "$ac_try") 2>&5
11873  ac_status=$?
11874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875  (exit $ac_status); }; }; then
11876  ac_cv_lib_m_sin=yes
11877else
11878  echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881	ac_cv_lib_m_sin=no
11882fi
11883
11884rm -f core conftest.err conftest.$ac_objext \
11885      conftest$ac_exeext conftest.$ac_ext
11886LIBS=$ac_check_lib_save_LIBS
11887fi
11888{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11889echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11890if test $ac_cv_lib_m_sin = yes; then
11891  cat >>confdefs.h <<_ACEOF
11892#define HAVE_LIBM 1
11893_ACEOF
11894
11895  LIBS="-lm $LIBS"
11896
11897fi
11898
11899if test "$llvm_cv_os_type" = "MingW" ; then
11900
11901{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11902echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11903if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11904  echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906  ac_check_lib_save_LIBS=$LIBS
11907LIBS="-limagehlp  $LIBS"
11908cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h.  */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h.  */
11914
11915
11916int
11917main ()
11918{
11919return main ();
11920  ;
11921  return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext conftest$ac_exeext
11925if { (ac_try="$ac_link"
11926case "(($ac_try" in
11927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928  *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931  (eval "$ac_link") 2>conftest.er1
11932  ac_status=$?
11933  grep -v '^ *+' conftest.er1 >conftest.err
11934  rm -f conftest.er1
11935  cat conftest.err >&5
11936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937  (exit $ac_status); } &&
11938	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939  { (case "(($ac_try" in
11940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941  *) ac_try_echo=$ac_try;;
11942esac
11943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944  (eval "$ac_try") 2>&5
11945  ac_status=$?
11946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947  (exit $ac_status); }; } &&
11948	 { ac_try='test -s conftest$ac_exeext'
11949  { (case "(($ac_try" in
11950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951  *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954  (eval "$ac_try") 2>&5
11955  ac_status=$?
11956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957  (exit $ac_status); }; }; then
11958  ac_cv_lib_imagehlp_main=yes
11959else
11960  echo "$as_me: failed program was:" >&5
11961sed 's/^/| /' conftest.$ac_ext >&5
11962
11963	ac_cv_lib_imagehlp_main=no
11964fi
11965
11966rm -f core conftest.err conftest.$ac_objext \
11967      conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS
11969fi
11970{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11971echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11972if test $ac_cv_lib_imagehlp_main = yes; then
11973  cat >>confdefs.h <<_ACEOF
11974#define HAVE_LIBIMAGEHLP 1
11975_ACEOF
11976
11977  LIBS="-limagehlp $LIBS"
11978
11979fi
11980
11981
11982{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11983echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11984if test "${ac_cv_lib_psapi_main+set}" = set; then
11985  echo $ECHO_N "(cached) $ECHO_C" >&6
11986else
11987  ac_check_lib_save_LIBS=$LIBS
11988LIBS="-lpsapi  $LIBS"
11989cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h.  */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h.  */
11995
11996
11997int
11998main ()
11999{
12000return main ();
12001  ;
12002  return 0;
12003}
12004_ACEOF
12005rm -f conftest.$ac_objext conftest$ac_exeext
12006if { (ac_try="$ac_link"
12007case "(($ac_try" in
12008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009  *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012  (eval "$ac_link") 2>conftest.er1
12013  ac_status=$?
12014  grep -v '^ *+' conftest.er1 >conftest.err
12015  rm -f conftest.er1
12016  cat conftest.err >&5
12017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018  (exit $ac_status); } &&
12019	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12020  { (case "(($ac_try" in
12021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022  *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025  (eval "$ac_try") 2>&5
12026  ac_status=$?
12027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028  (exit $ac_status); }; } &&
12029	 { ac_try='test -s conftest$ac_exeext'
12030  { (case "(($ac_try" in
12031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032  *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035  (eval "$ac_try") 2>&5
12036  ac_status=$?
12037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038  (exit $ac_status); }; }; then
12039  ac_cv_lib_psapi_main=yes
12040else
12041  echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044	ac_cv_lib_psapi_main=no
12045fi
12046
12047rm -f core conftest.err conftest.$ac_objext \
12048      conftest$ac_exeext conftest.$ac_ext
12049LIBS=$ac_check_lib_save_LIBS
12050fi
12051{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12052echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12053if test $ac_cv_lib_psapi_main = yes; then
12054  cat >>confdefs.h <<_ACEOF
12055#define HAVE_LIBPSAPI 1
12056_ACEOF
12057
12058  LIBS="-lpsapi $LIBS"
12059
12060fi
12061
12062fi
12063
12064{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12065echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12066if test "${ac_cv_search_dlopen+set}" = set; then
12067  echo $ECHO_N "(cached) $ECHO_C" >&6
12068else
12069  ac_func_search_save_LIBS=$LIBS
12070cat >conftest.$ac_ext <<_ACEOF
12071/* confdefs.h.  */
12072_ACEOF
12073cat confdefs.h >>conftest.$ac_ext
12074cat >>conftest.$ac_ext <<_ACEOF
12075/* end confdefs.h.  */
12076
12077/* Override any GCC internal prototype to avoid an error.
12078   Use char because int might match the return type of a GCC
12079   builtin and then its argument prototype would still apply.  */
12080#ifdef __cplusplus
12081extern "C"
12082#endif
12083char dlopen ();
12084int
12085main ()
12086{
12087return dlopen ();
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092for ac_lib in '' dl; do
12093  if test -z "$ac_lib"; then
12094    ac_res="none required"
12095  else
12096    ac_res=-l$ac_lib
12097    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12098  fi
12099  rm -f conftest.$ac_objext conftest$ac_exeext
12100if { (ac_try="$ac_link"
12101case "(($ac_try" in
12102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103  *) ac_try_echo=$ac_try;;
12104esac
12105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106  (eval "$ac_link") 2>conftest.er1
12107  ac_status=$?
12108  grep -v '^ *+' conftest.er1 >conftest.err
12109  rm -f conftest.er1
12110  cat conftest.err >&5
12111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112  (exit $ac_status); } &&
12113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12114  { (case "(($ac_try" in
12115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116  *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119  (eval "$ac_try") 2>&5
12120  ac_status=$?
12121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122  (exit $ac_status); }; } &&
12123	 { ac_try='test -s conftest$ac_exeext'
12124  { (case "(($ac_try" in
12125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126  *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129  (eval "$ac_try") 2>&5
12130  ac_status=$?
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); }; }; then
12133  ac_cv_search_dlopen=$ac_res
12134else
12135  echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138
12139fi
12140
12141rm -f core conftest.err conftest.$ac_objext \
12142      conftest$ac_exeext
12143  if test "${ac_cv_search_dlopen+set}" = set; then
12144  break
12145fi
12146done
12147if test "${ac_cv_search_dlopen+set}" = set; then
12148  :
12149else
12150  ac_cv_search_dlopen=no
12151fi
12152rm conftest.$ac_ext
12153LIBS=$ac_func_search_save_LIBS
12154fi
12155{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12156echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12157ac_res=$ac_cv_search_dlopen
12158if test "$ac_res" != no; then
12159  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12160
12161cat >>confdefs.h <<\_ACEOF
12162#define HAVE_DLOPEN 1
12163_ACEOF
12164
12165else
12166  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12167echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12168fi
12169
12170
12171{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12172echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12173if test "${ac_cv_search_clock_gettime+set}" = set; then
12174  echo $ECHO_N "(cached) $ECHO_C" >&6
12175else
12176  ac_func_search_save_LIBS=$LIBS
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h.  */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h.  */
12183
12184/* Override any GCC internal prototype to avoid an error.
12185   Use char because int might match the return type of a GCC
12186   builtin and then its argument prototype would still apply.  */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char clock_gettime ();
12191int
12192main ()
12193{
12194return clock_gettime ();
12195  ;
12196  return 0;
12197}
12198_ACEOF
12199for ac_lib in '' rt; do
12200  if test -z "$ac_lib"; then
12201    ac_res="none required"
12202  else
12203    ac_res=-l$ac_lib
12204    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12205  fi
12206  rm -f conftest.$ac_objext conftest$ac_exeext
12207if { (ac_try="$ac_link"
12208case "(($ac_try" in
12209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210  *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213  (eval "$ac_link") 2>conftest.er1
12214  ac_status=$?
12215  grep -v '^ *+' conftest.er1 >conftest.err
12216  rm -f conftest.er1
12217  cat conftest.err >&5
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); } &&
12220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221  { (case "(($ac_try" in
12222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223  *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226  (eval "$ac_try") 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; } &&
12230	 { ac_try='test -s conftest$ac_exeext'
12231  { (case "(($ac_try" in
12232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233  *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236  (eval "$ac_try") 2>&5
12237  ac_status=$?
12238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239  (exit $ac_status); }; }; then
12240  ac_cv_search_clock_gettime=$ac_res
12241else
12242  echo "$as_me: failed program was:" >&5
12243sed 's/^/| /' conftest.$ac_ext >&5
12244
12245
12246fi
12247
12248rm -f core conftest.err conftest.$ac_objext \
12249      conftest$ac_exeext
12250  if test "${ac_cv_search_clock_gettime+set}" = set; then
12251  break
12252fi
12253done
12254if test "${ac_cv_search_clock_gettime+set}" = set; then
12255  :
12256else
12257  ac_cv_search_clock_gettime=no
12258fi
12259rm conftest.$ac_ext
12260LIBS=$ac_func_search_save_LIBS
12261fi
12262{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12263echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12264ac_res=$ac_cv_search_clock_gettime
12265if test "$ac_res" != no; then
12266  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12267
12268fi
12269
12270
12271if test "$llvm_cv_enable_curses" = "yes" ; then
12272    { echo "$as_me:$LINENO: checking for library containing has_colors" >&5
12273echo $ECHO_N "checking for library containing has_colors... $ECHO_C" >&6; }
12274if test "${ac_cv_search_has_colors+set}" = set; then
12275  echo $ECHO_N "(cached) $ECHO_C" >&6
12276else
12277  ac_func_search_save_LIBS=$LIBS
12278cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h.  */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h.  */
12284
12285/* Override any GCC internal prototype to avoid an error.
12286   Use char because int might match the return type of a GCC
12287   builtin and then its argument prototype would still apply.  */
12288#ifdef __cplusplus
12289extern "C"
12290#endif
12291char has_colors ();
12292int
12293main ()
12294{
12295return has_colors ();
12296  ;
12297  return 0;
12298}
12299_ACEOF
12300for ac_lib in '' curses ncurses ncursesw; do
12301  if test -z "$ac_lib"; then
12302    ac_res="none required"
12303  else
12304    ac_res=-l$ac_lib
12305    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12306  fi
12307  rm -f conftest.$ac_objext conftest$ac_exeext
12308if { (ac_try="$ac_link"
12309case "(($ac_try" in
12310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311  *) ac_try_echo=$ac_try;;
12312esac
12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314  (eval "$ac_link") 2>conftest.er1
12315  ac_status=$?
12316  grep -v '^ *+' conftest.er1 >conftest.err
12317  rm -f conftest.er1
12318  cat conftest.err >&5
12319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320  (exit $ac_status); } &&
12321	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322  { (case "(($ac_try" in
12323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324  *) ac_try_echo=$ac_try;;
12325esac
12326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327  (eval "$ac_try") 2>&5
12328  ac_status=$?
12329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330  (exit $ac_status); }; } &&
12331	 { ac_try='test -s conftest$ac_exeext'
12332  { (case "(($ac_try" in
12333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334  *) ac_try_echo=$ac_try;;
12335esac
12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337  (eval "$ac_try") 2>&5
12338  ac_status=$?
12339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340  (exit $ac_status); }; }; then
12341  ac_cv_search_has_colors=$ac_res
12342else
12343  echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
12346
12347fi
12348
12349rm -f core conftest.err conftest.$ac_objext \
12350      conftest$ac_exeext
12351  if test "${ac_cv_search_has_colors+set}" = set; then
12352  break
12353fi
12354done
12355if test "${ac_cv_search_has_colors+set}" = set; then
12356  :
12357else
12358  ac_cv_search_has_colors=no
12359fi
12360rm conftest.$ac_ext
12361LIBS=$ac_func_search_save_LIBS
12362fi
12363{ echo "$as_me:$LINENO: result: $ac_cv_search_has_colors" >&5
12364echo "${ECHO_T}$ac_cv_search_has_colors" >&6; }
12365ac_res=$ac_cv_search_has_colors
12366if test "$ac_res" != no; then
12367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define HAVE_CURSES 1
12371_ACEOF
12372
12373fi
12374
12375fi
12376
12377if test "$llvm_cv_enable_libffi" = "yes" ; then
12378  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12379echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12380if test "${ac_cv_search_ffi_call+set}" = set; then
12381  echo $ECHO_N "(cached) $ECHO_C" >&6
12382else
12383  ac_func_search_save_LIBS=$LIBS
12384cat >conftest.$ac_ext <<_ACEOF
12385/* confdefs.h.  */
12386_ACEOF
12387cat confdefs.h >>conftest.$ac_ext
12388cat >>conftest.$ac_ext <<_ACEOF
12389/* end confdefs.h.  */
12390
12391/* Override any GCC internal prototype to avoid an error.
12392   Use char because int might match the return type of a GCC
12393   builtin and then its argument prototype would still apply.  */
12394#ifdef __cplusplus
12395extern "C"
12396#endif
12397char ffi_call ();
12398int
12399main ()
12400{
12401return ffi_call ();
12402  ;
12403  return 0;
12404}
12405_ACEOF
12406for ac_lib in '' ffi; do
12407  if test -z "$ac_lib"; then
12408    ac_res="none required"
12409  else
12410    ac_res=-l$ac_lib
12411    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12412  fi
12413  rm -f conftest.$ac_objext conftest$ac_exeext
12414if { (ac_try="$ac_link"
12415case "(($ac_try" in
12416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417  *) ac_try_echo=$ac_try;;
12418esac
12419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420  (eval "$ac_link") 2>conftest.er1
12421  ac_status=$?
12422  grep -v '^ *+' conftest.er1 >conftest.err
12423  rm -f conftest.er1
12424  cat conftest.err >&5
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); } &&
12427	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428  { (case "(($ac_try" in
12429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430  *) ac_try_echo=$ac_try;;
12431esac
12432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433  (eval "$ac_try") 2>&5
12434  ac_status=$?
12435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436  (exit $ac_status); }; } &&
12437	 { ac_try='test -s conftest$ac_exeext'
12438  { (case "(($ac_try" in
12439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440  *) ac_try_echo=$ac_try;;
12441esac
12442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443  (eval "$ac_try") 2>&5
12444  ac_status=$?
12445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446  (exit $ac_status); }; }; then
12447  ac_cv_search_ffi_call=$ac_res
12448else
12449  echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452
12453fi
12454
12455rm -f core conftest.err conftest.$ac_objext \
12456      conftest$ac_exeext
12457  if test "${ac_cv_search_ffi_call+set}" = set; then
12458  break
12459fi
12460done
12461if test "${ac_cv_search_ffi_call+set}" = set; then
12462  :
12463else
12464  ac_cv_search_ffi_call=no
12465fi
12466rm conftest.$ac_ext
12467LIBS=$ac_func_search_save_LIBS
12468fi
12469{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12470echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12471ac_res=$ac_cv_search_ffi_call
12472if test "$ac_res" != no; then
12473  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12474
12475cat >>confdefs.h <<\_ACEOF
12476#define HAVE_FFI_CALL 1
12477_ACEOF
12478
12479else
12480  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12481echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12482   { (exit 1); exit 1; }; }
12483fi
12484
12485fi
12486
12487{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12488echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12489if test "${ac_cv_search_mallinfo+set}" = set; then
12490  echo $ECHO_N "(cached) $ECHO_C" >&6
12491else
12492  ac_func_search_save_LIBS=$LIBS
12493cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h.  */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h.  */
12499
12500/* Override any GCC internal prototype to avoid an error.
12501   Use char because int might match the return type of a GCC
12502   builtin and then its argument prototype would still apply.  */
12503#ifdef __cplusplus
12504extern "C"
12505#endif
12506char mallinfo ();
12507int
12508main ()
12509{
12510return mallinfo ();
12511  ;
12512  return 0;
12513}
12514_ACEOF
12515for ac_lib in '' malloc; do
12516  if test -z "$ac_lib"; then
12517    ac_res="none required"
12518  else
12519    ac_res=-l$ac_lib
12520    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12521  fi
12522  rm -f conftest.$ac_objext conftest$ac_exeext
12523if { (ac_try="$ac_link"
12524case "(($ac_try" in
12525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526  *) ac_try_echo=$ac_try;;
12527esac
12528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529  (eval "$ac_link") 2>conftest.er1
12530  ac_status=$?
12531  grep -v '^ *+' conftest.er1 >conftest.err
12532  rm -f conftest.er1
12533  cat conftest.err >&5
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); } &&
12536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537  { (case "(($ac_try" in
12538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539  *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542  (eval "$ac_try") 2>&5
12543  ac_status=$?
12544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545  (exit $ac_status); }; } &&
12546	 { ac_try='test -s conftest$ac_exeext'
12547  { (case "(($ac_try" in
12548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549  *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552  (eval "$ac_try") 2>&5
12553  ac_status=$?
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); }; }; then
12556  ac_cv_search_mallinfo=$ac_res
12557else
12558  echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561
12562fi
12563
12564rm -f core conftest.err conftest.$ac_objext \
12565      conftest$ac_exeext
12566  if test "${ac_cv_search_mallinfo+set}" = set; then
12567  break
12568fi
12569done
12570if test "${ac_cv_search_mallinfo+set}" = set; then
12571  :
12572else
12573  ac_cv_search_mallinfo=no
12574fi
12575rm conftest.$ac_ext
12576LIBS=$ac_func_search_save_LIBS
12577fi
12578{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12579echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12580ac_res=$ac_cv_search_mallinfo
12581if test "$ac_res" != no; then
12582  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12583
12584cat >>confdefs.h <<\_ACEOF
12585#define HAVE_MALLINFO 1
12586_ACEOF
12587
12588fi
12589
12590
12591if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12592
12593{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12594echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12595if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12596  echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598  ac_check_lib_save_LIBS=$LIBS
12599LIBS="-lpthread  $LIBS"
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h.  */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h.  */
12606
12607/* Override any GCC internal prototype to avoid an error.
12608   Use char because int might match the return type of a GCC
12609   builtin and then its argument prototype would still apply.  */
12610#ifdef __cplusplus
12611extern "C"
12612#endif
12613char pthread_mutex_init ();
12614int
12615main ()
12616{
12617return pthread_mutex_init ();
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext conftest$ac_exeext
12623if { (ac_try="$ac_link"
12624case "(($ac_try" in
12625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626  *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629  (eval "$ac_link") 2>conftest.er1
12630  ac_status=$?
12631  grep -v '^ *+' conftest.er1 >conftest.err
12632  rm -f conftest.er1
12633  cat conftest.err >&5
12634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635  (exit $ac_status); } &&
12636	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637  { (case "(($ac_try" in
12638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639  *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642  (eval "$ac_try") 2>&5
12643  ac_status=$?
12644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645  (exit $ac_status); }; } &&
12646	 { ac_try='test -s conftest$ac_exeext'
12647  { (case "(($ac_try" in
12648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649  *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652  (eval "$ac_try") 2>&5
12653  ac_status=$?
12654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655  (exit $ac_status); }; }; then
12656  ac_cv_lib_pthread_pthread_mutex_init=yes
12657else
12658  echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661	ac_cv_lib_pthread_pthread_mutex_init=no
12662fi
12663
12664rm -f core conftest.err conftest.$ac_objext \
12665      conftest$ac_exeext conftest.$ac_ext
12666LIBS=$ac_check_lib_save_LIBS
12667fi
12668{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12669echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12670if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12671  cat >>confdefs.h <<_ACEOF
12672#define HAVE_LIBPTHREAD 1
12673_ACEOF
12674
12675  LIBS="-lpthread $LIBS"
12676
12677fi
12678
12679  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12680echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12681if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12682  echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684  ac_func_search_save_LIBS=$LIBS
12685cat >conftest.$ac_ext <<_ACEOF
12686/* confdefs.h.  */
12687_ACEOF
12688cat confdefs.h >>conftest.$ac_ext
12689cat >>conftest.$ac_ext <<_ACEOF
12690/* end confdefs.h.  */
12691
12692/* Override any GCC internal prototype to avoid an error.
12693   Use char because int might match the return type of a GCC
12694   builtin and then its argument prototype would still apply.  */
12695#ifdef __cplusplus
12696extern "C"
12697#endif
12698char pthread_mutex_lock ();
12699int
12700main ()
12701{
12702return pthread_mutex_lock ();
12703  ;
12704  return 0;
12705}
12706_ACEOF
12707for ac_lib in '' pthread; do
12708  if test -z "$ac_lib"; then
12709    ac_res="none required"
12710  else
12711    ac_res=-l$ac_lib
12712    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12713  fi
12714  rm -f conftest.$ac_objext conftest$ac_exeext
12715if { (ac_try="$ac_link"
12716case "(($ac_try" in
12717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718  *) ac_try_echo=$ac_try;;
12719esac
12720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721  (eval "$ac_link") 2>conftest.er1
12722  ac_status=$?
12723  grep -v '^ *+' conftest.er1 >conftest.err
12724  rm -f conftest.er1
12725  cat conftest.err >&5
12726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727  (exit $ac_status); } &&
12728	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12729  { (case "(($ac_try" in
12730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731  *) ac_try_echo=$ac_try;;
12732esac
12733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734  (eval "$ac_try") 2>&5
12735  ac_status=$?
12736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737  (exit $ac_status); }; } &&
12738	 { ac_try='test -s conftest$ac_exeext'
12739  { (case "(($ac_try" in
12740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741  *) ac_try_echo=$ac_try;;
12742esac
12743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744  (eval "$ac_try") 2>&5
12745  ac_status=$?
12746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747  (exit $ac_status); }; }; then
12748  ac_cv_search_pthread_mutex_lock=$ac_res
12749else
12750  echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753
12754fi
12755
12756rm -f core conftest.err conftest.$ac_objext \
12757      conftest$ac_exeext
12758  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12759  break
12760fi
12761done
12762if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12763  :
12764else
12765  ac_cv_search_pthread_mutex_lock=no
12766fi
12767rm conftest.$ac_ext
12768LIBS=$ac_func_search_save_LIBS
12769fi
12770{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12771echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12772ac_res=$ac_cv_search_pthread_mutex_lock
12773if test "$ac_res" != no; then
12774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12775
12776cat >>confdefs.h <<\_ACEOF
12777#define HAVE_PTHREAD_MUTEX_LOCK 1
12778_ACEOF
12779
12780fi
12781
12782  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12783echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12784if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12785  echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787  ac_func_search_save_LIBS=$LIBS
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h.  */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h.  */
12794
12795/* Override any GCC internal prototype to avoid an error.
12796   Use char because int might match the return type of a GCC
12797   builtin and then its argument prototype would still apply.  */
12798#ifdef __cplusplus
12799extern "C"
12800#endif
12801char pthread_rwlock_init ();
12802int
12803main ()
12804{
12805return pthread_rwlock_init ();
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810for ac_lib in '' pthread; do
12811  if test -z "$ac_lib"; then
12812    ac_res="none required"
12813  else
12814    ac_res=-l$ac_lib
12815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12816  fi
12817  rm -f conftest.$ac_objext conftest$ac_exeext
12818if { (ac_try="$ac_link"
12819case "(($ac_try" in
12820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821  *) ac_try_echo=$ac_try;;
12822esac
12823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824  (eval "$ac_link") 2>conftest.er1
12825  ac_status=$?
12826  grep -v '^ *+' conftest.er1 >conftest.err
12827  rm -f conftest.er1
12828  cat conftest.err >&5
12829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830  (exit $ac_status); } &&
12831	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832  { (case "(($ac_try" in
12833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834  *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837  (eval "$ac_try") 2>&5
12838  ac_status=$?
12839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840  (exit $ac_status); }; } &&
12841	 { ac_try='test -s conftest$ac_exeext'
12842  { (case "(($ac_try" in
12843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844  *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847  (eval "$ac_try") 2>&5
12848  ac_status=$?
12849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850  (exit $ac_status); }; }; then
12851  ac_cv_search_pthread_rwlock_init=$ac_res
12852else
12853  echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856
12857fi
12858
12859rm -f core conftest.err conftest.$ac_objext \
12860      conftest$ac_exeext
12861  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12862  break
12863fi
12864done
12865if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12866  :
12867else
12868  ac_cv_search_pthread_rwlock_init=no
12869fi
12870rm conftest.$ac_ext
12871LIBS=$ac_func_search_save_LIBS
12872fi
12873{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12874echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12875ac_res=$ac_cv_search_pthread_rwlock_init
12876if test "$ac_res" != no; then
12877  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878
12879cat >>confdefs.h <<\_ACEOF
12880#define HAVE_PTHREAD_RWLOCK_INIT 1
12881_ACEOF
12882
12883fi
12884
12885  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12886echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12887if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12888  echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890  ac_func_search_save_LIBS=$LIBS
12891cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h.  */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h.  */
12897
12898/* Override any GCC internal prototype to avoid an error.
12899   Use char because int might match the return type of a GCC
12900   builtin and then its argument prototype would still apply.  */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char pthread_getspecific ();
12905int
12906main ()
12907{
12908return pthread_getspecific ();
12909  ;
12910  return 0;
12911}
12912_ACEOF
12913for ac_lib in '' pthread; do
12914  if test -z "$ac_lib"; then
12915    ac_res="none required"
12916  else
12917    ac_res=-l$ac_lib
12918    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12919  fi
12920  rm -f conftest.$ac_objext conftest$ac_exeext
12921if { (ac_try="$ac_link"
12922case "(($ac_try" in
12923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924  *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927  (eval "$ac_link") 2>conftest.er1
12928  ac_status=$?
12929  grep -v '^ *+' conftest.er1 >conftest.err
12930  rm -f conftest.er1
12931  cat conftest.err >&5
12932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933  (exit $ac_status); } &&
12934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935  { (case "(($ac_try" in
12936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937  *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940  (eval "$ac_try") 2>&5
12941  ac_status=$?
12942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943  (exit $ac_status); }; } &&
12944	 { ac_try='test -s conftest$ac_exeext'
12945  { (case "(($ac_try" in
12946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947  *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950  (eval "$ac_try") 2>&5
12951  ac_status=$?
12952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953  (exit $ac_status); }; }; then
12954  ac_cv_search_pthread_getspecific=$ac_res
12955else
12956  echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960fi
12961
12962rm -f core conftest.err conftest.$ac_objext \
12963      conftest$ac_exeext
12964  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12965  break
12966fi
12967done
12968if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12969  :
12970else
12971  ac_cv_search_pthread_getspecific=no
12972fi
12973rm conftest.$ac_ext
12974LIBS=$ac_func_search_save_LIBS
12975fi
12976{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12977echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12978ac_res=$ac_cv_search_pthread_getspecific
12979if test "$ac_res" != no; then
12980  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define HAVE_PTHREAD_GETSPECIFIC 1
12984_ACEOF
12985
12986fi
12987
12988fi
12989
12990if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12991
12992{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12993echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12994if test "${ac_cv_lib_z_compress2+set}" = set; then
12995  echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997  ac_check_lib_save_LIBS=$LIBS
12998LIBS="-lz  $LIBS"
12999cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h.  */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h.  */
13005
13006/* Override any GCC internal prototype to avoid an error.
13007   Use char because int might match the return type of a GCC
13008   builtin and then its argument prototype would still apply.  */
13009#ifdef __cplusplus
13010extern "C"
13011#endif
13012char compress2 ();
13013int
13014main ()
13015{
13016return compress2 ();
13017  ;
13018  return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext conftest$ac_exeext
13022if { (ac_try="$ac_link"
13023case "(($ac_try" in
13024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025  *) ac_try_echo=$ac_try;;
13026esac
13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028  (eval "$ac_link") 2>conftest.er1
13029  ac_status=$?
13030  grep -v '^ *+' conftest.er1 >conftest.err
13031  rm -f conftest.er1
13032  cat conftest.err >&5
13033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034  (exit $ac_status); } &&
13035	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036  { (case "(($ac_try" in
13037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038  *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041  (eval "$ac_try") 2>&5
13042  ac_status=$?
13043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044  (exit $ac_status); }; } &&
13045	 { ac_try='test -s conftest$ac_exeext'
13046  { (case "(($ac_try" in
13047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048  *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051  (eval "$ac_try") 2>&5
13052  ac_status=$?
13053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054  (exit $ac_status); }; }; then
13055  ac_cv_lib_z_compress2=yes
13056else
13057  echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
13060	ac_cv_lib_z_compress2=no
13061fi
13062
13063rm -f core conftest.err conftest.$ac_objext \
13064      conftest$ac_exeext conftest.$ac_ext
13065LIBS=$ac_check_lib_save_LIBS
13066fi
13067{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13068echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13069if test $ac_cv_lib_z_compress2 = yes; then
13070  cat >>confdefs.h <<_ACEOF
13071#define HAVE_LIBZ 1
13072_ACEOF
13073
13074  LIBS="-lz $LIBS"
13075
13076fi
13077
13078fi
13079
13080
13081# Check whether --with-udis86 was given.
13082if test "${with_udis86+set}" = set; then
13083  withval=$with_udis86;
13084      USE_UDIS86=1
13085
13086      case "$withval" in
13087        /usr/lib|yes) ;;
13088        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13089      esac
13090
13091{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13092echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13093if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13094  echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096  ac_check_lib_save_LIBS=$LIBS
13097LIBS="-ludis86  $LIBS"
13098cat >conftest.$ac_ext <<_ACEOF
13099/* confdefs.h.  */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h.  */
13104
13105/* Override any GCC internal prototype to avoid an error.
13106   Use char because int might match the return type of a GCC
13107   builtin and then its argument prototype would still apply.  */
13108#ifdef __cplusplus
13109extern "C"
13110#endif
13111char ud_init ();
13112int
13113main ()
13114{
13115return ud_init ();
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (ac_try="$ac_link"
13122case "(($ac_try" in
13123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124  *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127  (eval "$ac_link") 2>conftest.er1
13128  ac_status=$?
13129  grep -v '^ *+' conftest.er1 >conftest.err
13130  rm -f conftest.er1
13131  cat conftest.err >&5
13132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133  (exit $ac_status); } &&
13134	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135  { (case "(($ac_try" in
13136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137  *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140  (eval "$ac_try") 2>&5
13141  ac_status=$?
13142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143  (exit $ac_status); }; } &&
13144	 { ac_try='test -s conftest$ac_exeext'
13145  { (case "(($ac_try" in
13146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147  *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150  (eval "$ac_try") 2>&5
13151  ac_status=$?
13152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153  (exit $ac_status); }; }; then
13154  ac_cv_lib_udis86_ud_init=yes
13155else
13156  echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
13159	ac_cv_lib_udis86_ud_init=no
13160fi
13161
13162rm -f core conftest.err conftest.$ac_objext \
13163      conftest$ac_exeext conftest.$ac_ext
13164LIBS=$ac_check_lib_save_LIBS
13165fi
13166{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13167echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13168if test $ac_cv_lib_udis86_ud_init = yes; then
13169  cat >>confdefs.h <<_ACEOF
13170#define HAVE_LIBUDIS86 1
13171_ACEOF
13172
13173  LIBS="-ludis86 $LIBS"
13174
13175else
13176
13177        echo "Error! You need to have libudis86 around."
13178        exit -1
13179
13180fi
13181
13182
13183else
13184  USE_UDIS86=0
13185
13186fi
13187
13188
13189cat >>confdefs.h <<_ACEOF
13190#define USE_UDIS86 $USE_UDIS86
13191_ACEOF
13192
13193
13194
13195# Check whether --with-oprofile was given.
13196if test "${with_oprofile+set}" = set; then
13197  withval=$with_oprofile;
13198      USE_OPROFILE=1
13199
13200      case "$withval" in
13201        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13202        no) llvm_cv_oppath=
13203            USE_OPROFILE=0
13204 ;;
13205        *) llvm_cv_oppath="${withval}/lib/oprofile"
13206           CPPFLAGS="-I${withval}/include";;
13207      esac
13208      case $llvm_cv_os_type in
13209        Linux)
13210          if test -n "$llvm_cv_oppath" ; then
13211            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13212                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13213echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13214if test "${ac_cv_search_bfd_init+set}" = set; then
13215  echo $ECHO_N "(cached) $ECHO_C" >&6
13216else
13217  ac_func_search_save_LIBS=$LIBS
13218cat >conftest.$ac_ext <<_ACEOF
13219/* confdefs.h.  */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h.  */
13224
13225/* Override any GCC internal prototype to avoid an error.
13226   Use char because int might match the return type of a GCC
13227   builtin and then its argument prototype would still apply.  */
13228#ifdef __cplusplus
13229extern "C"
13230#endif
13231char bfd_init ();
13232int
13233main ()
13234{
13235return bfd_init ();
13236  ;
13237  return 0;
13238}
13239_ACEOF
13240for ac_lib in '' bfd; do
13241  if test -z "$ac_lib"; then
13242    ac_res="none required"
13243  else
13244    ac_res=-l$ac_lib
13245    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13246  fi
13247  rm -f conftest.$ac_objext conftest$ac_exeext
13248if { (ac_try="$ac_link"
13249case "(($ac_try" in
13250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251  *) ac_try_echo=$ac_try;;
13252esac
13253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254  (eval "$ac_link") 2>conftest.er1
13255  ac_status=$?
13256  grep -v '^ *+' conftest.er1 >conftest.err
13257  rm -f conftest.er1
13258  cat conftest.err >&5
13259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); } &&
13261	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262  { (case "(($ac_try" in
13263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264  *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267  (eval "$ac_try") 2>&5
13268  ac_status=$?
13269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270  (exit $ac_status); }; } &&
13271	 { ac_try='test -s conftest$ac_exeext'
13272  { (case "(($ac_try" in
13273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274  *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277  (eval "$ac_try") 2>&5
13278  ac_status=$?
13279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); }; }; then
13281  ac_cv_search_bfd_init=$ac_res
13282else
13283  echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
13286
13287fi
13288
13289rm -f core conftest.err conftest.$ac_objext \
13290      conftest$ac_exeext
13291  if test "${ac_cv_search_bfd_init+set}" = set; then
13292  break
13293fi
13294done
13295if test "${ac_cv_search_bfd_init+set}" = set; then
13296  :
13297else
13298  ac_cv_search_bfd_init=no
13299fi
13300rm conftest.$ac_ext
13301LIBS=$ac_func_search_save_LIBS
13302fi
13303{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13304echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13305ac_res=$ac_cv_search_bfd_init
13306if test "$ac_res" != no; then
13307  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13308
13309fi
13310
13311            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13312echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13313if test "${ac_cv_search_op_open_agent+set}" = set; then
13314  echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316  ac_func_search_save_LIBS=$LIBS
13317cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h.  */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h.  */
13323
13324/* Override any GCC internal prototype to avoid an error.
13325   Use char because int might match the return type of a GCC
13326   builtin and then its argument prototype would still apply.  */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char op_open_agent ();
13331int
13332main ()
13333{
13334return op_open_agent ();
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339for ac_lib in '' opagent; do
13340  if test -z "$ac_lib"; then
13341    ac_res="none required"
13342  else
13343    ac_res=-l$ac_lib
13344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13345  fi
13346  rm -f conftest.$ac_objext conftest$ac_exeext
13347if { (ac_try="$ac_link"
13348case "(($ac_try" in
13349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350  *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353  (eval "$ac_link") 2>conftest.er1
13354  ac_status=$?
13355  grep -v '^ *+' conftest.er1 >conftest.err
13356  rm -f conftest.er1
13357  cat conftest.err >&5
13358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359  (exit $ac_status); } &&
13360	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13361  { (case "(($ac_try" in
13362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363  *) ac_try_echo=$ac_try;;
13364esac
13365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366  (eval "$ac_try") 2>&5
13367  ac_status=$?
13368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369  (exit $ac_status); }; } &&
13370	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13380  ac_cv_search_op_open_agent=$ac_res
13381else
13382  echo "$as_me: failed program was:" >&5
13383sed 's/^/| /' conftest.$ac_ext >&5
13384
13385
13386fi
13387
13388rm -f core conftest.err conftest.$ac_objext \
13389      conftest$ac_exeext
13390  if test "${ac_cv_search_op_open_agent+set}" = set; then
13391  break
13392fi
13393done
13394if test "${ac_cv_search_op_open_agent+set}" = set; then
13395  :
13396else
13397  ac_cv_search_op_open_agent=no
13398fi
13399rm conftest.$ac_ext
13400LIBS=$ac_func_search_save_LIBS
13401fi
13402{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13403echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13404ac_res=$ac_cv_search_op_open_agent
13405if test "$ac_res" != no; then
13406  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13407
13408else
13409
13410              echo "Error! You need to have libopagent around."
13411              exit -1
13412
13413fi
13414
13415            if test "${ac_cv_header_opagent_h+set}" = set; then
13416  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13417echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13418if test "${ac_cv_header_opagent_h+set}" = set; then
13419  echo $ECHO_N "(cached) $ECHO_C" >&6
13420fi
13421{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13422echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13423else
13424  # Is the header compilable?
13425{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13426echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13427cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h.  */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h.  */
13433$ac_includes_default
13434#include <opagent.h>
13435_ACEOF
13436rm -f conftest.$ac_objext
13437if { (ac_try="$ac_compile"
13438case "(($ac_try" in
13439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440  *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443  (eval "$ac_compile") 2>conftest.er1
13444  ac_status=$?
13445  grep -v '^ *+' conftest.er1 >conftest.err
13446  rm -f conftest.er1
13447  cat conftest.err >&5
13448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449  (exit $ac_status); } &&
13450	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13451  { (case "(($ac_try" in
13452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453  *) ac_try_echo=$ac_try;;
13454esac
13455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456  (eval "$ac_try") 2>&5
13457  ac_status=$?
13458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459  (exit $ac_status); }; } &&
13460	 { ac_try='test -s conftest.$ac_objext'
13461  { (case "(($ac_try" in
13462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463  *) ac_try_echo=$ac_try;;
13464esac
13465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466  (eval "$ac_try") 2>&5
13467  ac_status=$?
13468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469  (exit $ac_status); }; }; then
13470  ac_header_compiler=yes
13471else
13472  echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
13474
13475	ac_header_compiler=no
13476fi
13477
13478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13480echo "${ECHO_T}$ac_header_compiler" >&6; }
13481
13482# Is the header present?
13483{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13484echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13485cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h.  */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
13490/* end confdefs.h.  */
13491#include <opagent.h>
13492_ACEOF
13493if { (ac_try="$ac_cpp conftest.$ac_ext"
13494case "(($ac_try" in
13495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496  *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13500  ac_status=$?
13501  grep -v '^ *+' conftest.er1 >conftest.err
13502  rm -f conftest.er1
13503  cat conftest.err >&5
13504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505  (exit $ac_status); } >/dev/null; then
13506  if test -s conftest.err; then
13507    ac_cpp_err=$ac_c_preproc_warn_flag
13508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13509  else
13510    ac_cpp_err=
13511  fi
13512else
13513  ac_cpp_err=yes
13514fi
13515if test -z "$ac_cpp_err"; then
13516  ac_header_preproc=yes
13517else
13518  echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
13520
13521  ac_header_preproc=no
13522fi
13523
13524rm -f conftest.err conftest.$ac_ext
13525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526echo "${ECHO_T}$ac_header_preproc" >&6; }
13527
13528# So?  What about this header?
13529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530  yes:no: )
13531    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13534echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13535    ac_header_preproc=yes
13536    ;;
13537  no:yes:* )
13538    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13539echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13540    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13541echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13542    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13543echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13544    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13545echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13546    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13547echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13548    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13549echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13550    ( cat <<\_ASBOX
13551## ------------------------------------ ##
13552## Report this to http://llvm.org/bugs/ ##
13553## ------------------------------------ ##
13554_ASBOX
13555     ) | sed "s/^/$as_me: WARNING:     /" >&2
13556    ;;
13557esac
13558{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13559echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13560if test "${ac_cv_header_opagent_h+set}" = set; then
13561  echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563  ac_cv_header_opagent_h=$ac_header_preproc
13564fi
13565{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13566echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13567
13568fi
13569if test $ac_cv_header_opagent_h = yes; then
13570  :
13571else
13572
13573              echo "Error! You need to have opagent.h around."
13574              exit -1
13575
13576fi
13577
13578
13579          fi ;;
13580        *)
13581          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13582echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13583   { (exit 1); exit 1; }; } ;;
13584      esac
13585
13586else
13587
13588      USE_OPROFILE=0
13589
13590
13591fi
13592
13593
13594cat >>confdefs.h <<_ACEOF
13595#define LLVM_USE_OPROFILE $USE_OPROFILE
13596_ACEOF
13597
13598
13599
13600# Check whether --with-intel-jitevents was given.
13601if test "${with_intel_jitevents+set}" = set; then
13602  withval=$with_intel_jitevents;
13603       case "$withval" in
13604          yes) USE_INTEL_JITEVENTS=1
13605;;
13606          no)  USE_INTEL_JITEVENTS=0
13607;;
13608          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13609echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13610   { (exit 1); exit 1; }; };;
13611       esac
13612
13613      case $llvm_cv_os_type in
13614        Linux|Win32|Cygwin|MingW) ;;
13615        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13616echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13617   { (exit 1); exit 1; }; };;
13618      esac
13619
13620      case "$llvm_cv_target_arch" in
13621        x86|x86_64) ;;
13622        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13623echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13624   { (exit 1); exit 1; }; };;
13625      esac
13626
13627else
13628
13629      USE_INTEL_JITEVENTS=0
13630
13631
13632fi
13633
13634
13635cat >>confdefs.h <<_ACEOF
13636#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13637_ACEOF
13638
13639
13640for ac_prog in xml2-config
13641do
13642  # Extract the first word of "$ac_prog", so it can be a program name with args.
13643set dummy $ac_prog; ac_word=$2
13644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13646if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13647  echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649  if test -n "$XML2CONFIG"; then
13650  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13651else
13652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653for as_dir in $PATH
13654do
13655  IFS=$as_save_IFS
13656  test -z "$as_dir" && as_dir=.
13657  for ac_exec_ext in '' $ac_executable_extensions; do
13658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13659    ac_cv_prog_XML2CONFIG="$ac_prog"
13660    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13661    break 2
13662  fi
13663done
13664done
13665IFS=$as_save_IFS
13666
13667fi
13668fi
13669XML2CONFIG=$ac_cv_prog_XML2CONFIG
13670if test -n "$XML2CONFIG"; then
13671  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13672echo "${ECHO_T}$XML2CONFIG" >&6; }
13673else
13674  { echo "$as_me:$LINENO: result: no" >&5
13675echo "${ECHO_T}no" >&6; }
13676fi
13677
13678
13679  test -n "$XML2CONFIG" && break
13680done
13681
13682
13683{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13684echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13685if test "x$XML2CONFIG" = "x"; then
13686 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13687echo "${ECHO_T}xml2-config not found" >&6; }
13688else
13689 LIBXML2_INC=`$XML2CONFIG --cflags`
13690 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13691echo "${ECHO_T}$LIBXML2_INC" >&6; }
13692 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13693echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13694if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13695  echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697  ac_check_lib_save_LIBS=$LIBS
13698LIBS="-lxml2  $LIBS"
13699cat >conftest.$ac_ext <<_ACEOF
13700/* confdefs.h.  */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h.  */
13705
13706/* Override any GCC internal prototype to avoid an error.
13707   Use char because int might match the return type of a GCC
13708   builtin and then its argument prototype would still apply.  */
13709#ifdef __cplusplus
13710extern "C"
13711#endif
13712char xmlReadFile ();
13713int
13714main ()
13715{
13716return xmlReadFile ();
13717  ;
13718  return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext conftest$ac_exeext
13722if { (ac_try="$ac_link"
13723case "(($ac_try" in
13724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725  *) ac_try_echo=$ac_try;;
13726esac
13727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728  (eval "$ac_link") 2>conftest.er1
13729  ac_status=$?
13730  grep -v '^ *+' conftest.er1 >conftest.err
13731  rm -f conftest.er1
13732  cat conftest.err >&5
13733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734  (exit $ac_status); } &&
13735	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736  { (case "(($ac_try" in
13737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738  *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741  (eval "$ac_try") 2>&5
13742  ac_status=$?
13743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744  (exit $ac_status); }; } &&
13745	 { ac_try='test -s conftest$ac_exeext'
13746  { (case "(($ac_try" in
13747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748  *) ac_try_echo=$ac_try;;
13749esac
13750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751  (eval "$ac_try") 2>&5
13752  ac_status=$?
13753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754  (exit $ac_status); }; }; then
13755  ac_cv_lib_xml2_xmlReadFile=yes
13756else
13757  echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760	ac_cv_lib_xml2_xmlReadFile=no
13761fi
13762
13763rm -f core conftest.err conftest.$ac_objext \
13764      conftest$ac_exeext conftest.$ac_ext
13765LIBS=$ac_check_lib_save_LIBS
13766fi
13767{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13768echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13769if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13770
13771cat >>confdefs.h <<\_ACEOF
13772#define CLANG_HAVE_LIBXML 1
13773_ACEOF
13774
13775                                LIBXML2_LIBS="-lxml2"
13776fi
13777
13778fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788ac_header_dirent=no
13789for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13790  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13791{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13792echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794  echo $ECHO_N "(cached) $ECHO_C" >&6
13795else
13796  cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h.  */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h.  */
13802#include <sys/types.h>
13803#include <$ac_hdr>
13804
13805int
13806main ()
13807{
13808if ((DIR *) 0)
13809return 0;
13810  ;
13811  return 0;
13812}
13813_ACEOF
13814rm -f conftest.$ac_objext
13815if { (ac_try="$ac_compile"
13816case "(($ac_try" in
13817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818  *) ac_try_echo=$ac_try;;
13819esac
13820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821  (eval "$ac_compile") 2>conftest.er1
13822  ac_status=$?
13823  grep -v '^ *+' conftest.er1 >conftest.err
13824  rm -f conftest.er1
13825  cat conftest.err >&5
13826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827  (exit $ac_status); } &&
13828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829  { (case "(($ac_try" in
13830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831  *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834  (eval "$ac_try") 2>&5
13835  ac_status=$?
13836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837  (exit $ac_status); }; } &&
13838	 { ac_try='test -s conftest.$ac_objext'
13839  { (case "(($ac_try" in
13840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841  *) ac_try_echo=$ac_try;;
13842esac
13843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844  (eval "$ac_try") 2>&5
13845  ac_status=$?
13846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847  (exit $ac_status); }; }; then
13848  eval "$as_ac_Header=yes"
13849else
13850  echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853	eval "$as_ac_Header=no"
13854fi
13855
13856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857fi
13858ac_res=`eval echo '${'$as_ac_Header'}'`
13859	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13860echo "${ECHO_T}$ac_res" >&6; }
13861if test `eval echo '${'$as_ac_Header'}'` = yes; then
13862  cat >>confdefs.h <<_ACEOF
13863#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13864_ACEOF
13865
13866ac_header_dirent=$ac_hdr; break
13867fi
13868
13869done
13870# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13871if test $ac_header_dirent = dirent.h; then
13872  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13873echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13874if test "${ac_cv_search_opendir+set}" = set; then
13875  echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877  ac_func_search_save_LIBS=$LIBS
13878cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h.  */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h.  */
13884
13885/* Override any GCC internal prototype to avoid an error.
13886   Use char because int might match the return type of a GCC
13887   builtin and then its argument prototype would still apply.  */
13888#ifdef __cplusplus
13889extern "C"
13890#endif
13891char opendir ();
13892int
13893main ()
13894{
13895return opendir ();
13896  ;
13897  return 0;
13898}
13899_ACEOF
13900for ac_lib in '' dir; do
13901  if test -z "$ac_lib"; then
13902    ac_res="none required"
13903  else
13904    ac_res=-l$ac_lib
13905    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13906  fi
13907  rm -f conftest.$ac_objext conftest$ac_exeext
13908if { (ac_try="$ac_link"
13909case "(($ac_try" in
13910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911  *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914  (eval "$ac_link") 2>conftest.er1
13915  ac_status=$?
13916  grep -v '^ *+' conftest.er1 >conftest.err
13917  rm -f conftest.er1
13918  cat conftest.err >&5
13919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920  (exit $ac_status); } &&
13921	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13922  { (case "(($ac_try" in
13923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924  *) ac_try_echo=$ac_try;;
13925esac
13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927  (eval "$ac_try") 2>&5
13928  ac_status=$?
13929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930  (exit $ac_status); }; } &&
13931	 { ac_try='test -s conftest$ac_exeext'
13932  { (case "(($ac_try" in
13933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934  *) ac_try_echo=$ac_try;;
13935esac
13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937  (eval "$ac_try") 2>&5
13938  ac_status=$?
13939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940  (exit $ac_status); }; }; then
13941  ac_cv_search_opendir=$ac_res
13942else
13943  echo "$as_me: failed program was:" >&5
13944sed 's/^/| /' conftest.$ac_ext >&5
13945
13946
13947fi
13948
13949rm -f core conftest.err conftest.$ac_objext \
13950      conftest$ac_exeext
13951  if test "${ac_cv_search_opendir+set}" = set; then
13952  break
13953fi
13954done
13955if test "${ac_cv_search_opendir+set}" = set; then
13956  :
13957else
13958  ac_cv_search_opendir=no
13959fi
13960rm conftest.$ac_ext
13961LIBS=$ac_func_search_save_LIBS
13962fi
13963{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13964echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13965ac_res=$ac_cv_search_opendir
13966if test "$ac_res" != no; then
13967  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13968
13969fi
13970
13971else
13972  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13973echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13974if test "${ac_cv_search_opendir+set}" = set; then
13975  echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977  ac_func_search_save_LIBS=$LIBS
13978cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h.  */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h.  */
13984
13985/* Override any GCC internal prototype to avoid an error.
13986   Use char because int might match the return type of a GCC
13987   builtin and then its argument prototype would still apply.  */
13988#ifdef __cplusplus
13989extern "C"
13990#endif
13991char opendir ();
13992int
13993main ()
13994{
13995return opendir ();
13996  ;
13997  return 0;
13998}
13999_ACEOF
14000for ac_lib in '' x; do
14001  if test -z "$ac_lib"; then
14002    ac_res="none required"
14003  else
14004    ac_res=-l$ac_lib
14005    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14006  fi
14007  rm -f conftest.$ac_objext conftest$ac_exeext
14008if { (ac_try="$ac_link"
14009case "(($ac_try" in
14010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011  *) ac_try_echo=$ac_try;;
14012esac
14013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014  (eval "$ac_link") 2>conftest.er1
14015  ac_status=$?
14016  grep -v '^ *+' conftest.er1 >conftest.err
14017  rm -f conftest.er1
14018  cat conftest.err >&5
14019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020  (exit $ac_status); } &&
14021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022  { (case "(($ac_try" in
14023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024  *) ac_try_echo=$ac_try;;
14025esac
14026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027  (eval "$ac_try") 2>&5
14028  ac_status=$?
14029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030  (exit $ac_status); }; } &&
14031	 { ac_try='test -s conftest$ac_exeext'
14032  { (case "(($ac_try" in
14033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034  *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037  (eval "$ac_try") 2>&5
14038  ac_status=$?
14039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040  (exit $ac_status); }; }; then
14041  ac_cv_search_opendir=$ac_res
14042else
14043  echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046
14047fi
14048
14049rm -f core conftest.err conftest.$ac_objext \
14050      conftest$ac_exeext
14051  if test "${ac_cv_search_opendir+set}" = set; then
14052  break
14053fi
14054done
14055if test "${ac_cv_search_opendir+set}" = set; then
14056  :
14057else
14058  ac_cv_search_opendir=no
14059fi
14060rm conftest.$ac_ext
14061LIBS=$ac_func_search_save_LIBS
14062fi
14063{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14064echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14065ac_res=$ac_cv_search_opendir
14066if test "$ac_res" != no; then
14067  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14068
14069fi
14070
14071fi
14072
14073{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14074echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14075if test "${ac_cv_header_mmap_anon+set}" = set; then
14076  echo $ECHO_N "(cached) $ECHO_C" >&6
14077else
14078   ac_ext=c
14079ac_cpp='$CPP $CPPFLAGS'
14080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084  cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h.  */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h.  */
14090#include <sys/mman.h>
14091#include <unistd.h>
14092#include <fcntl.h>
14093int
14094main ()
14095{
14096mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14097  ;
14098  return 0;
14099}
14100_ACEOF
14101rm -f conftest.$ac_objext
14102if { (ac_try="$ac_compile"
14103case "(($ac_try" in
14104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105  *) ac_try_echo=$ac_try;;
14106esac
14107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108  (eval "$ac_compile") 2>conftest.er1
14109  ac_status=$?
14110  grep -v '^ *+' conftest.er1 >conftest.err
14111  rm -f conftest.er1
14112  cat conftest.err >&5
14113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114  (exit $ac_status); } &&
14115	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116  { (case "(($ac_try" in
14117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118  *) ac_try_echo=$ac_try;;
14119esac
14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121  (eval "$ac_try") 2>&5
14122  ac_status=$?
14123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124  (exit $ac_status); }; } &&
14125	 { ac_try='test -s conftest.$ac_objext'
14126  { (case "(($ac_try" in
14127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128  *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131  (eval "$ac_try") 2>&5
14132  ac_status=$?
14133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134  (exit $ac_status); }; }; then
14135  ac_cv_header_mmap_anon=yes
14136else
14137  echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140	ac_cv_header_mmap_anon=no
14141fi
14142
14143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144  ac_ext=c
14145ac_cpp='$CPP $CPPFLAGS'
14146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150
14151fi
14152{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14153echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14154if test "$ac_cv_header_mmap_anon" = yes; then
14155
14156cat >>confdefs.h <<\_ACEOF
14157#define HAVE_MMAP_ANONYMOUS 1
14158_ACEOF
14159
14160fi
14161
14162{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14163echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14164if test "${ac_cv_header_stat_broken+set}" = set; then
14165  echo $ECHO_N "(cached) $ECHO_C" >&6
14166else
14167  cat >conftest.$ac_ext <<_ACEOF
14168/* confdefs.h.  */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h.  */
14173#include <sys/types.h>
14174#include <sys/stat.h>
14175
14176#if defined S_ISBLK && defined S_IFDIR
14177# if S_ISBLK (S_IFDIR)
14178You lose.
14179# endif
14180#endif
14181
14182#if defined S_ISBLK && defined S_IFCHR
14183# if S_ISBLK (S_IFCHR)
14184You lose.
14185# endif
14186#endif
14187
14188#if defined S_ISLNK && defined S_IFREG
14189# if S_ISLNK (S_IFREG)
14190You lose.
14191# endif
14192#endif
14193
14194#if defined S_ISSOCK && defined S_IFREG
14195# if S_ISSOCK (S_IFREG)
14196You lose.
14197# endif
14198#endif
14199
14200_ACEOF
14201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202  $EGREP "You lose" >/dev/null 2>&1; then
14203  ac_cv_header_stat_broken=yes
14204else
14205  ac_cv_header_stat_broken=no
14206fi
14207rm -f conftest*
14208
14209fi
14210{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14211echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14212if test $ac_cv_header_stat_broken = yes; then
14213
14214cat >>confdefs.h <<\_ACEOF
14215#define STAT_MACROS_BROKEN 1
14216_ACEOF
14217
14218fi
14219
14220{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14221echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14222if test "${ac_cv_header_sys_wait_h+set}" = set; then
14223  echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225  cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h.  */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h.  */
14231#include <sys/types.h>
14232#include <sys/wait.h>
14233#ifndef WEXITSTATUS
14234# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14235#endif
14236#ifndef WIFEXITED
14237# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14238#endif
14239
14240int
14241main ()
14242{
14243  int s;
14244  wait (&s);
14245  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14246  ;
14247  return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext
14251if { (ac_try="$ac_compile"
14252case "(($ac_try" in
14253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254  *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257  (eval "$ac_compile") 2>conftest.er1
14258  ac_status=$?
14259  grep -v '^ *+' conftest.er1 >conftest.err
14260  rm -f conftest.er1
14261  cat conftest.err >&5
14262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263  (exit $ac_status); } &&
14264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265  { (case "(($ac_try" in
14266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267  *) ac_try_echo=$ac_try;;
14268esac
14269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270  (eval "$ac_try") 2>&5
14271  ac_status=$?
14272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273  (exit $ac_status); }; } &&
14274	 { ac_try='test -s conftest.$ac_objext'
14275  { (case "(($ac_try" in
14276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277  *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280  (eval "$ac_try") 2>&5
14281  ac_status=$?
14282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283  (exit $ac_status); }; }; then
14284  ac_cv_header_sys_wait_h=yes
14285else
14286  echo "$as_me: failed program was:" >&5
14287sed 's/^/| /' conftest.$ac_ext >&5
14288
14289	ac_cv_header_sys_wait_h=no
14290fi
14291
14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293fi
14294{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14295echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14296if test $ac_cv_header_sys_wait_h = yes; then
14297
14298cat >>confdefs.h <<\_ACEOF
14299#define HAVE_SYS_WAIT_H 1
14300_ACEOF
14301
14302fi
14303
14304{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14305echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14306if test "${ac_cv_header_time+set}" = set; then
14307  echo $ECHO_N "(cached) $ECHO_C" >&6
14308else
14309  cat >conftest.$ac_ext <<_ACEOF
14310/* confdefs.h.  */
14311_ACEOF
14312cat confdefs.h >>conftest.$ac_ext
14313cat >>conftest.$ac_ext <<_ACEOF
14314/* end confdefs.h.  */
14315#include <sys/types.h>
14316#include <sys/time.h>
14317#include <time.h>
14318
14319int
14320main ()
14321{
14322if ((struct tm *) 0)
14323return 0;
14324  ;
14325  return 0;
14326}
14327_ACEOF
14328rm -f conftest.$ac_objext
14329if { (ac_try="$ac_compile"
14330case "(($ac_try" in
14331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332  *) ac_try_echo=$ac_try;;
14333esac
14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335  (eval "$ac_compile") 2>conftest.er1
14336  ac_status=$?
14337  grep -v '^ *+' conftest.er1 >conftest.err
14338  rm -f conftest.er1
14339  cat conftest.err >&5
14340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341  (exit $ac_status); } &&
14342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343  { (case "(($ac_try" in
14344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345  *) ac_try_echo=$ac_try;;
14346esac
14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348  (eval "$ac_try") 2>&5
14349  ac_status=$?
14350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351  (exit $ac_status); }; } &&
14352	 { ac_try='test -s conftest.$ac_objext'
14353  { (case "(($ac_try" in
14354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355  *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358  (eval "$ac_try") 2>&5
14359  ac_status=$?
14360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361  (exit $ac_status); }; }; then
14362  ac_cv_header_time=yes
14363else
14364  echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
14367	ac_cv_header_time=no
14368fi
14369
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371fi
14372{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14373echo "${ECHO_T}$ac_cv_header_time" >&6; }
14374if test $ac_cv_header_time = yes; then
14375
14376cat >>confdefs.h <<\_ACEOF
14377#define TIME_WITH_SYS_TIME 1
14378_ACEOF
14379
14380fi
14381
14382
14383ac_ext=cpp
14384ac_cpp='$CXXCPP $CPPFLAGS'
14385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14388
14389ac_ext=cpp
14390ac_cpp='$CXXCPP $CPPFLAGS'
14391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14394{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14395echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14396if test -z "$CXXCPP"; then
14397  if test "${ac_cv_prog_CXXCPP+set}" = set; then
14398  echo $ECHO_N "(cached) $ECHO_C" >&6
14399else
14400      # Double quotes because CXXCPP needs to be expanded
14401    for CXXCPP in "$CXX -E" "/lib/cpp"
14402    do
14403      ac_preproc_ok=false
14404for ac_cxx_preproc_warn_flag in '' yes
14405do
14406  # Use a header file that comes with gcc, so configuring glibc
14407  # with a fresh cross-compiler works.
14408  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14409  # <limits.h> exists even on freestanding compilers.
14410  # On the NeXT, cc -E runs the code through the compiler's parser,
14411  # not just through cpp. "Syntax error" is here to catch this case.
14412  cat >conftest.$ac_ext <<_ACEOF
14413/* confdefs.h.  */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h.  */
14418#ifdef __STDC__
14419# include <limits.h>
14420#else
14421# include <assert.h>
14422#endif
14423		     Syntax error
14424_ACEOF
14425if { (ac_try="$ac_cpp conftest.$ac_ext"
14426case "(($ac_try" in
14427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428  *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432  ac_status=$?
14433  grep -v '^ *+' conftest.er1 >conftest.err
14434  rm -f conftest.er1
14435  cat conftest.err >&5
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); } >/dev/null; then
14438  if test -s conftest.err; then
14439    ac_cpp_err=$ac_cxx_preproc_warn_flag
14440    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14441  else
14442    ac_cpp_err=
14443  fi
14444else
14445  ac_cpp_err=yes
14446fi
14447if test -z "$ac_cpp_err"; then
14448  :
14449else
14450  echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453  # Broken: fails on valid input.
14454continue
14455fi
14456
14457rm -f conftest.err conftest.$ac_ext
14458
14459  # OK, works on sane cases.  Now check whether nonexistent headers
14460  # can be detected and how.
14461  cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h.  */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h.  */
14467#include <ac_nonexistent.h>
14468_ACEOF
14469if { (ac_try="$ac_cpp conftest.$ac_ext"
14470case "(($ac_try" in
14471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472  *) ac_try_echo=$ac_try;;
14473esac
14474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14476  ac_status=$?
14477  grep -v '^ *+' conftest.er1 >conftest.err
14478  rm -f conftest.er1
14479  cat conftest.err >&5
14480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481  (exit $ac_status); } >/dev/null; then
14482  if test -s conftest.err; then
14483    ac_cpp_err=$ac_cxx_preproc_warn_flag
14484    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14485  else
14486    ac_cpp_err=
14487  fi
14488else
14489  ac_cpp_err=yes
14490fi
14491if test -z "$ac_cpp_err"; then
14492  # Broken: success on invalid input.
14493continue
14494else
14495  echo "$as_me: failed program was:" >&5
14496sed 's/^/| /' conftest.$ac_ext >&5
14497
14498  # Passes both tests.
14499ac_preproc_ok=:
14500break
14501fi
14502
14503rm -f conftest.err conftest.$ac_ext
14504
14505done
14506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14507rm -f conftest.err conftest.$ac_ext
14508if $ac_preproc_ok; then
14509  break
14510fi
14511
14512    done
14513    ac_cv_prog_CXXCPP=$CXXCPP
14514
14515fi
14516  CXXCPP=$ac_cv_prog_CXXCPP
14517else
14518  ac_cv_prog_CXXCPP=$CXXCPP
14519fi
14520{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
14521echo "${ECHO_T}$CXXCPP" >&6; }
14522ac_preproc_ok=false
14523for ac_cxx_preproc_warn_flag in '' yes
14524do
14525  # Use a header file that comes with gcc, so configuring glibc
14526  # with a fresh cross-compiler works.
14527  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14528  # <limits.h> exists even on freestanding compilers.
14529  # On the NeXT, cc -E runs the code through the compiler's parser,
14530  # not just through cpp. "Syntax error" is here to catch this case.
14531  cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h.  */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h.  */
14537#ifdef __STDC__
14538# include <limits.h>
14539#else
14540# include <assert.h>
14541#endif
14542		     Syntax error
14543_ACEOF
14544if { (ac_try="$ac_cpp conftest.$ac_ext"
14545case "(($ac_try" in
14546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547  *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14551  ac_status=$?
14552  grep -v '^ *+' conftest.er1 >conftest.err
14553  rm -f conftest.er1
14554  cat conftest.err >&5
14555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556  (exit $ac_status); } >/dev/null; then
14557  if test -s conftest.err; then
14558    ac_cpp_err=$ac_cxx_preproc_warn_flag
14559    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14560  else
14561    ac_cpp_err=
14562  fi
14563else
14564  ac_cpp_err=yes
14565fi
14566if test -z "$ac_cpp_err"; then
14567  :
14568else
14569  echo "$as_me: failed program was:" >&5
14570sed 's/^/| /' conftest.$ac_ext >&5
14571
14572  # Broken: fails on valid input.
14573continue
14574fi
14575
14576rm -f conftest.err conftest.$ac_ext
14577
14578  # OK, works on sane cases.  Now check whether nonexistent headers
14579  # can be detected and how.
14580  cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h.  */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h.  */
14586#include <ac_nonexistent.h>
14587_ACEOF
14588if { (ac_try="$ac_cpp conftest.$ac_ext"
14589case "(($ac_try" in
14590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591  *) ac_try_echo=$ac_try;;
14592esac
14593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14595  ac_status=$?
14596  grep -v '^ *+' conftest.er1 >conftest.err
14597  rm -f conftest.er1
14598  cat conftest.err >&5
14599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600  (exit $ac_status); } >/dev/null; then
14601  if test -s conftest.err; then
14602    ac_cpp_err=$ac_cxx_preproc_warn_flag
14603    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14604  else
14605    ac_cpp_err=
14606  fi
14607else
14608  ac_cpp_err=yes
14609fi
14610if test -z "$ac_cpp_err"; then
14611  # Broken: success on invalid input.
14612continue
14613else
14614  echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617  # Passes both tests.
14618ac_preproc_ok=:
14619break
14620fi
14621
14622rm -f conftest.err conftest.$ac_ext
14623
14624done
14625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14626rm -f conftest.err conftest.$ac_ext
14627if $ac_preproc_ok; then
14628  :
14629else
14630  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14631See \`config.log' for more details." >&5
14632echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14633See \`config.log' for more details." >&2;}
14634   { (exit 1); exit 1; }; }
14635fi
14636
14637ac_ext=cpp
14638ac_cpp='$CXXCPP $CPPFLAGS'
14639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14642
14643
14644
14645for ac_header in cxxabi.h
14646do
14647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652  echo $ECHO_N "(cached) $ECHO_C" >&6
14653fi
14654ac_res=`eval echo '${'$as_ac_Header'}'`
14655	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14656echo "${ECHO_T}$ac_res" >&6; }
14657else
14658  # Is the header compilable?
14659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h.  */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h.  */
14667$ac_includes_default
14668#include <$ac_header>
14669_ACEOF
14670rm -f conftest.$ac_objext
14671if { (ac_try="$ac_compile"
14672case "(($ac_try" in
14673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674  *) ac_try_echo=$ac_try;;
14675esac
14676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677  (eval "$ac_compile") 2>conftest.er1
14678  ac_status=$?
14679  grep -v '^ *+' conftest.er1 >conftest.err
14680  rm -f conftest.er1
14681  cat conftest.err >&5
14682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683  (exit $ac_status); } &&
14684	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14685  { (case "(($ac_try" in
14686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687  *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690  (eval "$ac_try") 2>&5
14691  ac_status=$?
14692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693  (exit $ac_status); }; } &&
14694	 { ac_try='test -s conftest.$ac_objext'
14695  { (case "(($ac_try" in
14696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697  *) ac_try_echo=$ac_try;;
14698esac
14699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700  (eval "$ac_try") 2>&5
14701  ac_status=$?
14702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703  (exit $ac_status); }; }; then
14704  ac_header_compiler=yes
14705else
14706  echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709	ac_header_compiler=no
14710fi
14711
14712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716# Is the header present?
14717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h.  */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h.  */
14725#include <$ac_header>
14726_ACEOF
14727if { (ac_try="$ac_cpp conftest.$ac_ext"
14728case "(($ac_try" in
14729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730  *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734  ac_status=$?
14735  grep -v '^ *+' conftest.er1 >conftest.err
14736  rm -f conftest.er1
14737  cat conftest.err >&5
14738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739  (exit $ac_status); } >/dev/null; then
14740  if test -s conftest.err; then
14741    ac_cpp_err=$ac_cxx_preproc_warn_flag
14742    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14743  else
14744    ac_cpp_err=
14745  fi
14746else
14747  ac_cpp_err=yes
14748fi
14749if test -z "$ac_cpp_err"; then
14750  ac_header_preproc=yes
14751else
14752  echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755  ac_header_preproc=no
14756fi
14757
14758rm -f conftest.err conftest.$ac_ext
14759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760echo "${ECHO_T}$ac_header_preproc" >&6; }
14761
14762# So?  What about this header?
14763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14764  yes:no: )
14765    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769    ac_header_preproc=yes
14770    ;;
14771  no:yes:* )
14772    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14775echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14776    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14779echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784    ( cat <<\_ASBOX
14785## ------------------------------------ ##
14786## Report this to http://llvm.org/bugs/ ##
14787## ------------------------------------ ##
14788_ASBOX
14789     ) | sed "s/^/$as_me: WARNING:     /" >&2
14790    ;;
14791esac
14792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795  echo $ECHO_N "(cached) $ECHO_C" >&6
14796else
14797  eval "$as_ac_Header=\$ac_header_preproc"
14798fi
14799ac_res=`eval echo '${'$as_ac_Header'}'`
14800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14801echo "${ECHO_T}$ac_res" >&6; }
14802
14803fi
14804if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805  cat >>confdefs.h <<_ACEOF
14806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807_ACEOF
14808
14809fi
14810
14811done
14812
14813ac_ext=c
14814ac_cpp='$CPP $CPPFLAGS'
14815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
14819
14820
14821
14822
14823
14824for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14825do
14826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14828  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14831  echo $ECHO_N "(cached) $ECHO_C" >&6
14832fi
14833ac_res=`eval echo '${'$as_ac_Header'}'`
14834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14835echo "${ECHO_T}$ac_res" >&6; }
14836else
14837  # Is the header compilable?
14838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14840cat >conftest.$ac_ext <<_ACEOF
14841/* confdefs.h.  */
14842_ACEOF
14843cat confdefs.h >>conftest.$ac_ext
14844cat >>conftest.$ac_ext <<_ACEOF
14845/* end confdefs.h.  */
14846$ac_includes_default
14847#include <$ac_header>
14848_ACEOF
14849rm -f conftest.$ac_objext
14850if { (ac_try="$ac_compile"
14851case "(($ac_try" in
14852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853  *) ac_try_echo=$ac_try;;
14854esac
14855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856  (eval "$ac_compile") 2>conftest.er1
14857  ac_status=$?
14858  grep -v '^ *+' conftest.er1 >conftest.err
14859  rm -f conftest.er1
14860  cat conftest.err >&5
14861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862  (exit $ac_status); } &&
14863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14864  { (case "(($ac_try" in
14865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866  *) ac_try_echo=$ac_try;;
14867esac
14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869  (eval "$ac_try") 2>&5
14870  ac_status=$?
14871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872  (exit $ac_status); }; } &&
14873	 { ac_try='test -s conftest.$ac_objext'
14874  { (case "(($ac_try" in
14875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876  *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879  (eval "$ac_try") 2>&5
14880  ac_status=$?
14881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882  (exit $ac_status); }; }; then
14883  ac_header_compiler=yes
14884else
14885  echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888	ac_header_compiler=no
14889fi
14890
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893echo "${ECHO_T}$ac_header_compiler" >&6; }
14894
14895# Is the header present?
14896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h.  */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h.  */
14904#include <$ac_header>
14905_ACEOF
14906if { (ac_try="$ac_cpp conftest.$ac_ext"
14907case "(($ac_try" in
14908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909  *) ac_try_echo=$ac_try;;
14910esac
14911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913  ac_status=$?
14914  grep -v '^ *+' conftest.er1 >conftest.err
14915  rm -f conftest.er1
14916  cat conftest.err >&5
14917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918  (exit $ac_status); } >/dev/null; then
14919  if test -s conftest.err; then
14920    ac_cpp_err=$ac_c_preproc_warn_flag
14921    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14922  else
14923    ac_cpp_err=
14924  fi
14925else
14926  ac_cpp_err=yes
14927fi
14928if test -z "$ac_cpp_err"; then
14929  ac_header_preproc=yes
14930else
14931  echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934  ac_header_preproc=no
14935fi
14936
14937rm -f conftest.err conftest.$ac_ext
14938{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14939echo "${ECHO_T}$ac_header_preproc" >&6; }
14940
14941# So?  What about this header?
14942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14943  yes:no: )
14944    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14948    ac_header_preproc=yes
14949    ;;
14950  no:yes:* )
14951    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14953    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14954echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14955    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14957    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14958echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14961    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14963    ( cat <<\_ASBOX
14964## ------------------------------------ ##
14965## Report this to http://llvm.org/bugs/ ##
14966## ------------------------------------ ##
14967_ASBOX
14968     ) | sed "s/^/$as_me: WARNING:     /" >&2
14969    ;;
14970esac
14971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14974  echo $ECHO_N "(cached) $ECHO_C" >&6
14975else
14976  eval "$as_ac_Header=\$ac_header_preproc"
14977fi
14978ac_res=`eval echo '${'$as_ac_Header'}'`
14979	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14980echo "${ECHO_T}$ac_res" >&6; }
14981
14982fi
14983if test `eval echo '${'$as_ac_Header'}'` = yes; then
14984  cat >>confdefs.h <<_ACEOF
14985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986_ACEOF
14987
14988fi
14989
14990done
14991
14992
14993
14994
14995
14996
14997
14998for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14999do
15000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15002  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005  echo $ECHO_N "(cached) $ECHO_C" >&6
15006fi
15007ac_res=`eval echo '${'$as_ac_Header'}'`
15008	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15009echo "${ECHO_T}$ac_res" >&6; }
15010else
15011  # Is the header compilable?
15012{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15014cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h.  */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h.  */
15020$ac_includes_default
15021#include <$ac_header>
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (ac_try="$ac_compile"
15025case "(($ac_try" in
15026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027  *) ac_try_echo=$ac_try;;
15028esac
15029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030  (eval "$ac_compile") 2>conftest.er1
15031  ac_status=$?
15032  grep -v '^ *+' conftest.er1 >conftest.err
15033  rm -f conftest.er1
15034  cat conftest.err >&5
15035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036  (exit $ac_status); } &&
15037	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038  { (case "(($ac_try" in
15039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040  *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043  (eval "$ac_try") 2>&5
15044  ac_status=$?
15045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046  (exit $ac_status); }; } &&
15047	 { ac_try='test -s conftest.$ac_objext'
15048  { (case "(($ac_try" in
15049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050  *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053  (eval "$ac_try") 2>&5
15054  ac_status=$?
15055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056  (exit $ac_status); }; }; then
15057  ac_header_compiler=yes
15058else
15059  echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062	ac_header_compiler=no
15063fi
15064
15065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15067echo "${ECHO_T}$ac_header_compiler" >&6; }
15068
15069# Is the header present?
15070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15072cat >conftest.$ac_ext <<_ACEOF
15073/* confdefs.h.  */
15074_ACEOF
15075cat confdefs.h >>conftest.$ac_ext
15076cat >>conftest.$ac_ext <<_ACEOF
15077/* end confdefs.h.  */
15078#include <$ac_header>
15079_ACEOF
15080if { (ac_try="$ac_cpp conftest.$ac_ext"
15081case "(($ac_try" in
15082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083  *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15087  ac_status=$?
15088  grep -v '^ *+' conftest.er1 >conftest.err
15089  rm -f conftest.er1
15090  cat conftest.err >&5
15091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092  (exit $ac_status); } >/dev/null; then
15093  if test -s conftest.err; then
15094    ac_cpp_err=$ac_c_preproc_warn_flag
15095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15096  else
15097    ac_cpp_err=
15098  fi
15099else
15100  ac_cpp_err=yes
15101fi
15102if test -z "$ac_cpp_err"; then
15103  ac_header_preproc=yes
15104else
15105  echo "$as_me: failed program was:" >&5
15106sed 's/^/| /' conftest.$ac_ext >&5
15107
15108  ac_header_preproc=no
15109fi
15110
15111rm -f conftest.err conftest.$ac_ext
15112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15113echo "${ECHO_T}$ac_header_preproc" >&6; }
15114
15115# So?  What about this header?
15116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15117  yes:no: )
15118    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15122    ac_header_preproc=yes
15123    ;;
15124  no:yes:* )
15125    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15127    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15128echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15129    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15131    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15132echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15135    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15137    ( cat <<\_ASBOX
15138## ------------------------------------ ##
15139## Report this to http://llvm.org/bugs/ ##
15140## ------------------------------------ ##
15141_ASBOX
15142     ) | sed "s/^/$as_me: WARNING:     /" >&2
15143    ;;
15144esac
15145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15148  echo $ECHO_N "(cached) $ECHO_C" >&6
15149else
15150  eval "$as_ac_Header=\$ac_header_preproc"
15151fi
15152ac_res=`eval echo '${'$as_ac_Header'}'`
15153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15154echo "${ECHO_T}$ac_res" >&6; }
15155
15156fi
15157if test `eval echo '${'$as_ac_Header'}'` = yes; then
15158  cat >>confdefs.h <<_ACEOF
15159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160_ACEOF
15161
15162fi
15163
15164done
15165
15166
15167for ac_header in utime.h
15168do
15169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15171  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174  echo $ECHO_N "(cached) $ECHO_C" >&6
15175fi
15176ac_res=`eval echo '${'$as_ac_Header'}'`
15177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15178echo "${ECHO_T}$ac_res" >&6; }
15179else
15180  # Is the header compilable?
15181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15183cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h.  */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h.  */
15189$ac_includes_default
15190#include <$ac_header>
15191_ACEOF
15192rm -f conftest.$ac_objext
15193if { (ac_try="$ac_compile"
15194case "(($ac_try" in
15195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196  *) ac_try_echo=$ac_try;;
15197esac
15198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199  (eval "$ac_compile") 2>conftest.er1
15200  ac_status=$?
15201  grep -v '^ *+' conftest.er1 >conftest.err
15202  rm -f conftest.er1
15203  cat conftest.err >&5
15204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205  (exit $ac_status); } &&
15206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207  { (case "(($ac_try" in
15208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209  *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212  (eval "$ac_try") 2>&5
15213  ac_status=$?
15214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215  (exit $ac_status); }; } &&
15216	 { ac_try='test -s conftest.$ac_objext'
15217  { (case "(($ac_try" in
15218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219  *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222  (eval "$ac_try") 2>&5
15223  ac_status=$?
15224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225  (exit $ac_status); }; }; then
15226  ac_header_compiler=yes
15227else
15228  echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231	ac_header_compiler=no
15232fi
15233
15234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236echo "${ECHO_T}$ac_header_compiler" >&6; }
15237
15238# Is the header present?
15239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15241cat >conftest.$ac_ext <<_ACEOF
15242/* confdefs.h.  */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
15246/* end confdefs.h.  */
15247#include <$ac_header>
15248_ACEOF
15249if { (ac_try="$ac_cpp conftest.$ac_ext"
15250case "(($ac_try" in
15251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252  *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15256  ac_status=$?
15257  grep -v '^ *+' conftest.er1 >conftest.err
15258  rm -f conftest.er1
15259  cat conftest.err >&5
15260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261  (exit $ac_status); } >/dev/null; then
15262  if test -s conftest.err; then
15263    ac_cpp_err=$ac_c_preproc_warn_flag
15264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265  else
15266    ac_cpp_err=
15267  fi
15268else
15269  ac_cpp_err=yes
15270fi
15271if test -z "$ac_cpp_err"; then
15272  ac_header_preproc=yes
15273else
15274  echo "$as_me: failed program was:" >&5
15275sed 's/^/| /' conftest.$ac_ext >&5
15276
15277  ac_header_preproc=no
15278fi
15279
15280rm -f conftest.err conftest.$ac_ext
15281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282echo "${ECHO_T}$ac_header_preproc" >&6; }
15283
15284# So?  What about this header?
15285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286  yes:no: )
15287    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15291    ac_header_preproc=yes
15292    ;;
15293  no:yes:* )
15294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15296    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15297echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15298    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15300    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15301echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15304    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15306    ( cat <<\_ASBOX
15307## ------------------------------------ ##
15308## Report this to http://llvm.org/bugs/ ##
15309## ------------------------------------ ##
15310_ASBOX
15311     ) | sed "s/^/$as_me: WARNING:     /" >&2
15312    ;;
15313esac
15314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317  echo $ECHO_N "(cached) $ECHO_C" >&6
15318else
15319  eval "$as_ac_Header=\$ac_header_preproc"
15320fi
15321ac_res=`eval echo '${'$as_ac_Header'}'`
15322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15323echo "${ECHO_T}$ac_res" >&6; }
15324
15325fi
15326if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327  cat >>confdefs.h <<_ACEOF
15328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329_ACEOF
15330
15331fi
15332
15333done
15334
15335
15336
15337
15338
15339
15340for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15341do
15342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347  echo $ECHO_N "(cached) $ECHO_C" >&6
15348fi
15349ac_res=`eval echo '${'$as_ac_Header'}'`
15350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15351echo "${ECHO_T}$ac_res" >&6; }
15352else
15353  # Is the header compilable?
15354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15356cat >conftest.$ac_ext <<_ACEOF
15357/* confdefs.h.  */
15358_ACEOF
15359cat confdefs.h >>conftest.$ac_ext
15360cat >>conftest.$ac_ext <<_ACEOF
15361/* end confdefs.h.  */
15362$ac_includes_default
15363#include <$ac_header>
15364_ACEOF
15365rm -f conftest.$ac_objext
15366if { (ac_try="$ac_compile"
15367case "(($ac_try" in
15368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369  *) ac_try_echo=$ac_try;;
15370esac
15371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372  (eval "$ac_compile") 2>conftest.er1
15373  ac_status=$?
15374  grep -v '^ *+' conftest.er1 >conftest.err
15375  rm -f conftest.er1
15376  cat conftest.err >&5
15377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378  (exit $ac_status); } &&
15379	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15380  { (case "(($ac_try" in
15381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382  *) ac_try_echo=$ac_try;;
15383esac
15384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385  (eval "$ac_try") 2>&5
15386  ac_status=$?
15387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388  (exit $ac_status); }; } &&
15389	 { ac_try='test -s conftest.$ac_objext'
15390  { (case "(($ac_try" in
15391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392  *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395  (eval "$ac_try") 2>&5
15396  ac_status=$?
15397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398  (exit $ac_status); }; }; then
15399  ac_header_compiler=yes
15400else
15401  echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404	ac_header_compiler=no
15405fi
15406
15407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409echo "${ECHO_T}$ac_header_compiler" >&6; }
15410
15411# Is the header present?
15412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15414cat >conftest.$ac_ext <<_ACEOF
15415/* confdefs.h.  */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h.  */
15420#include <$ac_header>
15421_ACEOF
15422if { (ac_try="$ac_cpp conftest.$ac_ext"
15423case "(($ac_try" in
15424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425  *) ac_try_echo=$ac_try;;
15426esac
15427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15429  ac_status=$?
15430  grep -v '^ *+' conftest.er1 >conftest.err
15431  rm -f conftest.er1
15432  cat conftest.err >&5
15433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434  (exit $ac_status); } >/dev/null; then
15435  if test -s conftest.err; then
15436    ac_cpp_err=$ac_c_preproc_warn_flag
15437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15438  else
15439    ac_cpp_err=
15440  fi
15441else
15442  ac_cpp_err=yes
15443fi
15444if test -z "$ac_cpp_err"; then
15445  ac_header_preproc=yes
15446else
15447  echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450  ac_header_preproc=no
15451fi
15452
15453rm -f conftest.err conftest.$ac_ext
15454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15455echo "${ECHO_T}$ac_header_preproc" >&6; }
15456
15457# So?  What about this header?
15458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459  yes:no: )
15460    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15462    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15464    ac_header_preproc=yes
15465    ;;
15466  no:yes:* )
15467    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15469    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15470echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15471    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15473    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15474echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15475    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15477    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479    ( cat <<\_ASBOX
15480## ------------------------------------ ##
15481## Report this to http://llvm.org/bugs/ ##
15482## ------------------------------------ ##
15483_ASBOX
15484     ) | sed "s/^/$as_me: WARNING:     /" >&2
15485    ;;
15486esac
15487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15490  echo $ECHO_N "(cached) $ECHO_C" >&6
15491else
15492  eval "$as_ac_Header=\$ac_header_preproc"
15493fi
15494ac_res=`eval echo '${'$as_ac_Header'}'`
15495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15496echo "${ECHO_T}$ac_res" >&6; }
15497
15498fi
15499if test `eval echo '${'$as_ac_Header'}'` = yes; then
15500  cat >>confdefs.h <<_ACEOF
15501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15502_ACEOF
15503
15504fi
15505
15506done
15507
15508
15509
15510
15511for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15512do
15513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518  echo $ECHO_N "(cached) $ECHO_C" >&6
15519fi
15520ac_res=`eval echo '${'$as_ac_Header'}'`
15521	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15522echo "${ECHO_T}$ac_res" >&6; }
15523else
15524  # Is the header compilable?
15525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15527cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h.  */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h.  */
15533$ac_includes_default
15534#include <$ac_header>
15535_ACEOF
15536rm -f conftest.$ac_objext
15537if { (ac_try="$ac_compile"
15538case "(($ac_try" in
15539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540  *) ac_try_echo=$ac_try;;
15541esac
15542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543  (eval "$ac_compile") 2>conftest.er1
15544  ac_status=$?
15545  grep -v '^ *+' conftest.er1 >conftest.err
15546  rm -f conftest.er1
15547  cat conftest.err >&5
15548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549  (exit $ac_status); } &&
15550	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551  { (case "(($ac_try" in
15552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553  *) ac_try_echo=$ac_try;;
15554esac
15555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556  (eval "$ac_try") 2>&5
15557  ac_status=$?
15558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559  (exit $ac_status); }; } &&
15560	 { ac_try='test -s conftest.$ac_objext'
15561  { (case "(($ac_try" in
15562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563  *) ac_try_echo=$ac_try;;
15564esac
15565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566  (eval "$ac_try") 2>&5
15567  ac_status=$?
15568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569  (exit $ac_status); }; }; then
15570  ac_header_compiler=yes
15571else
15572  echo "$as_me: failed program was:" >&5
15573sed 's/^/| /' conftest.$ac_ext >&5
15574
15575	ac_header_compiler=no
15576fi
15577
15578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15580echo "${ECHO_T}$ac_header_compiler" >&6; }
15581
15582# Is the header present?
15583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15585cat >conftest.$ac_ext <<_ACEOF
15586/* confdefs.h.  */
15587_ACEOF
15588cat confdefs.h >>conftest.$ac_ext
15589cat >>conftest.$ac_ext <<_ACEOF
15590/* end confdefs.h.  */
15591#include <$ac_header>
15592_ACEOF
15593if { (ac_try="$ac_cpp conftest.$ac_ext"
15594case "(($ac_try" in
15595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596  *) ac_try_echo=$ac_try;;
15597esac
15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15600  ac_status=$?
15601  grep -v '^ *+' conftest.er1 >conftest.err
15602  rm -f conftest.er1
15603  cat conftest.err >&5
15604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605  (exit $ac_status); } >/dev/null; then
15606  if test -s conftest.err; then
15607    ac_cpp_err=$ac_c_preproc_warn_flag
15608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15609  else
15610    ac_cpp_err=
15611  fi
15612else
15613  ac_cpp_err=yes
15614fi
15615if test -z "$ac_cpp_err"; then
15616  ac_header_preproc=yes
15617else
15618  echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
15621  ac_header_preproc=no
15622fi
15623
15624rm -f conftest.err conftest.$ac_ext
15625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626echo "${ECHO_T}$ac_header_preproc" >&6; }
15627
15628# So?  What about this header?
15629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630  yes:no: )
15631    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635    ac_header_preproc=yes
15636    ;;
15637  no:yes:* )
15638    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15641echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15642    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15645echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15650    ( cat <<\_ASBOX
15651## ------------------------------------ ##
15652## Report this to http://llvm.org/bugs/ ##
15653## ------------------------------------ ##
15654_ASBOX
15655     ) | sed "s/^/$as_me: WARNING:     /" >&2
15656    ;;
15657esac
15658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661  echo $ECHO_N "(cached) $ECHO_C" >&6
15662else
15663  eval "$as_ac_Header=\$ac_header_preproc"
15664fi
15665ac_res=`eval echo '${'$as_ac_Header'}'`
15666	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15667echo "${ECHO_T}$ac_res" >&6; }
15668
15669fi
15670if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671  cat >>confdefs.h <<_ACEOF
15672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673_ACEOF
15674
15675fi
15676
15677done
15678
15679
15680for ac_header in valgrind/valgrind.h
15681do
15682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687  echo $ECHO_N "(cached) $ECHO_C" >&6
15688fi
15689ac_res=`eval echo '${'$as_ac_Header'}'`
15690	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15691echo "${ECHO_T}$ac_res" >&6; }
15692else
15693  # Is the header compilable?
15694{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15696cat >conftest.$ac_ext <<_ACEOF
15697/* confdefs.h.  */
15698_ACEOF
15699cat confdefs.h >>conftest.$ac_ext
15700cat >>conftest.$ac_ext <<_ACEOF
15701/* end confdefs.h.  */
15702$ac_includes_default
15703#include <$ac_header>
15704_ACEOF
15705rm -f conftest.$ac_objext
15706if { (ac_try="$ac_compile"
15707case "(($ac_try" in
15708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709  *) ac_try_echo=$ac_try;;
15710esac
15711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712  (eval "$ac_compile") 2>conftest.er1
15713  ac_status=$?
15714  grep -v '^ *+' conftest.er1 >conftest.err
15715  rm -f conftest.er1
15716  cat conftest.err >&5
15717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718  (exit $ac_status); } &&
15719	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720  { (case "(($ac_try" in
15721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722  *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725  (eval "$ac_try") 2>&5
15726  ac_status=$?
15727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728  (exit $ac_status); }; } &&
15729	 { ac_try='test -s conftest.$ac_objext'
15730  { (case "(($ac_try" in
15731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732  *) ac_try_echo=$ac_try;;
15733esac
15734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735  (eval "$ac_try") 2>&5
15736  ac_status=$?
15737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738  (exit $ac_status); }; }; then
15739  ac_header_compiler=yes
15740else
15741  echo "$as_me: failed program was:" >&5
15742sed 's/^/| /' conftest.$ac_ext >&5
15743
15744	ac_header_compiler=no
15745fi
15746
15747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15749echo "${ECHO_T}$ac_header_compiler" >&6; }
15750
15751# Is the header present?
15752{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h.  */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h.  */
15760#include <$ac_header>
15761_ACEOF
15762if { (ac_try="$ac_cpp conftest.$ac_ext"
15763case "(($ac_try" in
15764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765  *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15769  ac_status=$?
15770  grep -v '^ *+' conftest.er1 >conftest.err
15771  rm -f conftest.er1
15772  cat conftest.err >&5
15773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774  (exit $ac_status); } >/dev/null; then
15775  if test -s conftest.err; then
15776    ac_cpp_err=$ac_c_preproc_warn_flag
15777    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15778  else
15779    ac_cpp_err=
15780  fi
15781else
15782  ac_cpp_err=yes
15783fi
15784if test -z "$ac_cpp_err"; then
15785  ac_header_preproc=yes
15786else
15787  echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790  ac_header_preproc=no
15791fi
15792
15793rm -f conftest.err conftest.$ac_ext
15794{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15795echo "${ECHO_T}$ac_header_preproc" >&6; }
15796
15797# So?  What about this header?
15798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15799  yes:no: )
15800    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15804    ac_header_preproc=yes
15805    ;;
15806  no:yes:* )
15807    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15809    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15810echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15811    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15813    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15814echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15817    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15819    ( cat <<\_ASBOX
15820## ------------------------------------ ##
15821## Report this to http://llvm.org/bugs/ ##
15822## ------------------------------------ ##
15823_ASBOX
15824     ) | sed "s/^/$as_me: WARNING:     /" >&2
15825    ;;
15826esac
15827{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15830  echo $ECHO_N "(cached) $ECHO_C" >&6
15831else
15832  eval "$as_ac_Header=\$ac_header_preproc"
15833fi
15834ac_res=`eval echo '${'$as_ac_Header'}'`
15835	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15836echo "${ECHO_T}$ac_res" >&6; }
15837
15838fi
15839if test `eval echo '${'$as_ac_Header'}'` = yes; then
15840  cat >>confdefs.h <<_ACEOF
15841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15842_ACEOF
15843
15844fi
15845
15846done
15847
15848
15849for ac_header in fenv.h
15850do
15851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15853  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856  echo $ECHO_N "(cached) $ECHO_C" >&6
15857fi
15858ac_res=`eval echo '${'$as_ac_Header'}'`
15859	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15860echo "${ECHO_T}$ac_res" >&6; }
15861else
15862  # Is the header compilable?
15863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15865cat >conftest.$ac_ext <<_ACEOF
15866/* confdefs.h.  */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h.  */
15871$ac_includes_default
15872#include <$ac_header>
15873_ACEOF
15874rm -f conftest.$ac_objext
15875if { (ac_try="$ac_compile"
15876case "(($ac_try" in
15877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878  *) ac_try_echo=$ac_try;;
15879esac
15880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881  (eval "$ac_compile") 2>conftest.er1
15882  ac_status=$?
15883  grep -v '^ *+' conftest.er1 >conftest.err
15884  rm -f conftest.er1
15885  cat conftest.err >&5
15886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887  (exit $ac_status); } &&
15888	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15889  { (case "(($ac_try" in
15890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891  *) ac_try_echo=$ac_try;;
15892esac
15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894  (eval "$ac_try") 2>&5
15895  ac_status=$?
15896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897  (exit $ac_status); }; } &&
15898	 { ac_try='test -s conftest.$ac_objext'
15899  { (case "(($ac_try" in
15900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901  *) ac_try_echo=$ac_try;;
15902esac
15903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904  (eval "$ac_try") 2>&5
15905  ac_status=$?
15906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907  (exit $ac_status); }; }; then
15908  ac_header_compiler=yes
15909else
15910  echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913	ac_header_compiler=no
15914fi
15915
15916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15918echo "${ECHO_T}$ac_header_compiler" >&6; }
15919
15920# Is the header present?
15921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15923cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h.  */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h.  */
15929#include <$ac_header>
15930_ACEOF
15931if { (ac_try="$ac_cpp conftest.$ac_ext"
15932case "(($ac_try" in
15933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934  *) ac_try_echo=$ac_try;;
15935esac
15936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15938  ac_status=$?
15939  grep -v '^ *+' conftest.er1 >conftest.err
15940  rm -f conftest.er1
15941  cat conftest.err >&5
15942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943  (exit $ac_status); } >/dev/null; then
15944  if test -s conftest.err; then
15945    ac_cpp_err=$ac_c_preproc_warn_flag
15946    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15947  else
15948    ac_cpp_err=
15949  fi
15950else
15951  ac_cpp_err=yes
15952fi
15953if test -z "$ac_cpp_err"; then
15954  ac_header_preproc=yes
15955else
15956  echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959  ac_header_preproc=no
15960fi
15961
15962rm -f conftest.err conftest.$ac_ext
15963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964echo "${ECHO_T}$ac_header_preproc" >&6; }
15965
15966# So?  What about this header?
15967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968  yes:no: )
15969    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15973    ac_header_preproc=yes
15974    ;;
15975  no:yes:* )
15976    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15979echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15980    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15982    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15983echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15984    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15986    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15988    ( cat <<\_ASBOX
15989## ------------------------------------ ##
15990## Report this to http://llvm.org/bugs/ ##
15991## ------------------------------------ ##
15992_ASBOX
15993     ) | sed "s/^/$as_me: WARNING:     /" >&2
15994    ;;
15995esac
15996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15999  echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001  eval "$as_ac_Header=\$ac_header_preproc"
16002fi
16003ac_res=`eval echo '${'$as_ac_Header'}'`
16004	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16005echo "${ECHO_T}$ac_res" >&6; }
16006
16007fi
16008if test `eval echo '${'$as_ac_Header'}'` = yes; then
16009  cat >>confdefs.h <<_ACEOF
16010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16011_ACEOF
16012
16013fi
16014
16015done
16016
16017{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16018echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16019if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16020  echo $ECHO_N "(cached) $ECHO_C" >&6
16021else
16022  cat >conftest.$ac_ext <<_ACEOF
16023/* confdefs.h.  */
16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h.  */
16028#include <fenv.h>
16029
16030int
16031main ()
16032{
16033#ifndef FE_ALL_EXCEPT
16034  char *p = (char *) FE_ALL_EXCEPT;
16035  return !p;
16036#endif
16037
16038  ;
16039  return 0;
16040}
16041_ACEOF
16042rm -f conftest.$ac_objext
16043if { (ac_try="$ac_compile"
16044case "(($ac_try" in
16045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046  *) ac_try_echo=$ac_try;;
16047esac
16048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049  (eval "$ac_compile") 2>conftest.er1
16050  ac_status=$?
16051  grep -v '^ *+' conftest.er1 >conftest.err
16052  rm -f conftest.er1
16053  cat conftest.err >&5
16054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055  (exit $ac_status); } &&
16056	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16057  { (case "(($ac_try" in
16058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059  *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062  (eval "$ac_try") 2>&5
16063  ac_status=$?
16064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065  (exit $ac_status); }; } &&
16066	 { ac_try='test -s conftest.$ac_objext'
16067  { (case "(($ac_try" in
16068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069  *) ac_try_echo=$ac_try;;
16070esac
16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072  (eval "$ac_try") 2>&5
16073  ac_status=$?
16074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075  (exit $ac_status); }; }; then
16076  ac_cv_have_decl_FE_ALL_EXCEPT=yes
16077else
16078  echo "$as_me: failed program was:" >&5
16079sed 's/^/| /' conftest.$ac_ext >&5
16080
16081	ac_cv_have_decl_FE_ALL_EXCEPT=no
16082fi
16083
16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085fi
16086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16087echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16088if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16089
16090cat >>confdefs.h <<_ACEOF
16091#define HAVE_DECL_FE_ALL_EXCEPT 1
16092_ACEOF
16093
16094
16095else
16096  cat >>confdefs.h <<_ACEOF
16097#define HAVE_DECL_FE_ALL_EXCEPT 0
16098_ACEOF
16099
16100
16101fi
16102{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16103echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16104if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16105  echo $ECHO_N "(cached) $ECHO_C" >&6
16106else
16107  cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h.  */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h.  */
16113#include <fenv.h>
16114
16115int
16116main ()
16117{
16118#ifndef FE_INEXACT
16119  char *p = (char *) FE_INEXACT;
16120  return !p;
16121#endif
16122
16123  ;
16124  return 0;
16125}
16126_ACEOF
16127rm -f conftest.$ac_objext
16128if { (ac_try="$ac_compile"
16129case "(($ac_try" in
16130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131  *) ac_try_echo=$ac_try;;
16132esac
16133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134  (eval "$ac_compile") 2>conftest.er1
16135  ac_status=$?
16136  grep -v '^ *+' conftest.er1 >conftest.err
16137  rm -f conftest.er1
16138  cat conftest.err >&5
16139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140  (exit $ac_status); } &&
16141	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142  { (case "(($ac_try" in
16143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144  *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147  (eval "$ac_try") 2>&5
16148  ac_status=$?
16149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150  (exit $ac_status); }; } &&
16151	 { ac_try='test -s conftest.$ac_objext'
16152  { (case "(($ac_try" in
16153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154  *) ac_try_echo=$ac_try;;
16155esac
16156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157  (eval "$ac_try") 2>&5
16158  ac_status=$?
16159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160  (exit $ac_status); }; }; then
16161  ac_cv_have_decl_FE_INEXACT=yes
16162else
16163  echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166	ac_cv_have_decl_FE_INEXACT=no
16167fi
16168
16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170fi
16171{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16172echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16173if test $ac_cv_have_decl_FE_INEXACT = yes; then
16174
16175cat >>confdefs.h <<_ACEOF
16176#define HAVE_DECL_FE_INEXACT 1
16177_ACEOF
16178
16179
16180else
16181  cat >>confdefs.h <<_ACEOF
16182#define HAVE_DECL_FE_INEXACT 0
16183_ACEOF
16184
16185
16186fi
16187
16188
16189if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16190
16191for ac_header in pthread.h
16192do
16193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198  echo $ECHO_N "(cached) $ECHO_C" >&6
16199fi
16200ac_res=`eval echo '${'$as_ac_Header'}'`
16201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16202echo "${ECHO_T}$ac_res" >&6; }
16203else
16204  # Is the header compilable?
16205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h.  */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h.  */
16213$ac_includes_default
16214#include <$ac_header>
16215_ACEOF
16216rm -f conftest.$ac_objext
16217if { (ac_try="$ac_compile"
16218case "(($ac_try" in
16219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220  *) ac_try_echo=$ac_try;;
16221esac
16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223  (eval "$ac_compile") 2>conftest.er1
16224  ac_status=$?
16225  grep -v '^ *+' conftest.er1 >conftest.err
16226  rm -f conftest.er1
16227  cat conftest.err >&5
16228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229  (exit $ac_status); } &&
16230	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231  { (case "(($ac_try" in
16232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233  *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236  (eval "$ac_try") 2>&5
16237  ac_status=$?
16238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239  (exit $ac_status); }; } &&
16240	 { ac_try='test -s conftest.$ac_objext'
16241  { (case "(($ac_try" in
16242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243  *) ac_try_echo=$ac_try;;
16244esac
16245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246  (eval "$ac_try") 2>&5
16247  ac_status=$?
16248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249  (exit $ac_status); }; }; then
16250  ac_header_compiler=yes
16251else
16252  echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255	ac_header_compiler=no
16256fi
16257
16258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260echo "${ECHO_T}$ac_header_compiler" >&6; }
16261
16262# Is the header present?
16263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h.  */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h.  */
16271#include <$ac_header>
16272_ACEOF
16273if { (ac_try="$ac_cpp conftest.$ac_ext"
16274case "(($ac_try" in
16275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276  *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280  ac_status=$?
16281  grep -v '^ *+' conftest.er1 >conftest.err
16282  rm -f conftest.er1
16283  cat conftest.err >&5
16284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285  (exit $ac_status); } >/dev/null; then
16286  if test -s conftest.err; then
16287    ac_cpp_err=$ac_c_preproc_warn_flag
16288    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16289  else
16290    ac_cpp_err=
16291  fi
16292else
16293  ac_cpp_err=yes
16294fi
16295if test -z "$ac_cpp_err"; then
16296  ac_header_preproc=yes
16297else
16298  echo "$as_me: failed program was:" >&5
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
16301  ac_header_preproc=no
16302fi
16303
16304rm -f conftest.err conftest.$ac_ext
16305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306echo "${ECHO_T}$ac_header_preproc" >&6; }
16307
16308# So?  What about this header?
16309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310  yes:no: )
16311    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315    ac_header_preproc=yes
16316    ;;
16317  no:yes:* )
16318    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16321echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16322    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16325echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16326    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330    ( cat <<\_ASBOX
16331## ------------------------------------ ##
16332## Report this to http://llvm.org/bugs/ ##
16333## ------------------------------------ ##
16334_ASBOX
16335     ) | sed "s/^/$as_me: WARNING:     /" >&2
16336    ;;
16337esac
16338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341  echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343  eval "$as_ac_Header=\$ac_header_preproc"
16344fi
16345ac_res=`eval echo '${'$as_ac_Header'}'`
16346	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16347echo "${ECHO_T}$ac_res" >&6; }
16348
16349fi
16350if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351  cat >>confdefs.h <<_ACEOF
16352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16353_ACEOF
16354 HAVE_PTHREAD=1
16355
16356else
16357  HAVE_PTHREAD=0
16358
16359fi
16360
16361done
16362
16363else
16364  HAVE_PTHREAD=0
16365
16366fi
16367if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16368
16369for ac_header in zlib.h
16370do
16371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376  echo $ECHO_N "(cached) $ECHO_C" >&6
16377fi
16378ac_res=`eval echo '${'$as_ac_Header'}'`
16379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16380echo "${ECHO_T}$ac_res" >&6; }
16381else
16382  # Is the header compilable?
16383{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16385cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h.  */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h.  */
16391$ac_includes_default
16392#include <$ac_header>
16393_ACEOF
16394rm -f conftest.$ac_objext
16395if { (ac_try="$ac_compile"
16396case "(($ac_try" in
16397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398  *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401  (eval "$ac_compile") 2>conftest.er1
16402  ac_status=$?
16403  grep -v '^ *+' conftest.er1 >conftest.err
16404  rm -f conftest.er1
16405  cat conftest.err >&5
16406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407  (exit $ac_status); } &&
16408	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16409  { (case "(($ac_try" in
16410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411  *) ac_try_echo=$ac_try;;
16412esac
16413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414  (eval "$ac_try") 2>&5
16415  ac_status=$?
16416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417  (exit $ac_status); }; } &&
16418	 { ac_try='test -s conftest.$ac_objext'
16419  { (case "(($ac_try" in
16420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421  *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424  (eval "$ac_try") 2>&5
16425  ac_status=$?
16426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427  (exit $ac_status); }; }; then
16428  ac_header_compiler=yes
16429else
16430  echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433	ac_header_compiler=no
16434fi
16435
16436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16438echo "${ECHO_T}$ac_header_compiler" >&6; }
16439
16440# Is the header present?
16441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16443cat >conftest.$ac_ext <<_ACEOF
16444/* confdefs.h.  */
16445_ACEOF
16446cat confdefs.h >>conftest.$ac_ext
16447cat >>conftest.$ac_ext <<_ACEOF
16448/* end confdefs.h.  */
16449#include <$ac_header>
16450_ACEOF
16451if { (ac_try="$ac_cpp conftest.$ac_ext"
16452case "(($ac_try" in
16453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454  *) ac_try_echo=$ac_try;;
16455esac
16456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16458  ac_status=$?
16459  grep -v '^ *+' conftest.er1 >conftest.err
16460  rm -f conftest.er1
16461  cat conftest.err >&5
16462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463  (exit $ac_status); } >/dev/null; then
16464  if test -s conftest.err; then
16465    ac_cpp_err=$ac_c_preproc_warn_flag
16466    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16467  else
16468    ac_cpp_err=
16469  fi
16470else
16471  ac_cpp_err=yes
16472fi
16473if test -z "$ac_cpp_err"; then
16474  ac_header_preproc=yes
16475else
16476  echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479  ac_header_preproc=no
16480fi
16481
16482rm -f conftest.err conftest.$ac_ext
16483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484echo "${ECHO_T}$ac_header_preproc" >&6; }
16485
16486# So?  What about this header?
16487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488  yes:no: )
16489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16493    ac_header_preproc=yes
16494    ;;
16495  no:yes:* )
16496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16498    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16499echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16500    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16502    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16503echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16506    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16508    ( cat <<\_ASBOX
16509## ------------------------------------ ##
16510## Report this to http://llvm.org/bugs/ ##
16511## ------------------------------------ ##
16512_ASBOX
16513     ) | sed "s/^/$as_me: WARNING:     /" >&2
16514    ;;
16515esac
16516{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519  echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521  eval "$as_ac_Header=\$ac_header_preproc"
16522fi
16523ac_res=`eval echo '${'$as_ac_Header'}'`
16524	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16525echo "${ECHO_T}$ac_res" >&6; }
16526
16527fi
16528if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529  cat >>confdefs.h <<_ACEOF
16530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16531_ACEOF
16532 HAVE_LIBZ=1
16533
16534else
16535  HAVE_LIBZ=0
16536
16537fi
16538
16539done
16540
16541else
16542  HAVE_LIBZ=0
16543
16544fi
16545
16546if test "$llvm_cv_enable_curses" = "yes" ; then
16547
16548
16549
16550
16551
16552for ac_header in curses.h ncurses.h ncursesw.h ncurses/curses.h ncursesw/curses.h
16553do
16554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16556  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16559  echo $ECHO_N "(cached) $ECHO_C" >&6
16560fi
16561ac_res=`eval echo '${'$as_ac_Header'}'`
16562	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16563echo "${ECHO_T}$ac_res" >&6; }
16564else
16565  # Is the header compilable?
16566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16568cat >conftest.$ac_ext <<_ACEOF
16569/* confdefs.h.  */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h.  */
16574$ac_includes_default
16575#include <$ac_header>
16576_ACEOF
16577rm -f conftest.$ac_objext
16578if { (ac_try="$ac_compile"
16579case "(($ac_try" in
16580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581  *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584  (eval "$ac_compile") 2>conftest.er1
16585  ac_status=$?
16586  grep -v '^ *+' conftest.er1 >conftest.err
16587  rm -f conftest.er1
16588  cat conftest.err >&5
16589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590  (exit $ac_status); } &&
16591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592  { (case "(($ac_try" in
16593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594  *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597  (eval "$ac_try") 2>&5
16598  ac_status=$?
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); }; } &&
16601	 { ac_try='test -s conftest.$ac_objext'
16602  { (case "(($ac_try" in
16603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604  *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607  (eval "$ac_try") 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; }; then
16611  ac_header_compiler=yes
16612else
16613  echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616	ac_header_compiler=no
16617fi
16618
16619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16621echo "${ECHO_T}$ac_header_compiler" >&6; }
16622
16623# Is the header present?
16624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16626cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h.  */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h.  */
16632#include <$ac_header>
16633_ACEOF
16634if { (ac_try="$ac_cpp conftest.$ac_ext"
16635case "(($ac_try" in
16636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637  *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16641  ac_status=$?
16642  grep -v '^ *+' conftest.er1 >conftest.err
16643  rm -f conftest.er1
16644  cat conftest.err >&5
16645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646  (exit $ac_status); } >/dev/null; then
16647  if test -s conftest.err; then
16648    ac_cpp_err=$ac_c_preproc_warn_flag
16649    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16650  else
16651    ac_cpp_err=
16652  fi
16653else
16654  ac_cpp_err=yes
16655fi
16656if test -z "$ac_cpp_err"; then
16657  ac_header_preproc=yes
16658else
16659  echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662  ac_header_preproc=no
16663fi
16664
16665rm -f conftest.err conftest.$ac_ext
16666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16667echo "${ECHO_T}$ac_header_preproc" >&6; }
16668
16669# So?  What about this header?
16670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16671  yes:no: )
16672    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16674    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16676    ac_header_preproc=yes
16677    ;;
16678  no:yes:* )
16679    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16681    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16682echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16683    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16685    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16686echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16687    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16689    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16691    ( cat <<\_ASBOX
16692## ------------------------------------ ##
16693## Report this to http://llvm.org/bugs/ ##
16694## ------------------------------------ ##
16695_ASBOX
16696     ) | sed "s/^/$as_me: WARNING:     /" >&2
16697    ;;
16698esac
16699{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16702  echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704  eval "$as_ac_Header=\$ac_header_preproc"
16705fi
16706ac_res=`eval echo '${'$as_ac_Header'}'`
16707	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16708echo "${ECHO_T}$ac_res" >&6; }
16709
16710fi
16711if test `eval echo '${'$as_ac_Header'}'` = yes; then
16712  cat >>confdefs.h <<_ACEOF
16713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16714_ACEOF
16715
16716fi
16717
16718done
16719
16720fi
16721
16722if test "$llvm_cv_enable_libffi" = "yes" ; then
16723
16724
16725for ac_header in ffi.h ffi/ffi.h
16726do
16727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16732  echo $ECHO_N "(cached) $ECHO_C" >&6
16733fi
16734ac_res=`eval echo '${'$as_ac_Header'}'`
16735	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16736echo "${ECHO_T}$ac_res" >&6; }
16737else
16738  # Is the header compilable?
16739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16741cat >conftest.$ac_ext <<_ACEOF
16742/* confdefs.h.  */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h.  */
16747$ac_includes_default
16748#include <$ac_header>
16749_ACEOF
16750rm -f conftest.$ac_objext
16751if { (ac_try="$ac_compile"
16752case "(($ac_try" in
16753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754  *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757  (eval "$ac_compile") 2>conftest.er1
16758  ac_status=$?
16759  grep -v '^ *+' conftest.er1 >conftest.err
16760  rm -f conftest.er1
16761  cat conftest.err >&5
16762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); } &&
16764	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765  { (case "(($ac_try" in
16766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767  *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770  (eval "$ac_try") 2>&5
16771  ac_status=$?
16772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773  (exit $ac_status); }; } &&
16774	 { ac_try='test -s conftest.$ac_objext'
16775  { (case "(($ac_try" in
16776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777  *) ac_try_echo=$ac_try;;
16778esac
16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780  (eval "$ac_try") 2>&5
16781  ac_status=$?
16782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783  (exit $ac_status); }; }; then
16784  ac_header_compiler=yes
16785else
16786  echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789	ac_header_compiler=no
16790fi
16791
16792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16794echo "${ECHO_T}$ac_header_compiler" >&6; }
16795
16796# Is the header present?
16797{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16799cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h.  */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h.  */
16805#include <$ac_header>
16806_ACEOF
16807if { (ac_try="$ac_cpp conftest.$ac_ext"
16808case "(($ac_try" in
16809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810  *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16814  ac_status=$?
16815  grep -v '^ *+' conftest.er1 >conftest.err
16816  rm -f conftest.er1
16817  cat conftest.err >&5
16818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819  (exit $ac_status); } >/dev/null; then
16820  if test -s conftest.err; then
16821    ac_cpp_err=$ac_c_preproc_warn_flag
16822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16823  else
16824    ac_cpp_err=
16825  fi
16826else
16827  ac_cpp_err=yes
16828fi
16829if test -z "$ac_cpp_err"; then
16830  ac_header_preproc=yes
16831else
16832  echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835  ac_header_preproc=no
16836fi
16837
16838rm -f conftest.err conftest.$ac_ext
16839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16840echo "${ECHO_T}$ac_header_preproc" >&6; }
16841
16842# So?  What about this header?
16843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16844  yes:no: )
16845    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16847    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16849    ac_header_preproc=yes
16850    ;;
16851  no:yes:* )
16852    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16854    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16855echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16856    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16858    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16859echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16862    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16864    ( cat <<\_ASBOX
16865## ------------------------------------ ##
16866## Report this to http://llvm.org/bugs/ ##
16867## ------------------------------------ ##
16868_ASBOX
16869     ) | sed "s/^/$as_me: WARNING:     /" >&2
16870    ;;
16871esac
16872{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16875  echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877  eval "$as_ac_Header=\$ac_header_preproc"
16878fi
16879ac_res=`eval echo '${'$as_ac_Header'}'`
16880	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16881echo "${ECHO_T}$ac_res" >&6; }
16882
16883fi
16884if test `eval echo '${'$as_ac_Header'}'` = yes; then
16885  cat >>confdefs.h <<_ACEOF
16886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16887_ACEOF
16888
16889fi
16890
16891done
16892
16893fi
16894
16895
16896for ac_header in CrashReporterClient.h
16897do
16898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16900  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16903  echo $ECHO_N "(cached) $ECHO_C" >&6
16904fi
16905ac_res=`eval echo '${'$as_ac_Header'}'`
16906	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16907echo "${ECHO_T}$ac_res" >&6; }
16908else
16909  # Is the header compilable?
16910{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16912cat >conftest.$ac_ext <<_ACEOF
16913/* confdefs.h.  */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h.  */
16918$ac_includes_default
16919#include <$ac_header>
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (ac_try="$ac_compile"
16923case "(($ac_try" in
16924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925  *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928  (eval "$ac_compile") 2>conftest.er1
16929  ac_status=$?
16930  grep -v '^ *+' conftest.er1 >conftest.err
16931  rm -f conftest.er1
16932  cat conftest.err >&5
16933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934  (exit $ac_status); } &&
16935	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936  { (case "(($ac_try" in
16937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938  *) ac_try_echo=$ac_try;;
16939esac
16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941  (eval "$ac_try") 2>&5
16942  ac_status=$?
16943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944  (exit $ac_status); }; } &&
16945	 { ac_try='test -s conftest.$ac_objext'
16946  { (case "(($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_try") 2>&5
16952  ac_status=$?
16953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954  (exit $ac_status); }; }; then
16955  ac_header_compiler=yes
16956else
16957  echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
16960	ac_header_compiler=no
16961fi
16962
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965echo "${ECHO_T}$ac_header_compiler" >&6; }
16966
16967# Is the header present?
16968{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16970cat >conftest.$ac_ext <<_ACEOF
16971/* confdefs.h.  */
16972_ACEOF
16973cat confdefs.h >>conftest.$ac_ext
16974cat >>conftest.$ac_ext <<_ACEOF
16975/* end confdefs.h.  */
16976#include <$ac_header>
16977_ACEOF
16978if { (ac_try="$ac_cpp conftest.$ac_ext"
16979case "(($ac_try" in
16980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981  *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16985  ac_status=$?
16986  grep -v '^ *+' conftest.er1 >conftest.err
16987  rm -f conftest.er1
16988  cat conftest.err >&5
16989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990  (exit $ac_status); } >/dev/null; then
16991  if test -s conftest.err; then
16992    ac_cpp_err=$ac_c_preproc_warn_flag
16993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16994  else
16995    ac_cpp_err=
16996  fi
16997else
16998  ac_cpp_err=yes
16999fi
17000if test -z "$ac_cpp_err"; then
17001  ac_header_preproc=yes
17002else
17003  echo "$as_me: failed program was:" >&5
17004sed 's/^/| /' conftest.$ac_ext >&5
17005
17006  ac_header_preproc=no
17007fi
17008
17009rm -f conftest.err conftest.$ac_ext
17010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17011echo "${ECHO_T}$ac_header_preproc" >&6; }
17012
17013# So?  What about this header?
17014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17015  yes:no: )
17016    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17020    ac_header_preproc=yes
17021    ;;
17022  no:yes:* )
17023    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17025    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17026echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17027    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17029    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17030echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17031    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17033    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17035    ( cat <<\_ASBOX
17036## ------------------------------------ ##
17037## Report this to http://llvm.org/bugs/ ##
17038## ------------------------------------ ##
17039_ASBOX
17040     ) | sed "s/^/$as_me: WARNING:     /" >&2
17041    ;;
17042esac
17043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046  echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048  eval "$as_ac_Header=\$ac_header_preproc"
17049fi
17050ac_res=`eval echo '${'$as_ac_Header'}'`
17051	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17052echo "${ECHO_T}$ac_res" >&6; }
17053
17054fi
17055if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056  cat >>confdefs.h <<_ACEOF
17057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17058_ACEOF
17059
17060fi
17061
17062done
17063
17064
17065{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17066echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17067cat >conftest.$ac_ext <<_ACEOF
17068
17069  /* confdefs.h.  */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h.  */
17074
17075    extern const char *__crashreporter_info__;
17076    int main() {
17077      __crashreporter_info__ = "test";
17078      return 0;
17079    }
17080
17081
17082_ACEOF
17083rm -f conftest.$ac_objext conftest$ac_exeext
17084if { (ac_try="$ac_link"
17085case "(($ac_try" in
17086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087  *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090  (eval "$ac_link") 2>conftest.er1
17091  ac_status=$?
17092  grep -v '^ *+' conftest.er1 >conftest.err
17093  rm -f conftest.er1
17094  cat conftest.err >&5
17095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096  (exit $ac_status); } &&
17097	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098  { (case "(($ac_try" in
17099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100  *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103  (eval "$ac_try") 2>&5
17104  ac_status=$?
17105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106  (exit $ac_status); }; } &&
17107	 { ac_try='test -s conftest$ac_exeext'
17108  { (case "(($ac_try" in
17109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110  *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113  (eval "$ac_try") 2>&5
17114  ac_status=$?
17115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116  (exit $ac_status); }; }; then
17117
17118  { echo "$as_me:$LINENO: result: yes" >&5
17119echo "${ECHO_T}yes" >&6; }
17120
17121cat >>confdefs.h <<\_ACEOF
17122#define HAVE_CRASHREPORTER_INFO 1
17123_ACEOF
17124
17125
17126else
17127  echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130
17131  { echo "$as_me:$LINENO: result: no" >&5
17132echo "${ECHO_T}no" >&6; }
17133
17134cat >>confdefs.h <<\_ACEOF
17135#define HAVE_CRASHREPORTER_INFO 0
17136_ACEOF
17137
17138
17139fi
17140
17141rm -f core conftest.err conftest.$ac_objext \
17142      conftest$ac_exeext conftest.$ac_ext
17143
17144
17145
17146  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17147echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17148if test "${ac_cv_huge_val_sanity+set}" = set; then
17149  echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151
17152    ac_ext=cpp
17153ac_cpp='$CXXCPP $CPPFLAGS'
17154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17157
17158    ac_save_CXXFLAGS=$CXXFLAGS
17159    CXXFLAGS="$CXXFLAGS -pedantic"
17160    if test "$cross_compiling" = yes; then
17161  ac_cv_huge_val_sanity=yes
17162else
17163  cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h.  */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h.  */
17169#include <math.h>
17170int
17171main ()
17172{
17173double x = HUGE_VAL; return x != x;
17174  ;
17175  return 0;
17176}
17177_ACEOF
17178rm -f conftest$ac_exeext
17179if { (ac_try="$ac_link"
17180case "(($ac_try" in
17181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182  *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185  (eval "$ac_link") 2>&5
17186  ac_status=$?
17187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17189  { (case "(($ac_try" in
17190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191  *) ac_try_echo=$ac_try;;
17192esac
17193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194  (eval "$ac_try") 2>&5
17195  ac_status=$?
17196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197  (exit $ac_status); }; }; then
17198  ac_cv_huge_val_sanity=yes
17199else
17200  echo "$as_me: program exited with status $ac_status" >&5
17201echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204( exit $ac_status )
17205ac_cv_huge_val_sanity=no
17206fi
17207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17208fi
17209
17210
17211    CXXFLAGS=$ac_save_CXXFLAGS
17212    ac_ext=c
17213ac_cpp='$CPP $CPPFLAGS'
17214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17216ac_compiler_gnu=$ac_cv_c_compiler_gnu
17217
17218
17219fi
17220{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17221echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17222  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17223
17224
17225{ echo "$as_me:$LINENO: checking for pid_t" >&5
17226echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17227if test "${ac_cv_type_pid_t+set}" = set; then
17228  echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230  cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h.  */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h.  */
17236$ac_includes_default
17237typedef pid_t ac__type_new_;
17238int
17239main ()
17240{
17241if ((ac__type_new_ *) 0)
17242  return 0;
17243if (sizeof (ac__type_new_))
17244  return 0;
17245  ;
17246  return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (ac_try="$ac_compile"
17251case "(($ac_try" in
17252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253  *) ac_try_echo=$ac_try;;
17254esac
17255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256  (eval "$ac_compile") 2>conftest.er1
17257  ac_status=$?
17258  grep -v '^ *+' conftest.er1 >conftest.err
17259  rm -f conftest.er1
17260  cat conftest.err >&5
17261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262  (exit $ac_status); } &&
17263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17264  { (case "(($ac_try" in
17265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266  *) ac_try_echo=$ac_try;;
17267esac
17268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269  (eval "$ac_try") 2>&5
17270  ac_status=$?
17271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272  (exit $ac_status); }; } &&
17273	 { ac_try='test -s conftest.$ac_objext'
17274  { (case "(($ac_try" in
17275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276  *) ac_try_echo=$ac_try;;
17277esac
17278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279  (eval "$ac_try") 2>&5
17280  ac_status=$?
17281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282  (exit $ac_status); }; }; then
17283  ac_cv_type_pid_t=yes
17284else
17285  echo "$as_me: failed program was:" >&5
17286sed 's/^/| /' conftest.$ac_ext >&5
17287
17288	ac_cv_type_pid_t=no
17289fi
17290
17291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292fi
17293{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17294echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17295if test $ac_cv_type_pid_t = yes; then
17296  :
17297else
17298
17299cat >>confdefs.h <<_ACEOF
17300#define pid_t int
17301_ACEOF
17302
17303fi
17304
17305{ echo "$as_me:$LINENO: checking for size_t" >&5
17306echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17307if test "${ac_cv_type_size_t+set}" = set; then
17308  echo $ECHO_N "(cached) $ECHO_C" >&6
17309else
17310  cat >conftest.$ac_ext <<_ACEOF
17311/* confdefs.h.  */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h.  */
17316$ac_includes_default
17317typedef size_t ac__type_new_;
17318int
17319main ()
17320{
17321if ((ac__type_new_ *) 0)
17322  return 0;
17323if (sizeof (ac__type_new_))
17324  return 0;
17325  ;
17326  return 0;
17327}
17328_ACEOF
17329rm -f conftest.$ac_objext
17330if { (ac_try="$ac_compile"
17331case "(($ac_try" in
17332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333  *) ac_try_echo=$ac_try;;
17334esac
17335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336  (eval "$ac_compile") 2>conftest.er1
17337  ac_status=$?
17338  grep -v '^ *+' conftest.er1 >conftest.err
17339  rm -f conftest.er1
17340  cat conftest.err >&5
17341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342  (exit $ac_status); } &&
17343	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17344  { (case "(($ac_try" in
17345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346  *) ac_try_echo=$ac_try;;
17347esac
17348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349  (eval "$ac_try") 2>&5
17350  ac_status=$?
17351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352  (exit $ac_status); }; } &&
17353	 { ac_try='test -s conftest.$ac_objext'
17354  { (case "(($ac_try" in
17355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356  *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359  (eval "$ac_try") 2>&5
17360  ac_status=$?
17361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362  (exit $ac_status); }; }; then
17363  ac_cv_type_size_t=yes
17364else
17365  echo "$as_me: failed program was:" >&5
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
17368	ac_cv_type_size_t=no
17369fi
17370
17371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372fi
17373{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17374echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17375if test $ac_cv_type_size_t = yes; then
17376  :
17377else
17378
17379cat >>confdefs.h <<_ACEOF
17380#define size_t unsigned int
17381_ACEOF
17382
17383fi
17384
17385
17386cat >>confdefs.h <<_ACEOF
17387#define RETSIGTYPE void
17388_ACEOF
17389
17390{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17391echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17392if test "${ac_cv_struct_tm+set}" = set; then
17393  echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395  cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h.  */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h.  */
17401#include <sys/types.h>
17402#include <time.h>
17403
17404int
17405main ()
17406{
17407struct tm *tp; tp->tm_sec;
17408  ;
17409  return 0;
17410}
17411_ACEOF
17412rm -f conftest.$ac_objext
17413if { (ac_try="$ac_compile"
17414case "(($ac_try" in
17415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416  *) ac_try_echo=$ac_try;;
17417esac
17418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419  (eval "$ac_compile") 2>conftest.er1
17420  ac_status=$?
17421  grep -v '^ *+' conftest.er1 >conftest.err
17422  rm -f conftest.er1
17423  cat conftest.err >&5
17424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425  (exit $ac_status); } &&
17426	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17427  { (case "(($ac_try" in
17428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429  *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432  (eval "$ac_try") 2>&5
17433  ac_status=$?
17434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435  (exit $ac_status); }; } &&
17436	 { ac_try='test -s conftest.$ac_objext'
17437  { (case "(($ac_try" in
17438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439  *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442  (eval "$ac_try") 2>&5
17443  ac_status=$?
17444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445  (exit $ac_status); }; }; then
17446  ac_cv_struct_tm=time.h
17447else
17448  echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451	ac_cv_struct_tm=sys/time.h
17452fi
17453
17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455fi
17456{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17457echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17458if test $ac_cv_struct_tm = sys/time.h; then
17459
17460cat >>confdefs.h <<\_ACEOF
17461#define TM_IN_SYS_TIME 1
17462_ACEOF
17463
17464fi
17465
17466{ echo "$as_me:$LINENO: checking for int64_t" >&5
17467echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17468if test "${ac_cv_type_int64_t+set}" = set; then
17469  echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471  cat >conftest.$ac_ext <<_ACEOF
17472/* confdefs.h.  */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h.  */
17477$ac_includes_default
17478typedef int64_t ac__type_new_;
17479int
17480main ()
17481{
17482if ((ac__type_new_ *) 0)
17483  return 0;
17484if (sizeof (ac__type_new_))
17485  return 0;
17486  ;
17487  return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext
17491if { (ac_try="$ac_compile"
17492case "(($ac_try" in
17493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494  *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497  (eval "$ac_compile") 2>conftest.er1
17498  ac_status=$?
17499  grep -v '^ *+' conftest.er1 >conftest.err
17500  rm -f conftest.er1
17501  cat conftest.err >&5
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); } &&
17504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17514	 { ac_try='test -s conftest.$ac_objext'
17515  { (case "(($ac_try" in
17516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517  *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520  (eval "$ac_try") 2>&5
17521  ac_status=$?
17522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523  (exit $ac_status); }; }; then
17524  ac_cv_type_int64_t=yes
17525else
17526  echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529	ac_cv_type_int64_t=no
17530fi
17531
17532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533fi
17534{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17535echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17536if test $ac_cv_type_int64_t = yes; then
17537
17538cat >>confdefs.h <<_ACEOF
17539#define HAVE_INT64_T 1
17540_ACEOF
17541
17542
17543else
17544  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17545echo "$as_me: error: Type int64_t required but not found" >&2;}
17546   { (exit 1); exit 1; }; }
17547fi
17548
17549{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17550echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17551if test "${ac_cv_type_uint64_t+set}" = set; then
17552  echo $ECHO_N "(cached) $ECHO_C" >&6
17553else
17554  cat >conftest.$ac_ext <<_ACEOF
17555/* confdefs.h.  */
17556_ACEOF
17557cat confdefs.h >>conftest.$ac_ext
17558cat >>conftest.$ac_ext <<_ACEOF
17559/* end confdefs.h.  */
17560$ac_includes_default
17561typedef uint64_t ac__type_new_;
17562int
17563main ()
17564{
17565if ((ac__type_new_ *) 0)
17566  return 0;
17567if (sizeof (ac__type_new_))
17568  return 0;
17569  ;
17570  return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext
17574if { (ac_try="$ac_compile"
17575case "(($ac_try" in
17576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577  *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580  (eval "$ac_compile") 2>conftest.er1
17581  ac_status=$?
17582  grep -v '^ *+' conftest.er1 >conftest.err
17583  rm -f conftest.er1
17584  cat conftest.err >&5
17585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586  (exit $ac_status); } &&
17587	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588  { (case "(($ac_try" in
17589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590  *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593  (eval "$ac_try") 2>&5
17594  ac_status=$?
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); }; } &&
17597	 { ac_try='test -s conftest.$ac_objext'
17598  { (case "(($ac_try" in
17599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600  *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603  (eval "$ac_try") 2>&5
17604  ac_status=$?
17605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606  (exit $ac_status); }; }; then
17607  ac_cv_type_uint64_t=yes
17608else
17609  echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
17612	ac_cv_type_uint64_t=no
17613fi
17614
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616fi
17617{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17618echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17619if test $ac_cv_type_uint64_t = yes; then
17620
17621cat >>confdefs.h <<_ACEOF
17622#define HAVE_UINT64_T 1
17623_ACEOF
17624
17625
17626else
17627  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17628echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17629if test "${ac_cv_type_u_int64_t+set}" = set; then
17630  echo $ECHO_N "(cached) $ECHO_C" >&6
17631else
17632  cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h.  */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h.  */
17638$ac_includes_default
17639typedef u_int64_t ac__type_new_;
17640int
17641main ()
17642{
17643if ((ac__type_new_ *) 0)
17644  return 0;
17645if (sizeof (ac__type_new_))
17646  return 0;
17647  ;
17648  return 0;
17649}
17650_ACEOF
17651rm -f conftest.$ac_objext
17652if { (ac_try="$ac_compile"
17653case "(($ac_try" in
17654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655  *) ac_try_echo=$ac_try;;
17656esac
17657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658  (eval "$ac_compile") 2>conftest.er1
17659  ac_status=$?
17660  grep -v '^ *+' conftest.er1 >conftest.err
17661  rm -f conftest.er1
17662  cat conftest.err >&5
17663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664  (exit $ac_status); } &&
17665	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666  { (case "(($ac_try" in
17667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668  *) ac_try_echo=$ac_try;;
17669esac
17670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671  (eval "$ac_try") 2>&5
17672  ac_status=$?
17673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674  (exit $ac_status); }; } &&
17675	 { ac_try='test -s conftest.$ac_objext'
17676  { (case "(($ac_try" in
17677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678  *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681  (eval "$ac_try") 2>&5
17682  ac_status=$?
17683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684  (exit $ac_status); }; }; then
17685  ac_cv_type_u_int64_t=yes
17686else
17687  echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690	ac_cv_type_u_int64_t=no
17691fi
17692
17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694fi
17695{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17696echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17697if test $ac_cv_type_u_int64_t = yes; then
17698
17699cat >>confdefs.h <<_ACEOF
17700#define HAVE_U_INT64_T 1
17701_ACEOF
17702
17703
17704else
17705  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17706echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17707   { (exit 1); exit 1; }; }
17708fi
17709
17710fi
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17722do
17723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17727  echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729  cat >conftest.$ac_ext <<_ACEOF
17730/* confdefs.h.  */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h.  */
17735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17737#define $ac_func innocuous_$ac_func
17738
17739/* System header to define __stub macros and hopefully few prototypes,
17740    which can conflict with char $ac_func (); below.
17741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17742    <limits.h> exists even on freestanding compilers.  */
17743
17744#ifdef __STDC__
17745# include <limits.h>
17746#else
17747# include <assert.h>
17748#endif
17749
17750#undef $ac_func
17751
17752/* Override any GCC internal prototype to avoid an error.
17753   Use char because int might match the return type of a GCC
17754   builtin and then its argument prototype would still apply.  */
17755#ifdef __cplusplus
17756extern "C"
17757#endif
17758char $ac_func ();
17759/* The GNU C library defines this for functions which it implements
17760    to always fail with ENOSYS.  Some functions are actually named
17761    something starting with __ and the normal name is an alias.  */
17762#if defined __stub_$ac_func || defined __stub___$ac_func
17763choke me
17764#endif
17765
17766int
17767main ()
17768{
17769return $ac_func ();
17770  ;
17771  return 0;
17772}
17773_ACEOF
17774rm -f conftest.$ac_objext conftest$ac_exeext
17775if { (ac_try="$ac_link"
17776case "(($ac_try" in
17777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778  *) ac_try_echo=$ac_try;;
17779esac
17780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781  (eval "$ac_link") 2>conftest.er1
17782  ac_status=$?
17783  grep -v '^ *+' conftest.er1 >conftest.err
17784  rm -f conftest.er1
17785  cat conftest.err >&5
17786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); } &&
17788	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17789  { (case "(($ac_try" in
17790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791  *) ac_try_echo=$ac_try;;
17792esac
17793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794  (eval "$ac_try") 2>&5
17795  ac_status=$?
17796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797  (exit $ac_status); }; } &&
17798	 { ac_try='test -s conftest$ac_exeext'
17799  { (case "(($ac_try" in
17800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801  *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804  (eval "$ac_try") 2>&5
17805  ac_status=$?
17806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807  (exit $ac_status); }; }; then
17808  eval "$as_ac_var=yes"
17809else
17810  echo "$as_me: failed program was:" >&5
17811sed 's/^/| /' conftest.$ac_ext >&5
17812
17813	eval "$as_ac_var=no"
17814fi
17815
17816rm -f core conftest.err conftest.$ac_objext \
17817      conftest$ac_exeext conftest.$ac_ext
17818fi
17819ac_res=`eval echo '${'$as_ac_var'}'`
17820	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17821echo "${ECHO_T}$ac_res" >&6; }
17822if test `eval echo '${'$as_ac_var'}'` = yes; then
17823  cat >>confdefs.h <<_ACEOF
17824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17825_ACEOF
17826
17827fi
17828done
17829
17830
17831
17832
17833
17834for ac_func in powf fmodf strtof round
17835do
17836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17840  echo $ECHO_N "(cached) $ECHO_C" >&6
17841else
17842  cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h.  */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h.  */
17848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17850#define $ac_func innocuous_$ac_func
17851
17852/* System header to define __stub macros and hopefully few prototypes,
17853    which can conflict with char $ac_func (); below.
17854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17855    <limits.h> exists even on freestanding compilers.  */
17856
17857#ifdef __STDC__
17858# include <limits.h>
17859#else
17860# include <assert.h>
17861#endif
17862
17863#undef $ac_func
17864
17865/* Override any GCC internal prototype to avoid an error.
17866   Use char because int might match the return type of a GCC
17867   builtin and then its argument prototype would still apply.  */
17868#ifdef __cplusplus
17869extern "C"
17870#endif
17871char $ac_func ();
17872/* The GNU C library defines this for functions which it implements
17873    to always fail with ENOSYS.  Some functions are actually named
17874    something starting with __ and the normal name is an alias.  */
17875#if defined __stub_$ac_func || defined __stub___$ac_func
17876choke me
17877#endif
17878
17879int
17880main ()
17881{
17882return $ac_func ();
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (ac_try="$ac_link"
17889case "(($ac_try" in
17890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891  *) ac_try_echo=$ac_try;;
17892esac
17893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894  (eval "$ac_link") 2>conftest.er1
17895  ac_status=$?
17896  grep -v '^ *+' conftest.er1 >conftest.err
17897  rm -f conftest.er1
17898  cat conftest.err >&5
17899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900  (exit $ac_status); } &&
17901	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17902  { (case "(($ac_try" in
17903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904  *) ac_try_echo=$ac_try;;
17905esac
17906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907  (eval "$ac_try") 2>&5
17908  ac_status=$?
17909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910  (exit $ac_status); }; } &&
17911	 { ac_try='test -s conftest$ac_exeext'
17912  { (case "(($ac_try" in
17913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914  *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917  (eval "$ac_try") 2>&5
17918  ac_status=$?
17919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920  (exit $ac_status); }; }; then
17921  eval "$as_ac_var=yes"
17922else
17923  echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926	eval "$as_ac_var=no"
17927fi
17928
17929rm -f core conftest.err conftest.$ac_objext \
17930      conftest$ac_exeext conftest.$ac_ext
17931fi
17932ac_res=`eval echo '${'$as_ac_var'}'`
17933	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17934echo "${ECHO_T}$ac_res" >&6; }
17935if test `eval echo '${'$as_ac_var'}'` = yes; then
17936  cat >>confdefs.h <<_ACEOF
17937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17938_ACEOF
17939
17940fi
17941done
17942
17943
17944
17945
17946
17947
17948for ac_func in log log2 log10 exp exp2
17949do
17950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17954  echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956  cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h.  */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h.  */
17962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17964#define $ac_func innocuous_$ac_func
17965
17966/* System header to define __stub macros and hopefully few prototypes,
17967    which can conflict with char $ac_func (); below.
17968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17969    <limits.h> exists even on freestanding compilers.  */
17970
17971#ifdef __STDC__
17972# include <limits.h>
17973#else
17974# include <assert.h>
17975#endif
17976
17977#undef $ac_func
17978
17979/* Override any GCC internal prototype to avoid an error.
17980   Use char because int might match the return type of a GCC
17981   builtin and then its argument prototype would still apply.  */
17982#ifdef __cplusplus
17983extern "C"
17984#endif
17985char $ac_func ();
17986/* The GNU C library defines this for functions which it implements
17987    to always fail with ENOSYS.  Some functions are actually named
17988    something starting with __ and the normal name is an alias.  */
17989#if defined __stub_$ac_func || defined __stub___$ac_func
17990choke me
17991#endif
17992
17993int
17994main ()
17995{
17996return $ac_func ();
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (ac_try="$ac_link"
18003case "(($ac_try" in
18004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005  *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008  (eval "$ac_link") 2>conftest.er1
18009  ac_status=$?
18010  grep -v '^ *+' conftest.er1 >conftest.err
18011  rm -f conftest.er1
18012  cat conftest.err >&5
18013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014  (exit $ac_status); } &&
18015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016  { (case "(($ac_try" in
18017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018  *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021  (eval "$ac_try") 2>&5
18022  ac_status=$?
18023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024  (exit $ac_status); }; } &&
18025	 { ac_try='test -s conftest$ac_exeext'
18026  { (case "(($ac_try" in
18027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028  *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031  (eval "$ac_try") 2>&5
18032  ac_status=$?
18033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034  (exit $ac_status); }; }; then
18035  eval "$as_ac_var=yes"
18036else
18037  echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040	eval "$as_ac_var=no"
18041fi
18042
18043rm -f core conftest.err conftest.$ac_objext \
18044      conftest$ac_exeext conftest.$ac_ext
18045fi
18046ac_res=`eval echo '${'$as_ac_var'}'`
18047	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18048echo "${ECHO_T}$ac_res" >&6; }
18049if test `eval echo '${'$as_ac_var'}'` = yes; then
18050  cat >>confdefs.h <<_ACEOF
18051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18052_ACEOF
18053
18054fi
18055done
18056
18057
18058
18059
18060
18061
18062for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18063do
18064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18068  echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070  cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h.  */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h.  */
18076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18078#define $ac_func innocuous_$ac_func
18079
18080/* System header to define __stub macros and hopefully few prototypes,
18081    which can conflict with char $ac_func (); below.
18082    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083    <limits.h> exists even on freestanding compilers.  */
18084
18085#ifdef __STDC__
18086# include <limits.h>
18087#else
18088# include <assert.h>
18089#endif
18090
18091#undef $ac_func
18092
18093/* Override any GCC internal prototype to avoid an error.
18094   Use char because int might match the return type of a GCC
18095   builtin and then its argument prototype would still apply.  */
18096#ifdef __cplusplus
18097extern "C"
18098#endif
18099char $ac_func ();
18100/* The GNU C library defines this for functions which it implements
18101    to always fail with ENOSYS.  Some functions are actually named
18102    something starting with __ and the normal name is an alias.  */
18103#if defined __stub_$ac_func || defined __stub___$ac_func
18104choke me
18105#endif
18106
18107int
18108main ()
18109{
18110return $ac_func ();
18111  ;
18112  return 0;
18113}
18114_ACEOF
18115rm -f conftest.$ac_objext conftest$ac_exeext
18116if { (ac_try="$ac_link"
18117case "(($ac_try" in
18118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119  *) ac_try_echo=$ac_try;;
18120esac
18121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122  (eval "$ac_link") 2>conftest.er1
18123  ac_status=$?
18124  grep -v '^ *+' conftest.er1 >conftest.err
18125  rm -f conftest.er1
18126  cat conftest.err >&5
18127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128  (exit $ac_status); } &&
18129	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130  { (case "(($ac_try" in
18131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132  *) ac_try_echo=$ac_try;;
18133esac
18134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135  (eval "$ac_try") 2>&5
18136  ac_status=$?
18137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138  (exit $ac_status); }; } &&
18139	 { ac_try='test -s conftest$ac_exeext'
18140  { (case "(($ac_try" in
18141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142  *) ac_try_echo=$ac_try;;
18143esac
18144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145  (eval "$ac_try") 2>&5
18146  ac_status=$?
18147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148  (exit $ac_status); }; }; then
18149  eval "$as_ac_var=yes"
18150else
18151  echo "$as_me: failed program was:" >&5
18152sed 's/^/| /' conftest.$ac_ext >&5
18153
18154	eval "$as_ac_var=no"
18155fi
18156
18157rm -f core conftest.err conftest.$ac_objext \
18158      conftest$ac_exeext conftest.$ac_ext
18159fi
18160ac_res=`eval echo '${'$as_ac_var'}'`
18161	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18162echo "${ECHO_T}$ac_res" >&6; }
18163if test `eval echo '${'$as_ac_var'}'` = yes; then
18164  cat >>confdefs.h <<_ACEOF
18165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18166_ACEOF
18167
18168fi
18169done
18170
18171
18172
18173
18174for ac_func in isatty mkdtemp mkstemp
18175do
18176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18177{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18180  echo $ECHO_N "(cached) $ECHO_C" >&6
18181else
18182  cat >conftest.$ac_ext <<_ACEOF
18183/* confdefs.h.  */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h.  */
18188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18189   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18190#define $ac_func innocuous_$ac_func
18191
18192/* System header to define __stub macros and hopefully few prototypes,
18193    which can conflict with char $ac_func (); below.
18194    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18195    <limits.h> exists even on freestanding compilers.  */
18196
18197#ifdef __STDC__
18198# include <limits.h>
18199#else
18200# include <assert.h>
18201#endif
18202
18203#undef $ac_func
18204
18205/* Override any GCC internal prototype to avoid an error.
18206   Use char because int might match the return type of a GCC
18207   builtin and then its argument prototype would still apply.  */
18208#ifdef __cplusplus
18209extern "C"
18210#endif
18211char $ac_func ();
18212/* The GNU C library defines this for functions which it implements
18213    to always fail with ENOSYS.  Some functions are actually named
18214    something starting with __ and the normal name is an alias.  */
18215#if defined __stub_$ac_func || defined __stub___$ac_func
18216choke me
18217#endif
18218
18219int
18220main ()
18221{
18222return $ac_func ();
18223  ;
18224  return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext conftest$ac_exeext
18228if { (ac_try="$ac_link"
18229case "(($ac_try" in
18230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231  *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234  (eval "$ac_link") 2>conftest.er1
18235  ac_status=$?
18236  grep -v '^ *+' conftest.er1 >conftest.err
18237  rm -f conftest.er1
18238  cat conftest.err >&5
18239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240  (exit $ac_status); } &&
18241	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242  { (case "(($ac_try" in
18243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244  *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247  (eval "$ac_try") 2>&5
18248  ac_status=$?
18249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250  (exit $ac_status); }; } &&
18251	 { ac_try='test -s conftest$ac_exeext'
18252  { (case "(($ac_try" in
18253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254  *) ac_try_echo=$ac_try;;
18255esac
18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257  (eval "$ac_try") 2>&5
18258  ac_status=$?
18259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260  (exit $ac_status); }; }; then
18261  eval "$as_ac_var=yes"
18262else
18263  echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
18266	eval "$as_ac_var=no"
18267fi
18268
18269rm -f core conftest.err conftest.$ac_objext \
18270      conftest$ac_exeext conftest.$ac_ext
18271fi
18272ac_res=`eval echo '${'$as_ac_var'}'`
18273	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18274echo "${ECHO_T}$ac_res" >&6; }
18275if test `eval echo '${'$as_ac_var'}'` = yes; then
18276  cat >>confdefs.h <<_ACEOF
18277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18278_ACEOF
18279
18280fi
18281done
18282
18283
18284
18285
18286
18287
18288
18289for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18290do
18291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18292{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18294if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18295  echo $ECHO_N "(cached) $ECHO_C" >&6
18296else
18297  cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h.  */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h.  */
18303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18304   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18305#define $ac_func innocuous_$ac_func
18306
18307/* System header to define __stub macros and hopefully few prototypes,
18308    which can conflict with char $ac_func (); below.
18309    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310    <limits.h> exists even on freestanding compilers.  */
18311
18312#ifdef __STDC__
18313# include <limits.h>
18314#else
18315# include <assert.h>
18316#endif
18317
18318#undef $ac_func
18319
18320/* Override any GCC internal prototype to avoid an error.
18321   Use char because int might match the return type of a GCC
18322   builtin and then its argument prototype would still apply.  */
18323#ifdef __cplusplus
18324extern "C"
18325#endif
18326char $ac_func ();
18327/* The GNU C library defines this for functions which it implements
18328    to always fail with ENOSYS.  Some functions are actually named
18329    something starting with __ and the normal name is an alias.  */
18330#if defined __stub_$ac_func || defined __stub___$ac_func
18331choke me
18332#endif
18333
18334int
18335main ()
18336{
18337return $ac_func ();
18338  ;
18339  return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (ac_try="$ac_link"
18344case "(($ac_try" in
18345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346  *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349  (eval "$ac_link") 2>conftest.er1
18350  ac_status=$?
18351  grep -v '^ *+' conftest.er1 >conftest.err
18352  rm -f conftest.er1
18353  cat conftest.err >&5
18354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); } &&
18356	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357  { (case "(($ac_try" in
18358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359  *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362  (eval "$ac_try") 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; } &&
18366	 { ac_try='test -s conftest$ac_exeext'
18367  { (case "(($ac_try" in
18368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369  *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372  (eval "$ac_try") 2>&5
18373  ac_status=$?
18374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375  (exit $ac_status); }; }; then
18376  eval "$as_ac_var=yes"
18377else
18378  echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381	eval "$as_ac_var=no"
18382fi
18383
18384rm -f core conftest.err conftest.$ac_objext \
18385      conftest$ac_exeext conftest.$ac_ext
18386fi
18387ac_res=`eval echo '${'$as_ac_var'}'`
18388	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18389echo "${ECHO_T}$ac_res" >&6; }
18390if test `eval echo '${'$as_ac_var'}'` = yes; then
18391  cat >>confdefs.h <<_ACEOF
18392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18393_ACEOF
18394
18395fi
18396done
18397
18398
18399
18400
18401
18402for ac_func in strerror strerror_r setenv arc4random
18403do
18404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18405{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18408  echo $ECHO_N "(cached) $ECHO_C" >&6
18409else
18410  cat >conftest.$ac_ext <<_ACEOF
18411/* confdefs.h.  */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h.  */
18416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18418#define $ac_func innocuous_$ac_func
18419
18420/* System header to define __stub macros and hopefully few prototypes,
18421    which can conflict with char $ac_func (); below.
18422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18423    <limits.h> exists even on freestanding compilers.  */
18424
18425#ifdef __STDC__
18426# include <limits.h>
18427#else
18428# include <assert.h>
18429#endif
18430
18431#undef $ac_func
18432
18433/* Override any GCC internal prototype to avoid an error.
18434   Use char because int might match the return type of a GCC
18435   builtin and then its argument prototype would still apply.  */
18436#ifdef __cplusplus
18437extern "C"
18438#endif
18439char $ac_func ();
18440/* The GNU C library defines this for functions which it implements
18441    to always fail with ENOSYS.  Some functions are actually named
18442    something starting with __ and the normal name is an alias.  */
18443#if defined __stub_$ac_func || defined __stub___$ac_func
18444choke me
18445#endif
18446
18447int
18448main ()
18449{
18450return $ac_func ();
18451  ;
18452  return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext conftest$ac_exeext
18456if { (ac_try="$ac_link"
18457case "(($ac_try" in
18458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459  *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462  (eval "$ac_link") 2>conftest.er1
18463  ac_status=$?
18464  grep -v '^ *+' conftest.er1 >conftest.err
18465  rm -f conftest.er1
18466  cat conftest.err >&5
18467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468  (exit $ac_status); } &&
18469	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18470  { (case "(($ac_try" in
18471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472  *) ac_try_echo=$ac_try;;
18473esac
18474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475  (eval "$ac_try") 2>&5
18476  ac_status=$?
18477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478  (exit $ac_status); }; } &&
18479	 { ac_try='test -s conftest$ac_exeext'
18480  { (case "(($ac_try" in
18481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482  *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485  (eval "$ac_try") 2>&5
18486  ac_status=$?
18487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488  (exit $ac_status); }; }; then
18489  eval "$as_ac_var=yes"
18490else
18491  echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494	eval "$as_ac_var=no"
18495fi
18496
18497rm -f core conftest.err conftest.$ac_objext \
18498      conftest$ac_exeext conftest.$ac_ext
18499fi
18500ac_res=`eval echo '${'$as_ac_var'}'`
18501	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18502echo "${ECHO_T}$ac_res" >&6; }
18503if test `eval echo '${'$as_ac_var'}'` = yes; then
18504  cat >>confdefs.h <<_ACEOF
18505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18506_ACEOF
18507
18508fi
18509done
18510
18511
18512
18513
18514
18515for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18516do
18517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521  echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523  cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h.  */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h.  */
18529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18531#define $ac_func innocuous_$ac_func
18532
18533/* System header to define __stub macros and hopefully few prototypes,
18534    which can conflict with char $ac_func (); below.
18535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536    <limits.h> exists even on freestanding compilers.  */
18537
18538#ifdef __STDC__
18539# include <limits.h>
18540#else
18541# include <assert.h>
18542#endif
18543
18544#undef $ac_func
18545
18546/* Override any GCC internal prototype to avoid an error.
18547   Use char because int might match the return type of a GCC
18548   builtin and then its argument prototype would still apply.  */
18549#ifdef __cplusplus
18550extern "C"
18551#endif
18552char $ac_func ();
18553/* The GNU C library defines this for functions which it implements
18554    to always fail with ENOSYS.  Some functions are actually named
18555    something starting with __ and the normal name is an alias.  */
18556#if defined __stub_$ac_func || defined __stub___$ac_func
18557choke me
18558#endif
18559
18560int
18561main ()
18562{
18563return $ac_func ();
18564  ;
18565  return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
18569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572  *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575  (eval "$ac_link") 2>conftest.er1
18576  ac_status=$?
18577  grep -v '^ *+' conftest.er1 >conftest.err
18578  rm -f conftest.er1
18579  cat conftest.err >&5
18580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581  (exit $ac_status); } &&
18582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18583  { (case "(($ac_try" in
18584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585  *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588  (eval "$ac_try") 2>&5
18589  ac_status=$?
18590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591  (exit $ac_status); }; } &&
18592	 { ac_try='test -s conftest$ac_exeext'
18593  { (case "(($ac_try" in
18594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595  *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598  (eval "$ac_try") 2>&5
18599  ac_status=$?
18600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601  (exit $ac_status); }; }; then
18602  eval "$as_ac_var=yes"
18603else
18604  echo "$as_me: failed program was:" >&5
18605sed 's/^/| /' conftest.$ac_ext >&5
18606
18607	eval "$as_ac_var=no"
18608fi
18609
18610rm -f core conftest.err conftest.$ac_objext \
18611      conftest$ac_exeext conftest.$ac_ext
18612fi
18613ac_res=`eval echo '${'$as_ac_var'}'`
18614	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18615echo "${ECHO_T}$ac_res" >&6; }
18616if test `eval echo '${'$as_ac_var'}'` = yes; then
18617  cat >>confdefs.h <<_ACEOF
18618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18619_ACEOF
18620
18621fi
18622done
18623
18624
18625
18626
18627
18628
18629for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18630do
18631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635  echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637  cat >conftest.$ac_ext <<_ACEOF
18638/* confdefs.h.  */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
18642/* end confdefs.h.  */
18643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18645#define $ac_func innocuous_$ac_func
18646
18647/* System header to define __stub macros and hopefully few prototypes,
18648    which can conflict with char $ac_func (); below.
18649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650    <limits.h> exists even on freestanding compilers.  */
18651
18652#ifdef __STDC__
18653# include <limits.h>
18654#else
18655# include <assert.h>
18656#endif
18657
18658#undef $ac_func
18659
18660/* Override any GCC internal prototype to avoid an error.
18661   Use char because int might match the return type of a GCC
18662   builtin and then its argument prototype would still apply.  */
18663#ifdef __cplusplus
18664extern "C"
18665#endif
18666char $ac_func ();
18667/* The GNU C library defines this for functions which it implements
18668    to always fail with ENOSYS.  Some functions are actually named
18669    something starting with __ and the normal name is an alias.  */
18670#if defined __stub_$ac_func || defined __stub___$ac_func
18671choke me
18672#endif
18673
18674int
18675main ()
18676{
18677return $ac_func ();
18678  ;
18679  return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686  *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689  (eval "$ac_link") 2>conftest.er1
18690  ac_status=$?
18691  grep -v '^ *+' conftest.er1 >conftest.err
18692  rm -f conftest.er1
18693  cat conftest.err >&5
18694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695  (exit $ac_status); } &&
18696	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697  { (case "(($ac_try" in
18698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699  *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702  (eval "$ac_try") 2>&5
18703  ac_status=$?
18704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705  (exit $ac_status); }; } &&
18706	 { ac_try='test -s conftest$ac_exeext'
18707  { (case "(($ac_try" in
18708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709  *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712  (eval "$ac_try") 2>&5
18713  ac_status=$?
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); }; }; then
18716  eval "$as_ac_var=yes"
18717else
18718  echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721	eval "$as_ac_var=no"
18722fi
18723
18724rm -f core conftest.err conftest.$ac_objext \
18725      conftest$ac_exeext conftest.$ac_ext
18726fi
18727ac_res=`eval echo '${'$as_ac_var'}'`
18728	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18729echo "${ECHO_T}$ac_res" >&6; }
18730if test `eval echo '${'$as_ac_var'}'` = yes; then
18731  cat >>confdefs.h <<_ACEOF
18732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18733_ACEOF
18734
18735fi
18736done
18737
18738
18739
18740for ac_func in futimes futimens
18741do
18742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18746  echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748  cat >conftest.$ac_ext <<_ACEOF
18749/* confdefs.h.  */
18750_ACEOF
18751cat confdefs.h >>conftest.$ac_ext
18752cat >>conftest.$ac_ext <<_ACEOF
18753/* end confdefs.h.  */
18754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18756#define $ac_func innocuous_$ac_func
18757
18758/* System header to define __stub macros and hopefully few prototypes,
18759    which can conflict with char $ac_func (); below.
18760    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18761    <limits.h> exists even on freestanding compilers.  */
18762
18763#ifdef __STDC__
18764# include <limits.h>
18765#else
18766# include <assert.h>
18767#endif
18768
18769#undef $ac_func
18770
18771/* Override any GCC internal prototype to avoid an error.
18772   Use char because int might match the return type of a GCC
18773   builtin and then its argument prototype would still apply.  */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777char $ac_func ();
18778/* The GNU C library defines this for functions which it implements
18779    to always fail with ENOSYS.  Some functions are actually named
18780    something starting with __ and the normal name is an alias.  */
18781#if defined __stub_$ac_func || defined __stub___$ac_func
18782choke me
18783#endif
18784
18785int
18786main ()
18787{
18788return $ac_func ();
18789  ;
18790  return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext conftest$ac_exeext
18794if { (ac_try="$ac_link"
18795case "(($ac_try" in
18796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797  *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800  (eval "$ac_link") 2>conftest.er1
18801  ac_status=$?
18802  grep -v '^ *+' conftest.er1 >conftest.err
18803  rm -f conftest.er1
18804  cat conftest.err >&5
18805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806  (exit $ac_status); } &&
18807	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18808  { (case "(($ac_try" in
18809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810  *) ac_try_echo=$ac_try;;
18811esac
18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813  (eval "$ac_try") 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); }; } &&
18817	 { ac_try='test -s conftest$ac_exeext'
18818  { (case "(($ac_try" in
18819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820  *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823  (eval "$ac_try") 2>&5
18824  ac_status=$?
18825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826  (exit $ac_status); }; }; then
18827  eval "$as_ac_var=yes"
18828else
18829  echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832	eval "$as_ac_var=no"
18833fi
18834
18835rm -f core conftest.err conftest.$ac_objext \
18836      conftest$ac_exeext conftest.$ac_ext
18837fi
18838ac_res=`eval echo '${'$as_ac_var'}'`
18839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18840echo "${ECHO_T}$ac_res" >&6; }
18841if test `eval echo '${'$as_ac_var'}'` = yes; then
18842  cat >>confdefs.h <<_ACEOF
18843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18844_ACEOF
18845
18846fi
18847done
18848
18849{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18850echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18851if test "${llvm_cv_c_printf_a+set}" = set; then
18852  echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854  ac_ext=c
18855ac_cpp='$CPP $CPPFLAGS'
18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860 if test "$cross_compiling" = yes; then
18861  llvmac_cv_c_printf_a=no
18862else
18863  cat >conftest.$ac_ext <<_ACEOF
18864
18865  /* confdefs.h.  */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h.  */
18870
18871#include <stdio.h>
18872#include <stdlib.h>
18873
18874int
18875main ()
18876{
18877
18878volatile double A, B;
18879char Buffer[100];
18880A = 1;
18881A /= 10.0;
18882sprintf(Buffer, "%a", A);
18883B = atof(Buffer);
18884if (A != B)
18885  return (1);
18886if (A != 0x1.999999999999ap-4)
18887  return (1);
18888return (0);
18889  ;
18890  return 0;
18891}
18892_ACEOF
18893rm -f conftest$ac_exeext
18894if { (ac_try="$ac_link"
18895case "(($ac_try" in
18896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897  *) ac_try_echo=$ac_try;;
18898esac
18899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900  (eval "$ac_link") 2>&5
18901  ac_status=$?
18902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18904  { (case "(($ac_try" in
18905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906  *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909  (eval "$ac_try") 2>&5
18910  ac_status=$?
18911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912  (exit $ac_status); }; }; then
18913  llvm_cv_c_printf_a=yes
18914else
18915  echo "$as_me: program exited with status $ac_status" >&5
18916echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919( exit $ac_status )
18920llvmac_cv_c_printf_a=no
18921fi
18922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18923fi
18924
18925
18926 ac_ext=c
18927ac_cpp='$CPP $CPPFLAGS'
18928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930ac_compiler_gnu=$ac_cv_c_compiler_gnu
18931
18932fi
18933{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18934echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18935 if test "$llvm_cv_c_printf_a" = "yes"; then
18936
18937cat >>confdefs.h <<\_ACEOF
18938#define HAVE_PRINTF_A 1
18939_ACEOF
18940
18941 fi
18942
18943
18944
18945  { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18946echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18947if test "${ac_cv_func_rand48+set}" = set; then
18948  echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950
18951    ac_ext=cpp
18952ac_cpp='$CXXCPP $CPPFLAGS'
18953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
18957    cat >conftest.$ac_ext <<_ACEOF
18958/* confdefs.h.  */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
18962/* end confdefs.h.  */
18963#include <stdlib.h>
18964int
18965main ()
18966{
18967srand48(0);lrand48();drand48();
18968  ;
18969  return 0;
18970}
18971_ACEOF
18972rm -f conftest.$ac_objext
18973if { (ac_try="$ac_compile"
18974case "(($ac_try" in
18975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976  *) ac_try_echo=$ac_try;;
18977esac
18978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979  (eval "$ac_compile") 2>conftest.er1
18980  ac_status=$?
18981  grep -v '^ *+' conftest.er1 >conftest.err
18982  rm -f conftest.er1
18983  cat conftest.err >&5
18984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985  (exit $ac_status); } &&
18986	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18987  { (case "(($ac_try" in
18988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989  *) ac_try_echo=$ac_try;;
18990esac
18991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992  (eval "$ac_try") 2>&5
18993  ac_status=$?
18994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995  (exit $ac_status); }; } &&
18996	 { ac_try='test -s conftest.$ac_objext'
18997  { (case "(($ac_try" in
18998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999  *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002  (eval "$ac_try") 2>&5
19003  ac_status=$?
19004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005  (exit $ac_status); }; }; then
19006  ac_cv_func_rand48=yes
19007else
19008  echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011	ac_cv_func_rand48=no
19012fi
19013
19014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015    ac_ext=c
19016ac_cpp='$CPP $CPPFLAGS'
19017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019ac_compiler_gnu=$ac_cv_c_compiler_gnu
19020
19021
19022fi
19023{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19024echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19025
19026if test "$ac_cv_func_rand48" = "yes" ; then
19027
19028cat >>confdefs.h <<\_ACEOF
19029#define HAVE_RAND48 1
19030_ACEOF
19031
19032fi
19033
19034
19035{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19036echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19037if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19038  echo $ECHO_N "(cached) $ECHO_C" >&6
19039else
19040  cat >conftest.$ac_ext <<_ACEOF
19041/* confdefs.h.  */
19042_ACEOF
19043cat confdefs.h >>conftest.$ac_ext
19044cat >>conftest.$ac_ext <<_ACEOF
19045/* end confdefs.h.  */
19046$ac_includes_default
19047int
19048main ()
19049{
19050#ifndef strerror_s
19051  char *p = (char *) strerror_s;
19052  return !p;
19053#endif
19054
19055  ;
19056  return 0;
19057}
19058_ACEOF
19059rm -f conftest.$ac_objext
19060if { (ac_try="$ac_compile"
19061case "(($ac_try" in
19062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063  *) ac_try_echo=$ac_try;;
19064esac
19065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066  (eval "$ac_compile") 2>conftest.er1
19067  ac_status=$?
19068  grep -v '^ *+' conftest.er1 >conftest.err
19069  rm -f conftest.er1
19070  cat conftest.err >&5
19071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072  (exit $ac_status); } &&
19073	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19074  { (case "(($ac_try" in
19075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076  *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079  (eval "$ac_try") 2>&5
19080  ac_status=$?
19081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082  (exit $ac_status); }; } &&
19083	 { ac_try='test -s conftest.$ac_objext'
19084  { (case "(($ac_try" in
19085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086  *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089  (eval "$ac_try") 2>&5
19090  ac_status=$?
19091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092  (exit $ac_status); }; }; then
19093  ac_cv_have_decl_strerror_s=yes
19094else
19095  echo "$as_me: failed program was:" >&5
19096sed 's/^/| /' conftest.$ac_ext >&5
19097
19098	ac_cv_have_decl_strerror_s=no
19099fi
19100
19101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19102fi
19103{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19104echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19105if test $ac_cv_have_decl_strerror_s = yes; then
19106
19107cat >>confdefs.h <<_ACEOF
19108#define HAVE_DECL_STRERROR_S 1
19109_ACEOF
19110
19111
19112else
19113  cat >>confdefs.h <<_ACEOF
19114#define HAVE_DECL_STRERROR_S 0
19115_ACEOF
19116
19117
19118fi
19119
19120
19121
19122if test "$llvm_cv_os_type" = "MingW" ; then
19123  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19124echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19125if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19126  echo $ECHO_N "(cached) $ECHO_C" >&6
19127else
19128  ac_check_lib_save_LIBS=$LIBS
19129LIBS="-lgcc  $LIBS"
19130cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h.  */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h.  */
19136
19137/* Override any GCC internal prototype to avoid an error.
19138   Use char because int might match the return type of a GCC
19139   builtin and then its argument prototype would still apply.  */
19140#ifdef __cplusplus
19141extern "C"
19142#endif
19143char _alloca ();
19144int
19145main ()
19146{
19147return _alloca ();
19148  ;
19149  return 0;
19150}
19151_ACEOF
19152rm -f conftest.$ac_objext conftest$ac_exeext
19153if { (ac_try="$ac_link"
19154case "(($ac_try" in
19155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156  *) ac_try_echo=$ac_try;;
19157esac
19158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159  (eval "$ac_link") 2>conftest.er1
19160  ac_status=$?
19161  grep -v '^ *+' conftest.er1 >conftest.err
19162  rm -f conftest.er1
19163  cat conftest.err >&5
19164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165  (exit $ac_status); } &&
19166	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167  { (case "(($ac_try" in
19168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169  *) ac_try_echo=$ac_try;;
19170esac
19171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172  (eval "$ac_try") 2>&5
19173  ac_status=$?
19174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175  (exit $ac_status); }; } &&
19176	 { ac_try='test -s conftest$ac_exeext'
19177  { (case "(($ac_try" in
19178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179  *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182  (eval "$ac_try") 2>&5
19183  ac_status=$?
19184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185  (exit $ac_status); }; }; then
19186  ac_cv_lib_gcc__alloca=yes
19187else
19188  echo "$as_me: failed program was:" >&5
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
19191	ac_cv_lib_gcc__alloca=no
19192fi
19193
19194rm -f core conftest.err conftest.$ac_objext \
19195      conftest$ac_exeext conftest.$ac_ext
19196LIBS=$ac_check_lib_save_LIBS
19197fi
19198{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19199echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19200if test $ac_cv_lib_gcc__alloca = yes; then
19201
19202cat >>confdefs.h <<\_ACEOF
19203#define HAVE__ALLOCA 1
19204_ACEOF
19205
19206fi
19207
19208  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19209echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19210if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19211  echo $ECHO_N "(cached) $ECHO_C" >&6
19212else
19213  ac_check_lib_save_LIBS=$LIBS
19214LIBS="-lgcc  $LIBS"
19215cat >conftest.$ac_ext <<_ACEOF
19216/* confdefs.h.  */
19217_ACEOF
19218cat confdefs.h >>conftest.$ac_ext
19219cat >>conftest.$ac_ext <<_ACEOF
19220/* end confdefs.h.  */
19221
19222/* Override any GCC internal prototype to avoid an error.
19223   Use char because int might match the return type of a GCC
19224   builtin and then its argument prototype would still apply.  */
19225#ifdef __cplusplus
19226extern "C"
19227#endif
19228char __alloca ();
19229int
19230main ()
19231{
19232return __alloca ();
19233  ;
19234  return 0;
19235}
19236_ACEOF
19237rm -f conftest.$ac_objext conftest$ac_exeext
19238if { (ac_try="$ac_link"
19239case "(($ac_try" in
19240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241  *) ac_try_echo=$ac_try;;
19242esac
19243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244  (eval "$ac_link") 2>conftest.er1
19245  ac_status=$?
19246  grep -v '^ *+' conftest.er1 >conftest.err
19247  rm -f conftest.er1
19248  cat conftest.err >&5
19249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250  (exit $ac_status); } &&
19251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252  { (case "(($ac_try" in
19253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254  *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257  (eval "$ac_try") 2>&5
19258  ac_status=$?
19259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260  (exit $ac_status); }; } &&
19261	 { ac_try='test -s conftest$ac_exeext'
19262  { (case "(($ac_try" in
19263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264  *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267  (eval "$ac_try") 2>&5
19268  ac_status=$?
19269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270  (exit $ac_status); }; }; then
19271  ac_cv_lib_gcc___alloca=yes
19272else
19273  echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
19276	ac_cv_lib_gcc___alloca=no
19277fi
19278
19279rm -f core conftest.err conftest.$ac_objext \
19280      conftest$ac_exeext conftest.$ac_ext
19281LIBS=$ac_check_lib_save_LIBS
19282fi
19283{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19284echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19285if test $ac_cv_lib_gcc___alloca = yes; then
19286
19287cat >>confdefs.h <<\_ACEOF
19288#define HAVE___ALLOCA 1
19289_ACEOF
19290
19291fi
19292
19293  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19294echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19295if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19296  echo $ECHO_N "(cached) $ECHO_C" >&6
19297else
19298  ac_check_lib_save_LIBS=$LIBS
19299LIBS="-lgcc  $LIBS"
19300cat >conftest.$ac_ext <<_ACEOF
19301/* confdefs.h.  */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h.  */
19306
19307/* Override any GCC internal prototype to avoid an error.
19308   Use char because int might match the return type of a GCC
19309   builtin and then its argument prototype would still apply.  */
19310#ifdef __cplusplus
19311extern "C"
19312#endif
19313char __chkstk ();
19314int
19315main ()
19316{
19317return __chkstk ();
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext conftest$ac_exeext
19323if { (ac_try="$ac_link"
19324case "(($ac_try" in
19325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326  *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329  (eval "$ac_link") 2>conftest.er1
19330  ac_status=$?
19331  grep -v '^ *+' conftest.er1 >conftest.err
19332  rm -f conftest.er1
19333  cat conftest.err >&5
19334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); } &&
19336	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19337  { (case "(($ac_try" in
19338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339  *) ac_try_echo=$ac_try;;
19340esac
19341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342  (eval "$ac_try") 2>&5
19343  ac_status=$?
19344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345  (exit $ac_status); }; } &&
19346	 { ac_try='test -s conftest$ac_exeext'
19347  { (case "(($ac_try" in
19348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349  *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352  (eval "$ac_try") 2>&5
19353  ac_status=$?
19354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355  (exit $ac_status); }; }; then
19356  ac_cv_lib_gcc___chkstk=yes
19357else
19358  echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361	ac_cv_lib_gcc___chkstk=no
19362fi
19363
19364rm -f core conftest.err conftest.$ac_objext \
19365      conftest$ac_exeext conftest.$ac_ext
19366LIBS=$ac_check_lib_save_LIBS
19367fi
19368{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19369echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19370if test $ac_cv_lib_gcc___chkstk = yes; then
19371
19372cat >>confdefs.h <<\_ACEOF
19373#define HAVE___CHKSTK 1
19374_ACEOF
19375
19376fi
19377
19378  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19379echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19380if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19381  echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383  ac_check_lib_save_LIBS=$LIBS
19384LIBS="-lgcc  $LIBS"
19385cat >conftest.$ac_ext <<_ACEOF
19386/* confdefs.h.  */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
19390/* end confdefs.h.  */
19391
19392/* Override any GCC internal prototype to avoid an error.
19393   Use char because int might match the return type of a GCC
19394   builtin and then its argument prototype would still apply.  */
19395#ifdef __cplusplus
19396extern "C"
19397#endif
19398char ___chkstk ();
19399int
19400main ()
19401{
19402return ___chkstk ();
19403  ;
19404  return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext conftest$ac_exeext
19408if { (ac_try="$ac_link"
19409case "(($ac_try" in
19410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411  *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414  (eval "$ac_link") 2>conftest.er1
19415  ac_status=$?
19416  grep -v '^ *+' conftest.er1 >conftest.err
19417  rm -f conftest.er1
19418  cat conftest.err >&5
19419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420  (exit $ac_status); } &&
19421	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422  { (case "(($ac_try" in
19423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424  *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427  (eval "$ac_try") 2>&5
19428  ac_status=$?
19429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430  (exit $ac_status); }; } &&
19431	 { ac_try='test -s conftest$ac_exeext'
19432  { (case "(($ac_try" in
19433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434  *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437  (eval "$ac_try") 2>&5
19438  ac_status=$?
19439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440  (exit $ac_status); }; }; then
19441  ac_cv_lib_gcc____chkstk=yes
19442else
19443  echo "$as_me: failed program was:" >&5
19444sed 's/^/| /' conftest.$ac_ext >&5
19445
19446	ac_cv_lib_gcc____chkstk=no
19447fi
19448
19449rm -f core conftest.err conftest.$ac_objext \
19450      conftest$ac_exeext conftest.$ac_ext
19451LIBS=$ac_check_lib_save_LIBS
19452fi
19453{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19454echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19455if test $ac_cv_lib_gcc____chkstk = yes; then
19456
19457cat >>confdefs.h <<\_ACEOF
19458#define HAVE____CHKSTK 1
19459_ACEOF
19460
19461fi
19462
19463
19464  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19465echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19466if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19467  echo $ECHO_N "(cached) $ECHO_C" >&6
19468else
19469  ac_check_lib_save_LIBS=$LIBS
19470LIBS="-lgcc  $LIBS"
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h.  */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h.  */
19477
19478/* Override any GCC internal prototype to avoid an error.
19479   Use char because int might match the return type of a GCC
19480   builtin and then its argument prototype would still apply.  */
19481#ifdef __cplusplus
19482extern "C"
19483#endif
19484char __ashldi3 ();
19485int
19486main ()
19487{
19488return __ashldi3 ();
19489  ;
19490  return 0;
19491}
19492_ACEOF
19493rm -f conftest.$ac_objext conftest$ac_exeext
19494if { (ac_try="$ac_link"
19495case "(($ac_try" in
19496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497  *) ac_try_echo=$ac_try;;
19498esac
19499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500  (eval "$ac_link") 2>conftest.er1
19501  ac_status=$?
19502  grep -v '^ *+' conftest.er1 >conftest.err
19503  rm -f conftest.er1
19504  cat conftest.err >&5
19505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506  (exit $ac_status); } &&
19507	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19508  { (case "(($ac_try" in
19509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510  *) ac_try_echo=$ac_try;;
19511esac
19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513  (eval "$ac_try") 2>&5
19514  ac_status=$?
19515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516  (exit $ac_status); }; } &&
19517	 { ac_try='test -s conftest$ac_exeext'
19518  { (case "(($ac_try" in
19519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520  *) ac_try_echo=$ac_try;;
19521esac
19522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523  (eval "$ac_try") 2>&5
19524  ac_status=$?
19525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526  (exit $ac_status); }; }; then
19527  ac_cv_lib_gcc___ashldi3=yes
19528else
19529  echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532	ac_cv_lib_gcc___ashldi3=no
19533fi
19534
19535rm -f core conftest.err conftest.$ac_objext \
19536      conftest$ac_exeext conftest.$ac_ext
19537LIBS=$ac_check_lib_save_LIBS
19538fi
19539{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19540echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19541if test $ac_cv_lib_gcc___ashldi3 = yes; then
19542
19543cat >>confdefs.h <<\_ACEOF
19544#define HAVE___ASHLDI3 1
19545_ACEOF
19546
19547fi
19548
19549  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19550echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19551if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19552  echo $ECHO_N "(cached) $ECHO_C" >&6
19553else
19554  ac_check_lib_save_LIBS=$LIBS
19555LIBS="-lgcc  $LIBS"
19556cat >conftest.$ac_ext <<_ACEOF
19557/* confdefs.h.  */
19558_ACEOF
19559cat confdefs.h >>conftest.$ac_ext
19560cat >>conftest.$ac_ext <<_ACEOF
19561/* end confdefs.h.  */
19562
19563/* Override any GCC internal prototype to avoid an error.
19564   Use char because int might match the return type of a GCC
19565   builtin and then its argument prototype would still apply.  */
19566#ifdef __cplusplus
19567extern "C"
19568#endif
19569char __ashrdi3 ();
19570int
19571main ()
19572{
19573return __ashrdi3 ();
19574  ;
19575  return 0;
19576}
19577_ACEOF
19578rm -f conftest.$ac_objext conftest$ac_exeext
19579if { (ac_try="$ac_link"
19580case "(($ac_try" in
19581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582  *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585  (eval "$ac_link") 2>conftest.er1
19586  ac_status=$?
19587  grep -v '^ *+' conftest.er1 >conftest.err
19588  rm -f conftest.er1
19589  cat conftest.err >&5
19590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591  (exit $ac_status); } &&
19592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593  { (case "(($ac_try" in
19594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595  *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598  (eval "$ac_try") 2>&5
19599  ac_status=$?
19600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601  (exit $ac_status); }; } &&
19602	 { ac_try='test -s conftest$ac_exeext'
19603  { (case "(($ac_try" in
19604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605  *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608  (eval "$ac_try") 2>&5
19609  ac_status=$?
19610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611  (exit $ac_status); }; }; then
19612  ac_cv_lib_gcc___ashrdi3=yes
19613else
19614  echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617	ac_cv_lib_gcc___ashrdi3=no
19618fi
19619
19620rm -f core conftest.err conftest.$ac_objext \
19621      conftest$ac_exeext conftest.$ac_ext
19622LIBS=$ac_check_lib_save_LIBS
19623fi
19624{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19625echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19626if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19627
19628cat >>confdefs.h <<\_ACEOF
19629#define HAVE___ASHRDI3 1
19630_ACEOF
19631
19632fi
19633
19634  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19635echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19636if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19637  echo $ECHO_N "(cached) $ECHO_C" >&6
19638else
19639  ac_check_lib_save_LIBS=$LIBS
19640LIBS="-lgcc  $LIBS"
19641cat >conftest.$ac_ext <<_ACEOF
19642/* confdefs.h.  */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h.  */
19647
19648/* Override any GCC internal prototype to avoid an error.
19649   Use char because int might match the return type of a GCC
19650   builtin and then its argument prototype would still apply.  */
19651#ifdef __cplusplus
19652extern "C"
19653#endif
19654char __divdi3 ();
19655int
19656main ()
19657{
19658return __divdi3 ();
19659  ;
19660  return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext conftest$ac_exeext
19664if { (ac_try="$ac_link"
19665case "(($ac_try" in
19666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667  *) ac_try_echo=$ac_try;;
19668esac
19669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670  (eval "$ac_link") 2>conftest.er1
19671  ac_status=$?
19672  grep -v '^ *+' conftest.er1 >conftest.err
19673  rm -f conftest.er1
19674  cat conftest.err >&5
19675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676  (exit $ac_status); } &&
19677	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19678  { (case "(($ac_try" in
19679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680  *) ac_try_echo=$ac_try;;
19681esac
19682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683  (eval "$ac_try") 2>&5
19684  ac_status=$?
19685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686  (exit $ac_status); }; } &&
19687	 { ac_try='test -s conftest$ac_exeext'
19688  { (case "(($ac_try" in
19689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690  *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693  (eval "$ac_try") 2>&5
19694  ac_status=$?
19695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696  (exit $ac_status); }; }; then
19697  ac_cv_lib_gcc___divdi3=yes
19698else
19699  echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702	ac_cv_lib_gcc___divdi3=no
19703fi
19704
19705rm -f core conftest.err conftest.$ac_objext \
19706      conftest$ac_exeext conftest.$ac_ext
19707LIBS=$ac_check_lib_save_LIBS
19708fi
19709{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19710echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19711if test $ac_cv_lib_gcc___divdi3 = yes; then
19712
19713cat >>confdefs.h <<\_ACEOF
19714#define HAVE___DIVDI3 1
19715_ACEOF
19716
19717fi
19718
19719  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19720echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19721if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19722  echo $ECHO_N "(cached) $ECHO_C" >&6
19723else
19724  ac_check_lib_save_LIBS=$LIBS
19725LIBS="-lgcc  $LIBS"
19726cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h.  */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h.  */
19732
19733/* Override any GCC internal prototype to avoid an error.
19734   Use char because int might match the return type of a GCC
19735   builtin and then its argument prototype would still apply.  */
19736#ifdef __cplusplus
19737extern "C"
19738#endif
19739char __fixdfdi ();
19740int
19741main ()
19742{
19743return __fixdfdi ();
19744  ;
19745  return 0;
19746}
19747_ACEOF
19748rm -f conftest.$ac_objext conftest$ac_exeext
19749if { (ac_try="$ac_link"
19750case "(($ac_try" in
19751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752  *) ac_try_echo=$ac_try;;
19753esac
19754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755  (eval "$ac_link") 2>conftest.er1
19756  ac_status=$?
19757  grep -v '^ *+' conftest.er1 >conftest.err
19758  rm -f conftest.er1
19759  cat conftest.err >&5
19760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761  (exit $ac_status); } &&
19762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763  { (case "(($ac_try" in
19764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765  *) ac_try_echo=$ac_try;;
19766esac
19767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768  (eval "$ac_try") 2>&5
19769  ac_status=$?
19770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771  (exit $ac_status); }; } &&
19772	 { ac_try='test -s conftest$ac_exeext'
19773  { (case "(($ac_try" in
19774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775  *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778  (eval "$ac_try") 2>&5
19779  ac_status=$?
19780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781  (exit $ac_status); }; }; then
19782  ac_cv_lib_gcc___fixdfdi=yes
19783else
19784  echo "$as_me: failed program was:" >&5
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
19787	ac_cv_lib_gcc___fixdfdi=no
19788fi
19789
19790rm -f core conftest.err conftest.$ac_objext \
19791      conftest$ac_exeext conftest.$ac_ext
19792LIBS=$ac_check_lib_save_LIBS
19793fi
19794{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19795echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19796if test $ac_cv_lib_gcc___fixdfdi = yes; then
19797
19798cat >>confdefs.h <<\_ACEOF
19799#define HAVE___FIXDFDI 1
19800_ACEOF
19801
19802fi
19803
19804  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19805echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19806if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19807  echo $ECHO_N "(cached) $ECHO_C" >&6
19808else
19809  ac_check_lib_save_LIBS=$LIBS
19810LIBS="-lgcc  $LIBS"
19811cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h.  */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h.  */
19817
19818/* Override any GCC internal prototype to avoid an error.
19819   Use char because int might match the return type of a GCC
19820   builtin and then its argument prototype would still apply.  */
19821#ifdef __cplusplus
19822extern "C"
19823#endif
19824char __fixsfdi ();
19825int
19826main ()
19827{
19828return __fixsfdi ();
19829  ;
19830  return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext conftest$ac_exeext
19834if { (ac_try="$ac_link"
19835case "(($ac_try" in
19836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837  *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840  (eval "$ac_link") 2>conftest.er1
19841  ac_status=$?
19842  grep -v '^ *+' conftest.er1 >conftest.err
19843  rm -f conftest.er1
19844  cat conftest.err >&5
19845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846  (exit $ac_status); } &&
19847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848  { (case "(($ac_try" in
19849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850  *) ac_try_echo=$ac_try;;
19851esac
19852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853  (eval "$ac_try") 2>&5
19854  ac_status=$?
19855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856  (exit $ac_status); }; } &&
19857	 { ac_try='test -s conftest$ac_exeext'
19858  { (case "(($ac_try" in
19859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860  *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863  (eval "$ac_try") 2>&5
19864  ac_status=$?
19865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866  (exit $ac_status); }; }; then
19867  ac_cv_lib_gcc___fixsfdi=yes
19868else
19869  echo "$as_me: failed program was:" >&5
19870sed 's/^/| /' conftest.$ac_ext >&5
19871
19872	ac_cv_lib_gcc___fixsfdi=no
19873fi
19874
19875rm -f core conftest.err conftest.$ac_objext \
19876      conftest$ac_exeext conftest.$ac_ext
19877LIBS=$ac_check_lib_save_LIBS
19878fi
19879{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19880echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19881if test $ac_cv_lib_gcc___fixsfdi = yes; then
19882
19883cat >>confdefs.h <<\_ACEOF
19884#define HAVE___FIXSFDI 1
19885_ACEOF
19886
19887fi
19888
19889  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19890echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19891if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19892  echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894  ac_check_lib_save_LIBS=$LIBS
19895LIBS="-lgcc  $LIBS"
19896cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h.  */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h.  */
19902
19903/* Override any GCC internal prototype to avoid an error.
19904   Use char because int might match the return type of a GCC
19905   builtin and then its argument prototype would still apply.  */
19906#ifdef __cplusplus
19907extern "C"
19908#endif
19909char __floatdidf ();
19910int
19911main ()
19912{
19913return __floatdidf ();
19914  ;
19915  return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext conftest$ac_exeext
19919if { (ac_try="$ac_link"
19920case "(($ac_try" in
19921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922  *) ac_try_echo=$ac_try;;
19923esac
19924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925  (eval "$ac_link") 2>conftest.er1
19926  ac_status=$?
19927  grep -v '^ *+' conftest.er1 >conftest.err
19928  rm -f conftest.er1
19929  cat conftest.err >&5
19930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931  (exit $ac_status); } &&
19932	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933  { (case "(($ac_try" in
19934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935  *) ac_try_echo=$ac_try;;
19936esac
19937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938  (eval "$ac_try") 2>&5
19939  ac_status=$?
19940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941  (exit $ac_status); }; } &&
19942	 { ac_try='test -s conftest$ac_exeext'
19943  { (case "(($ac_try" in
19944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945  *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948  (eval "$ac_try") 2>&5
19949  ac_status=$?
19950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951  (exit $ac_status); }; }; then
19952  ac_cv_lib_gcc___floatdidf=yes
19953else
19954  echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957	ac_cv_lib_gcc___floatdidf=no
19958fi
19959
19960rm -f core conftest.err conftest.$ac_objext \
19961      conftest$ac_exeext conftest.$ac_ext
19962LIBS=$ac_check_lib_save_LIBS
19963fi
19964{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19965echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19966if test $ac_cv_lib_gcc___floatdidf = yes; then
19967
19968cat >>confdefs.h <<\_ACEOF
19969#define HAVE___FLOATDIDF 1
19970_ACEOF
19971
19972fi
19973
19974  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19975echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19976if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19977  echo $ECHO_N "(cached) $ECHO_C" >&6
19978else
19979  ac_check_lib_save_LIBS=$LIBS
19980LIBS="-lgcc  $LIBS"
19981cat >conftest.$ac_ext <<_ACEOF
19982/* confdefs.h.  */
19983_ACEOF
19984cat confdefs.h >>conftest.$ac_ext
19985cat >>conftest.$ac_ext <<_ACEOF
19986/* end confdefs.h.  */
19987
19988/* Override any GCC internal prototype to avoid an error.
19989   Use char because int might match the return type of a GCC
19990   builtin and then its argument prototype would still apply.  */
19991#ifdef __cplusplus
19992extern "C"
19993#endif
19994char __lshrdi3 ();
19995int
19996main ()
19997{
19998return __lshrdi3 ();
19999  ;
20000  return 0;
20001}
20002_ACEOF
20003rm -f conftest.$ac_objext conftest$ac_exeext
20004if { (ac_try="$ac_link"
20005case "(($ac_try" in
20006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007  *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010  (eval "$ac_link") 2>conftest.er1
20011  ac_status=$?
20012  grep -v '^ *+' conftest.er1 >conftest.err
20013  rm -f conftest.er1
20014  cat conftest.err >&5
20015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016  (exit $ac_status); } &&
20017	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018  { (case "(($ac_try" in
20019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020  *) ac_try_echo=$ac_try;;
20021esac
20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023  (eval "$ac_try") 2>&5
20024  ac_status=$?
20025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026  (exit $ac_status); }; } &&
20027	 { ac_try='test -s conftest$ac_exeext'
20028  { (case "(($ac_try" in
20029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030  *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033  (eval "$ac_try") 2>&5
20034  ac_status=$?
20035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036  (exit $ac_status); }; }; then
20037  ac_cv_lib_gcc___lshrdi3=yes
20038else
20039  echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042	ac_cv_lib_gcc___lshrdi3=no
20043fi
20044
20045rm -f core conftest.err conftest.$ac_objext \
20046      conftest$ac_exeext conftest.$ac_ext
20047LIBS=$ac_check_lib_save_LIBS
20048fi
20049{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20050echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20051if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20052
20053cat >>confdefs.h <<\_ACEOF
20054#define HAVE___LSHRDI3 1
20055_ACEOF
20056
20057fi
20058
20059  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20060echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20061if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20062  echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064  ac_check_lib_save_LIBS=$LIBS
20065LIBS="-lgcc  $LIBS"
20066cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h.  */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
20071/* end confdefs.h.  */
20072
20073/* Override any GCC internal prototype to avoid an error.
20074   Use char because int might match the return type of a GCC
20075   builtin and then its argument prototype would still apply.  */
20076#ifdef __cplusplus
20077extern "C"
20078#endif
20079char __moddi3 ();
20080int
20081main ()
20082{
20083return __moddi3 ();
20084  ;
20085  return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext conftest$ac_exeext
20089if { (ac_try="$ac_link"
20090case "(($ac_try" in
20091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092  *) ac_try_echo=$ac_try;;
20093esac
20094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095  (eval "$ac_link") 2>conftest.er1
20096  ac_status=$?
20097  grep -v '^ *+' conftest.er1 >conftest.err
20098  rm -f conftest.er1
20099  cat conftest.err >&5
20100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101  (exit $ac_status); } &&
20102	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103  { (case "(($ac_try" in
20104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105  *) ac_try_echo=$ac_try;;
20106esac
20107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108  (eval "$ac_try") 2>&5
20109  ac_status=$?
20110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111  (exit $ac_status); }; } &&
20112	 { ac_try='test -s conftest$ac_exeext'
20113  { (case "(($ac_try" in
20114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115  *) ac_try_echo=$ac_try;;
20116esac
20117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118  (eval "$ac_try") 2>&5
20119  ac_status=$?
20120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121  (exit $ac_status); }; }; then
20122  ac_cv_lib_gcc___moddi3=yes
20123else
20124  echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127	ac_cv_lib_gcc___moddi3=no
20128fi
20129
20130rm -f core conftest.err conftest.$ac_objext \
20131      conftest$ac_exeext conftest.$ac_ext
20132LIBS=$ac_check_lib_save_LIBS
20133fi
20134{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20135echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20136if test $ac_cv_lib_gcc___moddi3 = yes; then
20137
20138cat >>confdefs.h <<\_ACEOF
20139#define HAVE___MODDI3 1
20140_ACEOF
20141
20142fi
20143
20144  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20145echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20146if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20147  echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149  ac_check_lib_save_LIBS=$LIBS
20150LIBS="-lgcc  $LIBS"
20151cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h.  */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h.  */
20157
20158/* Override any GCC internal prototype to avoid an error.
20159   Use char because int might match the return type of a GCC
20160   builtin and then its argument prototype would still apply.  */
20161#ifdef __cplusplus
20162extern "C"
20163#endif
20164char __udivdi3 ();
20165int
20166main ()
20167{
20168return __udivdi3 ();
20169  ;
20170  return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext conftest$ac_exeext
20174if { (ac_try="$ac_link"
20175case "(($ac_try" in
20176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177  *) ac_try_echo=$ac_try;;
20178esac
20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180  (eval "$ac_link") 2>conftest.er1
20181  ac_status=$?
20182  grep -v '^ *+' conftest.er1 >conftest.err
20183  rm -f conftest.er1
20184  cat conftest.err >&5
20185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186  (exit $ac_status); } &&
20187	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188  { (case "(($ac_try" in
20189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190  *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193  (eval "$ac_try") 2>&5
20194  ac_status=$?
20195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196  (exit $ac_status); }; } &&
20197	 { ac_try='test -s conftest$ac_exeext'
20198  { (case "(($ac_try" in
20199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200  *) ac_try_echo=$ac_try;;
20201esac
20202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203  (eval "$ac_try") 2>&5
20204  ac_status=$?
20205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206  (exit $ac_status); }; }; then
20207  ac_cv_lib_gcc___udivdi3=yes
20208else
20209  echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212	ac_cv_lib_gcc___udivdi3=no
20213fi
20214
20215rm -f core conftest.err conftest.$ac_objext \
20216      conftest$ac_exeext conftest.$ac_ext
20217LIBS=$ac_check_lib_save_LIBS
20218fi
20219{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20220echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20221if test $ac_cv_lib_gcc___udivdi3 = yes; then
20222
20223cat >>confdefs.h <<\_ACEOF
20224#define HAVE___UDIVDI3 1
20225_ACEOF
20226
20227fi
20228
20229  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20230echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20231if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20232  echo $ECHO_N "(cached) $ECHO_C" >&6
20233else
20234  ac_check_lib_save_LIBS=$LIBS
20235LIBS="-lgcc  $LIBS"
20236cat >conftest.$ac_ext <<_ACEOF
20237/* confdefs.h.  */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h.  */
20242
20243/* Override any GCC internal prototype to avoid an error.
20244   Use char because int might match the return type of a GCC
20245   builtin and then its argument prototype would still apply.  */
20246#ifdef __cplusplus
20247extern "C"
20248#endif
20249char __umoddi3 ();
20250int
20251main ()
20252{
20253return __umoddi3 ();
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext conftest$ac_exeext
20259if { (ac_try="$ac_link"
20260case "(($ac_try" in
20261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262  *) ac_try_echo=$ac_try;;
20263esac
20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265  (eval "$ac_link") 2>conftest.er1
20266  ac_status=$?
20267  grep -v '^ *+' conftest.er1 >conftest.err
20268  rm -f conftest.er1
20269  cat conftest.err >&5
20270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271  (exit $ac_status); } &&
20272	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273  { (case "(($ac_try" in
20274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275  *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278  (eval "$ac_try") 2>&5
20279  ac_status=$?
20280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281  (exit $ac_status); }; } &&
20282	 { ac_try='test -s conftest$ac_exeext'
20283  { (case "(($ac_try" in
20284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285  *) ac_try_echo=$ac_try;;
20286esac
20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288  (eval "$ac_try") 2>&5
20289  ac_status=$?
20290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291  (exit $ac_status); }; }; then
20292  ac_cv_lib_gcc___umoddi3=yes
20293else
20294  echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
20296
20297	ac_cv_lib_gcc___umoddi3=no
20298fi
20299
20300rm -f core conftest.err conftest.$ac_objext \
20301      conftest$ac_exeext conftest.$ac_ext
20302LIBS=$ac_check_lib_save_LIBS
20303fi
20304{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20305echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20306if test $ac_cv_lib_gcc___umoddi3 = yes; then
20307
20308cat >>confdefs.h <<\_ACEOF
20309#define HAVE___UMODDI3 1
20310_ACEOF
20311
20312fi
20313
20314
20315  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20316echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20317if test "${ac_cv_lib_gcc___main+set}" = set; then
20318  echo $ECHO_N "(cached) $ECHO_C" >&6
20319else
20320  ac_check_lib_save_LIBS=$LIBS
20321LIBS="-lgcc  $LIBS"
20322cat >conftest.$ac_ext <<_ACEOF
20323/* confdefs.h.  */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h.  */
20328
20329/* Override any GCC internal prototype to avoid an error.
20330   Use char because int might match the return type of a GCC
20331   builtin and then its argument prototype would still apply.  */
20332#ifdef __cplusplus
20333extern "C"
20334#endif
20335char __main ();
20336int
20337main ()
20338{
20339return __main ();
20340  ;
20341  return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext conftest$ac_exeext
20345if { (ac_try="$ac_link"
20346case "(($ac_try" in
20347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348  *) ac_try_echo=$ac_try;;
20349esac
20350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351  (eval "$ac_link") 2>conftest.er1
20352  ac_status=$?
20353  grep -v '^ *+' conftest.er1 >conftest.err
20354  rm -f conftest.er1
20355  cat conftest.err >&5
20356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357  (exit $ac_status); } &&
20358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20359  { (case "(($ac_try" in
20360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361  *) ac_try_echo=$ac_try;;
20362esac
20363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364  (eval "$ac_try") 2>&5
20365  ac_status=$?
20366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); }; } &&
20368	 { ac_try='test -s conftest$ac_exeext'
20369  { (case "(($ac_try" in
20370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371  *) ac_try_echo=$ac_try;;
20372esac
20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374  (eval "$ac_try") 2>&5
20375  ac_status=$?
20376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); }; }; then
20378  ac_cv_lib_gcc___main=yes
20379else
20380  echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383	ac_cv_lib_gcc___main=no
20384fi
20385
20386rm -f core conftest.err conftest.$ac_objext \
20387      conftest$ac_exeext conftest.$ac_ext
20388LIBS=$ac_check_lib_save_LIBS
20389fi
20390{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20391echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20392if test $ac_cv_lib_gcc___main = yes; then
20393
20394cat >>confdefs.h <<\_ACEOF
20395#define HAVE___MAIN 1
20396_ACEOF
20397
20398fi
20399
20400  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20401echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20402if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20403  echo $ECHO_N "(cached) $ECHO_C" >&6
20404else
20405  ac_check_lib_save_LIBS=$LIBS
20406LIBS="-lgcc  $LIBS"
20407cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h.  */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h.  */
20413
20414/* Override any GCC internal prototype to avoid an error.
20415   Use char because int might match the return type of a GCC
20416   builtin and then its argument prototype would still apply.  */
20417#ifdef __cplusplus
20418extern "C"
20419#endif
20420char __cmpdi2 ();
20421int
20422main ()
20423{
20424return __cmpdi2 ();
20425  ;
20426  return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext conftest$ac_exeext
20430if { (ac_try="$ac_link"
20431case "(($ac_try" in
20432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433  *) ac_try_echo=$ac_try;;
20434esac
20435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436  (eval "$ac_link") 2>conftest.er1
20437  ac_status=$?
20438  grep -v '^ *+' conftest.er1 >conftest.err
20439  rm -f conftest.er1
20440  cat conftest.err >&5
20441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442  (exit $ac_status); } &&
20443	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20444  { (case "(($ac_try" in
20445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446  *) ac_try_echo=$ac_try;;
20447esac
20448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449  (eval "$ac_try") 2>&5
20450  ac_status=$?
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); }; } &&
20453	 { ac_try='test -s conftest$ac_exeext'
20454  { (case "(($ac_try" in
20455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456  *) ac_try_echo=$ac_try;;
20457esac
20458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459  (eval "$ac_try") 2>&5
20460  ac_status=$?
20461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462  (exit $ac_status); }; }; then
20463  ac_cv_lib_gcc___cmpdi2=yes
20464else
20465  echo "$as_me: failed program was:" >&5
20466sed 's/^/| /' conftest.$ac_ext >&5
20467
20468	ac_cv_lib_gcc___cmpdi2=no
20469fi
20470
20471rm -f core conftest.err conftest.$ac_objext \
20472      conftest$ac_exeext conftest.$ac_ext
20473LIBS=$ac_check_lib_save_LIBS
20474fi
20475{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20476echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20477if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20478
20479cat >>confdefs.h <<\_ACEOF
20480#define HAVE___CMPDI2 1
20481_ACEOF
20482
20483fi
20484
20485fi
20486
20487if test "$llvm_cv_os_type" = "MingW" ; then
20488  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20489echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20490  cat >conftest.$ac_ext <<_ACEOF
20491
20492  /* confdefs.h.  */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h.  */
20497
20498    #include <windows.h>
20499    #include <imagehlp.h>
20500    extern void foo(PENUMLOADED_MODULES_CALLBACK);
20501    extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20502
20503
20504_ACEOF
20505rm -f conftest.$ac_objext
20506if { (ac_try="$ac_compile"
20507case "(($ac_try" in
20508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509  *) ac_try_echo=$ac_try;;
20510esac
20511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512  (eval "$ac_compile") 2>conftest.er1
20513  ac_status=$?
20514  grep -v '^ *+' conftest.er1 >conftest.err
20515  rm -f conftest.er1
20516  cat conftest.err >&5
20517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518  (exit $ac_status); } &&
20519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520  { (case "(($ac_try" in
20521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522  *) ac_try_echo=$ac_try;;
20523esac
20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525  (eval "$ac_try") 2>&5
20526  ac_status=$?
20527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528  (exit $ac_status); }; } &&
20529	 { ac_try='test -s conftest.$ac_objext'
20530  { (case "(($ac_try" in
20531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532  *) ac_try_echo=$ac_try;;
20533esac
20534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535  (eval "$ac_try") 2>&5
20536  ac_status=$?
20537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538  (exit $ac_status); }; }; then
20539
20540  { echo "$as_me:$LINENO: result: yes" >&5
20541echo "${ECHO_T}yes" >&6; }
20542  llvm_cv_win32_elmcb_pcstr="PCSTR"
20543
20544else
20545  echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548
20549  { echo "$as_me:$LINENO: result: no" >&5
20550echo "${ECHO_T}no" >&6; }
20551  llvm_cv_win32_elmcb_pcstr="PSTR"
20552
20553fi
20554
20555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556
20557cat >>confdefs.h <<_ACEOF
20558#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20559_ACEOF
20560
20561fi
20562
20563
20564
20565  { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20566echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20567if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20568  echo $ECHO_N "(cached) $ECHO_C" >&6
20569else
20570
20571    ac_ext=cpp
20572ac_cpp='$CXXCPP $CPPFLAGS'
20573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20576
20577    cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h.  */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h.  */
20583#include <math.h>
20584int
20585main ()
20586{
20587float f; isnan(f);
20588  ;
20589  return 0;
20590}
20591_ACEOF
20592rm -f conftest.$ac_objext
20593if { (ac_try="$ac_compile"
20594case "(($ac_try" in
20595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596  *) ac_try_echo=$ac_try;;
20597esac
20598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599  (eval "$ac_compile") 2>conftest.er1
20600  ac_status=$?
20601  grep -v '^ *+' conftest.er1 >conftest.err
20602  rm -f conftest.er1
20603  cat conftest.err >&5
20604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605  (exit $ac_status); } &&
20606	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20607  { (case "(($ac_try" in
20608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609  *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612  (eval "$ac_try") 2>&5
20613  ac_status=$?
20614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615  (exit $ac_status); }; } &&
20616	 { ac_try='test -s conftest.$ac_objext'
20617  { (case "(($ac_try" in
20618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619  *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622  (eval "$ac_try") 2>&5
20623  ac_status=$?
20624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625  (exit $ac_status); }; }; then
20626  ac_cv_func_isnan_in_math_h=yes
20627else
20628  echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631	ac_cv_func_isnan_in_math_h=no
20632fi
20633
20634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635    ac_ext=c
20636ac_cpp='$CPP $CPPFLAGS'
20637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642fi
20643{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20644echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20645
20646
20647if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20648
20649cat >>confdefs.h <<\_ACEOF
20650#define HAVE_ISNAN_IN_MATH_H 1
20651_ACEOF
20652
20653fi
20654
20655
20656  { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20657echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20658if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20659  echo $ECHO_N "(cached) $ECHO_C" >&6
20660else
20661
20662    ac_ext=cpp
20663ac_cpp='$CXXCPP $CPPFLAGS'
20664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20667
20668    cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h.  */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h.  */
20674#include <cmath>
20675int
20676main ()
20677{
20678float f; isnan(f);
20679  ;
20680  return 0;
20681}
20682_ACEOF
20683rm -f conftest.$ac_objext
20684if { (ac_try="$ac_compile"
20685case "(($ac_try" in
20686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687  *) ac_try_echo=$ac_try;;
20688esac
20689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690  (eval "$ac_compile") 2>conftest.er1
20691  ac_status=$?
20692  grep -v '^ *+' conftest.er1 >conftest.err
20693  rm -f conftest.er1
20694  cat conftest.err >&5
20695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696  (exit $ac_status); } &&
20697	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20698  { (case "(($ac_try" in
20699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700  *) ac_try_echo=$ac_try;;
20701esac
20702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703  (eval "$ac_try") 2>&5
20704  ac_status=$?
20705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706  (exit $ac_status); }; } &&
20707	 { ac_try='test -s conftest.$ac_objext'
20708  { (case "(($ac_try" in
20709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710  *) ac_try_echo=$ac_try;;
20711esac
20712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713  (eval "$ac_try") 2>&5
20714  ac_status=$?
20715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716  (exit $ac_status); }; }; then
20717  ac_cv_func_isnan_in_cmath=yes
20718else
20719  echo "$as_me: failed program was:" >&5
20720sed 's/^/| /' conftest.$ac_ext >&5
20721
20722	ac_cv_func_isnan_in_cmath=no
20723fi
20724
20725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726    ac_ext=c
20727ac_cpp='$CPP $CPPFLAGS'
20728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730ac_compiler_gnu=$ac_cv_c_compiler_gnu
20731
20732
20733fi
20734{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20735echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20736
20737if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20738
20739cat >>confdefs.h <<\_ACEOF
20740#define HAVE_ISNAN_IN_CMATH 1
20741_ACEOF
20742
20743fi
20744
20745
20746  { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20747echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20748if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20749  echo $ECHO_N "(cached) $ECHO_C" >&6
20750else
20751
20752    ac_ext=cpp
20753ac_cpp='$CXXCPP $CPPFLAGS'
20754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758    cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h.  */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h.  */
20764#include <cmath>
20765int
20766main ()
20767{
20768float f; std::isnan(f);
20769  ;
20770  return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (ac_try="$ac_compile"
20775case "(($ac_try" in
20776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777  *) ac_try_echo=$ac_try;;
20778esac
20779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780  (eval "$ac_compile") 2>conftest.er1
20781  ac_status=$?
20782  grep -v '^ *+' conftest.er1 >conftest.err
20783  rm -f conftest.er1
20784  cat conftest.err >&5
20785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786  (exit $ac_status); } &&
20787	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20788  { (case "(($ac_try" in
20789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790  *) ac_try_echo=$ac_try;;
20791esac
20792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793  (eval "$ac_try") 2>&5
20794  ac_status=$?
20795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796  (exit $ac_status); }; } &&
20797	 { ac_try='test -s conftest.$ac_objext'
20798  { (case "(($ac_try" in
20799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800  *) ac_try_echo=$ac_try;;
20801esac
20802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803  (eval "$ac_try") 2>&5
20804  ac_status=$?
20805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806  (exit $ac_status); }; }; then
20807  ac_cv_func_std_isnan_in_cmath=yes
20808else
20809  echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
20812	ac_cv_func_std_isnan_in_cmath=no
20813fi
20814
20815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816    ac_ext=c
20817ac_cpp='$CPP $CPPFLAGS'
20818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821
20822
20823fi
20824{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20825echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20826
20827if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20828
20829cat >>confdefs.h <<\_ACEOF
20830#define HAVE_STD_ISNAN_IN_CMATH 1
20831_ACEOF
20832
20833fi
20834
20835
20836
20837
20838  { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20839echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20840if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20841  echo $ECHO_N "(cached) $ECHO_C" >&6
20842else
20843
20844    ac_ext=cpp
20845ac_cpp='$CXXCPP $CPPFLAGS'
20846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20849
20850    cat >conftest.$ac_ext <<_ACEOF
20851/* confdefs.h.  */
20852_ACEOF
20853cat confdefs.h >>conftest.$ac_ext
20854cat >>conftest.$ac_ext <<_ACEOF
20855/* end confdefs.h.  */
20856#include <math.h>
20857int
20858main ()
20859{
20860float f; isinf(f);
20861  ;
20862  return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext
20866if { (ac_try="$ac_compile"
20867case "(($ac_try" in
20868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869  *) ac_try_echo=$ac_try;;
20870esac
20871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872  (eval "$ac_compile") 2>conftest.er1
20873  ac_status=$?
20874  grep -v '^ *+' conftest.er1 >conftest.err
20875  rm -f conftest.er1
20876  cat conftest.err >&5
20877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878  (exit $ac_status); } &&
20879	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20880  { (case "(($ac_try" in
20881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882  *) ac_try_echo=$ac_try;;
20883esac
20884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885  (eval "$ac_try") 2>&5
20886  ac_status=$?
20887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888  (exit $ac_status); }; } &&
20889	 { ac_try='test -s conftest.$ac_objext'
20890  { (case "(($ac_try" in
20891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892  *) ac_try_echo=$ac_try;;
20893esac
20894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895  (eval "$ac_try") 2>&5
20896  ac_status=$?
20897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898  (exit $ac_status); }; }; then
20899  ac_cv_func_isinf_in_math_h=yes
20900else
20901  echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904	ac_cv_func_isinf_in_math_h=no
20905fi
20906
20907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908    ac_ext=c
20909ac_cpp='$CPP $CPPFLAGS'
20910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914
20915fi
20916{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20917echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20918
20919if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20920
20921cat >>confdefs.h <<\_ACEOF
20922#define HAVE_ISINF_IN_MATH_H 1
20923_ACEOF
20924
20925fi
20926
20927
20928  { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20929echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20930if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20931  echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933
20934    ac_ext=cpp
20935ac_cpp='$CXXCPP $CPPFLAGS'
20936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20939
20940    cat >conftest.$ac_ext <<_ACEOF
20941/* confdefs.h.  */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h.  */
20946#include <cmath>
20947int
20948main ()
20949{
20950float f; isinf(f);
20951  ;
20952  return 0;
20953}
20954_ACEOF
20955rm -f conftest.$ac_objext
20956if { (ac_try="$ac_compile"
20957case "(($ac_try" in
20958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959  *) ac_try_echo=$ac_try;;
20960esac
20961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962  (eval "$ac_compile") 2>conftest.er1
20963  ac_status=$?
20964  grep -v '^ *+' conftest.er1 >conftest.err
20965  rm -f conftest.er1
20966  cat conftest.err >&5
20967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968  (exit $ac_status); } &&
20969	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20970  { (case "(($ac_try" in
20971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972  *) ac_try_echo=$ac_try;;
20973esac
20974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975  (eval "$ac_try") 2>&5
20976  ac_status=$?
20977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978  (exit $ac_status); }; } &&
20979	 { ac_try='test -s conftest.$ac_objext'
20980  { (case "(($ac_try" in
20981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982  *) ac_try_echo=$ac_try;;
20983esac
20984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985  (eval "$ac_try") 2>&5
20986  ac_status=$?
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); }; }; then
20989  ac_cv_func_isinf_in_cmath=yes
20990else
20991  echo "$as_me: failed program was:" >&5
20992sed 's/^/| /' conftest.$ac_ext >&5
20993
20994	ac_cv_func_isinf_in_cmath=no
20995fi
20996
20997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998    ac_ext=c
20999ac_cpp='$CPP $CPPFLAGS'
21000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004
21005fi
21006{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21007echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21008
21009if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21010
21011cat >>confdefs.h <<\_ACEOF
21012#define HAVE_ISINF_IN_CMATH 1
21013_ACEOF
21014
21015fi
21016
21017
21018  { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21019echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21020if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21021  echo $ECHO_N "(cached) $ECHO_C" >&6
21022else
21023
21024    ac_ext=cpp
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030    cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h.  */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h.  */
21036#include <cmath>
21037int
21038main ()
21039{
21040float f; std::isinf(f);
21041  ;
21042  return 0;
21043}
21044_ACEOF
21045rm -f conftest.$ac_objext
21046if { (ac_try="$ac_compile"
21047case "(($ac_try" in
21048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049  *) ac_try_echo=$ac_try;;
21050esac
21051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052  (eval "$ac_compile") 2>conftest.er1
21053  ac_status=$?
21054  grep -v '^ *+' conftest.er1 >conftest.err
21055  rm -f conftest.er1
21056  cat conftest.err >&5
21057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058  (exit $ac_status); } &&
21059	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060  { (case "(($ac_try" in
21061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062  *) ac_try_echo=$ac_try;;
21063esac
21064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065  (eval "$ac_try") 2>&5
21066  ac_status=$?
21067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068  (exit $ac_status); }; } &&
21069	 { ac_try='test -s conftest.$ac_objext'
21070  { (case "(($ac_try" in
21071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072  *) ac_try_echo=$ac_try;;
21073esac
21074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075  (eval "$ac_try") 2>&5
21076  ac_status=$?
21077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078  (exit $ac_status); }; }; then
21079  ac_cv_func_std_isinf_in_cmath=yes
21080else
21081  echo "$as_me: failed program was:" >&5
21082sed 's/^/| /' conftest.$ac_ext >&5
21083
21084	ac_cv_func_std_isinf_in_cmath=no
21085fi
21086
21087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088    ac_ext=c
21089ac_cpp='$CPP $CPPFLAGS'
21090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092ac_compiler_gnu=$ac_cv_c_compiler_gnu
21093
21094
21095fi
21096{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21097echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21098
21099if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21100
21101cat >>confdefs.h <<\_ACEOF
21102#define HAVE_STD_ISINF_IN_CMATH 1
21103_ACEOF
21104
21105fi
21106
21107
21108  { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21109echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21110if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21111  echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113
21114    ac_ext=cpp
21115ac_cpp='$CXXCPP $CPPFLAGS'
21116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21119
21120    cat >conftest.$ac_ext <<_ACEOF
21121/* confdefs.h.  */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h.  */
21126#include <ieeefp.h>
21127int
21128main ()
21129{
21130float f; finite(f);
21131  ;
21132  return 0;
21133}
21134_ACEOF
21135rm -f conftest.$ac_objext
21136if { (ac_try="$ac_compile"
21137case "(($ac_try" in
21138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139  *) ac_try_echo=$ac_try;;
21140esac
21141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142  (eval "$ac_compile") 2>conftest.er1
21143  ac_status=$?
21144  grep -v '^ *+' conftest.er1 >conftest.err
21145  rm -f conftest.er1
21146  cat conftest.err >&5
21147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148  (exit $ac_status); } &&
21149	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21150  { (case "(($ac_try" in
21151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152  *) ac_try_echo=$ac_try;;
21153esac
21154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155  (eval "$ac_try") 2>&5
21156  ac_status=$?
21157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158  (exit $ac_status); }; } &&
21159	 { ac_try='test -s conftest.$ac_objext'
21160  { (case "(($ac_try" in
21161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162  *) ac_try_echo=$ac_try;;
21163esac
21164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165  (eval "$ac_try") 2>&5
21166  ac_status=$?
21167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168  (exit $ac_status); }; }; then
21169  ac_cv_func_finite_in_ieeefp_h=yes
21170else
21171  echo "$as_me: failed program was:" >&5
21172sed 's/^/| /' conftest.$ac_ext >&5
21173
21174	ac_cv_func_finite_in_ieeefp_h=no
21175fi
21176
21177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178    ac_ext=c
21179ac_cpp='$CPP $CPPFLAGS'
21180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182ac_compiler_gnu=$ac_cv_c_compiler_gnu
21183
21184
21185fi
21186{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21187echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21188
21189if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21190
21191cat >>confdefs.h <<\_ACEOF
21192#define HAVE_FINITE_IN_IEEEFP_H 1
21193_ACEOF
21194
21195fi
21196
21197
21198
21199if test "$llvm_cv_platform_type" = "Unix" ; then
21200
21201
21202for ac_header in stdlib.h unistd.h
21203do
21204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209  echo $ECHO_N "(cached) $ECHO_C" >&6
21210fi
21211ac_res=`eval echo '${'$as_ac_Header'}'`
21212	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21213echo "${ECHO_T}$ac_res" >&6; }
21214else
21215  # Is the header compilable?
21216{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21218cat >conftest.$ac_ext <<_ACEOF
21219/* confdefs.h.  */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h.  */
21224$ac_includes_default
21225#include <$ac_header>
21226_ACEOF
21227rm -f conftest.$ac_objext
21228if { (ac_try="$ac_compile"
21229case "(($ac_try" in
21230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231  *) ac_try_echo=$ac_try;;
21232esac
21233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234  (eval "$ac_compile") 2>conftest.er1
21235  ac_status=$?
21236  grep -v '^ *+' conftest.er1 >conftest.err
21237  rm -f conftest.er1
21238  cat conftest.err >&5
21239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240  (exit $ac_status); } &&
21241	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242  { (case "(($ac_try" in
21243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244  *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247  (eval "$ac_try") 2>&5
21248  ac_status=$?
21249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250  (exit $ac_status); }; } &&
21251	 { ac_try='test -s conftest.$ac_objext'
21252  { (case "(($ac_try" in
21253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254  *) ac_try_echo=$ac_try;;
21255esac
21256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257  (eval "$ac_try") 2>&5
21258  ac_status=$?
21259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260  (exit $ac_status); }; }; then
21261  ac_header_compiler=yes
21262else
21263  echo "$as_me: failed program was:" >&5
21264sed 's/^/| /' conftest.$ac_ext >&5
21265
21266	ac_header_compiler=no
21267fi
21268
21269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21271echo "${ECHO_T}$ac_header_compiler" >&6; }
21272
21273# Is the header present?
21274{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21276cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h.  */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h.  */
21282#include <$ac_header>
21283_ACEOF
21284if { (ac_try="$ac_cpp conftest.$ac_ext"
21285case "(($ac_try" in
21286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287  *) ac_try_echo=$ac_try;;
21288esac
21289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21291  ac_status=$?
21292  grep -v '^ *+' conftest.er1 >conftest.err
21293  rm -f conftest.er1
21294  cat conftest.err >&5
21295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296  (exit $ac_status); } >/dev/null; then
21297  if test -s conftest.err; then
21298    ac_cpp_err=$ac_c_preproc_warn_flag
21299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21300  else
21301    ac_cpp_err=
21302  fi
21303else
21304  ac_cpp_err=yes
21305fi
21306if test -z "$ac_cpp_err"; then
21307  ac_header_preproc=yes
21308else
21309  echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312  ac_header_preproc=no
21313fi
21314
21315rm -f conftest.err conftest.$ac_ext
21316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317echo "${ECHO_T}$ac_header_preproc" >&6; }
21318
21319# So?  What about this header?
21320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21321  yes:no: )
21322    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326    ac_header_preproc=yes
21327    ;;
21328  no:yes:* )
21329    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21332echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21333    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21336echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341    ( cat <<\_ASBOX
21342## ------------------------------------ ##
21343## Report this to http://llvm.org/bugs/ ##
21344## ------------------------------------ ##
21345_ASBOX
21346     ) | sed "s/^/$as_me: WARNING:     /" >&2
21347    ;;
21348esac
21349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21352  echo $ECHO_N "(cached) $ECHO_C" >&6
21353else
21354  eval "$as_ac_Header=\$ac_header_preproc"
21355fi
21356ac_res=`eval echo '${'$as_ac_Header'}'`
21357	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21358echo "${ECHO_T}$ac_res" >&6; }
21359
21360fi
21361if test `eval echo '${'$as_ac_Header'}'` = yes; then
21362  cat >>confdefs.h <<_ACEOF
21363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21364_ACEOF
21365
21366fi
21367
21368done
21369
21370
21371for ac_func in getpagesize
21372do
21373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21374{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21377  echo $ECHO_N "(cached) $ECHO_C" >&6
21378else
21379  cat >conftest.$ac_ext <<_ACEOF
21380/* confdefs.h.  */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h.  */
21385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21386   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21387#define $ac_func innocuous_$ac_func
21388
21389/* System header to define __stub macros and hopefully few prototypes,
21390    which can conflict with char $ac_func (); below.
21391    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21392    <limits.h> exists even on freestanding compilers.  */
21393
21394#ifdef __STDC__
21395# include <limits.h>
21396#else
21397# include <assert.h>
21398#endif
21399
21400#undef $ac_func
21401
21402/* Override any GCC internal prototype to avoid an error.
21403   Use char because int might match the return type of a GCC
21404   builtin and then its argument prototype would still apply.  */
21405#ifdef __cplusplus
21406extern "C"
21407#endif
21408char $ac_func ();
21409/* The GNU C library defines this for functions which it implements
21410    to always fail with ENOSYS.  Some functions are actually named
21411    something starting with __ and the normal name is an alias.  */
21412#if defined __stub_$ac_func || defined __stub___$ac_func
21413choke me
21414#endif
21415
21416int
21417main ()
21418{
21419return $ac_func ();
21420  ;
21421  return 0;
21422}
21423_ACEOF
21424rm -f conftest.$ac_objext conftest$ac_exeext
21425if { (ac_try="$ac_link"
21426case "(($ac_try" in
21427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428  *) ac_try_echo=$ac_try;;
21429esac
21430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431  (eval "$ac_link") 2>conftest.er1
21432  ac_status=$?
21433  grep -v '^ *+' conftest.er1 >conftest.err
21434  rm -f conftest.er1
21435  cat conftest.err >&5
21436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437  (exit $ac_status); } &&
21438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439  { (case "(($ac_try" in
21440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441  *) ac_try_echo=$ac_try;;
21442esac
21443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444  (eval "$ac_try") 2>&5
21445  ac_status=$?
21446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447  (exit $ac_status); }; } &&
21448	 { ac_try='test -s conftest$ac_exeext'
21449  { (case "(($ac_try" in
21450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451  *) ac_try_echo=$ac_try;;
21452esac
21453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454  (eval "$ac_try") 2>&5
21455  ac_status=$?
21456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457  (exit $ac_status); }; }; then
21458  eval "$as_ac_var=yes"
21459else
21460  echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
21463	eval "$as_ac_var=no"
21464fi
21465
21466rm -f core conftest.err conftest.$ac_objext \
21467      conftest$ac_exeext conftest.$ac_ext
21468fi
21469ac_res=`eval echo '${'$as_ac_var'}'`
21470	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21471echo "${ECHO_T}$ac_res" >&6; }
21472if test `eval echo '${'$as_ac_var'}'` = yes; then
21473  cat >>confdefs.h <<_ACEOF
21474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21475_ACEOF
21476
21477fi
21478done
21479
21480{ echo "$as_me:$LINENO: checking for working mmap" >&5
21481echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21482if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21483  echo $ECHO_N "(cached) $ECHO_C" >&6
21484else
21485  if test "$cross_compiling" = yes; then
21486  ac_cv_func_mmap_fixed_mapped=no
21487else
21488  cat >conftest.$ac_ext <<_ACEOF
21489/* confdefs.h.  */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h.  */
21494$ac_includes_default
21495/* malloc might have been renamed as rpl_malloc. */
21496#undef malloc
21497
21498/* Thanks to Mike Haertel and Jim Avera for this test.
21499   Here is a matrix of mmap possibilities:
21500	mmap private not fixed
21501	mmap private fixed at somewhere currently unmapped
21502	mmap private fixed at somewhere already mapped
21503	mmap shared not fixed
21504	mmap shared fixed at somewhere currently unmapped
21505	mmap shared fixed at somewhere already mapped
21506   For private mappings, we should verify that changes cannot be read()
21507   back from the file, nor mmap's back from the file at a different
21508   address.  (There have been systems where private was not correctly
21509   implemented like the infamous i386 svr4.0, and systems where the
21510   VM page cache was not coherent with the file system buffer cache
21511   like early versions of FreeBSD and possibly contemporary NetBSD.)
21512   For shared mappings, we should conversely verify that changes get
21513   propagated back to all the places they're supposed to be.
21514
21515   Grep wants private fixed already mapped.
21516   The main things grep needs to know about mmap are:
21517   * does it exist and is it safe to write into the mmap'd area
21518   * how to use it (BSD variants)  */
21519
21520#include <fcntl.h>
21521#include <sys/mman.h>
21522
21523#if !STDC_HEADERS && !HAVE_STDLIB_H
21524char *malloc ();
21525#endif
21526
21527/* This mess was copied from the GNU getpagesize.h.  */
21528#if !HAVE_GETPAGESIZE
21529/* Assume that all systems that can run configure have sys/param.h.  */
21530# if !HAVE_SYS_PARAM_H
21531#  define HAVE_SYS_PARAM_H 1
21532# endif
21533
21534# ifdef _SC_PAGESIZE
21535#  define getpagesize() sysconf(_SC_PAGESIZE)
21536# else /* no _SC_PAGESIZE */
21537#  if HAVE_SYS_PARAM_H
21538#   include <sys/param.h>
21539#   ifdef EXEC_PAGESIZE
21540#    define getpagesize() EXEC_PAGESIZE
21541#   else /* no EXEC_PAGESIZE */
21542#    ifdef NBPG
21543#     define getpagesize() NBPG * CLSIZE
21544#     ifndef CLSIZE
21545#      define CLSIZE 1
21546#     endif /* no CLSIZE */
21547#    else /* no NBPG */
21548#     ifdef NBPC
21549#      define getpagesize() NBPC
21550#     else /* no NBPC */
21551#      ifdef PAGESIZE
21552#       define getpagesize() PAGESIZE
21553#      endif /* PAGESIZE */
21554#     endif /* no NBPC */
21555#    endif /* no NBPG */
21556#   endif /* no EXEC_PAGESIZE */
21557#  else /* no HAVE_SYS_PARAM_H */
21558#   define getpagesize() 8192	/* punt totally */
21559#  endif /* no HAVE_SYS_PARAM_H */
21560# endif /* no _SC_PAGESIZE */
21561
21562#endif /* no HAVE_GETPAGESIZE */
21563
21564int
21565main ()
21566{
21567  char *data, *data2, *data3;
21568  int i, pagesize;
21569  int fd;
21570
21571  pagesize = getpagesize ();
21572
21573  /* First, make a file with some known garbage in it. */
21574  data = (char *) malloc (pagesize);
21575  if (!data)
21576    return 1;
21577  for (i = 0; i < pagesize; ++i)
21578    *(data + i) = rand ();
21579  umask (0);
21580  fd = creat ("conftest.mmap", 0600);
21581  if (fd < 0)
21582    return 1;
21583  if (write (fd, data, pagesize) != pagesize)
21584    return 1;
21585  close (fd);
21586
21587  /* Next, try to mmap the file at a fixed address which already has
21588     something else allocated at it.  If we can, also make sure that
21589     we see the same garbage.  */
21590  fd = open ("conftest.mmap", O_RDWR);
21591  if (fd < 0)
21592    return 1;
21593  data2 = (char *) malloc (2 * pagesize);
21594  if (!data2)
21595    return 1;
21596  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21597  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21598		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21599    return 1;
21600  for (i = 0; i < pagesize; ++i)
21601    if (*(data + i) != *(data2 + i))
21602      return 1;
21603
21604  /* Finally, make sure that changes to the mapped area do not
21605     percolate back to the file as seen by read().  (This is a bug on
21606     some variants of i386 svr4.0.)  */
21607  for (i = 0; i < pagesize; ++i)
21608    *(data2 + i) = *(data2 + i) + 1;
21609  data3 = (char *) malloc (pagesize);
21610  if (!data3)
21611    return 1;
21612  if (read (fd, data3, pagesize) != pagesize)
21613    return 1;
21614  for (i = 0; i < pagesize; ++i)
21615    if (*(data + i) != *(data3 + i))
21616      return 1;
21617  close (fd);
21618  return 0;
21619}
21620_ACEOF
21621rm -f conftest$ac_exeext
21622if { (ac_try="$ac_link"
21623case "(($ac_try" in
21624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625  *) ac_try_echo=$ac_try;;
21626esac
21627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628  (eval "$ac_link") 2>&5
21629  ac_status=$?
21630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21632  { (case "(($ac_try" in
21633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634  *) ac_try_echo=$ac_try;;
21635esac
21636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637  (eval "$ac_try") 2>&5
21638  ac_status=$?
21639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640  (exit $ac_status); }; }; then
21641  ac_cv_func_mmap_fixed_mapped=yes
21642else
21643  echo "$as_me: program exited with status $ac_status" >&5
21644echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647( exit $ac_status )
21648ac_cv_func_mmap_fixed_mapped=no
21649fi
21650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21651fi
21652
21653
21654fi
21655{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21656echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21657if test $ac_cv_func_mmap_fixed_mapped = yes; then
21658
21659cat >>confdefs.h <<\_ACEOF
21660#define HAVE_MMAP 1
21661_ACEOF
21662
21663fi
21664rm -f conftest.mmap
21665
21666  { echo "$as_me:$LINENO: checking for mmap of files" >&5
21667echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21668if test "${ac_cv_func_mmap_file+set}" = set; then
21669  echo $ECHO_N "(cached) $ECHO_C" >&6
21670else
21671   ac_ext=c
21672ac_cpp='$CPP $CPPFLAGS'
21673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676
21677  if test "$cross_compiling" = yes; then
21678  ac_cv_func_mmap_file=no
21679else
21680  cat >conftest.$ac_ext <<_ACEOF
21681
21682    /* confdefs.h.  */
21683_ACEOF
21684cat confdefs.h >>conftest.$ac_ext
21685cat >>conftest.$ac_ext <<_ACEOF
21686/* end confdefs.h.  */
21687
21688#include <sys/types.h>
21689#include <sys/mman.h>
21690#include <fcntl.h>
21691
21692int
21693main ()
21694{
21695
21696  int fd;
21697  fd = creat ("foo",0777);
21698  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21699  unlink ("foo");
21700  return (fd != (int) MAP_FAILED);
21701  ;
21702  return 0;
21703}
21704_ACEOF
21705rm -f conftest$ac_exeext
21706if { (ac_try="$ac_link"
21707case "(($ac_try" in
21708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709  *) ac_try_echo=$ac_try;;
21710esac
21711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712  (eval "$ac_link") 2>&5
21713  ac_status=$?
21714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21716  { (case "(($ac_try" in
21717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718  *) ac_try_echo=$ac_try;;
21719esac
21720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721  (eval "$ac_try") 2>&5
21722  ac_status=$?
21723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724  (exit $ac_status); }; }; then
21725  ac_cv_func_mmap_file=yes
21726else
21727  echo "$as_me: program exited with status $ac_status" >&5
21728echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
21731( exit $ac_status )
21732ac_cv_func_mmap_file=no
21733fi
21734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21735fi
21736
21737
21738  ac_ext=c
21739ac_cpp='$CPP $CPPFLAGS'
21740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743
21744
21745fi
21746{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21747echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21748if test "$ac_cv_func_mmap_file" = yes; then
21749
21750cat >>confdefs.h <<\_ACEOF
21751#define HAVE_MMAP_FILE
21752_ACEOF
21753
21754   MMAP_FILE=yes
21755
21756fi
21757
21758  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21759echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21760if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21761  echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763  if test "$llvm_cv_os_type" = "Interix" ; then
21764   ac_cv_need_dev_zero_for_mmap=yes
21765 else
21766   ac_cv_need_dev_zero_for_mmap=no
21767 fi
21768
21769fi
21770{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21771echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21772if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21773
21774cat >>confdefs.h <<\_ACEOF
21775#define NEED_DEV_ZERO_FOR_MMAP 1
21776_ACEOF
21777
21778fi
21779
21780  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21781  then
21782    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21783echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21784  fi
21785  if test "$ac_cv_func_mmap_file" = "no"
21786  then
21787    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21788echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21789  fi
21790fi
21791
21792{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21793echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21794ac_ext=cpp
21795ac_cpp='$CXXCPP $CPPFLAGS'
21796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21799
21800cat >conftest.$ac_ext <<_ACEOF
21801
21802  /* confdefs.h.  */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h.  */
21807
21808    int main() {
21809      volatile unsigned long val = 1;
21810      __sync_synchronize();
21811      __sync_val_compare_and_swap(&val, 1, 0);
21812      __sync_add_and_fetch(&val, 1);
21813      __sync_sub_and_fetch(&val, 1);
21814      return 0;
21815    }
21816
21817
21818_ACEOF
21819rm -f conftest.$ac_objext conftest$ac_exeext
21820if { (ac_try="$ac_link"
21821case "(($ac_try" in
21822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823  *) ac_try_echo=$ac_try;;
21824esac
21825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826  (eval "$ac_link") 2>conftest.er1
21827  ac_status=$?
21828  grep -v '^ *+' conftest.er1 >conftest.err
21829  rm -f conftest.er1
21830  cat conftest.err >&5
21831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832  (exit $ac_status); } &&
21833	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21834  { (case "(($ac_try" in
21835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836  *) ac_try_echo=$ac_try;;
21837esac
21838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839  (eval "$ac_try") 2>&5
21840  ac_status=$?
21841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842  (exit $ac_status); }; } &&
21843	 { ac_try='test -s conftest$ac_exeext'
21844  { (case "(($ac_try" in
21845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846  *) ac_try_echo=$ac_try;;
21847esac
21848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849  (eval "$ac_try") 2>&5
21850  ac_status=$?
21851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852  (exit $ac_status); }; }; then
21853
21854  { echo "$as_me:$LINENO: result: yes" >&5
21855echo "${ECHO_T}yes" >&6; }
21856
21857cat >>confdefs.h <<\_ACEOF
21858#define LLVM_HAS_ATOMICS 1
21859_ACEOF
21860
21861
21862else
21863  echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
21865
21866
21867  { echo "$as_me:$LINENO: result: no" >&5
21868echo "${ECHO_T}no" >&6; }
21869
21870cat >>confdefs.h <<\_ACEOF
21871#define LLVM_HAS_ATOMICS 0
21872_ACEOF
21873
21874  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21875echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21876
21877fi
21878
21879rm -f core conftest.err conftest.$ac_objext \
21880      conftest$ac_exeext conftest.$ac_ext
21881ac_ext=c
21882ac_cpp='$CPP $CPPFLAGS'
21883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885ac_compiler_gnu=$ac_cv_c_compiler_gnu
21886
21887
21888
21889if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21890  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21891echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21892if test "${llvm_cv_linux_mixed+set}" = set; then
21893  echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895   ac_ext=c
21896ac_cpp='$CPP $CPPFLAGS'
21897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21899ac_compiler_gnu=$ac_cv_c_compiler_gnu
21900
21901  cat >conftest.$ac_ext <<_ACEOF
21902/* confdefs.h.  */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h.  */
21907#ifndef __x86_64__
21908       error: Not x86-64 even if uname says so!
21909      #endif
21910
21911int
21912main ()
21913{
21914
21915  ;
21916  return 0;
21917}
21918_ACEOF
21919rm -f conftest.$ac_objext
21920if { (ac_try="$ac_compile"
21921case "(($ac_try" in
21922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923  *) ac_try_echo=$ac_try;;
21924esac
21925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926  (eval "$ac_compile") 2>conftest.er1
21927  ac_status=$?
21928  grep -v '^ *+' conftest.er1 >conftest.err
21929  rm -f conftest.er1
21930  cat conftest.err >&5
21931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932  (exit $ac_status); } &&
21933	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21934  { (case "(($ac_try" in
21935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936  *) ac_try_echo=$ac_try;;
21937esac
21938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939  (eval "$ac_try") 2>&5
21940  ac_status=$?
21941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942  (exit $ac_status); }; } &&
21943	 { ac_try='test -s conftest.$ac_objext'
21944  { (case "(($ac_try" in
21945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946  *) ac_try_echo=$ac_try;;
21947esac
21948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949  (eval "$ac_try") 2>&5
21950  ac_status=$?
21951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952  (exit $ac_status); }; }; then
21953  llvm_cv_linux_mixed=no
21954else
21955  echo "$as_me: failed program was:" >&5
21956sed 's/^/| /' conftest.$ac_ext >&5
21957
21958	llvm_cv_linux_mixed=yes
21959fi
21960
21961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962  ac_ext=c
21963ac_cpp='$CPP $CPPFLAGS'
21964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966ac_compiler_gnu=$ac_cv_c_compiler_gnu
21967
21968
21969fi
21970{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21971echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21972
21973  if test "$llvm_cv_linux_mixed" = "yes"; then
21974    llvm_cv_target_arch="x86"
21975    ARCH="x86"
21976  fi
21977fi
21978
21979
21980for ac_func in __dso_handle
21981do
21982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21986  echo $ECHO_N "(cached) $ECHO_C" >&6
21987else
21988  cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h.  */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h.  */
21994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21996#define $ac_func innocuous_$ac_func
21997
21998/* System header to define __stub macros and hopefully few prototypes,
21999    which can conflict with char $ac_func (); below.
22000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001    <limits.h> exists even on freestanding compilers.  */
22002
22003#ifdef __STDC__
22004# include <limits.h>
22005#else
22006# include <assert.h>
22007#endif
22008
22009#undef $ac_func
22010
22011/* Override any GCC internal prototype to avoid an error.
22012   Use char because int might match the return type of a GCC
22013   builtin and then its argument prototype would still apply.  */
22014#ifdef __cplusplus
22015extern "C"
22016#endif
22017char $ac_func ();
22018/* The GNU C library defines this for functions which it implements
22019    to always fail with ENOSYS.  Some functions are actually named
22020    something starting with __ and the normal name is an alias.  */
22021#if defined __stub_$ac_func || defined __stub___$ac_func
22022choke me
22023#endif
22024
22025int
22026main ()
22027{
22028return $ac_func ();
22029  ;
22030  return 0;
22031}
22032_ACEOF
22033rm -f conftest.$ac_objext conftest$ac_exeext
22034if { (ac_try="$ac_link"
22035case "(($ac_try" in
22036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037  *) ac_try_echo=$ac_try;;
22038esac
22039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040  (eval "$ac_link") 2>conftest.er1
22041  ac_status=$?
22042  grep -v '^ *+' conftest.er1 >conftest.err
22043  rm -f conftest.er1
22044  cat conftest.err >&5
22045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046  (exit $ac_status); } &&
22047	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22048  { (case "(($ac_try" in
22049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050  *) ac_try_echo=$ac_try;;
22051esac
22052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053  (eval "$ac_try") 2>&5
22054  ac_status=$?
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); }; } &&
22057	 { ac_try='test -s conftest$ac_exeext'
22058  { (case "(($ac_try" in
22059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060  *) ac_try_echo=$ac_try;;
22061esac
22062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063  (eval "$ac_try") 2>&5
22064  ac_status=$?
22065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066  (exit $ac_status); }; }; then
22067  eval "$as_ac_var=yes"
22068else
22069  echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072	eval "$as_ac_var=no"
22073fi
22074
22075rm -f core conftest.err conftest.$ac_objext \
22076      conftest$ac_exeext conftest.$ac_ext
22077fi
22078ac_res=`eval echo '${'$as_ac_var'}'`
22079	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22080echo "${ECHO_T}$ac_res" >&6; }
22081if test `eval echo '${'$as_ac_var'}'` = yes; then
22082  cat >>confdefs.h <<_ACEOF
22083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22084_ACEOF
22085
22086fi
22087done
22088
22089
22090SHLIBEXT=$libltdl_cv_shlibext
22091
22092
22093SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22094
22095
22096if test "${prefix}" = "NONE" ; then
22097  prefix="/usr/local"
22098fi
22099eval LLVM_PREFIX="${prefix}";
22100eval LLVM_BINDIR="${prefix}/bin";
22101eval LLVM_DATADIR="${prefix}/share/llvm";
22102eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22103eval LLVM_ETCDIR="${prefix}/etc/llvm";
22104eval LLVM_INCLUDEDIR="${prefix}/include";
22105eval LLVM_INFODIR="${prefix}/info";
22106eval LLVM_MANDIR="${prefix}/man";
22107LLVM_CONFIGTIME=`date`
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118if test "${ENABLE_TIMESTAMPS}" = "0"; then
22119  LLVM_CONFIGTIME="(timestamp not enabled)"
22120fi
22121
22122
22123cat >>confdefs.h <<_ACEOF
22124#define LLVM_PREFIX "$LLVM_PREFIX"
22125_ACEOF
22126
22127
22128cat >>confdefs.h <<_ACEOF
22129#define LLVM_BINDIR "$LLVM_BINDIR"
22130_ACEOF
22131
22132
22133cat >>confdefs.h <<_ACEOF
22134#define LLVM_DATADIR "$LLVM_DATADIR"
22135_ACEOF
22136
22137
22138cat >>confdefs.h <<_ACEOF
22139#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22140_ACEOF
22141
22142
22143cat >>confdefs.h <<_ACEOF
22144#define LLVM_ETCDIR "$LLVM_ETCDIR"
22145_ACEOF
22146
22147
22148cat >>confdefs.h <<_ACEOF
22149#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22150_ACEOF
22151
22152
22153cat >>confdefs.h <<_ACEOF
22154#define LLVM_INFODIR "$LLVM_INFODIR"
22155_ACEOF
22156
22157
22158cat >>confdefs.h <<_ACEOF
22159#define LLVM_MANDIR "$LLVM_MANDIR"
22160_ACEOF
22161
22162
22163cat >>confdefs.h <<_ACEOF
22164#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22165_ACEOF
22166
22167
22168cat >>confdefs.h <<_ACEOF
22169#define LLVM_HOST_TRIPLE "$host"
22170_ACEOF
22171
22172
22173cat >>confdefs.h <<_ACEOF
22174#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22175_ACEOF
22176
22177
22178if test "$BINDINGS_TO_BUILD" = auto ; then
22179  BINDINGS_TO_BUILD=""
22180  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22181    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22182  fi
22183fi
22184BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22185
22186
22187ALL_BINDINGS=ocaml
22188
22189
22190binding_prereqs_failed=0
22191for a_binding in $BINDINGS_TO_BUILD ; do
22192  case "$a_binding" in
22193  ocaml)
22194    if test "x$OCAMLC" = x ; then
22195      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22196echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22197      binding_prereqs_failed=1
22198    fi
22199    if test "x$OCAMLDEP" = x ; then
22200      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22201echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22202      binding_prereqs_failed=1
22203    fi
22204    if test "x$OCAMLOPT" = x ; then
22205      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22206echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22207          fi
22208    if test "x$with_ocaml_libdir" != xauto ; then
22209      OCAML_LIBDIR=$with_ocaml_libdir
22210
22211    else
22212      ocaml_stdlib="`"$OCAMLC" -where`"
22213      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22214      then
22215        # ocaml stdlib is beneath our prefix; use stdlib
22216        OCAML_LIBDIR=$ocaml_stdlib
22217
22218      else
22219        # ocaml stdlib is outside our prefix; use libdir/ocaml
22220        OCAML_LIBDIR=${prefix}/lib/ocaml
22221
22222      fi
22223    fi
22224    ;;
22225  esac
22226done
22227if test "$binding_prereqs_failed" = 1 ; then
22228  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22229echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22230   { (exit 1); exit 1; }; }
22231fi
22232
22233{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22234echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22235if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22236  echo $ECHO_N "(cached) $ECHO_C" >&6
22237else
22238   ac_ext=cpp
22239ac_cpp='$CXXCPP $CPPFLAGS'
22240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22243
22244  oldcxxflags="$CXXFLAGS"
22245  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22246  cat >conftest.$ac_ext <<_ACEOF
22247/* confdefs.h.  */
22248_ACEOF
22249cat confdefs.h >>conftest.$ac_ext
22250cat >>conftest.$ac_ext <<_ACEOF
22251/* end confdefs.h.  */
22252template <typename T> struct X { void __attribute__((noinline)) f() {} };
22253int
22254main ()
22255{
22256X<int>().f();
22257  ;
22258  return 0;
22259}
22260_ACEOF
22261rm -f conftest.$ac_objext
22262if { (ac_try="$ac_compile"
22263case "(($ac_try" in
22264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265  *) ac_try_echo=$ac_try;;
22266esac
22267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268  (eval "$ac_compile") 2>conftest.er1
22269  ac_status=$?
22270  grep -v '^ *+' conftest.er1 >conftest.err
22271  rm -f conftest.er1
22272  cat conftest.err >&5
22273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274  (exit $ac_status); } &&
22275	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22276  { (case "(($ac_try" in
22277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278  *) ac_try_echo=$ac_try;;
22279esac
22280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281  (eval "$ac_try") 2>&5
22282  ac_status=$?
22283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284  (exit $ac_status); }; } &&
22285	 { ac_try='test -s conftest.$ac_objext'
22286  { (case "(($ac_try" in
22287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288  *) ac_try_echo=$ac_try;;
22289esac
22290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291  (eval "$ac_try") 2>&5
22292  ac_status=$?
22293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294  (exit $ac_status); }; }; then
22295  llvm_cv_cxx_visibility_inlines_hidden=yes
22296else
22297  echo "$as_me: failed program was:" >&5
22298sed 's/^/| /' conftest.$ac_ext >&5
22299
22300	llvm_cv_cxx_visibility_inlines_hidden=no
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304  CXXFLAGS="$oldcxxflags"
22305  ac_ext=c
22306ac_cpp='$CPP $CPPFLAGS'
22307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309ac_compiler_gnu=$ac_cv_c_compiler_gnu
22310
22311
22312fi
22313{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22314echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22315if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22316  ENABLE_VISIBILITY_INLINES_HIDDEN=1
22317
22318else
22319  ENABLE_VISIBILITY_INLINES_HIDDEN=0
22320
22321fi
22322
22323
22324if test "$llvm_cv_link_use_r" = "yes" ; then
22325  RPATH="-Wl,-R"
22326else
22327  RPATH="-Wl,-rpath"
22328fi
22329
22330
22331if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22332  RDYNAMIC="-rdynamic"
22333else
22334  RDYNAMIC=""
22335fi
22336
22337
22338
22339ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22340
22341
22342
22343
22344
22345
22346ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22347
22348ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22349
22350ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22351
22352ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22353
22354ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22355
22356
22357ac_config_files="$ac_config_files Makefile.config"
22358
22359
22360ac_config_files="$ac_config_files llvm.spec"
22361
22362
22363ac_config_files="$ac_config_files docs/doxygen.cfg"
22364
22365
22366if test "${clang_src_root}" = ""; then
22367  clang_src_root="$srcdir/tools/clang"
22368fi
22369if test -f ${clang_src_root}/README.txt; then
22370    configh="include/clang/Config/config.h"
22371  doxy="docs/doxygen.cfg"
22372  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22373
22374  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22375
22376fi
22377
22378ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22379
22380
22381test "x$program_prefix" = "xNONE" && program_prefix=""
22382
22383
22384
22385ac_config_commands="$ac_config_commands setup"
22386
22387ac_config_commands="$ac_config_commands Makefile"
22388
22389
22390ac_config_commands="$ac_config_commands Makefile.common"
22391
22392
22393ac_config_commands="$ac_config_commands examples/Makefile"
22394
22395
22396ac_config_commands="$ac_config_commands lib/Makefile"
22397
22398
22399ac_config_commands="$ac_config_commands runtime/Makefile"
22400
22401
22402ac_config_commands="$ac_config_commands test/Makefile"
22403
22404
22405ac_config_commands="$ac_config_commands test/Makefile.tests"
22406
22407
22408ac_config_commands="$ac_config_commands unittests/Makefile"
22409
22410
22411ac_config_commands="$ac_config_commands tools/Makefile"
22412
22413
22414ac_config_commands="$ac_config_commands utils/Makefile"
22415
22416
22417ac_config_commands="$ac_config_commands projects/Makefile"
22418
22419
22420ac_config_commands="$ac_config_commands bindings/Makefile"
22421
22422
22423ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22424
22425
22426
22427cat >confcache <<\_ACEOF
22428# This file is a shell script that caches the results of configure
22429# tests run on this system so they can be shared between configure
22430# scripts and configure runs, see configure's option --config-cache.
22431# It is not useful on other systems.  If it contains results you don't
22432# want to keep, you may remove or edit it.
22433#
22434# config.status only pays attention to the cache file if you give it
22435# the --recheck option to rerun configure.
22436#
22437# `ac_cv_env_foo' variables (set or unset) will be overridden when
22438# loading this file, other *unset* `ac_cv_foo' will be assigned the
22439# following values.
22440
22441_ACEOF
22442
22443# The following way of writing the cache mishandles newlines in values,
22444# but we know of no workaround that is simple, portable, and efficient.
22445# So, we kill variables containing newlines.
22446# Ultrix sh set writes to stderr and can't be redirected directly,
22447# and sets the high bit in the cache file unless we assign to the vars.
22448(
22449  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22450    eval ac_val=\$$ac_var
22451    case $ac_val in #(
22452    *${as_nl}*)
22453      case $ac_var in #(
22454      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22455echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22456      esac
22457      case $ac_var in #(
22458      _ | IFS | as_nl) ;; #(
22459      *) $as_unset $ac_var ;;
22460      esac ;;
22461    esac
22462  done
22463
22464  (set) 2>&1 |
22465    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22466    *${as_nl}ac_space=\ *)
22467      # `set' does not quote correctly, so add quotes (double-quote
22468      # substitution turns \\\\ into \\, and sed turns \\ into \).
22469      sed -n \
22470	"s/'/'\\\\''/g;
22471	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22472      ;; #(
22473    *)
22474      # `set' quotes correctly as required by POSIX, so do not add quotes.
22475      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22476      ;;
22477    esac |
22478    sort
22479) |
22480  sed '
22481     /^ac_cv_env_/b end
22482     t clear
22483     :clear
22484     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22485     t end
22486     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22487     :end' >>confcache
22488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22489  if test -w "$cache_file"; then
22490    test "x$cache_file" != "x/dev/null" &&
22491      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22492echo "$as_me: updating cache $cache_file" >&6;}
22493    cat confcache >$cache_file
22494  else
22495    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22496echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22497  fi
22498fi
22499rm -f confcache
22500
22501test "x$prefix" = xNONE && prefix=$ac_default_prefix
22502# Let make expand exec_prefix.
22503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22504
22505DEFS=-DHAVE_CONFIG_H
22506
22507ac_libobjs=
22508ac_ltlibobjs=
22509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22510  # 1. Remove the extension, and $U if already installed.
22511  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22512  ac_i=`echo "$ac_i" | sed "$ac_script"`
22513  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22514  #    will be set to the directory where LIBOBJS objects are built.
22515  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22516  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22517done
22518LIBOBJS=$ac_libobjs
22519
22520LTLIBOBJS=$ac_ltlibobjs
22521
22522
22523if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22524  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22525Usually this means the macro was only invoked conditionally." >&5
22526echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22527Usually this means the macro was only invoked conditionally." >&2;}
22528   { (exit 1); exit 1; }; }
22529fi
22530if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22531  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22532Usually this means the macro was only invoked conditionally." >&5
22533echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22534Usually this means the macro was only invoked conditionally." >&2;}
22535   { (exit 1); exit 1; }; }
22536fi
22537
22538: ${CONFIG_STATUS=./config.status}
22539ac_clean_files_save=$ac_clean_files
22540ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22541{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22542echo "$as_me: creating $CONFIG_STATUS" >&6;}
22543cat >$CONFIG_STATUS <<_ACEOF
22544#! $SHELL
22545# Generated by $as_me.
22546# Run this file to recreate the current configuration.
22547# Compiler output produced by configure, useful for debugging
22548# configure, is in config.log if it exists.
22549
22550debug=false
22551ac_cs_recheck=false
22552ac_cs_silent=false
22553SHELL=\${CONFIG_SHELL-$SHELL}
22554_ACEOF
22555
22556cat >>$CONFIG_STATUS <<\_ACEOF
22557## --------------------- ##
22558## M4sh Initialization.  ##
22559## --------------------- ##
22560
22561# Be Bourne compatible
22562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22563  emulate sh
22564  NULLCMD=:
22565  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22566  # is contrary to our usage.  Disable this feature.
22567  alias -g '${1+"$@"}'='"$@"'
22568  setopt NO_GLOB_SUBST
22569else
22570  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22571fi
22572BIN_SH=xpg4; export BIN_SH # for Tru64
22573DUALCASE=1; export DUALCASE # for MKS sh
22574
22575
22576# PATH needs CR
22577# Avoid depending upon Character Ranges.
22578as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22580as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22581as_cr_digits='0123456789'
22582as_cr_alnum=$as_cr_Letters$as_cr_digits
22583
22584# The user is always right.
22585if test "${PATH_SEPARATOR+set}" != set; then
22586  echo "#! /bin/sh" >conf$$.sh
22587  echo  "exit 0"   >>conf$$.sh
22588  chmod +x conf$$.sh
22589  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22590    PATH_SEPARATOR=';'
22591  else
22592    PATH_SEPARATOR=:
22593  fi
22594  rm -f conf$$.sh
22595fi
22596
22597# Support unset when possible.
22598if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22599  as_unset=unset
22600else
22601  as_unset=false
22602fi
22603
22604
22605# IFS
22606# We need space, tab and new line, in precisely that order.  Quoting is
22607# there to prevent editors from complaining about space-tab.
22608# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22609# splitting by setting IFS to empty value.)
22610as_nl='
22611'
22612IFS=" ""	$as_nl"
22613
22614# Find who we are.  Look in the path if we contain no directory separator.
22615case $0 in
22616  *[\\/]* ) as_myself=$0 ;;
22617  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618for as_dir in $PATH
22619do
22620  IFS=$as_save_IFS
22621  test -z "$as_dir" && as_dir=.
22622  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22623done
22624IFS=$as_save_IFS
22625
22626     ;;
22627esac
22628# We did not find ourselves, most probably we were run as `sh COMMAND'
22629# in which case we are not to be found in the path.
22630if test "x$as_myself" = x; then
22631  as_myself=$0
22632fi
22633if test ! -f "$as_myself"; then
22634  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22635  { (exit 1); exit 1; }
22636fi
22637
22638# Work around bugs in pre-3.0 UWIN ksh.
22639for as_var in ENV MAIL MAILPATH
22640do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22641done
22642PS1='$ '
22643PS2='> '
22644PS4='+ '
22645
22646# NLS nuisances.
22647for as_var in \
22648  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22649  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22650  LC_TELEPHONE LC_TIME
22651do
22652  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22653    eval $as_var=C; export $as_var
22654  else
22655    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22656  fi
22657done
22658
22659# Required to use basename.
22660if expr a : '\(a\)' >/dev/null 2>&1 &&
22661   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22662  as_expr=expr
22663else
22664  as_expr=false
22665fi
22666
22667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22668  as_basename=basename
22669else
22670  as_basename=false
22671fi
22672
22673
22674# Name of the executable.
22675as_me=`$as_basename -- "$0" ||
22676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22677	 X"$0" : 'X\(//\)$' \| \
22678	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22679echo X/"$0" |
22680    sed '/^.*\/\([^/][^/]*\)\/*$/{
22681	    s//\1/
22682	    q
22683	  }
22684	  /^X\/\(\/\/\)$/{
22685	    s//\1/
22686	    q
22687	  }
22688	  /^X\/\(\/\).*/{
22689	    s//\1/
22690	    q
22691	  }
22692	  s/.*/./; q'`
22693
22694# CDPATH.
22695$as_unset CDPATH
22696
22697
22698
22699  as_lineno_1=$LINENO
22700  as_lineno_2=$LINENO
22701  test "x$as_lineno_1" != "x$as_lineno_2" &&
22702  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22703
22704  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22705  # uniformly replaced by the line number.  The first 'sed' inserts a
22706  # line-number line after each line using $LINENO; the second 'sed'
22707  # does the real work.  The second script uses 'N' to pair each
22708  # line-number line with the line containing $LINENO, and appends
22709  # trailing '-' during substitution so that $LINENO is not a special
22710  # case at line end.
22711  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22712  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22713  # E. McMahon (1931-1989) for sed's syntax.  :-)
22714  sed -n '
22715    p
22716    /[$]LINENO/=
22717  ' <$as_myself |
22718    sed '
22719      s/[$]LINENO.*/&-/
22720      t lineno
22721      b
22722      :lineno
22723      N
22724      :loop
22725      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22726      t loop
22727      s/-\n.*//
22728    ' >$as_me.lineno &&
22729  chmod +x "$as_me.lineno" ||
22730    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22731   { (exit 1); exit 1; }; }
22732
22733  # Don't try to exec as it changes $[0], causing all sort of problems
22734  # (the dirname of $[0] is not the place where we might find the
22735  # original and so on.  Autoconf is especially sensitive to this).
22736  . "./$as_me.lineno"
22737  # Exit status is that of the last command.
22738  exit
22739}
22740
22741
22742if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22743  as_dirname=dirname
22744else
22745  as_dirname=false
22746fi
22747
22748ECHO_C= ECHO_N= ECHO_T=
22749case `echo -n x` in
22750-n*)
22751  case `echo 'x\c'` in
22752  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22753  *)   ECHO_C='\c';;
22754  esac;;
22755*)
22756  ECHO_N='-n';;
22757esac
22758
22759if expr a : '\(a\)' >/dev/null 2>&1 &&
22760   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22761  as_expr=expr
22762else
22763  as_expr=false
22764fi
22765
22766rm -f conf$$ conf$$.exe conf$$.file
22767if test -d conf$$.dir; then
22768  rm -f conf$$.dir/conf$$.file
22769else
22770  rm -f conf$$.dir
22771  mkdir conf$$.dir
22772fi
22773echo >conf$$.file
22774if ln -s conf$$.file conf$$ 2>/dev/null; then
22775  as_ln_s='ln -s'
22776  # ... but there are two gotchas:
22777  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22778  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22779  # In both cases, we have to default to `cp -p'.
22780  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22781    as_ln_s='cp -p'
22782elif ln conf$$.file conf$$ 2>/dev/null; then
22783  as_ln_s=ln
22784else
22785  as_ln_s='cp -p'
22786fi
22787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22788rmdir conf$$.dir 2>/dev/null
22789
22790if mkdir -p . 2>/dev/null; then
22791  as_mkdir_p=:
22792else
22793  test -d ./-p && rmdir ./-p
22794  as_mkdir_p=false
22795fi
22796
22797# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22798# systems may use methods other than mode bits to determine executability.
22799cat >conf$$.file <<_ASEOF
22800#! /bin/sh
22801exit 0
22802_ASEOF
22803chmod +x conf$$.file
22804if test -x conf$$.file >/dev/null 2>&1; then
22805  as_executable_p="test -x"
22806else
22807  as_executable_p=:
22808fi
22809rm -f conf$$.file
22810
22811# Sed expression to map a string onto a valid CPP name.
22812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22813
22814# Sed expression to map a string onto a valid variable name.
22815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22816
22817
22818exec 6>&1
22819
22820# Save the log message, to keep $[0] and so on meaningful, and to
22821# report actual input values of CONFIG_FILES etc. instead of their
22822# values after options handling.
22823ac_log="
22824This file was extended by LLVM $as_me 3.4svn, which was
22825generated by GNU Autoconf 2.60.  Invocation command line was
22826
22827  CONFIG_FILES    = $CONFIG_FILES
22828  CONFIG_HEADERS  = $CONFIG_HEADERS
22829  CONFIG_LINKS    = $CONFIG_LINKS
22830  CONFIG_COMMANDS = $CONFIG_COMMANDS
22831  $ $0 $@
22832
22833on `(hostname || uname -n) 2>/dev/null | sed 1q`
22834"
22835
22836_ACEOF
22837
22838cat >>$CONFIG_STATUS <<_ACEOF
22839# Files that config.status was made for.
22840config_files="$ac_config_files"
22841config_headers="$ac_config_headers"
22842config_commands="$ac_config_commands"
22843
22844_ACEOF
22845
22846cat >>$CONFIG_STATUS <<\_ACEOF
22847ac_cs_usage="\
22848\`$as_me' instantiates files from templates according to the
22849current configuration.
22850
22851Usage: $0 [OPTIONS] [FILE]...
22852
22853  -h, --help       print this help, then exit
22854  -V, --version    print version number, then exit
22855  -q, --quiet      do not print progress messages
22856  -d, --debug      don't remove temporary files
22857      --recheck    update $as_me by reconfiguring in the same conditions
22858  --file=FILE[:TEMPLATE]
22859		   instantiate the configuration file FILE
22860  --header=FILE[:TEMPLATE]
22861		   instantiate the configuration header FILE
22862
22863Configuration files:
22864$config_files
22865
22866Configuration headers:
22867$config_headers
22868
22869Configuration commands:
22870$config_commands
22871
22872Report bugs to <bug-autoconf@gnu.org>."
22873
22874_ACEOF
22875cat >>$CONFIG_STATUS <<_ACEOF
22876ac_cs_version="\\
22877LLVM config.status 3.4svn
22878configured by $0, generated by GNU Autoconf 2.60,
22879  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22880
22881Copyright (C) 2006 Free Software Foundation, Inc.
22882This config.status script is free software; the Free Software Foundation
22883gives unlimited permission to copy, distribute and modify it."
22884
22885ac_pwd='$ac_pwd'
22886srcdir='$srcdir'
22887INSTALL='$INSTALL'
22888_ACEOF
22889
22890cat >>$CONFIG_STATUS <<\_ACEOF
22891# If no file are specified by the user, then we need to provide default
22892# value.  By we need to know if files were specified by the user.
22893ac_need_defaults=:
22894while test $# != 0
22895do
22896  case $1 in
22897  --*=*)
22898    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22899    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22900    ac_shift=:
22901    ;;
22902  *)
22903    ac_option=$1
22904    ac_optarg=$2
22905    ac_shift=shift
22906    ;;
22907  esac
22908
22909  case $ac_option in
22910  # Handling of the options.
22911  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22912    ac_cs_recheck=: ;;
22913  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22914    echo "$ac_cs_version"; exit ;;
22915  --debug | --debu | --deb | --de | --d | -d )
22916    debug=: ;;
22917  --file | --fil | --fi | --f )
22918    $ac_shift
22919    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22920    ac_need_defaults=false;;
22921  --header | --heade | --head | --hea )
22922    $ac_shift
22923    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22924    ac_need_defaults=false;;
22925  --he | --h)
22926    # Conflict between --help and --header
22927    { echo "$as_me: error: ambiguous option: $1
22928Try \`$0 --help' for more information." >&2
22929   { (exit 1); exit 1; }; };;
22930  --help | --hel | -h )
22931    echo "$ac_cs_usage"; exit ;;
22932  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22933  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22934    ac_cs_silent=: ;;
22935
22936  # This is an error.
22937  -*) { echo "$as_me: error: unrecognized option: $1
22938Try \`$0 --help' for more information." >&2
22939   { (exit 1); exit 1; }; } ;;
22940
22941  *) ac_config_targets="$ac_config_targets $1"
22942     ac_need_defaults=false ;;
22943
22944  esac
22945  shift
22946done
22947
22948ac_configure_extra_args=
22949
22950if $ac_cs_silent; then
22951  exec 6>/dev/null
22952  ac_configure_extra_args="$ac_configure_extra_args --silent"
22953fi
22954
22955_ACEOF
22956cat >>$CONFIG_STATUS <<_ACEOF
22957if \$ac_cs_recheck; then
22958  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22959  CONFIG_SHELL=$SHELL
22960  export CONFIG_SHELL
22961  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22962fi
22963
22964_ACEOF
22965cat >>$CONFIG_STATUS <<\_ACEOF
22966exec 5>>config.log
22967{
22968  echo
22969  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22970## Running $as_me. ##
22971_ASBOX
22972  echo "$ac_log"
22973} >&5
22974
22975_ACEOF
22976cat >>$CONFIG_STATUS <<_ACEOF
22977#
22978# INIT-COMMANDS
22979#
22980llvm_src="${srcdir}"
22981
22982_ACEOF
22983
22984cat >>$CONFIG_STATUS <<\_ACEOF
22985
22986# Handling of arguments.
22987for ac_config_target in $ac_config_targets
22988do
22989  case $ac_config_target in
22990    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22991    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22992    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22993    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22994    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22995    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22996    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22997    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22998    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22999    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23000    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23001    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23002    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23003    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23004    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23005    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23006    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23007    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23008    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23009    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23010    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23011    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23012    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23013    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23014    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23015    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23016    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23017
23018  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23019echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23020   { (exit 1); exit 1; }; };;
23021  esac
23022done
23023
23024
23025# If the user did not use the arguments to specify the items to instantiate,
23026# then the envvar interface is used.  Set only those that are not.
23027# We use the long form for the default assignment because of an extremely
23028# bizarre bug on SunOS 4.1.3.
23029if $ac_need_defaults; then
23030  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23031  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23032  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23033fi
23034
23035# Have a temporary directory for convenience.  Make it in the build tree
23036# simply because there is no reason against having it here, and in addition,
23037# creating and moving files from /tmp can sometimes cause problems.
23038# Hook for its removal unless debugging.
23039# Note that there is a small window in which the directory will not be cleaned:
23040# after its creation but before its name has been assigned to `$tmp'.
23041$debug ||
23042{
23043  tmp=
23044  trap 'exit_status=$?
23045  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23046' 0
23047  trap '{ (exit 1); exit 1; }' 1 2 13 15
23048}
23049# Create a (secure) tmp directory for tmp files.
23050
23051{
23052  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23053  test -n "$tmp" && test -d "$tmp"
23054}  ||
23055{
23056  tmp=./conf$$-$RANDOM
23057  (umask 077 && mkdir "$tmp")
23058} ||
23059{
23060   echo "$me: cannot create a temporary directory in ." >&2
23061   { (exit 1); exit 1; }
23062}
23063
23064#
23065# Set up the sed scripts for CONFIG_FILES section.
23066#
23067
23068# No need to generate the scripts if there are no CONFIG_FILES.
23069# This happens for instance when ./config.status config.h
23070if test -n "$CONFIG_FILES"; then
23071
23072_ACEOF
23073
23074
23075
23076ac_delim='%!_!# '
23077for ac_last_try in false false false false false :; do
23078  cat >conf$$subs.sed <<_ACEOF
23079SHELL!$SHELL$ac_delim
23080PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23081PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23082PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23083PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23084PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23085PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23086exec_prefix!$exec_prefix$ac_delim
23087prefix!$prefix$ac_delim
23088program_transform_name!$program_transform_name$ac_delim
23089bindir!$bindir$ac_delim
23090sbindir!$sbindir$ac_delim
23091libexecdir!$libexecdir$ac_delim
23092datarootdir!$datarootdir$ac_delim
23093datadir!$datadir$ac_delim
23094sysconfdir!$sysconfdir$ac_delim
23095sharedstatedir!$sharedstatedir$ac_delim
23096localstatedir!$localstatedir$ac_delim
23097includedir!$includedir$ac_delim
23098oldincludedir!$oldincludedir$ac_delim
23099docdir!$docdir$ac_delim
23100infodir!$infodir$ac_delim
23101htmldir!$htmldir$ac_delim
23102dvidir!$dvidir$ac_delim
23103pdfdir!$pdfdir$ac_delim
23104psdir!$psdir$ac_delim
23105libdir!$libdir$ac_delim
23106localedir!$localedir$ac_delim
23107mandir!$mandir$ac_delim
23108DEFS!$DEFS$ac_delim
23109ECHO_C!$ECHO_C$ac_delim
23110ECHO_N!$ECHO_N$ac_delim
23111ECHO_T!$ECHO_T$ac_delim
23112LIBS!$LIBS$ac_delim
23113build_alias!$build_alias$ac_delim
23114host_alias!$host_alias$ac_delim
23115target_alias!$target_alias$ac_delim
23116LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23117CC!$CC$ac_delim
23118CFLAGS!$CFLAGS$ac_delim
23119LDFLAGS!$LDFLAGS$ac_delim
23120CPPFLAGS!$CPPFLAGS$ac_delim
23121ac_ct_CC!$ac_ct_CC$ac_delim
23122EXEEXT!$EXEEXT$ac_delim
23123OBJEXT!$OBJEXT$ac_delim
23124CXX!$CXX$ac_delim
23125CXXFLAGS!$CXXFLAGS$ac_delim
23126ac_ct_CXX!$ac_ct_CXX$ac_delim
23127CPP!$CPP$ac_delim
23128subdirs!$subdirs$ac_delim
23129ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23130LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23131build!$build$ac_delim
23132build_cpu!$build_cpu$ac_delim
23133build_vendor!$build_vendor$ac_delim
23134build_os!$build_os$ac_delim
23135host!$host$ac_delim
23136host_cpu!$host_cpu$ac_delim
23137host_vendor!$host_vendor$ac_delim
23138host_os!$host_os$ac_delim
23139target!$target$ac_delim
23140target_cpu!$target_cpu$ac_delim
23141target_vendor!$target_vendor$ac_delim
23142target_os!$target_os$ac_delim
23143OS!$OS$ac_delim
23144HOST_OS!$HOST_OS$ac_delim
23145TARGET_OS!$TARGET_OS$ac_delim
23146LINKALL!$LINKALL$ac_delim
23147NOLINKALL!$NOLINKALL$ac_delim
23148LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23149LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23150ARCH!$ARCH$ac_delim
23151HOST_ARCH!$HOST_ARCH$ac_delim
23152ENDIAN!$ENDIAN$ac_delim
23153GREP!$GREP$ac_delim
23154EGREP!$EGREP$ac_delim
23155LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23156BUILD_CC!$BUILD_CC$ac_delim
23157BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23158BUILD_CXX!$BUILD_CXX$ac_delim
23159CVSBUILD!$CVSBUILD$ac_delim
23160ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23161ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23162ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23163ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23164ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23165ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23166ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23167ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23168DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23169ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23170ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23171EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23172DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23173DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23174KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23175JIT!$JIT$ac_delim
23176_ACEOF
23177
23178  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23179    break
23180  elif $ac_last_try; then
23181    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23182echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23183   { (exit 1); exit 1; }; }
23184  else
23185    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23186  fi
23187done
23188
23189ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23190if test -n "$ac_eof"; then
23191  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23192  ac_eof=`expr $ac_eof + 1`
23193fi
23194
23195cat >>$CONFIG_STATUS <<_ACEOF
23196cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23198_ACEOF
23199sed '
23200s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23201s/^/s,@/; s/!/@,|#_!!_#|/
23202:n
23203t n
23204s/'"$ac_delim"'$/,g/; t
23205s/$/\\/; p
23206N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23207' >>$CONFIG_STATUS <conf$$subs.sed
23208rm -f conf$$subs.sed
23209cat >>$CONFIG_STATUS <<_ACEOF
23210CEOF$ac_eof
23211_ACEOF
23212
23213
23214ac_delim='%!_!# '
23215for ac_last_try in false false false false false :; do
23216  cat >conf$$subs.sed <<_ACEOF
23217TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23218ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23219ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23220LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23221ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23222LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23223ENABLE_PIC!$ENABLE_PIC$ac_delim
23224ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23225ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23226ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23227ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23228TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23229LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23230LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23231LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23232LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23233OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23234EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23235EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23236CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23237BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23238INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23239NM!$NM$ac_delim
23240ifGNUmake!$ifGNUmake$ac_delim
23241LN_S!$LN_S$ac_delim
23242CMP!$CMP$ac_delim
23243CP!$CP$ac_delim
23244DATE!$DATE$ac_delim
23245FIND!$FIND$ac_delim
23246MKDIR!$MKDIR$ac_delim
23247MV!$MV$ac_delim
23248RANLIB!$RANLIB$ac_delim
23249AR!$AR$ac_delim
23250RM!$RM$ac_delim
23251SED!$SED$ac_delim
23252TAR!$TAR$ac_delim
23253BINPWD!$BINPWD$ac_delim
23254GRAPHVIZ!$GRAPHVIZ$ac_delim
23255DOT!$DOT$ac_delim
23256FDP!$FDP$ac_delim
23257NEATO!$NEATO$ac_delim
23258TWOPI!$TWOPI$ac_delim
23259CIRCO!$CIRCO$ac_delim
23260GV!$GV$ac_delim
23261DOTTY!$DOTTY$ac_delim
23262XDOT!$XDOT$ac_delim
23263INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23264INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23265INSTALL_DATA!$INSTALL_DATA$ac_delim
23266BZIP2!$BZIP2$ac_delim
23267CAT!$CAT$ac_delim
23268DOXYGEN!$DOXYGEN$ac_delim
23269GROFF!$GROFF$ac_delim
23270GZIPBIN!$GZIPBIN$ac_delim
23271PDFROFF!$PDFROFF$ac_delim
23272ZIP!$ZIP$ac_delim
23273OCAMLC!$OCAMLC$ac_delim
23274OCAMLOPT!$OCAMLOPT$ac_delim
23275OCAMLDEP!$OCAMLDEP$ac_delim
23276OCAMLDOC!$OCAMLDOC$ac_delim
23277GAS!$GAS$ac_delim
23278HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23279INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23280INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23281CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23282CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23283LIBADD_DL!$LIBADD_DL$ac_delim
23284NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23285NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23286COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23287NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23288NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23289PYTHON!$PYTHON$ac_delim
23290USE_UDIS86!$USE_UDIS86$ac_delim
23291USE_OPROFILE!$USE_OPROFILE$ac_delim
23292USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23293XML2CONFIG!$XML2CONFIG$ac_delim
23294LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23295LIBXML2_INC!$LIBXML2_INC$ac_delim
23296CXXCPP!$CXXCPP$ac_delim
23297HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23298HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23299HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23300MMAP_FILE!$MMAP_FILE$ac_delim
23301SHLIBEXT!$SHLIBEXT$ac_delim
23302SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23303LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23304LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23305LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23306LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23307LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23308LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23309LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23310LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23311LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23312BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23313ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23314_ACEOF
23315
23316  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23317    break
23318  elif $ac_last_try; then
23319    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23320echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23321   { (exit 1); exit 1; }; }
23322  else
23323    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23324  fi
23325done
23326
23327ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23328if test -n "$ac_eof"; then
23329  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23330  ac_eof=`expr $ac_eof + 1`
23331fi
23332
23333cat >>$CONFIG_STATUS <<_ACEOF
23334cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23336_ACEOF
23337sed '
23338s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23339s/^/s,@/; s/!/@,|#_!!_#|/
23340:n
23341t n
23342s/'"$ac_delim"'$/,g/; t
23343s/$/\\/; p
23344N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23345' >>$CONFIG_STATUS <conf$$subs.sed
23346rm -f conf$$subs.sed
23347cat >>$CONFIG_STATUS <<_ACEOF
23348CEOF$ac_eof
23349_ACEOF
23350
23351
23352ac_delim='%!_!# '
23353for ac_last_try in false false false false false :; do
23354  cat >conf$$subs.sed <<_ACEOF
23355OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23356ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23357RPATH!$RPATH$ac_delim
23358RDYNAMIC!$RDYNAMIC$ac_delim
23359program_prefix!$program_prefix$ac_delim
23360LIBOBJS!$LIBOBJS$ac_delim
23361LTLIBOBJS!$LTLIBOBJS$ac_delim
23362_ACEOF
23363
23364  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23365    break
23366  elif $ac_last_try; then
23367    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23368echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23369   { (exit 1); exit 1; }; }
23370  else
23371    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23372  fi
23373done
23374
23375ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23376if test -n "$ac_eof"; then
23377  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23378  ac_eof=`expr $ac_eof + 1`
23379fi
23380
23381cat >>$CONFIG_STATUS <<_ACEOF
23382cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23383/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23384_ACEOF
23385sed '
23386s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23387s/^/s,@/; s/!/@,|#_!!_#|/
23388:n
23389t n
23390s/'"$ac_delim"'$/,g/; t
23391s/$/\\/; p
23392N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23393' >>$CONFIG_STATUS <conf$$subs.sed
23394rm -f conf$$subs.sed
23395cat >>$CONFIG_STATUS <<_ACEOF
23396:end
23397s/|#_!!_#|//g
23398CEOF$ac_eof
23399_ACEOF
23400
23401
23402# VPATH may cause trouble with some makes, so we remove $(srcdir),
23403# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23404# trailing colons and then remove the whole line if VPATH becomes empty
23405# (actually we leave an empty line to preserve line numbers).
23406if test "x$srcdir" = x.; then
23407  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23408s/:*\$(srcdir):*/:/
23409s/:*\${srcdir}:*/:/
23410s/:*@srcdir@:*/:/
23411s/^\([^=]*=[	 ]*\):*/\1/
23412s/:*$//
23413s/^[^=]*=[	 ]*$//
23414}'
23415fi
23416
23417cat >>$CONFIG_STATUS <<\_ACEOF
23418fi # test -n "$CONFIG_FILES"
23419
23420
23421for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23422do
23423  case $ac_tag in
23424  :[FHLC]) ac_mode=$ac_tag; continue;;
23425  esac
23426  case $ac_mode$ac_tag in
23427  :[FHL]*:*);;
23428  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23429echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23430   { (exit 1); exit 1; }; };;
23431  :[FH]-) ac_tag=-:-;;
23432  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23433  esac
23434  ac_save_IFS=$IFS
23435  IFS=:
23436  set x $ac_tag
23437  IFS=$ac_save_IFS
23438  shift
23439  ac_file=$1
23440  shift
23441
23442  case $ac_mode in
23443  :L) ac_source=$1;;
23444  :[FH])
23445    ac_file_inputs=
23446    for ac_f
23447    do
23448      case $ac_f in
23449      -) ac_f="$tmp/stdin";;
23450      *) # Look for the file first in the build tree, then in the source tree
23451	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23452	 # because $ac_f cannot contain `:'.
23453	 test -f "$ac_f" ||
23454	   case $ac_f in
23455	   [\\/$]*) false;;
23456	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23457	   esac ||
23458	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23459echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23460   { (exit 1); exit 1; }; };;
23461      esac
23462      ac_file_inputs="$ac_file_inputs $ac_f"
23463    done
23464
23465    # Let's still pretend it is `configure' which instantiates (i.e., don't
23466    # use $as_me), people would be surprised to read:
23467    #    /* config.h.  Generated by config.status.  */
23468    configure_input="Generated from "`IFS=:
23469	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23470    if test x"$ac_file" != x-; then
23471      configure_input="$ac_file.  $configure_input"
23472      { echo "$as_me:$LINENO: creating $ac_file" >&5
23473echo "$as_me: creating $ac_file" >&6;}
23474    fi
23475
23476    case $ac_tag in
23477    *:-:* | *:-) cat >"$tmp/stdin";;
23478    esac
23479    ;;
23480  esac
23481
23482  ac_dir=`$as_dirname -- "$ac_file" ||
23483$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484	 X"$ac_file" : 'X\(//\)[^/]' \| \
23485	 X"$ac_file" : 'X\(//\)$' \| \
23486	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23487echo X"$ac_file" |
23488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489	    s//\1/
23490	    q
23491	  }
23492	  /^X\(\/\/\)[^/].*/{
23493	    s//\1/
23494	    q
23495	  }
23496	  /^X\(\/\/\)$/{
23497	    s//\1/
23498	    q
23499	  }
23500	  /^X\(\/\).*/{
23501	    s//\1/
23502	    q
23503	  }
23504	  s/.*/./; q'`
23505  { as_dir="$ac_dir"
23506  case $as_dir in #(
23507  -*) as_dir=./$as_dir;;
23508  esac
23509  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23510    as_dirs=
23511    while :; do
23512      case $as_dir in #(
23513      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23514      *) as_qdir=$as_dir;;
23515      esac
23516      as_dirs="'$as_qdir' $as_dirs"
23517      as_dir=`$as_dirname -- "$as_dir" ||
23518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519	 X"$as_dir" : 'X\(//\)[^/]' \| \
23520	 X"$as_dir" : 'X\(//\)$' \| \
23521	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522echo X"$as_dir" |
23523    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23524	    s//\1/
23525	    q
23526	  }
23527	  /^X\(\/\/\)[^/].*/{
23528	    s//\1/
23529	    q
23530	  }
23531	  /^X\(\/\/\)$/{
23532	    s//\1/
23533	    q
23534	  }
23535	  /^X\(\/\).*/{
23536	    s//\1/
23537	    q
23538	  }
23539	  s/.*/./; q'`
23540      test -d "$as_dir" && break
23541    done
23542    test -z "$as_dirs" || eval "mkdir $as_dirs"
23543  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545   { (exit 1); exit 1; }; }; }
23546  ac_builddir=.
23547
23548case "$ac_dir" in
23549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23550*)
23551  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23552  # A ".." for each directory in $ac_dir_suffix.
23553  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23554  case $ac_top_builddir_sub in
23555  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23556  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23557  esac ;;
23558esac
23559ac_abs_top_builddir=$ac_pwd
23560ac_abs_builddir=$ac_pwd$ac_dir_suffix
23561# for backward compatibility:
23562ac_top_builddir=$ac_top_build_prefix
23563
23564case $srcdir in
23565  .)  # We are building in place.
23566    ac_srcdir=.
23567    ac_top_srcdir=$ac_top_builddir_sub
23568    ac_abs_top_srcdir=$ac_pwd ;;
23569  [\\/]* | ?:[\\/]* )  # Absolute name.
23570    ac_srcdir=$srcdir$ac_dir_suffix;
23571    ac_top_srcdir=$srcdir
23572    ac_abs_top_srcdir=$srcdir ;;
23573  *) # Relative name.
23574    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23575    ac_top_srcdir=$ac_top_build_prefix$srcdir
23576    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23577esac
23578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23579
23580
23581  case $ac_mode in
23582  :F)
23583  #
23584  # CONFIG_FILE
23585  #
23586
23587  case $INSTALL in
23588  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23589  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23590  esac
23591_ACEOF
23592
23593cat >>$CONFIG_STATUS <<\_ACEOF
23594# If the template does not know about datarootdir, expand it.
23595# FIXME: This hack should be removed a few years after 2.60.
23596ac_datarootdir_hack=; ac_datarootdir_seen=
23597
23598case `sed -n '/datarootdir/ {
23599  p
23600  q
23601}
23602/@datadir@/p
23603/@docdir@/p
23604/@infodir@/p
23605/@localedir@/p
23606/@mandir@/p
23607' $ac_file_inputs` in
23608*datarootdir*) ac_datarootdir_seen=yes;;
23609*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23610  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23611echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23612_ACEOF
23613cat >>$CONFIG_STATUS <<_ACEOF
23614  ac_datarootdir_hack='
23615  s&@datadir@&$datadir&g
23616  s&@docdir@&$docdir&g
23617  s&@infodir@&$infodir&g
23618  s&@localedir@&$localedir&g
23619  s&@mandir@&$mandir&g
23620    s&\\\${datarootdir}&$datarootdir&g' ;;
23621esac
23622_ACEOF
23623
23624# Neutralize VPATH when `$srcdir' = `.'.
23625# Shell code in configure.ac might set extrasub.
23626# FIXME: do we really want to maintain this feature?
23627cat >>$CONFIG_STATUS <<_ACEOF
23628  sed "$ac_vpsub
23629$extrasub
23630_ACEOF
23631cat >>$CONFIG_STATUS <<\_ACEOF
23632:t
23633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23634s&@configure_input@&$configure_input&;t t
23635s&@top_builddir@&$ac_top_builddir_sub&;t t
23636s&@srcdir@&$ac_srcdir&;t t
23637s&@abs_srcdir@&$ac_abs_srcdir&;t t
23638s&@top_srcdir@&$ac_top_srcdir&;t t
23639s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23640s&@builddir@&$ac_builddir&;t t
23641s&@abs_builddir@&$ac_abs_builddir&;t t
23642s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23643s&@INSTALL@&$ac_INSTALL&;t t
23644$ac_datarootdir_hack
23645" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23646
23647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23648  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23649  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23650  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23651which seems to be undefined.  Please make sure it is defined." >&5
23652echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653which seems to be undefined.  Please make sure it is defined." >&2;}
23654
23655  rm -f "$tmp/stdin"
23656  case $ac_file in
23657  -) cat "$tmp/out"; rm -f "$tmp/out";;
23658  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23659  esac
23660 ;;
23661  :H)
23662  #
23663  # CONFIG_HEADER
23664  #
23665_ACEOF
23666
23667# Transform confdefs.h into a sed script `conftest.defines', that
23668# substitutes the proper values into config.h.in to produce config.h.
23669rm -f conftest.defines conftest.tail
23670# First, append a space to every undef/define line, to ease matching.
23671echo 's/$/ /' >conftest.defines
23672# Then, protect against being on the right side of a sed subst, or in
23673# an unquoted here document, in config.status.  If some macros were
23674# called several times there might be several #defines for the same
23675# symbol, which is useless.  But do not sort them, since the last
23676# AC_DEFINE must be honored.
23677ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23678# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23679# NAME is the cpp macro being defined, VALUE is the value it is being given.
23680# PARAMS is the parameter list in the macro definition--in most cases, it's
23681# just an empty string.
23682ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23683ac_dB='\\)[	 (].*,\\1define\\2'
23684ac_dC=' '
23685ac_dD=' ,'
23686
23687uniq confdefs.h |
23688  sed -n '
23689	t rset
23690	:rset
23691	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23692	t ok
23693	d
23694	:ok
23695	s/[\\&,]/\\&/g
23696	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23697	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23698  ' >>conftest.defines
23699
23700# Remove the space that was appended to ease matching.
23701# Then replace #undef with comments.  This is necessary, for
23702# example, in the case of _POSIX_SOURCE, which is predefined and required
23703# on some systems where configure will not decide to define it.
23704# (The regexp can be short, since the line contains either #define or #undef.)
23705echo 's/ $//
23706s,^[	 #]*u.*,/* & */,' >>conftest.defines
23707
23708# Break up conftest.defines:
23709ac_max_sed_lines=50
23710
23711# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23712# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23713# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23714# et cetera.
23715ac_in='$ac_file_inputs'
23716ac_out='"$tmp/out1"'
23717ac_nxt='"$tmp/out2"'
23718
23719while :
23720do
23721  # Write a here document:
23722    cat >>$CONFIG_STATUS <<_ACEOF
23723    # First, check the format of the line:
23724    cat >"\$tmp/defines.sed" <<\\CEOF
23725/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23726/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23727b
23728:def
23729_ACEOF
23730  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23731  echo 'CEOF
23732    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23733  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23734  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23735  grep . conftest.tail >/dev/null || break
23736  rm -f conftest.defines
23737  mv conftest.tail conftest.defines
23738done
23739rm -f conftest.defines conftest.tail
23740
23741echo "ac_result=$ac_in" >>$CONFIG_STATUS
23742cat >>$CONFIG_STATUS <<\_ACEOF
23743  if test x"$ac_file" != x-; then
23744    echo "/* $configure_input  */" >"$tmp/config.h"
23745    cat "$ac_result" >>"$tmp/config.h"
23746    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23747      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23748echo "$as_me: $ac_file is unchanged" >&6;}
23749    else
23750      rm -f $ac_file
23751      mv "$tmp/config.h" $ac_file
23752    fi
23753  else
23754    echo "/* $configure_input  */"
23755    cat "$ac_result"
23756  fi
23757  rm -f "$tmp/out12"
23758 ;;
23759
23760  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23761echo "$as_me: executing $ac_file commands" >&6;}
23762 ;;
23763  esac
23764
23765
23766  case $ac_file$ac_mode in
23767    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23768   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23769    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23770   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23771    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23772   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23773    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23774   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23775    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23776   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23777    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23778   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23779    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23780   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23781    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23782   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23783    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23784   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23785    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23786   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23787    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23788   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23789    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23790   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23791    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23792   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23793
23794  esac
23795done # for ac_tag
23796
23797
23798{ (exit 0); exit 0; }
23799_ACEOF
23800chmod +x $CONFIG_STATUS
23801ac_clean_files=$ac_clean_files_save
23802
23803
23804# configure is writing to config.log, and then calls config.status.
23805# config.status does its own redirection, appending to config.log.
23806# Unfortunately, on DOS this fails, as config.log is still kept open
23807# by configure, so config.status won't be able to write to it; its
23808# output is simply discarded.  So we exec the FD to /dev/null,
23809# effectively closing config.log, so it can be properly (re)opened and
23810# appended to by config.status.  When coming back to configure, we
23811# need to make the FD available again.
23812if test "$no_create" != yes; then
23813  ac_cs_success=:
23814  ac_config_status_args=
23815  test "$silent" = yes &&
23816    ac_config_status_args="$ac_config_status_args --quiet"
23817  exec 5>/dev/null
23818  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23819  exec 5>>config.log
23820  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23821  # would make configure fail if this is the last instruction.
23822  $ac_cs_success || { (exit 1); exit 1; }
23823fi
23824
23825#
23826# CONFIG_SUBDIRS section.
23827#
23828if test "$no_recursion" != yes; then
23829
23830  # Remove --cache-file and --srcdir arguments so they do not pile up.
23831  ac_sub_configure_args=
23832  ac_prev=
23833  eval "set x $ac_configure_args"
23834  shift
23835  for ac_arg
23836  do
23837    if test -n "$ac_prev"; then
23838      ac_prev=
23839      continue
23840    fi
23841    case $ac_arg in
23842    -cache-file | --cache-file | --cache-fil | --cache-fi \
23843    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23844      ac_prev=cache_file ;;
23845    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23846    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23847    | --c=*)
23848      ;;
23849    --config-cache | -C)
23850      ;;
23851    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23852      ac_prev=srcdir ;;
23853    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23854      ;;
23855    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23856      ac_prev=prefix ;;
23857    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23858      ;;
23859    *)
23860      case $ac_arg in
23861      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23862      esac
23863      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23864    esac
23865  done
23866
23867  # Always prepend --prefix to ensure using the same prefix
23868  # in subdir configurations.
23869  ac_arg="--prefix=$prefix"
23870  case $ac_arg in
23871  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23872  esac
23873  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23874
23875  ac_popdir=`pwd`
23876  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23877
23878    # Do not complain, so a configure script can configure whichever
23879    # parts of a large source tree are present.
23880    test -d "$srcdir/$ac_dir" || continue
23881
23882    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23883    echo "$as_me:$LINENO: $ac_msg" >&5
23884    echo "$ac_msg" >&6
23885    { as_dir="$ac_dir"
23886  case $as_dir in #(
23887  -*) as_dir=./$as_dir;;
23888  esac
23889  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23890    as_dirs=
23891    while :; do
23892      case $as_dir in #(
23893      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23894      *) as_qdir=$as_dir;;
23895      esac
23896      as_dirs="'$as_qdir' $as_dirs"
23897      as_dir=`$as_dirname -- "$as_dir" ||
23898$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23899	 X"$as_dir" : 'X\(//\)[^/]' \| \
23900	 X"$as_dir" : 'X\(//\)$' \| \
23901	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23902echo X"$as_dir" |
23903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23904	    s//\1/
23905	    q
23906	  }
23907	  /^X\(\/\/\)[^/].*/{
23908	    s//\1/
23909	    q
23910	  }
23911	  /^X\(\/\/\)$/{
23912	    s//\1/
23913	    q
23914	  }
23915	  /^X\(\/\).*/{
23916	    s//\1/
23917	    q
23918	  }
23919	  s/.*/./; q'`
23920      test -d "$as_dir" && break
23921    done
23922    test -z "$as_dirs" || eval "mkdir $as_dirs"
23923  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23924echo "$as_me: error: cannot create directory $as_dir" >&2;}
23925   { (exit 1); exit 1; }; }; }
23926    ac_builddir=.
23927
23928case "$ac_dir" in
23929.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23930*)
23931  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23932  # A ".." for each directory in $ac_dir_suffix.
23933  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23934  case $ac_top_builddir_sub in
23935  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23936  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23937  esac ;;
23938esac
23939ac_abs_top_builddir=$ac_pwd
23940ac_abs_builddir=$ac_pwd$ac_dir_suffix
23941# for backward compatibility:
23942ac_top_builddir=$ac_top_build_prefix
23943
23944case $srcdir in
23945  .)  # We are building in place.
23946    ac_srcdir=.
23947    ac_top_srcdir=$ac_top_builddir_sub
23948    ac_abs_top_srcdir=$ac_pwd ;;
23949  [\\/]* | ?:[\\/]* )  # Absolute name.
23950    ac_srcdir=$srcdir$ac_dir_suffix;
23951    ac_top_srcdir=$srcdir
23952    ac_abs_top_srcdir=$srcdir ;;
23953  *) # Relative name.
23954    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23955    ac_top_srcdir=$ac_top_build_prefix$srcdir
23956    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23957esac
23958ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23959
23960
23961    cd "$ac_dir"
23962
23963    # Check for guested configure; otherwise get Cygnus style configure.
23964    if test -f "$ac_srcdir/configure.gnu"; then
23965      ac_sub_configure=$ac_srcdir/configure.gnu
23966    elif test -f "$ac_srcdir/configure"; then
23967      ac_sub_configure=$ac_srcdir/configure
23968    elif test -f "$ac_srcdir/configure.in"; then
23969      # This should be Cygnus configure.
23970      ac_sub_configure=$ac_aux_dir/configure
23971    else
23972      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23973echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23974      ac_sub_configure=
23975    fi
23976
23977    # The recursion is here.
23978    if test -n "$ac_sub_configure"; then
23979      # Make the cache file name correct relative to the subdirectory.
23980      case $cache_file in
23981      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23982      *) # Relative name.
23983	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23984      esac
23985
23986      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23987echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23988      # The eval makes quoting arguments work.
23989      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23990	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23991	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23992echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23993   { (exit 1); exit 1; }; }
23994    fi
23995
23996    cd "$ac_popdir"
23997  done
23998fi
23999
24000