configure revision bb8cef51dfe7bb59109786a0ca46ad165c39aa38
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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-2012 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.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568ac_unique_file="lib/VMCore/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_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
690ENABLE_EXPENSIVE_CHECKS
691EXPENSIVE_CHECKS
692DEBUG_RUNTIME
693DEBUG_SYMBOLS
694JIT
695TARGET_HAS_JIT
696ENABLE_DOCS
697ENABLE_DOXYGEN
698LLVM_ENABLE_THREADS
699ENABLE_PTHREADS
700ENABLE_PIC
701ENABLE_SHARED
702ENABLE_EMBED_STDCXX
703ENABLE_TIMESTAMPS
704TARGETS_TO_BUILD
705LLVM_ENUM_TARGETS
706LLVM_ENUM_ASM_PRINTERS
707LLVM_ENUM_ASM_PARSERS
708LLVM_ENUM_DISASSEMBLERS
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
711EXTRA_LD_OPTIONS
712CLANG_SRC_ROOT
713BINUTILS_INCDIR
714INTERNAL_PREFIX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
738XDOT_PY
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
743CAT
744DOXYGEN
745GROFF
746GZIPBIN
747PDFROFF
748RUNTEST
749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
755GAS
756HAVE_LINK_VERSION_SCRIPT
757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764COVERED_SWITCH_DEFAULT
765USE_UDIS86
766USE_OPROFILE
767USE_INTEL_JITEVENTS
768INTEL_JITEVENTS_INCDIR
769INTEL_JITEVENTS_LIBDIR
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
773SHLIBEXT
774SHLIBPATH_VAR
775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
793ac_subst_files=''
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CXX
802CXXFLAGS
803CCC
804CPP'
805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
811projects/privbracket
812projects/llvm-stacker
813projects/llvm-reopt
814projects/llvm-java
815projects/llvm-tv
816projects/safecode
817projects/llvm-kernel
818tools/polly'
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *)	ac_optarg=yes ;;
880  esac
881
882  # Accept the important Cygnus configure options, so we can diagnose typos.
883
884  case $ac_dashdash$ac_option in
885  --)
886    ac_dashdash=yes ;;
887
888  -bindir | --bindir | --bindi | --bind | --bin | --bi)
889    ac_prev=bindir ;;
890  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891    bindir=$ac_optarg ;;
892
893  -build | --build | --buil | --bui | --bu)
894    ac_prev=build_alias ;;
895  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896    build_alias=$ac_optarg ;;
897
898  -cache-file | --cache-file | --cache-fil | --cache-fi \
899  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900    ac_prev=cache_file ;;
901  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903    cache_file=$ac_optarg ;;
904
905  --config-cache | -C)
906    cache_file=config.cache ;;
907
908  -datadir | --datadir | --datadi | --datad)
909    ac_prev=datadir ;;
910  -datadir=* | --datadir=* | --datadi=* | --datad=*)
911    datadir=$ac_optarg ;;
912
913  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914  | --dataroo | --dataro | --datar)
915    ac_prev=datarootdir ;;
916  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918    datarootdir=$ac_optarg ;;
919
920  -disable-* | --disable-*)
921    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925   { (exit 1); exit 1; }; }
926    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927    eval enable_$ac_feature=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944   { (exit 1); exit 1; }; }
945    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946    eval enable_$ac_feature=\$ac_optarg ;;
947
948  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950  | --exec | --exe | --ex)
951    ac_prev=exec_prefix ;;
952  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954  | --exec=* | --exe=* | --ex=*)
955    exec_prefix=$ac_optarg ;;
956
957  -gas | --gas | --ga | --g)
958    # Obsolete; use --with-gas.
959    with_gas=yes ;;
960
961  -help | --help | --hel | --he | -h)
962    ac_init_help=long ;;
963  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964    ac_init_help=recursive ;;
965  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966    ac_init_help=short ;;
967
968  -host | --host | --hos | --ho)
969    ac_prev=host_alias ;;
970  -host=* | --host=* | --hos=* | --ho=*)
971    host_alias=$ac_optarg ;;
972
973  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974    ac_prev=htmldir ;;
975  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976  | --ht=*)
977    htmldir=$ac_optarg ;;
978
979  -includedir | --includedir | --includedi | --included | --include \
980  | --includ | --inclu | --incl | --inc)
981    ac_prev=includedir ;;
982  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983  | --includ=* | --inclu=* | --incl=* | --inc=*)
984    includedir=$ac_optarg ;;
985
986  -infodir | --infodir | --infodi | --infod | --info | --inf)
987    ac_prev=infodir ;;
988  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989    infodir=$ac_optarg ;;
990
991  -libdir | --libdir | --libdi | --libd)
992    ac_prev=libdir ;;
993  -libdir=* | --libdir=* | --libdi=* | --libd=*)
994    libdir=$ac_optarg ;;
995
996  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997  | --libexe | --libex | --libe)
998    ac_prev=libexecdir ;;
999  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000  | --libexe=* | --libex=* | --libe=*)
1001    libexecdir=$ac_optarg ;;
1002
1003  -localedir | --localedir | --localedi | --localed | --locale)
1004    ac_prev=localedir ;;
1005  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006    localedir=$ac_optarg ;;
1007
1008  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009  | --localstate | --localstat | --localsta | --localst | --locals)
1010    ac_prev=localstatedir ;;
1011  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013    localstatedir=$ac_optarg ;;
1014
1015  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016    ac_prev=mandir ;;
1017  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018    mandir=$ac_optarg ;;
1019
1020  -nfp | --nfp | --nf)
1021    # Obsolete; use --without-fp.
1022    with_fp=no ;;
1023
1024  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025  | --no-cr | --no-c | -n)
1026    no_create=yes ;;
1027
1028  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030    no_recursion=yes ;;
1031
1032  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034  | --oldin | --oldi | --old | --ol | --o)
1035    ac_prev=oldincludedir ;;
1036  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039    oldincludedir=$ac_optarg ;;
1040
1041  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042    ac_prev=prefix ;;
1043  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044    prefix=$ac_optarg ;;
1045
1046  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047  | --program-pre | --program-pr | --program-p)
1048    ac_prev=program_prefix ;;
1049  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051    program_prefix=$ac_optarg ;;
1052
1053  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054  | --program-suf | --program-su | --program-s)
1055    ac_prev=program_suffix ;;
1056  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058    program_suffix=$ac_optarg ;;
1059
1060  -program-transform-name | --program-transform-name \
1061  | --program-transform-nam | --program-transform-na \
1062  | --program-transform-n | --program-transform- \
1063  | --program-transform | --program-transfor \
1064  | --program-transfo | --program-transf \
1065  | --program-trans | --program-tran \
1066  | --progr-tra | --program-tr | --program-t)
1067    ac_prev=program_transform_name ;;
1068  -program-transform-name=* | --program-transform-name=* \
1069  | --program-transform-nam=* | --program-transform-na=* \
1070  | --program-transform-n=* | --program-transform-=* \
1071  | --program-transform=* | --program-transfor=* \
1072  | --program-transfo=* | --program-transf=* \
1073  | --program-trans=* | --program-tran=* \
1074  | --progr-tra=* | --program-tr=* | --program-t=*)
1075    program_transform_name=$ac_optarg ;;
1076
1077  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078    ac_prev=pdfdir ;;
1079  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080    pdfdir=$ac_optarg ;;
1081
1082  -psdir | --psdir | --psdi | --psd | --ps)
1083    ac_prev=psdir ;;
1084  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085    psdir=$ac_optarg ;;
1086
1087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088  | -silent | --silent | --silen | --sile | --sil)
1089    silent=yes ;;
1090
1091  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092    ac_prev=sbindir ;;
1093  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094  | --sbi=* | --sb=*)
1095    sbindir=$ac_optarg ;;
1096
1097  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099  | --sharedst | --shareds | --shared | --share | --shar \
1100  | --sha | --sh)
1101    ac_prev=sharedstatedir ;;
1102  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105  | --sha=* | --sh=*)
1106    sharedstatedir=$ac_optarg ;;
1107
1108  -site | --site | --sit)
1109    ac_prev=site ;;
1110  -site=* | --site=* | --sit=*)
1111    site=$ac_optarg ;;
1112
1113  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114    ac_prev=srcdir ;;
1115  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116    srcdir=$ac_optarg ;;
1117
1118  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119  | --syscon | --sysco | --sysc | --sys | --sy)
1120    ac_prev=sysconfdir ;;
1121  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123    sysconfdir=$ac_optarg ;;
1124
1125  -target | --target | --targe | --targ | --tar | --ta | --t)
1126    ac_prev=target_alias ;;
1127  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128    target_alias=$ac_optarg ;;
1129
1130  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131    verbose=yes ;;
1132
1133  -version | --version | --versio | --versi | --vers | -V)
1134    ac_init_version=: ;;
1135
1136  -with-* | --with-*)
1137    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140      { echo "$as_me: error: invalid package name: $ac_package" >&2
1141   { (exit 1); exit 1; }; }
1142    ac_package=`echo $ac_package| sed 's/-/_/g'`
1143    eval with_$ac_package=\$ac_optarg ;;
1144
1145  -without-* | --without-*)
1146    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149      { echo "$as_me: error: invalid package name: $ac_package" >&2
1150   { (exit 1); exit 1; }; }
1151    ac_package=`echo $ac_package | sed 's/-/_/g'`
1152    eval with_$ac_package=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174   { (exit 1); exit 1; }; }
1175    ;;
1176
1177  *=*)
1178    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182   { (exit 1); exit 1; }; }
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  { echo "$as_me: error: missing argument to $ac_option" >&2
1200   { (exit 1); exit 1; }; }
1201fi
1202
1203# Be sure to have absolute directory names.
1204for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205		datadir sysconfdir sharedstatedir localstatedir includedir \
1206		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207		libdir localedir mandir
1208do
1209  eval ac_val=\$$ac_var
1210  case $ac_val in
1211    [\\/$]* | ?:[\\/]* )  continue;;
1212    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213  esac
1214  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215   { (exit 1); exit 1; }; }
1216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227  if test "x$build_alias" = x; then
1228    cross_compiling=maybe
1229    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230    If a cross compiler is detected then cross compile mode will be used." >&2
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  { echo "$as_me: error: Working directory cannot be determined" >&2
1246   { (exit 1); exit 1; }; }
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  { echo "$as_me: error: pwd does not report name of working directory" >&2
1249   { (exit 1); exit 1; }; }
1250
1251
1252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254  ac_srcdir_defaulted=yes
1255  # Try the directory containing this script, then the parent directory.
1256  ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258	 X"$0" : 'X\(//\)[^/]' \| \
1259	 X"$0" : 'X\(//\)$' \| \
1260	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
1262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)[^/].*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\/\)$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\).*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  s/.*/./; q'`
1279  srcdir=$ac_confdir
1280  if test ! -r "$srcdir/$ac_unique_file"; then
1281    srcdir=..
1282  fi
1283else
1284  ac_srcdir_defaulted=no
1285fi
1286if test ! -r "$srcdir/$ac_unique_file"; then
1287  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289   { (exit 1); exit 1; }; }
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294   { (exit 1); exit 1; }; }
1295	pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298  srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_env_${ac_var}_value=\$${ac_var}
1309  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317  # Omit some internal or obsolete options to make the list less imposing.
1318  # This message is too long to be a string in the A/UX 3.1 sh.
1319  cat <<_ACEOF
1320\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330  -h, --help              display this help and exit
1331      --help=short        display options specific to this package
1332      --help=recursive    display the short help of all the included packages
1333  -V, --version           display version information and exit
1334  -q, --quiet, --silent   do not print \`checking...' messages
1335      --cache-file=FILE   cache test results in FILE [disabled]
1336  -C, --config-cache      alias for \`--cache-file=config.cache'
1337  -n, --no-create         do not create output files
1338      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341  --prefix=PREFIX         install architecture-independent files in PREFIX
1342			  [$ac_default_prefix]
1343  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344			  [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354  --bindir=DIR           user executables [EPREFIX/bin]
1355  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356  --libexecdir=DIR       program executables [EPREFIX/libexec]
1357  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360  --libdir=DIR           object code libraries [EPREFIX/lib]
1361  --includedir=DIR       C header files [PREFIX/include]
1362  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR          info documentation [DATAROOTDIR/info]
1366  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR           man documentation [DATAROOTDIR/man]
1368  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1369  --htmldir=DIR          html documentation [DOCDIR]
1370  --dvidir=DIR           dvi documentation [DOCDIR]
1371  --pdfdir=DIR           pdf documentation [DOCDIR]
1372  --psdir=DIR            ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377System types:
1378  --build=BUILD     configure for building on BUILD [guessed]
1379  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380  --target=TARGET   configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385  case $ac_init_help in
1386     short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1387   esac
1388  cat <<\_ACEOF
1389
1390Optional Features:
1391  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393  --enable-polly          Use polly if available (default is YES)
1394  --enable-libcpp         Use libc++ if available (default is NO)
1395  --enable-optimized      Compile with optimizations enabled (default is NO)
1396  --enable-profiling      Compile with profiling enabled (default is NO)
1397  --enable-assertions     Compile with assertion checks enabled (default is
1398                          YES)
1399  --enable-expensive-checks
1400                          Compile with expensive debug checks enabled (default
1401                          is NO)
1402  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                          NO)
1404  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                          optimization is on and YES if it's off)
1406  --enable-jit            Enable Just In Time Compiling (default is YES)
1407  --enable-docs           Build documents (default is YES)
1408  --enable-doxygen        Build doxygen documentation (default is NO)
1409  --enable-threads        Use threads if available (default is YES)
1410  --enable-pthreads       Use pthreads if available (default is YES)
1411  --enable-pic            Build LLVM with Position Independent Code (default
1412                          is YES)
1413  --enable-shared         Build a shared library and link tools against it
1414                          (default is NO)
1415  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                          Win32 DLL (default is NO)
1417  --enable-timestamps     Enable embedding timestamp information in build
1418                          (default is YES)
1419  --enable-targets        Build specific host targets: all or
1420                          target1,target2,... Valid targets are: host, x86,
1421                          x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                          xcore, msp430, ptx, nvptx, and cpp (default=all)
1423  --enable-bindings       Build specific language bindings:
1424                          all,auto,none,{binding-name} (default=auto)
1425  --enable-libffi         Check for the presence of libffi (default is NO)
1426  --enable-ltdl-install   install libltdl
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-optimize-option  Select the compiler options to use for optimized
1432                          builds
1433  --with-extra-options    Specify additional options to compile LLVM with
1434  --with-extra-ld-options Specify additional options to link LLVM with
1435  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                          is stdlib)
1437  --with-clang-srcdir     Directory to the out-of-tree Clang source
1438  --with-clang-resource-dir
1439                          Relative directory from the Clang binary for
1440                          resource files
1441  --with-c-include-dirs   Colon separated list of directories clang will
1442                          search for headers
1443  --with-gcc-toolchain    Directory where gcc is installed.
1444  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1445  --with-binutils-include Specify path to binutils/include/ containing
1446                          plugin-api.h file for gold plugin.
1447  --with-bug-report-url   Specify the URL where bug reports should be
1448                          submitted (default=http://llvm.org/bugs/)
1449  --with-internal-prefix  Installation directory for internal files
1450  --with-tclinclude       directory where tcl headers are
1451  --with-udis86=<path>    Use udis86 external x86 disassembler library
1452  --with-oprofile=<prefix>
1453                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1454  --with-intel-jitevents=<vtune-amplifier-dir>
1455                          Specify location of run-time support library for
1456                          Intel JIT API
1457                          (default=/opt/intel/vtune_amplifier_xe_2011)
1458
1459Some influential environment variables:
1460  CC          C compiler command
1461  CFLAGS      C compiler flags
1462  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463              nonstandard directory <lib dir>
1464  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  CXX         C++ compiler command
1467  CXXFLAGS    C++ compiler flags
1468  CPP         C preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <http://llvm.org/bugs/>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" || continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for guested configure.
1518    if test -f "$ac_srcdir/configure.gnu"; then
1519      echo &&
1520      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521    elif test -f "$ac_srcdir/configure"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure" --help=recursive
1524    else
1525      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526    fi || ac_status=$?
1527    cd "$ac_pwd" || { ac_status=$?; break; }
1528  done
1529fi
1530
1531test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then
1533  cat <<\_ACEOF
1534LLVM configure 3.2svn
1535generated by GNU Autoconf 2.60
1536
1537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541
1542Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543_ACEOF
1544  exit
1545fi
1546cat >config.log <<_ACEOF
1547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
1550It was created by LLVM $as_me 3.2svn, which was
1551generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553  $ $0 $@
1554
1555_ACEOF
1556exec 5>>config.log
1557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585  IFS=$as_save_IFS
1586  test -z "$as_dir" && as_dir=.
1587  echo "PATH: $as_dir"
1588done
1589IFS=$as_save_IFS
1590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
1605# Strip out --silent because we don't want to record it for future runs.
1606# Also quote any args containing shell meta-characters.
1607# Make two passes to allow for proper duplicate-argument suppression.
1608ac_configure_args=
1609ac_configure_args0=
1610ac_configure_args1=
1611ac_must_keep_next=false
1612for ac_pass in 1 2
1613do
1614  for ac_arg
1615  do
1616    case $ac_arg in
1617    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619    | -silent | --silent | --silen | --sile | --sil)
1620      continue ;;
1621    *\'*)
1622      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623    esac
1624    case $ac_pass in
1625    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626    2)
1627      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628      if test $ac_must_keep_next = true; then
1629	ac_must_keep_next=false # Got value, back to normal.
1630      else
1631	case $ac_arg in
1632	  *=* | --config-cache | -C | -disable-* | --disable-* \
1633	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635	  | -with-* | --with-* | -without-* | --without-* | --x)
1636	    case "$ac_configure_args0 " in
1637	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638	    esac
1639	    ;;
1640	  -* ) ac_must_keep_next=true ;;
1641	esac
1642      fi
1643      ac_configure_args="$ac_configure_args '$ac_arg'"
1644      ;;
1645    esac
1646  done
1647done
1648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log.  We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
1654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656trap 'exit_status=$?
1657  # Save into config.log some information that might help in debugging.
1658  {
1659    echo
1660
1661    cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666    echo
1667    # The following way of writing the cache mishandles newlines in values,
1668(
1669  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670    eval ac_val=\$$ac_var
1671    case $ac_val in #(
1672    *${as_nl}*)
1673      case $ac_var in #(
1674      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676      esac
1677      case $ac_var in #(
1678      _ | IFS | as_nl) ;; #(
1679      *) $as_unset $ac_var ;;
1680      esac ;;
1681    esac
1682  done
1683  (set) 2>&1 |
1684    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685    *${as_nl}ac_space=\ *)
1686      sed -n \
1687	"s/'\''/'\''\\\\'\'''\''/g;
1688	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689      ;; #(
1690    *)
1691      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692      ;;
1693    esac |
1694    sort
1695)
1696    echo
1697
1698    cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703    echo
1704    for ac_var in $ac_subst_vars
1705    do
1706      eval ac_val=\$$ac_var
1707      case $ac_val in
1708      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709      esac
1710      echo "$ac_var='\''$ac_val'\''"
1711    done | sort
1712    echo
1713
1714    if test -n "$ac_subst_files"; then
1715      cat <<\_ASBOX
1716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
1719_ASBOX
1720      echo
1721      for ac_var in $ac_subst_files
1722      do
1723	eval ac_val=\$$ac_var
1724	case $ac_val in
1725	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726	esac
1727	echo "$ac_var='\''$ac_val'\''"
1728      done | sort
1729      echo
1730    fi
1731
1732    if test -s confdefs.h; then
1733      cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738      echo
1739      cat confdefs.h
1740      echo
1741    fi
1742    test "$ac_signal" != 0 &&
1743      echo "$as_me: caught signal $ac_signal"
1744    echo "$as_me: exit $exit_status"
1745  } >&5
1746  rm -f core *.core core.conftest.* &&
1747    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748    exit $exit_status
1749' 0
1750for ac_signal in 1 2 13 15; do
1751  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
1756rm -f -r conftest* confdefs.h
1757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
1769
1770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
1774
1775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
1779
1780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
1786# Prefer explicitly selected file to automatically selected ones.
1787if test -n "$CONFIG_SITE"; then
1788  set x "$CONFIG_SITE"
1789elif test "x$prefix" != xNONE; then
1790  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791else
1792  set x "$ac_default_prefix/share/config.site" \
1793	"$ac_default_prefix/etc/config.site"
1794fi
1795shift
1796for ac_site_file
1797do
1798  if test -r "$ac_site_file"; then
1799    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
1801    sed 's/^/| /' "$ac_site_file" >&5
1802    . "$ac_site_file"
1803  fi
1804done
1805
1806if test -r "$cache_file"; then
1807  # Some versions of bash will fail to source /dev/null (special
1808  # files actually), so we avoid doing that.
1809  if test -f "$cache_file"; then
1810    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
1812    case $cache_file in
1813      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814      *)                      . "./$cache_file";;
1815    esac
1816  fi
1817else
1818  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
1820  >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
1826for ac_var in $ac_precious_vars; do
1827  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828  eval ac_new_set=\$ac_env_${ac_var}_set
1829  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830  eval ac_new_val=\$ac_env_${ac_var}_value
1831  case $ac_old_set,$ac_new_set in
1832    set,)
1833      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835      ac_cache_corrupted=: ;;
1836    ,set)
1837      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839      ac_cache_corrupted=: ;;
1840    ,);;
1841    *)
1842      if test "x$ac_old_val" != "x$ac_new_val"; then
1843	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846echo "$as_me:   former value:  $ac_old_val" >&2;}
1847	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848echo "$as_me:   current value: $ac_new_val" >&2;}
1849	ac_cache_corrupted=:
1850      fi;;
1851  esac
1852  # Pass precious variables to config.status.
1853  if test "$ac_new_set" = set; then
1854    case $ac_new_val in
1855    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856    *) ac_arg=$ac_var=$ac_new_val ;;
1857    esac
1858    case " $ac_configure_args " in
1859      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861    esac
1862  fi
1863done
1864if $ac_cache_corrupted; then
1865  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869   { (exit 1); exit 1; }; }
1870fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904cat >>confdefs.h <<\_ACEOF
1905#define LLVM_VERSION_MAJOR 3
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<\_ACEOF
1910#define LLVM_VERSION_MINOR 2
1911_ACEOF
1912
1913
1914LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1915
1916
1917
1918
1919
1920
1921
1922ac_aux_dir=
1923for ac_dir in autoconf "$srcdir"/autoconf; do
1924  if test -f "$ac_dir/install-sh"; then
1925    ac_aux_dir=$ac_dir
1926    ac_install_sh="$ac_aux_dir/install-sh -c"
1927    break
1928  elif test -f "$ac_dir/install.sh"; then
1929    ac_aux_dir=$ac_dir
1930    ac_install_sh="$ac_aux_dir/install.sh -c"
1931    break
1932  elif test -f "$ac_dir/shtool"; then
1933    ac_aux_dir=$ac_dir
1934    ac_install_sh="$ac_aux_dir/shtool install -c"
1935    break
1936  fi
1937done
1938if test -z "$ac_aux_dir"; then
1939  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941   { (exit 1); exit 1; }; }
1942fi
1943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953
1954if test ${srcdir} != "." ; then
1955  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958   { (exit 1); exit 1; }; }
1959  fi
1960fi
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967if test -n "$ac_tool_prefix"; then
1968  for ac_prog in clang llvm-gcc gcc
1969  do
1970    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974if test "${ac_cv_prog_CC+set}" = set; then
1975  echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977  if test -n "$CC"; then
1978  ac_cv_prog_CC="$CC" # Let the user override the test.
1979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989    break 2
1990  fi
1991done
1992done
1993IFS=$as_save_IFS
1994
1995fi
1996fi
1997CC=$ac_cv_prog_CC
1998if test -n "$CC"; then
1999  { echo "$as_me:$LINENO: result: $CC" >&5
2000echo "${ECHO_T}$CC" >&6; }
2001else
2002  { echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6; }
2004fi
2005
2006
2007    test -n "$CC" && break
2008  done
2009fi
2010if test -z "$CC"; then
2011  ac_ct_CC=$CC
2012  for ac_prog in clang llvm-gcc gcc
2013do
2014  # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
2016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$ac_ct_CC"; then
2022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027  IFS=$as_save_IFS
2028  test -z "$as_dir" && as_dir=.
2029  for ac_exec_ext in '' $ac_executable_extensions; do
2030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031    ac_cv_prog_ac_ct_CC="$ac_prog"
2032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033    break 2
2034  fi
2035done
2036done
2037IFS=$as_save_IFS
2038
2039fi
2040fi
2041ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042if test -n "$ac_ct_CC"; then
2043  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044echo "${ECHO_T}$ac_ct_CC" >&6; }
2045else
2046  { echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6; }
2048fi
2049
2050
2051  test -n "$ac_ct_CC" && break
2052done
2053
2054  if test "x$ac_ct_CC" = x; then
2055    CC=""
2056  else
2057    case $cross_compiling:$ac_tool_warned in
2058yes:)
2059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet.  If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&5
2062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063whose name does not start with the host triplet.  If you think this
2064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065ac_tool_warned=yes ;;
2066esac
2067    CC=$ac_ct_CC
2068  fi
2069fi
2070
2071
2072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076   { (exit 1); exit 1; }; }
2077
2078# Provide some information about the compiler.
2079echo "$as_me:$LINENO: checking for C compiler version" >&5
2080ac_compiler=`set X $ac_compile; echo $2`
2081{ (ac_try="$ac_compiler --version >&5"
2082case "(($ac_try" in
2083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084  *) ac_try_echo=$ac_try;;
2085esac
2086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087  (eval "$ac_compiler --version >&5") 2>&5
2088  ac_status=$?
2089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090  (exit $ac_status); }
2091{ (ac_try="$ac_compiler -v >&5"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097  (eval "$ac_compiler -v >&5") 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }
2101{ (ac_try="$ac_compiler -V >&5"
2102case "(($ac_try" in
2103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104  *) ac_try_echo=$ac_try;;
2105esac
2106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107  (eval "$ac_compiler -V >&5") 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }
2111
2112cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h.  */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h.  */
2118
2119int
2120main ()
2121{
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127ac_clean_files_save=$ac_clean_files
2128ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129# Try to create an executable without -o first, disregard a.out.
2130# It will help us diagnose broken compilers, and finding out an intuition
2131# of exeext.
2132{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135#
2136# List of possible output files, starting from the most likely.
2137# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138# only as a last resort.  b.out is created by i960 compilers.
2139ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140#
2141# The IRIX 6 linker writes into existing files which may not be
2142# executable, retaining their permissions.  Remove them first so a
2143# subsequent execution test works.
2144ac_rmfiles=
2145for ac_file in $ac_files
2146do
2147  case $ac_file in
2148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150  esac
2151done
2152rm -f $ac_rmfiles
2153
2154if { (ac_try="$ac_link_default"
2155case "(($ac_try" in
2156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157  *) ac_try_echo=$ac_try;;
2158esac
2159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160  (eval "$ac_link_default") 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; then
2164  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2167# so that the user can short-circuit this test for compilers unknown to
2168# Autoconf.
2169for ac_file in $ac_files
2170do
2171  test -f "$ac_file" || continue
2172  case $ac_file in
2173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174	;;
2175    [ab].out )
2176	# We found the default executable, but exeext='' is most
2177	# certainly right.
2178	break;;
2179    *.* )
2180        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181	then :; else
2182	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183	fi
2184	# We set ac_cv_exeext here because the later test for it is not
2185	# safe: cross compilers may not add the suffix if given an `-o'
2186	# argument, so we may need to know it at that point already.
2187	# Even if this section looks crufty: it has the advantage of
2188	# actually working.
2189	break;;
2190    * )
2191	break;;
2192  esac
2193done
2194test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
2196else
2197  echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: C compiler cannot create executables
2203See \`config.log' for more details." >&2;}
2204   { (exit 77); exit 77; }; }
2205fi
2206
2207ac_exeext=$ac_cv_exeext
2208{ echo "$as_me:$LINENO: result: $ac_file" >&5
2209echo "${ECHO_T}$ac_file" >&6; }
2210
2211# Check that the compiler produces executables we can run.  If not, either
2212# the compiler is broken, or we cross compile.
2213{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216# If not cross compiling, check that we can run a simple program.
2217if test "$cross_compiling" != yes; then
2218  if { ac_try='./$ac_file'
2219  { (case "(($ac_try" in
2220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221  *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224  (eval "$ac_try") 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; }; then
2228    cross_compiling=no
2229  else
2230    if test "$cross_compiling" = maybe; then
2231	cross_compiling=yes
2232    else
2233	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240    fi
2241  fi
2242fi
2243{ echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247ac_clean_files=$ac_clean_files_save
2248# Check that the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257if { (ac_try="$ac_link"
2258case "(($ac_try" in
2259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260  *) ac_try_echo=$ac_try;;
2261esac
2262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263  (eval "$ac_link") 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; then
2267  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
2271for ac_file in conftest.exe conftest conftest.*; do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276	  break;;
2277    * ) break;;
2278  esac
2279done
2280else
2281  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
2285   { (exit 1); exit 1; }; }
2286fi
2287
2288rm -f conftest$ac_cv_exeext
2289{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
2295{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297if test "${ac_cv_objext+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h.  */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h.  */
2306
2307int
2308main ()
2309{
2310
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
2316if { (ac_try="$ac_compile"
2317case "(($ac_try" in
2318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319  *) ac_try_echo=$ac_try;;
2320esac
2321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322  (eval "$ac_compile") 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in conftest.o conftest.obj conftest.*; do
2327  test -f "$ac_file" || continue;
2328  case $ac_file in
2329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331       break;;
2332  esac
2333done
2334else
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&2;}
2342   { (exit 1); exit 1; }; }
2343fi
2344
2345rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346fi
2347{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348echo "${ECHO_T}$ac_cv_objext" >&6; }
2349OBJEXT=$ac_cv_objext
2350ac_objext=$OBJEXT
2351{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354  echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362
2363int
2364main ()
2365{
2366#ifndef __GNUC__
2367       choke me
2368#endif
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (ac_try="$ac_compile"
2376case "(($ac_try" in
2377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378  *) ac_try_echo=$ac_try;;
2379esac
2380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381  (eval "$ac_compile") 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389  { (case "(($ac_try" in
2390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391  *) ac_try_echo=$ac_try;;
2392esac
2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394  (eval "$ac_try") 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; } &&
2398	 { ac_try='test -s conftest.$ac_objext'
2399  { (case "(($ac_try" in
2400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401  *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404  (eval "$ac_try") 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }; }; then
2408  ac_compiler_gnu=yes
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413	ac_compiler_gnu=no
2414fi
2415
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418
2419fi
2420{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422GCC=`test $ac_compiler_gnu = yes && echo yes`
2423ac_test_CFLAGS=${CFLAGS+set}
2424ac_save_CFLAGS=$CFLAGS
2425{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_cc_g+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  ac_save_c_werror_flag=$ac_c_werror_flag
2431   ac_c_werror_flag=yes
2432   ac_cv_prog_cc_g=no
2433   CFLAGS="-g"
2434   cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (ac_try="$ac_compile"
2451case "(($ac_try" in
2452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453  *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456  (eval "$ac_compile") 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464  { (case "(($ac_try" in
2465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466  *) ac_try_echo=$ac_try;;
2467esac
2468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469  (eval "$ac_try") 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; } &&
2473	 { ac_try='test -s conftest.$ac_objext'
2474  { (case "(($ac_try" in
2475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476  *) ac_try_echo=$ac_try;;
2477esac
2478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479  (eval "$ac_try") 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; }; then
2483  ac_cv_prog_cc_g=yes
2484else
2485  echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488	CFLAGS=""
2489      cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495
2496int
2497main ()
2498{
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504rm -f conftest.$ac_objext
2505if { (ac_try="$ac_compile"
2506case "(($ac_try" in
2507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508  *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511  (eval "$ac_compile") 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519  { (case "(($ac_try" in
2520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521  *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524  (eval "$ac_try") 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }; } &&
2528	 { ac_try='test -s conftest.$ac_objext'
2529  { (case "(($ac_try" in
2530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531  *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534  (eval "$ac_try") 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  :
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543	ac_c_werror_flag=$ac_save_c_werror_flag
2544	 CFLAGS="-g"
2545	 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h.  */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h.  */
2551
2552int
2553main ()
2554{
2555
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (ac_try="$ac_compile"
2562case "(($ac_try" in
2563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564  *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567  (eval "$ac_compile") 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575  { (case "(($ac_try" in
2576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577  *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580  (eval "$ac_try") 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; } &&
2584	 { ac_try='test -s conftest.$ac_objext'
2585  { (case "(($ac_try" in
2586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587  *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590  (eval "$ac_try") 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; }; then
2594  ac_cv_prog_cc_g=yes
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
2600fi
2601
2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
2604
2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
2607
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609   ac_c_werror_flag=$ac_save_c_werror_flag
2610fi
2611{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613if test "$ac_test_CFLAGS" = set; then
2614  CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616  if test "$GCC" = yes; then
2617    CFLAGS="-g -O2"
2618  else
2619    CFLAGS="-g"
2620  fi
2621else
2622  if test "$GCC" = yes; then
2623    CFLAGS="-O2"
2624  else
2625    CFLAGS=
2626  fi
2627fi
2628{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_cc_c89+set}" = set; then
2631  echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633  ac_cv_prog_cc_c89=no
2634ac_save_CC=$CC
2635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h.  */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h.  */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649     char **p;
2650     int i;
2651{
2652  return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656  char *s;
2657  va_list v;
2658  va_start (v,p);
2659  s = g (p, va_arg (v,int));
2660  va_end (v);
2661  return s;
2662}
2663
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665   function prototypes and stuff, but not '\xHH' hex character constants.
2666   These don't provoke an error unfortunately, instead are silently treated
2667   as 'x'.  The following induces an error, until -std is added to get
2668   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669   array size at least.  It's necessary to write '\x00'==0 to get something
2670   that's true only with -std.  */
2671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674   inside strings and character constants.  */
2675#define FOO(x) 'x'
2676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
2678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
2684int
2685main ()
2686{
2687return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694do
2695  CC="$ac_save_CC $ac_arg"
2696  rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700  *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703  (eval "$ac_compile") 2>conftest.er1
2704  ac_status=$?
2705  grep -v '^ *+' conftest.er1 >conftest.err
2706  rm -f conftest.er1
2707  cat conftest.err >&5
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); } &&
2710	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711  { (case "(($ac_try" in
2712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713  *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716  (eval "$ac_try") 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; } &&
2720	 { ac_try='test -s conftest.$ac_objext'
2721  { (case "(($ac_try" in
2722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723  *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726  (eval "$ac_try") 2>&5
2727  ac_status=$?
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); }; }; then
2730  ac_cv_prog_cc_c89=$ac_arg
2731else
2732  echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
2736fi
2737
2738rm -f core conftest.err conftest.$ac_objext
2739  test "x$ac_cv_prog_cc_c89" != "xno" && break
2740done
2741rm -f conftest.$ac_ext
2742CC=$ac_save_CC
2743
2744fi
2745# AC_CACHE_VAL
2746case "x$ac_cv_prog_cc_c89" in
2747  x)
2748    { echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6; } ;;
2750  xno)
2751    { echo "$as_me:$LINENO: result: unsupported" >&5
2752echo "${ECHO_T}unsupported" >&6; } ;;
2753  *)
2754    CC="$CC $ac_cv_prog_cc_c89"
2755    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2757esac
2758
2759
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766ac_ext=cpp
2767ac_cpp='$CXXCPP $CPPFLAGS'
2768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771if test -z "$CXX"; then
2772  if test -n "$CCC"; then
2773    CXX=$CCC
2774  else
2775    if test -n "$ac_tool_prefix"; then
2776  for ac_prog in clang++ llvm-g++ g++
2777  do
2778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782if test "${ac_cv_prog_CXX+set}" = set; then
2783  echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785  if test -n "$CXX"; then
2786  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CXX=$ac_cv_prog_CXX
2806if test -n "$CXX"; then
2807  { echo "$as_me:$LINENO: result: $CXX" >&5
2808echo "${ECHO_T}$CXX" >&6; }
2809else
2810  { echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6; }
2812fi
2813
2814
2815    test -n "$CXX" && break
2816  done
2817fi
2818if test -z "$CXX"; then
2819  ac_ct_CXX=$CXX
2820  for ac_prog in clang++ llvm-g++ g++
2821do
2822  # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827  echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829  if test -n "$ac_ct_CXX"; then
2830  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837  for ac_exec_ext in '' $ac_executable_extensions; do
2838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839    ac_cv_prog_ac_ct_CXX="$ac_prog"
2840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841    break 2
2842  fi
2843done
2844done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850if test -n "$ac_ct_CXX"; then
2851  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853else
2854  { echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6; }
2856fi
2857
2858
2859  test -n "$ac_ct_CXX" && break
2860done
2861
2862  if test "x$ac_ct_CXX" = x; then
2863    CXX="g++"
2864  else
2865    case $cross_compiling:$ac_tool_warned in
2866yes:)
2867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet.  If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&5
2870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871whose name does not start with the host triplet.  If you think this
2872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875    CXX=$ac_ct_CXX
2876  fi
2877fi
2878
2879  fi
2880fi
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883ac_compiler=`set X $ac_compile; echo $2`
2884{ (ac_try="$ac_compiler --version >&5"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890  (eval "$ac_compiler --version >&5") 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }
2894{ (ac_try="$ac_compiler -v >&5"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900  (eval "$ac_compiler -v >&5") 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }
2904{ (ac_try="$ac_compiler -V >&5"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910  (eval "$ac_compiler -V >&5") 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }
2914
2915{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918  echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920  cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h.  */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931       choke me
2932#endif
2933
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953  { (case "(($ac_try" in
2954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955  *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958  (eval "$ac_try") 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; } &&
2962	 { ac_try='test -s conftest.$ac_objext'
2963  { (case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968  (eval "$ac_try") 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; }; then
2972  ac_compiler_gnu=yes
2973else
2974  echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977	ac_compiler_gnu=no
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986GXX=`test $ac_compiler_gnu = yes && echo yes`
2987ac_test_CXXFLAGS=${CXXFLAGS+set}
2988ac_save_CXXFLAGS=$CXXFLAGS
2989{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991if test "${ac_cv_prog_cxx_g+set}" = set; then
2992  echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995   ac_cxx_werror_flag=yes
2996   ac_cv_prog_cxx_g=no
2997   CXXFLAGS="-g"
2998   cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h.  */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017  *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020  (eval "$ac_compile") 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028  { (case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033  (eval "$ac_try") 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; } &&
3037	 { ac_try='test -s conftest.$ac_objext'
3038  { (case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043  (eval "$ac_try") 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; }; then
3047  ac_cv_prog_cxx_g=yes
3048else
3049  echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052	CXXFLAGS=""
3053      cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075  (eval "$ac_compile") 2>conftest.er1
3076  ac_status=$?
3077  grep -v '^ *+' conftest.er1 >conftest.err
3078  rm -f conftest.er1
3079  cat conftest.err >&5
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); } &&
3082	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083  { (case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088  (eval "$ac_try") 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092	 { ac_try='test -s conftest.$ac_objext'
3093  { (case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098  (eval "$ac_try") 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; }; then
3102  :
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108	 CXXFLAGS="-g"
3109	 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h.  */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131  (eval "$ac_compile") 2>conftest.er1
3132  ac_status=$?
3133  grep -v '^ *+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); } &&
3138	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139  { (case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144  (eval "$ac_try") 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148	 { ac_try='test -s conftest.$ac_objext'
3149  { (case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154  (eval "$ac_try") 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }; }; then
3158  ac_cv_prog_cxx_g=yes
3159else
3160  echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174fi
3175{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177if test "$ac_test_CXXFLAGS" = set; then
3178  CXXFLAGS=$ac_save_CXXFLAGS
3179elif test $ac_cv_prog_cxx_g = yes; then
3180  if test "$GXX" = yes; then
3181    CXXFLAGS="-g -O2"
3182  else
3183    CXXFLAGS="-g"
3184  fi
3185else
3186  if test "$GXX" = yes; then
3187    CXXFLAGS="-O2"
3188  else
3189    CXXFLAGS=
3190  fi
3191fi
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205# On Suns, sometimes $CPP names a directory.
3206if test -n "$CPP" && test -d "$CPP"; then
3207  CPP=
3208fi
3209if test -z "$CPP"; then
3210  if test "${ac_cv_prog_CPP+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213      # Double quotes because CPP needs to be expanded
3214    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215    do
3216      ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219  # Use a header file that comes with gcc, so configuring glibc
3220  # with a fresh cross-compiler works.
3221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222  # <limits.h> exists even on freestanding compilers.
3223  # On the NeXT, cc -E runs the code through the compiler's parser,
3224  # not just through cpp. "Syntax error" is here to catch this case.
3225  cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h.  */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h.  */
3231#ifdef __STDC__
3232# include <limits.h>
3233#else
3234# include <assert.h>
3235#endif
3236		     Syntax error
3237_ACEOF
3238if { (ac_try="$ac_cpp conftest.$ac_ext"
3239case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245  ac_status=$?
3246  grep -v '^ *+' conftest.er1 >conftest.err
3247  rm -f conftest.er1
3248  cat conftest.err >&5
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); } >/dev/null; then
3251  if test -s conftest.err; then
3252    ac_cpp_err=$ac_c_preproc_warn_flag
3253    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254  else
3255    ac_cpp_err=
3256  fi
3257else
3258  ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261  :
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266  # Broken: fails on valid input.
3267continue
3268fi
3269
3270rm -f conftest.err conftest.$ac_ext
3271
3272  # OK, works on sane cases.  Now check whether nonexistent headers
3273  # can be detected and how.
3274  cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h.  */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h.  */
3280#include <ac_nonexistent.h>
3281_ACEOF
3282if { (ac_try="$ac_cpp conftest.$ac_ext"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289  ac_status=$?
3290  grep -v '^ *+' conftest.er1 >conftest.err
3291  rm -f conftest.er1
3292  cat conftest.err >&5
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); } >/dev/null; then
3295  if test -s conftest.err; then
3296    ac_cpp_err=$ac_c_preproc_warn_flag
3297    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298  else
3299    ac_cpp_err=
3300  fi
3301else
3302  ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
3305  # Broken: success on invalid input.
3306continue
3307else
3308  echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311  # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
3315
3316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
3321if $ac_preproc_ok; then
3322  break
3323fi
3324
3325    done
3326    ac_cv_prog_CPP=$CPP
3327
3328fi
3329  CPP=$ac_cv_prog_CPP
3330else
3331  ac_cv_prog_CPP=$CPP
3332fi
3333{ echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6; }
3335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338  # Use a header file that comes with gcc, so configuring glibc
3339  # with a fresh cross-compiler works.
3340  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341  # <limits.h> exists even on freestanding compilers.
3342  # On the NeXT, cc -E runs the code through the compiler's parser,
3343  # not just through cpp. "Syntax error" is here to catch this case.
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
3355		     Syntax error
3356_ACEOF
3357if { (ac_try="$ac_cpp conftest.$ac_ext"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364  ac_status=$?
3365  grep -v '^ *+' conftest.er1 >conftest.err
3366  rm -f conftest.er1
3367  cat conftest.err >&5
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); } >/dev/null; then
3370  if test -s conftest.err; then
3371    ac_cpp_err=$ac_c_preproc_warn_flag
3372    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373  else
3374    ac_cpp_err=
3375  fi
3376else
3377  ac_cpp_err=yes
3378fi
3379if test -z "$ac_cpp_err"; then
3380  :
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385  # Broken: fails on valid input.
3386continue
3387fi
3388
3389rm -f conftest.err conftest.$ac_ext
3390
3391  # OK, works on sane cases.  Now check whether nonexistent headers
3392  # can be detected and how.
3393  cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399#include <ac_nonexistent.h>
3400_ACEOF
3401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } >/dev/null; then
3414  if test -s conftest.err; then
3415    ac_cpp_err=$ac_c_preproc_warn_flag
3416    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417  else
3418    ac_cpp_err=
3419  fi
3420else
3421  ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
3424  # Broken: success on invalid input.
3425continue
3426else
3427  echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430  # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
3434
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441  :
3442else
3443  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447   { (exit 1); exit 1; }; }
3448fi
3449
3450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457
3458
3459if test -d ${srcdir}/projects/llvm-gcc ; then
3460  subdirs="$subdirs projects/llvm-gcc"
3461
3462fi
3463
3464if test -d ${srcdir}/projects/test-suite ; then
3465  subdirs="$subdirs projects/test-suite"
3466
3467fi
3468
3469if test -d ${srcdir}/projects/llvm-test ; then
3470  subdirs="$subdirs projects/llvm-test"
3471
3472fi
3473
3474if test -d ${srcdir}/projects/poolalloc ; then
3475  subdirs="$subdirs projects/poolalloc"
3476
3477fi
3478
3479if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480  subdirs="$subdirs projects/llvm-poolalloc"
3481
3482fi
3483
3484for i in `ls ${srcdir}/projects`
3485do
3486  if test -d ${srcdir}/projects/${i} ; then
3487    case ${i} in
3488      sample)       subdirs="$subdirs projects/sample"
3489    ;;
3490      privbracket)  subdirs="$subdirs projects/privbracket"
3491 ;;
3492      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 ;;
3494      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3495;;
3496      llvm-java)    subdirs="$subdirs projects/llvm-java"
3497 ;;
3498      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3499   ;;
3500      safecode)     subdirs="$subdirs projects/safecode"
3501 ;;
3502      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3503 ;;
3504      compiler-rt)       ;;
3505      llvm-gcc)       ;;
3506      test-suite)     ;;
3507      llvm-test)      ;;
3508      poolalloc)      ;;
3509      llvm-poolalloc) ;;
3510      *)
3511        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513        ;;
3514    esac
3515  fi
3516done
3517
3518# Check whether --enable-polly was given.
3519if test "${enable_polly+set}" = set; then
3520  enableval=$enable_polly;
3521else
3522  enableval=default
3523fi
3524
3525case "$enableval" in
3526  yes) ENABLE_POLLY=1
3527 ;;
3528  no)  ENABLE_POLLY=0
3529 ;;
3530  default) ENABLE_POLLY=1
3531 ;;
3532  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534   { (exit 1); exit 1; }; } ;;
3535esac
3536
3537
3538if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539  LLVM_HAS_POLLY=1
3540
3541  subdirs="$subdirs tools/polly"
3542
3543fi
3544
3545
3546# Make sure we can run config.sub.
3547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550   { (exit 1); exit 1; }; }
3551
3552{ echo "$as_me:$LINENO: checking build system type" >&5
3553echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554if test "${ac_cv_build+set}" = set; then
3555  echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557  ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
3561  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563   { (exit 1); exit 1; }; }
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567   { (exit 1); exit 1; }; }
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571echo "${ECHO_T}$ac_cv_build" >&6; }
3572case $ac_cv_build in
3573*-*-*) ;;
3574*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575echo "$as_me: error: invalid value of canonical build" >&2;}
3576   { (exit 1); exit 1; }; };;
3577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592{ echo "$as_me:$LINENO: checking host system type" >&5
3593echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594if test "${ac_cv_host+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  if test "x$host_alias" = x; then
3598  ac_cv_host=$ac_cv_build
3599else
3600  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603   { (exit 1); exit 1; }; }
3604fi
3605
3606fi
3607{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608echo "${ECHO_T}$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
3611*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612echo "$as_me: error: invalid value of canonical host" >&2;}
3613   { (exit 1); exit 1; }; };;
3614esac
3615host=$ac_cv_host
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_host
3618shift
3619host_cpu=$1
3620host_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624host_os=$*
3625IFS=$ac_save_IFS
3626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629{ echo "$as_me:$LINENO: checking target system type" >&5
3630echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631if test "${ac_cv_target+set}" = set; then
3632  echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634  if test "x$target_alias" = x; then
3635  ac_cv_target=$ac_cv_host
3636else
3637  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640   { (exit 1); exit 1; }; }
3641fi
3642
3643fi
3644{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645echo "${ECHO_T}$ac_cv_target" >&6; }
3646case $ac_cv_target in
3647*-*-*) ;;
3648*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649echo "$as_me: error: invalid value of canonical target" >&2;}
3650   { (exit 1); exit 1; }; };;
3651esac
3652target=$ac_cv_target
3653ac_save_IFS=$IFS; IFS='-'
3654set x $ac_cv_target
3655shift
3656target_cpu=$1
3657target_vendor=$2
3658shift; shift
3659# Remember, the first character of IFS is used to create $*,
3660# except with old shells:
3661target_os=$*
3662IFS=$ac_save_IFS
3663case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666# The aliases save the names the user supplied, while $host etc.
3667# will get canonicalized.
3668test -n "$target_alias" &&
3669  test "$program_prefix$program_suffix$program_transform_name" = \
3670    NONENONEs,x,x, &&
3671  program_prefix=${target_alias}-
3672
3673{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675if test "${llvm_cv_os_type+set}" = set; then
3676  echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678  case $host in
3679  *-*-aix*)
3680    llvm_cv_link_all_option="-Wl,--whole-archive"
3681    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682    llvm_cv_os_type="AIX"
3683    llvm_cv_platform_type="Unix" ;;
3684  *-*-irix*)
3685    llvm_cv_link_all_option="-Wl,--whole-archive"
3686    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687    llvm_cv_os_type="IRIX"
3688    llvm_cv_platform_type="Unix" ;;
3689  *-*-cygwin*)
3690    llvm_cv_link_all_option="-Wl,--whole-archive"
3691    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692    llvm_cv_os_type="Cygwin"
3693    llvm_cv_platform_type="Unix" ;;
3694  *-*-darwin*)
3695    llvm_cv_link_all_option="-Wl,-all_load"
3696    llvm_cv_no_link_all_option="-Wl,-noall_load"
3697    llvm_cv_os_type="Darwin"
3698    llvm_cv_platform_type="Unix" ;;
3699  *-*-minix*)
3700    llvm_cv_link_all_option="-Wl,-all_load"
3701    llvm_cv_no_link_all_option="-Wl,-noall_load"
3702    llvm_cv_os_type="Minix"
3703    llvm_cv_platform_type="Unix" ;;
3704  *-*-freebsd* | *-*-kfreebsd-gnu)
3705    llvm_cv_link_all_option="-Wl,--whole-archive"
3706    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707    llvm_cv_os_type="FreeBSD"
3708    llvm_cv_platform_type="Unix" ;;
3709  *-*-openbsd*)
3710    llvm_cv_link_all_option="-Wl,--whole-archive"
3711    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712    llvm_cv_os_type="OpenBSD"
3713    llvm_cv_platform_type="Unix" ;;
3714  *-*-netbsd*)
3715    llvm_cv_link_all_option="-Wl,--whole-archive"
3716    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717    llvm_cv_os_type="NetBSD"
3718    llvm_cv_platform_type="Unix" ;;
3719  *-*-dragonfly*)
3720    llvm_cv_link_all_option="-Wl,--whole-archive"
3721    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722    llvm_cv_os_type="DragonFly"
3723    llvm_cv_platform_type="Unix" ;;
3724  *-*-hpux*)
3725    llvm_cv_link_all_option="-Wl,--whole-archive"
3726    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727    llvm_cv_os_type="HP-UX"
3728    llvm_cv_platform_type="Unix" ;;
3729  *-*-interix*)
3730    llvm_cv_link_all_option="-Wl,--whole-archive"
3731    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732    llvm_cv_os_type="Interix"
3733    llvm_cv_platform_type="Unix" ;;
3734  *-*-linux*)
3735    llvm_cv_link_all_option="-Wl,--whole-archive"
3736    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737    llvm_cv_os_type="Linux"
3738    llvm_cv_platform_type="Unix" ;;
3739  *-*-gnu*)
3740    llvm_cv_link_all_option="-Wl,--whole-archive"
3741    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742    llvm_cv_os_type="GNU"
3743    llvm_cv_platform_type="Unix" ;;
3744  *-*-solaris*)
3745    llvm_cv_link_all_option="-Wl,-z,allextract"
3746    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747    llvm_cv_os_type="SunOS"
3748    llvm_cv_platform_type="Unix" ;;
3749  *-*-auroraux*)
3750    llvm_cv_link_all_option="-Wl,-z,allextract"
3751    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752    llvm_cv_os_type="AuroraUX"
3753    llvm_cv_platform_type="Unix" ;;
3754  *-*-win32*)
3755    llvm_cv_link_all_option="-Wl,--whole-archive"
3756    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757    llvm_cv_os_type="Win32"
3758    llvm_cv_platform_type="Win32" ;;
3759  *-*-mingw*)
3760    llvm_cv_link_all_option="-Wl,--whole-archive"
3761    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762    llvm_cv_os_type="MingW"
3763    llvm_cv_platform_type="Win32" ;;
3764  *-*-haiku*)
3765    llvm_cv_link_all_option="-Wl,--whole-archive"
3766    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767    llvm_cv_os_type="Haiku"
3768    llvm_cv_platform_type="Unix" ;;
3769  *-unknown-eabi*)
3770    llvm_cv_link_all_option="-Wl,--whole-archive"
3771    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772    llvm_cv_os_type="Freestanding"
3773    llvm_cv_platform_type="Unix" ;;
3774  *-unknown-elf*)
3775    llvm_cv_link_all_option="-Wl,--whole-archive"
3776    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777    llvm_cv_os_type="Freestanding"
3778    llvm_cv_platform_type="Unix" ;;
3779  *)
3780    llvm_cv_link_all_option=""
3781    llvm_cv_no_link_all_option=""
3782    llvm_cv_os_type="Unknown"
3783    llvm_cv_platform_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791if test "${llvm_cv_target_os_type+set}" = set; then
3792  echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794  case $target in
3795  *-*-aix*)
3796    llvm_cv_target_os_type="AIX" ;;
3797  *-*-irix*)
3798    llvm_cv_target_os_type="IRIX" ;;
3799  *-*-cygwin*)
3800    llvm_cv_target_os_type="Cygwin" ;;
3801  *-*-darwin*)
3802    llvm_cv_target_os_type="Darwin" ;;
3803  *-*-minix*)
3804    llvm_cv_target_os_type="Minix" ;;
3805  *-*-freebsd* | *-*-kfreebsd-gnu)
3806    llvm_cv_target_os_type="FreeBSD" ;;
3807  *-*-openbsd*)
3808    llvm_cv_target_os_type="OpenBSD" ;;
3809  *-*-netbsd*)
3810    llvm_cv_target_os_type="NetBSD" ;;
3811  *-*-dragonfly*)
3812    llvm_cv_target_os_type="DragonFly" ;;
3813  *-*-hpux*)
3814    llvm_cv_target_os_type="HP-UX" ;;
3815  *-*-interix*)
3816    llvm_cv_target_os_type="Interix" ;;
3817  *-*-linux*)
3818    llvm_cv_target_os_type="Linux" ;;
3819  *-*-gnu*)
3820    llvm_cv_target_os_type="GNU" ;;
3821  *-*-solaris*)
3822    llvm_cv_target_os_type="SunOS" ;;
3823  *-*-auroraux*)
3824    llvm_cv_target_os_type="AuroraUX" ;;
3825  *-*-win32*)
3826    llvm_cv_target_os_type="Win32" ;;
3827  *-*-mingw*)
3828    llvm_cv_target_os_type="MingW" ;;
3829  *-*-haiku*)
3830    llvm_cv_target_os_type="Haiku" ;;
3831  *-*-rtems*)
3832    llvm_cv_target_os_type="RTEMS" ;;
3833  *-*-nacl*)
3834    llvm_cv_target_os_type="NativeClient" ;;
3835  *-unknown-eabi*)
3836    llvm_cv_target_os_type="Freestanding" ;;
3837  *)
3838    llvm_cv_target_os_type="Unknown" ;;
3839esac
3840fi
3841{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844if test "$llvm_cv_os_type" = "Unknown" ; then
3845  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847   { (exit 1); exit 1; }; }
3848fi
3849
3850OS=$llvm_cv_os_type
3851
3852HOST_OS=$llvm_cv_os_type
3853
3854TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857LINKALL=$llvm_cv_link_all_option
3858
3859NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862case $llvm_cv_platform_type in
3863  Unix)
3864
3865cat >>confdefs.h <<\_ACEOF
3866#define LLVM_ON_UNIX 1
3867_ACEOF
3868
3869    LLVM_ON_UNIX=1
3870
3871    LLVM_ON_WIN32=0
3872
3873    ;;
3874  Win32)
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define LLVM_ON_WIN32 1
3878_ACEOF
3879
3880    LLVM_ON_UNIX=0
3881
3882    LLVM_ON_WIN32=1
3883
3884    ;;
3885esac
3886
3887{ echo "$as_me:$LINENO: checking target architecture" >&5
3888echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889if test "${llvm_cv_target_arch+set}" = set; then
3890  echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892  case $target in
3893  i?86-*)                 llvm_cv_target_arch="x86" ;;
3894  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3895  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3896  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3897  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3898  mips-*)                 llvm_cv_target_arch="Mips" ;;
3899  mipsel-*)               llvm_cv_target_arch="Mips" ;;
3900  xcore-*)                llvm_cv_target_arch="XCore" ;;
3901  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3902  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3903  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3904  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3905  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3906  *)                      llvm_cv_target_arch="Unknown" ;;
3907esac
3908fi
3909{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911
3912if test "$llvm_cv_target_arch" = "Unknown" ; then
3913  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3915fi
3916
3917case "$llvm_cv_target_arch" in
3918    x86)     LLVM_NATIVE_ARCH="X86" ;;
3919    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3920    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3921esac
3922
3923ARCH=$llvm_cv_target_arch
3924
3925
3926case $host in
3927  i?86-*)                 host_arch="x86" ;;
3928  amd64-* | x86_64-*)     host_arch="x86_64" ;;
3929  sparc*-*)               host_arch="Sparc" ;;
3930  powerpc*-*)             host_arch="PowerPC" ;;
3931  arm*-*)                 host_arch="ARM" ;;
3932  mips-*)                 host_arch="Mips" ;;
3933  mipsel-*)               host_arch="Mips" ;;
3934  xcore-*)                host_arch="XCore" ;;
3935  msp430-*)               host_arch="MSP430" ;;
3936  hexagon-*)              host_arch="Hexagon" ;;
3937  mblaze-*)               host_arch="MBlaze" ;;
3938  ptx-*)                  host_arch="PTX" ;;
3939  *)                      host_arch="Unknown" ;;
3940esac
3941
3942if test "$host_arch" = "Unknown" ; then
3943  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945fi
3946
3947HOST_ARCH=$host_arch
3948
3949
3950
3951
3952{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954if test "${ac_cv_path_GREP+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  # Extract the first word of "grep ggrep" to use in msg output
3958if test -z "$GREP"; then
3959set dummy grep ggrep; ac_prog_name=$2
3960if test "${ac_cv_path_GREP+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  ac_path_GREP_found=false
3964# Loop through the user's path and test for each of PROGNAME-LIST
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967do
3968  IFS=$as_save_IFS
3969  test -z "$as_dir" && as_dir=.
3970  for ac_prog in grep ggrep; do
3971  for ac_exec_ext in '' $ac_executable_extensions; do
3972    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974    # Check for GNU ac_path_GREP and select it if it is found.
3975  # Check for GNU $ac_path_GREP
3976case `"$ac_path_GREP" --version 2>&1` in
3977*GNU*)
3978  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979*)
3980  ac_count=0
3981  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3982  while :
3983  do
3984    cat "conftest.in" "conftest.in" >"conftest.tmp"
3985    mv "conftest.tmp" "conftest.in"
3986    cp "conftest.in" "conftest.nl"
3987    echo 'GREP' >> "conftest.nl"
3988    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990    ac_count=`expr $ac_count + 1`
3991    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992      # Best one so far, save it but keep looking for a better one
3993      ac_cv_path_GREP="$ac_path_GREP"
3994      ac_path_GREP_max=$ac_count
3995    fi
3996    # 10*(2^10) chars as input seems more than enough
3997    test $ac_count -gt 10 && break
3998  done
3999  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
4002
4003    $ac_path_GREP_found && break 3
4004  done
4005done
4006
4007done
4008IFS=$as_save_IFS
4009
4010
4011fi
4012
4013GREP="$ac_cv_path_GREP"
4014if test -z "$GREP"; then
4015  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017   { (exit 1); exit 1; }; }
4018fi
4019
4020else
4021  ac_cv_path_GREP=$GREP
4022fi
4023
4024
4025fi
4026{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4028 GREP="$ac_cv_path_GREP"
4029
4030
4031{ echo "$as_me:$LINENO: checking for egrep" >&5
4032echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033if test "${ac_cv_path_EGREP+set}" = set; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037   then ac_cv_path_EGREP="$GREP -E"
4038   else
4039     # Extract the first word of "egrep" to use in msg output
4040if test -z "$EGREP"; then
4041set dummy egrep; ac_prog_name=$2
4042if test "${ac_cv_path_EGREP+set}" = set; then
4043  echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045  ac_path_EGREP_found=false
4046# Loop through the user's path and test for each of PROGNAME-LIST
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049do
4050  IFS=$as_save_IFS
4051  test -z "$as_dir" && as_dir=.
4052  for ac_prog in egrep; do
4053  for ac_exec_ext in '' $ac_executable_extensions; do
4054    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056    # Check for GNU ac_path_EGREP and select it if it is found.
4057  # Check for GNU $ac_path_EGREP
4058case `"$ac_path_EGREP" --version 2>&1` in
4059*GNU*)
4060  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061*)
4062  ac_count=0
4063  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4064  while :
4065  do
4066    cat "conftest.in" "conftest.in" >"conftest.tmp"
4067    mv "conftest.tmp" "conftest.in"
4068    cp "conftest.in" "conftest.nl"
4069    echo 'EGREP' >> "conftest.nl"
4070    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072    ac_count=`expr $ac_count + 1`
4073    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074      # Best one so far, save it but keep looking for a better one
4075      ac_cv_path_EGREP="$ac_path_EGREP"
4076      ac_path_EGREP_max=$ac_count
4077    fi
4078    # 10*(2^10) chars as input seems more than enough
4079    test $ac_count -gt 10 && break
4080  done
4081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082esac
4083
4084
4085    $ac_path_EGREP_found && break 3
4086  done
4087done
4088
4089done
4090IFS=$as_save_IFS
4091
4092
4093fi
4094
4095EGREP="$ac_cv_path_EGREP"
4096if test -z "$EGREP"; then
4097  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099   { (exit 1); exit 1; }; }
4100fi
4101
4102else
4103  ac_cv_path_EGREP=$EGREP
4104fi
4105
4106
4107   fi
4108fi
4109{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4112
4113
4114{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116if test "${ac_cv_header_stdc+set}" = set; then
4117  echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119  cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125#include <stdlib.h>
4126#include <stdarg.h>
4127#include <string.h>
4128#include <float.h>
4129
4130int
4131main ()
4132{
4133
4134  ;
4135  return 0;
4136}
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142  *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145  (eval "$ac_compile") 2>conftest.er1
4146  ac_status=$?
4147  grep -v '^ *+' conftest.er1 >conftest.err
4148  rm -f conftest.er1
4149  cat conftest.err >&5
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); } &&
4152	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153  { (case "(($ac_try" in
4154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155  *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158  (eval "$ac_try") 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; } &&
4162	 { ac_try='test -s conftest.$ac_objext'
4163  { (case "(($ac_try" in
4164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165  *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168  (eval "$ac_try") 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; }; then
4172  ac_cv_header_stdc=yes
4173else
4174  echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177	ac_cv_header_stdc=no
4178fi
4179
4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182if test $ac_cv_header_stdc = yes; then
4183  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184  cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h.  */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h.  */
4190#include <string.h>
4191
4192_ACEOF
4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194  $EGREP "memchr" >/dev/null 2>&1; then
4195  :
4196else
4197  ac_cv_header_stdc=no
4198fi
4199rm -f conftest*
4200
4201fi
4202
4203if test $ac_cv_header_stdc = yes; then
4204  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205  cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h.  */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h.  */
4211#include <stdlib.h>
4212
4213_ACEOF
4214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215  $EGREP "free" >/dev/null 2>&1; then
4216  :
4217else
4218  ac_cv_header_stdc=no
4219fi
4220rm -f conftest*
4221
4222fi
4223
4224if test $ac_cv_header_stdc = yes; then
4225  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226  if test "$cross_compiling" = yes; then
4227  :
4228else
4229  cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h.  */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h.  */
4235#include <ctype.h>
4236#include <stdlib.h>
4237#if ((' ' & 0x0FF) == 0x020)
4238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240#else
4241# define ISLOWER(c) \
4242		   (('a' <= (c) && (c) <= 'i') \
4243		     || ('j' <= (c) && (c) <= 'r') \
4244		     || ('s' <= (c) && (c) <= 'z'))
4245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246#endif
4247
4248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249int
4250main ()
4251{
4252  int i;
4253  for (i = 0; i < 256; i++)
4254    if (XOR (islower (i), ISLOWER (i))
4255	|| toupper (i) != TOUPPER (i))
4256      return 2;
4257  return 0;
4258}
4259_ACEOF
4260rm -f conftest$ac_exeext
4261if { (ac_try="$ac_link"
4262case "(($ac_try" in
4263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264  *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267  (eval "$ac_link") 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271  { (case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276  (eval "$ac_try") 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; }; then
4280  :
4281else
4282  echo "$as_me: program exited with status $ac_status" >&5
4283echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286( exit $ac_status )
4287ac_cv_header_stdc=no
4288fi
4289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290fi
4291
4292
4293fi
4294fi
4295{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4297if test $ac_cv_header_stdc = yes; then
4298
4299cat >>confdefs.h <<\_ACEOF
4300#define STDC_HEADERS 1
4301_ACEOF
4302
4303fi
4304
4305# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316		  inttypes.h stdint.h unistd.h
4317do
4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h.  */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h.  */
4330$ac_includes_default
4331
4332#include <$ac_header>
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (ac_try="$ac_compile"
4336case "(($ac_try" in
4337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338  *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341  (eval "$ac_compile") 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349  { (case "(($ac_try" in
4350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351  *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354  (eval "$ac_try") 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; } &&
4358	 { ac_try='test -s conftest.$ac_objext'
4359  { (case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364  (eval "$ac_try") 2>&5
4365  ac_status=$?
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); }; }; then
4368  eval "$as_ac_Header=yes"
4369else
4370  echo "$as_me: failed program was:" >&5
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373	eval "$as_ac_Header=no"
4374fi
4375
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377fi
4378ac_res=`eval echo '${'$as_ac_Header'}'`
4379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4380echo "${ECHO_T}$ac_res" >&6; }
4381if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382  cat >>confdefs.h <<_ACEOF
4383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384_ACEOF
4385
4386fi
4387
4388done
4389
4390
4391{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393if test "${ac_cv_c_bigendian+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  # See if sys/param.h defines the BYTE_ORDER macro.
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403#include <sys/types.h>
4404#include <sys/param.h>
4405
4406int
4407main ()
4408{
4409#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410 bogus endian macros
4411#endif
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417rm -f conftest.$ac_objext
4418if { (ac_try="$ac_compile"
4419case "(($ac_try" in
4420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421  *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424  (eval "$ac_compile") 2>conftest.er1
4425  ac_status=$?
4426  grep -v '^ *+' conftest.er1 >conftest.err
4427  rm -f conftest.er1
4428  cat conftest.err >&5
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); } &&
4431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432  { (case "(($ac_try" in
4433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434  *) ac_try_echo=$ac_try;;
4435esac
4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437  (eval "$ac_try") 2>&5
4438  ac_status=$?
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); }; } &&
4441	 { ac_try='test -s conftest.$ac_objext'
4442  { (case "(($ac_try" in
4443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444  *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447  (eval "$ac_try") 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  # It does; now see whether it defined to BIG_ENDIAN or not.
4452cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h.  */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h.  */
4458#include <sys/types.h>
4459#include <sys/param.h>
4460
4461int
4462main ()
4463{
4464#if BYTE_ORDER != BIG_ENDIAN
4465 not big endian
4466#endif
4467
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (ac_try="$ac_compile"
4474case "(($ac_try" in
4475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476  *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479  (eval "$ac_compile") 2>conftest.er1
4480  ac_status=$?
4481  grep -v '^ *+' conftest.er1 >conftest.err
4482  rm -f conftest.er1
4483  cat conftest.err >&5
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); } &&
4486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487  { (case "(($ac_try" in
4488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489  *) ac_try_echo=$ac_try;;
4490esac
4491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492  (eval "$ac_try") 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; } &&
4496	 { ac_try='test -s conftest.$ac_objext'
4497  { (case "(($ac_try" in
4498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499  *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502  (eval "$ac_try") 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; }; then
4506  ac_cv_c_bigendian=yes
4507else
4508  echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
4510
4511	ac_cv_c_bigendian=no
4512fi
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515else
4516  echo "$as_me: failed program was:" >&5
4517sed 's/^/| /' conftest.$ac_ext >&5
4518
4519	# It does not; compile a test program.
4520if test "$cross_compiling" = yes; then
4521  # try to guess the endianness by grepping values into an object file
4522  ac_cv_c_bigendian=unknown
4523  cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h.  */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h.  */
4529short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535int
4536main ()
4537{
4538 _ascii (); _ebcdic ();
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (ac_try="$ac_compile"
4545case "(($ac_try" in
4546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547  *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550  (eval "$ac_compile") 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558  { (case "(($ac_try" in
4559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560  *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563  (eval "$ac_try") 2>&5
4564  ac_status=$?
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); }; } &&
4567	 { ac_try='test -s conftest.$ac_objext'
4568  { (case "(($ac_try" in
4569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570  *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573  (eval "$ac_try") 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4578  ac_cv_c_bigendian=yes
4579fi
4580if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581  if test "$ac_cv_c_bigendian" = unknown; then
4582    ac_cv_c_bigendian=no
4583  else
4584    # finding both strings is unlikely to happen, but who knows?
4585    ac_cv_c_bigendian=unknown
4586  fi
4587fi
4588else
4589  echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592
4593fi
4594
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596else
4597  cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h.  */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h.  */
4603$ac_includes_default
4604int
4605main ()
4606{
4607
4608  /* Are we little or big endian?  From Harbison&Steele.  */
4609  union
4610  {
4611    long int l;
4612    char c[sizeof (long int)];
4613  } u;
4614  u.l = 1;
4615  return u.c[sizeof (long int) - 1] == 1;
4616
4617  ;
4618  return 0;
4619}
4620_ACEOF
4621rm -f conftest$ac_exeext
4622if { (ac_try="$ac_link"
4623case "(($ac_try" in
4624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625  *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628  (eval "$ac_link") 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632  { (case "(($ac_try" in
4633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634  *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637  (eval "$ac_try") 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; }; then
4641  ac_cv_c_bigendian=no
4642else
4643  echo "$as_me: program exited with status $ac_status" >&5
4644echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647( exit $ac_status )
4648ac_cv_c_bigendian=yes
4649fi
4650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651fi
4652
4653
4654fi
4655
4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657fi
4658{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660case $ac_cv_c_bigendian in
4661  yes)
4662    ENDIAN=big
4663 ;;
4664  no)
4665    ENDIAN=little
4666 ;;
4667  *)
4668    { { echo "$as_me:$LINENO: error: unknown endianness
4669presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670echo "$as_me: error: unknown endianness
4671presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672   { (exit 1); exit 1; }; } ;;
4673esac
4674
4675
4676if test "$cross_compiling" = yes; then
4677  LLVM_CROSS_COMPILING=1
4678
4679
4680{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682if test "${ac_cv_build_exeext+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686  ac_cv_build_exeext=.exe
4687else
4688  ac_build_prefix=${build_alias}-
4689
4690  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691set dummy ${ac_build_prefix}gcc; ac_word=$2
4692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -n "$BUILD_CC"; then
4698  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_exec_ext in '' $ac_executable_extensions; do
4706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712done
4713IFS=$as_save_IFS
4714
4715fi
4716fi
4717BUILD_CC=$ac_cv_prog_BUILD_CC
4718if test -n "$BUILD_CC"; then
4719  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720echo "${ECHO_T}$BUILD_CC" >&6; }
4721else
4722  { echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6; }
4724fi
4725
4726
4727  if test -z "$BUILD_CC"; then
4728     # Extract the first word of "gcc", so it can be a program name with args.
4729set dummy gcc; ac_word=$2
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  if test -n "$BUILD_CC"; then
4736  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743  for ac_exec_ext in '' $ac_executable_extensions; do
4744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4745    ac_cv_prog_BUILD_CC="gcc"
4746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755BUILD_CC=$ac_cv_prog_BUILD_CC
4756if test -n "$BUILD_CC"; then
4757  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758echo "${ECHO_T}$BUILD_CC" >&6; }
4759else
4760  { echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; }
4762fi
4763
4764
4765     if test -z "$BUILD_CC"; then
4766       # Extract the first word of "cc", so it can be a program name with args.
4767set dummy cc; ac_word=$2
4768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  if test -n "$BUILD_CC"; then
4774  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775else
4776  ac_prog_rejected=no
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782  for ac_exec_ext in '' $ac_executable_extensions; do
4783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4784    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785       ac_prog_rejected=yes
4786       continue
4787     fi
4788    ac_cv_prog_BUILD_CC="cc"
4789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793done
4794IFS=$as_save_IFS
4795
4796if test $ac_prog_rejected = yes; then
4797  # We found a bogon in the path, so make sure we never use it.
4798  set dummy $ac_cv_prog_BUILD_CC
4799  shift
4800  if test $# != 0; then
4801    # We chose a different compiler from the bogus one.
4802    # However, it has the same basename, so the bogon will be chosen
4803    # first if we set BUILD_CC to just the basename; use the full file name.
4804    shift
4805    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806  fi
4807fi
4808fi
4809fi
4810BUILD_CC=$ac_cv_prog_BUILD_CC
4811if test -n "$BUILD_CC"; then
4812  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813echo "${ECHO_T}$BUILD_CC" >&6; }
4814else
4815  { echo "$as_me:$LINENO: result: no" >&5
4816echo "${ECHO_T}no" >&6; }
4817fi
4818
4819
4820     fi
4821  fi
4822  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824   { (exit 1); exit 1; }; }
4825  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4826  rm -f conftest*
4827  echo 'int main () { return 0; }' > conftest.$ac_ext
4828  ac_cv_build_exeext=
4829  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4830  (eval $ac_build_link) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); }; then
4834    for file in conftest.*; do
4835      case $file in
4836      *.c | *.o | *.obj | *.dSYM) ;;
4837      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838      esac
4839    done
4840  else
4841    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843   { (exit 1); exit 1; }; }
4844  fi
4845  rm -f conftest*
4846  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847fi
4848fi
4849
4850BUILD_EXEEXT=""
4851test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4852{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4854ac_build_exeext=$BUILD_EXEEXT
4855
4856  ac_build_prefix=${build_alias}-
4857  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858set dummy ${ac_build_prefix}g++; ac_word=$2
4859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862  echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864  if test -n "$BUILD_CXX"; then
4865  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872  for ac_exec_ext in '' $ac_executable_extensions; do
4873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876    break 2
4877  fi
4878done
4879done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885if test -n "$BUILD_CXX"; then
4886  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887echo "${ECHO_T}$BUILD_CXX" >&6; }
4888else
4889  { echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6; }
4891fi
4892
4893
4894  if test -z "$BUILD_CXX"; then
4895     # Extract the first word of "g++", so it can be a program name with args.
4896set dummy g++; ac_word=$2
4897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  if test -n "$BUILD_CXX"; then
4903  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908  IFS=$as_save_IFS
4909  test -z "$as_dir" && as_dir=.
4910  for ac_exec_ext in '' $ac_executable_extensions; do
4911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4912    ac_cv_prog_BUILD_CXX="g++"
4913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914    break 2
4915  fi
4916done
4917done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
4922BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923if test -n "$BUILD_CXX"; then
4924  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925echo "${ECHO_T}$BUILD_CXX" >&6; }
4926else
4927  { echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6; }
4929fi
4930
4931
4932     if test -z "$BUILD_CXX"; then
4933       # Extract the first word of "c++", so it can be a program name with args.
4934set dummy c++; ac_word=$2
4935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  if test -n "$BUILD_CXX"; then
4941  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942else
4943  ac_prog_rejected=no
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947  IFS=$as_save_IFS
4948  test -z "$as_dir" && as_dir=.
4949  for ac_exec_ext in '' $ac_executable_extensions; do
4950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4951    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952       ac_prog_rejected=yes
4953       continue
4954     fi
4955    ac_cv_prog_BUILD_CXX="c++"
4956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960done
4961IFS=$as_save_IFS
4962
4963if test $ac_prog_rejected = yes; then
4964  # We found a bogon in the path, so make sure we never use it.
4965  set dummy $ac_cv_prog_BUILD_CXX
4966  shift
4967  if test $# != 0; then
4968    # We chose a different compiler from the bogus one.
4969    # However, it has the same basename, so the bogon will be chosen
4970    # first if we set BUILD_CXX to just the basename; use the full file name.
4971    shift
4972    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973  fi
4974fi
4975fi
4976fi
4977BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978if test -n "$BUILD_CXX"; then
4979  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980echo "${ECHO_T}$BUILD_CXX" >&6; }
4981else
4982  { echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6; }
4984fi
4985
4986
4987     fi
4988  fi
4989else
4990  LLVM_CROSS_COMPILING=0
4991
4992fi
4993
4994if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4995  cvsbuild="yes"
4996  optimize="no"
4997  CVSBUILD=CVSBUILD=1
4998
4999else
5000  cvsbuild="no"
5001  optimize="yes"
5002fi
5003
5004
5005# Check whether --enable-libcpp was given.
5006if test "${enable_libcpp+set}" = set; then
5007  enableval=$enable_libcpp;
5008else
5009  enableval=default
5010fi
5011
5012case "$enableval" in
5013  yes) ENABLE_LIBCPP=1
5014 ;;
5015  no)  ENABLE_LIBCPP=0
5016 ;;
5017  default) ENABLE_LIBCPP=0
5018;;
5019  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021   { (exit 1); exit 1; }; } ;;
5022esac
5023
5024# Check whether --enable-optimized was given.
5025if test "${enable_optimized+set}" = set; then
5026  enableval=$enable_optimized;
5027else
5028  enableval=$optimize
5029fi
5030
5031if test ${enableval} = "no" ; then
5032  ENABLE_OPTIMIZED=
5033
5034else
5035  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5036
5037fi
5038
5039# Check whether --enable-profiling was given.
5040if test "${enable_profiling+set}" = set; then
5041  enableval=$enable_profiling;
5042else
5043  enableval="no"
5044fi
5045
5046if test ${enableval} = "no" ; then
5047  ENABLE_PROFILING=
5048
5049else
5050  ENABLE_PROFILING=ENABLE_PROFILING=1
5051
5052fi
5053
5054# Check whether --enable-assertions was given.
5055if test "${enable_assertions+set}" = set; then
5056  enableval=$enable_assertions;
5057else
5058  enableval="yes"
5059fi
5060
5061if test ${enableval} = "yes" ; then
5062  DISABLE_ASSERTIONS=
5063
5064else
5065  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5066
5067fi
5068
5069# Check whether --enable-expensive-checks was given.
5070if test "${enable_expensive_checks+set}" = set; then
5071  enableval=$enable_expensive_checks;
5072else
5073  enableval="no"
5074fi
5075
5076if test ${enableval} = "yes" ; then
5077  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5078
5079  EXPENSIVE_CHECKS=yes
5080
5081else
5082  ENABLE_EXPENSIVE_CHECKS=
5083
5084  EXPENSIVE_CHECKS=no
5085
5086fi
5087
5088# Check whether --enable-debug-runtime was given.
5089if test "${enable_debug_runtime+set}" = set; then
5090  enableval=$enable_debug_runtime;
5091else
5092  enableval=no
5093fi
5094
5095if test ${enableval} = "no" ; then
5096  DEBUG_RUNTIME=
5097
5098else
5099  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5100
5101fi
5102
5103# Check whether --enable-debug-symbols was given.
5104if test "${enable_debug_symbols+set}" = set; then
5105  enableval=$enable_debug_symbols;
5106else
5107  enableval=no
5108fi
5109
5110if test ${enableval} = "no" ; then
5111  DEBUG_SYMBOLS=
5112
5113else
5114  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5115
5116fi
5117
5118# Check whether --enable-jit was given.
5119if test "${enable_jit+set}" = set; then
5120  enableval=$enable_jit;
5121else
5122  enableval=default
5123fi
5124
5125if test ${enableval} = "no"
5126then
5127  JIT=
5128
5129else
5130  case "$llvm_cv_target_arch" in
5131    x86)         TARGET_HAS_JIT=1
5132 ;;
5133    Sparc)       TARGET_HAS_JIT=0
5134 ;;
5135    PowerPC)     TARGET_HAS_JIT=1
5136 ;;
5137    x86_64)      TARGET_HAS_JIT=1
5138 ;;
5139    ARM)         TARGET_HAS_JIT=1
5140 ;;
5141    Mips)        TARGET_HAS_JIT=1
5142 ;;
5143    XCore)       TARGET_HAS_JIT=0
5144 ;;
5145    MSP430)      TARGET_HAS_JIT=0
5146 ;;
5147    Hexagon)     TARGET_HAS_JIT=0
5148 ;;
5149    MBlaze)      TARGET_HAS_JIT=0
5150 ;;
5151    PTX)         TARGET_HAS_JIT=0
5152 ;;
5153    NVPTX)       TARGET_HAS_JIT=0
5154 ;;
5155    *)           TARGET_HAS_JIT=0
5156 ;;
5157  esac
5158fi
5159
5160# Check whether --enable-docs was given.
5161if test "${enable_docs+set}" = set; then
5162  enableval=$enable_docs;
5163else
5164  enableval=default
5165fi
5166
5167case "$enableval" in
5168  yes) ENABLE_DOCS=1
5169 ;;
5170  no)  ENABLE_DOCS=0
5171 ;;
5172  default) ENABLE_DOCS=1
5173 ;;
5174  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5176   { (exit 1); exit 1; }; } ;;
5177esac
5178
5179# Check whether --enable-doxygen was given.
5180if test "${enable_doxygen+set}" = set; then
5181  enableval=$enable_doxygen;
5182else
5183  enableval=default
5184fi
5185
5186case "$enableval" in
5187  yes) ENABLE_DOXYGEN=1
5188 ;;
5189  no)  ENABLE_DOXYGEN=0
5190 ;;
5191  default) ENABLE_DOXYGEN=0
5192 ;;
5193  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5194echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5195   { (exit 1); exit 1; }; } ;;
5196esac
5197
5198# Check whether --enable-threads was given.
5199if test "${enable_threads+set}" = set; then
5200  enableval=$enable_threads;
5201else
5202  enableval=default
5203fi
5204
5205case "$enableval" in
5206  yes) LLVM_ENABLE_THREADS=1
5207 ;;
5208  no)  LLVM_ENABLE_THREADS=0
5209 ;;
5210  default) LLVM_ENABLE_THREADS=1
5211 ;;
5212  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5213echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5214   { (exit 1); exit 1; }; } ;;
5215esac
5216
5217cat >>confdefs.h <<_ACEOF
5218#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5219_ACEOF
5220
5221
5222# Check whether --enable-pthreads was given.
5223if test "${enable_pthreads+set}" = set; then
5224  enableval=$enable_pthreads;
5225else
5226  enableval=default
5227fi
5228
5229case "$enableval" in
5230  yes) ENABLE_PTHREADS=1
5231 ;;
5232  no)  ENABLE_PTHREADS=0
5233 ;;
5234  default) ENABLE_PTHREADS=1
5235 ;;
5236  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5237echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5238   { (exit 1); exit 1; }; } ;;
5239esac
5240
5241# Check whether --enable-pic was given.
5242if test "${enable_pic+set}" = set; then
5243  enableval=$enable_pic;
5244else
5245  enableval=default
5246fi
5247
5248case "$enableval" in
5249  yes) ENABLE_PIC=1
5250 ;;
5251  no)  ENABLE_PIC=0
5252 ;;
5253  default) ENABLE_PIC=1
5254 ;;
5255  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5256echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5257   { (exit 1); exit 1; }; } ;;
5258esac
5259
5260cat >>confdefs.h <<_ACEOF
5261#define ENABLE_PIC $ENABLE_PIC
5262_ACEOF
5263
5264
5265# Check whether --enable-shared was given.
5266if test "${enable_shared+set}" = set; then
5267  enableval=$enable_shared;
5268else
5269  enableval=default
5270fi
5271
5272case "$enableval" in
5273  yes) ENABLE_SHARED=1
5274 ;;
5275  no)  ENABLE_SHARED=0
5276 ;;
5277  default) ENABLE_SHARED=0
5278 ;;
5279  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5280echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5281   { (exit 1); exit 1; }; } ;;
5282esac
5283
5284# Check whether --enable-embed-stdcxx was given.
5285if test "${enable_embed_stdcxx+set}" = set; then
5286  enableval=$enable_embed_stdcxx;
5287else
5288  enableval=default
5289fi
5290
5291case "$enableval" in
5292  yes) ENABLE_EMBED_STDCXX=1
5293 ;;
5294  no)  ENABLE_EMBED_STDCXX=0
5295 ;;
5296  default) ENABLE_EMBED_STDCXX=0
5297 ;;
5298  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5299echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5300   { (exit 1); exit 1; }; } ;;
5301esac
5302
5303# Check whether --enable-timestamps was given.
5304if test "${enable_timestamps+set}" = set; then
5305  enableval=$enable_timestamps;
5306else
5307  enableval=default
5308fi
5309
5310case "$enableval" in
5311  yes) ENABLE_TIMESTAMPS=1
5312 ;;
5313  no)  ENABLE_TIMESTAMPS=0
5314 ;;
5315  default) ENABLE_TIMESTAMPS=1
5316 ;;
5317  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5318echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5319   { (exit 1); exit 1; }; } ;;
5320esac
5321
5322cat >>confdefs.h <<_ACEOF
5323#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5324_ACEOF
5325
5326
5327TARGETS_TO_BUILD=""
5328# Check whether --enable-targets was given.
5329if test "${enable_targets+set}" = set; then
5330  enableval=$enable_targets;
5331else
5332  enableval=all
5333fi
5334
5335if test "$enableval" = host-only ; then
5336  enableval=host
5337fi
5338case "$enableval" in
5339  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5340  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5341      case "$a_target" in
5342        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5343        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5344        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5345        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5346        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5348        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5349        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5350        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5351        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5352        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5353        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5355        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5356        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5357        host) case "$llvm_cv_target_arch" in
5358            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5359            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5361            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5362            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5363            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5365            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5366            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5370            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5371            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372echo "$as_me: error: Can not set target to build" >&2;}
5373   { (exit 1); exit 1; }; } ;;
5374          esac ;;
5375        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377   { (exit 1); exit 1; }; } ;;
5378      esac
5379  done
5380  ;;
5381esac
5382TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
5385for a_target in $TARGETS_TO_BUILD; do
5386  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388cat >>confdefs.h <<_ACEOF
5389#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390_ACEOF
5391
5392    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398    fi
5399    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401    fi
5402
5403cat >>confdefs.h <<_ACEOF
5404#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405_ACEOF
5406
5407
5408cat >>confdefs.h <<_ACEOF
5409#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410_ACEOF
5411
5412
5413cat >>confdefs.h <<_ACEOF
5414#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415_ACEOF
5416
5417
5418cat >>confdefs.h <<_ACEOF
5419#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5420_ACEOF
5421
5422    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423
5424cat >>confdefs.h <<_ACEOF
5425#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426_ACEOF
5427
5428    fi
5429    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431cat >>confdefs.h <<_ACEOF
5432#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433_ACEOF
5434
5435    fi
5436  fi
5437done
5438
5439LLVM_ENUM_TARGETS=""
5440LLVM_ENUM_ASM_PRINTERS=""
5441LLVM_ENUM_ASM_PARSERS=""
5442LLVM_ENUM_DISASSEMBLERS=""
5443for target_to_build in $TARGETS_TO_BUILD; do
5444  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447  fi
5448  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450  fi
5451  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453  fi
5454done
5455
5456
5457
5458
5459
5460
5461# Check whether --with-optimize-option was given.
5462if test "${with_optimize_option+set}" = set; then
5463  withval=$with_optimize_option;
5464else
5465  withval=default
5466fi
5467
5468{ echo "$as_me:$LINENO: checking optimization flags" >&5
5469echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470case "$withval" in
5471  default)
5472    case "$llvm_cv_os_type" in
5473    FreeBSD) optimize_option=-O2 ;;
5474    MingW) optimize_option=-O2 ;;
5475    *)     optimize_option=-O3 ;;
5476    esac ;;
5477  *) optimize_option="$withval" ;;
5478esac
5479OPTIMIZE_OPTION=$optimize_option
5480
5481{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5482echo "${ECHO_T}$optimize_option" >&6; }
5483
5484
5485# Check whether --with-extra-options was given.
5486if test "${with_extra_options+set}" = set; then
5487  withval=$with_extra_options;
5488else
5489  withval=default
5490fi
5491
5492case "$withval" in
5493  default) EXTRA_OPTIONS= ;;
5494  *) EXTRA_OPTIONS=$withval ;;
5495esac
5496EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
5499
5500# Check whether --with-extra-ld-options was given.
5501if test "${with_extra_ld_options+set}" = set; then
5502  withval=$with_extra_ld_options;
5503else
5504  withval=default
5505fi
5506
5507case "$withval" in
5508  default) EXTRA_LD_OPTIONS= ;;
5509  *) EXTRA_LD_OPTIONS=$withval ;;
5510esac
5511EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
5514# Check whether --enable-bindings was given.
5515if test "${enable_bindings+set}" = set; then
5516  enableval=$enable_bindings;
5517else
5518  enableval=default
5519fi
5520
5521BINDINGS_TO_BUILD=""
5522case "$enableval" in
5523  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524  all ) BINDINGS_TO_BUILD="ocaml" ;;
5525  none | no) BINDINGS_TO_BUILD="" ;;
5526  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527      case "$a_binding" in
5528        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531   { (exit 1); exit 1; }; } ;;
5532      esac
5533  done
5534  ;;
5535esac
5536
5537
5538# Check whether --with-ocaml-libdir was given.
5539if test "${with_ocaml_libdir+set}" = set; then
5540  withval=$with_ocaml_libdir;
5541else
5542  withval=auto
5543fi
5544
5545case "$withval" in
5546  auto) with_ocaml_libdir="$withval" ;;
5547  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550   { (exit 1); exit 1; }; } ;;
5551esac
5552
5553
5554# Check whether --with-clang-srcdir was given.
5555if test "${with_clang_srcdir+set}" = set; then
5556  withval=$with_clang_srcdir;
5557else
5558  withval="-"
5559fi
5560
5561case "$withval" in
5562  -) clang_src_root="" ;;
5563  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564  *) clang_src_root="$ac_pwd/$withval" ;;
5565esac
5566CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
5570# Check whether --with-clang-resource-dir was given.
5571if test "${with_clang_resource_dir+set}" = set; then
5572  withval=$with_clang_resource_dir;
5573else
5574  withval=""
5575fi
5576
5577
5578cat >>confdefs.h <<_ACEOF
5579#define CLANG_RESOURCE_DIR "$withval"
5580_ACEOF
5581
5582
5583
5584# Check whether --with-c-include-dirs was given.
5585if test "${with_c_include_dirs+set}" = set; then
5586  withval=$with_c_include_dirs;
5587else
5588  withval=""
5589fi
5590
5591
5592cat >>confdefs.h <<_ACEOF
5593#define C_INCLUDE_DIRS "$withval"
5594_ACEOF
5595
5596
5597# Clang normally uses the system c++ headers and libraries. With this option,
5598# clang will use the ones provided by a gcc installation instead. This option should
5599# be passed the same value that was used with --prefix when configuring gcc.
5600
5601# Check whether --with-gcc-toolchain was given.
5602if test "${with_gcc_toolchain+set}" = set; then
5603  withval=$with_gcc_toolchain;
5604else
5605  withval=""
5606fi
5607
5608
5609cat >>confdefs.h <<_ACEOF
5610#define GCC_INSTALL_PREFIX "$withval"
5611_ACEOF
5612
5613
5614
5615# Check whether --with-default-sysroot was given.
5616if test "${with_default_sysroot+set}" = set; then
5617  withval=$with_default_sysroot;
5618else
5619  withval=""
5620fi
5621
5622
5623cat >>confdefs.h <<_ACEOF
5624#define DEFAULT_SYSROOT "$withval"
5625_ACEOF
5626
5627
5628
5629# Check whether --with-binutils-include was given.
5630if test "${with_binutils_include+set}" = set; then
5631  withval=$with_binutils_include;
5632else
5633  withval=default
5634fi
5635
5636case "$withval" in
5637  default) WITH_BINUTILS_INCDIR=default ;;
5638  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5639  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641   { (exit 1); exit 1; }; } ;;
5642esac
5643if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650   { (exit 1); exit 1; }; };
5651  fi
5652fi
5653
5654
5655# Check whether --with-bug-report-url was given.
5656if test "${with_bug_report_url+set}" = set; then
5657  withval=$with_bug_report_url;
5658else
5659  withval="http://llvm.org/bugs/"
5660fi
5661
5662
5663cat >>confdefs.h <<_ACEOF
5664#define BUG_REPORT_URL "$withval"
5665_ACEOF
5666
5667
5668# Check whether --enable-libffi was given.
5669if test "${enable_libffi+set}" = set; then
5670  enableval=$enable_libffi; case "$enableval" in
5671    yes) llvm_cv_enable_libffi="yes" ;;
5672    no)  llvm_cv_enable_libffi="no"  ;;
5673    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5674echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5675   { (exit 1); exit 1; }; } ;;
5676  esac
5677else
5678  llvm_cv_enable_libffi=no
5679fi
5680
5681
5682
5683# Check whether --with-internal-prefix was given.
5684if test "${with_internal_prefix+set}" = set; then
5685  withval=$with_internal_prefix;
5686else
5687  withval=""
5688fi
5689
5690INTERNAL_PREFIX=$withval
5691
5692
5693
5694{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5695echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5696if test "${lt_cv_path_NM+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  if test -n "$NM"; then
5700  # Let the user override the test.
5701  lt_cv_path_NM="$NM"
5702else
5703  lt_nm_to_check="${ac_tool_prefix}nm"
5704  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5705    lt_nm_to_check="$lt_nm_to_check nm"
5706  fi
5707  for lt_tmp_nm in $lt_nm_to_check; do
5708    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5710      IFS="$lt_save_ifs"
5711      test -z "$ac_dir" && ac_dir=.
5712      tmp_nm="$ac_dir/$lt_tmp_nm"
5713      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5714	# Check to see if the nm accepts a BSD-compat flag.
5715	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716	#   nm: unknown option "B" ignored
5717	# Tru64's nm complains that /dev/null is an invalid object file
5718	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5719	*/dev/null* | *'Invalid file or object type'*)
5720	  lt_cv_path_NM="$tmp_nm -B"
5721	  break
5722	  ;;
5723	*)
5724	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5725	  */dev/null*)
5726	    lt_cv_path_NM="$tmp_nm -p"
5727	    break
5728	    ;;
5729	  *)
5730	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5731	    continue # so that we can try to find one that supports BSD flags
5732	    ;;
5733	  esac
5734	  ;;
5735	esac
5736      fi
5737    done
5738    IFS="$lt_save_ifs"
5739  done
5740  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5741fi
5742fi
5743{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5744echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5745NM="$lt_cv_path_NM"
5746
5747
5748
5749{ echo "$as_me:$LINENO: checking for GNU make" >&5
5750echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5751if test "${llvm_cv_gnu_make_command+set}" = set; then
5752  echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754  llvm_cv_gnu_make_command=''
5755 for a in "$MAKE" make gmake gnumake ; do
5756  if test -z "$a" ; then continue ; fi ;
5757  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5758  then
5759   llvm_cv_gnu_make_command=$a ;
5760   break;
5761  fi
5762 done
5763fi
5764{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5765echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5766 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5767   ifGNUmake='' ;
5768 else
5769   ifGNUmake='#' ;
5770   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5771echo "${ECHO_T}\"Not found\"" >&6; };
5772 fi
5773
5774
5775{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5776echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5777LN_S=$as_ln_s
5778if test "$LN_S" = "ln -s"; then
5779  { echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6; }
5781else
5782  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5783echo "${ECHO_T}no, using $LN_S" >&6; }
5784fi
5785
5786# Extract the first word of "cmp", so it can be a program name with args.
5787set dummy cmp; ac_word=$2
5788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790if test "${ac_cv_path_CMP+set}" = set; then
5791  echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793  case $CMP in
5794  [\\/]* | ?:[\\/]*)
5795  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5796  ;;
5797  *)
5798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801  IFS=$as_save_IFS
5802  test -z "$as_dir" && as_dir=.
5803  for ac_exec_ext in '' $ac_executable_extensions; do
5804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807    break 2
5808  fi
5809done
5810done
5811IFS=$as_save_IFS
5812
5813  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5814  ;;
5815esac
5816fi
5817CMP=$ac_cv_path_CMP
5818if test -n "$CMP"; then
5819  { echo "$as_me:$LINENO: result: $CMP" >&5
5820echo "${ECHO_T}$CMP" >&6; }
5821else
5822  { echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6; }
5824fi
5825
5826
5827# Extract the first word of "cp", so it can be a program name with args.
5828set dummy cp; ac_word=$2
5829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831if test "${ac_cv_path_CP+set}" = set; then
5832  echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834  case $CP in
5835  [\\/]* | ?:[\\/]*)
5836  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5837  ;;
5838  *)
5839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844  for ac_exec_ext in '' $ac_executable_extensions; do
5845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851done
5852IFS=$as_save_IFS
5853
5854  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5855  ;;
5856esac
5857fi
5858CP=$ac_cv_path_CP
5859if test -n "$CP"; then
5860  { echo "$as_me:$LINENO: result: $CP" >&5
5861echo "${ECHO_T}$CP" >&6; }
5862else
5863  { echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6; }
5865fi
5866
5867
5868# Extract the first word of "date", so it can be a program name with args.
5869set dummy date; ac_word=$2
5870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872if test "${ac_cv_path_DATE+set}" = set; then
5873  echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875  case $DATE in
5876  [\\/]* | ?:[\\/]*)
5877  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5878  ;;
5879  *)
5880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885  for ac_exec_ext in '' $ac_executable_extensions; do
5886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892done
5893IFS=$as_save_IFS
5894
5895  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5896  ;;
5897esac
5898fi
5899DATE=$ac_cv_path_DATE
5900if test -n "$DATE"; then
5901  { echo "$as_me:$LINENO: result: $DATE" >&5
5902echo "${ECHO_T}$DATE" >&6; }
5903else
5904  { echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6; }
5906fi
5907
5908
5909# Extract the first word of "find", so it can be a program name with args.
5910set dummy find; ac_word=$2
5911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913if test "${ac_cv_path_FIND+set}" = set; then
5914  echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916  case $FIND in
5917  [\\/]* | ?:[\\/]*)
5918  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5919  ;;
5920  *)
5921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  test -z "$as_dir" && as_dir=.
5926  for ac_exec_ext in '' $ac_executable_extensions; do
5927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933done
5934IFS=$as_save_IFS
5935
5936  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5937  ;;
5938esac
5939fi
5940FIND=$ac_cv_path_FIND
5941if test -n "$FIND"; then
5942  { echo "$as_me:$LINENO: result: $FIND" >&5
5943echo "${ECHO_T}$FIND" >&6; }
5944else
5945  { echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6; }
5947fi
5948
5949
5950# Extract the first word of "grep", so it can be a program name with args.
5951set dummy grep; ac_word=$2
5952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954if test "${ac_cv_path_GREP+set}" = set; then
5955  echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957  case $GREP in
5958  [\\/]* | ?:[\\/]*)
5959  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5960  ;;
5961  *)
5962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967  for ac_exec_ext in '' $ac_executable_extensions; do
5968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974done
5975IFS=$as_save_IFS
5976
5977  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5978  ;;
5979esac
5980fi
5981GREP=$ac_cv_path_GREP
5982if test -n "$GREP"; then
5983  { echo "$as_me:$LINENO: result: $GREP" >&5
5984echo "${ECHO_T}$GREP" >&6; }
5985else
5986  { echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6; }
5988fi
5989
5990
5991# Extract the first word of "mkdir", so it can be a program name with args.
5992set dummy mkdir; ac_word=$2
5993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995if test "${ac_cv_path_MKDIR+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  case $MKDIR in
5999  [\\/]* | ?:[\\/]*)
6000  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6001  ;;
6002  *)
6003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008  for ac_exec_ext in '' $ac_executable_extensions; do
6009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6019  ;;
6020esac
6021fi
6022MKDIR=$ac_cv_path_MKDIR
6023if test -n "$MKDIR"; then
6024  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6025echo "${ECHO_T}$MKDIR" >&6; }
6026else
6027  { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
6029fi
6030
6031
6032# Extract the first word of "mv", so it can be a program name with args.
6033set dummy mv; ac_word=$2
6034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036if test "${ac_cv_path_MV+set}" = set; then
6037  echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039  case $MV in
6040  [\\/]* | ?:[\\/]*)
6041  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6042  ;;
6043  *)
6044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047  IFS=$as_save_IFS
6048  test -z "$as_dir" && as_dir=.
6049  for ac_exec_ext in '' $ac_executable_extensions; do
6050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6051    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053    break 2
6054  fi
6055done
6056done
6057IFS=$as_save_IFS
6058
6059  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6060  ;;
6061esac
6062fi
6063MV=$ac_cv_path_MV
6064if test -n "$MV"; then
6065  { echo "$as_me:$LINENO: result: $MV" >&5
6066echo "${ECHO_T}$MV" >&6; }
6067else
6068  { echo "$as_me:$LINENO: result: no" >&5
6069echo "${ECHO_T}no" >&6; }
6070fi
6071
6072
6073if test -n "$ac_tool_prefix"; then
6074  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6075set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078if test "${ac_cv_prog_RANLIB+set}" = set; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  if test -n "$RANLIB"; then
6082  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087  IFS=$as_save_IFS
6088  test -z "$as_dir" && as_dir=.
6089  for ac_exec_ext in '' $ac_executable_extensions; do
6090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6091    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093    break 2
6094  fi
6095done
6096done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101RANLIB=$ac_cv_prog_RANLIB
6102if test -n "$RANLIB"; then
6103  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6104echo "${ECHO_T}$RANLIB" >&6; }
6105else
6106  { echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6; }
6108fi
6109
6110
6111fi
6112if test -z "$ac_cv_prog_RANLIB"; then
6113  ac_ct_RANLIB=$RANLIB
6114  # Extract the first word of "ranlib", so it can be a program name with args.
6115set dummy ranlib; ac_word=$2
6116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119  echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121  if test -n "$ac_ct_RANLIB"; then
6122  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127  IFS=$as_save_IFS
6128  test -z "$as_dir" && as_dir=.
6129  for ac_exec_ext in '' $ac_executable_extensions; do
6130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131    ac_cv_prog_ac_ct_RANLIB="ranlib"
6132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142if test -n "$ac_ct_RANLIB"; then
6143  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6145else
6146  { echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6; }
6148fi
6149
6150  if test "x$ac_ct_RANLIB" = x; then
6151    RANLIB=":"
6152  else
6153    case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156whose name does not start with the host triplet.  If you think this
6157configuration is useful to you, please write to autoconf@gnu.org." >&5
6158echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159whose name does not start with the host triplet.  If you think this
6160configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6161ac_tool_warned=yes ;;
6162esac
6163    RANLIB=$ac_ct_RANLIB
6164  fi
6165else
6166  RANLIB="$ac_cv_prog_RANLIB"
6167fi
6168
6169if test -n "$ac_tool_prefix"; then
6170  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}ar; ac_word=$2
6172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_AR+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177  if test -n "$AR"; then
6178  ac_cv_prog_AR="$AR" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183  IFS=$as_save_IFS
6184  test -z "$as_dir" && as_dir=.
6185  for ac_exec_ext in '' $ac_executable_extensions; do
6186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187    ac_cv_prog_AR="${ac_tool_prefix}ar"
6188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189    break 2
6190  fi
6191done
6192done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197AR=$ac_cv_prog_AR
6198if test -n "$AR"; then
6199  { echo "$as_me:$LINENO: result: $AR" >&5
6200echo "${ECHO_T}$AR" >&6; }
6201else
6202  { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
6204fi
6205
6206
6207fi
6208if test -z "$ac_cv_prog_AR"; then
6209  ac_ct_AR=$AR
6210  # Extract the first word of "ar", so it can be a program name with args.
6211set dummy ar; ac_word=$2
6212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  if test -n "$ac_ct_AR"; then
6218  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223  IFS=$as_save_IFS
6224  test -z "$as_dir" && as_dir=.
6225  for ac_exec_ext in '' $ac_executable_extensions; do
6226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227    ac_cv_prog_ac_ct_AR="ar"
6228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229    break 2
6230  fi
6231done
6232done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_AR=$ac_cv_prog_ac_ct_AR
6238if test -n "$ac_ct_AR"; then
6239  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6240echo "${ECHO_T}$ac_ct_AR" >&6; }
6241else
6242  { echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6; }
6244fi
6245
6246  if test "x$ac_ct_AR" = x; then
6247    AR="false"
6248  else
6249    case $cross_compiling:$ac_tool_warned in
6250yes:)
6251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet.  If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&5
6254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255whose name does not start with the host triplet.  If you think this
6256configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259    AR=$ac_ct_AR
6260  fi
6261else
6262  AR="$ac_cv_prog_AR"
6263fi
6264
6265# Extract the first word of "rm", so it can be a program name with args.
6266set dummy rm; ac_word=$2
6267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269if test "${ac_cv_path_RM+set}" = set; then
6270  echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272  case $RM in
6273  [\\/]* | ?:[\\/]*)
6274  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6275  ;;
6276  *)
6277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282  for ac_exec_ext in '' $ac_executable_extensions; do
6283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289done
6290IFS=$as_save_IFS
6291
6292  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6293  ;;
6294esac
6295fi
6296RM=$ac_cv_path_RM
6297if test -n "$RM"; then
6298  { echo "$as_me:$LINENO: result: $RM" >&5
6299echo "${ECHO_T}$RM" >&6; }
6300else
6301  { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303fi
6304
6305
6306# Extract the first word of "sed", so it can be a program name with args.
6307set dummy sed; ac_word=$2
6308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310if test "${ac_cv_path_SED+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  case $SED in
6314  [\\/]* | ?:[\\/]*)
6315  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6316  ;;
6317  *)
6318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321  IFS=$as_save_IFS
6322  test -z "$as_dir" && as_dir=.
6323  for ac_exec_ext in '' $ac_executable_extensions; do
6324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327    break 2
6328  fi
6329done
6330done
6331IFS=$as_save_IFS
6332
6333  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6334  ;;
6335esac
6336fi
6337SED=$ac_cv_path_SED
6338if test -n "$SED"; then
6339  { echo "$as_me:$LINENO: result: $SED" >&5
6340echo "${ECHO_T}$SED" >&6; }
6341else
6342  { echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6; }
6344fi
6345
6346
6347# Extract the first word of "tar", so it can be a program name with args.
6348set dummy tar; ac_word=$2
6349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351if test "${ac_cv_path_TAR+set}" = set; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  case $TAR in
6355  [\\/]* | ?:[\\/]*)
6356  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6357  ;;
6358  *)
6359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364  for ac_exec_ext in '' $ac_executable_extensions; do
6365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371done
6372IFS=$as_save_IFS
6373
6374  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6375  ;;
6376esac
6377fi
6378TAR=$ac_cv_path_TAR
6379if test -n "$TAR"; then
6380  { echo "$as_me:$LINENO: result: $TAR" >&5
6381echo "${ECHO_T}$TAR" >&6; }
6382else
6383  { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
6385fi
6386
6387
6388# Extract the first word of "pwd", so it can be a program name with args.
6389set dummy pwd; ac_word=$2
6390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392if test "${ac_cv_path_BINPWD+set}" = set; then
6393  echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395  case $BINPWD in
6396  [\\/]* | ?:[\\/]*)
6397  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6398  ;;
6399  *)
6400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405  for ac_exec_ext in '' $ac_executable_extensions; do
6406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412done
6413IFS=$as_save_IFS
6414
6415  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6416  ;;
6417esac
6418fi
6419BINPWD=$ac_cv_path_BINPWD
6420if test -n "$BINPWD"; then
6421  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6422echo "${ECHO_T}$BINPWD" >&6; }
6423else
6424  { echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6; }
6426fi
6427
6428
6429
6430# Extract the first word of "Graphviz", so it can be a program name with args.
6431set dummy Graphviz; ac_word=$2
6432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6435  echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437  case $GRAPHVIZ in
6438  [\\/]* | ?:[\\/]*)
6439  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6440  ;;
6441  *)
6442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445  IFS=$as_save_IFS
6446  test -z "$as_dir" && as_dir=.
6447  for ac_exec_ext in '' $ac_executable_extensions; do
6448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451    break 2
6452  fi
6453done
6454done
6455IFS=$as_save_IFS
6456
6457  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6458  ;;
6459esac
6460fi
6461GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6462if test -n "$GRAPHVIZ"; then
6463  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6464echo "${ECHO_T}$GRAPHVIZ" >&6; }
6465else
6466  { echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6; }
6468fi
6469
6470
6471if test "$GRAPHVIZ" != "echo Graphviz" ; then
6472
6473cat >>confdefs.h <<\_ACEOF
6474#define HAVE_GRAPHVIZ 1
6475_ACEOF
6476
6477    if test "$llvm_cv_os_type" = "MingW" ; then
6478    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6479  fi
6480
6481cat >>confdefs.h <<_ACEOF
6482#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6483_ACEOF
6484
6485fi
6486# Extract the first word of "dot", so it can be a program name with args.
6487set dummy dot; ac_word=$2
6488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490if test "${ac_cv_path_DOT+set}" = set; then
6491  echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493  case $DOT in
6494  [\\/]* | ?:[\\/]*)
6495  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6496  ;;
6497  *)
6498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503  for ac_exec_ext in '' $ac_executable_extensions; do
6504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510done
6511IFS=$as_save_IFS
6512
6513  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6514  ;;
6515esac
6516fi
6517DOT=$ac_cv_path_DOT
6518if test -n "$DOT"; then
6519  { echo "$as_me:$LINENO: result: $DOT" >&5
6520echo "${ECHO_T}$DOT" >&6; }
6521else
6522  { echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6; }
6524fi
6525
6526
6527if test "$DOT" != "echo dot" ; then
6528
6529cat >>confdefs.h <<\_ACEOF
6530#define HAVE_DOT 1
6531_ACEOF
6532
6533    if test "$llvm_cv_os_type" = "MingW" ; then
6534    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6535  fi
6536
6537cat >>confdefs.h <<_ACEOF
6538#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6539_ACEOF
6540
6541fi
6542# Extract the first word of "fdp", so it can be a program name with args.
6543set dummy fdp; ac_word=$2
6544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546if test "${ac_cv_path_FDP+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  case $FDP in
6550  [\\/]* | ?:[\\/]*)
6551  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6552  ;;
6553  *)
6554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559  for ac_exec_ext in '' $ac_executable_extensions; do
6560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566done
6567IFS=$as_save_IFS
6568
6569  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6570  ;;
6571esac
6572fi
6573FDP=$ac_cv_path_FDP
6574if test -n "$FDP"; then
6575  { echo "$as_me:$LINENO: result: $FDP" >&5
6576echo "${ECHO_T}$FDP" >&6; }
6577else
6578  { echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6; }
6580fi
6581
6582
6583if test "$FDP" != "echo fdp" ; then
6584
6585cat >>confdefs.h <<\_ACEOF
6586#define HAVE_FDP 1
6587_ACEOF
6588
6589    if test "$llvm_cv_os_type" = "MingW" ; then
6590    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6591  fi
6592
6593cat >>confdefs.h <<_ACEOF
6594#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6595_ACEOF
6596
6597fi
6598# Extract the first word of "neato", so it can be a program name with args.
6599set dummy neato; ac_word=$2
6600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602if test "${ac_cv_path_NEATO+set}" = set; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605  case $NEATO in
6606  [\\/]* | ?:[\\/]*)
6607  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6608  ;;
6609  *)
6610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613  IFS=$as_save_IFS
6614  test -z "$as_dir" && as_dir=.
6615  for ac_exec_ext in '' $ac_executable_extensions; do
6616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619    break 2
6620  fi
6621done
6622done
6623IFS=$as_save_IFS
6624
6625  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6626  ;;
6627esac
6628fi
6629NEATO=$ac_cv_path_NEATO
6630if test -n "$NEATO"; then
6631  { echo "$as_me:$LINENO: result: $NEATO" >&5
6632echo "${ECHO_T}$NEATO" >&6; }
6633else
6634  { echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6; }
6636fi
6637
6638
6639if test "$NEATO" != "echo neato" ; then
6640
6641cat >>confdefs.h <<\_ACEOF
6642#define HAVE_NEATO 1
6643_ACEOF
6644
6645    if test "$llvm_cv_os_type" = "MingW" ; then
6646    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6647  fi
6648
6649cat >>confdefs.h <<_ACEOF
6650#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6651_ACEOF
6652
6653fi
6654# Extract the first word of "twopi", so it can be a program name with args.
6655set dummy twopi; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_TWOPI+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  case $TWOPI in
6662  [\\/]* | ?:[\\/]*)
6663  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6664  ;;
6665  *)
6666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669  IFS=$as_save_IFS
6670  test -z "$as_dir" && as_dir=.
6671  for ac_exec_ext in '' $ac_executable_extensions; do
6672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675    break 2
6676  fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6682  ;;
6683esac
6684fi
6685TWOPI=$ac_cv_path_TWOPI
6686if test -n "$TWOPI"; then
6687  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6688echo "${ECHO_T}$TWOPI" >&6; }
6689else
6690  { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695if test "$TWOPI" != "echo twopi" ; then
6696
6697cat >>confdefs.h <<\_ACEOF
6698#define HAVE_TWOPI 1
6699_ACEOF
6700
6701    if test "$llvm_cv_os_type" = "MingW" ; then
6702    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6703  fi
6704
6705cat >>confdefs.h <<_ACEOF
6706#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6707_ACEOF
6708
6709fi
6710# Extract the first word of "circo", so it can be a program name with args.
6711set dummy circo; ac_word=$2
6712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714if test "${ac_cv_path_CIRCO+set}" = set; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  case $CIRCO in
6718  [\\/]* | ?:[\\/]*)
6719  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6720  ;;
6721  *)
6722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725  IFS=$as_save_IFS
6726  test -z "$as_dir" && as_dir=.
6727  for ac_exec_ext in '' $ac_executable_extensions; do
6728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6729    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731    break 2
6732  fi
6733done
6734done
6735IFS=$as_save_IFS
6736
6737  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6738  ;;
6739esac
6740fi
6741CIRCO=$ac_cv_path_CIRCO
6742if test -n "$CIRCO"; then
6743  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6744echo "${ECHO_T}$CIRCO" >&6; }
6745else
6746  { echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6; }
6748fi
6749
6750
6751if test "$CIRCO" != "echo circo" ; then
6752
6753cat >>confdefs.h <<\_ACEOF
6754#define HAVE_CIRCO 1
6755_ACEOF
6756
6757    if test "$llvm_cv_os_type" = "MingW" ; then
6758    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759  fi
6760
6761cat >>confdefs.h <<_ACEOF
6762#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6763_ACEOF
6764
6765fi
6766for ac_prog in gv gsview32
6767do
6768  # Extract the first word of "$ac_prog", so it can be a program name with args.
6769set dummy $ac_prog; ac_word=$2
6770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_GV+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  case $GV in
6776  [\\/]* | ?:[\\/]*)
6777  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6778  ;;
6779  *)
6780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785  for ac_exec_ext in '' $ac_executable_extensions; do
6786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795  ;;
6796esac
6797fi
6798GV=$ac_cv_path_GV
6799if test -n "$GV"; then
6800  { echo "$as_me:$LINENO: result: $GV" >&5
6801echo "${ECHO_T}$GV" >&6; }
6802else
6803  { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
6805fi
6806
6807
6808  test -n "$GV" && break
6809done
6810test -n "$GV" || GV="echo gv"
6811
6812if test "$GV" != "echo gv" ; then
6813
6814cat >>confdefs.h <<\_ACEOF
6815#define HAVE_GV 1
6816_ACEOF
6817
6818    if test "$llvm_cv_os_type" = "MingW" ; then
6819    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820  fi
6821
6822cat >>confdefs.h <<_ACEOF
6823#define LLVM_PATH_GV "$GV${EXEEXT}"
6824_ACEOF
6825
6826fi
6827# Extract the first word of "dotty", so it can be a program name with args.
6828set dummy dotty; ac_word=$2
6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_path_DOTTY+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  case $DOTTY in
6835  [\\/]* | ?:[\\/]*)
6836  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6837  ;;
6838  *)
6839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844  for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851done
6852IFS=$as_save_IFS
6853
6854  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6855  ;;
6856esac
6857fi
6858DOTTY=$ac_cv_path_DOTTY
6859if test -n "$DOTTY"; then
6860  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6861echo "${ECHO_T}$DOTTY" >&6; }
6862else
6863  { echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6; }
6865fi
6866
6867
6868if test "$DOTTY" != "echo dotty" ; then
6869
6870cat >>confdefs.h <<\_ACEOF
6871#define HAVE_DOTTY 1
6872_ACEOF
6873
6874    if test "$llvm_cv_os_type" = "MingW" ; then
6875    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6876  fi
6877
6878cat >>confdefs.h <<_ACEOF
6879#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6880_ACEOF
6881
6882fi
6883# Extract the first word of "xdot.py", so it can be a program name with args.
6884set dummy xdot.py; ac_word=$2
6885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_XDOT_PY+set}" = set; then
6888  echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890  case $XDOT_PY in
6891  [\\/]* | ?:[\\/]*)
6892  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6893  ;;
6894  *)
6895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900  for ac_exec_ext in '' $ac_executable_extensions; do
6901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907done
6908IFS=$as_save_IFS
6909
6910  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6911  ;;
6912esac
6913fi
6914XDOT_PY=$ac_cv_path_XDOT_PY
6915if test -n "$XDOT_PY"; then
6916  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6917echo "${ECHO_T}$XDOT_PY" >&6; }
6918else
6919  { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924if test "$XDOT_PY" != "echo xdot.py" ; then
6925
6926cat >>confdefs.h <<\_ACEOF
6927#define HAVE_XDOT_PY 1
6928_ACEOF
6929
6930    if test "$llvm_cv_os_type" = "MingW" ; then
6931    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6932  fi
6933
6934cat >>confdefs.h <<_ACEOF
6935#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6936_ACEOF
6937
6938fi
6939
6940# Find a good install program.  We prefer a C program (faster),
6941# so one script is as good as another.  But avoid the broken or
6942# incompatible versions:
6943# SysV /etc/install, /usr/sbin/install
6944# SunOS /usr/etc/install
6945# IRIX /sbin/install
6946# AIX /bin/install
6947# AmigaOS /C/install, which installs bootblocks on floppy discs
6948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6949# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6951# OS/2's system install, which has a completely different semantic
6952# ./install, which can be erroneously created by make from ./install.sh.
6953{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6954echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6955if test -z "$INSTALL"; then
6956if test "${ac_cv_path_install+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964  # Account for people who put trailing slashes in PATH elements.
6965case $as_dir/ in
6966  ./ | .// | /cC/* | \
6967  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6968  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6969  /usr/ucb/* ) ;;
6970  *)
6971    # OSF1 and SCO ODT 3.0 have their own names for install.
6972    # Don't use installbsd from OSF since it installs stuff as root
6973    # by default.
6974    for ac_prog in ginstall scoinst install; do
6975      for ac_exec_ext in '' $ac_executable_extensions; do
6976	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6977	  if test $ac_prog = install &&
6978	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979	    # AIX install.  It has an incompatible calling convention.
6980	    :
6981	  elif test $ac_prog = install &&
6982	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6983	    # program-specific install script used by HP pwplus--don't use.
6984	    :
6985	  else
6986	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6987	    break 3
6988	  fi
6989	fi
6990      done
6991    done
6992    ;;
6993esac
6994done
6995IFS=$as_save_IFS
6996
6997
6998fi
6999  if test "${ac_cv_path_install+set}" = set; then
7000    INSTALL=$ac_cv_path_install
7001  else
7002    # As a last resort, use the slow shell script.  Don't cache a
7003    # value for INSTALL within a source directory, because that will
7004    # break other packages using the cache if that directory is
7005    # removed, or if the value is a relative name.
7006    INSTALL=$ac_install_sh
7007  fi
7008fi
7009{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7010echo "${ECHO_T}$INSTALL" >&6; }
7011
7012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7013# It thinks the first close brace ends the variable substitution.
7014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7015
7016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7017
7018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7019
7020case "$INSTALL" in
7021 [\\/$]* | ?:[\\/]* ) ;;
7022 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7023esac
7024
7025# Extract the first word of "bzip2", so it can be a program name with args.
7026set dummy bzip2; ac_word=$2
7027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_path_BZIP2+set}" = set; then
7030  echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032  case $BZIP2 in
7033  [\\/]* | ?:[\\/]*)
7034  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7035  ;;
7036  *)
7037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  test -z "$as_dir" && as_dir=.
7042  for ac_exec_ext in '' $ac_executable_extensions; do
7043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046    break 2
7047  fi
7048done
7049done
7050IFS=$as_save_IFS
7051
7052  ;;
7053esac
7054fi
7055BZIP2=$ac_cv_path_BZIP2
7056if test -n "$BZIP2"; then
7057  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7058echo "${ECHO_T}$BZIP2" >&6; }
7059else
7060  { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064
7065# Extract the first word of "cat", so it can be a program name with args.
7066set dummy cat; 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_CAT+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072  case $CAT in
7073  [\\/]* | ?:[\\/]*)
7074  ac_cv_path_CAT="$CAT" # 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_CAT="$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  ;;
7093esac
7094fi
7095CAT=$ac_cv_path_CAT
7096if test -n "$CAT"; then
7097  { echo "$as_me:$LINENO: result: $CAT" >&5
7098echo "${ECHO_T}$CAT" >&6; }
7099else
7100  { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
7102fi
7103
7104
7105# Extract the first word of "doxygen", so it can be a program name with args.
7106set dummy doxygen; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_DOXYGEN+set}" = set; then
7110  echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112  case $DOXYGEN in
7113  [\\/]* | ?:[\\/]*)
7114  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7115  ;;
7116  *)
7117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120  IFS=$as_save_IFS
7121  test -z "$as_dir" && as_dir=.
7122  for ac_exec_ext in '' $ac_executable_extensions; do
7123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126    break 2
7127  fi
7128done
7129done
7130IFS=$as_save_IFS
7131
7132  ;;
7133esac
7134fi
7135DOXYGEN=$ac_cv_path_DOXYGEN
7136if test -n "$DOXYGEN"; then
7137  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7138echo "${ECHO_T}$DOXYGEN" >&6; }
7139else
7140  { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
7142fi
7143
7144
7145# Extract the first word of "groff", so it can be a program name with args.
7146set dummy groff; ac_word=$2
7147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_path_GROFF+set}" = set; then
7150  echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152  case $GROFF in
7153  [\\/]* | ?:[\\/]*)
7154  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7155  ;;
7156  *)
7157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162  for ac_exec_ext in '' $ac_executable_extensions; do
7163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169done
7170IFS=$as_save_IFS
7171
7172  ;;
7173esac
7174fi
7175GROFF=$ac_cv_path_GROFF
7176if test -n "$GROFF"; then
7177  { echo "$as_me:$LINENO: result: $GROFF" >&5
7178echo "${ECHO_T}$GROFF" >&6; }
7179else
7180  { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
7185# Extract the first word of "gzip", so it can be a program name with args.
7186set dummy gzip; ac_word=$2
7187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189if test "${ac_cv_path_GZIPBIN+set}" = set; then
7190  echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192  case $GZIPBIN in
7193  [\\/]* | ?:[\\/]*)
7194  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7195  ;;
7196  *)
7197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202  for ac_exec_ext in '' $ac_executable_extensions; do
7203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209done
7210IFS=$as_save_IFS
7211
7212  ;;
7213esac
7214fi
7215GZIPBIN=$ac_cv_path_GZIPBIN
7216if test -n "$GZIPBIN"; then
7217  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7218echo "${ECHO_T}$GZIPBIN" >&6; }
7219else
7220  { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
7222fi
7223
7224
7225# Extract the first word of "pdfroff", so it can be a program name with args.
7226set dummy pdfroff; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_PDFROFF+set}" = set; then
7230  echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232  case $PDFROFF in
7233  [\\/]* | ?:[\\/]*)
7234  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7235  ;;
7236  *)
7237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242  for ac_exec_ext in '' $ac_executable_extensions; do
7243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252  ;;
7253esac
7254fi
7255PDFROFF=$ac_cv_path_PDFROFF
7256if test -n "$PDFROFF"; then
7257  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7258echo "${ECHO_T}$PDFROFF" >&6; }
7259else
7260  { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265# Extract the first word of "runtest", so it can be a program name with args.
7266set dummy runtest; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_RUNTEST+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  case $RUNTEST in
7273  [\\/]* | ?:[\\/]*)
7274  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7275  ;;
7276  *)
7277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282  for ac_exec_ext in '' $ac_executable_extensions; do
7283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292  ;;
7293esac
7294fi
7295RUNTEST=$ac_cv_path_RUNTEST
7296if test -n "$RUNTEST"; then
7297  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7298echo "${ECHO_T}$RUNTEST" >&6; }
7299else
7300  { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
7302fi
7303
7304
7305
7306no_itcl=true
7307{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7308echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7309
7310# Check whether --with-tclinclude was given.
7311if test "${with_tclinclude+set}" = set; then
7312  withval=$with_tclinclude; with_tclinclude=${withval}
7313else
7314  with_tclinclude=''
7315fi
7316
7317if test "${ac_cv_path_tclsh+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320
7321if test x"${with_tclinclude}" != x ; then
7322  if test -f ${with_tclinclude}/tclsh ; then
7323    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7324  elif test -f ${with_tclinclude}/src/tclsh ; then
7325    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7326  else
7327    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7328echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7329   { (exit 1); exit 1; }; }
7330  fi
7331fi
7332fi
7333
7334
7335if test x"${ac_cv_path_tclsh}" = x ; then
7336  { echo "$as_me:$LINENO: result: none" >&5
7337echo "${ECHO_T}none" >&6; }
7338  for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7339do
7340  # Extract the first word of "$ac_prog", so it can be a program name with args.
7341set dummy $ac_prog; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_TCLSH+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  case $TCLSH in
7348  [\\/]* | ?:[\\/]*)
7349  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7350  ;;
7351  *)
7352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357  for ac_exec_ext in '' $ac_executable_extensions; do
7358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367  ;;
7368esac
7369fi
7370TCLSH=$ac_cv_path_TCLSH
7371if test -n "$TCLSH"; then
7372  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7373echo "${ECHO_T}$TCLSH" >&6; }
7374else
7375  { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
7377fi
7378
7379
7380  test -n "$TCLSH" && break
7381done
7382
7383  if test x"${TCLSH}" = x ; then
7384    ac_cv_path_tclsh='';
7385  else
7386    ac_cv_path_tclsh="${TCLSH}";
7387  fi
7388else
7389  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7390echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7391  TCLSH="${ac_cv_path_tclsh}"
7392
7393fi
7394
7395# Extract the first word of "zip", so it can be a program name with args.
7396set dummy zip; ac_word=$2
7397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399if test "${ac_cv_path_ZIP+set}" = set; then
7400  echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402  case $ZIP in
7403  [\\/]* | ?:[\\/]*)
7404  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7405  ;;
7406  *)
7407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410  IFS=$as_save_IFS
7411  test -z "$as_dir" && as_dir=.
7412  for ac_exec_ext in '' $ac_executable_extensions; do
7413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416    break 2
7417  fi
7418done
7419done
7420IFS=$as_save_IFS
7421
7422  ;;
7423esac
7424fi
7425ZIP=$ac_cv_path_ZIP
7426if test -n "$ZIP"; then
7427  { echo "$as_me:$LINENO: result: $ZIP" >&5
7428echo "${ECHO_T}$ZIP" >&6; }
7429else
7430  { echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6; }
7432fi
7433
7434
7435for ac_prog in ocamlc
7436do
7437  # Extract the first word of "$ac_prog", so it can be a program name with args.
7438set dummy $ac_prog; ac_word=$2
7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_OCAMLC+set}" = set; then
7442  echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444  case $OCAMLC in
7445  [\\/]* | ?:[\\/]*)
7446  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7447  ;;
7448  *)
7449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454  for ac_exec_ext in '' $ac_executable_extensions; do
7455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461done
7462IFS=$as_save_IFS
7463
7464  ;;
7465esac
7466fi
7467OCAMLC=$ac_cv_path_OCAMLC
7468if test -n "$OCAMLC"; then
7469  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7470echo "${ECHO_T}$OCAMLC" >&6; }
7471else
7472  { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
7474fi
7475
7476
7477  test -n "$OCAMLC" && break
7478done
7479
7480for ac_prog in ocamlopt
7481do
7482  # Extract the first word of "$ac_prog", so it can be a program name with args.
7483set dummy $ac_prog; ac_word=$2
7484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7487  echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489  case $OCAMLOPT in
7490  [\\/]* | ?:[\\/]*)
7491  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7492  ;;
7493  *)
7494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499  for ac_exec_ext in '' $ac_executable_extensions; do
7500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506done
7507IFS=$as_save_IFS
7508
7509  ;;
7510esac
7511fi
7512OCAMLOPT=$ac_cv_path_OCAMLOPT
7513if test -n "$OCAMLOPT"; then
7514  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7515echo "${ECHO_T}$OCAMLOPT" >&6; }
7516else
7517  { echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6; }
7519fi
7520
7521
7522  test -n "$OCAMLOPT" && break
7523done
7524
7525for ac_prog in ocamldep
7526do
7527  # Extract the first word of "$ac_prog", so it can be a program name with args.
7528set dummy $ac_prog; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7532  echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534  case $OCAMLDEP in
7535  [\\/]* | ?:[\\/]*)
7536  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7537  ;;
7538  *)
7539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542  IFS=$as_save_IFS
7543  test -z "$as_dir" && as_dir=.
7544  for ac_exec_ext in '' $ac_executable_extensions; do
7545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548    break 2
7549  fi
7550done
7551done
7552IFS=$as_save_IFS
7553
7554  ;;
7555esac
7556fi
7557OCAMLDEP=$ac_cv_path_OCAMLDEP
7558if test -n "$OCAMLDEP"; then
7559  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7560echo "${ECHO_T}$OCAMLDEP" >&6; }
7561else
7562  { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
7564fi
7565
7566
7567  test -n "$OCAMLDEP" && break
7568done
7569
7570for ac_prog in ocamldoc
7571do
7572  # Extract the first word of "$ac_prog", so it can be a program name with args.
7573set dummy $ac_prog; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7577  echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579  case $OCAMLDOC in
7580  [\\/]* | ?:[\\/]*)
7581  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7582  ;;
7583  *)
7584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589  for ac_exec_ext in '' $ac_executable_extensions; do
7590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599  ;;
7600esac
7601fi
7602OCAMLDOC=$ac_cv_path_OCAMLDOC
7603if test -n "$OCAMLDOC"; then
7604  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7605echo "${ECHO_T}$OCAMLDOC" >&6; }
7606else
7607  { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
7609fi
7610
7611
7612  test -n "$OCAMLDOC" && break
7613done
7614
7615for ac_prog in gas as
7616do
7617  # Extract the first word of "$ac_prog", so it can be a program name with args.
7618set dummy $ac_prog; ac_word=$2
7619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621if test "${ac_cv_path_GAS+set}" = set; then
7622  echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624  case $GAS in
7625  [\\/]* | ?:[\\/]*)
7626  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7627  ;;
7628  *)
7629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634  for ac_exec_ext in '' $ac_executable_extensions; do
7635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641done
7642IFS=$as_save_IFS
7643
7644  ;;
7645esac
7646fi
7647GAS=$ac_cv_path_GAS
7648if test -n "$GAS"; then
7649  { echo "$as_me:$LINENO: result: $GAS" >&5
7650echo "${ECHO_T}$GAS" >&6; }
7651else
7652  { echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6; }
7654fi
7655
7656
7657  test -n "$GAS" && break
7658done
7659
7660
7661{ echo "$as_me:$LINENO: checking for linker version" >&5
7662echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7663if test "${llvm_cv_link_version+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666
7667   version_string="$(ld -v 2>&1 | head -1)"
7668
7669   # Check for ld64.
7670   if (echo "$version_string" | grep -q "ld64"); then
7671     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7672   else
7673     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7674   fi
7675
7676fi
7677{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7678echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HOST_LINK_VERSION "$llvm_cv_link_version"
7682_ACEOF
7683
7684
7685
7686{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7687echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7688if test "${llvm_cv_link_use_r+set}" = set; then
7689  echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691   ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS'
7693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697  oldcflags="$CFLAGS"
7698  CFLAGS="$CFLAGS -Wl,-R."
7699  cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h.  */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h.  */
7705
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (ac_try="$ac_link"
7716case "(($ac_try" in
7717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718  *) ac_try_echo=$ac_try;;
7719esac
7720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721  (eval "$ac_link") 2>conftest.er1
7722  ac_status=$?
7723  grep -v '^ *+' conftest.er1 >conftest.err
7724  rm -f conftest.er1
7725  cat conftest.err >&5
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); } &&
7728	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729  { (case "(($ac_try" in
7730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731  *) ac_try_echo=$ac_try;;
7732esac
7733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734  (eval "$ac_try") 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); }; } &&
7738	 { ac_try='test -s conftest$ac_exeext'
7739  { (case "(($ac_try" in
7740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741  *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744  (eval "$ac_try") 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); }; }; then
7748  llvm_cv_link_use_r=yes
7749else
7750  echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753	llvm_cv_link_use_r=no
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext \
7757      conftest$ac_exeext conftest.$ac_ext
7758  CFLAGS="$oldcflags"
7759  ac_ext=c
7760ac_cpp='$CPP $CPPFLAGS'
7761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766fi
7767{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7768echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7769if test "$llvm_cv_link_use_r" = yes ; then
7770
7771cat >>confdefs.h <<\_ACEOF
7772#define HAVE_LINK_R 1
7773_ACEOF
7774
7775  fi
7776
7777
7778{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7779echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7780if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783   ac_ext=c
7784ac_cpp='$CPP $CPPFLAGS'
7785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789  oldcflags="$CFLAGS"
7790  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7791  cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h.  */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h.  */
7797
7798int
7799main ()
7800{
7801
7802  ;
7803  return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext conftest$ac_exeext
7807if { (ac_try="$ac_link"
7808case "(($ac_try" in
7809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810  *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813  (eval "$ac_link") 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } &&
7820	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821  { (case "(($ac_try" in
7822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823  *) ac_try_echo=$ac_try;;
7824esac
7825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826  (eval "$ac_try") 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }; } &&
7830	 { ac_try='test -s conftest$ac_exeext'
7831  { (case "(($ac_try" in
7832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833  *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836  (eval "$ac_try") 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); }; }; then
7840  llvm_cv_link_use_export_dynamic=yes
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845	llvm_cv_link_use_export_dynamic=no
7846fi
7847
7848rm -f core conftest.err conftest.$ac_objext \
7849      conftest$ac_exeext conftest.$ac_ext
7850  CFLAGS="$oldcflags"
7851  ac_ext=c
7852ac_cpp='$CPP $CPPFLAGS'
7853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856
7857
7858fi
7859{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7860echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7861if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7862
7863cat >>confdefs.h <<\_ACEOF
7864#define HAVE_LINK_EXPORT_DYNAMIC 1
7865_ACEOF
7866
7867  fi
7868
7869
7870{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7871echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7872if test "${llvm_cv_link_use_version_script+set}" = set; then
7873  echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875   ac_ext=c
7876ac_cpp='$CPP $CPPFLAGS'
7877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880
7881  oldcflags="$CFLAGS"
7882
7883  # The following code is from the autoconf manual,
7884  # "11.13: Limitations of Usual Tools".
7885  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7886  # Use mktemp if possible; otherwise fall back on mkdir,
7887  # with $RANDOM to make collisions less likely.
7888  : ${TMPDIR=/tmp}
7889  {
7890    tmp=`
7891      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7892    ` &&
7893    test -n "$tmp" && test -d "$tmp"
7894  } || {
7895    tmp=$TMPDIR/foo$$-$RANDOM
7896    (umask 077 && mkdir "$tmp")
7897  } || exit $?
7898
7899  echo "{" > "$tmp/export.map"
7900  echo "  global: main;" >> "$tmp/export.map"
7901  echo "  local: *;" >> "$tmp/export.map"
7902  echo "};" >> "$tmp/export.map"
7903
7904  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7905  cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h.  */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h.  */
7911
7912int
7913main ()
7914{
7915
7916  ;
7917  return 0;
7918}
7919_ACEOF
7920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (ac_try="$ac_link"
7922case "(($ac_try" in
7923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924  *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927  (eval "$ac_link") 2>conftest.er1
7928  ac_status=$?
7929  grep -v '^ *+' conftest.er1 >conftest.err
7930  rm -f conftest.er1
7931  cat conftest.err >&5
7932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933  (exit $ac_status); } &&
7934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935  { (case "(($ac_try" in
7936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937  *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940  (eval "$ac_try") 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; } &&
7944	 { ac_try='test -s conftest$ac_exeext'
7945  { (case "(($ac_try" in
7946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947  *) ac_try_echo=$ac_try;;
7948esac
7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950  (eval "$ac_try") 2>&5
7951  ac_status=$?
7952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953  (exit $ac_status); }; }; then
7954  llvm_cv_link_use_version_script=yes
7955else
7956  echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959	llvm_cv_link_use_version_script=no
7960fi
7961
7962rm -f core conftest.err conftest.$ac_objext \
7963      conftest$ac_exeext conftest.$ac_ext
7964  rm "$tmp/export.map"
7965  rmdir "$tmp"
7966  CFLAGS="$oldcflags"
7967  ac_ext=c
7968ac_cpp='$CPP $CPPFLAGS'
7969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974fi
7975{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7976echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7977if test "$llvm_cv_link_use_version_script" = yes ; then
7978  HAVE_LINK_VERSION_SCRIPT=1
7979
7980  fi
7981
7982
7983
7984
7985{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987if test "${ac_cv_c_const+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  cat >conftest.$ac_ext <<_ACEOF
7991/* confdefs.h.  */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
7995/* end confdefs.h.  */
7996
7997int
7998main ()
7999{
8000/* FIXME: Include the comments suggested by Paul. */
8001#ifndef __cplusplus
8002  /* Ultrix mips cc rejects this.  */
8003  typedef int charset[2];
8004  const charset x;
8005  /* SunOS 4.1.1 cc rejects this.  */
8006  char const *const *ccp;
8007  char **p;
8008  /* NEC SVR4.0.2 mips cc rejects this.  */
8009  struct point {int x, y;};
8010  static struct point const zero = {0,0};
8011  /* AIX XL C 1.02.0.0 rejects this.
8012     It does not let you subtract one const X* pointer from another in
8013     an arm of an if-expression whose if-part is not a constant
8014     expression */
8015  const char *g = "string";
8016  ccp = &g + (g ? g-g : 0);
8017  /* HPUX 7.0 cc rejects these. */
8018  ++ccp;
8019  p = (char**) ccp;
8020  ccp = (char const *const *) p;
8021  { /* SCO 3.2v4 cc rejects this.  */
8022    char *t;
8023    char const *s = 0 ? (char *) 0 : (char const *) 0;
8024
8025    *t++ = 0;
8026    if (s) return 0;
8027  }
8028  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8029    int x[] = {25, 17};
8030    const int *foo = &x[0];
8031    ++foo;
8032  }
8033  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034    typedef const int *iptr;
8035    iptr p = 0;
8036    ++p;
8037  }
8038  { /* AIX XL C 1.02.0.0 rejects this saying
8039       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040    struct s { int j; const int *ap[3]; };
8041    struct s *b; b->j = 5;
8042  }
8043  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8044    const int foo = 10;
8045    if (!foo) return 0;
8046  }
8047  return !x[0] && !zero.x;
8048#endif
8049
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext
8055if { (ac_try="$ac_compile"
8056case "(($ac_try" in
8057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058  *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061  (eval "$ac_compile") 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } &&
8068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8069  { (case "(($ac_try" in
8070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071  *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074  (eval "$ac_try") 2>&5
8075  ac_status=$?
8076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077  (exit $ac_status); }; } &&
8078	 { ac_try='test -s conftest.$ac_objext'
8079  { (case "(($ac_try" in
8080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081  *) ac_try_echo=$ac_try;;
8082esac
8083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084  (eval "$ac_try") 2>&5
8085  ac_status=$?
8086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087  (exit $ac_status); }; }; then
8088  ac_cv_c_const=yes
8089else
8090  echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093	ac_cv_c_const=no
8094fi
8095
8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
8098{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8099echo "${ECHO_T}$ac_cv_c_const" >&6; }
8100if test $ac_cv_c_const = no; then
8101
8102cat >>confdefs.h <<\_ACEOF
8103#define const
8104_ACEOF
8105
8106fi
8107
8108
8109
8110
8111
8112
8113ac_header_dirent=no
8114for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8115  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8116{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8117echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h.  */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h.  */
8127#include <sys/types.h>
8128#include <$ac_hdr>
8129
8130int
8131main ()
8132{
8133if ((DIR *) 0)
8134return 0;
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext
8140if { (ac_try="$ac_compile"
8141case "(($ac_try" in
8142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143  *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146  (eval "$ac_compile") 2>conftest.er1
8147  ac_status=$?
8148  grep -v '^ *+' conftest.er1 >conftest.err
8149  rm -f conftest.er1
8150  cat conftest.err >&5
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); } &&
8153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8154  { (case "(($ac_try" in
8155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156  *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159  (eval "$ac_try") 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }; } &&
8163	 { ac_try='test -s conftest.$ac_objext'
8164  { (case "(($ac_try" in
8165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166  *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169  (eval "$ac_try") 2>&5
8170  ac_status=$?
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); }; }; then
8173  eval "$as_ac_Header=yes"
8174else
8175  echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178	eval "$as_ac_Header=no"
8179fi
8180
8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182fi
8183ac_res=`eval echo '${'$as_ac_Header'}'`
8184	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8185echo "${ECHO_T}$ac_res" >&6; }
8186if test `eval echo '${'$as_ac_Header'}'` = yes; then
8187  cat >>confdefs.h <<_ACEOF
8188#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8189_ACEOF
8190
8191ac_header_dirent=$ac_hdr; break
8192fi
8193
8194done
8195# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8196if test $ac_header_dirent = dirent.h; then
8197  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8198echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8199if test "${ac_cv_search_opendir+set}" = set; then
8200  echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202  ac_func_search_save_LIBS=$LIBS
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h.  */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h.  */
8209
8210/* Override any GCC internal prototype to avoid an error.
8211   Use char because int might match the return type of a GCC
8212   builtin and then its argument prototype would still apply.  */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216char opendir ();
8217int
8218main ()
8219{
8220return opendir ();
8221  ;
8222  return 0;
8223}
8224_ACEOF
8225for ac_lib in '' dir; do
8226  if test -z "$ac_lib"; then
8227    ac_res="none required"
8228  else
8229    ac_res=-l$ac_lib
8230    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8231  fi
8232  rm -f conftest.$ac_objext conftest$ac_exeext
8233if { (ac_try="$ac_link"
8234case "(($ac_try" in
8235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236  *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239  (eval "$ac_link") 2>conftest.er1
8240  ac_status=$?
8241  grep -v '^ *+' conftest.er1 >conftest.err
8242  rm -f conftest.er1
8243  cat conftest.err >&5
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); } &&
8246	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8247  { (case "(($ac_try" in
8248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249  *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252  (eval "$ac_try") 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; } &&
8256	 { ac_try='test -s conftest$ac_exeext'
8257  { (case "(($ac_try" in
8258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259  *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262  (eval "$ac_try") 2>&5
8263  ac_status=$?
8264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265  (exit $ac_status); }; }; then
8266  ac_cv_search_opendir=$ac_res
8267else
8268  echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271
8272fi
8273
8274rm -f core conftest.err conftest.$ac_objext \
8275      conftest$ac_exeext
8276  if test "${ac_cv_search_opendir+set}" = set; then
8277  break
8278fi
8279done
8280if test "${ac_cv_search_opendir+set}" = set; then
8281  :
8282else
8283  ac_cv_search_opendir=no
8284fi
8285rm conftest.$ac_ext
8286LIBS=$ac_func_search_save_LIBS
8287fi
8288{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8289echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8290ac_res=$ac_cv_search_opendir
8291if test "$ac_res" != no; then
8292  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8293
8294fi
8295
8296else
8297  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8298echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8299if test "${ac_cv_search_opendir+set}" = set; then
8300  echo $ECHO_N "(cached) $ECHO_C" >&6
8301else
8302  ac_func_search_save_LIBS=$LIBS
8303cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h.  */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h.  */
8309
8310/* Override any GCC internal prototype to avoid an error.
8311   Use char because int might match the return type of a GCC
8312   builtin and then its argument prototype would still apply.  */
8313#ifdef __cplusplus
8314extern "C"
8315#endif
8316char opendir ();
8317int
8318main ()
8319{
8320return opendir ();
8321  ;
8322  return 0;
8323}
8324_ACEOF
8325for ac_lib in '' x; do
8326  if test -z "$ac_lib"; then
8327    ac_res="none required"
8328  else
8329    ac_res=-l$ac_lib
8330    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8331  fi
8332  rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (ac_try="$ac_link"
8334case "(($ac_try" in
8335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336  *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339  (eval "$ac_link") 2>conftest.er1
8340  ac_status=$?
8341  grep -v '^ *+' conftest.er1 >conftest.err
8342  rm -f conftest.er1
8343  cat conftest.err >&5
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); } &&
8346	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347  { (case "(($ac_try" in
8348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349  *) ac_try_echo=$ac_try;;
8350esac
8351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352  (eval "$ac_try") 2>&5
8353  ac_status=$?
8354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355  (exit $ac_status); }; } &&
8356	 { ac_try='test -s conftest$ac_exeext'
8357  { (case "(($ac_try" in
8358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359  *) ac_try_echo=$ac_try;;
8360esac
8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362  (eval "$ac_try") 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; }; then
8366  ac_cv_search_opendir=$ac_res
8367else
8368  echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371
8372fi
8373
8374rm -f core conftest.err conftest.$ac_objext \
8375      conftest$ac_exeext
8376  if test "${ac_cv_search_opendir+set}" = set; then
8377  break
8378fi
8379done
8380if test "${ac_cv_search_opendir+set}" = set; then
8381  :
8382else
8383  ac_cv_search_opendir=no
8384fi
8385rm conftest.$ac_ext
8386LIBS=$ac_func_search_save_LIBS
8387fi
8388{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8389echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8390ac_res=$ac_cv_search_opendir
8391if test "$ac_res" != no; then
8392  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393
8394fi
8395
8396fi
8397
8398
8399for ac_header in dlfcn.h
8400do
8401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406  echo $ECHO_N "(cached) $ECHO_C" >&6
8407fi
8408ac_res=`eval echo '${'$as_ac_Header'}'`
8409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8410echo "${ECHO_T}$ac_res" >&6; }
8411else
8412  # Is the header compilable?
8413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h.  */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h.  */
8421$ac_includes_default
8422#include <$ac_header>
8423_ACEOF
8424rm -f conftest.$ac_objext
8425if { (ac_try="$ac_compile"
8426case "(($ac_try" in
8427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428  *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431  (eval "$ac_compile") 2>conftest.er1
8432  ac_status=$?
8433  grep -v '^ *+' conftest.er1 >conftest.err
8434  rm -f conftest.er1
8435  cat conftest.err >&5
8436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437  (exit $ac_status); } &&
8438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439  { (case "(($ac_try" in
8440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441  *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444  (eval "$ac_try") 2>&5
8445  ac_status=$?
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); }; } &&
8448	 { ac_try='test -s conftest.$ac_objext'
8449  { (case "(($ac_try" in
8450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451  *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454  (eval "$ac_try") 2>&5
8455  ac_status=$?
8456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); }; }; then
8458  ac_header_compiler=yes
8459else
8460  echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463	ac_header_compiler=no
8464fi
8465
8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468echo "${ECHO_T}$ac_header_compiler" >&6; }
8469
8470# Is the header present?
8471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8473cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479#include <$ac_header>
8480_ACEOF
8481if { (ac_try="$ac_cpp conftest.$ac_ext"
8482case "(($ac_try" in
8483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484  *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8488  ac_status=$?
8489  grep -v '^ *+' conftest.er1 >conftest.err
8490  rm -f conftest.er1
8491  cat conftest.err >&5
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); } >/dev/null; then
8494  if test -s conftest.err; then
8495    ac_cpp_err=$ac_c_preproc_warn_flag
8496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497  else
8498    ac_cpp_err=
8499  fi
8500else
8501  ac_cpp_err=yes
8502fi
8503if test -z "$ac_cpp_err"; then
8504  ac_header_preproc=yes
8505else
8506  echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509  ac_header_preproc=no
8510fi
8511
8512rm -f conftest.err conftest.$ac_ext
8513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8514echo "${ECHO_T}$ac_header_preproc" >&6; }
8515
8516# So?  What about this header?
8517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518  yes:no: )
8519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8523    ac_header_preproc=yes
8524    ;;
8525  no:yes:* )
8526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8538    ( cat <<\_ASBOX
8539## ------------------------------------ ##
8540## Report this to http://llvm.org/bugs/ ##
8541## ------------------------------------ ##
8542_ASBOX
8543     ) | sed "s/^/$as_me: WARNING:     /" >&2
8544    ;;
8545esac
8546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551  eval "$as_ac_Header=\$ac_header_preproc"
8552fi
8553ac_res=`eval echo '${'$as_ac_Header'}'`
8554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8555echo "${ECHO_T}$ac_res" >&6; }
8556
8557fi
8558if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559  cat >>confdefs.h <<_ACEOF
8560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561_ACEOF
8562
8563fi
8564
8565done
8566
8567# Check whether --enable-ltdl-install was given.
8568if test "${enable_ltdl_install+set}" = set; then
8569  enableval=$enable_ltdl_install;
8570fi
8571
8572
8573
8574
8575if test x"${enable_ltdl_install-no}" != xno; then
8576  INSTALL_LTDL_TRUE=
8577  INSTALL_LTDL_FALSE='#'
8578else
8579  INSTALL_LTDL_TRUE='#'
8580  INSTALL_LTDL_FALSE=
8581fi
8582
8583
8584
8585if test x"${enable_ltdl_convenience-no}" != xno; then
8586  CONVENIENCE_LTDL_TRUE=
8587  CONVENIENCE_LTDL_FALSE='#'
8588else
8589  CONVENIENCE_LTDL_TRUE='#'
8590  CONVENIENCE_LTDL_FALSE=
8591fi
8592
8593
8594{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8595echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8596library_names_spec=
8597libname_spec='lib$name'
8598soname_spec=
8599shrext_cmds=".so"
8600postinstall_cmds=
8601postuninstall_cmds=
8602finish_cmds=
8603finish_eval=
8604shlibpath_var=
8605shlibpath_overrides_runpath=unknown
8606version_type=none
8607dynamic_linker="$host_os ld.so"
8608sys_lib_dlsearch_path_spec="/lib /usr/lib"
8609if test "$GCC" = yes; then
8610  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8612    # if the path contains ";" then we assume it to be the separator
8613    # otherwise default to the standard path separator (i.e. ":") - it is
8614    # assumed that no part of a normal pathname contains ";" but that should
8615    # okay in the real world where ";" in dirpaths is itself problematic.
8616    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8617  else
8618    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8619  fi
8620else
8621  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8622fi
8623need_lib_prefix=unknown
8624hardcode_into_libs=no
8625
8626# when you set need_version to no, make sure it does not cause -set_version
8627# flags to be left without arguments
8628need_version=unknown
8629
8630case $host_os in
8631aix3*)
8632  version_type=linux
8633  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8634  shlibpath_var=LIBPATH
8635
8636  # AIX 3 has no versioning support, so we append a major version to the name.
8637  soname_spec='${libname}${release}${shared_ext}$major'
8638  ;;
8639
8640aix4* | aix5*)
8641  version_type=linux
8642  need_lib_prefix=no
8643  need_version=no
8644  hardcode_into_libs=yes
8645  if test "$host_cpu" = ia64; then
8646    # AIX 5 supports IA64
8647    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8648    shlibpath_var=LD_LIBRARY_PATH
8649  else
8650    # With GCC up to 2.95.x, collect2 would create an import file
8651    # for dependence libraries.  The import file would start with
8652    # the line `#! .'.  This would cause the generated library to
8653    # depend on `.', always an invalid library.  This was fixed in
8654    # development snapshots of GCC prior to 3.0.
8655    case $host_os in
8656      aix4 | aix4.[01] | aix4.[01].*)
8657      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8658	   echo ' yes '
8659	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8660	:
8661      else
8662	can_build_shared=no
8663      fi
8664      ;;
8665    esac
8666    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8667    # soname into executable. Probably we can add versioning support to
8668    # collect2, so additional links can be useful in future.
8669    if test "$aix_use_runtimelinking" = yes; then
8670      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8671      # instead of lib<name>.a to let people know that these are not
8672      # typical AIX shared libraries.
8673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674    else
8675      # We preserve .a as extension for shared libraries through AIX4.2
8676      # and later when we are not doing run time linking.
8677      library_names_spec='${libname}${release}.a $libname.a'
8678      soname_spec='${libname}${release}${shared_ext}$major'
8679    fi
8680    shlibpath_var=LIBPATH
8681  fi
8682  ;;
8683
8684amigaos*)
8685  library_names_spec='$libname.ixlibrary $libname.a'
8686  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8687  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'
8688  ;;
8689
8690beos*)
8691  library_names_spec='${libname}${shared_ext}'
8692  dynamic_linker="$host_os ld.so"
8693  shlibpath_var=LIBRARY_PATH
8694  ;;
8695
8696bsdi[45]*)
8697  version_type=linux
8698  need_version=no
8699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700  soname_spec='${libname}${release}${shared_ext}$major'
8701  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8702  shlibpath_var=LD_LIBRARY_PATH
8703  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8704  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8705  # the default ld.so.conf also contains /usr/contrib/lib and
8706  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8707  # libtool to hard-code these into programs
8708  ;;
8709
8710cygwin* | mingw* | pw32*)
8711  version_type=windows
8712  shrext_cmds=".dll"
8713  need_version=no
8714  need_lib_prefix=no
8715
8716  case $GCC,$host_os in
8717  yes,cygwin* | yes,mingw* | yes,pw32*)
8718    library_names_spec='$libname.dll.a'
8719    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8720    postinstall_cmds='base_file=`basename \${file}`~
8721      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8722      dldir=$destdir/`dirname \$dlpath`~
8723      test -d \$dldir || mkdir -p \$dldir~
8724      $install_prog $dir/$dlname \$dldir/$dlname~
8725      chmod a+x \$dldir/$dlname'
8726    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8727      dlpath=$dir/\$dldll~
8728       $rm \$dlpath'
8729    shlibpath_overrides_runpath=yes
8730
8731    case $host_os in
8732    cygwin*)
8733      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8734      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8736      ;;
8737    mingw*)
8738      # MinGW DLLs use traditional 'lib' prefix
8739      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8740      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8741      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8742        # It is most probably a Windows format PATH printed by
8743        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8744        # path with ; separators, and with drive letters. We can handle the
8745        # drive letters (cygwin fileutils understands them), so leave them,
8746        # especially as we might pass files found there to a mingw objdump,
8747        # which wouldn't understand a cygwinified path. Ahh.
8748        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8749      else
8750        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8751      fi
8752      ;;
8753    pw32*)
8754      # pw32 DLLs use 'pw' prefix rather than 'lib'
8755      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756      ;;
8757    esac
8758    ;;
8759
8760  *)
8761    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8762    ;;
8763  esac
8764  dynamic_linker='Win32 ld.exe'
8765  # FIXME: first we should search . and the directory the executable is in
8766  shlibpath_var=PATH
8767  ;;
8768
8769darwin* | rhapsody*)
8770  dynamic_linker="$host_os dyld"
8771  version_type=darwin
8772  need_lib_prefix=no
8773  need_version=no
8774  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8775  soname_spec='${libname}${release}${major}$shared_ext'
8776  shlibpath_overrides_runpath=yes
8777  shlibpath_var=DYLD_LIBRARY_PATH
8778  shrext_cmds='.dylib'
8779  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8780  if test "$GCC" = yes; then
8781    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"`
8782  else
8783    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8784  fi
8785  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8786  ;;
8787
8788dgux*)
8789  version_type=linux
8790  need_lib_prefix=no
8791  need_version=no
8792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8793  soname_spec='${libname}${release}${shared_ext}$major'
8794  shlibpath_var=LD_LIBRARY_PATH
8795  ;;
8796
8797freebsd1.*)
8798  dynamic_linker=no
8799  ;;
8800
8801kfreebsd*-gnu)
8802  version_type=linux
8803  need_lib_prefix=no
8804  need_version=no
8805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8806  soname_spec='${libname}${release}${shared_ext}$major'
8807  shlibpath_var=LD_LIBRARY_PATH
8808  shlibpath_overrides_runpath=no
8809  hardcode_into_libs=yes
8810  dynamic_linker='GNU ld.so'
8811  ;;
8812
8813freebsd* | dragonfly*)
8814  # DragonFly does not have aout.  When/if they implement a new
8815  # versioning mechanism, adjust this.
8816  if test -x /usr/bin/objformat; then
8817    objformat=`/usr/bin/objformat`
8818  else
8819    case $host_os in
8820    freebsd[123].*) objformat=aout ;;
8821    *) objformat=elf ;;
8822    esac
8823  fi
8824  version_type=freebsd-$objformat
8825  case $version_type in
8826    freebsd-elf*)
8827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8828      need_version=no
8829      need_lib_prefix=no
8830      ;;
8831    freebsd-*)
8832      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8833      need_version=yes
8834      ;;
8835  esac
8836  shlibpath_var=LD_LIBRARY_PATH
8837  case $host_os in
8838  freebsd2.*)
8839    shlibpath_overrides_runpath=yes
8840    ;;
8841  freebsd3.[01]* | freebsdelf3.[01]*)
8842    shlibpath_overrides_runpath=yes
8843    hardcode_into_libs=yes
8844    ;;
8845  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847    shlibpath_overrides_runpath=no
8848    hardcode_into_libs=yes
8849    ;;
8850  freebsd*) # from 4.6 on
8851    shlibpath_overrides_runpath=yes
8852    hardcode_into_libs=yes
8853    ;;
8854  esac
8855  ;;
8856
8857gnu*)
8858  version_type=linux
8859  need_lib_prefix=no
8860  need_version=no
8861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862  soname_spec='${libname}${release}${shared_ext}$major'
8863  shlibpath_var=LD_LIBRARY_PATH
8864  hardcode_into_libs=yes
8865  ;;
8866
8867hpux9* | hpux10* | hpux11*)
8868  # Give a soname corresponding to the major version so that dld.sl refuses to
8869  # link against other versions.
8870  version_type=sunos
8871  need_lib_prefix=no
8872  need_version=no
8873  case $host_cpu in
8874  ia64*)
8875    shrext_cmds='.so'
8876    hardcode_into_libs=yes
8877    dynamic_linker="$host_os dld.so"
8878    shlibpath_var=LD_LIBRARY_PATH
8879    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881    soname_spec='${libname}${release}${shared_ext}$major'
8882    if test "X$HPUX_IA64_MODE" = X32; then
8883      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884    else
8885      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886    fi
8887    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8888    ;;
8889   hppa*64*)
8890     shrext_cmds='.sl'
8891     hardcode_into_libs=yes
8892     dynamic_linker="$host_os dld.sl"
8893     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896     soname_spec='${libname}${release}${shared_ext}$major'
8897     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899     ;;
8900   *)
8901    shrext_cmds='.sl'
8902    dynamic_linker="$host_os dld.sl"
8903    shlibpath_var=SHLIB_PATH
8904    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906    soname_spec='${libname}${release}${shared_ext}$major'
8907    ;;
8908  esac
8909  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910  postinstall_cmds='chmod 555 $lib'
8911  ;;
8912
8913interix3*)
8914  version_type=linux
8915  need_lib_prefix=no
8916  need_version=no
8917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918  soname_spec='${libname}${release}${shared_ext}$major'
8919  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920  shlibpath_var=LD_LIBRARY_PATH
8921  shlibpath_overrides_runpath=no
8922  hardcode_into_libs=yes
8923  ;;
8924
8925irix5* | irix6* | nonstopux*)
8926  case $host_os in
8927    nonstopux*) version_type=nonstopux ;;
8928    *)
8929	if test "$lt_cv_prog_gnu_ld" = yes; then
8930		version_type=linux
8931	else
8932		version_type=irix
8933	fi ;;
8934  esac
8935  need_lib_prefix=no
8936  need_version=no
8937  soname_spec='${libname}${release}${shared_ext}$major'
8938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939  case $host_os in
8940  irix5* | nonstopux*)
8941    libsuff= shlibsuff=
8942    ;;
8943  *)
8944    case $LD in # libtool.m4 will add one of these switches to LD
8945    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946      libsuff= shlibsuff= libmagic=32-bit;;
8947    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948      libsuff=32 shlibsuff=N32 libmagic=N32;;
8949    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951    *) libsuff= shlibsuff= libmagic=never-match;;
8952    esac
8953    ;;
8954  esac
8955  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956  shlibpath_overrides_runpath=no
8957  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959  hardcode_into_libs=yes
8960  ;;
8961
8962# No shared lib support for Linux oldld, aout, or coff.
8963linux*oldld* | linux*aout* | linux*coff*)
8964  dynamic_linker=no
8965  ;;
8966
8967# This must be Linux ELF.
8968linux*)
8969  version_type=linux
8970  need_lib_prefix=no
8971  need_version=no
8972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973  soname_spec='${libname}${release}${shared_ext}$major'
8974  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975  shlibpath_var=LD_LIBRARY_PATH
8976  shlibpath_overrides_runpath=no
8977  # This implies no fast_install, which is unacceptable.
8978  # Some rework will be needed to allow for fast_install
8979  # before this can be enabled.
8980  hardcode_into_libs=yes
8981
8982  # Append ld.so.conf contents to the search path
8983  if test -f /etc/ld.so.conf; then
8984    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' ' '`
8985    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8986  fi
8987
8988  # We used to test for /lib/ld.so.1 and disable shared libraries on
8989  # powerpc, because MkLinux only supported shared libraries with the
8990  # GNU dynamic linker.  Since this was broken with cross compilers,
8991  # most powerpc-linux boxes support dynamic linking these days and
8992  # people can always --disable-shared, the test was removed, and we
8993  # assume the GNU/Linux dynamic linker is in use.
8994  dynamic_linker='GNU/Linux ld.so'
8995  ;;
8996
8997knetbsd*-gnu)
8998  version_type=linux
8999  need_lib_prefix=no
9000  need_version=no
9001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002  soname_spec='${libname}${release}${shared_ext}$major'
9003  shlibpath_var=LD_LIBRARY_PATH
9004  shlibpath_overrides_runpath=no
9005  hardcode_into_libs=yes
9006  dynamic_linker='GNU ld.so'
9007  ;;
9008
9009netbsd*)
9010  version_type=sunos
9011  need_lib_prefix=no
9012  need_version=no
9013  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016    dynamic_linker='NetBSD (a.out) ld.so'
9017  else
9018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019    soname_spec='${libname}${release}${shared_ext}$major'
9020    dynamic_linker='NetBSD ld.elf_so'
9021  fi
9022  shlibpath_var=LD_LIBRARY_PATH
9023  shlibpath_overrides_runpath=yes
9024  hardcode_into_libs=yes
9025  ;;
9026
9027newsos6)
9028  version_type=linux
9029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030  shlibpath_var=LD_LIBRARY_PATH
9031  shlibpath_overrides_runpath=yes
9032  ;;
9033
9034nto-qnx*)
9035  version_type=linux
9036  need_lib_prefix=no
9037  need_version=no
9038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039  soname_spec='${libname}${release}${shared_ext}$major'
9040  shlibpath_var=LD_LIBRARY_PATH
9041  shlibpath_overrides_runpath=yes
9042  ;;
9043
9044openbsd*)
9045  version_type=sunos
9046  sys_lib_dlsearch_path_spec="/usr/lib"
9047  need_lib_prefix=no
9048  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049  case $host_os in
9050    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051    *)                         need_version=no  ;;
9052  esac
9053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055  shlibpath_var=LD_LIBRARY_PATH
9056  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057    case $host_os in
9058      openbsd2.[89] | openbsd2.[89].*)
9059	shlibpath_overrides_runpath=no
9060	;;
9061      *)
9062	shlibpath_overrides_runpath=yes
9063	;;
9064      esac
9065  else
9066    shlibpath_overrides_runpath=yes
9067  fi
9068  ;;
9069
9070os2*)
9071  libname_spec='$name'
9072  shrext_cmds=".dll"
9073  need_lib_prefix=no
9074  library_names_spec='$libname${shared_ext} $libname.a'
9075  dynamic_linker='OS/2 ld.exe'
9076  shlibpath_var=LIBPATH
9077  ;;
9078
9079osf3* | osf4* | osf5*)
9080  version_type=osf
9081  need_lib_prefix=no
9082  need_version=no
9083  soname_spec='${libname}${release}${shared_ext}$major'
9084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085  shlibpath_var=LD_LIBRARY_PATH
9086  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088  ;;
9089
9090solaris*)
9091  version_type=linux
9092  need_lib_prefix=no
9093  need_version=no
9094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095  soname_spec='${libname}${release}${shared_ext}$major'
9096  shlibpath_var=LD_LIBRARY_PATH
9097  shlibpath_overrides_runpath=yes
9098  hardcode_into_libs=yes
9099  # ldd complains unless libraries are executable
9100  postinstall_cmds='chmod +x $lib'
9101  ;;
9102
9103sunos4*)
9104  version_type=sunos
9105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107  shlibpath_var=LD_LIBRARY_PATH
9108  shlibpath_overrides_runpath=yes
9109  if test "$with_gnu_ld" = yes; then
9110    need_lib_prefix=no
9111  fi
9112  need_version=yes
9113  ;;
9114
9115sysv4 | sysv4.3*)
9116  version_type=linux
9117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118  soname_spec='${libname}${release}${shared_ext}$major'
9119  shlibpath_var=LD_LIBRARY_PATH
9120  case $host_vendor in
9121    sni)
9122      shlibpath_overrides_runpath=no
9123      need_lib_prefix=no
9124      export_dynamic_flag_spec='${wl}-Blargedynsym'
9125      runpath_var=LD_RUN_PATH
9126      ;;
9127    siemens)
9128      need_lib_prefix=no
9129      ;;
9130    motorola)
9131      need_lib_prefix=no
9132      need_version=no
9133      shlibpath_overrides_runpath=no
9134      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135      ;;
9136  esac
9137  ;;
9138
9139sysv4*MP*)
9140  if test -d /usr/nec ;then
9141    version_type=linux
9142    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143    soname_spec='$libname${shared_ext}.$major'
9144    shlibpath_var=LD_LIBRARY_PATH
9145  fi
9146  ;;
9147
9148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149  version_type=freebsd-elf
9150  need_lib_prefix=no
9151  need_version=no
9152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153  soname_spec='${libname}${release}${shared_ext}$major'
9154  shlibpath_var=LD_LIBRARY_PATH
9155  hardcode_into_libs=yes
9156  if test "$with_gnu_ld" = yes; then
9157    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158    shlibpath_overrides_runpath=no
9159  else
9160    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161    shlibpath_overrides_runpath=yes
9162    case $host_os in
9163      sco3.2v5*)
9164        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9165	;;
9166    esac
9167  fi
9168  sys_lib_dlsearch_path_spec='/usr/lib'
9169  ;;
9170
9171uts4*)
9172  version_type=linux
9173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174  soname_spec='${libname}${release}${shared_ext}$major'
9175  shlibpath_var=LD_LIBRARY_PATH
9176  ;;
9177
9178*)
9179  dynamic_linker=no
9180  ;;
9181esac
9182{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183echo "${ECHO_T}$dynamic_linker" >&6; }
9184test "$dynamic_linker" = no && can_build_shared=no
9185
9186variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187if test "$GCC" = yes; then
9188  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9189fi
9190
9191
9192{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9193echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9194if test "${libltdl_cv_shlibext+set}" = set; then
9195  echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197
9198module=yes
9199eval libltdl_cv_shlibext=$shrext_cmds
9200
9201fi
9202{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9203echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9204if test -n "$libltdl_cv_shlibext"; then
9205
9206cat >>confdefs.h <<_ACEOF
9207#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9208_ACEOF
9209
9210fi
9211
9212
9213{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9214echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9215if test "${libltdl_cv_shlibpath_var+set}" = set; then
9216  echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218  libltdl_cv_shlibpath_var="$shlibpath_var"
9219fi
9220{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9221echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9222if test -n "$libltdl_cv_shlibpath_var"; then
9223
9224cat >>confdefs.h <<_ACEOF
9225#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9226_ACEOF
9227
9228fi
9229
9230
9231{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9232echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9233if test "${libltdl_cv_sys_search_path+set}" = set; then
9234  echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9237fi
9238{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9239echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9240if test -n "$libltdl_cv_sys_search_path"; then
9241  sys_search_path=
9242  for dir in $libltdl_cv_sys_search_path; do
9243    if test -z "$sys_search_path"; then
9244      sys_search_path="$dir"
9245    else
9246      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9247    fi
9248  done
9249
9250cat >>confdefs.h <<_ACEOF
9251#define LTDL_SYSSEARCHPATH "$sys_search_path"
9252_ACEOF
9253
9254fi
9255
9256{ echo "$as_me:$LINENO: checking for objdir" >&5
9257echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9258if test "${libltdl_cv_objdir+set}" = set; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  libltdl_cv_objdir="$objdir"
9262  if test -n "$objdir"; then
9263    :
9264  else
9265    rm -f .libs 2>/dev/null
9266    mkdir .libs 2>/dev/null
9267    if test -d .libs; then
9268      libltdl_cv_objdir=.libs
9269    else
9270      # MS-DOS does not allow filenames that begin with a dot.
9271      libltdl_cv_objdir=_libs
9272    fi
9273  rmdir .libs 2>/dev/null
9274  fi
9275
9276fi
9277{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9278echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9279
9280cat >>confdefs.h <<_ACEOF
9281#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9282_ACEOF
9283
9284
9285
9286
9287
9288
9289# Check for command to grab the raw symbol name followed by C symbol from nm.
9290{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9291echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9292if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9293  echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295
9296# These are sane defaults that work on at least a few old systems.
9297# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9298
9299# Character class describing NM global symbol codes.
9300symcode='[BCDEGRST]'
9301
9302# Regexp to match symbols that can be accessed directly from C.
9303sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9304
9305# Transform an extracted symbol line into a proper C declaration
9306lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9307
9308# Transform an extracted symbol line into symbol name and symbol address
9309lt_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'"
9310
9311# Define system-specific variables.
9312case $host_os in
9313aix*)
9314  symcode='[BCDT]'
9315  ;;
9316cygwin* | mingw* | pw32*)
9317  symcode='[ABCDGISTW]'
9318  ;;
9319hpux*) # Its linker distinguishes data from code symbols
9320  if test "$host_cpu" = ia64; then
9321    symcode='[ABCDEGRST]'
9322  fi
9323  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324  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'"
9325  ;;
9326linux*)
9327  if test "$host_cpu" = ia64; then
9328    symcode='[ABCDGIRSTW]'
9329    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330    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'"
9331  fi
9332  ;;
9333irix* | nonstopux*)
9334  symcode='[BCDEGRST]'
9335  ;;
9336osf*)
9337  symcode='[BCDEGQRST]'
9338  ;;
9339solaris*)
9340  symcode='[BDRT]'
9341  ;;
9342sco3.2v5*)
9343  symcode='[DT]'
9344  ;;
9345sysv4.2uw2*)
9346  symcode='[DT]'
9347  ;;
9348sysv5* | sco5v6* | unixware* | OpenUNIX*)
9349  symcode='[ABDT]'
9350  ;;
9351sysv4)
9352  symcode='[DFNSTU]'
9353  ;;
9354esac
9355
9356# Handle CRLF in mingw tool chain
9357opt_cr=
9358case $build_os in
9359mingw*)
9360  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9361  ;;
9362esac
9363
9364# If we're using GNU nm, then use its standard symbol codes.
9365case `$NM -V 2>&1` in
9366*GNU* | *'with BFD'*)
9367  symcode='[ABCDGIRSTW]' ;;
9368esac
9369
9370# Try without a prefix undercore, then with it.
9371for ac_symprfx in "" "_"; do
9372
9373  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9374  symxfrm="\\1 $ac_symprfx\\2 \\2"
9375
9376  # Write the raw and C identifiers.
9377  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9378
9379  # Check to see that the pipe works correctly.
9380  pipe_works=no
9381
9382  rm -f conftest*
9383  cat > conftest.$ac_ext <<EOF
9384#ifdef __cplusplus
9385extern "C" {
9386#endif
9387char nm_test_var;
9388void nm_test_func(){}
9389#ifdef __cplusplus
9390}
9391#endif
9392int main(){nm_test_var='a';nm_test_func();return(0);}
9393EOF
9394
9395  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396  (eval $ac_compile) 2>&5
9397  ac_status=$?
9398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399  (exit $ac_status); }; then
9400    # Now try to grab the symbols.
9401    nlist=conftest.nm
9402    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9403  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9404  ac_status=$?
9405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406  (exit $ac_status); } && test -s "$nlist"; then
9407      # Try sorting and uniquifying the output.
9408      if sort "$nlist" | uniq > "$nlist"T; then
9409	mv -f "$nlist"T "$nlist"
9410      else
9411	rm -f "$nlist"T
9412      fi
9413
9414      # Make sure that we snagged all the symbols we need.
9415      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9416	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9417	  cat <<EOF > conftest.$ac_ext
9418#ifdef __cplusplus
9419extern "C" {
9420#endif
9421
9422EOF
9423	  # Now generate the symbol file.
9424	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9425
9426	  cat <<EOF >> conftest.$ac_ext
9427#if defined (__STDC__) && __STDC__
9428# define lt_ptr_t void *
9429#else
9430# define lt_ptr_t char *
9431# define const
9432#endif
9433
9434/* The mapping between symbol names and symbols. */
9435const struct {
9436  const char *name;
9437  lt_ptr_t address;
9438}
9439lt_preloaded_symbols[] =
9440{
9441EOF
9442	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9443	  cat <<\EOF >> conftest.$ac_ext
9444  {0, (lt_ptr_t) 0}
9445};
9446
9447#ifdef __cplusplus
9448}
9449#endif
9450EOF
9451	  # Now try linking the two files.
9452	  mv conftest.$ac_objext conftstm.$ac_objext
9453	  lt_save_LIBS="$LIBS"
9454	  lt_save_CFLAGS="$CFLAGS"
9455	  LIBS="conftstm.$ac_objext"
9456	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9457	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458  (eval $ac_link) 2>&5
9459  ac_status=$?
9460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9462	    pipe_works=yes
9463	  fi
9464	  LIBS="$lt_save_LIBS"
9465	  CFLAGS="$lt_save_CFLAGS"
9466	else
9467	  echo "cannot find nm_test_func in $nlist" >&5
9468	fi
9469      else
9470	echo "cannot find nm_test_var in $nlist" >&5
9471      fi
9472    else
9473      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9474    fi
9475  else
9476    echo "$progname: failed program was:" >&5
9477    cat conftest.$ac_ext >&5
9478  fi
9479  rm -f conftest* conftst*
9480
9481  # Do not use the global_symbol_pipe unless it works.
9482  if test "$pipe_works" = yes; then
9483    break
9484  else
9485    lt_cv_sys_global_symbol_pipe=
9486  fi
9487done
9488
9489fi
9490
9491if test -z "$lt_cv_sys_global_symbol_pipe"; then
9492  lt_cv_sys_global_symbol_to_cdecl=
9493fi
9494if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9495  { echo "$as_me:$LINENO: result: failed" >&5
9496echo "${ECHO_T}failed" >&6; }
9497else
9498  { echo "$as_me:$LINENO: result: ok" >&5
9499echo "${ECHO_T}ok" >&6; }
9500fi
9501
9502
9503{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9504echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9505if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9506  echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9509    libltdl_cv_preloaded_symbols=yes
9510  else
9511    libltdl_cv_preloaded_symbols=no
9512  fi
9513
9514fi
9515{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9516echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9517if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9518
9519cat >>confdefs.h <<\_ACEOF
9520#define HAVE_PRELOADED_SYMBOLS 1
9521_ACEOF
9522
9523fi
9524
9525LIBADD_DL=
9526
9527ac_ext=c
9528ac_cpp='$CPP $CPPFLAGS'
9529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532
9533
9534{ echo "$as_me:$LINENO: checking for shl_load" >&5
9535echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536if test "${ac_cv_func_shl_load+set}" = set; then
9537  echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539  cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h.  */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h.  */
9545/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9547#define shl_load innocuous_shl_load
9548
9549/* System header to define __stub macros and hopefully few prototypes,
9550    which can conflict with char shl_load (); below.
9551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552    <limits.h> exists even on freestanding compilers.  */
9553
9554#ifdef __STDC__
9555# include <limits.h>
9556#else
9557# include <assert.h>
9558#endif
9559
9560#undef shl_load
9561
9562/* Override any GCC internal prototype to avoid an error.
9563   Use char because int might match the return type of a GCC
9564   builtin and then its argument prototype would still apply.  */
9565#ifdef __cplusplus
9566extern "C"
9567#endif
9568char shl_load ();
9569/* The GNU C library defines this for functions which it implements
9570    to always fail with ENOSYS.  Some functions are actually named
9571    something starting with __ and the normal name is an alias.  */
9572#if defined __stub_shl_load || defined __stub___shl_load
9573choke me
9574#endif
9575
9576int
9577main ()
9578{
9579return shl_load ();
9580  ;
9581  return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext conftest$ac_exeext
9585if { (ac_try="$ac_link"
9586case "(($ac_try" in
9587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588  *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591  (eval "$ac_link") 2>conftest.er1
9592  ac_status=$?
9593  grep -v '^ *+' conftest.er1 >conftest.err
9594  rm -f conftest.er1
9595  cat conftest.err >&5
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); } &&
9598	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599  { (case "(($ac_try" in
9600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601  *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604  (eval "$ac_try") 2>&5
9605  ac_status=$?
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); }; } &&
9608	 { ac_try='test -s conftest$ac_exeext'
9609  { (case "(($ac_try" in
9610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611  *) ac_try_echo=$ac_try;;
9612esac
9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614  (eval "$ac_try") 2>&5
9615  ac_status=$?
9616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617  (exit $ac_status); }; }; then
9618  ac_cv_func_shl_load=yes
9619else
9620  echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623	ac_cv_func_shl_load=no
9624fi
9625
9626rm -f core conftest.err conftest.$ac_objext \
9627      conftest$ac_exeext conftest.$ac_ext
9628fi
9629{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631if test $ac_cv_func_shl_load = yes; then
9632
9633cat >>confdefs.h <<\_ACEOF
9634#define HAVE_SHL_LOAD 1
9635_ACEOF
9636
9637else
9638  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9640if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641  echo $ECHO_N "(cached) $ECHO_C" >&6
9642else
9643  ac_check_lib_save_LIBS=$LIBS
9644LIBS="-ldld  $LIBS"
9645cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h.  */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h.  */
9651
9652/* Override any GCC internal prototype to avoid an error.
9653   Use char because int might match the return type of a GCC
9654   builtin and then its argument prototype would still apply.  */
9655#ifdef __cplusplus
9656extern "C"
9657#endif
9658char shl_load ();
9659int
9660main ()
9661{
9662return shl_load ();
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671  *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674  (eval "$ac_link") 2>conftest.er1
9675  ac_status=$?
9676  grep -v '^ *+' conftest.er1 >conftest.err
9677  rm -f conftest.er1
9678  cat conftest.err >&5
9679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680  (exit $ac_status); } &&
9681	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682  { (case "(($ac_try" in
9683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684  *) ac_try_echo=$ac_try;;
9685esac
9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687  (eval "$ac_try") 2>&5
9688  ac_status=$?
9689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690  (exit $ac_status); }; } &&
9691	 { ac_try='test -s conftest$ac_exeext'
9692  { (case "(($ac_try" in
9693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694  *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697  (eval "$ac_try") 2>&5
9698  ac_status=$?
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); }; }; then
9701  ac_cv_lib_dld_shl_load=yes
9702else
9703  echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
9705
9706	ac_cv_lib_dld_shl_load=no
9707fi
9708
9709rm -f core conftest.err conftest.$ac_objext \
9710      conftest$ac_exeext conftest.$ac_ext
9711LIBS=$ac_check_lib_save_LIBS
9712fi
9713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9714echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9715if test $ac_cv_lib_dld_shl_load = yes; then
9716
9717cat >>confdefs.h <<\_ACEOF
9718#define HAVE_SHL_LOAD 1
9719_ACEOF
9720
9721	LIBADD_DL="$LIBADD_DL -ldld"
9722else
9723  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9726  echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728  ac_check_lib_save_LIBS=$LIBS
9729LIBS="-ldl  $LIBS"
9730cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h.  */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h.  */
9736
9737/* Override any GCC internal prototype to avoid an error.
9738   Use char because int might match the return type of a GCC
9739   builtin and then its argument prototype would still apply.  */
9740#ifdef __cplusplus
9741extern "C"
9742#endif
9743char dlopen ();
9744int
9745main ()
9746{
9747return dlopen ();
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (ac_try="$ac_link"
9754case "(($ac_try" in
9755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756  *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759  (eval "$ac_link") 2>conftest.er1
9760  ac_status=$?
9761  grep -v '^ *+' conftest.er1 >conftest.err
9762  rm -f conftest.er1
9763  cat conftest.err >&5
9764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765  (exit $ac_status); } &&
9766	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767  { (case "(($ac_try" in
9768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769  *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772  (eval "$ac_try") 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); }; } &&
9776	 { ac_try='test -s conftest$ac_exeext'
9777  { (case "(($ac_try" in
9778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779  *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782  (eval "$ac_try") 2>&5
9783  ac_status=$?
9784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785  (exit $ac_status); }; }; then
9786  ac_cv_lib_dl_dlopen=yes
9787else
9788  echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791	ac_cv_lib_dl_dlopen=no
9792fi
9793
9794rm -f core conftest.err conftest.$ac_objext \
9795      conftest$ac_exeext conftest.$ac_ext
9796LIBS=$ac_check_lib_save_LIBS
9797fi
9798{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9799echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9800if test $ac_cv_lib_dl_dlopen = yes; then
9801
9802cat >>confdefs.h <<\_ACEOF
9803#define HAVE_LIBDL 1
9804_ACEOF
9805
9806	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9807else
9808  cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h.  */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h.  */
9814#if HAVE_DLFCN_H
9815#  include <dlfcn.h>
9816#endif
9817
9818int
9819main ()
9820{
9821dlopen(0, 0);
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext conftest$ac_exeext
9827if { (ac_try="$ac_link"
9828case "(($ac_try" in
9829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830  *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833  (eval "$ac_link") 2>conftest.er1
9834  ac_status=$?
9835  grep -v '^ *+' conftest.er1 >conftest.err
9836  rm -f conftest.er1
9837  cat conftest.err >&5
9838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839  (exit $ac_status); } &&
9840	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841  { (case "(($ac_try" in
9842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843  *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846  (eval "$ac_try") 2>&5
9847  ac_status=$?
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); }; } &&
9850	 { ac_try='test -s conftest$ac_exeext'
9851  { (case "(($ac_try" in
9852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853  *) ac_try_echo=$ac_try;;
9854esac
9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856  (eval "$ac_try") 2>&5
9857  ac_status=$?
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); }; }; then
9860
9861cat >>confdefs.h <<\_ACEOF
9862#define HAVE_LIBDL 1
9863_ACEOF
9864 libltdl_cv_func_dlopen="yes"
9865else
9866  echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9871if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872  echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874  ac_check_lib_save_LIBS=$LIBS
9875LIBS="-lsvld  $LIBS"
9876cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h.  */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
9881/* end confdefs.h.  */
9882
9883/* Override any GCC internal prototype to avoid an error.
9884   Use char because int might match the return type of a GCC
9885   builtin and then its argument prototype would still apply.  */
9886#ifdef __cplusplus
9887extern "C"
9888#endif
9889char dlopen ();
9890int
9891main ()
9892{
9893return dlopen ();
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (ac_try="$ac_link"
9900case "(($ac_try" in
9901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902  *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905  (eval "$ac_link") 2>conftest.er1
9906  ac_status=$?
9907  grep -v '^ *+' conftest.er1 >conftest.err
9908  rm -f conftest.er1
9909  cat conftest.err >&5
9910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911  (exit $ac_status); } &&
9912	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913  { (case "(($ac_try" in
9914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915  *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918  (eval "$ac_try") 2>&5
9919  ac_status=$?
9920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921  (exit $ac_status); }; } &&
9922	 { ac_try='test -s conftest$ac_exeext'
9923  { (case "(($ac_try" in
9924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925  *) ac_try_echo=$ac_try;;
9926esac
9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928  (eval "$ac_try") 2>&5
9929  ac_status=$?
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); }; }; then
9932  ac_cv_lib_svld_dlopen=yes
9933else
9934  echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937	ac_cv_lib_svld_dlopen=no
9938fi
9939
9940rm -f core conftest.err conftest.$ac_objext \
9941      conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9945echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9946if test $ac_cv_lib_svld_dlopen = yes; then
9947
9948cat >>confdefs.h <<\_ACEOF
9949#define HAVE_LIBDL 1
9950_ACEOF
9951
9952	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9953else
9954  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9955echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9956if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9957  echo $ECHO_N "(cached) $ECHO_C" >&6
9958else
9959  ac_check_lib_save_LIBS=$LIBS
9960LIBS="-ldld  $LIBS"
9961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967
9968/* Override any GCC internal prototype to avoid an error.
9969   Use char because int might match the return type of a GCC
9970   builtin and then its argument prototype would still apply.  */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974char dld_link ();
9975int
9976main ()
9977{
9978return dld_link ();
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983rm -f conftest.$ac_objext conftest$ac_exeext
9984if { (ac_try="$ac_link"
9985case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990  (eval "$ac_link") 2>conftest.er1
9991  ac_status=$?
9992  grep -v '^ *+' conftest.er1 >conftest.err
9993  rm -f conftest.er1
9994  cat conftest.err >&5
9995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996  (exit $ac_status); } &&
9997	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998  { (case "(($ac_try" in
9999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000  *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003  (eval "$ac_try") 2>&5
10004  ac_status=$?
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); }; } &&
10007	 { ac_try='test -s conftest$ac_exeext'
10008  { (case "(($ac_try" in
10009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010  *) ac_try_echo=$ac_try;;
10011esac
10012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013  (eval "$ac_try") 2>&5
10014  ac_status=$?
10015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016  (exit $ac_status); }; }; then
10017  ac_cv_lib_dld_dld_link=yes
10018else
10019  echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022	ac_cv_lib_dld_dld_link=no
10023fi
10024
10025rm -f core conftest.err conftest.$ac_objext \
10026      conftest$ac_exeext conftest.$ac_ext
10027LIBS=$ac_check_lib_save_LIBS
10028fi
10029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031if test $ac_cv_lib_dld_dld_link = yes; then
10032
10033cat >>confdefs.h <<\_ACEOF
10034#define HAVE_DLD 1
10035_ACEOF
10036
10037	 	LIBADD_DL="$LIBADD_DL -ldld"
10038else
10039  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10040echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10041if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10042  echo $ECHO_N "(cached) $ECHO_C" >&6
10043else
10044  cat >conftest.$ac_ext <<_ACEOF
10045/* confdefs.h.  */
10046_ACEOF
10047cat confdefs.h >>conftest.$ac_ext
10048cat >>conftest.$ac_ext <<_ACEOF
10049/* end confdefs.h.  */
10050/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10051   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10052#define _dyld_func_lookup innocuous__dyld_func_lookup
10053
10054/* System header to define __stub macros and hopefully few prototypes,
10055    which can conflict with char _dyld_func_lookup (); below.
10056    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057    <limits.h> exists even on freestanding compilers.  */
10058
10059#ifdef __STDC__
10060# include <limits.h>
10061#else
10062# include <assert.h>
10063#endif
10064
10065#undef _dyld_func_lookup
10066
10067/* Override any GCC internal prototype to avoid an error.
10068   Use char because int might match the return type of a GCC
10069   builtin and then its argument prototype would still apply.  */
10070#ifdef __cplusplus
10071extern "C"
10072#endif
10073char _dyld_func_lookup ();
10074/* The GNU C library defines this for functions which it implements
10075    to always fail with ENOSYS.  Some functions are actually named
10076    something starting with __ and the normal name is an alias.  */
10077#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10078choke me
10079#endif
10080
10081int
10082main ()
10083{
10084return _dyld_func_lookup ();
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext conftest$ac_exeext
10090if { (ac_try="$ac_link"
10091case "(($ac_try" in
10092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093  *) ac_try_echo=$ac_try;;
10094esac
10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096  (eval "$ac_link") 2>conftest.er1
10097  ac_status=$?
10098  grep -v '^ *+' conftest.er1 >conftest.err
10099  rm -f conftest.er1
10100  cat conftest.err >&5
10101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102  (exit $ac_status); } &&
10103	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104  { (case "(($ac_try" in
10105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106  *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109  (eval "$ac_try") 2>&5
10110  ac_status=$?
10111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); }; } &&
10113	 { ac_try='test -s conftest$ac_exeext'
10114  { (case "(($ac_try" in
10115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116  *) ac_try_echo=$ac_try;;
10117esac
10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119  (eval "$ac_try") 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; }; then
10123  ac_cv_func__dyld_func_lookup=yes
10124else
10125  echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128	ac_cv_func__dyld_func_lookup=no
10129fi
10130
10131rm -f core conftest.err conftest.$ac_objext \
10132      conftest$ac_exeext conftest.$ac_ext
10133fi
10134{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10135echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10136if test $ac_cv_func__dyld_func_lookup = yes; then
10137
10138cat >>confdefs.h <<\_ACEOF
10139#define HAVE_DYLD 1
10140_ACEOF
10141
10142fi
10143
10144
10145fi
10146
10147
10148fi
10149
10150
10151fi
10152
10153rm -f core conftest.err conftest.$ac_objext \
10154      conftest$ac_exeext conftest.$ac_ext
10155
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164
10165if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10166then
10167  lt_save_LIBS="$LIBS"
10168  LIBS="$LIBS $LIBADD_DL"
10169
10170for ac_func in dlerror
10171do
10172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10176  echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178  cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h.  */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h.  */
10184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10186#define $ac_func innocuous_$ac_func
10187
10188/* System header to define __stub macros and hopefully few prototypes,
10189    which can conflict with char $ac_func (); below.
10190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191    <limits.h> exists even on freestanding compilers.  */
10192
10193#ifdef __STDC__
10194# include <limits.h>
10195#else
10196# include <assert.h>
10197#endif
10198
10199#undef $ac_func
10200
10201/* Override any GCC internal prototype to avoid an error.
10202   Use char because int might match the return type of a GCC
10203   builtin and then its argument prototype would still apply.  */
10204#ifdef __cplusplus
10205extern "C"
10206#endif
10207char $ac_func ();
10208/* The GNU C library defines this for functions which it implements
10209    to always fail with ENOSYS.  Some functions are actually named
10210    something starting with __ and the normal name is an alias.  */
10211#if defined __stub_$ac_func || defined __stub___$ac_func
10212choke me
10213#endif
10214
10215int
10216main ()
10217{
10218return $ac_func ();
10219  ;
10220  return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext conftest$ac_exeext
10224if { (ac_try="$ac_link"
10225case "(($ac_try" in
10226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227  *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230  (eval "$ac_link") 2>conftest.er1
10231  ac_status=$?
10232  grep -v '^ *+' conftest.er1 >conftest.err
10233  rm -f conftest.er1
10234  cat conftest.err >&5
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); } &&
10237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238  { (case "(($ac_try" in
10239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240  *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243  (eval "$ac_try") 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; } &&
10247	 { ac_try='test -s conftest$ac_exeext'
10248  { (case "(($ac_try" in
10249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250  *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253  (eval "$ac_try") 2>&5
10254  ac_status=$?
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); }; }; then
10257  eval "$as_ac_var=yes"
10258else
10259  echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262	eval "$as_ac_var=no"
10263fi
10264
10265rm -f core conftest.err conftest.$ac_objext \
10266      conftest$ac_exeext conftest.$ac_ext
10267fi
10268ac_res=`eval echo '${'$as_ac_var'}'`
10269	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10270echo "${ECHO_T}$ac_res" >&6; }
10271if test `eval echo '${'$as_ac_var'}'` = yes; then
10272  cat >>confdefs.h <<_ACEOF
10273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274_ACEOF
10275
10276fi
10277done
10278
10279  LIBS="$lt_save_LIBS"
10280fi
10281ac_ext=c
10282ac_cpp='$CPP $CPPFLAGS'
10283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286
10287
10288
10289{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10290echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10291if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10292  echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294  ac_cv_sys_symbol_underscore=no
10295  cat > conftest.$ac_ext <<EOF
10296void nm_test_func(){}
10297int main(){nm_test_func;return 0;}
10298EOF
10299  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300  (eval $ac_compile) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; then
10304    # Now try to grab the symbols.
10305    ac_nlist=conftest.nm
10306    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10307  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10308  ac_status=$?
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } && test -s "$ac_nlist"; then
10311      # See whether the symbols have a leading underscore.
10312      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10313        ac_cv_sys_symbol_underscore=yes
10314      else
10315        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10316	  :
10317        else
10318	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10319        fi
10320      fi
10321    else
10322      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10323    fi
10324  else
10325    echo "configure: failed program was:" >&5
10326    cat conftest.c >&5
10327  fi
10328  rm -rf conftest*
10329
10330fi
10331{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10332echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10333
10334
10335if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10336  if test x"$libltdl_cv_func_dlopen" = xyes ||
10337     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10338	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10339echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10340if test "${libltdl_cv_need_uscore+set}" = set; then
10341  echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343  libltdl_cv_need_uscore=unknown
10344          save_LIBS="$LIBS"
10345          LIBS="$LIBS $LIBADD_DL"
10346	  if test "$cross_compiling" = yes; then :
10347  libltdl_cv_need_uscore=cross
10348else
10349  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350  lt_status=$lt_dlunknown
10351  cat > conftest.$ac_ext <<EOF
10352#line 10352 "configure"
10353#include "confdefs.h"
10354
10355#if HAVE_DLFCN_H
10356#include <dlfcn.h>
10357#endif
10358
10359#include <stdio.h>
10360
10361#ifdef RTLD_GLOBAL
10362#  define LT_DLGLOBAL		RTLD_GLOBAL
10363#else
10364#  ifdef DL_GLOBAL
10365#    define LT_DLGLOBAL		DL_GLOBAL
10366#  else
10367#    define LT_DLGLOBAL		0
10368#  endif
10369#endif
10370
10371/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372   find out it does not work in some platform. */
10373#ifndef LT_DLLAZY_OR_NOW
10374#  ifdef RTLD_LAZY
10375#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10376#  else
10377#    ifdef DL_LAZY
10378#      define LT_DLLAZY_OR_NOW		DL_LAZY
10379#    else
10380#      ifdef RTLD_NOW
10381#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10382#      else
10383#        ifdef DL_NOW
10384#          define LT_DLLAZY_OR_NOW	DL_NOW
10385#        else
10386#          define LT_DLLAZY_OR_NOW	0
10387#        endif
10388#      endif
10389#    endif
10390#  endif
10391#endif
10392
10393#ifdef __cplusplus
10394extern "C" void exit (int);
10395#endif
10396
10397void fnord() { int i=42;}
10398int main ()
10399{
10400  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401  int status = $lt_dlunknown;
10402
10403  if (self)
10404    {
10405      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10406      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407      /* dlclose (self); */
10408    }
10409  else
10410    puts (dlerror ());
10411
10412    exit (status);
10413}
10414EOF
10415  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416  (eval $ac_link) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420    (./conftest; exit; ) >&5 2>/dev/null
10421    lt_status=$?
10422    case x$lt_status in
10423      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10424      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10425      x$lt_dlunknown|x*)  ;;
10426    esac
10427  else :
10428    # compilation failed
10429
10430  fi
10431fi
10432rm -fr conftest*
10433
10434	  LIBS="$save_LIBS"
10435
10436fi
10437{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10438echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10439  fi
10440fi
10441
10442if test x"$libltdl_cv_need_uscore" = xyes; then
10443
10444cat >>confdefs.h <<\_ACEOF
10445#define NEED_USCORE 1
10446_ACEOF
10447
10448fi
10449
10450
10451{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10452echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10453if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10454  echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456  # PORTME does your system automatically load deplibs for dlopen?
10457  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10458  # For now, we just catch OSes we know something about -- in the
10459  # future, we'll try test this programmatically.
10460  libltdl_cv_sys_dlopen_deplibs=unknown
10461  case "$host_os" in
10462  aix3*|aix4.1.*|aix4.2.*)
10463    # Unknown whether this is true for these versions of AIX, but
10464    # we want this `case' here to explicitly catch those versions.
10465    libltdl_cv_sys_dlopen_deplibs=unknown
10466    ;;
10467  aix[45]*)
10468    libltdl_cv_sys_dlopen_deplibs=yes
10469    ;;
10470  darwin*)
10471    # Assuming the user has installed a libdl from somewhere, this is true
10472    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10473    libltdl_cv_sys_dlopen_deplibs=yes
10474    ;;
10475  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10476    # GNU and its variants, using gnu ld.so (Glibc)
10477    libltdl_cv_sys_dlopen_deplibs=yes
10478    ;;
10479  hpux10*|hpux11*)
10480    libltdl_cv_sys_dlopen_deplibs=yes
10481    ;;
10482  interix*)
10483    libltdl_cv_sys_dlopen_deplibs=yes
10484    ;;
10485  irix[12345]*|irix6.[01]*)
10486    # Catch all versions of IRIX before 6.2, and indicate that we don't
10487    # know how it worked for any of those versions.
10488    libltdl_cv_sys_dlopen_deplibs=unknown
10489    ;;
10490  irix*)
10491    # The case above catches anything before 6.2, and it's known that
10492    # at 6.2 and later dlopen does load deplibs.
10493    libltdl_cv_sys_dlopen_deplibs=yes
10494    ;;
10495  netbsd*)
10496    libltdl_cv_sys_dlopen_deplibs=yes
10497    ;;
10498  openbsd*)
10499    libltdl_cv_sys_dlopen_deplibs=yes
10500    ;;
10501  osf[1234]*)
10502    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10503    # it did *not* use an RPATH in a shared library to find objects the
10504    # library depends on, so we explicitly say `no'.
10505    libltdl_cv_sys_dlopen_deplibs=no
10506    ;;
10507  osf5.0|osf5.0a|osf5.1)
10508    # dlopen *does* load deplibs and with the right loader patch applied
10509    # it even uses RPATH in a shared library to search for shared objects
10510    # that the library depends on, but there's no easy way to know if that
10511    # patch is installed.  Since this is the case, all we can really
10512    # say is unknown -- it depends on the patch being installed.  If
10513    # it is, this changes to `yes'.  Without it, it would be `no'.
10514    libltdl_cv_sys_dlopen_deplibs=unknown
10515    ;;
10516  osf*)
10517    # the two cases above should catch all versions of osf <= 5.1.  Read
10518    # the comments above for what we know about them.
10519    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10520    # is used to find them so we can finally say `yes'.
10521    libltdl_cv_sys_dlopen_deplibs=yes
10522    ;;
10523  solaris*)
10524    libltdl_cv_sys_dlopen_deplibs=yes
10525    ;;
10526  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10527    libltdl_cv_sys_dlopen_deplibs=yes
10528    ;;
10529  esac
10530
10531fi
10532{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10533echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10534if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10535
10536cat >>confdefs.h <<\_ACEOF
10537#define LTDL_DLOPEN_DEPLIBS 1
10538_ACEOF
10539
10540fi
10541
10542
10543for ac_header in argz.h
10544do
10545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550  echo $ECHO_N "(cached) $ECHO_C" >&6
10551fi
10552ac_res=`eval echo '${'$as_ac_Header'}'`
10553	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10554echo "${ECHO_T}$ac_res" >&6; }
10555else
10556  # Is the header compilable?
10557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h.  */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h.  */
10565$ac_includes_default
10566#include <$ac_header>
10567_ACEOF
10568rm -f conftest.$ac_objext
10569if { (ac_try="$ac_compile"
10570case "(($ac_try" in
10571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572  *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575  (eval "$ac_compile") 2>conftest.er1
10576  ac_status=$?
10577  grep -v '^ *+' conftest.er1 >conftest.err
10578  rm -f conftest.er1
10579  cat conftest.err >&5
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); } &&
10582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10583  { (case "(($ac_try" in
10584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585  *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588  (eval "$ac_try") 2>&5
10589  ac_status=$?
10590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); }; } &&
10592	 { ac_try='test -s conftest.$ac_objext'
10593  { (case "(($ac_try" in
10594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595  *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598  (eval "$ac_try") 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; }; then
10602  ac_header_compiler=yes
10603else
10604  echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607	ac_header_compiler=no
10608fi
10609
10610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612echo "${ECHO_T}$ac_header_compiler" >&6; }
10613
10614# Is the header present?
10615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10617cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h.  */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h.  */
10623#include <$ac_header>
10624_ACEOF
10625if { (ac_try="$ac_cpp conftest.$ac_ext"
10626case "(($ac_try" in
10627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628  *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632  ac_status=$?
10633  grep -v '^ *+' conftest.er1 >conftest.err
10634  rm -f conftest.er1
10635  cat conftest.err >&5
10636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637  (exit $ac_status); } >/dev/null; then
10638  if test -s conftest.err; then
10639    ac_cpp_err=$ac_c_preproc_warn_flag
10640    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10641  else
10642    ac_cpp_err=
10643  fi
10644else
10645  ac_cpp_err=yes
10646fi
10647if test -z "$ac_cpp_err"; then
10648  ac_header_preproc=yes
10649else
10650  echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653  ac_header_preproc=no
10654fi
10655
10656rm -f conftest.err conftest.$ac_ext
10657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658echo "${ECHO_T}$ac_header_preproc" >&6; }
10659
10660# So?  What about this header?
10661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662  yes:no: )
10663    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10667    ac_header_preproc=yes
10668    ;;
10669  no:yes:* )
10670    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10672    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10673echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10674    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10676    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10677echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10680    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10682    ( cat <<\_ASBOX
10683## ------------------------------------ ##
10684## Report this to http://llvm.org/bugs/ ##
10685## ------------------------------------ ##
10686_ASBOX
10687     ) | sed "s/^/$as_me: WARNING:     /" >&2
10688    ;;
10689esac
10690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695  eval "$as_ac_Header=\$ac_header_preproc"
10696fi
10697ac_res=`eval echo '${'$as_ac_Header'}'`
10698	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10699echo "${ECHO_T}$ac_res" >&6; }
10700
10701fi
10702if test `eval echo '${'$as_ac_Header'}'` = yes; then
10703  cat >>confdefs.h <<_ACEOF
10704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10705_ACEOF
10706
10707fi
10708
10709done
10710
10711
10712{ echo "$as_me:$LINENO: checking for error_t" >&5
10713echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10714if test "${ac_cv_type_error_t+set}" = set; then
10715  echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717  cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h.  */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h.  */
10723#if HAVE_ARGZ_H
10724#  include <argz.h>
10725#endif
10726
10727typedef error_t ac__type_new_;
10728int
10729main ()
10730{
10731if ((ac__type_new_ *) 0)
10732  return 0;
10733if (sizeof (ac__type_new_))
10734  return 0;
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739rm -f conftest.$ac_objext
10740if { (ac_try="$ac_compile"
10741case "(($ac_try" in
10742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743  *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746  (eval "$ac_compile") 2>conftest.er1
10747  ac_status=$?
10748  grep -v '^ *+' conftest.er1 >conftest.err
10749  rm -f conftest.er1
10750  cat conftest.err >&5
10751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752  (exit $ac_status); } &&
10753	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754  { (case "(($ac_try" in
10755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756  *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759  (eval "$ac_try") 2>&5
10760  ac_status=$?
10761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762  (exit $ac_status); }; } &&
10763	 { ac_try='test -s conftest.$ac_objext'
10764  { (case "(($ac_try" in
10765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766  *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769  (eval "$ac_try") 2>&5
10770  ac_status=$?
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); }; }; then
10773  ac_cv_type_error_t=yes
10774else
10775  echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778	ac_cv_type_error_t=no
10779fi
10780
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782fi
10783{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10784echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10785if test $ac_cv_type_error_t = yes; then
10786
10787cat >>confdefs.h <<_ACEOF
10788#define HAVE_ERROR_T 1
10789_ACEOF
10790
10791
10792else
10793
10794cat >>confdefs.h <<\_ACEOF
10795#define error_t int
10796_ACEOF
10797
10798fi
10799
10800
10801
10802
10803
10804
10805
10806for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10807do
10808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10812  echo $ECHO_N "(cached) $ECHO_C" >&6
10813else
10814  cat >conftest.$ac_ext <<_ACEOF
10815/* confdefs.h.  */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h.  */
10820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10822#define $ac_func innocuous_$ac_func
10823
10824/* System header to define __stub macros and hopefully few prototypes,
10825    which can conflict with char $ac_func (); below.
10826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10827    <limits.h> exists even on freestanding compilers.  */
10828
10829#ifdef __STDC__
10830# include <limits.h>
10831#else
10832# include <assert.h>
10833#endif
10834
10835#undef $ac_func
10836
10837/* Override any GCC internal prototype to avoid an error.
10838   Use char because int might match the return type of a GCC
10839   builtin and then its argument prototype would still apply.  */
10840#ifdef __cplusplus
10841extern "C"
10842#endif
10843char $ac_func ();
10844/* The GNU C library defines this for functions which it implements
10845    to always fail with ENOSYS.  Some functions are actually named
10846    something starting with __ and the normal name is an alias.  */
10847#if defined __stub_$ac_func || defined __stub___$ac_func
10848choke me
10849#endif
10850
10851int
10852main ()
10853{
10854return $ac_func ();
10855  ;
10856  return 0;
10857}
10858_ACEOF
10859rm -f conftest.$ac_objext conftest$ac_exeext
10860if { (ac_try="$ac_link"
10861case "(($ac_try" in
10862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863  *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866  (eval "$ac_link") 2>conftest.er1
10867  ac_status=$?
10868  grep -v '^ *+' conftest.er1 >conftest.err
10869  rm -f conftest.er1
10870  cat conftest.err >&5
10871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872  (exit $ac_status); } &&
10873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874  { (case "(($ac_try" in
10875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876  *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879  (eval "$ac_try") 2>&5
10880  ac_status=$?
10881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); }; } &&
10883	 { ac_try='test -s conftest$ac_exeext'
10884  { (case "(($ac_try" in
10885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886  *) ac_try_echo=$ac_try;;
10887esac
10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889  (eval "$ac_try") 2>&5
10890  ac_status=$?
10891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892  (exit $ac_status); }; }; then
10893  eval "$as_ac_var=yes"
10894else
10895  echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898	eval "$as_ac_var=no"
10899fi
10900
10901rm -f core conftest.err conftest.$ac_objext \
10902      conftest$ac_exeext conftest.$ac_ext
10903fi
10904ac_res=`eval echo '${'$as_ac_var'}'`
10905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10906echo "${ECHO_T}$ac_res" >&6; }
10907if test `eval echo '${'$as_ac_var'}'` = yes; then
10908  cat >>confdefs.h <<_ACEOF
10909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10910_ACEOF
10911
10912fi
10913done
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10943		  stdio.h unistd.h
10944do
10945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950  echo $ECHO_N "(cached) $ECHO_C" >&6
10951fi
10952ac_res=`eval echo '${'$as_ac_Header'}'`
10953	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10954echo "${ECHO_T}$ac_res" >&6; }
10955else
10956  # Is the header compilable?
10957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10959cat >conftest.$ac_ext <<_ACEOF
10960/* confdefs.h.  */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h.  */
10965$ac_includes_default
10966#include <$ac_header>
10967_ACEOF
10968rm -f conftest.$ac_objext
10969if { (ac_try="$ac_compile"
10970case "(($ac_try" in
10971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972  *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975  (eval "$ac_compile") 2>conftest.er1
10976  ac_status=$?
10977  grep -v '^ *+' conftest.er1 >conftest.err
10978  rm -f conftest.er1
10979  cat conftest.err >&5
10980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981  (exit $ac_status); } &&
10982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983  { (case "(($ac_try" in
10984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985  *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988  (eval "$ac_try") 2>&5
10989  ac_status=$?
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); }; } &&
10992	 { ac_try='test -s conftest.$ac_objext'
10993  { (case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_try") 2>&5
10999  ac_status=$?
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); }; }; then
11002  ac_header_compiler=yes
11003else
11004  echo "$as_me: failed program was:" >&5
11005sed 's/^/| /' conftest.$ac_ext >&5
11006
11007	ac_header_compiler=no
11008fi
11009
11010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012echo "${ECHO_T}$ac_header_compiler" >&6; }
11013
11014# Is the header present?
11015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11017cat >conftest.$ac_ext <<_ACEOF
11018/* confdefs.h.  */
11019_ACEOF
11020cat confdefs.h >>conftest.$ac_ext
11021cat >>conftest.$ac_ext <<_ACEOF
11022/* end confdefs.h.  */
11023#include <$ac_header>
11024_ACEOF
11025if { (ac_try="$ac_cpp conftest.$ac_ext"
11026case "(($ac_try" in
11027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028  *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11032  ac_status=$?
11033  grep -v '^ *+' conftest.er1 >conftest.err
11034  rm -f conftest.er1
11035  cat conftest.err >&5
11036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037  (exit $ac_status); } >/dev/null; then
11038  if test -s conftest.err; then
11039    ac_cpp_err=$ac_c_preproc_warn_flag
11040    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041  else
11042    ac_cpp_err=
11043  fi
11044else
11045  ac_cpp_err=yes
11046fi
11047if test -z "$ac_cpp_err"; then
11048  ac_header_preproc=yes
11049else
11050  echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053  ac_header_preproc=no
11054fi
11055
11056rm -f conftest.err conftest.$ac_ext
11057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058echo "${ECHO_T}$ac_header_preproc" >&6; }
11059
11060# So?  What about this header?
11061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11062  yes:no: )
11063    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067    ac_header_preproc=yes
11068    ;;
11069  no:yes:* )
11070    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11073echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11074    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11077echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11078    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11082    ( cat <<\_ASBOX
11083## ------------------------------------ ##
11084## Report this to http://llvm.org/bugs/ ##
11085## ------------------------------------ ##
11086_ASBOX
11087     ) | sed "s/^/$as_me: WARNING:     /" >&2
11088    ;;
11089esac
11090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093  echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095  eval "$as_ac_Header=\$ac_header_preproc"
11096fi
11097ac_res=`eval echo '${'$as_ac_Header'}'`
11098	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11099echo "${ECHO_T}$ac_res" >&6; }
11100
11101fi
11102if test `eval echo '${'$as_ac_Header'}'` = yes; then
11103  cat >>confdefs.h <<_ACEOF
11104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11105_ACEOF
11106
11107fi
11108
11109done
11110
11111
11112
11113
11114
11115for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11116do
11117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122  echo $ECHO_N "(cached) $ECHO_C" >&6
11123fi
11124ac_res=`eval echo '${'$as_ac_Header'}'`
11125	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11126echo "${ECHO_T}$ac_res" >&6; }
11127else
11128  # Is the header compilable?
11129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11131cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h.  */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h.  */
11137$ac_includes_default
11138#include <$ac_header>
11139_ACEOF
11140rm -f conftest.$ac_objext
11141if { (ac_try="$ac_compile"
11142case "(($ac_try" in
11143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144  *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147  (eval "$ac_compile") 2>conftest.er1
11148  ac_status=$?
11149  grep -v '^ *+' conftest.er1 >conftest.err
11150  rm -f conftest.er1
11151  cat conftest.err >&5
11152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153  (exit $ac_status); } &&
11154	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155  { (case "(($ac_try" in
11156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157  *) ac_try_echo=$ac_try;;
11158esac
11159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160  (eval "$ac_try") 2>&5
11161  ac_status=$?
11162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163  (exit $ac_status); }; } &&
11164	 { ac_try='test -s conftest.$ac_objext'
11165  { (case "(($ac_try" in
11166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167  *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170  (eval "$ac_try") 2>&5
11171  ac_status=$?
11172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173  (exit $ac_status); }; }; then
11174  ac_header_compiler=yes
11175else
11176  echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
11179	ac_header_compiler=no
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184echo "${ECHO_T}$ac_header_compiler" >&6; }
11185
11186# Is the header present?
11187{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11189cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h.  */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h.  */
11195#include <$ac_header>
11196_ACEOF
11197if { (ac_try="$ac_cpp conftest.$ac_ext"
11198case "(($ac_try" in
11199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200  *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204  ac_status=$?
11205  grep -v '^ *+' conftest.er1 >conftest.err
11206  rm -f conftest.er1
11207  cat conftest.err >&5
11208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209  (exit $ac_status); } >/dev/null; then
11210  if test -s conftest.err; then
11211    ac_cpp_err=$ac_c_preproc_warn_flag
11212    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11213  else
11214    ac_cpp_err=
11215  fi
11216else
11217  ac_cpp_err=yes
11218fi
11219if test -z "$ac_cpp_err"; then
11220  ac_header_preproc=yes
11221else
11222  echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225  ac_header_preproc=no
11226fi
11227
11228rm -f conftest.err conftest.$ac_ext
11229{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11230echo "${ECHO_T}$ac_header_preproc" >&6; }
11231
11232# So?  What about this header?
11233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11234  yes:no: )
11235    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11237    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11239    ac_header_preproc=yes
11240    ;;
11241  no:yes:* )
11242    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11245echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11246    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11248    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11249echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11250    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11254    ( cat <<\_ASBOX
11255## ------------------------------------ ##
11256## Report this to http://llvm.org/bugs/ ##
11257## ------------------------------------ ##
11258_ASBOX
11259     ) | sed "s/^/$as_me: WARNING:     /" >&2
11260    ;;
11261esac
11262{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265  echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267  eval "$as_ac_Header=\$ac_header_preproc"
11268fi
11269ac_res=`eval echo '${'$as_ac_Header'}'`
11270	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11271echo "${ECHO_T}$ac_res" >&6; }
11272
11273fi
11274if test `eval echo '${'$as_ac_Header'}'` = yes; then
11275  cat >>confdefs.h <<_ACEOF
11276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277_ACEOF
11278
11279fi
11280
11281done
11282
11283
11284
11285for ac_header in string.h strings.h
11286do
11287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11292  echo $ECHO_N "(cached) $ECHO_C" >&6
11293fi
11294ac_res=`eval echo '${'$as_ac_Header'}'`
11295	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11296echo "${ECHO_T}$ac_res" >&6; }
11297else
11298  # Is the header compilable?
11299{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h.  */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h.  */
11307$ac_includes_default
11308#include <$ac_header>
11309_ACEOF
11310rm -f conftest.$ac_objext
11311if { (ac_try="$ac_compile"
11312case "(($ac_try" in
11313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314  *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317  (eval "$ac_compile") 2>conftest.er1
11318  ac_status=$?
11319  grep -v '^ *+' conftest.er1 >conftest.err
11320  rm -f conftest.er1
11321  cat conftest.err >&5
11322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323  (exit $ac_status); } &&
11324	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325  { (case "(($ac_try" in
11326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327  *) ac_try_echo=$ac_try;;
11328esac
11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330  (eval "$ac_try") 2>&5
11331  ac_status=$?
11332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333  (exit $ac_status); }; } &&
11334	 { ac_try='test -s conftest.$ac_objext'
11335  { (case "(($ac_try" in
11336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337  *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340  (eval "$ac_try") 2>&5
11341  ac_status=$?
11342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343  (exit $ac_status); }; }; then
11344  ac_header_compiler=yes
11345else
11346  echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349	ac_header_compiler=no
11350fi
11351
11352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354echo "${ECHO_T}$ac_header_compiler" >&6; }
11355
11356# Is the header present?
11357{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11359cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h.  */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h.  */
11365#include <$ac_header>
11366_ACEOF
11367if { (ac_try="$ac_cpp conftest.$ac_ext"
11368case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
11374  ac_status=$?
11375  grep -v '^ *+' conftest.er1 >conftest.err
11376  rm -f conftest.er1
11377  cat conftest.err >&5
11378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379  (exit $ac_status); } >/dev/null; then
11380  if test -s conftest.err; then
11381    ac_cpp_err=$ac_c_preproc_warn_flag
11382    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11383  else
11384    ac_cpp_err=
11385  fi
11386else
11387  ac_cpp_err=yes
11388fi
11389if test -z "$ac_cpp_err"; then
11390  ac_header_preproc=yes
11391else
11392  echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395  ac_header_preproc=no
11396fi
11397
11398rm -f conftest.err conftest.$ac_ext
11399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11400echo "${ECHO_T}$ac_header_preproc" >&6; }
11401
11402# So?  What about this header?
11403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11404  yes:no: )
11405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11409    ac_header_preproc=yes
11410    ;;
11411  no:yes:* )
11412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424    ( cat <<\_ASBOX
11425## ------------------------------------ ##
11426## Report this to http://llvm.org/bugs/ ##
11427## ------------------------------------ ##
11428_ASBOX
11429     ) | sed "s/^/$as_me: WARNING:     /" >&2
11430    ;;
11431esac
11432{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435  echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437  eval "$as_ac_Header=\$ac_header_preproc"
11438fi
11439ac_res=`eval echo '${'$as_ac_Header'}'`
11440	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11441echo "${ECHO_T}$ac_res" >&6; }
11442
11443fi
11444if test `eval echo '${'$as_ac_Header'}'` = yes; then
11445  cat >>confdefs.h <<_ACEOF
11446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11447_ACEOF
11448 break
11449fi
11450
11451done
11452
11453
11454
11455
11456for ac_func in strchr index
11457do
11458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462  echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464  cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h.  */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h.  */
11470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11472#define $ac_func innocuous_$ac_func
11473
11474/* System header to define __stub macros and hopefully few prototypes,
11475    which can conflict with char $ac_func (); below.
11476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477    <limits.h> exists even on freestanding compilers.  */
11478
11479#ifdef __STDC__
11480# include <limits.h>
11481#else
11482# include <assert.h>
11483#endif
11484
11485#undef $ac_func
11486
11487/* Override any GCC internal prototype to avoid an error.
11488   Use char because int might match the return type of a GCC
11489   builtin and then its argument prototype would still apply.  */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char $ac_func ();
11494/* The GNU C library defines this for functions which it implements
11495    to always fail with ENOSYS.  Some functions are actually named
11496    something starting with __ and the normal name is an alias.  */
11497#if defined __stub_$ac_func || defined __stub___$ac_func
11498choke me
11499#endif
11500
11501int
11502main ()
11503{
11504return $ac_func ();
11505  ;
11506  return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext conftest$ac_exeext
11510if { (ac_try="$ac_link"
11511case "(($ac_try" in
11512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513  *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516  (eval "$ac_link") 2>conftest.er1
11517  ac_status=$?
11518  grep -v '^ *+' conftest.er1 >conftest.err
11519  rm -f conftest.er1
11520  cat conftest.err >&5
11521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522  (exit $ac_status); } &&
11523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524  { (case "(($ac_try" in
11525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526  *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529  (eval "$ac_try") 2>&5
11530  ac_status=$?
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); }; } &&
11533	 { ac_try='test -s conftest$ac_exeext'
11534  { (case "(($ac_try" in
11535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536  *) ac_try_echo=$ac_try;;
11537esac
11538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539  (eval "$ac_try") 2>&5
11540  ac_status=$?
11541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542  (exit $ac_status); }; }; then
11543  eval "$as_ac_var=yes"
11544else
11545  echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548	eval "$as_ac_var=no"
11549fi
11550
11551rm -f core conftest.err conftest.$ac_objext \
11552      conftest$ac_exeext conftest.$ac_ext
11553fi
11554ac_res=`eval echo '${'$as_ac_var'}'`
11555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
11557if test `eval echo '${'$as_ac_var'}'` = yes; then
11558  cat >>confdefs.h <<_ACEOF
11559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11560_ACEOF
11561 break
11562fi
11563done
11564
11565
11566
11567for ac_func in strrchr rindex
11568do
11569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573  echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575  cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h.  */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h.  */
11581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11583#define $ac_func innocuous_$ac_func
11584
11585/* System header to define __stub macros and hopefully few prototypes,
11586    which can conflict with char $ac_func (); below.
11587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588    <limits.h> exists even on freestanding compilers.  */
11589
11590#ifdef __STDC__
11591# include <limits.h>
11592#else
11593# include <assert.h>
11594#endif
11595
11596#undef $ac_func
11597
11598/* Override any GCC internal prototype to avoid an error.
11599   Use char because int might match the return type of a GCC
11600   builtin and then its argument prototype would still apply.  */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char $ac_func ();
11605/* The GNU C library defines this for functions which it implements
11606    to always fail with ENOSYS.  Some functions are actually named
11607    something starting with __ and the normal name is an alias.  */
11608#if defined __stub_$ac_func || defined __stub___$ac_func
11609choke me
11610#endif
11611
11612int
11613main ()
11614{
11615return $ac_func ();
11616  ;
11617  return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
11622case "(($ac_try" in
11623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624  *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627  (eval "$ac_link") 2>conftest.er1
11628  ac_status=$?
11629  grep -v '^ *+' conftest.er1 >conftest.err
11630  rm -f conftest.er1
11631  cat conftest.err >&5
11632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633  (exit $ac_status); } &&
11634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635  { (case "(($ac_try" in
11636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637  *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640  (eval "$ac_try") 2>&5
11641  ac_status=$?
11642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643  (exit $ac_status); }; } &&
11644	 { ac_try='test -s conftest$ac_exeext'
11645  { (case "(($ac_try" in
11646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647  *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650  (eval "$ac_try") 2>&5
11651  ac_status=$?
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); }; }; then
11654  eval "$as_ac_var=yes"
11655else
11656  echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659	eval "$as_ac_var=no"
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext \
11663      conftest$ac_exeext conftest.$ac_ext
11664fi
11665ac_res=`eval echo '${'$as_ac_var'}'`
11666	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
11668if test `eval echo '${'$as_ac_var'}'` = yes; then
11669  cat >>confdefs.h <<_ACEOF
11670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671_ACEOF
11672 break
11673fi
11674done
11675
11676
11677
11678for ac_func in memcpy bcopy
11679do
11680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684  echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686  cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h.  */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h.  */
11692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11694#define $ac_func innocuous_$ac_func
11695
11696/* System header to define __stub macros and hopefully few prototypes,
11697    which can conflict with char $ac_func (); below.
11698    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699    <limits.h> exists even on freestanding compilers.  */
11700
11701#ifdef __STDC__
11702# include <limits.h>
11703#else
11704# include <assert.h>
11705#endif
11706
11707#undef $ac_func
11708
11709/* Override any GCC internal prototype to avoid an error.
11710   Use char because int might match the return type of a GCC
11711   builtin and then its argument prototype would still apply.  */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char $ac_func ();
11716/* The GNU C library defines this for functions which it implements
11717    to always fail with ENOSYS.  Some functions are actually named
11718    something starting with __ and the normal name is an alias.  */
11719#if defined __stub_$ac_func || defined __stub___$ac_func
11720choke me
11721#endif
11722
11723int
11724main ()
11725{
11726return $ac_func ();
11727  ;
11728  return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (ac_try="$ac_link"
11733case "(($ac_try" in
11734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735  *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738  (eval "$ac_link") 2>conftest.er1
11739  ac_status=$?
11740  grep -v '^ *+' conftest.er1 >conftest.err
11741  rm -f conftest.er1
11742  cat conftest.err >&5
11743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744  (exit $ac_status); } &&
11745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746  { (case "(($ac_try" in
11747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748  *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751  (eval "$ac_try") 2>&5
11752  ac_status=$?
11753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754  (exit $ac_status); }; } &&
11755	 { ac_try='test -s conftest$ac_exeext'
11756  { (case "(($ac_try" in
11757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758  *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761  (eval "$ac_try") 2>&5
11762  ac_status=$?
11763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764  (exit $ac_status); }; }; then
11765  eval "$as_ac_var=yes"
11766else
11767  echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770	eval "$as_ac_var=no"
11771fi
11772
11773rm -f core conftest.err conftest.$ac_objext \
11774      conftest$ac_exeext conftest.$ac_ext
11775fi
11776ac_res=`eval echo '${'$as_ac_var'}'`
11777	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11778echo "${ECHO_T}$ac_res" >&6; }
11779if test `eval echo '${'$as_ac_var'}'` = yes; then
11780  cat >>confdefs.h <<_ACEOF
11781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782_ACEOF
11783 break
11784fi
11785done
11786
11787
11788
11789for ac_func in memmove strcmp
11790do
11791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795  echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797  cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h.  */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h.  */
11803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11805#define $ac_func innocuous_$ac_func
11806
11807/* System header to define __stub macros and hopefully few prototypes,
11808    which can conflict with char $ac_func (); below.
11809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810    <limits.h> exists even on freestanding compilers.  */
11811
11812#ifdef __STDC__
11813# include <limits.h>
11814#else
11815# include <assert.h>
11816#endif
11817
11818#undef $ac_func
11819
11820/* Override any GCC internal prototype to avoid an error.
11821   Use char because int might match the return type of a GCC
11822   builtin and then its argument prototype would still apply.  */
11823#ifdef __cplusplus
11824extern "C"
11825#endif
11826char $ac_func ();
11827/* The GNU C library defines this for functions which it implements
11828    to always fail with ENOSYS.  Some functions are actually named
11829    something starting with __ and the normal name is an alias.  */
11830#if defined __stub_$ac_func || defined __stub___$ac_func
11831choke me
11832#endif
11833
11834int
11835main ()
11836{
11837return $ac_func ();
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  eval "$as_ac_var=yes"
11877else
11878  echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881	eval "$as_ac_var=no"
11882fi
11883
11884rm -f core conftest.err conftest.$ac_objext \
11885      conftest$ac_exeext conftest.$ac_ext
11886fi
11887ac_res=`eval echo '${'$as_ac_var'}'`
11888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
11890if test `eval echo '${'$as_ac_var'}'` = yes; then
11891  cat >>confdefs.h <<_ACEOF
11892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893_ACEOF
11894
11895fi
11896done
11897
11898
11899
11900
11901for ac_func in closedir opendir readdir
11902do
11903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907  echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909  cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h.  */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h.  */
11915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11917#define $ac_func innocuous_$ac_func
11918
11919/* System header to define __stub macros and hopefully few prototypes,
11920    which can conflict with char $ac_func (); below.
11921    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922    <limits.h> exists even on freestanding compilers.  */
11923
11924#ifdef __STDC__
11925# include <limits.h>
11926#else
11927# include <assert.h>
11928#endif
11929
11930#undef $ac_func
11931
11932/* Override any GCC internal prototype to avoid an error.
11933   Use char because int might match the return type of a GCC
11934   builtin and then its argument prototype would still apply.  */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char $ac_func ();
11939/* The GNU C library defines this for functions which it implements
11940    to always fail with ENOSYS.  Some functions are actually named
11941    something starting with __ and the normal name is an alias.  */
11942#if defined __stub_$ac_func || defined __stub___$ac_func
11943choke me
11944#endif
11945
11946int
11947main ()
11948{
11949return $ac_func ();
11950  ;
11951  return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext conftest$ac_exeext
11955if { (ac_try="$ac_link"
11956case "(($ac_try" in
11957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958  *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961  (eval "$ac_link") 2>conftest.er1
11962  ac_status=$?
11963  grep -v '^ *+' conftest.er1 >conftest.err
11964  rm -f conftest.er1
11965  cat conftest.err >&5
11966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967  (exit $ac_status); } &&
11968	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969  { (case "(($ac_try" in
11970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971  *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974  (eval "$ac_try") 2>&5
11975  ac_status=$?
11976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977  (exit $ac_status); }; } &&
11978	 { ac_try='test -s conftest$ac_exeext'
11979  { (case "(($ac_try" in
11980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981  *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984  (eval "$ac_try") 2>&5
11985  ac_status=$?
11986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987  (exit $ac_status); }; }; then
11988  eval "$as_ac_var=yes"
11989else
11990  echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993	eval "$as_ac_var=no"
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext \
11997      conftest$ac_exeext conftest.$ac_ext
11998fi
11999ac_res=`eval echo '${'$as_ac_var'}'`
12000	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12001echo "${ECHO_T}$ac_res" >&6; }
12002if test `eval echo '${'$as_ac_var'}'` = yes; then
12003  cat >>confdefs.h <<_ACEOF
12004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005_ACEOF
12006
12007fi
12008done
12009
12010
12011
12012{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12013echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12014
12015ICC=no
12016IXX=no
12017case $CC in
12018  icc*|icpc*)
12019    ICC=yes
12020    IXX=yes
12021    ;;
12022   *)
12023    ;;
12024esac
12025
12026if test "$GCC" != "yes" && test "$ICC" != "yes"
12027then
12028  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12029echo "$as_me: error: gcc|icc required but not found" >&2;}
12030   { (exit 1); exit 1; }; }
12031fi
12032
12033if test "$GXX" != "yes" && test "$IXX" != "yes"
12034then
12035  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12036echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12037   { (exit 1); exit 1; }; }
12038fi
12039
12040if test "$GCC" = "yes"
12041then
12042  cat >conftest.$ac_ext <<_ACEOF
12043#if !defined(__GNUC__) || __GNUC__ < 3
12044#error Unsupported GCC version
12045#endif
12046
12047_ACEOF
12048rm -f conftest.$ac_objext
12049if { (ac_try="$ac_compile"
12050case "(($ac_try" in
12051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052  *) ac_try_echo=$ac_try;;
12053esac
12054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055  (eval "$ac_compile") 2>conftest.er1
12056  ac_status=$?
12057  grep -v '^ *+' conftest.er1 >conftest.err
12058  rm -f conftest.er1
12059  cat conftest.err >&5
12060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061  (exit $ac_status); } &&
12062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063  { (case "(($ac_try" in
12064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065  *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068  (eval "$ac_try") 2>&5
12069  ac_status=$?
12070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071  (exit $ac_status); }; } &&
12072	 { ac_try='test -s conftest.$ac_objext'
12073  { (case "(($ac_try" in
12074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075  *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078  (eval "$ac_try") 2>&5
12079  ac_status=$?
12080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081  (exit $ac_status); }; }; then
12082  :
12083else
12084  echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12088echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12089   { (exit 1); exit 1; }; }
12090fi
12091
12092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093fi
12094
12095if test -z "$llvm_cv_gnu_make_command"
12096then
12097  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12098echo "$as_me: error: GNU Make required but not found" >&2;}
12099   { (exit 1); exit 1; }; }
12100fi
12101
12102{ echo "$as_me:$LINENO: result: ok" >&5
12103echo "${ECHO_T}ok" >&6; }
12104
12105{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12106echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12107NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12108
12109NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12110
12111COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12112
12113{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12114echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12115
12116
12117
12118{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12119echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12120if test "${ac_cv_lib_m_sin+set}" = set; then
12121  echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
12123  ac_check_lib_save_LIBS=$LIBS
12124LIBS="-lm  $LIBS"
12125cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h.  */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h.  */
12131
12132/* Override any GCC internal prototype to avoid an error.
12133   Use char because int might match the return type of a GCC
12134   builtin and then its argument prototype would still apply.  */
12135#ifdef __cplusplus
12136extern "C"
12137#endif
12138char sin ();
12139int
12140main ()
12141{
12142return sin ();
12143  ;
12144  return 0;
12145}
12146_ACEOF
12147rm -f conftest.$ac_objext conftest$ac_exeext
12148if { (ac_try="$ac_link"
12149case "(($ac_try" in
12150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151  *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154  (eval "$ac_link") 2>conftest.er1
12155  ac_status=$?
12156  grep -v '^ *+' conftest.er1 >conftest.err
12157  rm -f conftest.er1
12158  cat conftest.err >&5
12159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160  (exit $ac_status); } &&
12161	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12162  { (case "(($ac_try" in
12163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164  *) ac_try_echo=$ac_try;;
12165esac
12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167  (eval "$ac_try") 2>&5
12168  ac_status=$?
12169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170  (exit $ac_status); }; } &&
12171	 { ac_try='test -s conftest$ac_exeext'
12172  { (case "(($ac_try" in
12173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174  *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177  (eval "$ac_try") 2>&5
12178  ac_status=$?
12179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180  (exit $ac_status); }; }; then
12181  ac_cv_lib_m_sin=yes
12182else
12183  echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186	ac_cv_lib_m_sin=no
12187fi
12188
12189rm -f core conftest.err conftest.$ac_objext \
12190      conftest$ac_exeext conftest.$ac_ext
12191LIBS=$ac_check_lib_save_LIBS
12192fi
12193{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12194echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12195if test $ac_cv_lib_m_sin = yes; then
12196  cat >>confdefs.h <<_ACEOF
12197#define HAVE_LIBM 1
12198_ACEOF
12199
12200  LIBS="-lm $LIBS"
12201
12202fi
12203
12204if test "$llvm_cv_os_type" = "MingW" ; then
12205
12206{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12207echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12208if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12209  echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211  ac_check_lib_save_LIBS=$LIBS
12212LIBS="-limagehlp  $LIBS"
12213cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h.  */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h.  */
12219
12220
12221int
12222main ()
12223{
12224return main ();
12225  ;
12226  return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext conftest$ac_exeext
12230if { (ac_try="$ac_link"
12231case "(($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_link") 2>conftest.er1
12237  ac_status=$?
12238  grep -v '^ *+' conftest.er1 >conftest.err
12239  rm -f conftest.er1
12240  cat conftest.err >&5
12241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242  (exit $ac_status); } &&
12243	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244  { (case "(($ac_try" in
12245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246  *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249  (eval "$ac_try") 2>&5
12250  ac_status=$?
12251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252  (exit $ac_status); }; } &&
12253	 { ac_try='test -s conftest$ac_exeext'
12254  { (case "(($ac_try" in
12255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256  *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259  (eval "$ac_try") 2>&5
12260  ac_status=$?
12261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262  (exit $ac_status); }; }; then
12263  ac_cv_lib_imagehlp_main=yes
12264else
12265  echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268	ac_cv_lib_imagehlp_main=no
12269fi
12270
12271rm -f core conftest.err conftest.$ac_objext \
12272      conftest$ac_exeext conftest.$ac_ext
12273LIBS=$ac_check_lib_save_LIBS
12274fi
12275{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12276echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12277if test $ac_cv_lib_imagehlp_main = yes; then
12278  cat >>confdefs.h <<_ACEOF
12279#define HAVE_LIBIMAGEHLP 1
12280_ACEOF
12281
12282  LIBS="-limagehlp $LIBS"
12283
12284fi
12285
12286
12287{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12288echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12289if test "${ac_cv_lib_psapi_main+set}" = set; then
12290  echo $ECHO_N "(cached) $ECHO_C" >&6
12291else
12292  ac_check_lib_save_LIBS=$LIBS
12293LIBS="-lpsapi  $LIBS"
12294cat >conftest.$ac_ext <<_ACEOF
12295/* confdefs.h.  */
12296_ACEOF
12297cat confdefs.h >>conftest.$ac_ext
12298cat >>conftest.$ac_ext <<_ACEOF
12299/* end confdefs.h.  */
12300
12301
12302int
12303main ()
12304{
12305return main ();
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext conftest$ac_exeext
12311if { (ac_try="$ac_link"
12312case "(($ac_try" in
12313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314  *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317  (eval "$ac_link") 2>conftest.er1
12318  ac_status=$?
12319  grep -v '^ *+' conftest.er1 >conftest.err
12320  rm -f conftest.er1
12321  cat conftest.err >&5
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); } &&
12324	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325  { (case "(($ac_try" in
12326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327  *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330  (eval "$ac_try") 2>&5
12331  ac_status=$?
12332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333  (exit $ac_status); }; } &&
12334	 { ac_try='test -s conftest$ac_exeext'
12335  { (case "(($ac_try" in
12336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337  *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340  (eval "$ac_try") 2>&5
12341  ac_status=$?
12342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343  (exit $ac_status); }; }; then
12344  ac_cv_lib_psapi_main=yes
12345else
12346  echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349	ac_cv_lib_psapi_main=no
12350fi
12351
12352rm -f core conftest.err conftest.$ac_objext \
12353      conftest$ac_exeext conftest.$ac_ext
12354LIBS=$ac_check_lib_save_LIBS
12355fi
12356{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12357echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12358if test $ac_cv_lib_psapi_main = yes; then
12359  cat >>confdefs.h <<_ACEOF
12360#define HAVE_LIBPSAPI 1
12361_ACEOF
12362
12363  LIBS="-lpsapi $LIBS"
12364
12365fi
12366
12367fi
12368
12369{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12370echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12371if test "${ac_cv_search_dlopen+set}" = set; then
12372  echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374  ac_func_search_save_LIBS=$LIBS
12375cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h.  */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h.  */
12381
12382/* Override any GCC internal prototype to avoid an error.
12383   Use char because int might match the return type of a GCC
12384   builtin and then its argument prototype would still apply.  */
12385#ifdef __cplusplus
12386extern "C"
12387#endif
12388char dlopen ();
12389int
12390main ()
12391{
12392return dlopen ();
12393  ;
12394  return 0;
12395}
12396_ACEOF
12397for ac_lib in '' dl; do
12398  if test -z "$ac_lib"; then
12399    ac_res="none required"
12400  else
12401    ac_res=-l$ac_lib
12402    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12403  fi
12404  rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408  *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411  (eval "$ac_link") 2>conftest.er1
12412  ac_status=$?
12413  grep -v '^ *+' conftest.er1 >conftest.err
12414  rm -f conftest.er1
12415  cat conftest.err >&5
12416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417  (exit $ac_status); } &&
12418	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419  { (case "(($ac_try" in
12420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421  *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424  (eval "$ac_try") 2>&5
12425  ac_status=$?
12426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427  (exit $ac_status); }; } &&
12428	 { ac_try='test -s conftest$ac_exeext'
12429  { (case "(($ac_try" in
12430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431  *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434  (eval "$ac_try") 2>&5
12435  ac_status=$?
12436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437  (exit $ac_status); }; }; then
12438  ac_cv_search_dlopen=$ac_res
12439else
12440  echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443
12444fi
12445
12446rm -f core conftest.err conftest.$ac_objext \
12447      conftest$ac_exeext
12448  if test "${ac_cv_search_dlopen+set}" = set; then
12449  break
12450fi
12451done
12452if test "${ac_cv_search_dlopen+set}" = set; then
12453  :
12454else
12455  ac_cv_search_dlopen=no
12456fi
12457rm conftest.$ac_ext
12458LIBS=$ac_func_search_save_LIBS
12459fi
12460{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12461echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12462ac_res=$ac_cv_search_dlopen
12463if test "$ac_res" != no; then
12464  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12465
12466cat >>confdefs.h <<\_ACEOF
12467#define HAVE_DLOPEN 1
12468_ACEOF
12469
12470else
12471  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12472echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12473fi
12474
12475
12476if test "$llvm_cv_enable_libffi" = "yes" ; then
12477  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12478echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12479if test "${ac_cv_search_ffi_call+set}" = set; then
12480  echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482  ac_func_search_save_LIBS=$LIBS
12483cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h.  */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h.  */
12489
12490/* Override any GCC internal prototype to avoid an error.
12491   Use char because int might match the return type of a GCC
12492   builtin and then its argument prototype would still apply.  */
12493#ifdef __cplusplus
12494extern "C"
12495#endif
12496char ffi_call ();
12497int
12498main ()
12499{
12500return ffi_call ();
12501  ;
12502  return 0;
12503}
12504_ACEOF
12505for ac_lib in '' ffi; do
12506  if test -z "$ac_lib"; then
12507    ac_res="none required"
12508  else
12509    ac_res=-l$ac_lib
12510    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12511  fi
12512  rm -f conftest.$ac_objext conftest$ac_exeext
12513if { (ac_try="$ac_link"
12514case "(($ac_try" in
12515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516  *) ac_try_echo=$ac_try;;
12517esac
12518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519  (eval "$ac_link") 2>conftest.er1
12520  ac_status=$?
12521  grep -v '^ *+' conftest.er1 >conftest.err
12522  rm -f conftest.er1
12523  cat conftest.err >&5
12524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525  (exit $ac_status); } &&
12526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527  { (case "(($ac_try" in
12528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529  *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532  (eval "$ac_try") 2>&5
12533  ac_status=$?
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); }; } &&
12536	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12546  ac_cv_search_ffi_call=$ac_res
12547else
12548  echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551
12552fi
12553
12554rm -f core conftest.err conftest.$ac_objext \
12555      conftest$ac_exeext
12556  if test "${ac_cv_search_ffi_call+set}" = set; then
12557  break
12558fi
12559done
12560if test "${ac_cv_search_ffi_call+set}" = set; then
12561  :
12562else
12563  ac_cv_search_ffi_call=no
12564fi
12565rm conftest.$ac_ext
12566LIBS=$ac_func_search_save_LIBS
12567fi
12568{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12569echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12570ac_res=$ac_cv_search_ffi_call
12571if test "$ac_res" != no; then
12572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574cat >>confdefs.h <<\_ACEOF
12575#define HAVE_FFI_CALL 1
12576_ACEOF
12577
12578else
12579  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12580echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12581   { (exit 1); exit 1; }; }
12582fi
12583
12584fi
12585
12586{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12587echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12588if test "${ac_cv_search_mallinfo+set}" = set; then
12589  echo $ECHO_N "(cached) $ECHO_C" >&6
12590else
12591  ac_func_search_save_LIBS=$LIBS
12592cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h.  */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h.  */
12598
12599/* Override any GCC internal prototype to avoid an error.
12600   Use char because int might match the return type of a GCC
12601   builtin and then its argument prototype would still apply.  */
12602#ifdef __cplusplus
12603extern "C"
12604#endif
12605char mallinfo ();
12606int
12607main ()
12608{
12609return mallinfo ();
12610  ;
12611  return 0;
12612}
12613_ACEOF
12614for ac_lib in '' malloc; do
12615  if test -z "$ac_lib"; then
12616    ac_res="none required"
12617  else
12618    ac_res=-l$ac_lib
12619    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12620  fi
12621  rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (ac_try="$ac_link"
12623case "(($ac_try" in
12624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625  *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628  (eval "$ac_link") 2>conftest.er1
12629  ac_status=$?
12630  grep -v '^ *+' conftest.er1 >conftest.err
12631  rm -f conftest.er1
12632  cat conftest.err >&5
12633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634  (exit $ac_status); } &&
12635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636  { (case "(($ac_try" in
12637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638  *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641  (eval "$ac_try") 2>&5
12642  ac_status=$?
12643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644  (exit $ac_status); }; } &&
12645	 { ac_try='test -s conftest$ac_exeext'
12646  { (case "(($ac_try" in
12647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648  *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651  (eval "$ac_try") 2>&5
12652  ac_status=$?
12653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654  (exit $ac_status); }; }; then
12655  ac_cv_search_mallinfo=$ac_res
12656else
12657  echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660
12661fi
12662
12663rm -f core conftest.err conftest.$ac_objext \
12664      conftest$ac_exeext
12665  if test "${ac_cv_search_mallinfo+set}" = set; then
12666  break
12667fi
12668done
12669if test "${ac_cv_search_mallinfo+set}" = set; then
12670  :
12671else
12672  ac_cv_search_mallinfo=no
12673fi
12674rm conftest.$ac_ext
12675LIBS=$ac_func_search_save_LIBS
12676fi
12677{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12678echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12679ac_res=$ac_cv_search_mallinfo
12680if test "$ac_res" != no; then
12681  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682
12683cat >>confdefs.h <<\_ACEOF
12684#define HAVE_MALLINFO 1
12685_ACEOF
12686
12687fi
12688
12689
12690if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12691
12692{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12693echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12694if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12695  echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697  ac_check_lib_save_LIBS=$LIBS
12698LIBS="-lpthread  $LIBS"
12699cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h.  */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h.  */
12705
12706/* Override any GCC internal prototype to avoid an error.
12707   Use char because int might match the return type of a GCC
12708   builtin and then its argument prototype would still apply.  */
12709#ifdef __cplusplus
12710extern "C"
12711#endif
12712char pthread_mutex_init ();
12713int
12714main ()
12715{
12716return pthread_mutex_init ();
12717  ;
12718  return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (ac_try="$ac_link"
12723case "(($ac_try" in
12724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725  *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728  (eval "$ac_link") 2>conftest.er1
12729  ac_status=$?
12730  grep -v '^ *+' conftest.er1 >conftest.err
12731  rm -f conftest.er1
12732  cat conftest.err >&5
12733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); } &&
12735	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736  { (case "(($ac_try" in
12737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738  *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741  (eval "$ac_try") 2>&5
12742  ac_status=$?
12743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744  (exit $ac_status); }; } &&
12745	 { ac_try='test -s conftest$ac_exeext'
12746  { (case "(($ac_try" in
12747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748  *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751  (eval "$ac_try") 2>&5
12752  ac_status=$?
12753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754  (exit $ac_status); }; }; then
12755  ac_cv_lib_pthread_pthread_mutex_init=yes
12756else
12757  echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760	ac_cv_lib_pthread_pthread_mutex_init=no
12761fi
12762
12763rm -f core conftest.err conftest.$ac_objext \
12764      conftest$ac_exeext conftest.$ac_ext
12765LIBS=$ac_check_lib_save_LIBS
12766fi
12767{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12768echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12769if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12770  cat >>confdefs.h <<_ACEOF
12771#define HAVE_LIBPTHREAD 1
12772_ACEOF
12773
12774  LIBS="-lpthread $LIBS"
12775
12776fi
12777
12778  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12779echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12780if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781  echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783  ac_func_search_save_LIBS=$LIBS
12784cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h.  */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h.  */
12790
12791/* Override any GCC internal prototype to avoid an error.
12792   Use char because int might match the return type of a GCC
12793   builtin and then its argument prototype would still apply.  */
12794#ifdef __cplusplus
12795extern "C"
12796#endif
12797char pthread_mutex_lock ();
12798int
12799main ()
12800{
12801return pthread_mutex_lock ();
12802  ;
12803  return 0;
12804}
12805_ACEOF
12806for ac_lib in '' pthread; do
12807  if test -z "$ac_lib"; then
12808    ac_res="none required"
12809  else
12810    ac_res=-l$ac_lib
12811    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12812  fi
12813  rm -f conftest.$ac_objext conftest$ac_exeext
12814if { (ac_try="$ac_link"
12815case "(($ac_try" in
12816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817  *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820  (eval "$ac_link") 2>conftest.er1
12821  ac_status=$?
12822  grep -v '^ *+' conftest.er1 >conftest.err
12823  rm -f conftest.er1
12824  cat conftest.err >&5
12825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826  (exit $ac_status); } &&
12827	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828  { (case "(($ac_try" in
12829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830  *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833  (eval "$ac_try") 2>&5
12834  ac_status=$?
12835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836  (exit $ac_status); }; } &&
12837	 { ac_try='test -s conftest$ac_exeext'
12838  { (case "(($ac_try" in
12839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840  *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843  (eval "$ac_try") 2>&5
12844  ac_status=$?
12845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846  (exit $ac_status); }; }; then
12847  ac_cv_search_pthread_mutex_lock=$ac_res
12848else
12849  echo "$as_me: failed program was:" >&5
12850sed 's/^/| /' conftest.$ac_ext >&5
12851
12852
12853fi
12854
12855rm -f core conftest.err conftest.$ac_objext \
12856      conftest$ac_exeext
12857  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12858  break
12859fi
12860done
12861if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862  :
12863else
12864  ac_cv_search_pthread_mutex_lock=no
12865fi
12866rm conftest.$ac_ext
12867LIBS=$ac_func_search_save_LIBS
12868fi
12869{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12870echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12871ac_res=$ac_cv_search_pthread_mutex_lock
12872if test "$ac_res" != no; then
12873  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12874
12875cat >>confdefs.h <<\_ACEOF
12876#define HAVE_PTHREAD_MUTEX_LOCK 1
12877_ACEOF
12878
12879fi
12880
12881  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12882echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12883if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884  echo $ECHO_N "(cached) $ECHO_C" >&6
12885else
12886  ac_func_search_save_LIBS=$LIBS
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h.  */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h.  */
12893
12894/* Override any GCC internal prototype to avoid an error.
12895   Use char because int might match the return type of a GCC
12896   builtin and then its argument prototype would still apply.  */
12897#ifdef __cplusplus
12898extern "C"
12899#endif
12900char pthread_rwlock_init ();
12901int
12902main ()
12903{
12904return pthread_rwlock_init ();
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909for ac_lib in '' pthread; do
12910  if test -z "$ac_lib"; then
12911    ac_res="none required"
12912  else
12913    ac_res=-l$ac_lib
12914    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12915  fi
12916  rm -f conftest.$ac_objext conftest$ac_exeext
12917if { (ac_try="$ac_link"
12918case "(($ac_try" in
12919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920  *) ac_try_echo=$ac_try;;
12921esac
12922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923  (eval "$ac_link") 2>conftest.er1
12924  ac_status=$?
12925  grep -v '^ *+' conftest.er1 >conftest.err
12926  rm -f conftest.er1
12927  cat conftest.err >&5
12928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929  (exit $ac_status); } &&
12930	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931  { (case "(($ac_try" in
12932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933  *) ac_try_echo=$ac_try;;
12934esac
12935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936  (eval "$ac_try") 2>&5
12937  ac_status=$?
12938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939  (exit $ac_status); }; } &&
12940	 { ac_try='test -s conftest$ac_exeext'
12941  { (case "(($ac_try" in
12942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943  *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946  (eval "$ac_try") 2>&5
12947  ac_status=$?
12948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949  (exit $ac_status); }; }; then
12950  ac_cv_search_pthread_rwlock_init=$ac_res
12951else
12952  echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955
12956fi
12957
12958rm -f core conftest.err conftest.$ac_objext \
12959      conftest$ac_exeext
12960  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12961  break
12962fi
12963done
12964if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965  :
12966else
12967  ac_cv_search_pthread_rwlock_init=no
12968fi
12969rm conftest.$ac_ext
12970LIBS=$ac_func_search_save_LIBS
12971fi
12972{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12973echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12974ac_res=$ac_cv_search_pthread_rwlock_init
12975if test "$ac_res" != no; then
12976  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977
12978cat >>confdefs.h <<\_ACEOF
12979#define HAVE_PTHREAD_RWLOCK_INIT 1
12980_ACEOF
12981
12982fi
12983
12984  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12985echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12986if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987  echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989  ac_func_search_save_LIBS=$LIBS
12990cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h.  */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h.  */
12996
12997/* Override any GCC internal prototype to avoid an error.
12998   Use char because int might match the return type of a GCC
12999   builtin and then its argument prototype would still apply.  */
13000#ifdef __cplusplus
13001extern "C"
13002#endif
13003char pthread_getspecific ();
13004int
13005main ()
13006{
13007return pthread_getspecific ();
13008  ;
13009  return 0;
13010}
13011_ACEOF
13012for ac_lib in '' pthread; do
13013  if test -z "$ac_lib"; then
13014    ac_res="none required"
13015  else
13016    ac_res=-l$ac_lib
13017    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13018  fi
13019  rm -f conftest.$ac_objext conftest$ac_exeext
13020if { (ac_try="$ac_link"
13021case "(($ac_try" in
13022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023  *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026  (eval "$ac_link") 2>conftest.er1
13027  ac_status=$?
13028  grep -v '^ *+' conftest.er1 >conftest.err
13029  rm -f conftest.er1
13030  cat conftest.err >&5
13031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032  (exit $ac_status); } &&
13033	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034  { (case "(($ac_try" in
13035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036  *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039  (eval "$ac_try") 2>&5
13040  ac_status=$?
13041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042  (exit $ac_status); }; } &&
13043	 { ac_try='test -s conftest$ac_exeext'
13044  { (case "(($ac_try" in
13045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046  *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049  (eval "$ac_try") 2>&5
13050  ac_status=$?
13051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052  (exit $ac_status); }; }; then
13053  ac_cv_search_pthread_getspecific=$ac_res
13054else
13055  echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
13059fi
13060
13061rm -f core conftest.err conftest.$ac_objext \
13062      conftest$ac_exeext
13063  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13064  break
13065fi
13066done
13067if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068  :
13069else
13070  ac_cv_search_pthread_getspecific=no
13071fi
13072rm conftest.$ac_ext
13073LIBS=$ac_func_search_save_LIBS
13074fi
13075{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13076echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13077ac_res=$ac_cv_search_pthread_getspecific
13078if test "$ac_res" != no; then
13079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
13081cat >>confdefs.h <<\_ACEOF
13082#define HAVE_PTHREAD_GETSPECIFIC 1
13083_ACEOF
13084
13085fi
13086
13087fi
13088
13089
13090# Check whether --with-udis86 was given.
13091if test "${with_udis86+set}" = set; then
13092  withval=$with_udis86;
13093      USE_UDIS86=1
13094
13095      case "$withval" in
13096        /usr/lib|yes) ;;
13097        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13098      esac
13099
13100{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13101echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13102if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13103  echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105  ac_check_lib_save_LIBS=$LIBS
13106LIBS="-ludis86  $LIBS"
13107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h.  */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h.  */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115   Use char because int might match the return type of a GCC
13116   builtin and then its argument prototype would still apply.  */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char ud_init ();
13121int
13122main ()
13123{
13124return ud_init ();
13125  ;
13126  return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133  *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136  (eval "$ac_link") 2>conftest.er1
13137  ac_status=$?
13138  grep -v '^ *+' conftest.er1 >conftest.err
13139  rm -f conftest.er1
13140  cat conftest.err >&5
13141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142  (exit $ac_status); } &&
13143	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144  { (case "(($ac_try" in
13145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146  *) ac_try_echo=$ac_try;;
13147esac
13148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149  (eval "$ac_try") 2>&5
13150  ac_status=$?
13151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152  (exit $ac_status); }; } &&
13153	 { ac_try='test -s conftest$ac_exeext'
13154  { (case "(($ac_try" in
13155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156  *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159  (eval "$ac_try") 2>&5
13160  ac_status=$?
13161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162  (exit $ac_status); }; }; then
13163  ac_cv_lib_udis86_ud_init=yes
13164else
13165  echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168	ac_cv_lib_udis86_ud_init=no
13169fi
13170
13171rm -f core conftest.err conftest.$ac_objext \
13172      conftest$ac_exeext conftest.$ac_ext
13173LIBS=$ac_check_lib_save_LIBS
13174fi
13175{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13176echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13177if test $ac_cv_lib_udis86_ud_init = yes; then
13178  cat >>confdefs.h <<_ACEOF
13179#define HAVE_LIBUDIS86 1
13180_ACEOF
13181
13182  LIBS="-ludis86 $LIBS"
13183
13184else
13185
13186        echo "Error! You need to have libudis86 around."
13187        exit -1
13188
13189fi
13190
13191
13192else
13193  USE_UDIS86=0
13194
13195fi
13196
13197
13198cat >>confdefs.h <<_ACEOF
13199#define USE_UDIS86 $USE_UDIS86
13200_ACEOF
13201
13202
13203
13204# Check whether --with-oprofile was given.
13205if test "${with_oprofile+set}" = set; then
13206  withval=$with_oprofile;
13207      USE_OPROFILE=1
13208
13209      case "$withval" in
13210        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13211        no) llvm_cv_oppath=
13212            USE_OPROFILE=0
13213 ;;
13214        *) llvm_cv_oppath="${withval}/lib/oprofile"
13215           CPPFLAGS="-I${withval}/include";;
13216      esac
13217      case $llvm_cv_os_type in
13218        Linux)
13219          if test -n "$llvm_cv_oppath" ; then
13220            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13221                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13222echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13223if test "${ac_cv_search_bfd_init+set}" = set; then
13224  echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
13226  ac_func_search_save_LIBS=$LIBS
13227cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h.  */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h.  */
13233
13234/* Override any GCC internal prototype to avoid an error.
13235   Use char because int might match the return type of a GCC
13236   builtin and then its argument prototype would still apply.  */
13237#ifdef __cplusplus
13238extern "C"
13239#endif
13240char bfd_init ();
13241int
13242main ()
13243{
13244return bfd_init ();
13245  ;
13246  return 0;
13247}
13248_ACEOF
13249for ac_lib in '' bfd; do
13250  if test -z "$ac_lib"; then
13251    ac_res="none required"
13252  else
13253    ac_res=-l$ac_lib
13254    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13255  fi
13256  rm -f conftest.$ac_objext conftest$ac_exeext
13257if { (ac_try="$ac_link"
13258case "(($ac_try" in
13259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260  *) ac_try_echo=$ac_try;;
13261esac
13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263  (eval "$ac_link") 2>conftest.er1
13264  ac_status=$?
13265  grep -v '^ *+' conftest.er1 >conftest.err
13266  rm -f conftest.er1
13267  cat conftest.err >&5
13268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); } &&
13270	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13271  { (case "(($ac_try" in
13272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273  *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276  (eval "$ac_try") 2>&5
13277  ac_status=$?
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); }; } &&
13280	 { ac_try='test -s conftest$ac_exeext'
13281  { (case "(($ac_try" in
13282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283  *) ac_try_echo=$ac_try;;
13284esac
13285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286  (eval "$ac_try") 2>&5
13287  ac_status=$?
13288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289  (exit $ac_status); }; }; then
13290  ac_cv_search_bfd_init=$ac_res
13291else
13292  echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295
13296fi
13297
13298rm -f core conftest.err conftest.$ac_objext \
13299      conftest$ac_exeext
13300  if test "${ac_cv_search_bfd_init+set}" = set; then
13301  break
13302fi
13303done
13304if test "${ac_cv_search_bfd_init+set}" = set; then
13305  :
13306else
13307  ac_cv_search_bfd_init=no
13308fi
13309rm conftest.$ac_ext
13310LIBS=$ac_func_search_save_LIBS
13311fi
13312{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13313echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13314ac_res=$ac_cv_search_bfd_init
13315if test "$ac_res" != no; then
13316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317
13318fi
13319
13320            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13321echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13322if test "${ac_cv_search_op_open_agent+set}" = set; then
13323  echo $ECHO_N "(cached) $ECHO_C" >&6
13324else
13325  ac_func_search_save_LIBS=$LIBS
13326cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h.  */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h.  */
13332
13333/* Override any GCC internal prototype to avoid an error.
13334   Use char because int might match the return type of a GCC
13335   builtin and then its argument prototype would still apply.  */
13336#ifdef __cplusplus
13337extern "C"
13338#endif
13339char op_open_agent ();
13340int
13341main ()
13342{
13343return op_open_agent ();
13344  ;
13345  return 0;
13346}
13347_ACEOF
13348for ac_lib in '' opagent; do
13349  if test -z "$ac_lib"; then
13350    ac_res="none required"
13351  else
13352    ac_res=-l$ac_lib
13353    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13354  fi
13355  rm -f conftest.$ac_objext conftest$ac_exeext
13356if { (ac_try="$ac_link"
13357case "(($ac_try" in
13358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359  *) ac_try_echo=$ac_try;;
13360esac
13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362  (eval "$ac_link") 2>conftest.er1
13363  ac_status=$?
13364  grep -v '^ *+' conftest.er1 >conftest.err
13365  rm -f conftest.er1
13366  cat conftest.err >&5
13367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368  (exit $ac_status); } &&
13369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13370  { (case "(($ac_try" in
13371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372  *) ac_try_echo=$ac_try;;
13373esac
13374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375  (eval "$ac_try") 2>&5
13376  ac_status=$?
13377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378  (exit $ac_status); }; } &&
13379	 { ac_try='test -s conftest$ac_exeext'
13380  { (case "(($ac_try" in
13381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382  *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385  (eval "$ac_try") 2>&5
13386  ac_status=$?
13387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388  (exit $ac_status); }; }; then
13389  ac_cv_search_op_open_agent=$ac_res
13390else
13391  echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394
13395fi
13396
13397rm -f core conftest.err conftest.$ac_objext \
13398      conftest$ac_exeext
13399  if test "${ac_cv_search_op_open_agent+set}" = set; then
13400  break
13401fi
13402done
13403if test "${ac_cv_search_op_open_agent+set}" = set; then
13404  :
13405else
13406  ac_cv_search_op_open_agent=no
13407fi
13408rm conftest.$ac_ext
13409LIBS=$ac_func_search_save_LIBS
13410fi
13411{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13412echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13413ac_res=$ac_cv_search_op_open_agent
13414if test "$ac_res" != no; then
13415  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13416
13417else
13418
13419              echo "Error! You need to have libopagent around."
13420              exit -1
13421
13422fi
13423
13424            if test "${ac_cv_header_opagent_h+set}" = set; then
13425  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13426echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13427if test "${ac_cv_header_opagent_h+set}" = set; then
13428  echo $ECHO_N "(cached) $ECHO_C" >&6
13429fi
13430{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13431echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13432else
13433  # Is the header compilable?
13434{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13435echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h.  */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h.  */
13442$ac_includes_default
13443#include <opagent.h>
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (ac_try="$ac_compile"
13447case "(($ac_try" in
13448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449  *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452  (eval "$ac_compile") 2>conftest.er1
13453  ac_status=$?
13454  grep -v '^ *+' conftest.er1 >conftest.err
13455  rm -f conftest.er1
13456  cat conftest.err >&5
13457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458  (exit $ac_status); } &&
13459	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460  { (case "(($ac_try" in
13461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462  *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465  (eval "$ac_try") 2>&5
13466  ac_status=$?
13467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468  (exit $ac_status); }; } &&
13469	 { ac_try='test -s conftest.$ac_objext'
13470  { (case "(($ac_try" in
13471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472  *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475  (eval "$ac_try") 2>&5
13476  ac_status=$?
13477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478  (exit $ac_status); }; }; then
13479  ac_header_compiler=yes
13480else
13481  echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
13484	ac_header_compiler=no
13485fi
13486
13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13489echo "${ECHO_T}$ac_header_compiler" >&6; }
13490
13491# Is the header present?
13492{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13493echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13494cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h.  */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h.  */
13500#include <opagent.h>
13501_ACEOF
13502if { (ac_try="$ac_cpp conftest.$ac_ext"
13503case "(($ac_try" in
13504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505  *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13509  ac_status=$?
13510  grep -v '^ *+' conftest.er1 >conftest.err
13511  rm -f conftest.er1
13512  cat conftest.err >&5
13513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514  (exit $ac_status); } >/dev/null; then
13515  if test -s conftest.err; then
13516    ac_cpp_err=$ac_c_preproc_warn_flag
13517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13518  else
13519    ac_cpp_err=
13520  fi
13521else
13522  ac_cpp_err=yes
13523fi
13524if test -z "$ac_cpp_err"; then
13525  ac_header_preproc=yes
13526else
13527  echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530  ac_header_preproc=no
13531fi
13532
13533rm -f conftest.err conftest.$ac_ext
13534{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535echo "${ECHO_T}$ac_header_preproc" >&6; }
13536
13537# So?  What about this header?
13538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13539  yes:no: )
13540    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13541echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13543echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13544    ac_header_preproc=yes
13545    ;;
13546  no:yes:* )
13547    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13548echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13549    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13550echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13551    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13552echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13553    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13554echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13555    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13556echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13557    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13558echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13559    ( cat <<\_ASBOX
13560## ------------------------------------ ##
13561## Report this to http://llvm.org/bugs/ ##
13562## ------------------------------------ ##
13563_ASBOX
13564     ) | sed "s/^/$as_me: WARNING:     /" >&2
13565    ;;
13566esac
13567{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13568echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569if test "${ac_cv_header_opagent_h+set}" = set; then
13570  echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572  ac_cv_header_opagent_h=$ac_header_preproc
13573fi
13574{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576
13577fi
13578if test $ac_cv_header_opagent_h = yes; then
13579  :
13580else
13581
13582              echo "Error! You need to have opagent.h around."
13583              exit -1
13584
13585fi
13586
13587
13588          fi ;;
13589        *)
13590          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13591echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13592   { (exit 1); exit 1; }; } ;;
13593      esac
13594
13595else
13596
13597      USE_OPROFILE=0
13598
13599
13600fi
13601
13602
13603cat >>confdefs.h <<_ACEOF
13604#define LLVM_USE_OPROFILE $USE_OPROFILE
13605_ACEOF
13606
13607
13608
13609# Check whether --with-intel-jitevents was given.
13610if test "${with_intel_jitevents+set}" = set; then
13611  withval=$with_intel_jitevents;
13612      case $llvm_cv_os_type in
13613        Linux|Win32|Cygwin|MingW) ;;
13614        *)
13615          { { echo "$as_me:$LINENO: error:
13616            Intel JIT API support is available on Linux and Windows only.\"" >&5
13617echo "$as_me: error:
13618            Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13619   { (exit 1); exit 1; }; } ;;
13620      esac
13621
13622      USE_INTEL_JITEVENTS=1
13623
13624      case "$llvm_cv_target_arch" in
13625        x86)    llvm_intel_jitevents_archdir="lib32";;
13626        x86_64) llvm_intel_jitevents_archdir="lib64";;
13627        *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13628                exit -1;;
13629      esac
13630      INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13631      INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13632      case "$withval" in
13633        /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13634                                  INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13635        *) ;;
13636      esac
13637
13638
13639
13640
13641      LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13642      CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13643
13644      { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13645echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13646if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647  echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649  ac_func_search_save_LIBS=$LIBS
13650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h.  */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h.  */
13656
13657/* Override any GCC internal prototype to avoid an error.
13658   Use char because int might match the return type of a GCC
13659   builtin and then its argument prototype would still apply.  */
13660#ifdef __cplusplus
13661extern "C"
13662#endif
13663char iJIT_IsProfilingActive ();
13664int
13665main ()
13666{
13667return iJIT_IsProfilingActive ();
13668  ;
13669  return 0;
13670}
13671_ACEOF
13672for ac_lib in '' jitprofiling; do
13673  if test -z "$ac_lib"; then
13674    ac_res="none required"
13675  else
13676    ac_res=-l$ac_lib
13677    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13678  fi
13679  rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (ac_try="$ac_link"
13681case "(($ac_try" in
13682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683  *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686  (eval "$ac_link") 2>conftest.er1
13687  ac_status=$?
13688  grep -v '^ *+' conftest.er1 >conftest.err
13689  rm -f conftest.er1
13690  cat conftest.err >&5
13691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692  (exit $ac_status); } &&
13693	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694  { (case "(($ac_try" in
13695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696  *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699  (eval "$ac_try") 2>&5
13700  ac_status=$?
13701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702  (exit $ac_status); }; } &&
13703	 { ac_try='test -s conftest$ac_exeext'
13704  { (case "(($ac_try" in
13705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706  *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709  (eval "$ac_try") 2>&5
13710  ac_status=$?
13711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712  (exit $ac_status); }; }; then
13713  ac_cv_search_iJIT_IsProfilingActive=$ac_res
13714else
13715  echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
13719fi
13720
13721rm -f core conftest.err conftest.$ac_objext \
13722      conftest$ac_exeext
13723  if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13724  break
13725fi
13726done
13727if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13728  :
13729else
13730  ac_cv_search_iJIT_IsProfilingActive=no
13731fi
13732rm conftest.$ac_ext
13733LIBS=$ac_func_search_save_LIBS
13734fi
13735{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13736echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13737ac_res=$ac_cv_search_iJIT_IsProfilingActive
13738if test "$ac_res" != no; then
13739  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
13741else
13742
13743        echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13744        exit -1
13745
13746fi
13747
13748      if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13749  { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13750echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13751if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13752  echo $ECHO_N "(cached) $ECHO_C" >&6
13753fi
13754{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13755echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13756else
13757  # Is the header compilable?
13758{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13759echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13760cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h.  */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h.  */
13766$ac_includes_default
13767#include <jitprofiling.h>
13768_ACEOF
13769rm -f conftest.$ac_objext
13770if { (ac_try="$ac_compile"
13771case "(($ac_try" in
13772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773  *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776  (eval "$ac_compile") 2>conftest.er1
13777  ac_status=$?
13778  grep -v '^ *+' conftest.er1 >conftest.err
13779  rm -f conftest.er1
13780  cat conftest.err >&5
13781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782  (exit $ac_status); } &&
13783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13784  { (case "(($ac_try" in
13785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786  *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789  (eval "$ac_try") 2>&5
13790  ac_status=$?
13791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); }; } &&
13793	 { ac_try='test -s conftest.$ac_objext'
13794  { (case "(($ac_try" in
13795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796  *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799  (eval "$ac_try") 2>&5
13800  ac_status=$?
13801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802  (exit $ac_status); }; }; then
13803  ac_header_compiler=yes
13804else
13805  echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808	ac_header_compiler=no
13809fi
13810
13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813echo "${ECHO_T}$ac_header_compiler" >&6; }
13814
13815# Is the header present?
13816{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13817echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13818cat >conftest.$ac_ext <<_ACEOF
13819/* confdefs.h.  */
13820_ACEOF
13821cat confdefs.h >>conftest.$ac_ext
13822cat >>conftest.$ac_ext <<_ACEOF
13823/* end confdefs.h.  */
13824#include <jitprofiling.h>
13825_ACEOF
13826if { (ac_try="$ac_cpp conftest.$ac_ext"
13827case "(($ac_try" in
13828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829  *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13833  ac_status=$?
13834  grep -v '^ *+' conftest.er1 >conftest.err
13835  rm -f conftest.er1
13836  cat conftest.err >&5
13837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838  (exit $ac_status); } >/dev/null; then
13839  if test -s conftest.err; then
13840    ac_cpp_err=$ac_c_preproc_warn_flag
13841    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13842  else
13843    ac_cpp_err=
13844  fi
13845else
13846  ac_cpp_err=yes
13847fi
13848if test -z "$ac_cpp_err"; then
13849  ac_header_preproc=yes
13850else
13851  echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854  ac_header_preproc=no
13855fi
13856
13857rm -f conftest.err conftest.$ac_ext
13858{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859echo "${ECHO_T}$ac_header_preproc" >&6; }
13860
13861# So?  What about this header?
13862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863  yes:no: )
13864    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13867echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13868    ac_header_preproc=yes
13869    ;;
13870  no:yes:* )
13871    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13872echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13873    { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13874echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13875    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13876echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13877    { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13878echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13879    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13880echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13881    { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13882echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13883    ( cat <<\_ASBOX
13884## ------------------------------------ ##
13885## Report this to http://llvm.org/bugs/ ##
13886## ------------------------------------ ##
13887_ASBOX
13888     ) | sed "s/^/$as_me: WARNING:     /" >&2
13889    ;;
13890esac
13891{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13892echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13893if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13894  echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896  ac_cv_header_jitprofiling_h=$ac_header_preproc
13897fi
13898{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13899echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13900
13901fi
13902if test $ac_cv_header_jitprofiling_h = yes; then
13903  :
13904else
13905
13906        echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13907        exit -1
13908
13909fi
13910
13911
13912
13913
13914else
13915
13916      USE_INTEL_JITEVENTS=0
13917
13918
13919fi
13920
13921
13922cat >>confdefs.h <<_ACEOF
13923#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13924_ACEOF
13925
13926
13927
13928
13929
13930
13931
13932
13933ac_header_dirent=no
13934for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13935  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13936{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13937echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939  echo $ECHO_N "(cached) $ECHO_C" >&6
13940else
13941  cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h.  */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h.  */
13947#include <sys/types.h>
13948#include <$ac_hdr>
13949
13950int
13951main ()
13952{
13953if ((DIR *) 0)
13954return 0;
13955  ;
13956  return 0;
13957}
13958_ACEOF
13959rm -f conftest.$ac_objext
13960if { (ac_try="$ac_compile"
13961case "(($ac_try" in
13962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963  *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966  (eval "$ac_compile") 2>conftest.er1
13967  ac_status=$?
13968  grep -v '^ *+' conftest.er1 >conftest.err
13969  rm -f conftest.er1
13970  cat conftest.err >&5
13971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972  (exit $ac_status); } &&
13973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974  { (case "(($ac_try" in
13975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976  *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979  (eval "$ac_try") 2>&5
13980  ac_status=$?
13981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982  (exit $ac_status); }; } &&
13983	 { ac_try='test -s conftest.$ac_objext'
13984  { (case "(($ac_try" in
13985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986  *) ac_try_echo=$ac_try;;
13987esac
13988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989  (eval "$ac_try") 2>&5
13990  ac_status=$?
13991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992  (exit $ac_status); }; }; then
13993  eval "$as_ac_Header=yes"
13994else
13995  echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998	eval "$as_ac_Header=no"
13999fi
14000
14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002fi
14003ac_res=`eval echo '${'$as_ac_Header'}'`
14004	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14005echo "${ECHO_T}$ac_res" >&6; }
14006if test `eval echo '${'$as_ac_Header'}'` = yes; then
14007  cat >>confdefs.h <<_ACEOF
14008#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14009_ACEOF
14010
14011ac_header_dirent=$ac_hdr; break
14012fi
14013
14014done
14015# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14016if test $ac_header_dirent = dirent.h; then
14017  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14018echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14019if test "${ac_cv_search_opendir+set}" = set; then
14020  echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022  ac_func_search_save_LIBS=$LIBS
14023cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h.  */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
14028/* end confdefs.h.  */
14029
14030/* Override any GCC internal prototype to avoid an error.
14031   Use char because int might match the return type of a GCC
14032   builtin and then its argument prototype would still apply.  */
14033#ifdef __cplusplus
14034extern "C"
14035#endif
14036char opendir ();
14037int
14038main ()
14039{
14040return opendir ();
14041  ;
14042  return 0;
14043}
14044_ACEOF
14045for ac_lib in '' dir; do
14046  if test -z "$ac_lib"; then
14047    ac_res="none required"
14048  else
14049    ac_res=-l$ac_lib
14050    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14051  fi
14052  rm -f conftest.$ac_objext conftest$ac_exeext
14053if { (ac_try="$ac_link"
14054case "(($ac_try" in
14055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056  *) ac_try_echo=$ac_try;;
14057esac
14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059  (eval "$ac_link") 2>conftest.er1
14060  ac_status=$?
14061  grep -v '^ *+' conftest.er1 >conftest.err
14062  rm -f conftest.er1
14063  cat conftest.err >&5
14064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065  (exit $ac_status); } &&
14066	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067  { (case "(($ac_try" in
14068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069  *) ac_try_echo=$ac_try;;
14070esac
14071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072  (eval "$ac_try") 2>&5
14073  ac_status=$?
14074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075  (exit $ac_status); }; } &&
14076	 { ac_try='test -s conftest$ac_exeext'
14077  { (case "(($ac_try" in
14078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079  *) ac_try_echo=$ac_try;;
14080esac
14081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082  (eval "$ac_try") 2>&5
14083  ac_status=$?
14084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085  (exit $ac_status); }; }; then
14086  ac_cv_search_opendir=$ac_res
14087else
14088  echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
14092fi
14093
14094rm -f core conftest.err conftest.$ac_objext \
14095      conftest$ac_exeext
14096  if test "${ac_cv_search_opendir+set}" = set; then
14097  break
14098fi
14099done
14100if test "${ac_cv_search_opendir+set}" = set; then
14101  :
14102else
14103  ac_cv_search_opendir=no
14104fi
14105rm conftest.$ac_ext
14106LIBS=$ac_func_search_save_LIBS
14107fi
14108{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14109echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14110ac_res=$ac_cv_search_opendir
14111if test "$ac_res" != no; then
14112  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14113
14114fi
14115
14116else
14117  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119if test "${ac_cv_search_opendir+set}" = set; then
14120  echo $ECHO_N "(cached) $ECHO_C" >&6
14121else
14122  ac_func_search_save_LIBS=$LIBS
14123cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h.  */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
14128/* end confdefs.h.  */
14129
14130/* Override any GCC internal prototype to avoid an error.
14131   Use char because int might match the return type of a GCC
14132   builtin and then its argument prototype would still apply.  */
14133#ifdef __cplusplus
14134extern "C"
14135#endif
14136char opendir ();
14137int
14138main ()
14139{
14140return opendir ();
14141  ;
14142  return 0;
14143}
14144_ACEOF
14145for ac_lib in '' x; do
14146  if test -z "$ac_lib"; then
14147    ac_res="none required"
14148  else
14149    ac_res=-l$ac_lib
14150    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14151  fi
14152  rm -f conftest.$ac_objext conftest$ac_exeext
14153if { (ac_try="$ac_link"
14154case "(($ac_try" in
14155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156  *) ac_try_echo=$ac_try;;
14157esac
14158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159  (eval "$ac_link") 2>conftest.er1
14160  ac_status=$?
14161  grep -v '^ *+' conftest.er1 >conftest.err
14162  rm -f conftest.er1
14163  cat conftest.err >&5
14164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165  (exit $ac_status); } &&
14166	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167  { (case "(($ac_try" in
14168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169  *) ac_try_echo=$ac_try;;
14170esac
14171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172  (eval "$ac_try") 2>&5
14173  ac_status=$?
14174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); }; } &&
14176	 { ac_try='test -s conftest$ac_exeext'
14177  { (case "(($ac_try" in
14178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179  *) ac_try_echo=$ac_try;;
14180esac
14181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182  (eval "$ac_try") 2>&5
14183  ac_status=$?
14184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185  (exit $ac_status); }; }; then
14186  ac_cv_search_opendir=$ac_res
14187else
14188  echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191
14192fi
14193
14194rm -f core conftest.err conftest.$ac_objext \
14195      conftest$ac_exeext
14196  if test "${ac_cv_search_opendir+set}" = set; then
14197  break
14198fi
14199done
14200if test "${ac_cv_search_opendir+set}" = set; then
14201  :
14202else
14203  ac_cv_search_opendir=no
14204fi
14205rm conftest.$ac_ext
14206LIBS=$ac_func_search_save_LIBS
14207fi
14208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14210ac_res=$ac_cv_search_opendir
14211if test "$ac_res" != no; then
14212  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214fi
14215
14216fi
14217
14218{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14219echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14220if test "${ac_cv_header_mmap_anon+set}" = set; then
14221  echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223   ac_ext=c
14224ac_cpp='$CPP $CPPFLAGS'
14225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227ac_compiler_gnu=$ac_cv_c_compiler_gnu
14228
14229  cat >conftest.$ac_ext <<_ACEOF
14230/* confdefs.h.  */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
14234/* end confdefs.h.  */
14235#include <sys/mman.h>
14236#include <unistd.h>
14237#include <fcntl.h>
14238int
14239main ()
14240{
14241mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14242  ;
14243  return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext
14247if { (ac_try="$ac_compile"
14248case "(($ac_try" in
14249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250  *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253  (eval "$ac_compile") 2>conftest.er1
14254  ac_status=$?
14255  grep -v '^ *+' conftest.er1 >conftest.err
14256  rm -f conftest.er1
14257  cat conftest.err >&5
14258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259  (exit $ac_status); } &&
14260	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261  { (case "(($ac_try" in
14262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263  *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266  (eval "$ac_try") 2>&5
14267  ac_status=$?
14268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269  (exit $ac_status); }; } &&
14270	 { ac_try='test -s conftest.$ac_objext'
14271  { (case "(($ac_try" in
14272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273  *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276  (eval "$ac_try") 2>&5
14277  ac_status=$?
14278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279  (exit $ac_status); }; }; then
14280  ac_cv_header_mmap_anon=yes
14281else
14282  echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285	ac_cv_header_mmap_anon=no
14286fi
14287
14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289  ac_ext=c
14290ac_cpp='$CPP $CPPFLAGS'
14291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294
14295
14296fi
14297{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14298echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14299if test "$ac_cv_header_mmap_anon" = yes; then
14300
14301cat >>confdefs.h <<\_ACEOF
14302#define HAVE_MMAP_ANONYMOUS 1
14303_ACEOF
14304
14305fi
14306
14307{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14308echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14309if test "${ac_cv_header_stat_broken+set}" = set; then
14310  echo $ECHO_N "(cached) $ECHO_C" >&6
14311else
14312  cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h.  */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h.  */
14318#include <sys/types.h>
14319#include <sys/stat.h>
14320
14321#if defined S_ISBLK && defined S_IFDIR
14322# if S_ISBLK (S_IFDIR)
14323You lose.
14324# endif
14325#endif
14326
14327#if defined S_ISBLK && defined S_IFCHR
14328# if S_ISBLK (S_IFCHR)
14329You lose.
14330# endif
14331#endif
14332
14333#if defined S_ISLNK && defined S_IFREG
14334# if S_ISLNK (S_IFREG)
14335You lose.
14336# endif
14337#endif
14338
14339#if defined S_ISSOCK && defined S_IFREG
14340# if S_ISSOCK (S_IFREG)
14341You lose.
14342# endif
14343#endif
14344
14345_ACEOF
14346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347  $EGREP "You lose" >/dev/null 2>&1; then
14348  ac_cv_header_stat_broken=yes
14349else
14350  ac_cv_header_stat_broken=no
14351fi
14352rm -f conftest*
14353
14354fi
14355{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14356echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14357if test $ac_cv_header_stat_broken = yes; then
14358
14359cat >>confdefs.h <<\_ACEOF
14360#define STAT_MACROS_BROKEN 1
14361_ACEOF
14362
14363fi
14364
14365{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14366echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14367if test "${ac_cv_header_sys_wait_h+set}" = set; then
14368  echo $ECHO_N "(cached) $ECHO_C" >&6
14369else
14370  cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h.  */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
14375/* end confdefs.h.  */
14376#include <sys/types.h>
14377#include <sys/wait.h>
14378#ifndef WEXITSTATUS
14379# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14380#endif
14381#ifndef WIFEXITED
14382# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14383#endif
14384
14385int
14386main ()
14387{
14388  int s;
14389  wait (&s);
14390  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14391  ;
14392  return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (ac_try="$ac_compile"
14397case "(($ac_try" in
14398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399  *) ac_try_echo=$ac_try;;
14400esac
14401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402  (eval "$ac_compile") 2>conftest.er1
14403  ac_status=$?
14404  grep -v '^ *+' conftest.er1 >conftest.err
14405  rm -f conftest.er1
14406  cat conftest.err >&5
14407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408  (exit $ac_status); } &&
14409	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410  { (case "(($ac_try" in
14411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412  *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415  (eval "$ac_try") 2>&5
14416  ac_status=$?
14417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418  (exit $ac_status); }; } &&
14419	 { ac_try='test -s conftest.$ac_objext'
14420  { (case "(($ac_try" in
14421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422  *) ac_try_echo=$ac_try;;
14423esac
14424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425  (eval "$ac_try") 2>&5
14426  ac_status=$?
14427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428  (exit $ac_status); }; }; then
14429  ac_cv_header_sys_wait_h=yes
14430else
14431  echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
14434	ac_cv_header_sys_wait_h=no
14435fi
14436
14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438fi
14439{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14440echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14441if test $ac_cv_header_sys_wait_h = yes; then
14442
14443cat >>confdefs.h <<\_ACEOF
14444#define HAVE_SYS_WAIT_H 1
14445_ACEOF
14446
14447fi
14448
14449{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14450echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14451if test "${ac_cv_header_time+set}" = set; then
14452  echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
14454  cat >conftest.$ac_ext <<_ACEOF
14455/* confdefs.h.  */
14456_ACEOF
14457cat confdefs.h >>conftest.$ac_ext
14458cat >>conftest.$ac_ext <<_ACEOF
14459/* end confdefs.h.  */
14460#include <sys/types.h>
14461#include <sys/time.h>
14462#include <time.h>
14463
14464int
14465main ()
14466{
14467if ((struct tm *) 0)
14468return 0;
14469  ;
14470  return 0;
14471}
14472_ACEOF
14473rm -f conftest.$ac_objext
14474if { (ac_try="$ac_compile"
14475case "(($ac_try" in
14476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477  *) ac_try_echo=$ac_try;;
14478esac
14479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480  (eval "$ac_compile") 2>conftest.er1
14481  ac_status=$?
14482  grep -v '^ *+' conftest.er1 >conftest.err
14483  rm -f conftest.er1
14484  cat conftest.err >&5
14485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486  (exit $ac_status); } &&
14487	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488  { (case "(($ac_try" in
14489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490  *) ac_try_echo=$ac_try;;
14491esac
14492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493  (eval "$ac_try") 2>&5
14494  ac_status=$?
14495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496  (exit $ac_status); }; } &&
14497	 { ac_try='test -s conftest.$ac_objext'
14498  { (case "(($ac_try" in
14499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500  *) ac_try_echo=$ac_try;;
14501esac
14502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503  (eval "$ac_try") 2>&5
14504  ac_status=$?
14505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506  (exit $ac_status); }; }; then
14507  ac_cv_header_time=yes
14508else
14509  echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512	ac_cv_header_time=no
14513fi
14514
14515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516fi
14517{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14518echo "${ECHO_T}$ac_cv_header_time" >&6; }
14519if test $ac_cv_header_time = yes; then
14520
14521cat >>confdefs.h <<\_ACEOF
14522#define TIME_WITH_SYS_TIME 1
14523_ACEOF
14524
14525fi
14526
14527
14528
14529
14530
14531
14532
14533
14534for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14535do
14536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541  echo $ECHO_N "(cached) $ECHO_C" >&6
14542fi
14543ac_res=`eval echo '${'$as_ac_Header'}'`
14544	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14545echo "${ECHO_T}$ac_res" >&6; }
14546else
14547  # Is the header compilable?
14548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14550cat >conftest.$ac_ext <<_ACEOF
14551/* confdefs.h.  */
14552_ACEOF
14553cat confdefs.h >>conftest.$ac_ext
14554cat >>conftest.$ac_ext <<_ACEOF
14555/* end confdefs.h.  */
14556$ac_includes_default
14557#include <$ac_header>
14558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (ac_try="$ac_compile"
14561case "(($ac_try" in
14562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563  *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566  (eval "$ac_compile") 2>conftest.er1
14567  ac_status=$?
14568  grep -v '^ *+' conftest.er1 >conftest.err
14569  rm -f conftest.er1
14570  cat conftest.err >&5
14571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572  (exit $ac_status); } &&
14573	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574  { (case "(($ac_try" in
14575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576  *) ac_try_echo=$ac_try;;
14577esac
14578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579  (eval "$ac_try") 2>&5
14580  ac_status=$?
14581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582  (exit $ac_status); }; } &&
14583	 { ac_try='test -s conftest.$ac_objext'
14584  { (case "(($ac_try" in
14585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586  *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589  (eval "$ac_try") 2>&5
14590  ac_status=$?
14591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592  (exit $ac_status); }; }; then
14593  ac_header_compiler=yes
14594else
14595  echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598	ac_header_compiler=no
14599fi
14600
14601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14603echo "${ECHO_T}$ac_header_compiler" >&6; }
14604
14605# Is the header present?
14606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14608cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h.  */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h.  */
14614#include <$ac_header>
14615_ACEOF
14616if { (ac_try="$ac_cpp conftest.$ac_ext"
14617case "(($ac_try" in
14618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619  *) ac_try_echo=$ac_try;;
14620esac
14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14623  ac_status=$?
14624  grep -v '^ *+' conftest.er1 >conftest.err
14625  rm -f conftest.er1
14626  cat conftest.err >&5
14627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628  (exit $ac_status); } >/dev/null; then
14629  if test -s conftest.err; then
14630    ac_cpp_err=$ac_c_preproc_warn_flag
14631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14632  else
14633    ac_cpp_err=
14634  fi
14635else
14636  ac_cpp_err=yes
14637fi
14638if test -z "$ac_cpp_err"; then
14639  ac_header_preproc=yes
14640else
14641  echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
14644  ac_header_preproc=no
14645fi
14646
14647rm -f conftest.err conftest.$ac_ext
14648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649echo "${ECHO_T}$ac_header_preproc" >&6; }
14650
14651# So?  What about this header?
14652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653  yes:no: )
14654    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14658    ac_header_preproc=yes
14659    ;;
14660  no:yes:* )
14661    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14663    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14664echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14665    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14667    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14668echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14669    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14671    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14673    ( cat <<\_ASBOX
14674## ------------------------------------ ##
14675## Report this to http://llvm.org/bugs/ ##
14676## ------------------------------------ ##
14677_ASBOX
14678     ) | sed "s/^/$as_me: WARNING:     /" >&2
14679    ;;
14680esac
14681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684  echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686  eval "$as_ac_Header=\$ac_header_preproc"
14687fi
14688ac_res=`eval echo '${'$as_ac_Header'}'`
14689	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14690echo "${ECHO_T}$ac_res" >&6; }
14691
14692fi
14693if test `eval echo '${'$as_ac_Header'}'` = yes; then
14694  cat >>confdefs.h <<_ACEOF
14695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696_ACEOF
14697
14698fi
14699
14700done
14701
14702
14703
14704
14705
14706
14707
14708for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14709do
14710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715  echo $ECHO_N "(cached) $ECHO_C" >&6
14716fi
14717ac_res=`eval echo '${'$as_ac_Header'}'`
14718	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14719echo "${ECHO_T}$ac_res" >&6; }
14720else
14721  # Is the header compilable?
14722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h.  */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h.  */
14730$ac_includes_default
14731#include <$ac_header>
14732_ACEOF
14733rm -f conftest.$ac_objext
14734if { (ac_try="$ac_compile"
14735case "(($ac_try" in
14736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737  *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740  (eval "$ac_compile") 2>conftest.er1
14741  ac_status=$?
14742  grep -v '^ *+' conftest.er1 >conftest.err
14743  rm -f conftest.er1
14744  cat conftest.err >&5
14745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746  (exit $ac_status); } &&
14747	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748  { (case "(($ac_try" in
14749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750  *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753  (eval "$ac_try") 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); }; } &&
14757	 { ac_try='test -s conftest.$ac_objext'
14758  { (case "(($ac_try" in
14759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760  *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763  (eval "$ac_try") 2>&5
14764  ac_status=$?
14765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766  (exit $ac_status); }; }; then
14767  ac_header_compiler=yes
14768else
14769  echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772	ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h.  */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h.  */
14788#include <$ac_header>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793  *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797  ac_status=$?
14798  grep -v '^ *+' conftest.er1 >conftest.err
14799  rm -f conftest.er1
14800  cat conftest.err >&5
14801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802  (exit $ac_status); } >/dev/null; then
14803  if test -s conftest.err; then
14804    ac_cpp_err=$ac_c_preproc_warn_flag
14805    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806  else
14807    ac_cpp_err=
14808  fi
14809else
14810  ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813  ac_header_preproc=yes
14814else
14815  echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818  ac_header_preproc=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_ext
14822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825# So?  What about this header?
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827  yes:no: )
14828    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832    ac_header_preproc=yes
14833    ;;
14834  no:yes:* )
14835    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14839    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14843    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847    ( cat <<\_ASBOX
14848## ------------------------------------ ##
14849## Report this to http://llvm.org/bugs/ ##
14850## ------------------------------------ ##
14851_ASBOX
14852     ) | sed "s/^/$as_me: WARNING:     /" >&2
14853    ;;
14854esac
14855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858  echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860  eval "$as_ac_Header=\$ac_header_preproc"
14861fi
14862ac_res=`eval echo '${'$as_ac_Header'}'`
14863	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14864echo "${ECHO_T}$ac_res" >&6; }
14865
14866fi
14867if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868  cat >>confdefs.h <<_ACEOF
14869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14870_ACEOF
14871
14872fi
14873
14874done
14875
14876
14877
14878for ac_header in utime.h windows.h
14879do
14880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885  echo $ECHO_N "(cached) $ECHO_C" >&6
14886fi
14887ac_res=`eval echo '${'$as_ac_Header'}'`
14888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14889echo "${ECHO_T}$ac_res" >&6; }
14890else
14891  # Is the header compilable?
14892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h.  */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h.  */
14900$ac_includes_default
14901#include <$ac_header>
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (ac_try="$ac_compile"
14905case "(($ac_try" in
14906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907  *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910  (eval "$ac_compile") 2>conftest.er1
14911  ac_status=$?
14912  grep -v '^ *+' conftest.er1 >conftest.err
14913  rm -f conftest.er1
14914  cat conftest.err >&5
14915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916  (exit $ac_status); } &&
14917	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918  { (case "(($ac_try" in
14919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920  *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923  (eval "$ac_try") 2>&5
14924  ac_status=$?
14925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926  (exit $ac_status); }; } &&
14927	 { ac_try='test -s conftest.$ac_objext'
14928  { (case "(($ac_try" in
14929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930  *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933  (eval "$ac_try") 2>&5
14934  ac_status=$?
14935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936  (exit $ac_status); }; }; then
14937  ac_header_compiler=yes
14938else
14939  echo "$as_me: failed program was:" >&5
14940sed 's/^/| /' conftest.$ac_ext >&5
14941
14942	ac_header_compiler=no
14943fi
14944
14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947echo "${ECHO_T}$ac_header_compiler" >&6; }
14948
14949# Is the header present?
14950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952cat >conftest.$ac_ext <<_ACEOF
14953/* confdefs.h.  */
14954_ACEOF
14955cat confdefs.h >>conftest.$ac_ext
14956cat >>conftest.$ac_ext <<_ACEOF
14957/* end confdefs.h.  */
14958#include <$ac_header>
14959_ACEOF
14960if { (ac_try="$ac_cpp conftest.$ac_ext"
14961case "(($ac_try" in
14962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963  *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967  ac_status=$?
14968  grep -v '^ *+' conftest.er1 >conftest.err
14969  rm -f conftest.er1
14970  cat conftest.err >&5
14971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972  (exit $ac_status); } >/dev/null; then
14973  if test -s conftest.err; then
14974    ac_cpp_err=$ac_c_preproc_warn_flag
14975    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976  else
14977    ac_cpp_err=
14978  fi
14979else
14980  ac_cpp_err=yes
14981fi
14982if test -z "$ac_cpp_err"; then
14983  ac_header_preproc=yes
14984else
14985  echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988  ac_header_preproc=no
14989fi
14990
14991rm -f conftest.err conftest.$ac_ext
14992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993echo "${ECHO_T}$ac_header_preproc" >&6; }
14994
14995# So?  What about this header?
14996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997  yes:no: )
14998    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002    ac_header_preproc=yes
15003    ;;
15004  no:yes:* )
15005    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15008echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15009    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15012echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017    ( cat <<\_ASBOX
15018## ------------------------------------ ##
15019## Report this to http://llvm.org/bugs/ ##
15020## ------------------------------------ ##
15021_ASBOX
15022     ) | sed "s/^/$as_me: WARNING:     /" >&2
15023    ;;
15024esac
15025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028  echo $ECHO_N "(cached) $ECHO_C" >&6
15029else
15030  eval "$as_ac_Header=\$ac_header_preproc"
15031fi
15032ac_res=`eval echo '${'$as_ac_Header'}'`
15033	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15034echo "${ECHO_T}$ac_res" >&6; }
15035
15036fi
15037if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038  cat >>confdefs.h <<_ACEOF
15039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15040_ACEOF
15041
15042fi
15043
15044done
15045
15046
15047
15048
15049
15050
15051for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15052do
15053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058  echo $ECHO_N "(cached) $ECHO_C" >&6
15059fi
15060ac_res=`eval echo '${'$as_ac_Header'}'`
15061	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15062echo "${ECHO_T}$ac_res" >&6; }
15063else
15064  # Is the header compilable?
15065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h.  */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h.  */
15073$ac_includes_default
15074#include <$ac_header>
15075_ACEOF
15076rm -f conftest.$ac_objext
15077if { (ac_try="$ac_compile"
15078case "(($ac_try" in
15079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080  *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083  (eval "$ac_compile") 2>conftest.er1
15084  ac_status=$?
15085  grep -v '^ *+' conftest.er1 >conftest.err
15086  rm -f conftest.er1
15087  cat conftest.err >&5
15088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089  (exit $ac_status); } &&
15090	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091  { (case "(($ac_try" in
15092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093  *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096  (eval "$ac_try") 2>&5
15097  ac_status=$?
15098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099  (exit $ac_status); }; } &&
15100	 { ac_try='test -s conftest.$ac_objext'
15101  { (case "(($ac_try" in
15102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103  *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106  (eval "$ac_try") 2>&5
15107  ac_status=$?
15108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109  (exit $ac_status); }; }; then
15110  ac_header_compiler=yes
15111else
15112  echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115	ac_header_compiler=no
15116fi
15117
15118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120echo "${ECHO_T}$ac_header_compiler" >&6; }
15121
15122# Is the header present?
15123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125cat >conftest.$ac_ext <<_ACEOF
15126/* confdefs.h.  */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h.  */
15131#include <$ac_header>
15132_ACEOF
15133if { (ac_try="$ac_cpp conftest.$ac_ext"
15134case "(($ac_try" in
15135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136  *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140  ac_status=$?
15141  grep -v '^ *+' conftest.er1 >conftest.err
15142  rm -f conftest.er1
15143  cat conftest.err >&5
15144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145  (exit $ac_status); } >/dev/null; then
15146  if test -s conftest.err; then
15147    ac_cpp_err=$ac_c_preproc_warn_flag
15148    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149  else
15150    ac_cpp_err=
15151  fi
15152else
15153  ac_cpp_err=yes
15154fi
15155if test -z "$ac_cpp_err"; then
15156  ac_header_preproc=yes
15157else
15158  echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161  ac_header_preproc=no
15162fi
15163
15164rm -f conftest.err conftest.$ac_ext
15165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166echo "${ECHO_T}$ac_header_preproc" >&6; }
15167
15168# So?  What about this header?
15169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170  yes:no: )
15171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175    ac_header_preproc=yes
15176    ;;
15177  no:yes:* )
15178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190    ( cat <<\_ASBOX
15191## ------------------------------------ ##
15192## Report this to http://llvm.org/bugs/ ##
15193## ------------------------------------ ##
15194_ASBOX
15195     ) | sed "s/^/$as_me: WARNING:     /" >&2
15196    ;;
15197esac
15198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201  echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203  eval "$as_ac_Header=\$ac_header_preproc"
15204fi
15205ac_res=`eval echo '${'$as_ac_Header'}'`
15206	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15207echo "${ECHO_T}$ac_res" >&6; }
15208
15209fi
15210if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211  cat >>confdefs.h <<_ACEOF
15212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213_ACEOF
15214
15215fi
15216
15217done
15218
15219
15220
15221
15222
15223for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15224do
15225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230  echo $ECHO_N "(cached) $ECHO_C" >&6
15231fi
15232ac_res=`eval echo '${'$as_ac_Header'}'`
15233	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15234echo "${ECHO_T}$ac_res" >&6; }
15235else
15236  # Is the header compilable?
15237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15239cat >conftest.$ac_ext <<_ACEOF
15240/* confdefs.h.  */
15241_ACEOF
15242cat confdefs.h >>conftest.$ac_ext
15243cat >>conftest.$ac_ext <<_ACEOF
15244/* end confdefs.h.  */
15245$ac_includes_default
15246#include <$ac_header>
15247_ACEOF
15248rm -f conftest.$ac_objext
15249if { (ac_try="$ac_compile"
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_compile") 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); } &&
15262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263  { (case "(($ac_try" in
15264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265  *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268  (eval "$ac_try") 2>&5
15269  ac_status=$?
15270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271  (exit $ac_status); }; } &&
15272	 { ac_try='test -s conftest.$ac_objext'
15273  { (case "(($ac_try" in
15274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275  *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278  (eval "$ac_try") 2>&5
15279  ac_status=$?
15280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281  (exit $ac_status); }; }; then
15282  ac_header_compiler=yes
15283else
15284  echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287	ac_header_compiler=no
15288fi
15289
15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15292echo "${ECHO_T}$ac_header_compiler" >&6; }
15293
15294# Is the header present?
15295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15297cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h.  */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h.  */
15303#include <$ac_header>
15304_ACEOF
15305if { (ac_try="$ac_cpp conftest.$ac_ext"
15306case "(($ac_try" in
15307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308  *) ac_try_echo=$ac_try;;
15309esac
15310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15312  ac_status=$?
15313  grep -v '^ *+' conftest.er1 >conftest.err
15314  rm -f conftest.er1
15315  cat conftest.err >&5
15316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317  (exit $ac_status); } >/dev/null; then
15318  if test -s conftest.err; then
15319    ac_cpp_err=$ac_c_preproc_warn_flag
15320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15321  else
15322    ac_cpp_err=
15323  fi
15324else
15325  ac_cpp_err=yes
15326fi
15327if test -z "$ac_cpp_err"; then
15328  ac_header_preproc=yes
15329else
15330  echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333  ac_header_preproc=no
15334fi
15335
15336rm -f conftest.err conftest.$ac_ext
15337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15338echo "${ECHO_T}$ac_header_preproc" >&6; }
15339
15340# So?  What about this header?
15341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15342  yes:no: )
15343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15347    ac_header_preproc=yes
15348    ;;
15349  no:yes:* )
15350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15362    ( cat <<\_ASBOX
15363## ------------------------------------ ##
15364## Report this to http://llvm.org/bugs/ ##
15365## ------------------------------------ ##
15366_ASBOX
15367     ) | sed "s/^/$as_me: WARNING:     /" >&2
15368    ;;
15369esac
15370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373  echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375  eval "$as_ac_Header=\$ac_header_preproc"
15376fi
15377ac_res=`eval echo '${'$as_ac_Header'}'`
15378	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15379echo "${ECHO_T}$ac_res" >&6; }
15380
15381fi
15382if test `eval echo '${'$as_ac_Header'}'` = yes; then
15383  cat >>confdefs.h <<_ACEOF
15384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15385_ACEOF
15386
15387fi
15388
15389done
15390
15391
15392for ac_header in valgrind/valgrind.h
15393do
15394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399  echo $ECHO_N "(cached) $ECHO_C" >&6
15400fi
15401ac_res=`eval echo '${'$as_ac_Header'}'`
15402	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15403echo "${ECHO_T}$ac_res" >&6; }
15404else
15405  # Is the header compilable?
15406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15408cat >conftest.$ac_ext <<_ACEOF
15409/* confdefs.h.  */
15410_ACEOF
15411cat confdefs.h >>conftest.$ac_ext
15412cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h.  */
15414$ac_includes_default
15415#include <$ac_header>
15416_ACEOF
15417rm -f conftest.$ac_objext
15418if { (ac_try="$ac_compile"
15419case "(($ac_try" in
15420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421  *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424  (eval "$ac_compile") 2>conftest.er1
15425  ac_status=$?
15426  grep -v '^ *+' conftest.er1 >conftest.err
15427  rm -f conftest.er1
15428  cat conftest.err >&5
15429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430  (exit $ac_status); } &&
15431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432  { (case "(($ac_try" in
15433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434  *) ac_try_echo=$ac_try;;
15435esac
15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437  (eval "$ac_try") 2>&5
15438  ac_status=$?
15439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440  (exit $ac_status); }; } &&
15441	 { ac_try='test -s conftest.$ac_objext'
15442  { (case "(($ac_try" in
15443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444  *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447  (eval "$ac_try") 2>&5
15448  ac_status=$?
15449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450  (exit $ac_status); }; }; then
15451  ac_header_compiler=yes
15452else
15453  echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456	ac_header_compiler=no
15457fi
15458
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15461echo "${ECHO_T}$ac_header_compiler" >&6; }
15462
15463# Is the header present?
15464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h.  */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h.  */
15472#include <$ac_header>
15473_ACEOF
15474if { (ac_try="$ac_cpp conftest.$ac_ext"
15475case "(($ac_try" in
15476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477  *) ac_try_echo=$ac_try;;
15478esac
15479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481  ac_status=$?
15482  grep -v '^ *+' conftest.er1 >conftest.err
15483  rm -f conftest.er1
15484  cat conftest.err >&5
15485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486  (exit $ac_status); } >/dev/null; then
15487  if test -s conftest.err; then
15488    ac_cpp_err=$ac_c_preproc_warn_flag
15489    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490  else
15491    ac_cpp_err=
15492  fi
15493else
15494  ac_cpp_err=yes
15495fi
15496if test -z "$ac_cpp_err"; then
15497  ac_header_preproc=yes
15498else
15499  echo "$as_me: failed program was:" >&5
15500sed 's/^/| /' conftest.$ac_ext >&5
15501
15502  ac_header_preproc=no
15503fi
15504
15505rm -f conftest.err conftest.$ac_ext
15506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507echo "${ECHO_T}$ac_header_preproc" >&6; }
15508
15509# So?  What about this header?
15510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511  yes:no: )
15512    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15516    ac_header_preproc=yes
15517    ;;
15518  no:yes:* )
15519    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15521    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15522echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15523    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15525    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15526echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15527    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15529    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15531    ( cat <<\_ASBOX
15532## ------------------------------------ ##
15533## Report this to http://llvm.org/bugs/ ##
15534## ------------------------------------ ##
15535_ASBOX
15536     ) | sed "s/^/$as_me: WARNING:     /" >&2
15537    ;;
15538esac
15539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542  echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544  eval "$as_ac_Header=\$ac_header_preproc"
15545fi
15546ac_res=`eval echo '${'$as_ac_Header'}'`
15547	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15548echo "${ECHO_T}$ac_res" >&6; }
15549
15550fi
15551if test `eval echo '${'$as_ac_Header'}'` = yes; then
15552  cat >>confdefs.h <<_ACEOF
15553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15554_ACEOF
15555
15556fi
15557
15558done
15559
15560
15561for ac_header in fenv.h
15562do
15563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568  echo $ECHO_N "(cached) $ECHO_C" >&6
15569fi
15570ac_res=`eval echo '${'$as_ac_Header'}'`
15571	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15572echo "${ECHO_T}$ac_res" >&6; }
15573else
15574  # Is the header compilable?
15575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h.  */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h.  */
15583$ac_includes_default
15584#include <$ac_header>
15585_ACEOF
15586rm -f conftest.$ac_objext
15587if { (ac_try="$ac_compile"
15588case "(($ac_try" in
15589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590  *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593  (eval "$ac_compile") 2>conftest.er1
15594  ac_status=$?
15595  grep -v '^ *+' conftest.er1 >conftest.err
15596  rm -f conftest.er1
15597  cat conftest.err >&5
15598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599  (exit $ac_status); } &&
15600	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601  { (case "(($ac_try" in
15602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603  *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606  (eval "$ac_try") 2>&5
15607  ac_status=$?
15608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609  (exit $ac_status); }; } &&
15610	 { ac_try='test -s conftest.$ac_objext'
15611  { (case "(($ac_try" in
15612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613  *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616  (eval "$ac_try") 2>&5
15617  ac_status=$?
15618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619  (exit $ac_status); }; }; then
15620  ac_header_compiler=yes
15621else
15622  echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625	ac_header_compiler=no
15626fi
15627
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632# Is the header present?
15633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h.  */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h.  */
15641#include <$ac_header>
15642_ACEOF
15643if { (ac_try="$ac_cpp conftest.$ac_ext"
15644case "(($ac_try" in
15645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646  *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650  ac_status=$?
15651  grep -v '^ *+' conftest.er1 >conftest.err
15652  rm -f conftest.er1
15653  cat conftest.err >&5
15654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655  (exit $ac_status); } >/dev/null; then
15656  if test -s conftest.err; then
15657    ac_cpp_err=$ac_c_preproc_warn_flag
15658    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659  else
15660    ac_cpp_err=
15661  fi
15662else
15663  ac_cpp_err=yes
15664fi
15665if test -z "$ac_cpp_err"; then
15666  ac_header_preproc=yes
15667else
15668  echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671  ac_header_preproc=no
15672fi
15673
15674rm -f conftest.err conftest.$ac_ext
15675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678# So?  What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680  yes:no: )
15681    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685    ac_header_preproc=yes
15686    ;;
15687  no:yes:* )
15688    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15691echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15692    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15695echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700    ( cat <<\_ASBOX
15701## ------------------------------------ ##
15702## Report this to http://llvm.org/bugs/ ##
15703## ------------------------------------ ##
15704_ASBOX
15705     ) | sed "s/^/$as_me: WARNING:     /" >&2
15706    ;;
15707esac
15708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711  echo $ECHO_N "(cached) $ECHO_C" >&6
15712else
15713  eval "$as_ac_Header=\$ac_header_preproc"
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718
15719fi
15720if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721  cat >>confdefs.h <<_ACEOF
15722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723_ACEOF
15724
15725fi
15726
15727done
15728
15729if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15730
15731for ac_header in pthread.h
15732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738  echo $ECHO_N "(cached) $ECHO_C" >&6
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743else
15744  # Is the header compilable?
15745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h.  */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h.  */
15753$ac_includes_default
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760  *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763  (eval "$ac_compile") 2>conftest.er1
15764  ac_status=$?
15765  grep -v '^ *+' conftest.er1 >conftest.err
15766  rm -f conftest.er1
15767  cat conftest.err >&5
15768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769  (exit $ac_status); } &&
15770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771  { (case "(($ac_try" in
15772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773  *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776  (eval "$ac_try") 2>&5
15777  ac_status=$?
15778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779  (exit $ac_status); }; } &&
15780	 { ac_try='test -s conftest.$ac_objext'
15781  { (case "(($ac_try" in
15782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783  *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786  (eval "$ac_try") 2>&5
15787  ac_status=$?
15788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789  (exit $ac_status); }; }; then
15790  ac_header_compiler=yes
15791else
15792  echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795	ac_header_compiler=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802# Is the header present?
15803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h.  */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h.  */
15811#include <$ac_header>
15812_ACEOF
15813if { (ac_try="$ac_cpp conftest.$ac_ext"
15814case "(($ac_try" in
15815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816  *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820  ac_status=$?
15821  grep -v '^ *+' conftest.er1 >conftest.err
15822  rm -f conftest.er1
15823  cat conftest.err >&5
15824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825  (exit $ac_status); } >/dev/null; then
15826  if test -s conftest.err; then
15827    ac_cpp_err=$ac_c_preproc_warn_flag
15828    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829  else
15830    ac_cpp_err=
15831  fi
15832else
15833  ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836  ac_header_preproc=yes
15837else
15838  echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841  ac_header_preproc=no
15842fi
15843
15844rm -f conftest.err conftest.$ac_ext
15845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848# So?  What about this header?
15849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850  yes:no: )
15851    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855    ac_header_preproc=yes
15856    ;;
15857  no:yes:* )
15858    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15861echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15862    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15865echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870    ( cat <<\_ASBOX
15871## ------------------------------------ ##
15872## Report this to http://llvm.org/bugs/ ##
15873## ------------------------------------ ##
15874_ASBOX
15875     ) | sed "s/^/$as_me: WARNING:     /" >&2
15876    ;;
15877esac
15878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881  echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883  eval "$as_ac_Header=\$ac_header_preproc"
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891  cat >>confdefs.h <<_ACEOF
15892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893_ACEOF
15894 HAVE_PTHREAD=1
15895
15896else
15897  HAVE_PTHREAD=0
15898
15899fi
15900
15901done
15902
15903else
15904  HAVE_PTHREAD=0
15905
15906fi
15907
15908if test "$llvm_cv_enable_libffi" = "yes" ; then
15909
15910
15911for ac_header in ffi.h ffi/ffi.h
15912do
15913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918  echo $ECHO_N "(cached) $ECHO_C" >&6
15919fi
15920ac_res=`eval echo '${'$as_ac_Header'}'`
15921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15922echo "${ECHO_T}$ac_res" >&6; }
15923else
15924  # Is the header compilable?
15925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h.  */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h.  */
15933$ac_includes_default
15934#include <$ac_header>
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (ac_try="$ac_compile"
15938case "(($ac_try" in
15939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940  *) ac_try_echo=$ac_try;;
15941esac
15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943  (eval "$ac_compile") 2>conftest.er1
15944  ac_status=$?
15945  grep -v '^ *+' conftest.er1 >conftest.err
15946  rm -f conftest.er1
15947  cat conftest.err >&5
15948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949  (exit $ac_status); } &&
15950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951  { (case "(($ac_try" in
15952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953  *) ac_try_echo=$ac_try;;
15954esac
15955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956  (eval "$ac_try") 2>&5
15957  ac_status=$?
15958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959  (exit $ac_status); }; } &&
15960	 { ac_try='test -s conftest.$ac_objext'
15961  { (case "(($ac_try" in
15962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963  *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966  (eval "$ac_try") 2>&5
15967  ac_status=$?
15968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969  (exit $ac_status); }; }; then
15970  ac_header_compiler=yes
15971else
15972  echo "$as_me: failed program was:" >&5
15973sed 's/^/| /' conftest.$ac_ext >&5
15974
15975	ac_header_compiler=no
15976fi
15977
15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980echo "${ECHO_T}$ac_header_compiler" >&6; }
15981
15982# Is the header present?
15983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h.  */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h.  */
15991#include <$ac_header>
15992_ACEOF
15993if { (ac_try="$ac_cpp conftest.$ac_ext"
15994case "(($ac_try" in
15995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996  *) ac_try_echo=$ac_try;;
15997esac
15998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000  ac_status=$?
16001  grep -v '^ *+' conftest.er1 >conftest.err
16002  rm -f conftest.er1
16003  cat conftest.err >&5
16004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005  (exit $ac_status); } >/dev/null; then
16006  if test -s conftest.err; then
16007    ac_cpp_err=$ac_c_preproc_warn_flag
16008    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009  else
16010    ac_cpp_err=
16011  fi
16012else
16013  ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016  ac_header_preproc=yes
16017else
16018  echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021  ac_header_preproc=no
16022fi
16023
16024rm -f conftest.err conftest.$ac_ext
16025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026echo "${ECHO_T}$ac_header_preproc" >&6; }
16027
16028# So?  What about this header?
16029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030  yes:no: )
16031    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035    ac_header_preproc=yes
16036    ;;
16037  no:yes:* )
16038    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16041echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16042    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16045echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050    ( cat <<\_ASBOX
16051## ------------------------------------ ##
16052## Report this to http://llvm.org/bugs/ ##
16053## ------------------------------------ ##
16054_ASBOX
16055     ) | sed "s/^/$as_me: WARNING:     /" >&2
16056    ;;
16057esac
16058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061  echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063  eval "$as_ac_Header=\$ac_header_preproc"
16064fi
16065ac_res=`eval echo '${'$as_ac_Header'}'`
16066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16067echo "${ECHO_T}$ac_res" >&6; }
16068
16069fi
16070if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071  cat >>confdefs.h <<_ACEOF
16072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073_ACEOF
16074
16075fi
16076
16077done
16078
16079fi
16080
16081
16082for ac_header in CrashReporterClient.h
16083do
16084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089  echo $ECHO_N "(cached) $ECHO_C" >&6
16090fi
16091ac_res=`eval echo '${'$as_ac_Header'}'`
16092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16093echo "${ECHO_T}$ac_res" >&6; }
16094else
16095  # Is the header compilable?
16096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h.  */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h.  */
16104$ac_includes_default
16105#include <$ac_header>
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (ac_try="$ac_compile"
16109case "(($ac_try" in
16110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111  *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114  (eval "$ac_compile") 2>conftest.er1
16115  ac_status=$?
16116  grep -v '^ *+' conftest.er1 >conftest.err
16117  rm -f conftest.er1
16118  cat conftest.err >&5
16119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120  (exit $ac_status); } &&
16121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122  { (case "(($ac_try" in
16123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124  *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127  (eval "$ac_try") 2>&5
16128  ac_status=$?
16129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130  (exit $ac_status); }; } &&
16131	 { ac_try='test -s conftest.$ac_objext'
16132  { (case "(($ac_try" in
16133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134  *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137  (eval "$ac_try") 2>&5
16138  ac_status=$?
16139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140  (exit $ac_status); }; }; then
16141  ac_header_compiler=yes
16142else
16143  echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146	ac_header_compiler=no
16147fi
16148
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153# Is the header present?
16154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h.  */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h.  */
16162#include <$ac_header>
16163_ACEOF
16164if { (ac_try="$ac_cpp conftest.$ac_ext"
16165case "(($ac_try" in
16166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167  *) ac_try_echo=$ac_try;;
16168esac
16169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171  ac_status=$?
16172  grep -v '^ *+' conftest.er1 >conftest.err
16173  rm -f conftest.er1
16174  cat conftest.err >&5
16175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176  (exit $ac_status); } >/dev/null; then
16177  if test -s conftest.err; then
16178    ac_cpp_err=$ac_c_preproc_warn_flag
16179    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180  else
16181    ac_cpp_err=
16182  fi
16183else
16184  ac_cpp_err=yes
16185fi
16186if test -z "$ac_cpp_err"; then
16187  ac_header_preproc=yes
16188else
16189  echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192  ac_header_preproc=no
16193fi
16194
16195rm -f conftest.err conftest.$ac_ext
16196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199# So?  What about this header?
16200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201  yes:no: )
16202    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206    ac_header_preproc=yes
16207    ;;
16208  no:yes:* )
16209    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16212echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16213    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16216echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221    ( cat <<\_ASBOX
16222## ------------------------------------ ##
16223## Report this to http://llvm.org/bugs/ ##
16224## ------------------------------------ ##
16225_ASBOX
16226     ) | sed "s/^/$as_me: WARNING:     /" >&2
16227    ;;
16228esac
16229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232  echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234  eval "$as_ac_Header=\$ac_header_preproc"
16235fi
16236ac_res=`eval echo '${'$as_ac_Header'}'`
16237	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16238echo "${ECHO_T}$ac_res" >&6; }
16239
16240fi
16241if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242  cat >>confdefs.h <<_ACEOF
16243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16244_ACEOF
16245
16246fi
16247
16248done
16249
16250
16251{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16252echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16253cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h.  */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h.  */
16259extern const char *__crashreporter_info__;
16260      int main() {
16261        __crashreporter_info__ = "test";
16262        return 0;
16263      }
16264
16265_ACEOF
16266rm -f conftest.$ac_objext conftest$ac_exeext
16267if { (ac_try="$ac_link"
16268case "(($ac_try" in
16269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270  *) ac_try_echo=$ac_try;;
16271esac
16272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273  (eval "$ac_link") 2>conftest.er1
16274  ac_status=$?
16275  grep -v '^ *+' conftest.er1 >conftest.err
16276  rm -f conftest.er1
16277  cat conftest.err >&5
16278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279  (exit $ac_status); } &&
16280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281  { (case "(($ac_try" in
16282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283  *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286  (eval "$ac_try") 2>&5
16287  ac_status=$?
16288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289  (exit $ac_status); }; } &&
16290	 { ac_try='test -s conftest$ac_exeext'
16291  { (case "(($ac_try" in
16292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293  *) ac_try_echo=$ac_try;;
16294esac
16295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296  (eval "$ac_try") 2>&5
16297  ac_status=$?
16298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299  (exit $ac_status); }; }; then
16300  { echo "$as_me:$LINENO: result: yes" >&5
16301echo "${ECHO_T}yes" >&6; }
16302
16303cat >>confdefs.h <<\_ACEOF
16304#define HAVE_CRASHREPORTER_INFO 1
16305_ACEOF
16306
16307else
16308  echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311	{ echo "$as_me:$LINENO: result: no" >&5
16312echo "${ECHO_T}no" >&6; }
16313
16314cat >>confdefs.h <<\_ACEOF
16315#define HAVE_CRASHREPORTER_INFO 0
16316_ACEOF
16317
16318fi
16319
16320rm -f core conftest.err conftest.$ac_objext \
16321      conftest$ac_exeext conftest.$ac_ext
16322
16323
16324
16325
16326  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16327echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16328if test "${ac_cv_huge_val_sanity+set}" = set; then
16329  echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
16331
16332    ac_ext=cpp
16333ac_cpp='$CXXCPP $CPPFLAGS'
16334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16337
16338    ac_save_CXXFLAGS=$CXXFLAGS
16339    CXXFLAGS="$CXXFLAGS -pedantic"
16340    if test "$cross_compiling" = yes; then
16341  ac_cv_huge_val_sanity=yes
16342else
16343  cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h.  */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h.  */
16349#include <math.h>
16350int
16351main ()
16352{
16353double x = HUGE_VAL; return x != x;
16354  ;
16355  return 0;
16356}
16357_ACEOF
16358rm -f conftest$ac_exeext
16359if { (ac_try="$ac_link"
16360case "(($ac_try" in
16361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362  *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365  (eval "$ac_link") 2>&5
16366  ac_status=$?
16367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369  { (case "(($ac_try" in
16370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371  *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374  (eval "$ac_try") 2>&5
16375  ac_status=$?
16376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377  (exit $ac_status); }; }; then
16378  ac_cv_huge_val_sanity=yes
16379else
16380  echo "$as_me: program exited with status $ac_status" >&5
16381echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384( exit $ac_status )
16385ac_cv_huge_val_sanity=no
16386fi
16387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16388fi
16389
16390
16391    CXXFLAGS=$ac_save_CXXFLAGS
16392    ac_ext=c
16393ac_cpp='$CPP $CPPFLAGS'
16394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396ac_compiler_gnu=$ac_cv_c_compiler_gnu
16397
16398
16399fi
16400{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16401echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16402  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16403
16404
16405{ echo "$as_me:$LINENO: checking for pid_t" >&5
16406echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16407if test "${ac_cv_type_pid_t+set}" = set; then
16408  echo $ECHO_N "(cached) $ECHO_C" >&6
16409else
16410  cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h.  */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h.  */
16416$ac_includes_default
16417typedef pid_t ac__type_new_;
16418int
16419main ()
16420{
16421if ((ac__type_new_ *) 0)
16422  return 0;
16423if (sizeof (ac__type_new_))
16424  return 0;
16425  ;
16426  return 0;
16427}
16428_ACEOF
16429rm -f conftest.$ac_objext
16430if { (ac_try="$ac_compile"
16431case "(($ac_try" in
16432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433  *) ac_try_echo=$ac_try;;
16434esac
16435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436  (eval "$ac_compile") 2>conftest.er1
16437  ac_status=$?
16438  grep -v '^ *+' conftest.er1 >conftest.err
16439  rm -f conftest.er1
16440  cat conftest.err >&5
16441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442  (exit $ac_status); } &&
16443	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16444  { (case "(($ac_try" in
16445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446  *) ac_try_echo=$ac_try;;
16447esac
16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449  (eval "$ac_try") 2>&5
16450  ac_status=$?
16451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452  (exit $ac_status); }; } &&
16453	 { ac_try='test -s conftest.$ac_objext'
16454  { (case "(($ac_try" in
16455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456  *) ac_try_echo=$ac_try;;
16457esac
16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459  (eval "$ac_try") 2>&5
16460  ac_status=$?
16461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462  (exit $ac_status); }; }; then
16463  ac_cv_type_pid_t=yes
16464else
16465  echo "$as_me: failed program was:" >&5
16466sed 's/^/| /' conftest.$ac_ext >&5
16467
16468	ac_cv_type_pid_t=no
16469fi
16470
16471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472fi
16473{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16474echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16475if test $ac_cv_type_pid_t = yes; then
16476  :
16477else
16478
16479cat >>confdefs.h <<_ACEOF
16480#define pid_t int
16481_ACEOF
16482
16483fi
16484
16485{ echo "$as_me:$LINENO: checking for size_t" >&5
16486echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16487if test "${ac_cv_type_size_t+set}" = set; then
16488  echo $ECHO_N "(cached) $ECHO_C" >&6
16489else
16490  cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h.  */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h.  */
16496$ac_includes_default
16497typedef size_t ac__type_new_;
16498int
16499main ()
16500{
16501if ((ac__type_new_ *) 0)
16502  return 0;
16503if (sizeof (ac__type_new_))
16504  return 0;
16505  ;
16506  return 0;
16507}
16508_ACEOF
16509rm -f conftest.$ac_objext
16510if { (ac_try="$ac_compile"
16511case "(($ac_try" in
16512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513  *) ac_try_echo=$ac_try;;
16514esac
16515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516  (eval "$ac_compile") 2>conftest.er1
16517  ac_status=$?
16518  grep -v '^ *+' conftest.er1 >conftest.err
16519  rm -f conftest.er1
16520  cat conftest.err >&5
16521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522  (exit $ac_status); } &&
16523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524  { (case "(($ac_try" in
16525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526  *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529  (eval "$ac_try") 2>&5
16530  ac_status=$?
16531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532  (exit $ac_status); }; } &&
16533	 { ac_try='test -s conftest.$ac_objext'
16534  { (case "(($ac_try" in
16535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536  *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539  (eval "$ac_try") 2>&5
16540  ac_status=$?
16541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542  (exit $ac_status); }; }; then
16543  ac_cv_type_size_t=yes
16544else
16545  echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548	ac_cv_type_size_t=no
16549fi
16550
16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552fi
16553{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16554echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16555if test $ac_cv_type_size_t = yes; then
16556  :
16557else
16558
16559cat >>confdefs.h <<_ACEOF
16560#define size_t unsigned int
16561_ACEOF
16562
16563fi
16564
16565
16566cat >>confdefs.h <<_ACEOF
16567#define RETSIGTYPE void
16568_ACEOF
16569
16570{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16571echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16572if test "${ac_cv_struct_tm+set}" = set; then
16573  echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575  cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h.  */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h.  */
16581#include <sys/types.h>
16582#include <time.h>
16583
16584int
16585main ()
16586{
16587struct tm *tp; tp->tm_sec;
16588  ;
16589  return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (ac_try="$ac_compile"
16594case "(($ac_try" in
16595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596  *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599  (eval "$ac_compile") 2>conftest.er1
16600  ac_status=$?
16601  grep -v '^ *+' conftest.er1 >conftest.err
16602  rm -f conftest.er1
16603  cat conftest.err >&5
16604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605  (exit $ac_status); } &&
16606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607  { (case "(($ac_try" in
16608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609  *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612  (eval "$ac_try") 2>&5
16613  ac_status=$?
16614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615  (exit $ac_status); }; } &&
16616	 { ac_try='test -s conftest.$ac_objext'
16617  { (case "(($ac_try" in
16618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619  *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622  (eval "$ac_try") 2>&5
16623  ac_status=$?
16624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625  (exit $ac_status); }; }; then
16626  ac_cv_struct_tm=time.h
16627else
16628  echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631	ac_cv_struct_tm=sys/time.h
16632fi
16633
16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635fi
16636{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16637echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16638if test $ac_cv_struct_tm = sys/time.h; then
16639
16640cat >>confdefs.h <<\_ACEOF
16641#define TM_IN_SYS_TIME 1
16642_ACEOF
16643
16644fi
16645
16646{ echo "$as_me:$LINENO: checking for int64_t" >&5
16647echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16648if test "${ac_cv_type_int64_t+set}" = set; then
16649  echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651  cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h.  */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h.  */
16657$ac_includes_default
16658typedef int64_t ac__type_new_;
16659int
16660main ()
16661{
16662if ((ac__type_new_ *) 0)
16663  return 0;
16664if (sizeof (ac__type_new_))
16665  return 0;
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext
16671if { (ac_try="$ac_compile"
16672case "(($ac_try" in
16673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674  *) ac_try_echo=$ac_try;;
16675esac
16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677  (eval "$ac_compile") 2>conftest.er1
16678  ac_status=$?
16679  grep -v '^ *+' conftest.er1 >conftest.err
16680  rm -f conftest.er1
16681  cat conftest.err >&5
16682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683  (exit $ac_status); } &&
16684	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685  { (case "(($ac_try" in
16686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687  *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690  (eval "$ac_try") 2>&5
16691  ac_status=$?
16692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693  (exit $ac_status); }; } &&
16694	 { ac_try='test -s conftest.$ac_objext'
16695  { (case "(($ac_try" in
16696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697  *) ac_try_echo=$ac_try;;
16698esac
16699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700  (eval "$ac_try") 2>&5
16701  ac_status=$?
16702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703  (exit $ac_status); }; }; then
16704  ac_cv_type_int64_t=yes
16705else
16706  echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709	ac_cv_type_int64_t=no
16710fi
16711
16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713fi
16714{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16715echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16716if test $ac_cv_type_int64_t = yes; then
16717
16718cat >>confdefs.h <<_ACEOF
16719#define HAVE_INT64_T 1
16720_ACEOF
16721
16722
16723else
16724  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16725echo "$as_me: error: Type int64_t required but not found" >&2;}
16726   { (exit 1); exit 1; }; }
16727fi
16728
16729{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16730echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16731if test "${ac_cv_type_uint64_t+set}" = set; then
16732  echo $ECHO_N "(cached) $ECHO_C" >&6
16733else
16734  cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h.  */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h.  */
16740$ac_includes_default
16741typedef uint64_t ac__type_new_;
16742int
16743main ()
16744{
16745if ((ac__type_new_ *) 0)
16746  return 0;
16747if (sizeof (ac__type_new_))
16748  return 0;
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext
16754if { (ac_try="$ac_compile"
16755case "(($ac_try" in
16756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757  *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760  (eval "$ac_compile") 2>conftest.er1
16761  ac_status=$?
16762  grep -v '^ *+' conftest.er1 >conftest.err
16763  rm -f conftest.er1
16764  cat conftest.err >&5
16765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766  (exit $ac_status); } &&
16767	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768  { (case "(($ac_try" in
16769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770  *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773  (eval "$ac_try") 2>&5
16774  ac_status=$?
16775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776  (exit $ac_status); }; } &&
16777	 { ac_try='test -s conftest.$ac_objext'
16778  { (case "(($ac_try" in
16779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780  *) ac_try_echo=$ac_try;;
16781esac
16782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783  (eval "$ac_try") 2>&5
16784  ac_status=$?
16785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786  (exit $ac_status); }; }; then
16787  ac_cv_type_uint64_t=yes
16788else
16789  echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792	ac_cv_type_uint64_t=no
16793fi
16794
16795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796fi
16797{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16798echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16799if test $ac_cv_type_uint64_t = yes; then
16800
16801cat >>confdefs.h <<_ACEOF
16802#define HAVE_UINT64_T 1
16803_ACEOF
16804
16805
16806else
16807  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16808echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16809if test "${ac_cv_type_u_int64_t+set}" = set; then
16810  echo $ECHO_N "(cached) $ECHO_C" >&6
16811else
16812  cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h.  */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h.  */
16818$ac_includes_default
16819typedef u_int64_t ac__type_new_;
16820int
16821main ()
16822{
16823if ((ac__type_new_ *) 0)
16824  return 0;
16825if (sizeof (ac__type_new_))
16826  return 0;
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (ac_try="$ac_compile"
16833case "(($ac_try" in
16834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835  *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838  (eval "$ac_compile") 2>conftest.er1
16839  ac_status=$?
16840  grep -v '^ *+' conftest.er1 >conftest.err
16841  rm -f conftest.er1
16842  cat conftest.err >&5
16843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844  (exit $ac_status); } &&
16845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16846  { (case "(($ac_try" in
16847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848  *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851  (eval "$ac_try") 2>&5
16852  ac_status=$?
16853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854  (exit $ac_status); }; } &&
16855	 { ac_try='test -s conftest.$ac_objext'
16856  { (case "(($ac_try" in
16857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858  *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861  (eval "$ac_try") 2>&5
16862  ac_status=$?
16863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864  (exit $ac_status); }; }; then
16865  ac_cv_type_u_int64_t=yes
16866else
16867  echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870	ac_cv_type_u_int64_t=no
16871fi
16872
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874fi
16875{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16876echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16877if test $ac_cv_type_u_int64_t = yes; then
16878
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_U_INT64_T 1
16881_ACEOF
16882
16883
16884else
16885  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16886echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16887   { (exit 1); exit 1; }; }
16888fi
16889
16890fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16902do
16903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16907  echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909  cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h.  */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h.  */
16915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16917#define $ac_func innocuous_$ac_func
16918
16919/* System header to define __stub macros and hopefully few prototypes,
16920    which can conflict with char $ac_func (); below.
16921    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922    <limits.h> exists even on freestanding compilers.  */
16923
16924#ifdef __STDC__
16925# include <limits.h>
16926#else
16927# include <assert.h>
16928#endif
16929
16930#undef $ac_func
16931
16932/* Override any GCC internal prototype to avoid an error.
16933   Use char because int might match the return type of a GCC
16934   builtin and then its argument prototype would still apply.  */
16935#ifdef __cplusplus
16936extern "C"
16937#endif
16938char $ac_func ();
16939/* The GNU C library defines this for functions which it implements
16940    to always fail with ENOSYS.  Some functions are actually named
16941    something starting with __ and the normal name is an alias.  */
16942#if defined __stub_$ac_func || defined __stub___$ac_func
16943choke me
16944#endif
16945
16946int
16947main ()
16948{
16949return $ac_func ();
16950  ;
16951  return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext conftest$ac_exeext
16955if { (ac_try="$ac_link"
16956case "(($ac_try" in
16957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958  *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961  (eval "$ac_link") 2>conftest.er1
16962  ac_status=$?
16963  grep -v '^ *+' conftest.er1 >conftest.err
16964  rm -f conftest.er1
16965  cat conftest.err >&5
16966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967  (exit $ac_status); } &&
16968	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16969  { (case "(($ac_try" in
16970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971  *) ac_try_echo=$ac_try;;
16972esac
16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974  (eval "$ac_try") 2>&5
16975  ac_status=$?
16976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977  (exit $ac_status); }; } &&
16978	 { ac_try='test -s conftest$ac_exeext'
16979  { (case "(($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_try") 2>&5
16985  ac_status=$?
16986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987  (exit $ac_status); }; }; then
16988  eval "$as_ac_var=yes"
16989else
16990  echo "$as_me: failed program was:" >&5
16991sed 's/^/| /' conftest.$ac_ext >&5
16992
16993	eval "$as_ac_var=no"
16994fi
16995
16996rm -f core conftest.err conftest.$ac_objext \
16997      conftest$ac_exeext conftest.$ac_ext
16998fi
16999ac_res=`eval echo '${'$as_ac_var'}'`
17000	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17001echo "${ECHO_T}$ac_res" >&6; }
17002if test `eval echo '${'$as_ac_var'}'` = yes; then
17003  cat >>confdefs.h <<_ACEOF
17004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17005_ACEOF
17006
17007fi
17008done
17009
17010
17011
17012
17013
17014for ac_func in powf fmodf strtof round
17015do
17016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17020  echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022  cat >conftest.$ac_ext <<_ACEOF
17023/* confdefs.h.  */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h.  */
17028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17030#define $ac_func innocuous_$ac_func
17031
17032/* System header to define __stub macros and hopefully few prototypes,
17033    which can conflict with char $ac_func (); below.
17034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035    <limits.h> exists even on freestanding compilers.  */
17036
17037#ifdef __STDC__
17038# include <limits.h>
17039#else
17040# include <assert.h>
17041#endif
17042
17043#undef $ac_func
17044
17045/* Override any GCC internal prototype to avoid an error.
17046   Use char because int might match the return type of a GCC
17047   builtin and then its argument prototype would still apply.  */
17048#ifdef __cplusplus
17049extern "C"
17050#endif
17051char $ac_func ();
17052/* The GNU C library defines this for functions which it implements
17053    to always fail with ENOSYS.  Some functions are actually named
17054    something starting with __ and the normal name is an alias.  */
17055#if defined __stub_$ac_func || defined __stub___$ac_func
17056choke me
17057#endif
17058
17059int
17060main ()
17061{
17062return $ac_func ();
17063  ;
17064  return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext conftest$ac_exeext
17068if { (ac_try="$ac_link"
17069case "(($ac_try" in
17070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071  *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074  (eval "$ac_link") 2>conftest.er1
17075  ac_status=$?
17076  grep -v '^ *+' conftest.er1 >conftest.err
17077  rm -f conftest.er1
17078  cat conftest.err >&5
17079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080  (exit $ac_status); } &&
17081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082  { (case "(($ac_try" in
17083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084  *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087  (eval "$ac_try") 2>&5
17088  ac_status=$?
17089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090  (exit $ac_status); }; } &&
17091	 { ac_try='test -s conftest$ac_exeext'
17092  { (case "(($ac_try" in
17093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094  *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097  (eval "$ac_try") 2>&5
17098  ac_status=$?
17099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100  (exit $ac_status); }; }; then
17101  eval "$as_ac_var=yes"
17102else
17103  echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106	eval "$as_ac_var=no"
17107fi
17108
17109rm -f core conftest.err conftest.$ac_objext \
17110      conftest$ac_exeext conftest.$ac_ext
17111fi
17112ac_res=`eval echo '${'$as_ac_var'}'`
17113	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17114echo "${ECHO_T}$ac_res" >&6; }
17115if test `eval echo '${'$as_ac_var'}'` = yes; then
17116  cat >>confdefs.h <<_ACEOF
17117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17118_ACEOF
17119
17120fi
17121done
17122
17123
17124
17125
17126
17127
17128for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17129do
17130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134  echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136  cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h.  */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h.  */
17142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17144#define $ac_func innocuous_$ac_func
17145
17146/* System header to define __stub macros and hopefully few prototypes,
17147    which can conflict with char $ac_func (); below.
17148    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149    <limits.h> exists even on freestanding compilers.  */
17150
17151#ifdef __STDC__
17152# include <limits.h>
17153#else
17154# include <assert.h>
17155#endif
17156
17157#undef $ac_func
17158
17159/* Override any GCC internal prototype to avoid an error.
17160   Use char because int might match the return type of a GCC
17161   builtin and then its argument prototype would still apply.  */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165char $ac_func ();
17166/* The GNU C library defines this for functions which it implements
17167    to always fail with ENOSYS.  Some functions are actually named
17168    something starting with __ and the normal name is an alias.  */
17169#if defined __stub_$ac_func || defined __stub___$ac_func
17170choke me
17171#endif
17172
17173int
17174main ()
17175{
17176return $ac_func ();
17177  ;
17178  return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext conftest$ac_exeext
17182if { (ac_try="$ac_link"
17183case "(($ac_try" in
17184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185  *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188  (eval "$ac_link") 2>conftest.er1
17189  ac_status=$?
17190  grep -v '^ *+' conftest.er1 >conftest.err
17191  rm -f conftest.er1
17192  cat conftest.err >&5
17193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194  (exit $ac_status); } &&
17195	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196  { (case "(($ac_try" in
17197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198  *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201  (eval "$ac_try") 2>&5
17202  ac_status=$?
17203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204  (exit $ac_status); }; } &&
17205	 { ac_try='test -s conftest$ac_exeext'
17206  { (case "(($ac_try" in
17207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208  *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211  (eval "$ac_try") 2>&5
17212  ac_status=$?
17213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214  (exit $ac_status); }; }; then
17215  eval "$as_ac_var=yes"
17216else
17217  echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220	eval "$as_ac_var=no"
17221fi
17222
17223rm -f core conftest.err conftest.$ac_objext \
17224      conftest$ac_exeext conftest.$ac_ext
17225fi
17226ac_res=`eval echo '${'$as_ac_var'}'`
17227	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17228echo "${ECHO_T}$ac_res" >&6; }
17229if test `eval echo '${'$as_ac_var'}'` = yes; then
17230  cat >>confdefs.h <<_ACEOF
17231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17232_ACEOF
17233
17234fi
17235done
17236
17237
17238
17239
17240for ac_func in isatty mkdtemp mkstemp
17241do
17242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246  echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
17248  cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h.  */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h.  */
17254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256#define $ac_func innocuous_$ac_func
17257
17258/* System header to define __stub macros and hopefully few prototypes,
17259    which can conflict with char $ac_func (); below.
17260    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261    <limits.h> exists even on freestanding compilers.  */
17262
17263#ifdef __STDC__
17264# include <limits.h>
17265#else
17266# include <assert.h>
17267#endif
17268
17269#undef $ac_func
17270
17271/* Override any GCC internal prototype to avoid an error.
17272   Use char because int might match the return type of a GCC
17273   builtin and then its argument prototype would still apply.  */
17274#ifdef __cplusplus
17275extern "C"
17276#endif
17277char $ac_func ();
17278/* The GNU C library defines this for functions which it implements
17279    to always fail with ENOSYS.  Some functions are actually named
17280    something starting with __ and the normal name is an alias.  */
17281#if defined __stub_$ac_func || defined __stub___$ac_func
17282choke me
17283#endif
17284
17285int
17286main ()
17287{
17288return $ac_func ();
17289  ;
17290  return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext conftest$ac_exeext
17294if { (ac_try="$ac_link"
17295case "(($ac_try" in
17296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297  *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300  (eval "$ac_link") 2>conftest.er1
17301  ac_status=$?
17302  grep -v '^ *+' conftest.er1 >conftest.err
17303  rm -f conftest.er1
17304  cat conftest.err >&5
17305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306  (exit $ac_status); } &&
17307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308  { (case "(($ac_try" in
17309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310  *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313  (eval "$ac_try") 2>&5
17314  ac_status=$?
17315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316  (exit $ac_status); }; } &&
17317	 { ac_try='test -s conftest$ac_exeext'
17318  { (case "(($ac_try" in
17319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320  *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323  (eval "$ac_try") 2>&5
17324  ac_status=$?
17325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326  (exit $ac_status); }; }; then
17327  eval "$as_ac_var=yes"
17328else
17329  echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332	eval "$as_ac_var=no"
17333fi
17334
17335rm -f core conftest.err conftest.$ac_objext \
17336      conftest$ac_exeext conftest.$ac_ext
17337fi
17338ac_res=`eval echo '${'$as_ac_var'}'`
17339	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17340echo "${ECHO_T}$ac_res" >&6; }
17341if test `eval echo '${'$as_ac_var'}'` = yes; then
17342  cat >>confdefs.h <<_ACEOF
17343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17344_ACEOF
17345
17346fi
17347done
17348
17349
17350
17351
17352
17353
17354
17355
17356for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17357do
17358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17362  echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364  cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h.  */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h.  */
17370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17372#define $ac_func innocuous_$ac_func
17373
17374/* System header to define __stub macros and hopefully few prototypes,
17375    which can conflict with char $ac_func (); below.
17376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377    <limits.h> exists even on freestanding compilers.  */
17378
17379#ifdef __STDC__
17380# include <limits.h>
17381#else
17382# include <assert.h>
17383#endif
17384
17385#undef $ac_func
17386
17387/* Override any GCC internal prototype to avoid an error.
17388   Use char because int might match the return type of a GCC
17389   builtin and then its argument prototype would still apply.  */
17390#ifdef __cplusplus
17391extern "C"
17392#endif
17393char $ac_func ();
17394/* The GNU C library defines this for functions which it implements
17395    to always fail with ENOSYS.  Some functions are actually named
17396    something starting with __ and the normal name is an alias.  */
17397#if defined __stub_$ac_func || defined __stub___$ac_func
17398choke me
17399#endif
17400
17401int
17402main ()
17403{
17404return $ac_func ();
17405  ;
17406  return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext conftest$ac_exeext
17410if { (ac_try="$ac_link"
17411case "(($ac_try" in
17412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413  *) ac_try_echo=$ac_try;;
17414esac
17415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416  (eval "$ac_link") 2>conftest.er1
17417  ac_status=$?
17418  grep -v '^ *+' conftest.er1 >conftest.err
17419  rm -f conftest.er1
17420  cat conftest.err >&5
17421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422  (exit $ac_status); } &&
17423	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17424  { (case "(($ac_try" in
17425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426  *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429  (eval "$ac_try") 2>&5
17430  ac_status=$?
17431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432  (exit $ac_status); }; } &&
17433	 { ac_try='test -s conftest$ac_exeext'
17434  { (case "(($ac_try" in
17435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436  *) ac_try_echo=$ac_try;;
17437esac
17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439  (eval "$ac_try") 2>&5
17440  ac_status=$?
17441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442  (exit $ac_status); }; }; then
17443  eval "$as_ac_var=yes"
17444else
17445  echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
17448	eval "$as_ac_var=no"
17449fi
17450
17451rm -f core conftest.err conftest.$ac_objext \
17452      conftest$ac_exeext conftest.$ac_ext
17453fi
17454ac_res=`eval echo '${'$as_ac_var'}'`
17455	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17456echo "${ECHO_T}$ac_res" >&6; }
17457if test `eval echo '${'$as_ac_var'}'` = yes; then
17458  cat >>confdefs.h <<_ACEOF
17459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460_ACEOF
17461
17462fi
17463done
17464
17465
17466
17467
17468
17469for ac_func in strerror strerror_r setenv arc4random
17470do
17471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475  echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477  cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h.  */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h.  */
17483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485#define $ac_func innocuous_$ac_func
17486
17487/* System header to define __stub macros and hopefully few prototypes,
17488    which can conflict with char $ac_func (); below.
17489    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490    <limits.h> exists even on freestanding compilers.  */
17491
17492#ifdef __STDC__
17493# include <limits.h>
17494#else
17495# include <assert.h>
17496#endif
17497
17498#undef $ac_func
17499
17500/* Override any GCC internal prototype to avoid an error.
17501   Use char because int might match the return type of a GCC
17502   builtin and then its argument prototype would still apply.  */
17503#ifdef __cplusplus
17504extern "C"
17505#endif
17506char $ac_func ();
17507/* The GNU C library defines this for functions which it implements
17508    to always fail with ENOSYS.  Some functions are actually named
17509    something starting with __ and the normal name is an alias.  */
17510#if defined __stub_$ac_func || defined __stub___$ac_func
17511choke me
17512#endif
17513
17514int
17515main ()
17516{
17517return $ac_func ();
17518  ;
17519  return 0;
17520}
17521_ACEOF
17522rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526  *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529  (eval "$ac_link") 2>conftest.er1
17530  ac_status=$?
17531  grep -v '^ *+' conftest.er1 >conftest.err
17532  rm -f conftest.er1
17533  cat conftest.err >&5
17534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535  (exit $ac_status); } &&
17536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537  { (case "(($ac_try" in
17538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539  *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542  (eval "$ac_try") 2>&5
17543  ac_status=$?
17544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545  (exit $ac_status); }; } &&
17546	 { ac_try='test -s conftest$ac_exeext'
17547  { (case "(($ac_try" in
17548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549  *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552  (eval "$ac_try") 2>&5
17553  ac_status=$?
17554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555  (exit $ac_status); }; }; then
17556  eval "$as_ac_var=yes"
17557else
17558  echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561	eval "$as_ac_var=no"
17562fi
17563
17564rm -f core conftest.err conftest.$ac_objext \
17565      conftest$ac_exeext conftest.$ac_ext
17566fi
17567ac_res=`eval echo '${'$as_ac_var'}'`
17568	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17569echo "${ECHO_T}$ac_res" >&6; }
17570if test `eval echo '${'$as_ac_var'}'` = yes; then
17571  cat >>confdefs.h <<_ACEOF
17572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17573_ACEOF
17574
17575fi
17576done
17577
17578
17579
17580
17581
17582for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17583do
17584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17585{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17588  echo $ECHO_N "(cached) $ECHO_C" >&6
17589else
17590  cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h.  */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h.  */
17596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17598#define $ac_func innocuous_$ac_func
17599
17600/* System header to define __stub macros and hopefully few prototypes,
17601    which can conflict with char $ac_func (); below.
17602    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603    <limits.h> exists even on freestanding compilers.  */
17604
17605#ifdef __STDC__
17606# include <limits.h>
17607#else
17608# include <assert.h>
17609#endif
17610
17611#undef $ac_func
17612
17613/* Override any GCC internal prototype to avoid an error.
17614   Use char because int might match the return type of a GCC
17615   builtin and then its argument prototype would still apply.  */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619char $ac_func ();
17620/* The GNU C library defines this for functions which it implements
17621    to always fail with ENOSYS.  Some functions are actually named
17622    something starting with __ and the normal name is an alias.  */
17623#if defined __stub_$ac_func || defined __stub___$ac_func
17624choke me
17625#endif
17626
17627int
17628main ()
17629{
17630return $ac_func ();
17631  ;
17632  return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext conftest$ac_exeext
17636if { (ac_try="$ac_link"
17637case "(($ac_try" in
17638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639  *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642  (eval "$ac_link") 2>conftest.er1
17643  ac_status=$?
17644  grep -v '^ *+' conftest.er1 >conftest.err
17645  rm -f conftest.er1
17646  cat conftest.err >&5
17647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648  (exit $ac_status); } &&
17649	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17650  { (case "(($ac_try" in
17651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652  *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655  (eval "$ac_try") 2>&5
17656  ac_status=$?
17657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658  (exit $ac_status); }; } &&
17659	 { ac_try='test -s conftest$ac_exeext'
17660  { (case "(($ac_try" in
17661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662  *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665  (eval "$ac_try") 2>&5
17666  ac_status=$?
17667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668  (exit $ac_status); }; }; then
17669  eval "$as_ac_var=yes"
17670else
17671  echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674	eval "$as_ac_var=no"
17675fi
17676
17677rm -f core conftest.err conftest.$ac_objext \
17678      conftest$ac_exeext conftest.$ac_ext
17679fi
17680ac_res=`eval echo '${'$as_ac_var'}'`
17681	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17682echo "${ECHO_T}$ac_res" >&6; }
17683if test `eval echo '${'$as_ac_var'}'` = yes; then
17684  cat >>confdefs.h <<_ACEOF
17685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686_ACEOF
17687
17688fi
17689done
17690
17691
17692
17693
17694
17695
17696for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17697do
17698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17702  echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704  cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h.  */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h.  */
17710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17712#define $ac_func innocuous_$ac_func
17713
17714/* System header to define __stub macros and hopefully few prototypes,
17715    which can conflict with char $ac_func (); below.
17716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717    <limits.h> exists even on freestanding compilers.  */
17718
17719#ifdef __STDC__
17720# include <limits.h>
17721#else
17722# include <assert.h>
17723#endif
17724
17725#undef $ac_func
17726
17727/* Override any GCC internal prototype to avoid an error.
17728   Use char because int might match the return type of a GCC
17729   builtin and then its argument prototype would still apply.  */
17730#ifdef __cplusplus
17731extern "C"
17732#endif
17733char $ac_func ();
17734/* The GNU C library defines this for functions which it implements
17735    to always fail with ENOSYS.  Some functions are actually named
17736    something starting with __ and the normal name is an alias.  */
17737#if defined __stub_$ac_func || defined __stub___$ac_func
17738choke me
17739#endif
17740
17741int
17742main ()
17743{
17744return $ac_func ();
17745  ;
17746  return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext conftest$ac_exeext
17750if { (ac_try="$ac_link"
17751case "(($ac_try" in
17752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753  *) ac_try_echo=$ac_try;;
17754esac
17755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756  (eval "$ac_link") 2>conftest.er1
17757  ac_status=$?
17758  grep -v '^ *+' conftest.er1 >conftest.err
17759  rm -f conftest.er1
17760  cat conftest.err >&5
17761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762  (exit $ac_status); } &&
17763	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764  { (case "(($ac_try" in
17765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766  *) ac_try_echo=$ac_try;;
17767esac
17768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769  (eval "$ac_try") 2>&5
17770  ac_status=$?
17771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772  (exit $ac_status); }; } &&
17773	 { ac_try='test -s conftest$ac_exeext'
17774  { (case "(($ac_try" in
17775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776  *) ac_try_echo=$ac_try;;
17777esac
17778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779  (eval "$ac_try") 2>&5
17780  ac_status=$?
17781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782  (exit $ac_status); }; }; then
17783  eval "$as_ac_var=yes"
17784else
17785  echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788	eval "$as_ac_var=no"
17789fi
17790
17791rm -f core conftest.err conftest.$ac_objext \
17792      conftest$ac_exeext conftest.$ac_ext
17793fi
17794ac_res=`eval echo '${'$as_ac_var'}'`
17795	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17796echo "${ECHO_T}$ac_res" >&6; }
17797if test `eval echo '${'$as_ac_var'}'` = yes; then
17798  cat >>confdefs.h <<_ACEOF
17799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800_ACEOF
17801
17802fi
17803done
17804
17805{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17806echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17807if test "${llvm_cv_c_printf_a+set}" = set; then
17808  echo $ECHO_N "(cached) $ECHO_C" >&6
17809else
17810  ac_ext=c
17811ac_cpp='$CPP $CPPFLAGS'
17812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814ac_compiler_gnu=$ac_cv_c_compiler_gnu
17815
17816 if test "$cross_compiling" = yes; then
17817  llvmac_cv_c_printf_a=no
17818else
17819  cat >conftest.$ac_ext <<_ACEOF
17820
17821  /* confdefs.h.  */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h.  */
17826
17827#include <stdio.h>
17828#include <stdlib.h>
17829
17830int
17831main ()
17832{
17833
17834volatile double A, B;
17835char Buffer[100];
17836A = 1;
17837A /= 10.0;
17838sprintf(Buffer, "%a", A);
17839B = atof(Buffer);
17840if (A != B)
17841  return (1);
17842if (A != 0x1.999999999999ap-4)
17843  return (1);
17844return (0);
17845  ;
17846  return 0;
17847}
17848_ACEOF
17849rm -f conftest$ac_exeext
17850if { (ac_try="$ac_link"
17851case "(($ac_try" in
17852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853  *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856  (eval "$ac_link") 2>&5
17857  ac_status=$?
17858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17860  { (case "(($ac_try" in
17861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862  *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865  (eval "$ac_try") 2>&5
17866  ac_status=$?
17867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868  (exit $ac_status); }; }; then
17869  llvm_cv_c_printf_a=yes
17870else
17871  echo "$as_me: program exited with status $ac_status" >&5
17872echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875( exit $ac_status )
17876llvmac_cv_c_printf_a=no
17877fi
17878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17879fi
17880
17881
17882 ac_ext=c
17883ac_cpp='$CPP $CPPFLAGS'
17884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
17888fi
17889{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17890echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17891 if test "$llvm_cv_c_printf_a" = "yes"; then
17892
17893cat >>confdefs.h <<\_ACEOF
17894#define HAVE_PRINTF_A 1
17895_ACEOF
17896
17897 fi
17898
17899
17900{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17901echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17902if test "${ac_cv_func_rand48+set}" = set; then
17903  echo $ECHO_N "(cached) $ECHO_C" >&6
17904else
17905  ac_ext=cpp
17906ac_cpp='$CXXCPP $CPPFLAGS'
17907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17910
17911   cat >conftest.$ac_ext <<_ACEOF
17912/* confdefs.h.  */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
17916/* end confdefs.h.  */
17917#include <stdlib.h>
17918int
17919main ()
17920{
17921srand48(0);lrand48();drand48();
17922  ;
17923  return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext
17927if { (ac_try="$ac_compile"
17928case "(($ac_try" in
17929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930  *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933  (eval "$ac_compile") 2>conftest.er1
17934  ac_status=$?
17935  grep -v '^ *+' conftest.er1 >conftest.err
17936  rm -f conftest.er1
17937  cat conftest.err >&5
17938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); } &&
17940	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941  { (case "(($ac_try" in
17942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943  *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946  (eval "$ac_try") 2>&5
17947  ac_status=$?
17948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949  (exit $ac_status); }; } &&
17950	 { ac_try='test -s conftest.$ac_objext'
17951  { (case "(($ac_try" in
17952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953  *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956  (eval "$ac_try") 2>&5
17957  ac_status=$?
17958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959  (exit $ac_status); }; }; then
17960  ac_cv_func_rand48=yes
17961else
17962  echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965	ac_cv_func_rand48=no
17966fi
17967
17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969  ac_ext=c
17970ac_cpp='$CPP $CPPFLAGS'
17971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975fi
17976{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17977echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17978
17979if test "$ac_cv_func_rand48" = "yes" ; then
17980
17981cat >>confdefs.h <<\_ACEOF
17982#define HAVE_RAND48 1
17983_ACEOF
17984
17985fi
17986
17987
17988{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17989echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17990if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17991  echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993  cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h.  */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h.  */
17999$ac_includes_default
18000int
18001main ()
18002{
18003#ifndef strerror_s
18004  char *p = (char *) strerror_s;
18005  return !p;
18006#endif
18007
18008  ;
18009  return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (ac_try="$ac_compile"
18014case "(($ac_try" in
18015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016  *) ac_try_echo=$ac_try;;
18017esac
18018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019  (eval "$ac_compile") 2>conftest.er1
18020  ac_status=$?
18021  grep -v '^ *+' conftest.er1 >conftest.err
18022  rm -f conftest.er1
18023  cat conftest.err >&5
18024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025  (exit $ac_status); } &&
18026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027  { (case "(($ac_try" in
18028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029  *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032  (eval "$ac_try") 2>&5
18033  ac_status=$?
18034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035  (exit $ac_status); }; } &&
18036	 { ac_try='test -s conftest.$ac_objext'
18037  { (case "(($ac_try" in
18038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039  *) ac_try_echo=$ac_try;;
18040esac
18041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042  (eval "$ac_try") 2>&5
18043  ac_status=$?
18044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045  (exit $ac_status); }; }; then
18046  ac_cv_have_decl_strerror_s=yes
18047else
18048  echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
18051	ac_cv_have_decl_strerror_s=no
18052fi
18053
18054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055fi
18056{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18057echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18058if test $ac_cv_have_decl_strerror_s = yes; then
18059
18060cat >>confdefs.h <<_ACEOF
18061#define HAVE_DECL_STRERROR_S 1
18062_ACEOF
18063
18064
18065else
18066  cat >>confdefs.h <<_ACEOF
18067#define HAVE_DECL_STRERROR_S 0
18068_ACEOF
18069
18070
18071fi
18072
18073
18074
18075if test "$llvm_cv_os_type" = "MingW" ; then
18076  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18077echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18078if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18079  echo $ECHO_N "(cached) $ECHO_C" >&6
18080else
18081  ac_check_lib_save_LIBS=$LIBS
18082LIBS="-lgcc  $LIBS"
18083cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h.  */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h.  */
18089
18090/* Override any GCC internal prototype to avoid an error.
18091   Use char because int might match the return type of a GCC
18092   builtin and then its argument prototype would still apply.  */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char _alloca ();
18097int
18098main ()
18099{
18100return _alloca ();
18101  ;
18102  return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext conftest$ac_exeext
18106if { (ac_try="$ac_link"
18107case "(($ac_try" in
18108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109  *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112  (eval "$ac_link") 2>conftest.er1
18113  ac_status=$?
18114  grep -v '^ *+' conftest.er1 >conftest.err
18115  rm -f conftest.er1
18116  cat conftest.err >&5
18117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118  (exit $ac_status); } &&
18119	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120  { (case "(($ac_try" in
18121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122  *) ac_try_echo=$ac_try;;
18123esac
18124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125  (eval "$ac_try") 2>&5
18126  ac_status=$?
18127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128  (exit $ac_status); }; } &&
18129	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18139  ac_cv_lib_gcc__alloca=yes
18140else
18141  echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144	ac_cv_lib_gcc__alloca=no
18145fi
18146
18147rm -f core conftest.err conftest.$ac_objext \
18148      conftest$ac_exeext conftest.$ac_ext
18149LIBS=$ac_check_lib_save_LIBS
18150fi
18151{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18152echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18153if test $ac_cv_lib_gcc__alloca = yes; then
18154
18155cat >>confdefs.h <<\_ACEOF
18156#define HAVE__ALLOCA 1
18157_ACEOF
18158
18159fi
18160
18161  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18162echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18163if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18164  echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166  ac_check_lib_save_LIBS=$LIBS
18167LIBS="-lgcc  $LIBS"
18168cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h.  */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h.  */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176   Use char because int might match the return type of a GCC
18177   builtin and then its argument prototype would still apply.  */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char __alloca ();
18182int
18183main ()
18184{
18185return __alloca ();
18186  ;
18187  return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext conftest$ac_exeext
18191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194  *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197  (eval "$ac_link") 2>conftest.er1
18198  ac_status=$?
18199  grep -v '^ *+' conftest.er1 >conftest.err
18200  rm -f conftest.er1
18201  cat conftest.err >&5
18202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203  (exit $ac_status); } &&
18204	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205  { (case "(($ac_try" in
18206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207  *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210  (eval "$ac_try") 2>&5
18211  ac_status=$?
18212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213  (exit $ac_status); }; } &&
18214	 { ac_try='test -s conftest$ac_exeext'
18215  { (case "(($ac_try" in
18216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217  *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220  (eval "$ac_try") 2>&5
18221  ac_status=$?
18222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223  (exit $ac_status); }; }; then
18224  ac_cv_lib_gcc___alloca=yes
18225else
18226  echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229	ac_cv_lib_gcc___alloca=no
18230fi
18231
18232rm -f core conftest.err conftest.$ac_objext \
18233      conftest$ac_exeext conftest.$ac_ext
18234LIBS=$ac_check_lib_save_LIBS
18235fi
18236{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18237echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18238if test $ac_cv_lib_gcc___alloca = yes; then
18239
18240cat >>confdefs.h <<\_ACEOF
18241#define HAVE___ALLOCA 1
18242_ACEOF
18243
18244fi
18245
18246  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18247echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18248if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18249  echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251  ac_check_lib_save_LIBS=$LIBS
18252LIBS="-lgcc  $LIBS"
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h.  */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h.  */
18259
18260/* Override any GCC internal prototype to avoid an error.
18261   Use char because int might match the return type of a GCC
18262   builtin and then its argument prototype would still apply.  */
18263#ifdef __cplusplus
18264extern "C"
18265#endif
18266char __chkstk ();
18267int
18268main ()
18269{
18270return __chkstk ();
18271  ;
18272  return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
18276if { (ac_try="$ac_link"
18277case "(($ac_try" in
18278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279  *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282  (eval "$ac_link") 2>conftest.er1
18283  ac_status=$?
18284  grep -v '^ *+' conftest.er1 >conftest.err
18285  rm -f conftest.er1
18286  cat conftest.err >&5
18287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288  (exit $ac_status); } &&
18289	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290  { (case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295  (eval "$ac_try") 2>&5
18296  ac_status=$?
18297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298  (exit $ac_status); }; } &&
18299	 { ac_try='test -s conftest$ac_exeext'
18300  { (case "(($ac_try" in
18301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302  *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305  (eval "$ac_try") 2>&5
18306  ac_status=$?
18307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308  (exit $ac_status); }; }; then
18309  ac_cv_lib_gcc___chkstk=yes
18310else
18311  echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314	ac_cv_lib_gcc___chkstk=no
18315fi
18316
18317rm -f core conftest.err conftest.$ac_objext \
18318      conftest$ac_exeext conftest.$ac_ext
18319LIBS=$ac_check_lib_save_LIBS
18320fi
18321{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18322echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18323if test $ac_cv_lib_gcc___chkstk = yes; then
18324
18325cat >>confdefs.h <<\_ACEOF
18326#define HAVE___CHKSTK 1
18327_ACEOF
18328
18329fi
18330
18331  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18332echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18333if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18334  echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336  ac_check_lib_save_LIBS=$LIBS
18337LIBS="-lgcc  $LIBS"
18338cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h.  */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h.  */
18344
18345/* Override any GCC internal prototype to avoid an error.
18346   Use char because int might match the return type of a GCC
18347   builtin and then its argument prototype would still apply.  */
18348#ifdef __cplusplus
18349extern "C"
18350#endif
18351char ___chkstk ();
18352int
18353main ()
18354{
18355return ___chkstk ();
18356  ;
18357  return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (ac_try="$ac_link"
18362case "(($ac_try" in
18363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364  *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367  (eval "$ac_link") 2>conftest.er1
18368  ac_status=$?
18369  grep -v '^ *+' conftest.er1 >conftest.err
18370  rm -f conftest.er1
18371  cat conftest.err >&5
18372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373  (exit $ac_status); } &&
18374	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375  { (case "(($ac_try" in
18376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377  *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380  (eval "$ac_try") 2>&5
18381  ac_status=$?
18382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }; } &&
18384	 { ac_try='test -s conftest$ac_exeext'
18385  { (case "(($ac_try" in
18386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387  *) ac_try_echo=$ac_try;;
18388esac
18389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390  (eval "$ac_try") 2>&5
18391  ac_status=$?
18392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393  (exit $ac_status); }; }; then
18394  ac_cv_lib_gcc____chkstk=yes
18395else
18396  echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399	ac_cv_lib_gcc____chkstk=no
18400fi
18401
18402rm -f core conftest.err conftest.$ac_objext \
18403      conftest$ac_exeext conftest.$ac_ext
18404LIBS=$ac_check_lib_save_LIBS
18405fi
18406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18407echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18408if test $ac_cv_lib_gcc____chkstk = yes; then
18409
18410cat >>confdefs.h <<\_ACEOF
18411#define HAVE____CHKSTK 1
18412_ACEOF
18413
18414fi
18415
18416
18417  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18418echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18419if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18420  echo $ECHO_N "(cached) $ECHO_C" >&6
18421else
18422  ac_check_lib_save_LIBS=$LIBS
18423LIBS="-lgcc  $LIBS"
18424cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h.  */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h.  */
18430
18431/* Override any GCC internal prototype to avoid an error.
18432   Use char because int might match the return type of a GCC
18433   builtin and then its argument prototype would still apply.  */
18434#ifdef __cplusplus
18435extern "C"
18436#endif
18437char __ashldi3 ();
18438int
18439main ()
18440{
18441return __ashldi3 ();
18442  ;
18443  return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext conftest$ac_exeext
18447if { (ac_try="$ac_link"
18448case "(($ac_try" in
18449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450  *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453  (eval "$ac_link") 2>conftest.er1
18454  ac_status=$?
18455  grep -v '^ *+' conftest.er1 >conftest.err
18456  rm -f conftest.er1
18457  cat conftest.err >&5
18458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459  (exit $ac_status); } &&
18460	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461  { (case "(($ac_try" in
18462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463  *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466  (eval "$ac_try") 2>&5
18467  ac_status=$?
18468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469  (exit $ac_status); }; } &&
18470	 { ac_try='test -s conftest$ac_exeext'
18471  { (case "(($ac_try" in
18472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473  *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476  (eval "$ac_try") 2>&5
18477  ac_status=$?
18478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479  (exit $ac_status); }; }; then
18480  ac_cv_lib_gcc___ashldi3=yes
18481else
18482  echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485	ac_cv_lib_gcc___ashldi3=no
18486fi
18487
18488rm -f core conftest.err conftest.$ac_objext \
18489      conftest$ac_exeext conftest.$ac_ext
18490LIBS=$ac_check_lib_save_LIBS
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18493echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18494if test $ac_cv_lib_gcc___ashldi3 = yes; then
18495
18496cat >>confdefs.h <<\_ACEOF
18497#define HAVE___ASHLDI3 1
18498_ACEOF
18499
18500fi
18501
18502  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18503echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18504if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18505  echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507  ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lgcc  $LIBS"
18509cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h.  */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h.  */
18515
18516/* Override any GCC internal prototype to avoid an error.
18517   Use char because int might match the return type of a GCC
18518   builtin and then its argument prototype would still apply.  */
18519#ifdef __cplusplus
18520extern "C"
18521#endif
18522char __ashrdi3 ();
18523int
18524main ()
18525{
18526return __ashrdi3 ();
18527  ;
18528  return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext conftest$ac_exeext
18532if { (ac_try="$ac_link"
18533case "(($ac_try" in
18534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535  *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538  (eval "$ac_link") 2>conftest.er1
18539  ac_status=$?
18540  grep -v '^ *+' conftest.er1 >conftest.err
18541  rm -f conftest.er1
18542  cat conftest.err >&5
18543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544  (exit $ac_status); } &&
18545	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546  { (case "(($ac_try" in
18547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548  *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551  (eval "$ac_try") 2>&5
18552  ac_status=$?
18553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554  (exit $ac_status); }; } &&
18555	 { ac_try='test -s conftest$ac_exeext'
18556  { (case "(($ac_try" in
18557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558  *) ac_try_echo=$ac_try;;
18559esac
18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561  (eval "$ac_try") 2>&5
18562  ac_status=$?
18563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564  (exit $ac_status); }; }; then
18565  ac_cv_lib_gcc___ashrdi3=yes
18566else
18567  echo "$as_me: failed program was:" >&5
18568sed 's/^/| /' conftest.$ac_ext >&5
18569
18570	ac_cv_lib_gcc___ashrdi3=no
18571fi
18572
18573rm -f core conftest.err conftest.$ac_objext \
18574      conftest$ac_exeext conftest.$ac_ext
18575LIBS=$ac_check_lib_save_LIBS
18576fi
18577{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18578echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18579if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE___ASHRDI3 1
18583_ACEOF
18584
18585fi
18586
18587  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18588echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18589if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18590  echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592  ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lgcc  $LIBS"
18594cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h.  */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h.  */
18600
18601/* Override any GCC internal prototype to avoid an error.
18602   Use char because int might match the return type of a GCC
18603   builtin and then its argument prototype would still apply.  */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char __divdi3 ();
18608int
18609main ()
18610{
18611return __divdi3 ();
18612  ;
18613  return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext conftest$ac_exeext
18617if { (ac_try="$ac_link"
18618case "(($ac_try" in
18619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620  *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623  (eval "$ac_link") 2>conftest.er1
18624  ac_status=$?
18625  grep -v '^ *+' conftest.er1 >conftest.err
18626  rm -f conftest.er1
18627  cat conftest.err >&5
18628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629  (exit $ac_status); } &&
18630	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631  { (case "(($ac_try" in
18632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633  *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636  (eval "$ac_try") 2>&5
18637  ac_status=$?
18638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639  (exit $ac_status); }; } &&
18640	 { ac_try='test -s conftest$ac_exeext'
18641  { (case "(($ac_try" in
18642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643  *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646  (eval "$ac_try") 2>&5
18647  ac_status=$?
18648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649  (exit $ac_status); }; }; then
18650  ac_cv_lib_gcc___divdi3=yes
18651else
18652  echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655	ac_cv_lib_gcc___divdi3=no
18656fi
18657
18658rm -f core conftest.err conftest.$ac_objext \
18659      conftest$ac_exeext conftest.$ac_ext
18660LIBS=$ac_check_lib_save_LIBS
18661fi
18662{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18663echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18664if test $ac_cv_lib_gcc___divdi3 = yes; then
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define HAVE___DIVDI3 1
18668_ACEOF
18669
18670fi
18671
18672  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18673echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18674if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18675  echo $ECHO_N "(cached) $ECHO_C" >&6
18676else
18677  ac_check_lib_save_LIBS=$LIBS
18678LIBS="-lgcc  $LIBS"
18679cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h.  */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h.  */
18685
18686/* Override any GCC internal prototype to avoid an error.
18687   Use char because int might match the return type of a GCC
18688   builtin and then its argument prototype would still apply.  */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692char __fixdfdi ();
18693int
18694main ()
18695{
18696return __fixdfdi ();
18697  ;
18698  return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext conftest$ac_exeext
18702if { (ac_try="$ac_link"
18703case "(($ac_try" in
18704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705  *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708  (eval "$ac_link") 2>conftest.er1
18709  ac_status=$?
18710  grep -v '^ *+' conftest.er1 >conftest.err
18711  rm -f conftest.er1
18712  cat conftest.err >&5
18713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714  (exit $ac_status); } &&
18715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716  { (case "(($ac_try" in
18717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718  *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721  (eval "$ac_try") 2>&5
18722  ac_status=$?
18723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724  (exit $ac_status); }; } &&
18725	 { ac_try='test -s conftest$ac_exeext'
18726  { (case "(($ac_try" in
18727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728  *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731  (eval "$ac_try") 2>&5
18732  ac_status=$?
18733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734  (exit $ac_status); }; }; then
18735  ac_cv_lib_gcc___fixdfdi=yes
18736else
18737  echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740	ac_cv_lib_gcc___fixdfdi=no
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext \
18744      conftest$ac_exeext conftest.$ac_ext
18745LIBS=$ac_check_lib_save_LIBS
18746fi
18747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18748echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18749if test $ac_cv_lib_gcc___fixdfdi = yes; then
18750
18751cat >>confdefs.h <<\_ACEOF
18752#define HAVE___FIXDFDI 1
18753_ACEOF
18754
18755fi
18756
18757  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18758echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18759if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18760  echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762  ac_check_lib_save_LIBS=$LIBS
18763LIBS="-lgcc  $LIBS"
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h.  */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h.  */
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 __fixsfdi ();
18778int
18779main ()
18780{
18781return __fixsfdi ();
18782  ;
18783  return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790  *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793  (eval "$ac_link") 2>conftest.er1
18794  ac_status=$?
18795  grep -v '^ *+' conftest.er1 >conftest.err
18796  rm -f conftest.er1
18797  cat conftest.err >&5
18798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799  (exit $ac_status); } &&
18800	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801  { (case "(($ac_try" in
18802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803  *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806  (eval "$ac_try") 2>&5
18807  ac_status=$?
18808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809  (exit $ac_status); }; } &&
18810	 { ac_try='test -s conftest$ac_exeext'
18811  { (case "(($ac_try" in
18812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813  *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816  (eval "$ac_try") 2>&5
18817  ac_status=$?
18818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819  (exit $ac_status); }; }; then
18820  ac_cv_lib_gcc___fixsfdi=yes
18821else
18822  echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825	ac_cv_lib_gcc___fixsfdi=no
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext \
18829      conftest$ac_exeext conftest.$ac_ext
18830LIBS=$ac_check_lib_save_LIBS
18831fi
18832{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18833echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18834if test $ac_cv_lib_gcc___fixsfdi = yes; then
18835
18836cat >>confdefs.h <<\_ACEOF
18837#define HAVE___FIXSFDI 1
18838_ACEOF
18839
18840fi
18841
18842  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18843echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18844if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18845  echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847  ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lgcc  $LIBS"
18849cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h.  */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h.  */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857   Use char because int might match the return type of a GCC
18858   builtin and then its argument prototype would still apply.  */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char __floatdidf ();
18863int
18864main ()
18865{
18866return __floatdidf ();
18867  ;
18868  return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
18872if { (ac_try="$ac_link"
18873case "(($ac_try" in
18874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875  *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878  (eval "$ac_link") 2>conftest.er1
18879  ac_status=$?
18880  grep -v '^ *+' conftest.er1 >conftest.err
18881  rm -f conftest.er1
18882  cat conftest.err >&5
18883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884  (exit $ac_status); } &&
18885	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886  { (case "(($ac_try" in
18887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888  *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891  (eval "$ac_try") 2>&5
18892  ac_status=$?
18893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894  (exit $ac_status); }; } &&
18895	 { ac_try='test -s conftest$ac_exeext'
18896  { (case "(($ac_try" in
18897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898  *) ac_try_echo=$ac_try;;
18899esac
18900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901  (eval "$ac_try") 2>&5
18902  ac_status=$?
18903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904  (exit $ac_status); }; }; then
18905  ac_cv_lib_gcc___floatdidf=yes
18906else
18907  echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910	ac_cv_lib_gcc___floatdidf=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext \
18914      conftest$ac_exeext conftest.$ac_ext
18915LIBS=$ac_check_lib_save_LIBS
18916fi
18917{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18918echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18919if test $ac_cv_lib_gcc___floatdidf = yes; then
18920
18921cat >>confdefs.h <<\_ACEOF
18922#define HAVE___FLOATDIDF 1
18923_ACEOF
18924
18925fi
18926
18927  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18928echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18929if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18930  echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932  ac_check_lib_save_LIBS=$LIBS
18933LIBS="-lgcc  $LIBS"
18934cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h.  */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h.  */
18940
18941/* Override any GCC internal prototype to avoid an error.
18942   Use char because int might match the return type of a GCC
18943   builtin and then its argument prototype would still apply.  */
18944#ifdef __cplusplus
18945extern "C"
18946#endif
18947char __lshrdi3 ();
18948int
18949main ()
18950{
18951return __lshrdi3 ();
18952  ;
18953  return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
18957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960  *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963  (eval "$ac_link") 2>conftest.er1
18964  ac_status=$?
18965  grep -v '^ *+' conftest.er1 >conftest.err
18966  rm -f conftest.er1
18967  cat conftest.err >&5
18968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969  (exit $ac_status); } &&
18970	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971  { (case "(($ac_try" in
18972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973  *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976  (eval "$ac_try") 2>&5
18977  ac_status=$?
18978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979  (exit $ac_status); }; } &&
18980	 { ac_try='test -s conftest$ac_exeext'
18981  { (case "(($ac_try" in
18982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983  *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986  (eval "$ac_try") 2>&5
18987  ac_status=$?
18988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989  (exit $ac_status); }; }; then
18990  ac_cv_lib_gcc___lshrdi3=yes
18991else
18992  echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995	ac_cv_lib_gcc___lshrdi3=no
18996fi
18997
18998rm -f core conftest.err conftest.$ac_objext \
18999      conftest$ac_exeext conftest.$ac_ext
19000LIBS=$ac_check_lib_save_LIBS
19001fi
19002{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19003echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19004if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19005
19006cat >>confdefs.h <<\_ACEOF
19007#define HAVE___LSHRDI3 1
19008_ACEOF
19009
19010fi
19011
19012  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19013echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19014if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19015  echo $ECHO_N "(cached) $ECHO_C" >&6
19016else
19017  ac_check_lib_save_LIBS=$LIBS
19018LIBS="-lgcc  $LIBS"
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h.  */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h.  */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027   Use char because int might match the return type of a GCC
19028   builtin and then its argument prototype would still apply.  */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char __moddi3 ();
19033int
19034main ()
19035{
19036return __moddi3 ();
19037  ;
19038  return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (ac_try="$ac_link"
19043case "(($ac_try" in
19044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045  *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048  (eval "$ac_link") 2>conftest.er1
19049  ac_status=$?
19050  grep -v '^ *+' conftest.er1 >conftest.err
19051  rm -f conftest.er1
19052  cat conftest.err >&5
19053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054  (exit $ac_status); } &&
19055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056  { (case "(($ac_try" in
19057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058  *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061  (eval "$ac_try") 2>&5
19062  ac_status=$?
19063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064  (exit $ac_status); }; } &&
19065	 { ac_try='test -s conftest$ac_exeext'
19066  { (case "(($ac_try" in
19067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068  *) ac_try_echo=$ac_try;;
19069esac
19070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071  (eval "$ac_try") 2>&5
19072  ac_status=$?
19073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074  (exit $ac_status); }; }; then
19075  ac_cv_lib_gcc___moddi3=yes
19076else
19077  echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080	ac_cv_lib_gcc___moddi3=no
19081fi
19082
19083rm -f core conftest.err conftest.$ac_objext \
19084      conftest$ac_exeext conftest.$ac_ext
19085LIBS=$ac_check_lib_save_LIBS
19086fi
19087{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19088echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19089if test $ac_cv_lib_gcc___moddi3 = yes; then
19090
19091cat >>confdefs.h <<\_ACEOF
19092#define HAVE___MODDI3 1
19093_ACEOF
19094
19095fi
19096
19097  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19098echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19099if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19100  echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102  ac_check_lib_save_LIBS=$LIBS
19103LIBS="-lgcc  $LIBS"
19104cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h.  */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h.  */
19110
19111/* Override any GCC internal prototype to avoid an error.
19112   Use char because int might match the return type of a GCC
19113   builtin and then its argument prototype would still apply.  */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117char __udivdi3 ();
19118int
19119main ()
19120{
19121return __udivdi3 ();
19122  ;
19123  return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext conftest$ac_exeext
19127if { (ac_try="$ac_link"
19128case "(($ac_try" in
19129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130  *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133  (eval "$ac_link") 2>conftest.er1
19134  ac_status=$?
19135  grep -v '^ *+' conftest.er1 >conftest.err
19136  rm -f conftest.er1
19137  cat conftest.err >&5
19138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139  (exit $ac_status); } &&
19140	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141  { (case "(($ac_try" in
19142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143  *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146  (eval "$ac_try") 2>&5
19147  ac_status=$?
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); }; } &&
19150	 { ac_try='test -s conftest$ac_exeext'
19151  { (case "(($ac_try" in
19152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153  *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156  (eval "$ac_try") 2>&5
19157  ac_status=$?
19158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159  (exit $ac_status); }; }; then
19160  ac_cv_lib_gcc___udivdi3=yes
19161else
19162  echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165	ac_cv_lib_gcc___udivdi3=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext \
19169      conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19173echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19174if test $ac_cv_lib_gcc___udivdi3 = yes; then
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE___UDIVDI3 1
19178_ACEOF
19179
19180fi
19181
19182  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19183echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19184if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19185  echo $ECHO_N "(cached) $ECHO_C" >&6
19186else
19187  ac_check_lib_save_LIBS=$LIBS
19188LIBS="-lgcc  $LIBS"
19189cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h.  */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
19194/* end confdefs.h.  */
19195
19196/* Override any GCC internal prototype to avoid an error.
19197   Use char because int might match the return type of a GCC
19198   builtin and then its argument prototype would still apply.  */
19199#ifdef __cplusplus
19200extern "C"
19201#endif
19202char __umoddi3 ();
19203int
19204main ()
19205{
19206return __umoddi3 ();
19207  ;
19208  return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext conftest$ac_exeext
19212if { (ac_try="$ac_link"
19213case "(($ac_try" in
19214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215  *) ac_try_echo=$ac_try;;
19216esac
19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218  (eval "$ac_link") 2>conftest.er1
19219  ac_status=$?
19220  grep -v '^ *+' conftest.er1 >conftest.err
19221  rm -f conftest.er1
19222  cat conftest.err >&5
19223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224  (exit $ac_status); } &&
19225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226  { (case "(($ac_try" in
19227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228  *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231  (eval "$ac_try") 2>&5
19232  ac_status=$?
19233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234  (exit $ac_status); }; } &&
19235	 { ac_try='test -s conftest$ac_exeext'
19236  { (case "(($ac_try" in
19237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238  *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241  (eval "$ac_try") 2>&5
19242  ac_status=$?
19243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244  (exit $ac_status); }; }; then
19245  ac_cv_lib_gcc___umoddi3=yes
19246else
19247  echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250	ac_cv_lib_gcc___umoddi3=no
19251fi
19252
19253rm -f core conftest.err conftest.$ac_objext \
19254      conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19258echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19259if test $ac_cv_lib_gcc___umoddi3 = yes; then
19260
19261cat >>confdefs.h <<\_ACEOF
19262#define HAVE___UMODDI3 1
19263_ACEOF
19264
19265fi
19266
19267
19268  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19269echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19270if test "${ac_cv_lib_gcc___main+set}" = set; then
19271  echo $ECHO_N "(cached) $ECHO_C" >&6
19272else
19273  ac_check_lib_save_LIBS=$LIBS
19274LIBS="-lgcc  $LIBS"
19275cat >conftest.$ac_ext <<_ACEOF
19276/* confdefs.h.  */
19277_ACEOF
19278cat confdefs.h >>conftest.$ac_ext
19279cat >>conftest.$ac_ext <<_ACEOF
19280/* end confdefs.h.  */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283   Use char because int might match the return type of a GCC
19284   builtin and then its argument prototype would still apply.  */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char __main ();
19289int
19290main ()
19291{
19292return __main ();
19293  ;
19294  return 0;
19295}
19296_ACEOF
19297rm -f conftest.$ac_objext conftest$ac_exeext
19298if { (ac_try="$ac_link"
19299case "(($ac_try" in
19300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301  *) ac_try_echo=$ac_try;;
19302esac
19303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304  (eval "$ac_link") 2>conftest.er1
19305  ac_status=$?
19306  grep -v '^ *+' conftest.er1 >conftest.err
19307  rm -f conftest.er1
19308  cat conftest.err >&5
19309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310  (exit $ac_status); } &&
19311	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19312  { (case "(($ac_try" in
19313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314  *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317  (eval "$ac_try") 2>&5
19318  ac_status=$?
19319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); }; } &&
19321	 { ac_try='test -s conftest$ac_exeext'
19322  { (case "(($ac_try" in
19323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324  *) ac_try_echo=$ac_try;;
19325esac
19326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327  (eval "$ac_try") 2>&5
19328  ac_status=$?
19329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330  (exit $ac_status); }; }; then
19331  ac_cv_lib_gcc___main=yes
19332else
19333  echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336	ac_cv_lib_gcc___main=no
19337fi
19338
19339rm -f core conftest.err conftest.$ac_objext \
19340      conftest$ac_exeext conftest.$ac_ext
19341LIBS=$ac_check_lib_save_LIBS
19342fi
19343{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19344echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19345if test $ac_cv_lib_gcc___main = yes; then
19346
19347cat >>confdefs.h <<\_ACEOF
19348#define HAVE___MAIN 1
19349_ACEOF
19350
19351fi
19352
19353  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19354echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19355if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19356  echo $ECHO_N "(cached) $ECHO_C" >&6
19357else
19358  ac_check_lib_save_LIBS=$LIBS
19359LIBS="-lgcc  $LIBS"
19360cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h.  */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h.  */
19366
19367/* Override any GCC internal prototype to avoid an error.
19368   Use char because int might match the return type of a GCC
19369   builtin and then its argument prototype would still apply.  */
19370#ifdef __cplusplus
19371extern "C"
19372#endif
19373char __cmpdi2 ();
19374int
19375main ()
19376{
19377return __cmpdi2 ();
19378  ;
19379  return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext conftest$ac_exeext
19383if { (ac_try="$ac_link"
19384case "(($ac_try" in
19385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386  *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389  (eval "$ac_link") 2>conftest.er1
19390  ac_status=$?
19391  grep -v '^ *+' conftest.er1 >conftest.err
19392  rm -f conftest.er1
19393  cat conftest.err >&5
19394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395  (exit $ac_status); } &&
19396	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397  { (case "(($ac_try" in
19398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399  *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402  (eval "$ac_try") 2>&5
19403  ac_status=$?
19404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405  (exit $ac_status); }; } &&
19406	 { ac_try='test -s conftest$ac_exeext'
19407  { (case "(($ac_try" in
19408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409  *) ac_try_echo=$ac_try;;
19410esac
19411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412  (eval "$ac_try") 2>&5
19413  ac_status=$?
19414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415  (exit $ac_status); }; }; then
19416  ac_cv_lib_gcc___cmpdi2=yes
19417else
19418  echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421	ac_cv_lib_gcc___cmpdi2=no
19422fi
19423
19424rm -f core conftest.err conftest.$ac_objext \
19425      conftest$ac_exeext conftest.$ac_ext
19426LIBS=$ac_check_lib_save_LIBS
19427fi
19428{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19429echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19430if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19431
19432cat >>confdefs.h <<\_ACEOF
19433#define HAVE___CMPDI2 1
19434_ACEOF
19435
19436fi
19437
19438fi
19439
19440if test "$llvm_cv_os_type" = "MingW" ; then
19441  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19442echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19443  cat >conftest.$ac_ext <<_ACEOF
19444#include <windows.h>
19445#include <imagehlp.h>
19446extern void foo(PENUMLOADED_MODULES_CALLBACK);
19447extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19448_ACEOF
19449rm -f conftest.$ac_objext
19450if { (ac_try="$ac_compile"
19451case "(($ac_try" in
19452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453  *) ac_try_echo=$ac_try;;
19454esac
19455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456  (eval "$ac_compile") 2>conftest.er1
19457  ac_status=$?
19458  grep -v '^ *+' conftest.er1 >conftest.err
19459  rm -f conftest.er1
19460  cat conftest.err >&5
19461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462  (exit $ac_status); } &&
19463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464  { (case "(($ac_try" in
19465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466  *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469  (eval "$ac_try") 2>&5
19470  ac_status=$?
19471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472  (exit $ac_status); }; } &&
19473	 { ac_try='test -s conftest.$ac_objext'
19474  { (case "(($ac_try" in
19475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476  *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479  (eval "$ac_try") 2>&5
19480  ac_status=$?
19481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482  (exit $ac_status); }; }; then
19483
19484  { echo "$as_me:$LINENO: result: yes" >&5
19485echo "${ECHO_T}yes" >&6; }
19486  llvm_cv_win32_elmcb_pcstr="PCSTR"
19487
19488else
19489  echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492
19493  { echo "$as_me:$LINENO: result: no" >&5
19494echo "${ECHO_T}no" >&6; }
19495  llvm_cv_win32_elmcb_pcstr="PSTR"
19496
19497fi
19498
19499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500
19501cat >>confdefs.h <<_ACEOF
19502#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19503_ACEOF
19504
19505fi
19506
19507
19508{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19509echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19510if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19511  echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513  ac_ext=cpp
19514ac_cpp='$CXXCPP $CPPFLAGS'
19515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518
19519   cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h.  */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h.  */
19525#include <math.h>
19526int
19527main ()
19528{
19529float f; isnan(f);
19530  ;
19531  return 0;
19532}
19533_ACEOF
19534rm -f conftest.$ac_objext
19535if { (ac_try="$ac_compile"
19536case "(($ac_try" in
19537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538  *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541  (eval "$ac_compile") 2>conftest.er1
19542  ac_status=$?
19543  grep -v '^ *+' conftest.er1 >conftest.err
19544  rm -f conftest.er1
19545  cat conftest.err >&5
19546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547  (exit $ac_status); } &&
19548	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19549  { (case "(($ac_try" in
19550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551  *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554  (eval "$ac_try") 2>&5
19555  ac_status=$?
19556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557  (exit $ac_status); }; } &&
19558	 { ac_try='test -s conftest.$ac_objext'
19559  { (case "(($ac_try" in
19560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561  *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564  (eval "$ac_try") 2>&5
19565  ac_status=$?
19566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567  (exit $ac_status); }; }; then
19568  ac_cv_func_isnan_in_math_h=yes
19569else
19570  echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573	ac_cv_func_isnan_in_math_h=no
19574fi
19575
19576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577  ac_ext=c
19578ac_cpp='$CPP $CPPFLAGS'
19579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583fi
19584{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19585echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19586
19587
19588if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19589
19590cat >>confdefs.h <<\_ACEOF
19591#define HAVE_ISNAN_IN_MATH_H 1
19592_ACEOF
19593
19594fi
19595
19596{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19597echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19598if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19599  echo $ECHO_N "(cached) $ECHO_C" >&6
19600else
19601  ac_ext=cpp
19602ac_cpp='$CXXCPP $CPPFLAGS'
19603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606
19607   cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h.  */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h.  */
19613#include <cmath>
19614int
19615main ()
19616{
19617float f; isnan(f);
19618  ;
19619  return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (ac_try="$ac_compile"
19624case "(($ac_try" in
19625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626  *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629  (eval "$ac_compile") 2>conftest.er1
19630  ac_status=$?
19631  grep -v '^ *+' conftest.er1 >conftest.err
19632  rm -f conftest.er1
19633  cat conftest.err >&5
19634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635  (exit $ac_status); } &&
19636	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19637  { (case "(($ac_try" in
19638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639  *) ac_try_echo=$ac_try;;
19640esac
19641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642  (eval "$ac_try") 2>&5
19643  ac_status=$?
19644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645  (exit $ac_status); }; } &&
19646	 { ac_try='test -s conftest.$ac_objext'
19647  { (case "(($ac_try" in
19648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649  *) ac_try_echo=$ac_try;;
19650esac
19651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652  (eval "$ac_try") 2>&5
19653  ac_status=$?
19654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655  (exit $ac_status); }; }; then
19656  ac_cv_func_isnan_in_cmath=yes
19657else
19658  echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661	ac_cv_func_isnan_in_cmath=no
19662fi
19663
19664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665  ac_ext=c
19666ac_cpp='$CPP $CPPFLAGS'
19667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671fi
19672{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19673echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19674
19675if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19676
19677cat >>confdefs.h <<\_ACEOF
19678#define HAVE_ISNAN_IN_CMATH 1
19679_ACEOF
19680
19681fi
19682
19683{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19684echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19685if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19686  echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688  ac_ext=cpp
19689ac_cpp='$CXXCPP $CPPFLAGS'
19690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694   cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h.  */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h.  */
19700#include <cmath>
19701int
19702main ()
19703{
19704float f; std::isnan(f);
19705  ;
19706  return 0;
19707}
19708_ACEOF
19709rm -f conftest.$ac_objext
19710if { (ac_try="$ac_compile"
19711case "(($ac_try" in
19712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713  *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716  (eval "$ac_compile") 2>conftest.er1
19717  ac_status=$?
19718  grep -v '^ *+' conftest.er1 >conftest.err
19719  rm -f conftest.er1
19720  cat conftest.err >&5
19721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722  (exit $ac_status); } &&
19723	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19724  { (case "(($ac_try" in
19725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726  *) ac_try_echo=$ac_try;;
19727esac
19728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729  (eval "$ac_try") 2>&5
19730  ac_status=$?
19731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732  (exit $ac_status); }; } &&
19733	 { ac_try='test -s conftest.$ac_objext'
19734  { (case "(($ac_try" in
19735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736  *) ac_try_echo=$ac_try;;
19737esac
19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739  (eval "$ac_try") 2>&5
19740  ac_status=$?
19741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742  (exit $ac_status); }; }; then
19743  ac_cv_func_std_isnan_in_cmath=yes
19744else
19745  echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748	ac_cv_func_std_isnan_in_cmath=no
19749fi
19750
19751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752  ac_ext=c
19753ac_cpp='$CPP $CPPFLAGS'
19754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757
19758fi
19759{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19760echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19761
19762if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19763
19764cat >>confdefs.h <<\_ACEOF
19765#define HAVE_STD_ISNAN_IN_CMATH 1
19766_ACEOF
19767
19768fi
19769
19770
19771{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19772echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19773if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19774  echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
19776  ac_ext=cpp
19777ac_cpp='$CXXCPP $CPPFLAGS'
19778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19781
19782   cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h.  */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h.  */
19788#include <math.h>
19789int
19790main ()
19791{
19792float f; isinf(f);
19793  ;
19794  return 0;
19795}
19796_ACEOF
19797rm -f conftest.$ac_objext
19798if { (ac_try="$ac_compile"
19799case "(($ac_try" in
19800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801  *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804  (eval "$ac_compile") 2>conftest.er1
19805  ac_status=$?
19806  grep -v '^ *+' conftest.er1 >conftest.err
19807  rm -f conftest.er1
19808  cat conftest.err >&5
19809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810  (exit $ac_status); } &&
19811	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19812  { (case "(($ac_try" in
19813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814  *) ac_try_echo=$ac_try;;
19815esac
19816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817  (eval "$ac_try") 2>&5
19818  ac_status=$?
19819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820  (exit $ac_status); }; } &&
19821	 { ac_try='test -s conftest.$ac_objext'
19822  { (case "(($ac_try" in
19823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824  *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827  (eval "$ac_try") 2>&5
19828  ac_status=$?
19829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830  (exit $ac_status); }; }; then
19831  ac_cv_func_isinf_in_math_h=yes
19832else
19833  echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836	ac_cv_func_isinf_in_math_h=no
19837fi
19838
19839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840  ac_ext=c
19841ac_cpp='$CPP $CPPFLAGS'
19842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845
19846fi
19847{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19848echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19849
19850if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19851
19852cat >>confdefs.h <<\_ACEOF
19853#define HAVE_ISINF_IN_MATH_H 1
19854_ACEOF
19855
19856fi
19857
19858{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19859echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19860if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19861  echo $ECHO_N "(cached) $ECHO_C" >&6
19862else
19863  ac_ext=cpp
19864ac_cpp='$CXXCPP $CPPFLAGS'
19865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19868
19869   cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h.  */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h.  */
19875#include <cmath>
19876int
19877main ()
19878{
19879float f; isinf(f);
19880  ;
19881  return 0;
19882}
19883_ACEOF
19884rm -f conftest.$ac_objext
19885if { (ac_try="$ac_compile"
19886case "(($ac_try" in
19887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888  *) ac_try_echo=$ac_try;;
19889esac
19890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891  (eval "$ac_compile") 2>conftest.er1
19892  ac_status=$?
19893  grep -v '^ *+' conftest.er1 >conftest.err
19894  rm -f conftest.er1
19895  cat conftest.err >&5
19896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897  (exit $ac_status); } &&
19898	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19899  { (case "(($ac_try" in
19900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901  *) ac_try_echo=$ac_try;;
19902esac
19903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904  (eval "$ac_try") 2>&5
19905  ac_status=$?
19906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907  (exit $ac_status); }; } &&
19908	 { ac_try='test -s conftest.$ac_objext'
19909  { (case "(($ac_try" in
19910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911  *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914  (eval "$ac_try") 2>&5
19915  ac_status=$?
19916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917  (exit $ac_status); }; }; then
19918  ac_cv_func_isinf_in_cmath=yes
19919else
19920  echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923	ac_cv_func_isinf_in_cmath=no
19924fi
19925
19926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927  ac_ext=c
19928ac_cpp='$CPP $CPPFLAGS'
19929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932
19933fi
19934{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19935echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19936
19937if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19938
19939cat >>confdefs.h <<\_ACEOF
19940#define HAVE_ISINF_IN_CMATH 1
19941_ACEOF
19942
19943fi
19944
19945{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19946echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19947if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19948  echo $ECHO_N "(cached) $ECHO_C" >&6
19949else
19950  ac_ext=cpp
19951ac_cpp='$CXXCPP $CPPFLAGS'
19952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19955
19956   cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h.  */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h.  */
19962#include <cmath>
19963int
19964main ()
19965{
19966float f; std::isinf(f);
19967  ;
19968  return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (ac_try="$ac_compile"
19973case "(($ac_try" in
19974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975  *) ac_try_echo=$ac_try;;
19976esac
19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978  (eval "$ac_compile") 2>conftest.er1
19979  ac_status=$?
19980  grep -v '^ *+' conftest.er1 >conftest.err
19981  rm -f conftest.er1
19982  cat conftest.err >&5
19983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984  (exit $ac_status); } &&
19985	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19986  { (case "(($ac_try" in
19987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988  *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991  (eval "$ac_try") 2>&5
19992  ac_status=$?
19993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994  (exit $ac_status); }; } &&
19995	 { ac_try='test -s conftest.$ac_objext'
19996  { (case "(($ac_try" in
19997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998  *) ac_try_echo=$ac_try;;
19999esac
20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001  (eval "$ac_try") 2>&5
20002  ac_status=$?
20003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004  (exit $ac_status); }; }; then
20005  ac_cv_func_std_isinf_in_cmath=yes
20006else
20007  echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010	ac_cv_func_std_isinf_in_cmath=no
20011fi
20012
20013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014  ac_ext=c
20015ac_cpp='$CPP $CPPFLAGS'
20016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019
20020fi
20021{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20022echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20023
20024if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20025
20026cat >>confdefs.h <<\_ACEOF
20027#define HAVE_STD_ISINF_IN_CMATH 1
20028_ACEOF
20029
20030fi
20031
20032{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20033echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20034if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20035  echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037  ac_ext=cpp
20038ac_cpp='$CXXCPP $CPPFLAGS'
20039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
20043   cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h.  */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h.  */
20049#include <ieeefp.h>
20050int
20051main ()
20052{
20053float f; finite(f);
20054  ;
20055  return 0;
20056}
20057_ACEOF
20058rm -f conftest.$ac_objext
20059if { (ac_try="$ac_compile"
20060case "(($ac_try" in
20061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062  *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065  (eval "$ac_compile") 2>conftest.er1
20066  ac_status=$?
20067  grep -v '^ *+' conftest.er1 >conftest.err
20068  rm -f conftest.er1
20069  cat conftest.err >&5
20070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071  (exit $ac_status); } &&
20072	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073  { (case "(($ac_try" in
20074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075  *) ac_try_echo=$ac_try;;
20076esac
20077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078  (eval "$ac_try") 2>&5
20079  ac_status=$?
20080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081  (exit $ac_status); }; } &&
20082	 { ac_try='test -s conftest.$ac_objext'
20083  { (case "(($ac_try" in
20084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085  *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088  (eval "$ac_try") 2>&5
20089  ac_status=$?
20090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091  (exit $ac_status); }; }; then
20092  ac_cv_func_finite_in_ieeefp_h=yes
20093else
20094  echo "$as_me: failed program was:" >&5
20095sed 's/^/| /' conftest.$ac_ext >&5
20096
20097	ac_cv_func_finite_in_ieeefp_h=no
20098fi
20099
20100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101  ac_ext=c
20102ac_cpp='$CPP $CPPFLAGS'
20103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106
20107fi
20108{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20109echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20110
20111if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20112
20113cat >>confdefs.h <<\_ACEOF
20114#define HAVE_FINITE_IN_IEEEFP_H 1
20115_ACEOF
20116
20117fi
20118
20119
20120
20121if test "$llvm_cv_platform_type" = "Unix" ; then
20122
20123
20124for ac_header in stdlib.h unistd.h
20125do
20126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131  echo $ECHO_N "(cached) $ECHO_C" >&6
20132fi
20133ac_res=`eval echo '${'$as_ac_Header'}'`
20134	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20135echo "${ECHO_T}$ac_res" >&6; }
20136else
20137  # Is the header compilable?
20138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h.  */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h.  */
20146$ac_includes_default
20147#include <$ac_header>
20148_ACEOF
20149rm -f conftest.$ac_objext
20150if { (ac_try="$ac_compile"
20151case "(($ac_try" in
20152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153  *) ac_try_echo=$ac_try;;
20154esac
20155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156  (eval "$ac_compile") 2>conftest.er1
20157  ac_status=$?
20158  grep -v '^ *+' conftest.er1 >conftest.err
20159  rm -f conftest.er1
20160  cat conftest.err >&5
20161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162  (exit $ac_status); } &&
20163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164  { (case "(($ac_try" in
20165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166  *) ac_try_echo=$ac_try;;
20167esac
20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169  (eval "$ac_try") 2>&5
20170  ac_status=$?
20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172  (exit $ac_status); }; } &&
20173	 { ac_try='test -s conftest.$ac_objext'
20174  { (case "(($ac_try" in
20175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176  *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179  (eval "$ac_try") 2>&5
20180  ac_status=$?
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); }; }; then
20183  ac_header_compiler=yes
20184else
20185  echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188	ac_header_compiler=no
20189fi
20190
20191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20193echo "${ECHO_T}$ac_header_compiler" >&6; }
20194
20195# Is the header present?
20196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20198cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h.  */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h.  */
20204#include <$ac_header>
20205_ACEOF
20206if { (ac_try="$ac_cpp conftest.$ac_ext"
20207case "(($ac_try" in
20208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209  *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20213  ac_status=$?
20214  grep -v '^ *+' conftest.er1 >conftest.err
20215  rm -f conftest.er1
20216  cat conftest.err >&5
20217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218  (exit $ac_status); } >/dev/null; then
20219  if test -s conftest.err; then
20220    ac_cpp_err=$ac_c_preproc_warn_flag
20221    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20222  else
20223    ac_cpp_err=
20224  fi
20225else
20226  ac_cpp_err=yes
20227fi
20228if test -z "$ac_cpp_err"; then
20229  ac_header_preproc=yes
20230else
20231  echo "$as_me: failed program was:" >&5
20232sed 's/^/| /' conftest.$ac_ext >&5
20233
20234  ac_header_preproc=no
20235fi
20236
20237rm -f conftest.err conftest.$ac_ext
20238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20239echo "${ECHO_T}$ac_header_preproc" >&6; }
20240
20241# So?  What about this header?
20242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20243  yes:no: )
20244    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20246    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20248    ac_header_preproc=yes
20249    ;;
20250  no:yes:* )
20251    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20253    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20254echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20255    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20257    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20258echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20259    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20261    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20263    ( cat <<\_ASBOX
20264## ------------------------------------ ##
20265## Report this to http://llvm.org/bugs/ ##
20266## ------------------------------------ ##
20267_ASBOX
20268     ) | sed "s/^/$as_me: WARNING:     /" >&2
20269    ;;
20270esac
20271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274  echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276  eval "$as_ac_Header=\$ac_header_preproc"
20277fi
20278ac_res=`eval echo '${'$as_ac_Header'}'`
20279	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20280echo "${ECHO_T}$ac_res" >&6; }
20281
20282fi
20283if test `eval echo '${'$as_ac_Header'}'` = yes; then
20284  cat >>confdefs.h <<_ACEOF
20285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20286_ACEOF
20287
20288fi
20289
20290done
20291
20292
20293for ac_func in getpagesize
20294do
20295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20299  echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301  cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h.  */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h.  */
20307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20309#define $ac_func innocuous_$ac_func
20310
20311/* System header to define __stub macros and hopefully few prototypes,
20312    which can conflict with char $ac_func (); below.
20313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314    <limits.h> exists even on freestanding compilers.  */
20315
20316#ifdef __STDC__
20317# include <limits.h>
20318#else
20319# include <assert.h>
20320#endif
20321
20322#undef $ac_func
20323
20324/* Override any GCC internal prototype to avoid an error.
20325   Use char because int might match the return type of a GCC
20326   builtin and then its argument prototype would still apply.  */
20327#ifdef __cplusplus
20328extern "C"
20329#endif
20330char $ac_func ();
20331/* The GNU C library defines this for functions which it implements
20332    to always fail with ENOSYS.  Some functions are actually named
20333    something starting with __ and the normal name is an alias.  */
20334#if defined __stub_$ac_func || defined __stub___$ac_func
20335choke me
20336#endif
20337
20338int
20339main ()
20340{
20341return $ac_func ();
20342  ;
20343  return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext conftest$ac_exeext
20347if { (ac_try="$ac_link"
20348case "(($ac_try" in
20349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350  *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353  (eval "$ac_link") 2>conftest.er1
20354  ac_status=$?
20355  grep -v '^ *+' conftest.er1 >conftest.err
20356  rm -f conftest.er1
20357  cat conftest.err >&5
20358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359  (exit $ac_status); } &&
20360	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361  { (case "(($ac_try" in
20362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363  *) ac_try_echo=$ac_try;;
20364esac
20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366  (eval "$ac_try") 2>&5
20367  ac_status=$?
20368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369  (exit $ac_status); }; } &&
20370	 { ac_try='test -s conftest$ac_exeext'
20371  { (case "(($ac_try" in
20372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373  *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376  (eval "$ac_try") 2>&5
20377  ac_status=$?
20378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379  (exit $ac_status); }; }; then
20380  eval "$as_ac_var=yes"
20381else
20382  echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385	eval "$as_ac_var=no"
20386fi
20387
20388rm -f core conftest.err conftest.$ac_objext \
20389      conftest$ac_exeext conftest.$ac_ext
20390fi
20391ac_res=`eval echo '${'$as_ac_var'}'`
20392	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20393echo "${ECHO_T}$ac_res" >&6; }
20394if test `eval echo '${'$as_ac_var'}'` = yes; then
20395  cat >>confdefs.h <<_ACEOF
20396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20397_ACEOF
20398
20399fi
20400done
20401
20402{ echo "$as_me:$LINENO: checking for working mmap" >&5
20403echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20404if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20405  echo $ECHO_N "(cached) $ECHO_C" >&6
20406else
20407  if test "$cross_compiling" = yes; then
20408  ac_cv_func_mmap_fixed_mapped=no
20409else
20410  cat >conftest.$ac_ext <<_ACEOF
20411/* confdefs.h.  */
20412_ACEOF
20413cat confdefs.h >>conftest.$ac_ext
20414cat >>conftest.$ac_ext <<_ACEOF
20415/* end confdefs.h.  */
20416$ac_includes_default
20417/* malloc might have been renamed as rpl_malloc. */
20418#undef malloc
20419
20420/* Thanks to Mike Haertel and Jim Avera for this test.
20421   Here is a matrix of mmap possibilities:
20422	mmap private not fixed
20423	mmap private fixed at somewhere currently unmapped
20424	mmap private fixed at somewhere already mapped
20425	mmap shared not fixed
20426	mmap shared fixed at somewhere currently unmapped
20427	mmap shared fixed at somewhere already mapped
20428   For private mappings, we should verify that changes cannot be read()
20429   back from the file, nor mmap's back from the file at a different
20430   address.  (There have been systems where private was not correctly
20431   implemented like the infamous i386 svr4.0, and systems where the
20432   VM page cache was not coherent with the file system buffer cache
20433   like early versions of FreeBSD and possibly contemporary NetBSD.)
20434   For shared mappings, we should conversely verify that changes get
20435   propagated back to all the places they're supposed to be.
20436
20437   Grep wants private fixed already mapped.
20438   The main things grep needs to know about mmap are:
20439   * does it exist and is it safe to write into the mmap'd area
20440   * how to use it (BSD variants)  */
20441
20442#include <fcntl.h>
20443#include <sys/mman.h>
20444
20445#if !STDC_HEADERS && !HAVE_STDLIB_H
20446char *malloc ();
20447#endif
20448
20449/* This mess was copied from the GNU getpagesize.h.  */
20450#if !HAVE_GETPAGESIZE
20451/* Assume that all systems that can run configure have sys/param.h.  */
20452# if !HAVE_SYS_PARAM_H
20453#  define HAVE_SYS_PARAM_H 1
20454# endif
20455
20456# ifdef _SC_PAGESIZE
20457#  define getpagesize() sysconf(_SC_PAGESIZE)
20458# else /* no _SC_PAGESIZE */
20459#  if HAVE_SYS_PARAM_H
20460#   include <sys/param.h>
20461#   ifdef EXEC_PAGESIZE
20462#    define getpagesize() EXEC_PAGESIZE
20463#   else /* no EXEC_PAGESIZE */
20464#    ifdef NBPG
20465#     define getpagesize() NBPG * CLSIZE
20466#     ifndef CLSIZE
20467#      define CLSIZE 1
20468#     endif /* no CLSIZE */
20469#    else /* no NBPG */
20470#     ifdef NBPC
20471#      define getpagesize() NBPC
20472#     else /* no NBPC */
20473#      ifdef PAGESIZE
20474#       define getpagesize() PAGESIZE
20475#      endif /* PAGESIZE */
20476#     endif /* no NBPC */
20477#    endif /* no NBPG */
20478#   endif /* no EXEC_PAGESIZE */
20479#  else /* no HAVE_SYS_PARAM_H */
20480#   define getpagesize() 8192	/* punt totally */
20481#  endif /* no HAVE_SYS_PARAM_H */
20482# endif /* no _SC_PAGESIZE */
20483
20484#endif /* no HAVE_GETPAGESIZE */
20485
20486int
20487main ()
20488{
20489  char *data, *data2, *data3;
20490  int i, pagesize;
20491  int fd;
20492
20493  pagesize = getpagesize ();
20494
20495  /* First, make a file with some known garbage in it. */
20496  data = (char *) malloc (pagesize);
20497  if (!data)
20498    return 1;
20499  for (i = 0; i < pagesize; ++i)
20500    *(data + i) = rand ();
20501  umask (0);
20502  fd = creat ("conftest.mmap", 0600);
20503  if (fd < 0)
20504    return 1;
20505  if (write (fd, data, pagesize) != pagesize)
20506    return 1;
20507  close (fd);
20508
20509  /* Next, try to mmap the file at a fixed address which already has
20510     something else allocated at it.  If we can, also make sure that
20511     we see the same garbage.  */
20512  fd = open ("conftest.mmap", O_RDWR);
20513  if (fd < 0)
20514    return 1;
20515  data2 = (char *) malloc (2 * pagesize);
20516  if (!data2)
20517    return 1;
20518  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20519  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20520		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20521    return 1;
20522  for (i = 0; i < pagesize; ++i)
20523    if (*(data + i) != *(data2 + i))
20524      return 1;
20525
20526  /* Finally, make sure that changes to the mapped area do not
20527     percolate back to the file as seen by read().  (This is a bug on
20528     some variants of i386 svr4.0.)  */
20529  for (i = 0; i < pagesize; ++i)
20530    *(data2 + i) = *(data2 + i) + 1;
20531  data3 = (char *) malloc (pagesize);
20532  if (!data3)
20533    return 1;
20534  if (read (fd, data3, pagesize) != pagesize)
20535    return 1;
20536  for (i = 0; i < pagesize; ++i)
20537    if (*(data + i) != *(data3 + i))
20538      return 1;
20539  close (fd);
20540  return 0;
20541}
20542_ACEOF
20543rm -f conftest$ac_exeext
20544if { (ac_try="$ac_link"
20545case "(($ac_try" in
20546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547  *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550  (eval "$ac_link") 2>&5
20551  ac_status=$?
20552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20554  { (case "(($ac_try" in
20555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556  *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559  (eval "$ac_try") 2>&5
20560  ac_status=$?
20561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562  (exit $ac_status); }; }; then
20563  ac_cv_func_mmap_fixed_mapped=yes
20564else
20565  echo "$as_me: program exited with status $ac_status" >&5
20566echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569( exit $ac_status )
20570ac_cv_func_mmap_fixed_mapped=no
20571fi
20572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20573fi
20574
20575
20576fi
20577{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20578echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20579if test $ac_cv_func_mmap_fixed_mapped = yes; then
20580
20581cat >>confdefs.h <<\_ACEOF
20582#define HAVE_MMAP 1
20583_ACEOF
20584
20585fi
20586rm -f conftest.mmap
20587
20588  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20589echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20590if test "${ac_cv_func_mmap_file+set}" = set; then
20591  echo $ECHO_N "(cached) $ECHO_C" >&6
20592else
20593   ac_ext=c
20594ac_cpp='$CPP $CPPFLAGS'
20595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599  if test "$cross_compiling" = yes; then
20600  ac_cv_func_mmap_file=no
20601else
20602  cat >conftest.$ac_ext <<_ACEOF
20603
20604    /* confdefs.h.  */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h.  */
20609
20610#include <sys/types.h>
20611#include <sys/mman.h>
20612#include <fcntl.h>
20613
20614int
20615main ()
20616{
20617
20618  int fd;
20619  fd = creat ("foo",0777);
20620  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20621  unlink ("foo");
20622  return (fd != (int) MAP_FAILED);
20623  ;
20624  return 0;
20625}
20626_ACEOF
20627rm -f conftest$ac_exeext
20628if { (ac_try="$ac_link"
20629case "(($ac_try" in
20630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631  *) ac_try_echo=$ac_try;;
20632esac
20633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634  (eval "$ac_link") 2>&5
20635  ac_status=$?
20636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638  { (case "(($ac_try" in
20639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640  *) ac_try_echo=$ac_try;;
20641esac
20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643  (eval "$ac_try") 2>&5
20644  ac_status=$?
20645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646  (exit $ac_status); }; }; then
20647  ac_cv_func_mmap_file=yes
20648else
20649  echo "$as_me: program exited with status $ac_status" >&5
20650echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653( exit $ac_status )
20654ac_cv_func_mmap_file=no
20655fi
20656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20657fi
20658
20659
20660  ac_ext=c
20661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667fi
20668{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20669echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20670if test "$ac_cv_func_mmap_file" = yes; then
20671
20672cat >>confdefs.h <<\_ACEOF
20673#define HAVE_MMAP_FILE
20674_ACEOF
20675
20676   MMAP_FILE=yes
20677
20678fi
20679
20680  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20681echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20682if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20683  echo $ECHO_N "(cached) $ECHO_C" >&6
20684else
20685  if test "$llvm_cv_os_type" = "Interix" ; then
20686   ac_cv_need_dev_zero_for_mmap=yes
20687 else
20688   ac_cv_need_dev_zero_for_mmap=no
20689 fi
20690
20691fi
20692{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20693echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20694if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20695
20696cat >>confdefs.h <<\_ACEOF
20697#define NEED_DEV_ZERO_FOR_MMAP 1
20698_ACEOF
20699
20700fi
20701
20702  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20703  then
20704    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20705echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20706  fi
20707  if test "$ac_cv_func_mmap_file" = "no"
20708  then
20709    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20710echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20711  fi
20712fi
20713
20714{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20715echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20716ac_ext=cpp
20717ac_cpp='$CXXCPP $CPPFLAGS'
20718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
20722cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h.  */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h.  */
20728int main() {
20729        volatile unsigned long val = 1;
20730        __sync_synchronize();
20731        __sync_val_compare_and_swap(&val, 1, 0);
20732        __sync_add_and_fetch(&val, 1);
20733        __sync_sub_and_fetch(&val, 1);
20734        return 0;
20735      }
20736
20737_ACEOF
20738rm -f conftest.$ac_objext conftest$ac_exeext
20739if { (ac_try="$ac_link"
20740case "(($ac_try" in
20741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742  *) ac_try_echo=$ac_try;;
20743esac
20744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745  (eval "$ac_link") 2>conftest.er1
20746  ac_status=$?
20747  grep -v '^ *+' conftest.er1 >conftest.err
20748  rm -f conftest.er1
20749  cat conftest.err >&5
20750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751  (exit $ac_status); } &&
20752	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753  { (case "(($ac_try" in
20754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755  *) ac_try_echo=$ac_try;;
20756esac
20757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758  (eval "$ac_try") 2>&5
20759  ac_status=$?
20760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761  (exit $ac_status); }; } &&
20762	 { ac_try='test -s conftest$ac_exeext'
20763  { (case "(($ac_try" in
20764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765  *) ac_try_echo=$ac_try;;
20766esac
20767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768  (eval "$ac_try") 2>&5
20769  ac_status=$?
20770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771  (exit $ac_status); }; }; then
20772  ac_ext=c
20773ac_cpp='$CPP $CPPFLAGS'
20774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
20778  { echo "$as_me:$LINENO: result: yes" >&5
20779echo "${ECHO_T}yes" >&6; }
20780
20781cat >>confdefs.h <<\_ACEOF
20782#define LLVM_HAS_ATOMICS 1
20783_ACEOF
20784
20785else
20786  echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789	{ echo "$as_me:$LINENO: result: no" >&5
20790echo "${ECHO_T}no" >&6; }
20791
20792cat >>confdefs.h <<\_ACEOF
20793#define LLVM_HAS_ATOMICS 0
20794_ACEOF
20795
20796  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20797echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20798fi
20799
20800rm -f core conftest.err conftest.$ac_objext \
20801      conftest$ac_exeext conftest.$ac_ext
20802
20803
20804if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20805  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20806echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20807if test "${llvm_cv_linux_mixed+set}" = set; then
20808  echo $ECHO_N "(cached) $ECHO_C" >&6
20809else
20810   ac_ext=c
20811ac_cpp='$CPP $CPPFLAGS'
20812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814ac_compiler_gnu=$ac_cv_c_compiler_gnu
20815
20816  cat >conftest.$ac_ext <<_ACEOF
20817/* confdefs.h.  */
20818_ACEOF
20819cat confdefs.h >>conftest.$ac_ext
20820cat >>conftest.$ac_ext <<_ACEOF
20821/* end confdefs.h.  */
20822#ifndef __x86_64__
20823       error: Not x86-64 even if uname says so!
20824      #endif
20825
20826int
20827main ()
20828{
20829
20830  ;
20831  return 0;
20832}
20833_ACEOF
20834rm -f conftest.$ac_objext
20835if { (ac_try="$ac_compile"
20836case "(($ac_try" in
20837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838  *) ac_try_echo=$ac_try;;
20839esac
20840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841  (eval "$ac_compile") 2>conftest.er1
20842  ac_status=$?
20843  grep -v '^ *+' conftest.er1 >conftest.err
20844  rm -f conftest.er1
20845  cat conftest.err >&5
20846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847  (exit $ac_status); } &&
20848	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849  { (case "(($ac_try" in
20850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851  *) ac_try_echo=$ac_try;;
20852esac
20853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854  (eval "$ac_try") 2>&5
20855  ac_status=$?
20856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857  (exit $ac_status); }; } &&
20858	 { ac_try='test -s conftest.$ac_objext'
20859  { (case "(($ac_try" in
20860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861  *) ac_try_echo=$ac_try;;
20862esac
20863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864  (eval "$ac_try") 2>&5
20865  ac_status=$?
20866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867  (exit $ac_status); }; }; then
20868  llvm_cv_linux_mixed=no
20869else
20870  echo "$as_me: failed program was:" >&5
20871sed 's/^/| /' conftest.$ac_ext >&5
20872
20873	llvm_cv_linux_mixed=yes
20874fi
20875
20876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877  ac_ext=c
20878ac_cpp='$CPP $CPPFLAGS'
20879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881ac_compiler_gnu=$ac_cv_c_compiler_gnu
20882
20883
20884fi
20885{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20886echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20887
20888  if test "$llvm_cv_linux_mixed" = "yes"; then
20889    llvm_cv_target_arch="x86"
20890    ARCH="x86"
20891  fi
20892fi
20893
20894
20895for ac_func in __dso_handle
20896do
20897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20901  echo $ECHO_N "(cached) $ECHO_C" >&6
20902else
20903  cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h.  */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h.  */
20909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20911#define $ac_func innocuous_$ac_func
20912
20913/* System header to define __stub macros and hopefully few prototypes,
20914    which can conflict with char $ac_func (); below.
20915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20916    <limits.h> exists even on freestanding compilers.  */
20917
20918#ifdef __STDC__
20919# include <limits.h>
20920#else
20921# include <assert.h>
20922#endif
20923
20924#undef $ac_func
20925
20926/* Override any GCC internal prototype to avoid an error.
20927   Use char because int might match the return type of a GCC
20928   builtin and then its argument prototype would still apply.  */
20929#ifdef __cplusplus
20930extern "C"
20931#endif
20932char $ac_func ();
20933/* The GNU C library defines this for functions which it implements
20934    to always fail with ENOSYS.  Some functions are actually named
20935    something starting with __ and the normal name is an alias.  */
20936#if defined __stub_$ac_func || defined __stub___$ac_func
20937choke me
20938#endif
20939
20940int
20941main ()
20942{
20943return $ac_func ();
20944  ;
20945  return 0;
20946}
20947_ACEOF
20948rm -f conftest.$ac_objext conftest$ac_exeext
20949if { (ac_try="$ac_link"
20950case "(($ac_try" in
20951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952  *) ac_try_echo=$ac_try;;
20953esac
20954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955  (eval "$ac_link") 2>conftest.er1
20956  ac_status=$?
20957  grep -v '^ *+' conftest.er1 >conftest.err
20958  rm -f conftest.er1
20959  cat conftest.err >&5
20960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961  (exit $ac_status); } &&
20962	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963  { (case "(($ac_try" in
20964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965  *) ac_try_echo=$ac_try;;
20966esac
20967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968  (eval "$ac_try") 2>&5
20969  ac_status=$?
20970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971  (exit $ac_status); }; } &&
20972	 { ac_try='test -s conftest$ac_exeext'
20973  { (case "(($ac_try" in
20974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975  *) ac_try_echo=$ac_try;;
20976esac
20977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978  (eval "$ac_try") 2>&5
20979  ac_status=$?
20980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981  (exit $ac_status); }; }; then
20982  eval "$as_ac_var=yes"
20983else
20984  echo "$as_me: failed program was:" >&5
20985sed 's/^/| /' conftest.$ac_ext >&5
20986
20987	eval "$as_ac_var=no"
20988fi
20989
20990rm -f core conftest.err conftest.$ac_objext \
20991      conftest$ac_exeext conftest.$ac_ext
20992fi
20993ac_res=`eval echo '${'$as_ac_var'}'`
20994	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20995echo "${ECHO_T}$ac_res" >&6; }
20996if test `eval echo '${'$as_ac_var'}'` = yes; then
20997  cat >>confdefs.h <<_ACEOF
20998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20999_ACEOF
21000
21001fi
21002done
21003
21004
21005SHLIBEXT=$libltdl_cv_shlibext
21006
21007
21008SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21009
21010
21011if test "${prefix}" = "NONE" ; then
21012  prefix="/usr/local"
21013fi
21014eval LLVM_PREFIX="${prefix}";
21015eval LLVM_BINDIR="${prefix}/bin";
21016eval LLVM_LIBDIR="${prefix}/lib";
21017eval LLVM_DATADIR="${prefix}/share/llvm";
21018eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21019eval LLVM_ETCDIR="${prefix}/etc/llvm";
21020eval LLVM_INCLUDEDIR="${prefix}/include";
21021eval LLVM_INFODIR="${prefix}/info";
21022eval LLVM_MANDIR="${prefix}/man";
21023LLVM_CONFIGTIME=`date`
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035if test "${ENABLE_TIMESTAMPS}" = "0"; then
21036  LLVM_CONFIGTIME="(timestamp not enabled)"
21037fi
21038
21039
21040cat >>confdefs.h <<_ACEOF
21041#define LLVM_PREFIX "$LLVM_PREFIX"
21042_ACEOF
21043
21044
21045cat >>confdefs.h <<_ACEOF
21046#define LLVM_BINDIR "$LLVM_BINDIR"
21047_ACEOF
21048
21049
21050cat >>confdefs.h <<_ACEOF
21051#define LLVM_LIBDIR "$LLVM_LIBDIR"
21052_ACEOF
21053
21054
21055cat >>confdefs.h <<_ACEOF
21056#define LLVM_DATADIR "$LLVM_DATADIR"
21057_ACEOF
21058
21059
21060cat >>confdefs.h <<_ACEOF
21061#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21062_ACEOF
21063
21064
21065cat >>confdefs.h <<_ACEOF
21066#define LLVM_ETCDIR "$LLVM_ETCDIR"
21067_ACEOF
21068
21069
21070cat >>confdefs.h <<_ACEOF
21071#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21072_ACEOF
21073
21074
21075cat >>confdefs.h <<_ACEOF
21076#define LLVM_INFODIR "$LLVM_INFODIR"
21077_ACEOF
21078
21079
21080cat >>confdefs.h <<_ACEOF
21081#define LLVM_MANDIR "$LLVM_MANDIR"
21082_ACEOF
21083
21084
21085cat >>confdefs.h <<_ACEOF
21086#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21087_ACEOF
21088
21089
21090cat >>confdefs.h <<_ACEOF
21091#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21092_ACEOF
21093
21094
21095if test "$BINDINGS_TO_BUILD" = auto ; then
21096  BINDINGS_TO_BUILD=""
21097  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21098    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21099  fi
21100fi
21101BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21102
21103
21104ALL_BINDINGS=ocaml
21105
21106
21107binding_prereqs_failed=0
21108for a_binding in $BINDINGS_TO_BUILD ; do
21109  case "$a_binding" in
21110  ocaml)
21111    if test "x$OCAMLC" = x ; then
21112      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21113echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21114      binding_prereqs_failed=1
21115    fi
21116    if test "x$OCAMLDEP" = x ; then
21117      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21118echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21119      binding_prereqs_failed=1
21120    fi
21121    if test "x$OCAMLOPT" = x ; then
21122      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21123echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21124          fi
21125    if test "x$with_ocaml_libdir" != xauto ; then
21126      OCAML_LIBDIR=$with_ocaml_libdir
21127
21128    else
21129      ocaml_stdlib="`"$OCAMLC" -where`"
21130      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21131      then
21132        # ocaml stdlib is beneath our prefix; use stdlib
21133        OCAML_LIBDIR=$ocaml_stdlib
21134
21135      else
21136        # ocaml stdlib is outside our prefix; use libdir/ocaml
21137        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21138
21139      fi
21140    fi
21141    ;;
21142  esac
21143done
21144if test "$binding_prereqs_failed" = 1 ; then
21145  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21146echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21147   { (exit 1); exit 1; }; }
21148fi
21149
21150{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21151echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21152if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21153  echo $ECHO_N "(cached) $ECHO_C" >&6
21154else
21155   ac_ext=cpp
21156ac_cpp='$CXXCPP $CPPFLAGS'
21157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160
21161  oldcxxflags="$CXXFLAGS"
21162  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21163  cat >conftest.$ac_ext <<_ACEOF
21164/* confdefs.h.  */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
21168/* end confdefs.h.  */
21169template <typename T> struct X { void __attribute__((noinline)) f() {} };
21170int
21171main ()
21172{
21173X<int>().f();
21174  ;
21175  return 0;
21176}
21177_ACEOF
21178rm -f conftest.$ac_objext
21179if { (ac_try="$ac_compile"
21180case "(($ac_try" in
21181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182  *) ac_try_echo=$ac_try;;
21183esac
21184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185  (eval "$ac_compile") 2>conftest.er1
21186  ac_status=$?
21187  grep -v '^ *+' conftest.er1 >conftest.err
21188  rm -f conftest.er1
21189  cat conftest.err >&5
21190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191  (exit $ac_status); } &&
21192	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21193  { (case "(($ac_try" in
21194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195  *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198  (eval "$ac_try") 2>&5
21199  ac_status=$?
21200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201  (exit $ac_status); }; } &&
21202	 { ac_try='test -s conftest.$ac_objext'
21203  { (case "(($ac_try" in
21204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205  *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208  (eval "$ac_try") 2>&5
21209  ac_status=$?
21210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211  (exit $ac_status); }; }; then
21212  llvm_cv_cxx_visibility_inlines_hidden=yes
21213else
21214  echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217	llvm_cv_cxx_visibility_inlines_hidden=no
21218fi
21219
21220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221  CXXFLAGS="$oldcxxflags"
21222  ac_ext=c
21223ac_cpp='$CPP $CPPFLAGS'
21224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227
21228
21229fi
21230{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21231echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21232if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21233  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21234
21235else
21236  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21237
21238fi
21239
21240
21241if test "$llvm_cv_link_use_r" = "yes" ; then
21242  RPATH="-Wl,-R"
21243else
21244  RPATH="-Wl,-rpath"
21245fi
21246
21247
21248if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21249  RDYNAMIC="-Wl,-export-dynamic"
21250else
21251  RDYNAMIC=""
21252fi
21253
21254
21255
21256ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21257
21258
21259
21260
21261
21262
21263ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21264
21265ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21266
21267ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21268
21269ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21270
21271ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21272
21273
21274ac_config_files="$ac_config_files Makefile.config"
21275
21276
21277ac_config_files="$ac_config_files llvm.spec"
21278
21279
21280ac_config_files="$ac_config_files docs/doxygen.cfg"
21281
21282
21283if test "${clang_src_root}" = ""; then
21284  clang_src_root="$srcdir/tools/clang"
21285fi
21286if test -f ${clang_src_root}/README.txt; then
21287    configh="include/clang/Config/config.h"
21288  doxy="docs/doxygen.cfg"
21289  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21290
21291  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21292
21293fi
21294
21295ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21296
21297
21298ac_config_commands="$ac_config_commands setup"
21299
21300ac_config_commands="$ac_config_commands Makefile"
21301
21302
21303ac_config_commands="$ac_config_commands Makefile.common"
21304
21305
21306ac_config_commands="$ac_config_commands examples/Makefile"
21307
21308
21309ac_config_commands="$ac_config_commands lib/Makefile"
21310
21311
21312ac_config_commands="$ac_config_commands runtime/Makefile"
21313
21314
21315ac_config_commands="$ac_config_commands test/Makefile"
21316
21317
21318ac_config_commands="$ac_config_commands test/Makefile.tests"
21319
21320
21321ac_config_commands="$ac_config_commands unittests/Makefile"
21322
21323
21324ac_config_commands="$ac_config_commands tools/Makefile"
21325
21326
21327ac_config_commands="$ac_config_commands utils/Makefile"
21328
21329
21330ac_config_commands="$ac_config_commands projects/Makefile"
21331
21332
21333ac_config_commands="$ac_config_commands bindings/Makefile"
21334
21335
21336ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21337
21338
21339
21340cat >confcache <<\_ACEOF
21341# This file is a shell script that caches the results of configure
21342# tests run on this system so they can be shared between configure
21343# scripts and configure runs, see configure's option --config-cache.
21344# It is not useful on other systems.  If it contains results you don't
21345# want to keep, you may remove or edit it.
21346#
21347# config.status only pays attention to the cache file if you give it
21348# the --recheck option to rerun configure.
21349#
21350# `ac_cv_env_foo' variables (set or unset) will be overridden when
21351# loading this file, other *unset* `ac_cv_foo' will be assigned the
21352# following values.
21353
21354_ACEOF
21355
21356# The following way of writing the cache mishandles newlines in values,
21357# but we know of no workaround that is simple, portable, and efficient.
21358# So, we kill variables containing newlines.
21359# Ultrix sh set writes to stderr and can't be redirected directly,
21360# and sets the high bit in the cache file unless we assign to the vars.
21361(
21362  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21363    eval ac_val=\$$ac_var
21364    case $ac_val in #(
21365    *${as_nl}*)
21366      case $ac_var in #(
21367      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21368echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21369      esac
21370      case $ac_var in #(
21371      _ | IFS | as_nl) ;; #(
21372      *) $as_unset $ac_var ;;
21373      esac ;;
21374    esac
21375  done
21376
21377  (set) 2>&1 |
21378    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21379    *${as_nl}ac_space=\ *)
21380      # `set' does not quote correctly, so add quotes (double-quote
21381      # substitution turns \\\\ into \\, and sed turns \\ into \).
21382      sed -n \
21383	"s/'/'\\\\''/g;
21384	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21385      ;; #(
21386    *)
21387      # `set' quotes correctly as required by POSIX, so do not add quotes.
21388      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21389      ;;
21390    esac |
21391    sort
21392) |
21393  sed '
21394     /^ac_cv_env_/b end
21395     t clear
21396     :clear
21397     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21398     t end
21399     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21400     :end' >>confcache
21401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21402  if test -w "$cache_file"; then
21403    test "x$cache_file" != "x/dev/null" &&
21404      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21405echo "$as_me: updating cache $cache_file" >&6;}
21406    cat confcache >$cache_file
21407  else
21408    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21409echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21410  fi
21411fi
21412rm -f confcache
21413
21414test "x$prefix" = xNONE && prefix=$ac_default_prefix
21415# Let make expand exec_prefix.
21416test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21417
21418DEFS=-DHAVE_CONFIG_H
21419
21420ac_libobjs=
21421ac_ltlibobjs=
21422for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21423  # 1. Remove the extension, and $U if already installed.
21424  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21425  ac_i=`echo "$ac_i" | sed "$ac_script"`
21426  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21427  #    will be set to the directory where LIBOBJS objects are built.
21428  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21429  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21430done
21431LIBOBJS=$ac_libobjs
21432
21433LTLIBOBJS=$ac_ltlibobjs
21434
21435
21436if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21437  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21438Usually this means the macro was only invoked conditionally." >&5
21439echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21440Usually this means the macro was only invoked conditionally." >&2;}
21441   { (exit 1); exit 1; }; }
21442fi
21443if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21444  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21445Usually this means the macro was only invoked conditionally." >&5
21446echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21447Usually this means the macro was only invoked conditionally." >&2;}
21448   { (exit 1); exit 1; }; }
21449fi
21450
21451: ${CONFIG_STATUS=./config.status}
21452ac_clean_files_save=$ac_clean_files
21453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21454{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21455echo "$as_me: creating $CONFIG_STATUS" >&6;}
21456cat >$CONFIG_STATUS <<_ACEOF
21457#! $SHELL
21458# Generated by $as_me.
21459# Run this file to recreate the current configuration.
21460# Compiler output produced by configure, useful for debugging
21461# configure, is in config.log if it exists.
21462
21463debug=false
21464ac_cs_recheck=false
21465ac_cs_silent=false
21466SHELL=\${CONFIG_SHELL-$SHELL}
21467_ACEOF
21468
21469cat >>$CONFIG_STATUS <<\_ACEOF
21470## --------------------- ##
21471## M4sh Initialization.  ##
21472## --------------------- ##
21473
21474# Be Bourne compatible
21475if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21476  emulate sh
21477  NULLCMD=:
21478  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21479  # is contrary to our usage.  Disable this feature.
21480  alias -g '${1+"$@"}'='"$@"'
21481  setopt NO_GLOB_SUBST
21482else
21483  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21484fi
21485BIN_SH=xpg4; export BIN_SH # for Tru64
21486DUALCASE=1; export DUALCASE # for MKS sh
21487
21488
21489# PATH needs CR
21490# Avoid depending upon Character Ranges.
21491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21494as_cr_digits='0123456789'
21495as_cr_alnum=$as_cr_Letters$as_cr_digits
21496
21497# The user is always right.
21498if test "${PATH_SEPARATOR+set}" != set; then
21499  echo "#! /bin/sh" >conf$$.sh
21500  echo  "exit 0"   >>conf$$.sh
21501  chmod +x conf$$.sh
21502  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21503    PATH_SEPARATOR=';'
21504  else
21505    PATH_SEPARATOR=:
21506  fi
21507  rm -f conf$$.sh
21508fi
21509
21510# Support unset when possible.
21511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21512  as_unset=unset
21513else
21514  as_unset=false
21515fi
21516
21517
21518# IFS
21519# We need space, tab and new line, in precisely that order.  Quoting is
21520# there to prevent editors from complaining about space-tab.
21521# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21522# splitting by setting IFS to empty value.)
21523as_nl='
21524'
21525IFS=" ""	$as_nl"
21526
21527# Find who we are.  Look in the path if we contain no directory separator.
21528case $0 in
21529  *[\\/]* ) as_myself=$0 ;;
21530  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21531for as_dir in $PATH
21532do
21533  IFS=$as_save_IFS
21534  test -z "$as_dir" && as_dir=.
21535  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21536done
21537IFS=$as_save_IFS
21538
21539     ;;
21540esac
21541# We did not find ourselves, most probably we were run as `sh COMMAND'
21542# in which case we are not to be found in the path.
21543if test "x$as_myself" = x; then
21544  as_myself=$0
21545fi
21546if test ! -f "$as_myself"; then
21547  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21548  { (exit 1); exit 1; }
21549fi
21550
21551# Work around bugs in pre-3.0 UWIN ksh.
21552for as_var in ENV MAIL MAILPATH
21553do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21554done
21555PS1='$ '
21556PS2='> '
21557PS4='+ '
21558
21559# NLS nuisances.
21560for as_var in \
21561  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21562  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21563  LC_TELEPHONE LC_TIME
21564do
21565  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21566    eval $as_var=C; export $as_var
21567  else
21568    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21569  fi
21570done
21571
21572# Required to use basename.
21573if expr a : '\(a\)' >/dev/null 2>&1 &&
21574   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21575  as_expr=expr
21576else
21577  as_expr=false
21578fi
21579
21580if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21581  as_basename=basename
21582else
21583  as_basename=false
21584fi
21585
21586
21587# Name of the executable.
21588as_me=`$as_basename -- "$0" ||
21589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21590	 X"$0" : 'X\(//\)$' \| \
21591	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21592echo X/"$0" |
21593    sed '/^.*\/\([^/][^/]*\)\/*$/{
21594	    s//\1/
21595	    q
21596	  }
21597	  /^X\/\(\/\/\)$/{
21598	    s//\1/
21599	    q
21600	  }
21601	  /^X\/\(\/\).*/{
21602	    s//\1/
21603	    q
21604	  }
21605	  s/.*/./; q'`
21606
21607# CDPATH.
21608$as_unset CDPATH
21609
21610
21611
21612  as_lineno_1=$LINENO
21613  as_lineno_2=$LINENO
21614  test "x$as_lineno_1" != "x$as_lineno_2" &&
21615  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21616
21617  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618  # uniformly replaced by the line number.  The first 'sed' inserts a
21619  # line-number line after each line using $LINENO; the second 'sed'
21620  # does the real work.  The second script uses 'N' to pair each
21621  # line-number line with the line containing $LINENO, and appends
21622  # trailing '-' during substitution so that $LINENO is not a special
21623  # case at line end.
21624  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21625  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21626  # E. McMahon (1931-1989) for sed's syntax.  :-)
21627  sed -n '
21628    p
21629    /[$]LINENO/=
21630  ' <$as_myself |
21631    sed '
21632      s/[$]LINENO.*/&-/
21633      t lineno
21634      b
21635      :lineno
21636      N
21637      :loop
21638      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21639      t loop
21640      s/-\n.*//
21641    ' >$as_me.lineno &&
21642  chmod +x "$as_me.lineno" ||
21643    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21644   { (exit 1); exit 1; }; }
21645
21646  # Don't try to exec as it changes $[0], causing all sort of problems
21647  # (the dirname of $[0] is not the place where we might find the
21648  # original and so on.  Autoconf is especially sensitive to this).
21649  . "./$as_me.lineno"
21650  # Exit status is that of the last command.
21651  exit
21652}
21653
21654
21655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21656  as_dirname=dirname
21657else
21658  as_dirname=false
21659fi
21660
21661ECHO_C= ECHO_N= ECHO_T=
21662case `echo -n x` in
21663-n*)
21664  case `echo 'x\c'` in
21665  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21666  *)   ECHO_C='\c';;
21667  esac;;
21668*)
21669  ECHO_N='-n';;
21670esac
21671
21672if expr a : '\(a\)' >/dev/null 2>&1 &&
21673   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21674  as_expr=expr
21675else
21676  as_expr=false
21677fi
21678
21679rm -f conf$$ conf$$.exe conf$$.file
21680if test -d conf$$.dir; then
21681  rm -f conf$$.dir/conf$$.file
21682else
21683  rm -f conf$$.dir
21684  mkdir conf$$.dir
21685fi
21686echo >conf$$.file
21687if ln -s conf$$.file conf$$ 2>/dev/null; then
21688  as_ln_s='ln -s'
21689  # ... but there are two gotchas:
21690  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21691  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21692  # In both cases, we have to default to `cp -p'.
21693  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21694    as_ln_s='cp -p'
21695elif ln conf$$.file conf$$ 2>/dev/null; then
21696  as_ln_s=ln
21697else
21698  as_ln_s='cp -p'
21699fi
21700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21701rmdir conf$$.dir 2>/dev/null
21702
21703if mkdir -p . 2>/dev/null; then
21704  as_mkdir_p=:
21705else
21706  test -d ./-p && rmdir ./-p
21707  as_mkdir_p=false
21708fi
21709
21710# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21711# systems may use methods other than mode bits to determine executability.
21712cat >conf$$.file <<_ASEOF
21713#! /bin/sh
21714exit 0
21715_ASEOF
21716chmod +x conf$$.file
21717if test -x conf$$.file >/dev/null 2>&1; then
21718  as_executable_p="test -x"
21719else
21720  as_executable_p=:
21721fi
21722rm -f conf$$.file
21723
21724# Sed expression to map a string onto a valid CPP name.
21725as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21726
21727# Sed expression to map a string onto a valid variable name.
21728as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21729
21730
21731exec 6>&1
21732
21733# Save the log message, to keep $[0] and so on meaningful, and to
21734# report actual input values of CONFIG_FILES etc. instead of their
21735# values after options handling.
21736ac_log="
21737This file was extended by LLVM $as_me 3.2svn, which was
21738generated by GNU Autoconf 2.60.  Invocation command line was
21739
21740  CONFIG_FILES    = $CONFIG_FILES
21741  CONFIG_HEADERS  = $CONFIG_HEADERS
21742  CONFIG_LINKS    = $CONFIG_LINKS
21743  CONFIG_COMMANDS = $CONFIG_COMMANDS
21744  $ $0 $@
21745
21746on `(hostname || uname -n) 2>/dev/null | sed 1q`
21747"
21748
21749_ACEOF
21750
21751cat >>$CONFIG_STATUS <<_ACEOF
21752# Files that config.status was made for.
21753config_files="$ac_config_files"
21754config_headers="$ac_config_headers"
21755config_commands="$ac_config_commands"
21756
21757_ACEOF
21758
21759cat >>$CONFIG_STATUS <<\_ACEOF
21760ac_cs_usage="\
21761\`$as_me' instantiates files from templates according to the
21762current configuration.
21763
21764Usage: $0 [OPTIONS] [FILE]...
21765
21766  -h, --help       print this help, then exit
21767  -V, --version    print version number, then exit
21768  -q, --quiet      do not print progress messages
21769  -d, --debug      don't remove temporary files
21770      --recheck    update $as_me by reconfiguring in the same conditions
21771  --file=FILE[:TEMPLATE]
21772		   instantiate the configuration file FILE
21773  --header=FILE[:TEMPLATE]
21774		   instantiate the configuration header FILE
21775
21776Configuration files:
21777$config_files
21778
21779Configuration headers:
21780$config_headers
21781
21782Configuration commands:
21783$config_commands
21784
21785Report bugs to <bug-autoconf@gnu.org>."
21786
21787_ACEOF
21788cat >>$CONFIG_STATUS <<_ACEOF
21789ac_cs_version="\\
21790LLVM config.status 3.2svn
21791configured by $0, generated by GNU Autoconf 2.60,
21792  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21793
21794Copyright (C) 2006 Free Software Foundation, Inc.
21795This config.status script is free software; the Free Software Foundation
21796gives unlimited permission to copy, distribute and modify it."
21797
21798ac_pwd='$ac_pwd'
21799srcdir='$srcdir'
21800INSTALL='$INSTALL'
21801_ACEOF
21802
21803cat >>$CONFIG_STATUS <<\_ACEOF
21804# If no file are specified by the user, then we need to provide default
21805# value.  By we need to know if files were specified by the user.
21806ac_need_defaults=:
21807while test $# != 0
21808do
21809  case $1 in
21810  --*=*)
21811    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21812    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21813    ac_shift=:
21814    ;;
21815  *)
21816    ac_option=$1
21817    ac_optarg=$2
21818    ac_shift=shift
21819    ;;
21820  esac
21821
21822  case $ac_option in
21823  # Handling of the options.
21824  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21825    ac_cs_recheck=: ;;
21826  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21827    echo "$ac_cs_version"; exit ;;
21828  --debug | --debu | --deb | --de | --d | -d )
21829    debug=: ;;
21830  --file | --fil | --fi | --f )
21831    $ac_shift
21832    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21833    ac_need_defaults=false;;
21834  --header | --heade | --head | --hea )
21835    $ac_shift
21836    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21837    ac_need_defaults=false;;
21838  --he | --h)
21839    # Conflict between --help and --header
21840    { echo "$as_me: error: ambiguous option: $1
21841Try \`$0 --help' for more information." >&2
21842   { (exit 1); exit 1; }; };;
21843  --help | --hel | -h )
21844    echo "$ac_cs_usage"; exit ;;
21845  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21847    ac_cs_silent=: ;;
21848
21849  # This is an error.
21850  -*) { echo "$as_me: error: unrecognized option: $1
21851Try \`$0 --help' for more information." >&2
21852   { (exit 1); exit 1; }; } ;;
21853
21854  *) ac_config_targets="$ac_config_targets $1"
21855     ac_need_defaults=false ;;
21856
21857  esac
21858  shift
21859done
21860
21861ac_configure_extra_args=
21862
21863if $ac_cs_silent; then
21864  exec 6>/dev/null
21865  ac_configure_extra_args="$ac_configure_extra_args --silent"
21866fi
21867
21868_ACEOF
21869cat >>$CONFIG_STATUS <<_ACEOF
21870if \$ac_cs_recheck; then
21871  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21872  CONFIG_SHELL=$SHELL
21873  export CONFIG_SHELL
21874  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21875fi
21876
21877_ACEOF
21878cat >>$CONFIG_STATUS <<\_ACEOF
21879exec 5>>config.log
21880{
21881  echo
21882  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21883## Running $as_me. ##
21884_ASBOX
21885  echo "$ac_log"
21886} >&5
21887
21888_ACEOF
21889cat >>$CONFIG_STATUS <<_ACEOF
21890#
21891# INIT-COMMANDS
21892#
21893llvm_src="${srcdir}"
21894
21895_ACEOF
21896
21897cat >>$CONFIG_STATUS <<\_ACEOF
21898
21899# Handling of arguments.
21900for ac_config_target in $ac_config_targets
21901do
21902  case $ac_config_target in
21903    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21904    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21905    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21906    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21907    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21908    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21909    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21910    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21911    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21912    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21913    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21914    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21915    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21916    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21917    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21918    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21919    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21920    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21921    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21922    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21923    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21924    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21925    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21926    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21927    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21928    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21929    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21930
21931  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21932echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21933   { (exit 1); exit 1; }; };;
21934  esac
21935done
21936
21937
21938# If the user did not use the arguments to specify the items to instantiate,
21939# then the envvar interface is used.  Set only those that are not.
21940# We use the long form for the default assignment because of an extremely
21941# bizarre bug on SunOS 4.1.3.
21942if $ac_need_defaults; then
21943  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21944  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21945  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21946fi
21947
21948# Have a temporary directory for convenience.  Make it in the build tree
21949# simply because there is no reason against having it here, and in addition,
21950# creating and moving files from /tmp can sometimes cause problems.
21951# Hook for its removal unless debugging.
21952# Note that there is a small window in which the directory will not be cleaned:
21953# after its creation but before its name has been assigned to `$tmp'.
21954$debug ||
21955{
21956  tmp=
21957  trap 'exit_status=$?
21958  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21959' 0
21960  trap '{ (exit 1); exit 1; }' 1 2 13 15
21961}
21962# Create a (secure) tmp directory for tmp files.
21963
21964{
21965  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21966  test -n "$tmp" && test -d "$tmp"
21967}  ||
21968{
21969  tmp=./conf$$-$RANDOM
21970  (umask 077 && mkdir "$tmp")
21971} ||
21972{
21973   echo "$me: cannot create a temporary directory in ." >&2
21974   { (exit 1); exit 1; }
21975}
21976
21977#
21978# Set up the sed scripts for CONFIG_FILES section.
21979#
21980
21981# No need to generate the scripts if there are no CONFIG_FILES.
21982# This happens for instance when ./config.status config.h
21983if test -n "$CONFIG_FILES"; then
21984
21985_ACEOF
21986
21987
21988
21989ac_delim='%!_!# '
21990for ac_last_try in false false false false false :; do
21991  cat >conf$$subs.sed <<_ACEOF
21992SHELL!$SHELL$ac_delim
21993PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21994PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21995PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21996PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21997PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21998PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21999exec_prefix!$exec_prefix$ac_delim
22000prefix!$prefix$ac_delim
22001program_transform_name!$program_transform_name$ac_delim
22002bindir!$bindir$ac_delim
22003sbindir!$sbindir$ac_delim
22004libexecdir!$libexecdir$ac_delim
22005datarootdir!$datarootdir$ac_delim
22006datadir!$datadir$ac_delim
22007sysconfdir!$sysconfdir$ac_delim
22008sharedstatedir!$sharedstatedir$ac_delim
22009localstatedir!$localstatedir$ac_delim
22010includedir!$includedir$ac_delim
22011oldincludedir!$oldincludedir$ac_delim
22012docdir!$docdir$ac_delim
22013infodir!$infodir$ac_delim
22014htmldir!$htmldir$ac_delim
22015dvidir!$dvidir$ac_delim
22016pdfdir!$pdfdir$ac_delim
22017psdir!$psdir$ac_delim
22018libdir!$libdir$ac_delim
22019localedir!$localedir$ac_delim
22020mandir!$mandir$ac_delim
22021DEFS!$DEFS$ac_delim
22022ECHO_C!$ECHO_C$ac_delim
22023ECHO_N!$ECHO_N$ac_delim
22024ECHO_T!$ECHO_T$ac_delim
22025LIBS!$LIBS$ac_delim
22026build_alias!$build_alias$ac_delim
22027host_alias!$host_alias$ac_delim
22028target_alias!$target_alias$ac_delim
22029LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22030CC!$CC$ac_delim
22031CFLAGS!$CFLAGS$ac_delim
22032LDFLAGS!$LDFLAGS$ac_delim
22033CPPFLAGS!$CPPFLAGS$ac_delim
22034ac_ct_CC!$ac_ct_CC$ac_delim
22035EXEEXT!$EXEEXT$ac_delim
22036OBJEXT!$OBJEXT$ac_delim
22037CXX!$CXX$ac_delim
22038CXXFLAGS!$CXXFLAGS$ac_delim
22039ac_ct_CXX!$ac_ct_CXX$ac_delim
22040CPP!$CPP$ac_delim
22041subdirs!$subdirs$ac_delim
22042ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22043LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22044build!$build$ac_delim
22045build_cpu!$build_cpu$ac_delim
22046build_vendor!$build_vendor$ac_delim
22047build_os!$build_os$ac_delim
22048host!$host$ac_delim
22049host_cpu!$host_cpu$ac_delim
22050host_vendor!$host_vendor$ac_delim
22051host_os!$host_os$ac_delim
22052target!$target$ac_delim
22053target_cpu!$target_cpu$ac_delim
22054target_vendor!$target_vendor$ac_delim
22055target_os!$target_os$ac_delim
22056OS!$OS$ac_delim
22057HOST_OS!$HOST_OS$ac_delim
22058TARGET_OS!$TARGET_OS$ac_delim
22059LINKALL!$LINKALL$ac_delim
22060NOLINKALL!$NOLINKALL$ac_delim
22061LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22062LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22063ARCH!$ARCH$ac_delim
22064HOST_ARCH!$HOST_ARCH$ac_delim
22065ENDIAN!$ENDIAN$ac_delim
22066GREP!$GREP$ac_delim
22067EGREP!$EGREP$ac_delim
22068LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22069BUILD_CC!$BUILD_CC$ac_delim
22070BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22071BUILD_CXX!$BUILD_CXX$ac_delim
22072CVSBUILD!$CVSBUILD$ac_delim
22073ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22074ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22075ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22076DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22077ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22078EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22079DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22080DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22081JIT!$JIT$ac_delim
22082TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22083ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22084ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22085LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22086ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22087ENABLE_PIC!$ENABLE_PIC$ac_delim
22088ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22089_ACEOF
22090
22091  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22092    break
22093  elif $ac_last_try; then
22094    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096   { (exit 1); exit 1; }; }
22097  else
22098    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22099  fi
22100done
22101
22102ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103if test -n "$ac_eof"; then
22104  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105  ac_eof=`expr $ac_eof + 1`
22106fi
22107
22108cat >>$CONFIG_STATUS <<_ACEOF
22109cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22110/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22111_ACEOF
22112sed '
22113s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114s/^/s,@/; s/!/@,|#_!!_#|/
22115:n
22116t n
22117s/'"$ac_delim"'$/,g/; t
22118s/$/\\/; p
22119N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120' >>$CONFIG_STATUS <conf$$subs.sed
22121rm -f conf$$subs.sed
22122cat >>$CONFIG_STATUS <<_ACEOF
22123CEOF$ac_eof
22124_ACEOF
22125
22126
22127ac_delim='%!_!# '
22128for ac_last_try in false false false false false :; do
22129  cat >conf$$subs.sed <<_ACEOF
22130ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22131ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22132TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22133LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22134LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22135LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22136LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22137OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22138EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22139EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22140CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22141BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22142INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22143NM!$NM$ac_delim
22144ifGNUmake!$ifGNUmake$ac_delim
22145LN_S!$LN_S$ac_delim
22146CMP!$CMP$ac_delim
22147CP!$CP$ac_delim
22148DATE!$DATE$ac_delim
22149FIND!$FIND$ac_delim
22150MKDIR!$MKDIR$ac_delim
22151MV!$MV$ac_delim
22152RANLIB!$RANLIB$ac_delim
22153AR!$AR$ac_delim
22154RM!$RM$ac_delim
22155SED!$SED$ac_delim
22156TAR!$TAR$ac_delim
22157BINPWD!$BINPWD$ac_delim
22158GRAPHVIZ!$GRAPHVIZ$ac_delim
22159DOT!$DOT$ac_delim
22160FDP!$FDP$ac_delim
22161NEATO!$NEATO$ac_delim
22162TWOPI!$TWOPI$ac_delim
22163CIRCO!$CIRCO$ac_delim
22164GV!$GV$ac_delim
22165DOTTY!$DOTTY$ac_delim
22166XDOT_PY!$XDOT_PY$ac_delim
22167INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22168INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22169INSTALL_DATA!$INSTALL_DATA$ac_delim
22170BZIP2!$BZIP2$ac_delim
22171CAT!$CAT$ac_delim
22172DOXYGEN!$DOXYGEN$ac_delim
22173GROFF!$GROFF$ac_delim
22174GZIPBIN!$GZIPBIN$ac_delim
22175PDFROFF!$PDFROFF$ac_delim
22176RUNTEST!$RUNTEST$ac_delim
22177TCLSH!$TCLSH$ac_delim
22178ZIP!$ZIP$ac_delim
22179OCAMLC!$OCAMLC$ac_delim
22180OCAMLOPT!$OCAMLOPT$ac_delim
22181OCAMLDEP!$OCAMLDEP$ac_delim
22182OCAMLDOC!$OCAMLDOC$ac_delim
22183GAS!$GAS$ac_delim
22184HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22185INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22186INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22187CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22188CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22189LIBADD_DL!$LIBADD_DL$ac_delim
22190NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22191NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22192COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22193USE_UDIS86!$USE_UDIS86$ac_delim
22194USE_OPROFILE!$USE_OPROFILE$ac_delim
22195USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22196INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22197INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22198HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22199HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22200MMAP_FILE!$MMAP_FILE$ac_delim
22201SHLIBEXT!$SHLIBEXT$ac_delim
22202SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22203LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22204LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22205LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22206LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22207LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22208LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22209LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22210LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22211LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22212LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22213BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22214ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22215OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22216ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22217RPATH!$RPATH$ac_delim
22218RDYNAMIC!$RDYNAMIC$ac_delim
22219LIBOBJS!$LIBOBJS$ac_delim
22220LTLIBOBJS!$LTLIBOBJS$ac_delim
22221_ACEOF
22222
22223  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22224    break
22225  elif $ac_last_try; then
22226    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228   { (exit 1); exit 1; }; }
22229  else
22230    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22231  fi
22232done
22233
22234ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235if test -n "$ac_eof"; then
22236  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237  ac_eof=`expr $ac_eof + 1`
22238fi
22239
22240cat >>$CONFIG_STATUS <<_ACEOF
22241cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22243_ACEOF
22244sed '
22245s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246s/^/s,@/; s/!/@,|#_!!_#|/
22247:n
22248t n
22249s/'"$ac_delim"'$/,g/; t
22250s/$/\\/; p
22251N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252' >>$CONFIG_STATUS <conf$$subs.sed
22253rm -f conf$$subs.sed
22254cat >>$CONFIG_STATUS <<_ACEOF
22255:end
22256s/|#_!!_#|//g
22257CEOF$ac_eof
22258_ACEOF
22259
22260
22261# VPATH may cause trouble with some makes, so we remove $(srcdir),
22262# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263# trailing colons and then remove the whole line if VPATH becomes empty
22264# (actually we leave an empty line to preserve line numbers).
22265if test "x$srcdir" = x.; then
22266  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22267s/:*\$(srcdir):*/:/
22268s/:*\${srcdir}:*/:/
22269s/:*@srcdir@:*/:/
22270s/^\([^=]*=[	 ]*\):*/\1/
22271s/:*$//
22272s/^[^=]*=[	 ]*$//
22273}'
22274fi
22275
22276cat >>$CONFIG_STATUS <<\_ACEOF
22277fi # test -n "$CONFIG_FILES"
22278
22279
22280for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22281do
22282  case $ac_tag in
22283  :[FHLC]) ac_mode=$ac_tag; continue;;
22284  esac
22285  case $ac_mode$ac_tag in
22286  :[FHL]*:*);;
22287  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289   { (exit 1); exit 1; }; };;
22290  :[FH]-) ac_tag=-:-;;
22291  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22292  esac
22293  ac_save_IFS=$IFS
22294  IFS=:
22295  set x $ac_tag
22296  IFS=$ac_save_IFS
22297  shift
22298  ac_file=$1
22299  shift
22300
22301  case $ac_mode in
22302  :L) ac_source=$1;;
22303  :[FH])
22304    ac_file_inputs=
22305    for ac_f
22306    do
22307      case $ac_f in
22308      -) ac_f="$tmp/stdin";;
22309      *) # Look for the file first in the build tree, then in the source tree
22310	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22311	 # because $ac_f cannot contain `:'.
22312	 test -f "$ac_f" ||
22313	   case $ac_f in
22314	   [\\/$]*) false;;
22315	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22316	   esac ||
22317	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319   { (exit 1); exit 1; }; };;
22320      esac
22321      ac_file_inputs="$ac_file_inputs $ac_f"
22322    done
22323
22324    # Let's still pretend it is `configure' which instantiates (i.e., don't
22325    # use $as_me), people would be surprised to read:
22326    #    /* config.h.  Generated by config.status.  */
22327    configure_input="Generated from "`IFS=:
22328	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22329    if test x"$ac_file" != x-; then
22330      configure_input="$ac_file.  $configure_input"
22331      { echo "$as_me:$LINENO: creating $ac_file" >&5
22332echo "$as_me: creating $ac_file" >&6;}
22333    fi
22334
22335    case $ac_tag in
22336    *:-:* | *:-) cat >"$tmp/stdin";;
22337    esac
22338    ;;
22339  esac
22340
22341  ac_dir=`$as_dirname -- "$ac_file" ||
22342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343	 X"$ac_file" : 'X\(//\)[^/]' \| \
22344	 X"$ac_file" : 'X\(//\)$' \| \
22345	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22346echo X"$ac_file" |
22347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348	    s//\1/
22349	    q
22350	  }
22351	  /^X\(\/\/\)[^/].*/{
22352	    s//\1/
22353	    q
22354	  }
22355	  /^X\(\/\/\)$/{
22356	    s//\1/
22357	    q
22358	  }
22359	  /^X\(\/\).*/{
22360	    s//\1/
22361	    q
22362	  }
22363	  s/.*/./; q'`
22364  { as_dir="$ac_dir"
22365  case $as_dir in #(
22366  -*) as_dir=./$as_dir;;
22367  esac
22368  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22369    as_dirs=
22370    while :; do
22371      case $as_dir in #(
22372      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373      *) as_qdir=$as_dir;;
22374      esac
22375      as_dirs="'$as_qdir' $as_dirs"
22376      as_dir=`$as_dirname -- "$as_dir" ||
22377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378	 X"$as_dir" : 'X\(//\)[^/]' \| \
22379	 X"$as_dir" : 'X\(//\)$' \| \
22380	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22381echo X"$as_dir" |
22382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383	    s//\1/
22384	    q
22385	  }
22386	  /^X\(\/\/\)[^/].*/{
22387	    s//\1/
22388	    q
22389	  }
22390	  /^X\(\/\/\)$/{
22391	    s//\1/
22392	    q
22393	  }
22394	  /^X\(\/\).*/{
22395	    s//\1/
22396	    q
22397	  }
22398	  s/.*/./; q'`
22399      test -d "$as_dir" && break
22400    done
22401    test -z "$as_dirs" || eval "mkdir $as_dirs"
22402  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404   { (exit 1); exit 1; }; }; }
22405  ac_builddir=.
22406
22407case "$ac_dir" in
22408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409*)
22410  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22411  # A ".." for each directory in $ac_dir_suffix.
22412  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22413  case $ac_top_builddir_sub in
22414  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22416  esac ;;
22417esac
22418ac_abs_top_builddir=$ac_pwd
22419ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420# for backward compatibility:
22421ac_top_builddir=$ac_top_build_prefix
22422
22423case $srcdir in
22424  .)  # We are building in place.
22425    ac_srcdir=.
22426    ac_top_srcdir=$ac_top_builddir_sub
22427    ac_abs_top_srcdir=$ac_pwd ;;
22428  [\\/]* | ?:[\\/]* )  # Absolute name.
22429    ac_srcdir=$srcdir$ac_dir_suffix;
22430    ac_top_srcdir=$srcdir
22431    ac_abs_top_srcdir=$srcdir ;;
22432  *) # Relative name.
22433    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434    ac_top_srcdir=$ac_top_build_prefix$srcdir
22435    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22436esac
22437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22438
22439
22440  case $ac_mode in
22441  :F)
22442  #
22443  # CONFIG_FILE
22444  #
22445
22446  case $INSTALL in
22447  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22448  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22449  esac
22450_ACEOF
22451
22452cat >>$CONFIG_STATUS <<\_ACEOF
22453# If the template does not know about datarootdir, expand it.
22454# FIXME: This hack should be removed a few years after 2.60.
22455ac_datarootdir_hack=; ac_datarootdir_seen=
22456
22457case `sed -n '/datarootdir/ {
22458  p
22459  q
22460}
22461/@datadir@/p
22462/@docdir@/p
22463/@infodir@/p
22464/@localedir@/p
22465/@mandir@/p
22466' $ac_file_inputs` in
22467*datarootdir*) ac_datarootdir_seen=yes;;
22468*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22469  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22470echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22471_ACEOF
22472cat >>$CONFIG_STATUS <<_ACEOF
22473  ac_datarootdir_hack='
22474  s&@datadir@&$datadir&g
22475  s&@docdir@&$docdir&g
22476  s&@infodir@&$infodir&g
22477  s&@localedir@&$localedir&g
22478  s&@mandir@&$mandir&g
22479    s&\\\${datarootdir}&$datarootdir&g' ;;
22480esac
22481_ACEOF
22482
22483# Neutralize VPATH when `$srcdir' = `.'.
22484# Shell code in configure.ac might set extrasub.
22485# FIXME: do we really want to maintain this feature?
22486cat >>$CONFIG_STATUS <<_ACEOF
22487  sed "$ac_vpsub
22488$extrasub
22489_ACEOF
22490cat >>$CONFIG_STATUS <<\_ACEOF
22491:t
22492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22493s&@configure_input@&$configure_input&;t t
22494s&@top_builddir@&$ac_top_builddir_sub&;t t
22495s&@srcdir@&$ac_srcdir&;t t
22496s&@abs_srcdir@&$ac_abs_srcdir&;t t
22497s&@top_srcdir@&$ac_top_srcdir&;t t
22498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22499s&@builddir@&$ac_builddir&;t t
22500s&@abs_builddir@&$ac_abs_builddir&;t t
22501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22502s&@INSTALL@&$ac_INSTALL&;t t
22503$ac_datarootdir_hack
22504" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22505
22506test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22507  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22508  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22509  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22510which seems to be undefined.  Please make sure it is defined." >&5
22511echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22512which seems to be undefined.  Please make sure it is defined." >&2;}
22513
22514  rm -f "$tmp/stdin"
22515  case $ac_file in
22516  -) cat "$tmp/out"; rm -f "$tmp/out";;
22517  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22518  esac
22519 ;;
22520  :H)
22521  #
22522  # CONFIG_HEADER
22523  #
22524_ACEOF
22525
22526# Transform confdefs.h into a sed script `conftest.defines', that
22527# substitutes the proper values into config.h.in to produce config.h.
22528rm -f conftest.defines conftest.tail
22529# First, append a space to every undef/define line, to ease matching.
22530echo 's/$/ /' >conftest.defines
22531# Then, protect against being on the right side of a sed subst, or in
22532# an unquoted here document, in config.status.  If some macros were
22533# called several times there might be several #defines for the same
22534# symbol, which is useless.  But do not sort them, since the last
22535# AC_DEFINE must be honored.
22536ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22537# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22538# NAME is the cpp macro being defined, VALUE is the value it is being given.
22539# PARAMS is the parameter list in the macro definition--in most cases, it's
22540# just an empty string.
22541ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22542ac_dB='\\)[	 (].*,\\1define\\2'
22543ac_dC=' '
22544ac_dD=' ,'
22545
22546uniq confdefs.h |
22547  sed -n '
22548	t rset
22549	:rset
22550	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22551	t ok
22552	d
22553	:ok
22554	s/[\\&,]/\\&/g
22555	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22556	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22557  ' >>conftest.defines
22558
22559# Remove the space that was appended to ease matching.
22560# Then replace #undef with comments.  This is necessary, for
22561# example, in the case of _POSIX_SOURCE, which is predefined and required
22562# on some systems where configure will not decide to define it.
22563# (The regexp can be short, since the line contains either #define or #undef.)
22564echo 's/ $//
22565s,^[	 #]*u.*,/* & */,' >>conftest.defines
22566
22567# Break up conftest.defines:
22568ac_max_sed_lines=50
22569
22570# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22571# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22572# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22573# et cetera.
22574ac_in='$ac_file_inputs'
22575ac_out='"$tmp/out1"'
22576ac_nxt='"$tmp/out2"'
22577
22578while :
22579do
22580  # Write a here document:
22581    cat >>$CONFIG_STATUS <<_ACEOF
22582    # First, check the format of the line:
22583    cat >"\$tmp/defines.sed" <<\\CEOF
22584/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22585/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22586b
22587:def
22588_ACEOF
22589  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22590  echo 'CEOF
22591    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22592  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22593  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22594  grep . conftest.tail >/dev/null || break
22595  rm -f conftest.defines
22596  mv conftest.tail conftest.defines
22597done
22598rm -f conftest.defines conftest.tail
22599
22600echo "ac_result=$ac_in" >>$CONFIG_STATUS
22601cat >>$CONFIG_STATUS <<\_ACEOF
22602  if test x"$ac_file" != x-; then
22603    echo "/* $configure_input  */" >"$tmp/config.h"
22604    cat "$ac_result" >>"$tmp/config.h"
22605    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22606      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22607echo "$as_me: $ac_file is unchanged" >&6;}
22608    else
22609      rm -f $ac_file
22610      mv "$tmp/config.h" $ac_file
22611    fi
22612  else
22613    echo "/* $configure_input  */"
22614    cat "$ac_result"
22615  fi
22616  rm -f "$tmp/out12"
22617 ;;
22618
22619  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22620echo "$as_me: executing $ac_file commands" >&6;}
22621 ;;
22622  esac
22623
22624
22625  case $ac_file$ac_mode in
22626    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22627   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22628    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22629   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22630    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22631   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22632    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22633   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22634    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22635   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22636    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22637   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22638    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22639   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22640    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22641   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22642    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22643   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22644    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22645   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22646    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22647   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22648    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22649   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22650    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22651   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22652
22653  esac
22654done # for ac_tag
22655
22656
22657{ (exit 0); exit 0; }
22658_ACEOF
22659chmod +x $CONFIG_STATUS
22660ac_clean_files=$ac_clean_files_save
22661
22662
22663# configure is writing to config.log, and then calls config.status.
22664# config.status does its own redirection, appending to config.log.
22665# Unfortunately, on DOS this fails, as config.log is still kept open
22666# by configure, so config.status won't be able to write to it; its
22667# output is simply discarded.  So we exec the FD to /dev/null,
22668# effectively closing config.log, so it can be properly (re)opened and
22669# appended to by config.status.  When coming back to configure, we
22670# need to make the FD available again.
22671if test "$no_create" != yes; then
22672  ac_cs_success=:
22673  ac_config_status_args=
22674  test "$silent" = yes &&
22675    ac_config_status_args="$ac_config_status_args --quiet"
22676  exec 5>/dev/null
22677  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22678  exec 5>>config.log
22679  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22680  # would make configure fail if this is the last instruction.
22681  $ac_cs_success || { (exit 1); exit 1; }
22682fi
22683
22684#
22685# CONFIG_SUBDIRS section.
22686#
22687if test "$no_recursion" != yes; then
22688
22689  # Remove --cache-file and --srcdir arguments so they do not pile up.
22690  ac_sub_configure_args=
22691  ac_prev=
22692  eval "set x $ac_configure_args"
22693  shift
22694  for ac_arg
22695  do
22696    if test -n "$ac_prev"; then
22697      ac_prev=
22698      continue
22699    fi
22700    case $ac_arg in
22701    -cache-file | --cache-file | --cache-fil | --cache-fi \
22702    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22703      ac_prev=cache_file ;;
22704    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22705    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22706    | --c=*)
22707      ;;
22708    --config-cache | -C)
22709      ;;
22710    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22711      ac_prev=srcdir ;;
22712    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22713      ;;
22714    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22715      ac_prev=prefix ;;
22716    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22717      ;;
22718    *)
22719      case $ac_arg in
22720      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22721      esac
22722      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22723    esac
22724  done
22725
22726  # Always prepend --prefix to ensure using the same prefix
22727  # in subdir configurations.
22728  ac_arg="--prefix=$prefix"
22729  case $ac_arg in
22730  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22731  esac
22732  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22733
22734  ac_popdir=`pwd`
22735  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22736
22737    # Do not complain, so a configure script can configure whichever
22738    # parts of a large source tree are present.
22739    test -d "$srcdir/$ac_dir" || continue
22740
22741    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22742    echo "$as_me:$LINENO: $ac_msg" >&5
22743    echo "$ac_msg" >&6
22744    { as_dir="$ac_dir"
22745  case $as_dir in #(
22746  -*) as_dir=./$as_dir;;
22747  esac
22748  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22749    as_dirs=
22750    while :; do
22751      case $as_dir in #(
22752      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22753      *) as_qdir=$as_dir;;
22754      esac
22755      as_dirs="'$as_qdir' $as_dirs"
22756      as_dir=`$as_dirname -- "$as_dir" ||
22757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758	 X"$as_dir" : 'X\(//\)[^/]' \| \
22759	 X"$as_dir" : 'X\(//\)$' \| \
22760	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22761echo X"$as_dir" |
22762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22763	    s//\1/
22764	    q
22765	  }
22766	  /^X\(\/\/\)[^/].*/{
22767	    s//\1/
22768	    q
22769	  }
22770	  /^X\(\/\/\)$/{
22771	    s//\1/
22772	    q
22773	  }
22774	  /^X\(\/\).*/{
22775	    s//\1/
22776	    q
22777	  }
22778	  s/.*/./; q'`
22779      test -d "$as_dir" && break
22780    done
22781    test -z "$as_dirs" || eval "mkdir $as_dirs"
22782  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22783echo "$as_me: error: cannot create directory $as_dir" >&2;}
22784   { (exit 1); exit 1; }; }; }
22785    ac_builddir=.
22786
22787case "$ac_dir" in
22788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789*)
22790  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22791  # A ".." for each directory in $ac_dir_suffix.
22792  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22793  case $ac_top_builddir_sub in
22794  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22795  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22796  esac ;;
22797esac
22798ac_abs_top_builddir=$ac_pwd
22799ac_abs_builddir=$ac_pwd$ac_dir_suffix
22800# for backward compatibility:
22801ac_top_builddir=$ac_top_build_prefix
22802
22803case $srcdir in
22804  .)  # We are building in place.
22805    ac_srcdir=.
22806    ac_top_srcdir=$ac_top_builddir_sub
22807    ac_abs_top_srcdir=$ac_pwd ;;
22808  [\\/]* | ?:[\\/]* )  # Absolute name.
22809    ac_srcdir=$srcdir$ac_dir_suffix;
22810    ac_top_srcdir=$srcdir
22811    ac_abs_top_srcdir=$srcdir ;;
22812  *) # Relative name.
22813    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22814    ac_top_srcdir=$ac_top_build_prefix$srcdir
22815    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22816esac
22817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22818
22819
22820    cd "$ac_dir"
22821
22822    # Check for guested configure; otherwise get Cygnus style configure.
22823    if test -f "$ac_srcdir/configure.gnu"; then
22824      ac_sub_configure=$ac_srcdir/configure.gnu
22825    elif test -f "$ac_srcdir/configure"; then
22826      ac_sub_configure=$ac_srcdir/configure
22827    elif test -f "$ac_srcdir/configure.in"; then
22828      # This should be Cygnus configure.
22829      ac_sub_configure=$ac_aux_dir/configure
22830    else
22831      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22832echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22833      ac_sub_configure=
22834    fi
22835
22836    # The recursion is here.
22837    if test -n "$ac_sub_configure"; then
22838      # Make the cache file name correct relative to the subdirectory.
22839      case $cache_file in
22840      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22841      *) # Relative name.
22842	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22843      esac
22844
22845      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22846echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22847      # The eval makes quoting arguments work.
22848      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22849	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22850	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22851echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22852   { (exit 1); exit 1; }; }
22853    fi
22854
22855    cd "$ac_popdir"
22856  done
22857fi
22858
22859