configure revision f6ace1924344b6bbeafe82494138f9673c22bddc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.1svn'
565PACKAGE_STRING='llvm 3.1svn'
566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_LIBCPP
686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697LLVM_ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
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
739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
745CAT
746DOXYGEN
747GROFF
748GZIPBIN
749POD2HTML
750POD2MAN
751PDFROFF
752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
760HAVE_LINK_VERSION_SCRIPT
761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
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.1svn 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.1svn:";;
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, xcore,
1422                          msp430, ptx, cbe, and cpp (default=all)
1423  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                          %a (default is YES)
1425  --enable-bindings       Build specific language bindings:
1426                          all,auto,none,{binding-name} (default=auto)
1427  --enable-libffi         Check for the presence of libffi (default is NO)
1428  --enable-ltdl-install   install libltdl
1429
1430Optional Packages:
1431  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433  --with-optimize-option  Select the compiler options to use for optimized
1434                          builds
1435  --with-extra-options    Specify additional options to compile LLVM with
1436  --with-extra-ld-options Specify additional options to link LLVM with
1437  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                          is stdlib)
1439  --with-clang-srcdir     Directory to the out-of-tree Clang source
1440  --with-clang-resource-dir
1441                          Relative directory from the Clang binary for
1442                          resource files
1443  --with-c-include-dirs   Colon separated list of directories clang will
1444                          search for headers
1445  --with-cxx-include-root Directory with the libstdc++ headers.
1446  --with-cxx-include-arch Architecture of the libstdc++ headers.
1447  --with-cxx-include-32bit-dir
1448                          32 bit multilib dir.
1449  --with-cxx-include-64bit-dir
1450                          64 bit multilib directory.
1451  --with-binutils-include Specify path to binutils/include/ containing
1452                          plugin-api.h file for gold plugin.
1453  --with-bug-report-url   Specify the URL where bug reports should be
1454                          submitted (default=http://llvm.org/bugs/)
1455  --with-internal-prefix  Installation directory for internal files
1456  --with-tclinclude       directory where tcl headers are
1457  --with-udis86=<path>    Use udis86 external x86 disassembler library
1458  --with-oprofile=<prefix>
1459                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467              you have headers in a nonstandard directory <include dir>
1468  CXX         C++ compiler command
1469  CXXFLAGS    C++ compiler flags
1470  CPP         C preprocessor
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" || continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for guested configure.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536llvm configure 3.1svn
1537generated by GNU Autoconf 2.60
1538
1539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543
1544Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545_ACEOF
1546  exit
1547fi
1548cat >config.log <<_ACEOF
1549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
1552It was created by llvm $as_me 3.1svn, which was
1553generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555  $ $0 $@
1556
1557_ACEOF
1558exec 5>>config.log
1559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  echo "PATH: $as_dir"
1590done
1591IFS=$as_save_IFS
1592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
1607# Strip out --silent because we don't want to record it for future runs.
1608# Also quote any args containing shell meta-characters.
1609# Make two passes to allow for proper duplicate-argument suppression.
1610ac_configure_args=
1611ac_configure_args0=
1612ac_configure_args1=
1613ac_must_keep_next=false
1614for ac_pass in 1 2
1615do
1616  for ac_arg
1617  do
1618    case $ac_arg in
1619    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621    | -silent | --silent | --silen | --sile | --sil)
1622      continue ;;
1623    *\'*)
1624      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625    esac
1626    case $ac_pass in
1627    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628    2)
1629      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630      if test $ac_must_keep_next = true; then
1631	ac_must_keep_next=false # Got value, back to normal.
1632      else
1633	case $ac_arg in
1634	  *=* | --config-cache | -C | -disable-* | --disable-* \
1635	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637	  | -with-* | --with-* | -without-* | --without-* | --x)
1638	    case "$ac_configure_args0 " in
1639	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640	    esac
1641	    ;;
1642	  -* ) ac_must_keep_next=true ;;
1643	esac
1644      fi
1645      ac_configure_args="$ac_configure_args '$ac_arg'"
1646      ;;
1647    esac
1648  done
1649done
1650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log.  We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
1656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658trap 'exit_status=$?
1659  # Save into config.log some information that might help in debugging.
1660  {
1661    echo
1662
1663    cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668    echo
1669    # The following way of writing the cache mishandles newlines in values,
1670(
1671  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672    eval ac_val=\$$ac_var
1673    case $ac_val in #(
1674    *${as_nl}*)
1675      case $ac_var in #(
1676      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678      esac
1679      case $ac_var in #(
1680      _ | IFS | as_nl) ;; #(
1681      *) $as_unset $ac_var ;;
1682      esac ;;
1683    esac
1684  done
1685  (set) 2>&1 |
1686    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687    *${as_nl}ac_space=\ *)
1688      sed -n \
1689	"s/'\''/'\''\\\\'\'''\''/g;
1690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691      ;; #(
1692    *)
1693      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694      ;;
1695    esac |
1696    sort
1697)
1698    echo
1699
1700    cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705    echo
1706    for ac_var in $ac_subst_vars
1707    do
1708      eval ac_val=\$$ac_var
1709      case $ac_val in
1710      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711      esac
1712      echo "$ac_var='\''$ac_val'\''"
1713    done | sort
1714    echo
1715
1716    if test -n "$ac_subst_files"; then
1717      cat <<\_ASBOX
1718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
1721_ASBOX
1722      echo
1723      for ac_var in $ac_subst_files
1724      do
1725	eval ac_val=\$$ac_var
1726	case $ac_val in
1727	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728	esac
1729	echo "$ac_var='\''$ac_val'\''"
1730      done | sort
1731      echo
1732    fi
1733
1734    if test -s confdefs.h; then
1735      cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740      echo
1741      cat confdefs.h
1742      echo
1743    fi
1744    test "$ac_signal" != 0 &&
1745      echo "$as_me: caught signal $ac_signal"
1746    echo "$as_me: exit $exit_status"
1747  } >&5
1748  rm -f core *.core core.conftest.* &&
1749    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750    exit $exit_status
1751' 0
1752for ac_signal in 1 2 13 15; do
1753  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
1758rm -f -r conftest* confdefs.h
1759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
1771
1772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
1788# Prefer explicitly selected file to automatically selected ones.
1789if test -n "$CONFIG_SITE"; then
1790  set x "$CONFIG_SITE"
1791elif test "x$prefix" != xNONE; then
1792  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793else
1794  set x "$ac_default_prefix/share/config.site" \
1795	"$ac_default_prefix/etc/config.site"
1796fi
1797shift
1798for ac_site_file
1799do
1800  if test -r "$ac_site_file"; then
1801    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
1803    sed 's/^/| /' "$ac_site_file" >&5
1804    . "$ac_site_file"
1805  fi
1806done
1807
1808if test -r "$cache_file"; then
1809  # Some versions of bash will fail to source /dev/null (special
1810  # files actually), so we avoid doing that.
1811  if test -f "$cache_file"; then
1812    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
1814    case $cache_file in
1815      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816      *)                      . "./$cache_file";;
1817    esac
1818  fi
1819else
1820  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
1822  >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
1828for ac_var in $ac_precious_vars; do
1829  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830  eval ac_new_set=\$ac_env_${ac_var}_set
1831  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832  eval ac_new_val=\$ac_env_${ac_var}_value
1833  case $ac_old_set,$ac_new_set in
1834    set,)
1835      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837      ac_cache_corrupted=: ;;
1838    ,set)
1839      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841      ac_cache_corrupted=: ;;
1842    ,);;
1843    *)
1844      if test "x$ac_old_val" != "x$ac_new_val"; then
1845	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848echo "$as_me:   former value:  $ac_old_val" >&2;}
1849	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850echo "$as_me:   current value: $ac_new_val" >&2;}
1851	ac_cache_corrupted=:
1852      fi;;
1853  esac
1854  # Pass precious variables to config.status.
1855  if test "$ac_new_set" = set; then
1856    case $ac_new_val in
1857    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858    *) ac_arg=$ac_var=$ac_new_val ;;
1859    esac
1860    case " $ac_configure_args " in
1861      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863    esac
1864  fi
1865done
1866if $ac_cache_corrupted; then
1867  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871   { (exit 1); exit 1; }; }
1872fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914ac_aux_dir=
1915for ac_dir in autoconf "$srcdir"/autoconf; do
1916  if test -f "$ac_dir/install-sh"; then
1917    ac_aux_dir=$ac_dir
1918    ac_install_sh="$ac_aux_dir/install-sh -c"
1919    break
1920  elif test -f "$ac_dir/install.sh"; then
1921    ac_aux_dir=$ac_dir
1922    ac_install_sh="$ac_aux_dir/install.sh -c"
1923    break
1924  elif test -f "$ac_dir/shtool"; then
1925    ac_aux_dir=$ac_dir
1926    ac_install_sh="$ac_aux_dir/shtool install -c"
1927    break
1928  fi
1929done
1930if test -z "$ac_aux_dir"; then
1931  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933   { (exit 1); exit 1; }; }
1934fi
1935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946if test ${srcdir} != "." ; then
1947  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950   { (exit 1); exit 1; }; }
1951  fi
1952fi
1953
1954ac_ext=c
1955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959if test -n "$ac_tool_prefix"; then
1960  for ac_prog in clang llvm-gcc gcc
1961  do
1962    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967  echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969  if test -n "$CC"; then
1970  ac_cv_prog_CC="$CC" # Let the user override the test.
1971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975  IFS=$as_save_IFS
1976  test -z "$as_dir" && as_dir=.
1977  for ac_exec_ext in '' $ac_executable_extensions; do
1978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981    break 2
1982  fi
1983done
1984done
1985IFS=$as_save_IFS
1986
1987fi
1988fi
1989CC=$ac_cv_prog_CC
1990if test -n "$CC"; then
1991  { echo "$as_me:$LINENO: result: $CC" >&5
1992echo "${ECHO_T}$CC" >&6; }
1993else
1994  { echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6; }
1996fi
1997
1998
1999    test -n "$CC" && break
2000  done
2001fi
2002if test -z "$CC"; then
2003  ac_ct_CC=$CC
2004  for ac_prog in clang llvm-gcc gcc
2005do
2006  # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
2008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$ac_ct_CC"; then
2014  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023    ac_cv_prog_ac_ct_CC="$ac_prog"
2024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029IFS=$as_save_IFS
2030
2031fi
2032fi
2033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
2035  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6; }
2037else
2038  { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
2040fi
2041
2042
2043  test -n "$ac_ct_CC" && break
2044done
2045
2046  if test "x$ac_ct_CC" = x; then
2047    CC=""
2048  else
2049    case $cross_compiling:$ac_tool_warned in
2050yes:)
2051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet.  If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&5
2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055whose name does not start with the host triplet.  If you think this
2056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057ac_tool_warned=yes ;;
2058esac
2059    CC=$ac_ct_CC
2060  fi
2061fi
2062
2063
2064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068   { (exit 1); exit 1; }; }
2069
2070# Provide some information about the compiler.
2071echo "$as_me:$LINENO: checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (ac_try="$ac_compiler --version >&5"
2074case "(($ac_try" in
2075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076  *) ac_try_echo=$ac_try;;
2077esac
2078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079  (eval "$ac_compiler --version >&5") 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }
2083{ (ac_try="$ac_compiler -v >&5"
2084case "(($ac_try" in
2085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086  *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089  (eval "$ac_compiler -v >&5") 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }
2093{ (ac_try="$ac_compiler -V >&5"
2094case "(($ac_try" in
2095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096  *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099  (eval "$ac_compiler -V >&5") 2>&5
2100  ac_status=$?
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); }
2103
2104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h.  */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h.  */
2110
2111int
2112main ()
2113{
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119ac_clean_files_save=$ac_clean_files
2120ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121# Try to create an executable without -o first, disregard a.out.
2122# It will help us diagnose broken compilers, and finding out an intuition
2123# of exeext.
2124{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127#
2128# List of possible output files, starting from the most likely.
2129# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130# only as a last resort.  b.out is created by i960 compilers.
2131ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132#
2133# The IRIX 6 linker writes into existing files which may not be
2134# executable, retaining their permissions.  Remove them first so a
2135# subsequent execution test works.
2136ac_rmfiles=
2137for ac_file in $ac_files
2138do
2139  case $ac_file in
2140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142  esac
2143done
2144rm -f $ac_rmfiles
2145
2146if { (ac_try="$ac_link_default"
2147case "(($ac_try" in
2148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149  *) ac_try_echo=$ac_try;;
2150esac
2151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152  (eval "$ac_link_default") 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }; then
2156  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2159# so that the user can short-circuit this test for compilers unknown to
2160# Autoconf.
2161for ac_file in $ac_files
2162do
2163  test -f "$ac_file" || continue
2164  case $ac_file in
2165    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166	;;
2167    [ab].out )
2168	# We found the default executable, but exeext='' is most
2169	# certainly right.
2170	break;;
2171    *.* )
2172        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2173	then :; else
2174	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175	fi
2176	# We set ac_cv_exeext here because the later test for it is not
2177	# safe: cross compilers may not add the suffix if given an `-o'
2178	# argument, so we may need to know it at that point already.
2179	# Even if this section looks crufty: it has the advantage of
2180	# actually working.
2181	break;;
2182    * )
2183	break;;
2184  esac
2185done
2186test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
2188else
2189  echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: C compiler cannot create executables
2195See \`config.log' for more details." >&2;}
2196   { (exit 77); exit 77; }; }
2197fi
2198
2199ac_exeext=$ac_cv_exeext
2200{ echo "$as_me:$LINENO: result: $ac_file" >&5
2201echo "${ECHO_T}$ac_file" >&6; }
2202
2203# Check that the compiler produces executables we can run.  If not, either
2204# the compiler is broken, or we cross compile.
2205{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208# If not cross compiling, check that we can run a simple program.
2209if test "$cross_compiling" != yes; then
2210  if { ac_try='./$ac_file'
2211  { (case "(($ac_try" in
2212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213  *) ac_try_echo=$ac_try;;
2214esac
2215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216  (eval "$ac_try") 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; }; then
2220    cross_compiling=no
2221  else
2222    if test "$cross_compiling" = maybe; then
2223	cross_compiling=yes
2224    else
2225	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231   { (exit 1); exit 1; }; }
2232    fi
2233  fi
2234fi
2235{ echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239ac_clean_files=$ac_clean_files_save
2240# Check that the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249if { (ac_try="$ac_link"
2250case "(($ac_try" in
2251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252  *) ac_try_echo=$ac_try;;
2253esac
2254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255  (eval "$ac_link") 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
2263for ac_file in conftest.exe conftest conftest.*; do
2264  test -f "$ac_file" || continue
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268	  break;;
2269    * ) break;;
2270  esac
2271done
2272else
2273  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277   { (exit 1); exit 1; }; }
2278fi
2279
2280rm -f conftest$ac_cv_exeext
2281{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6; }
2283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
2287{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289if test "${ac_cv_objext+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h.  */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h.  */
2298
2299int
2300main ()
2301{
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
2308if { (ac_try="$ac_compile"
2309case "(($ac_try" in
2310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311  *) ac_try_echo=$ac_try;;
2312esac
2313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314  (eval "$ac_compile") 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; then
2318  for ac_file in conftest.o conftest.obj conftest.*; do
2319  test -f "$ac_file" || continue;
2320  case $ac_file in
2321    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323       break;;
2324  esac
2325done
2326else
2327  echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
2334   { (exit 1); exit 1; }; }
2335fi
2336
2337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
2339{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6; }
2341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
2343{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354
2355int
2356main ()
2357{
2358#ifndef __GNUC__
2359       choke me
2360#endif
2361
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366rm -f conftest.$ac_objext
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370  *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373  (eval "$ac_compile") 2>conftest.er1
2374  ac_status=$?
2375  grep -v '^ *+' conftest.er1 >conftest.err
2376  rm -f conftest.er1
2377  cat conftest.err >&5
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381  { (case "(($ac_try" in
2382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383  *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386  (eval "$ac_try") 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390	 { ac_try='test -s conftest.$ac_objext'
2391  { (case "(($ac_try" in
2392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393  *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396  (eval "$ac_try") 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; }; then
2400  ac_compiler_gnu=yes
2401else
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405	ac_compiler_gnu=no
2406fi
2407
2408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411fi
2412{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
2415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
2417{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  ac_save_c_werror_flag=$ac_c_werror_flag
2423   ac_c_werror_flag=yes
2424   ac_cv_prog_cc_g=no
2425   CFLAGS="-g"
2426   cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h.  */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h.  */
2432
2433int
2434main ()
2435{
2436
2437  ;
2438  return 0;
2439}
2440_ACEOF
2441rm -f conftest.$ac_objext
2442if { (ac_try="$ac_compile"
2443case "(($ac_try" in
2444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445  *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448  (eval "$ac_compile") 2>conftest.er1
2449  ac_status=$?
2450  grep -v '^ *+' conftest.er1 >conftest.err
2451  rm -f conftest.er1
2452  cat conftest.err >&5
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); } &&
2455	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456  { (case "(($ac_try" in
2457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458  *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461  (eval "$ac_try") 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465	 { ac_try='test -s conftest.$ac_objext'
2466  { (case "(($ac_try" in
2467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468  *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471  (eval "$ac_try") 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; }; then
2475  ac_cv_prog_cc_g=yes
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480	CFLAGS=""
2481      cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h.  */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h.  */
2487
2488int
2489main ()
2490{
2491
2492  ;
2493  return 0;
2494}
2495_ACEOF
2496rm -f conftest.$ac_objext
2497if { (ac_try="$ac_compile"
2498case "(($ac_try" in
2499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500  *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503  (eval "$ac_compile") 2>conftest.er1
2504  ac_status=$?
2505  grep -v '^ *+' conftest.er1 >conftest.err
2506  rm -f conftest.er1
2507  cat conftest.err >&5
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); } &&
2510	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511  { (case "(($ac_try" in
2512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513  *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516  (eval "$ac_try") 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; } &&
2520	 { ac_try='test -s conftest.$ac_objext'
2521  { (case "(($ac_try" in
2522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523  *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526  (eval "$ac_try") 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; }; then
2530  :
2531else
2532  echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535	ac_c_werror_flag=$ac_save_c_werror_flag
2536	 CFLAGS="-g"
2537	 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543
2544int
2545main ()
2546{
2547
2548  ;
2549  return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556  *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559  (eval "$ac_compile") 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } &&
2566	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567  { (case "(($ac_try" in
2568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569  *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572  (eval "$ac_try") 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576	 { ac_try='test -s conftest.$ac_objext'
2577  { (case "(($ac_try" in
2578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579  *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582  (eval "$ac_try") 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; }; then
2586  ac_cv_prog_cc_g=yes
2587else
2588  echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
2592fi
2593
2594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
2596
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599
2600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601   ac_c_werror_flag=$ac_save_c_werror_flag
2602fi
2603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605if test "$ac_test_CFLAGS" = set; then
2606  CFLAGS=$ac_save_CFLAGS
2607elif test $ac_cv_prog_cc_g = yes; then
2608  if test "$GCC" = yes; then
2609    CFLAGS="-g -O2"
2610  else
2611    CFLAGS="-g"
2612  fi
2613else
2614  if test "$GCC" = yes; then
2615    CFLAGS="-O2"
2616  else
2617    CFLAGS=
2618  fi
2619fi
2620{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622if test "${ac_cv_prog_cc_c89+set}" = set; then
2623  echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625  ac_cv_prog_cc_c89=no
2626ac_save_CC=$CC
2627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633#include <stdarg.h>
2634#include <stdio.h>
2635#include <sys/types.h>
2636#include <sys/stat.h>
2637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638struct buf { int x; };
2639FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640static char *e (p, i)
2641     char **p;
2642     int i;
2643{
2644  return p[i];
2645}
2646static char *f (char * (*g) (char **, int), char **p, ...)
2647{
2648  char *s;
2649  va_list v;
2650  va_start (v,p);
2651  s = g (p, va_arg (v,int));
2652  va_end (v);
2653  return s;
2654}
2655
2656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657   function prototypes and stuff, but not '\xHH' hex character constants.
2658   These don't provoke an error unfortunately, instead are silently treated
2659   as 'x'.  The following induces an error, until -std is added to get
2660   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661   array size at least.  It's necessary to write '\x00'==0 to get something
2662   that's true only with -std.  */
2663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666   inside strings and character constants.  */
2667#define FOO(x) 'x'
2668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
2670int test (int i, double x);
2671struct s1 {int (*f) (int a);};
2672struct s2 {int (*f) (double a);};
2673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674int argc;
2675char **argv;
2676int
2677main ()
2678{
2679return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2686do
2687  CC="$ac_save_CC $ac_arg"
2688  rm -f conftest.$ac_objext
2689if { (ac_try="$ac_compile"
2690case "(($ac_try" in
2691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692  *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695  (eval "$ac_compile") 2>conftest.er1
2696  ac_status=$?
2697  grep -v '^ *+' conftest.er1 >conftest.err
2698  rm -f conftest.er1
2699  cat conftest.err >&5
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); } &&
2702	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703  { (case "(($ac_try" in
2704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705  *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708  (eval "$ac_try") 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; } &&
2712	 { ac_try='test -s conftest.$ac_objext'
2713  { (case "(($ac_try" in
2714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715  *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718  (eval "$ac_try") 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  ac_cv_prog_cc_c89=$ac_arg
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
2728fi
2729
2730rm -f core conftest.err conftest.$ac_objext
2731  test "x$ac_cv_prog_cc_c89" != "xno" && break
2732done
2733rm -f conftest.$ac_ext
2734CC=$ac_save_CC
2735
2736fi
2737# AC_CACHE_VAL
2738case "x$ac_cv_prog_cc_c89" in
2739  x)
2740    { echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6; } ;;
2742  xno)
2743    { echo "$as_me:$LINENO: result: unsupported" >&5
2744echo "${ECHO_T}unsupported" >&6; } ;;
2745  *)
2746    CC="$CC $ac_cv_prog_cc_c89"
2747    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749esac
2750
2751
2752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
2758ac_ext=cpp
2759ac_cpp='$CXXCPP $CPPFLAGS'
2760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763if test -z "$CXX"; then
2764  if test -n "$CCC"; then
2765    CXX=$CCC
2766  else
2767    if test -n "$ac_tool_prefix"; then
2768  for ac_prog in clang++ llvm-g++ g++
2769  do
2770    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_CXX+set}" = set; then
2775  echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777  if test -n "$CXX"; then
2778  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785  for ac_exec_ext in '' $ac_executable_extensions; do
2786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CXX=$ac_cv_prog_CXX
2798if test -n "$CXX"; then
2799  { echo "$as_me:$LINENO: result: $CXX" >&5
2800echo "${ECHO_T}$CXX" >&6; }
2801else
2802  { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807    test -n "$CXX" && break
2808  done
2809fi
2810if test -z "$CXX"; then
2811  ac_ct_CXX=$CXX
2812  for ac_prog in clang++ llvm-g++ g++
2813do
2814  # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  if test -n "$ac_ct_CXX"; then
2822  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829  for ac_exec_ext in '' $ac_executable_extensions; do
2830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831    ac_cv_prog_ac_ct_CXX="$ac_prog"
2832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842if test -n "$ac_ct_CXX"; then
2843  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845else
2846  { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851  test -n "$ac_ct_CXX" && break
2852done
2853
2854  if test "x$ac_ct_CXX" = x; then
2855    CXX="g++"
2856  else
2857    case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet.  If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&5
2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet.  If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867    CXX=$ac_ct_CXX
2868  fi
2869fi
2870
2871  fi
2872fi
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (ac_try="$ac_compiler --version >&5"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882  (eval "$ac_compiler --version >&5") 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }
2886{ (ac_try="$ac_compiler -v >&5"
2887case "(($ac_try" in
2888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889  *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892  (eval "$ac_compiler -v >&5") 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }
2896{ (ac_try="$ac_compiler -V >&5"
2897case "(($ac_try" in
2898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899  *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902  (eval "$ac_compiler -V >&5") 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }
2906
2907{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910  echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912  cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h.  */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922#ifndef __GNUC__
2923       choke me
2924#endif
2925
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934  *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937  (eval "$ac_compile") 2>conftest.er1
2938  ac_status=$?
2939  grep -v '^ *+' conftest.er1 >conftest.err
2940  rm -f conftest.er1
2941  cat conftest.err >&5
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); } &&
2944	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945  { (case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950  (eval "$ac_try") 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; } &&
2954	 { ac_try='test -s conftest.$ac_objext'
2955  { (case "(($ac_try" in
2956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957  *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960  (eval "$ac_try") 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; }; then
2964  ac_compiler_gnu=yes
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969	ac_compiler_gnu=no
2970fi
2971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978GXX=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CXXFLAGS=${CXXFLAGS+set}
2980ac_save_CXXFLAGS=$CXXFLAGS
2981{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983if test "${ac_cv_prog_cxx_g+set}" = set; then
2984  echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987   ac_cxx_werror_flag=yes
2988   ac_cv_prog_cxx_g=no
2989   CXXFLAGS="-g"
2990   cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009  *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012  (eval "$ac_compile") 2>conftest.er1
3013  ac_status=$?
3014  grep -v '^ *+' conftest.er1 >conftest.err
3015  rm -f conftest.er1
3016  cat conftest.err >&5
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); } &&
3019	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020  { (case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025  (eval "$ac_try") 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; } &&
3029	 { ac_try='test -s conftest.$ac_objext'
3030  { (case "(($ac_try" in
3031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032  *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035  (eval "$ac_try") 2>&5
3036  ac_status=$?
3037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038  (exit $ac_status); }; }; then
3039  ac_cv_prog_cxx_g=yes
3040else
3041  echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044	CXXFLAGS=""
3045      cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051
3052int
3053main ()
3054{
3055
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067  (eval "$ac_compile") 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } &&
3074	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075  { (case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_try") 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; } &&
3084	 { ac_try='test -s conftest.$ac_objext'
3085  { (case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090  (eval "$ac_try") 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  :
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100	 CXXFLAGS="-g"
3101	 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107
3108int
3109main ()
3110{
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123  (eval "$ac_compile") 2>conftest.er1
3124  ac_status=$?
3125  grep -v '^ *+' conftest.er1 >conftest.err
3126  rm -f conftest.er1
3127  cat conftest.err >&5
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); } &&
3130	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131  { (case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136  (eval "$ac_try") 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; } &&
3140	 { ac_try='test -s conftest.$ac_objext'
3141  { (case "(($ac_try" in
3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143  *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146  (eval "$ac_try") 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }; }; then
3150  ac_cv_prog_cxx_g=yes
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169if test "$ac_test_CXXFLAGS" = set; then
3170  CXXFLAGS=$ac_save_CXXFLAGS
3171elif test $ac_cv_prog_cxx_g = yes; then
3172  if test "$GXX" = yes; then
3173    CXXFLAGS="-g -O2"
3174  else
3175    CXXFLAGS="-g"
3176  fi
3177else
3178  if test "$GXX" = yes; then
3179    CXXFLAGS="-O2"
3180  else
3181    CXXFLAGS=
3182  fi
3183fi
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199  CPP=
3200fi
3201if test -z "$CPP"; then
3202  if test "${ac_cv_prog_CPP+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205      # Double quotes because CPP needs to be expanded
3206    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207    do
3208      ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211  # Use a header file that comes with gcc, so configuring glibc
3212  # with a fresh cross-compiler works.
3213  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214  # <limits.h> exists even on freestanding compilers.
3215  # On the NeXT, cc -E runs the code through the compiler's parser,
3216  # not just through cpp. "Syntax error" is here to catch this case.
3217  cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h.  */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h.  */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228		     Syntax error
3229_ACEOF
3230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233  *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237  ac_status=$?
3238  grep -v '^ *+' conftest.er1 >conftest.err
3239  rm -f conftest.er1
3240  cat conftest.err >&5
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); } >/dev/null; then
3243  if test -s conftest.err; then
3244    ac_cpp_err=$ac_c_preproc_warn_flag
3245    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246  else
3247    ac_cpp_err=
3248  fi
3249else
3250  ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253  :
3254else
3255  echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258  # Broken: fails on valid input.
3259continue
3260fi
3261
3262rm -f conftest.err conftest.$ac_ext
3263
3264  # OK, works on sane cases.  Now check whether nonexistent headers
3265  # can be detected and how.
3266  cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h.  */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h.  */
3272#include <ac_nonexistent.h>
3273_ACEOF
3274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } >/dev/null; then
3287  if test -s conftest.err; then
3288    ac_cpp_err=$ac_c_preproc_warn_flag
3289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290  else
3291    ac_cpp_err=
3292  fi
3293else
3294  ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
3297  # Broken: success on invalid input.
3298continue
3299else
3300  echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303  # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
3307
3308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
3313if $ac_preproc_ok; then
3314  break
3315fi
3316
3317    done
3318    ac_cv_prog_CPP=$CPP
3319
3320fi
3321  CPP=$ac_cv_prog_CPP
3322else
3323  ac_cv_prog_CPP=$CPP
3324fi
3325{ echo "$as_me:$LINENO: result: $CPP" >&5
3326echo "${ECHO_T}$CPP" >&6; }
3327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330  # Use a header file that comes with gcc, so configuring glibc
3331  # with a fresh cross-compiler works.
3332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333  # <limits.h> exists even on freestanding compilers.
3334  # On the NeXT, cc -E runs the code through the compiler's parser,
3335  # not just through cpp. "Syntax error" is here to catch this case.
3336  cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h.  */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h.  */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347		     Syntax error
3348_ACEOF
3349if { (ac_try="$ac_cpp conftest.$ac_ext"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } >/dev/null; then
3362  if test -s conftest.err; then
3363    ac_cpp_err=$ac_c_preproc_warn_flag
3364    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365  else
3366    ac_cpp_err=
3367  fi
3368else
3369  ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372  :
3373else
3374  echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377  # Broken: fails on valid input.
3378continue
3379fi
3380
3381rm -f conftest.err conftest.$ac_ext
3382
3383  # OK, works on sane cases.  Now check whether nonexistent headers
3384  # can be detected and how.
3385  cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h.  */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h.  */
3391#include <ac_nonexistent.h>
3392_ACEOF
3393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } >/dev/null; then
3406  if test -s conftest.err; then
3407    ac_cpp_err=$ac_c_preproc_warn_flag
3408    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409  else
3410    ac_cpp_err=
3411  fi
3412else
3413  ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416  # Broken: success on invalid input.
3417continue
3418else
3419  echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422  # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
3426
3427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then
3433  :
3434else
3435  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439   { (exit 1); exit 1; }; }
3440fi
3441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450
3451if test -d ${srcdir}/projects/llvm-gcc ; then
3452  subdirs="$subdirs projects/llvm-gcc"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/test-suite ; then
3457  subdirs="$subdirs projects/test-suite"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/llvm-test ; then
3462  subdirs="$subdirs projects/llvm-test"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/poolalloc ; then
3467  subdirs="$subdirs projects/poolalloc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472  subdirs="$subdirs projects/llvm-poolalloc"
3473
3474fi
3475
3476for i in `ls ${srcdir}/projects`
3477do
3478  if test -d ${srcdir}/projects/${i} ; then
3479    case ${i} in
3480      sample)       subdirs="$subdirs projects/sample"
3481    ;;
3482      privbracket)  subdirs="$subdirs projects/privbracket"
3483 ;;
3484      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485 ;;
3486      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3487;;
3488      llvm-java)    subdirs="$subdirs projects/llvm-java"
3489 ;;
3490      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3491   ;;
3492      safecode)     subdirs="$subdirs projects/safecode"
3493 ;;
3494      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3495 ;;
3496      llvm-gcc)       ;;
3497      test-suite)     ;;
3498      llvm-test)      ;;
3499      poolalloc)      ;;
3500      llvm-poolalloc) ;;
3501      *)
3502        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3503echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3504        ;;
3505    esac
3506  fi
3507done
3508
3509# Check whether --enable-polly was given.
3510if test "${enable_polly+set}" = set; then
3511  enableval=$enable_polly;
3512else
3513  enableval=default
3514fi
3515
3516case "$enableval" in
3517  yes) ENABLE_POLLY=1
3518 ;;
3519  no)  ENABLE_POLLY=0
3520 ;;
3521  default) ENABLE_POLLY=1
3522 ;;
3523  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3524echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3525   { (exit 1); exit 1; }; } ;;
3526esac
3527
3528
3529if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3530  LLVM_HAS_POLLY=1
3531
3532  subdirs="$subdirs tools/polly"
3533
3534fi
3535
3536
3537# Make sure we can run config.sub.
3538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3539  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3540echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3541   { (exit 1); exit 1; }; }
3542
3543{ echo "$as_me:$LINENO: checking build system type" >&5
3544echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3545if test "${ac_cv_build+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  ac_build_alias=$build_alias
3549test "x$ac_build_alias" = x &&
3550  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551test "x$ac_build_alias" = x &&
3552  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3553echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3554   { (exit 1); exit 1; }; }
3555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3557echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3558   { (exit 1); exit 1; }; }
3559
3560fi
3561{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3562echo "${ECHO_T}$ac_cv_build" >&6; }
3563case $ac_cv_build in
3564*-*-*) ;;
3565*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3566echo "$as_me: error: invalid value of canonical build" >&2;}
3567   { (exit 1); exit 1; }; };;
3568esac
3569build=$ac_cv_build
3570ac_save_IFS=$IFS; IFS='-'
3571set x $ac_cv_build
3572shift
3573build_cpu=$1
3574build_vendor=$2
3575shift; shift
3576# Remember, the first character of IFS is used to create $*,
3577# except with old shells:
3578build_os=$*
3579IFS=$ac_save_IFS
3580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581
3582
3583{ echo "$as_me:$LINENO: checking host system type" >&5
3584echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3585if test "${ac_cv_host+set}" = set; then
3586  echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588  if test "x$host_alias" = x; then
3589  ac_cv_host=$ac_cv_build
3590else
3591  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3592    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3593echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3594   { (exit 1); exit 1; }; }
3595fi
3596
3597fi
3598{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3599echo "${ECHO_T}$ac_cv_host" >&6; }
3600case $ac_cv_host in
3601*-*-*) ;;
3602*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3603echo "$as_me: error: invalid value of canonical host" >&2;}
3604   { (exit 1); exit 1; }; };;
3605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
3620{ echo "$as_me:$LINENO: checking target system type" >&5
3621echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3622if test "${ac_cv_target+set}" = set; then
3623  echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625  if test "x$target_alias" = x; then
3626  ac_cv_target=$ac_cv_host
3627else
3628  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3629    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3630echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3631   { (exit 1); exit 1; }; }
3632fi
3633
3634fi
3635{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3636echo "${ECHO_T}$ac_cv_target" >&6; }
3637case $ac_cv_target in
3638*-*-*) ;;
3639*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3640echo "$as_me: error: invalid value of canonical target" >&2;}
3641   { (exit 1); exit 1; }; };;
3642esac
3643target=$ac_cv_target
3644ac_save_IFS=$IFS; IFS='-'
3645set x $ac_cv_target
3646shift
3647target_cpu=$1
3648target_vendor=$2
3649shift; shift
3650# Remember, the first character of IFS is used to create $*,
3651# except with old shells:
3652target_os=$*
3653IFS=$ac_save_IFS
3654case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3655
3656
3657# The aliases save the names the user supplied, while $host etc.
3658# will get canonicalized.
3659test -n "$target_alias" &&
3660  test "$program_prefix$program_suffix$program_transform_name" = \
3661    NONENONEs,x,x, &&
3662  program_prefix=${target_alias}-
3663
3664{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3665echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3666if test "${llvm_cv_os_type+set}" = set; then
3667  echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669  case $host in
3670  *-*-aix*)
3671    llvm_cv_link_all_option="-Wl,--whole-archive"
3672    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673    llvm_cv_os_type="AIX"
3674    llvm_cv_platform_type="Unix" ;;
3675  *-*-irix*)
3676    llvm_cv_link_all_option="-Wl,--whole-archive"
3677    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678    llvm_cv_os_type="IRIX"
3679    llvm_cv_platform_type="Unix" ;;
3680  *-*-cygwin*)
3681    llvm_cv_link_all_option="-Wl,--whole-archive"
3682    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683    llvm_cv_os_type="Cygwin"
3684    llvm_cv_platform_type="Unix" ;;
3685  *-*-darwin*)
3686    llvm_cv_link_all_option="-Wl,-all_load"
3687    llvm_cv_no_link_all_option="-Wl,-noall_load"
3688    llvm_cv_os_type="Darwin"
3689    llvm_cv_platform_type="Unix" ;;
3690  *-*-minix*)
3691    llvm_cv_link_all_option="-Wl,-all_load"
3692    llvm_cv_no_link_all_option="-Wl,-noall_load"
3693    llvm_cv_os_type="Minix"
3694    llvm_cv_platform_type="Unix" ;;
3695  *-*-freebsd*)
3696    llvm_cv_link_all_option="-Wl,--whole-archive"
3697    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698    llvm_cv_os_type="FreeBSD"
3699    llvm_cv_platform_type="Unix" ;;
3700  *-*-openbsd*)
3701    llvm_cv_link_all_option="-Wl,--whole-archive"
3702    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703    llvm_cv_os_type="OpenBSD"
3704    llvm_cv_platform_type="Unix" ;;
3705  *-*-netbsd*)
3706    llvm_cv_link_all_option="-Wl,--whole-archive"
3707    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708    llvm_cv_os_type="NetBSD"
3709    llvm_cv_platform_type="Unix" ;;
3710  *-*-dragonfly*)
3711    llvm_cv_link_all_option="-Wl,--whole-archive"
3712    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713    llvm_cv_os_type="DragonFly"
3714    llvm_cv_platform_type="Unix" ;;
3715  *-*-hpux*)
3716    llvm_cv_link_all_option="-Wl,--whole-archive"
3717    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718    llvm_cv_os_type="HP-UX"
3719    llvm_cv_platform_type="Unix" ;;
3720  *-*-interix*)
3721    llvm_cv_link_all_option="-Wl,--whole-archive"
3722    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723    llvm_cv_os_type="Interix"
3724    llvm_cv_platform_type="Unix" ;;
3725  *-*-linux*)
3726    llvm_cv_link_all_option="-Wl,--whole-archive"
3727    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728    llvm_cv_os_type="Linux"
3729    llvm_cv_platform_type="Unix" ;;
3730  *-*-solaris*)
3731    llvm_cv_link_all_option="-Wl,-z,allextract"
3732    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3733    llvm_cv_os_type="SunOS"
3734    llvm_cv_platform_type="Unix" ;;
3735  *-*-auroraux*)
3736    llvm_cv_link_all_option="-Wl,-z,allextract"
3737    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3738    llvm_cv_os_type="AuroraUX"
3739    llvm_cv_platform_type="Unix" ;;
3740  *-*-win32*)
3741    llvm_cv_link_all_option="-Wl,--whole-archive"
3742    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743    llvm_cv_os_type="Win32"
3744    llvm_cv_platform_type="Win32" ;;
3745  *-*-mingw*)
3746    llvm_cv_link_all_option="-Wl,--whole-archive"
3747    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748    llvm_cv_os_type="MingW"
3749    llvm_cv_platform_type="Win32" ;;
3750  *-*-haiku*)
3751    llvm_cv_link_all_option="-Wl,--whole-archive"
3752    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753    llvm_cv_os_type="Haiku"
3754    llvm_cv_platform_type="Unix" ;;
3755  *-unknown-eabi*)
3756    llvm_cv_link_all_option="-Wl,--whole-archive"
3757    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758    llvm_cv_os_type="Freestanding"
3759    llvm_cv_platform_type="Unix" ;;
3760  *-unknown-elf*)
3761    llvm_cv_link_all_option="-Wl,--whole-archive"
3762    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763    llvm_cv_os_type="Freestanding"
3764    llvm_cv_platform_type="Unix" ;;
3765  *)
3766    llvm_cv_link_all_option=""
3767    llvm_cv_no_link_all_option=""
3768    llvm_cv_os_type="Unknown"
3769    llvm_cv_platform_type="Unknown" ;;
3770esac
3771fi
3772{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3773echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3774
3775{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3776echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3777if test "${llvm_cv_target_os_type+set}" = set; then
3778  echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780  case $target in
3781  *-*-aix*)
3782    llvm_cv_target_os_type="AIX" ;;
3783  *-*-irix*)
3784    llvm_cv_target_os_type="IRIX" ;;
3785  *-*-cygwin*)
3786    llvm_cv_target_os_type="Cygwin" ;;
3787  *-*-darwin*)
3788    llvm_cv_target_os_type="Darwin" ;;
3789  *-*-minix*)
3790    llvm_cv_target_os_type="Minix" ;;
3791  *-*-freebsd*)
3792    llvm_cv_target_os_type="FreeBSD" ;;
3793  *-*-openbsd*)
3794    llvm_cv_target_os_type="OpenBSD" ;;
3795  *-*-netbsd*)
3796    llvm_cv_target_os_type="NetBSD" ;;
3797  *-*-dragonfly*)
3798    llvm_cv_target_os_type="DragonFly" ;;
3799  *-*-hpux*)
3800    llvm_cv_target_os_type="HP-UX" ;;
3801  *-*-interix*)
3802    llvm_cv_target_os_type="Interix" ;;
3803  *-*-linux*)
3804    llvm_cv_target_os_type="Linux" ;;
3805  *-*-solaris*)
3806    llvm_cv_target_os_type="SunOS" ;;
3807  *-*-auroraux*)
3808    llvm_cv_target_os_type="AuroraUX" ;;
3809  *-*-win32*)
3810    llvm_cv_target_os_type="Win32" ;;
3811  *-*-mingw*)
3812    llvm_cv_target_os_type="MingW" ;;
3813  *-*-haiku*)
3814    llvm_cv_target_os_type="Haiku" ;;
3815  *-*-rtems*)
3816    llvm_cv_target_os_type="RTEMS" ;;
3817  *-*-nacl*)
3818    llvm_cv_target_os_type="NativeClient" ;;
3819  *-unknown-eabi*)
3820    llvm_cv_target_os_type="Freestanding" ;;
3821  *)
3822    llvm_cv_target_os_type="Unknown" ;;
3823esac
3824fi
3825{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3826echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3827
3828if test "$llvm_cv_os_type" = "Unknown" ; then
3829  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3830echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3831   { (exit 1); exit 1; }; }
3832fi
3833
3834OS=$llvm_cv_os_type
3835
3836HOST_OS=$llvm_cv_os_type
3837
3838TARGET_OS=$llvm_cv_target_os_type
3839
3840
3841LINKALL=$llvm_cv_link_all_option
3842
3843NOLINKALL=$llvm_cv_no_link_all_option
3844
3845
3846case $llvm_cv_platform_type in
3847  Unix)
3848
3849cat >>confdefs.h <<\_ACEOF
3850#define LLVM_ON_UNIX 1
3851_ACEOF
3852
3853    LLVM_ON_UNIX=1
3854
3855    LLVM_ON_WIN32=0
3856
3857    ;;
3858  Win32)
3859
3860cat >>confdefs.h <<\_ACEOF
3861#define LLVM_ON_WIN32 1
3862_ACEOF
3863
3864    LLVM_ON_UNIX=0
3865
3866    LLVM_ON_WIN32=1
3867
3868    ;;
3869esac
3870
3871{ echo "$as_me:$LINENO: checking target architecture" >&5
3872echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3873if test "${llvm_cv_target_arch+set}" = set; then
3874  echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876  case $target in
3877  i?86-*)                 llvm_cv_target_arch="x86" ;;
3878  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3879  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3880  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3881  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3882  mips-*)                 llvm_cv_target_arch="Mips" ;;
3883  xcore-*)                llvm_cv_target_arch="XCore" ;;
3884  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3885  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3886  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3887  *)                      llvm_cv_target_arch="Unknown" ;;
3888esac
3889fi
3890{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3892
3893if test "$llvm_cv_target_arch" = "Unknown" ; then
3894  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896fi
3897
3898# Determine the LLVM native architecture for the target
3899case "$llvm_cv_target_arch" in
3900    x86)     LLVM_NATIVE_ARCH="X86" ;;
3901    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3902    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903esac
3904
3905ARCH=$llvm_cv_target_arch
3906
3907
3908
3909
3910{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912if test "${ac_cv_path_GREP+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  # Extract the first word of "grep ggrep" to use in msg output
3916if test -z "$GREP"; then
3917set dummy grep ggrep; ac_prog_name=$2
3918if test "${ac_cv_path_GREP+set}" = set; then
3919  echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921  ac_path_GREP_found=false
3922# Loop through the user's path and test for each of PROGNAME-LIST
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928  for ac_prog in grep ggrep; do
3929  for ac_exec_ext in '' $ac_executable_extensions; do
3930    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932    # Check for GNU ac_path_GREP and select it if it is found.
3933  # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938  ac_count=0
3939  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940  while :
3941  do
3942    cat "conftest.in" "conftest.in" >"conftest.tmp"
3943    mv "conftest.tmp" "conftest.in"
3944    cp "conftest.in" "conftest.nl"
3945    echo 'GREP' >> "conftest.nl"
3946    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948    ac_count=`expr $ac_count + 1`
3949    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950      # Best one so far, save it but keep looking for a better one
3951      ac_cv_path_GREP="$ac_path_GREP"
3952      ac_path_GREP_max=$ac_count
3953    fi
3954    # 10*(2^10) chars as input seems more than enough
3955    test $ac_count -gt 10 && break
3956  done
3957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
3960
3961    $ac_path_GREP_found && break 3
3962  done
3963done
3964
3965done
3966IFS=$as_save_IFS
3967
3968
3969fi
3970
3971GREP="$ac_cv_path_GREP"
3972if test -z "$GREP"; then
3973  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975   { (exit 1); exit 1; }; }
3976fi
3977
3978else
3979  ac_cv_path_GREP=$GREP
3980fi
3981
3982
3983fi
3984{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3986 GREP="$ac_cv_path_GREP"
3987
3988
3989{ echo "$as_me:$LINENO: checking for egrep" >&5
3990echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991if test "${ac_cv_path_EGREP+set}" = set; then
3992  echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995   then ac_cv_path_EGREP="$GREP -E"
3996   else
3997     # Extract the first word of "egrep" to use in msg output
3998if test -z "$EGREP"; then
3999set dummy egrep; ac_prog_name=$2
4000if test "${ac_cv_path_EGREP+set}" = set; then
4001  echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003  ac_path_EGREP_found=false
4004# Loop through the user's path and test for each of PROGNAME-LIST
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007do
4008  IFS=$as_save_IFS
4009  test -z "$as_dir" && as_dir=.
4010  for ac_prog in egrep; do
4011  for ac_exec_ext in '' $ac_executable_extensions; do
4012    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014    # Check for GNU ac_path_EGREP and select it if it is found.
4015  # Check for GNU $ac_path_EGREP
4016case `"$ac_path_EGREP" --version 2>&1` in
4017*GNU*)
4018  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019*)
4020  ac_count=0
4021  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022  while :
4023  do
4024    cat "conftest.in" "conftest.in" >"conftest.tmp"
4025    mv "conftest.tmp" "conftest.in"
4026    cp "conftest.in" "conftest.nl"
4027    echo 'EGREP' >> "conftest.nl"
4028    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030    ac_count=`expr $ac_count + 1`
4031    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032      # Best one so far, save it but keep looking for a better one
4033      ac_cv_path_EGREP="$ac_path_EGREP"
4034      ac_path_EGREP_max=$ac_count
4035    fi
4036    # 10*(2^10) chars as input seems more than enough
4037    test $ac_count -gt 10 && break
4038  done
4039  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040esac
4041
4042
4043    $ac_path_EGREP_found && break 3
4044  done
4045done
4046
4047done
4048IFS=$as_save_IFS
4049
4050
4051fi
4052
4053EGREP="$ac_cv_path_EGREP"
4054if test -z "$EGREP"; then
4055  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057   { (exit 1); exit 1; }; }
4058fi
4059
4060else
4061  ac_cv_path_EGREP=$EGREP
4062fi
4063
4064
4065   fi
4066fi
4067{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
4070
4071
4072{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074if test "${ac_cv_header_stdc+set}" = set; then
4075  echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077  cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h.  */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h.  */
4083#include <stdlib.h>
4084#include <stdarg.h>
4085#include <string.h>
4086#include <float.h>
4087
4088int
4089main ()
4090{
4091
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096rm -f conftest.$ac_objext
4097if { (ac_try="$ac_compile"
4098case "(($ac_try" in
4099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100  *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103  (eval "$ac_compile") 2>conftest.er1
4104  ac_status=$?
4105  grep -v '^ *+' conftest.er1 >conftest.err
4106  rm -f conftest.er1
4107  cat conftest.err >&5
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); } &&
4110	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111  { (case "(($ac_try" in
4112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113  *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116  (eval "$ac_try") 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; } &&
4120	 { ac_try='test -s conftest.$ac_objext'
4121  { (case "(($ac_try" in
4122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123  *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126  (eval "$ac_try") 2>&5
4127  ac_status=$?
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); }; }; then
4130  ac_cv_header_stdc=yes
4131else
4132  echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135	ac_cv_header_stdc=no
4136fi
4137
4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139
4140if test $ac_cv_header_stdc = yes; then
4141  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4142  cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h.  */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h.  */
4148#include <string.h>
4149
4150_ACEOF
4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152  $EGREP "memchr" >/dev/null 2>&1; then
4153  :
4154else
4155  ac_cv_header_stdc=no
4156fi
4157rm -f conftest*
4158
4159fi
4160
4161if test $ac_cv_header_stdc = yes; then
4162  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163  cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169#include <stdlib.h>
4170
4171_ACEOF
4172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173  $EGREP "free" >/dev/null 2>&1; then
4174  :
4175else
4176  ac_cv_header_stdc=no
4177fi
4178rm -f conftest*
4179
4180fi
4181
4182if test $ac_cv_header_stdc = yes; then
4183  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184  if test "$cross_compiling" = yes; then
4185  :
4186else
4187  cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193#include <ctype.h>
4194#include <stdlib.h>
4195#if ((' ' & 0x0FF) == 0x020)
4196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198#else
4199# define ISLOWER(c) \
4200		   (('a' <= (c) && (c) <= 'i') \
4201		     || ('j' <= (c) && (c) <= 'r') \
4202		     || ('s' <= (c) && (c) <= 'z'))
4203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204#endif
4205
4206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207int
4208main ()
4209{
4210  int i;
4211  for (i = 0; i < 256; i++)
4212    if (XOR (islower (i), ISLOWER (i))
4213	|| toupper (i) != TOUPPER (i))
4214      return 2;
4215  return 0;
4216}
4217_ACEOF
4218rm -f conftest$ac_exeext
4219if { (ac_try="$ac_link"
4220case "(($ac_try" in
4221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222  *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225  (eval "$ac_link") 2>&5
4226  ac_status=$?
4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229  { (case "(($ac_try" in
4230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231  *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234  (eval "$ac_try") 2>&5
4235  ac_status=$?
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); }; }; then
4238  :
4239else
4240  echo "$as_me: program exited with status $ac_status" >&5
4241echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
4244( exit $ac_status )
4245ac_cv_header_stdc=no
4246fi
4247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248fi
4249
4250
4251fi
4252fi
4253{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4255if test $ac_cv_header_stdc = yes; then
4256
4257cat >>confdefs.h <<\_ACEOF
4258#define STDC_HEADERS 1
4259_ACEOF
4260
4261fi
4262
4263# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274		  inttypes.h stdint.h unistd.h
4275do
4276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280  echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282  cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288$ac_includes_default
4289
4290#include <$ac_header>
4291_ACEOF
4292rm -f conftest.$ac_objext
4293if { (ac_try="$ac_compile"
4294case "(($ac_try" in
4295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296  *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299  (eval "$ac_compile") 2>conftest.er1
4300  ac_status=$?
4301  grep -v '^ *+' conftest.er1 >conftest.err
4302  rm -f conftest.er1
4303  cat conftest.err >&5
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307  { (case "(($ac_try" in
4308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309  *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312  (eval "$ac_try") 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; } &&
4316	 { ac_try='test -s conftest.$ac_objext'
4317  { (case "(($ac_try" in
4318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319  *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322  (eval "$ac_try") 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; }; then
4326  eval "$as_ac_Header=yes"
4327else
4328  echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331	eval "$as_ac_Header=no"
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336ac_res=`eval echo '${'$as_ac_Header'}'`
4337	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4338echo "${ECHO_T}$ac_res" >&6; }
4339if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340  cat >>confdefs.h <<_ACEOF
4341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342_ACEOF
4343
4344fi
4345
4346done
4347
4348
4349{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351if test "${ac_cv_c_bigendian+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  # See if sys/param.h defines the BYTE_ORDER macro.
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h.  */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h.  */
4361#include <sys/types.h>
4362#include <sys/param.h>
4363
4364int
4365main ()
4366{
4367#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4368 bogus endian macros
4369#endif
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (ac_try="$ac_compile"
4377case "(($ac_try" in
4378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379  *) ac_try_echo=$ac_try;;
4380esac
4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382  (eval "$ac_compile") 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } &&
4389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390  { (case "(($ac_try" in
4391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392  *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395  (eval "$ac_try") 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399	 { ac_try='test -s conftest.$ac_objext'
4400  { (case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405  (eval "$ac_try") 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; }; then
4409  # It does; now see whether it defined to BIG_ENDIAN or not.
4410cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416#include <sys/types.h>
4417#include <sys/param.h>
4418
4419int
4420main ()
4421{
4422#if BYTE_ORDER != BIG_ENDIAN
4423 not big endian
4424#endif
4425
4426  ;
4427  return 0;
4428}
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (ac_try="$ac_compile"
4432case "(($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_compile") 2>conftest.er1
4438  ac_status=$?
4439  grep -v '^ *+' conftest.er1 >conftest.err
4440  rm -f conftest.er1
4441  cat conftest.err >&5
4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443  (exit $ac_status); } &&
4444	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445  { (case "(($ac_try" in
4446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447  *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450  (eval "$ac_try") 2>&5
4451  ac_status=$?
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); }; } &&
4454	 { ac_try='test -s conftest.$ac_objext'
4455  { (case "(($ac_try" in
4456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457  *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460  (eval "$ac_try") 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; }; then
4464  ac_cv_c_bigendian=yes
4465else
4466  echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469	ac_cv_c_bigendian=no
4470fi
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477	# It does not; compile a test program.
4478if test "$cross_compiling" = yes; then
4479  # try to guess the endianness by grepping values into an object file
4480  ac_cv_c_bigendian=unknown
4481  cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h.  */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h.  */
4487short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4493int
4494main ()
4495{
4496 _ascii (); _ebcdic ();
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501rm -f conftest.$ac_objext
4502if { (ac_try="$ac_compile"
4503case "(($ac_try" in
4504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505  *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508  (eval "$ac_compile") 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } &&
4515	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516  { (case "(($ac_try" in
4517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518  *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521  (eval "$ac_try") 2>&5
4522  ac_status=$?
4523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524  (exit $ac_status); }; } &&
4525	 { ac_try='test -s conftest.$ac_objext'
4526  { (case "(($ac_try" in
4527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528  *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531  (eval "$ac_try") 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; }; then
4535  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4536  ac_cv_c_bigendian=yes
4537fi
4538if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539  if test "$ac_cv_c_bigendian" = unknown; then
4540    ac_cv_c_bigendian=no
4541  else
4542    # finding both strings is unlikely to happen, but who knows?
4543    ac_cv_c_bigendian=unknown
4544  fi
4545fi
4546else
4547  echo "$as_me: failed program was:" >&5
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
4550
4551fi
4552
4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554else
4555  cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561$ac_includes_default
4562int
4563main ()
4564{
4565
4566  /* Are we little or big endian?  From Harbison&Steele.  */
4567  union
4568  {
4569    long int l;
4570    char c[sizeof (long int)];
4571  } u;
4572  u.l = 1;
4573  return u.c[sizeof (long int) - 1] == 1;
4574
4575  ;
4576  return 0;
4577}
4578_ACEOF
4579rm -f conftest$ac_exeext
4580if { (ac_try="$ac_link"
4581case "(($ac_try" in
4582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583  *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586  (eval "$ac_link") 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590  { (case "(($ac_try" in
4591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592  *) ac_try_echo=$ac_try;;
4593esac
4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595  (eval "$ac_try") 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; }; then
4599  ac_cv_c_bigendian=no
4600else
4601  echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_c_bigendian=yes
4607fi
4608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609fi
4610
4611
4612fi
4613
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615fi
4616{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618case $ac_cv_c_bigendian in
4619  yes)
4620    ENDIAN=big
4621 ;;
4622  no)
4623    ENDIAN=little
4624 ;;
4625  *)
4626    { { echo "$as_me:$LINENO: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628echo "$as_me: error: unknown endianness
4629presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630   { (exit 1); exit 1; }; } ;;
4631esac
4632
4633
4634if test "$cross_compiling" = yes; then
4635  LLVM_CROSS_COMPILING=1
4636
4637
4638{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640if test "${ac_cv_build_exeext+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644  ac_cv_build_exeext=.exe
4645else
4646  ac_build_prefix=${build_alias}-
4647
4648  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649set dummy ${ac_build_prefix}gcc; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655  if test -n "$BUILD_CC"; then
4656  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663  for ac_exec_ext in '' $ac_executable_extensions; do
4664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675BUILD_CC=$ac_cv_prog_BUILD_CC
4676if test -n "$BUILD_CC"; then
4677  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678echo "${ECHO_T}$BUILD_CC" >&6; }
4679else
4680  { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
4682fi
4683
4684
4685  if test -z "$BUILD_CC"; then
4686     # Extract the first word of "gcc", so it can be a program name with args.
4687set dummy gcc; ac_word=$2
4688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691  echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693  if test -n "$BUILD_CC"; then
4694  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699  IFS=$as_save_IFS
4700  test -z "$as_dir" && as_dir=.
4701  for ac_exec_ext in '' $ac_executable_extensions; do
4702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703    ac_cv_prog_BUILD_CC="gcc"
4704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705    break 2
4706  fi
4707done
4708done
4709IFS=$as_save_IFS
4710
4711fi
4712fi
4713BUILD_CC=$ac_cv_prog_BUILD_CC
4714if test -n "$BUILD_CC"; then
4715  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716echo "${ECHO_T}$BUILD_CC" >&6; }
4717else
4718  { echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6; }
4720fi
4721
4722
4723     if test -z "$BUILD_CC"; then
4724       # Extract the first word of "cc", so it can be a program name with args.
4725set dummy cc; ac_word=$2
4726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729  echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731  if test -n "$BUILD_CC"; then
4732  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733else
4734  ac_prog_rejected=no
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  test -z "$as_dir" && as_dir=.
4740  for ac_exec_ext in '' $ac_executable_extensions; do
4741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743       ac_prog_rejected=yes
4744       continue
4745     fi
4746    ac_cv_prog_BUILD_CC="cc"
4747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748    break 2
4749  fi
4750done
4751done
4752IFS=$as_save_IFS
4753
4754if test $ac_prog_rejected = yes; then
4755  # We found a bogon in the path, so make sure we never use it.
4756  set dummy $ac_cv_prog_BUILD_CC
4757  shift
4758  if test $# != 0; then
4759    # We chose a different compiler from the bogus one.
4760    # However, it has the same basename, so the bogon will be chosen
4761    # first if we set BUILD_CC to just the basename; use the full file name.
4762    shift
4763    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4764  fi
4765fi
4766fi
4767fi
4768BUILD_CC=$ac_cv_prog_BUILD_CC
4769if test -n "$BUILD_CC"; then
4770  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771echo "${ECHO_T}$BUILD_CC" >&6; }
4772else
4773  { echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6; }
4775fi
4776
4777
4778     fi
4779  fi
4780  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782   { (exit 1); exit 1; }; }
4783  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4784  rm -f conftest*
4785  echo 'int main () { return 0; }' > conftest.$ac_ext
4786  ac_cv_build_exeext=
4787  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4788  (eval $ac_build_link) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; then
4792    for file in conftest.*; do
4793      case $file in
4794      *.c | *.o | *.obj | *.dSYM) ;;
4795      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4796      esac
4797    done
4798  else
4799    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801   { (exit 1); exit 1; }; }
4802  fi
4803  rm -f conftest*
4804  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4805fi
4806fi
4807
4808BUILD_EXEEXT=""
4809test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4810{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4812ac_build_exeext=$BUILD_EXEEXT
4813
4814  ac_build_prefix=${build_alias}-
4815  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816set dummy ${ac_build_prefix}g++; ac_word=$2
4817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  if test -n "$BUILD_CXX"; then
4823  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830  for ac_exec_ext in '' $ac_executable_extensions; do
4831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843if test -n "$BUILD_CXX"; then
4844  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845echo "${ECHO_T}$BUILD_CXX" >&6; }
4846else
4847  { echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6; }
4849fi
4850
4851
4852  if test -z "$BUILD_CXX"; then
4853     # Extract the first word of "g++", so it can be a program name with args.
4854set dummy g++; ac_word=$2
4855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  if test -n "$BUILD_CXX"; then
4861  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868  for ac_exec_ext in '' $ac_executable_extensions; do
4869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870    ac_cv_prog_BUILD_CXX="g++"
4871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875done
4876IFS=$as_save_IFS
4877
4878fi
4879fi
4880BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881if test -n "$BUILD_CXX"; then
4882  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883echo "${ECHO_T}$BUILD_CXX" >&6; }
4884else
4885  { echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6; }
4887fi
4888
4889
4890     if test -z "$BUILD_CXX"; then
4891       # Extract the first word of "c++", so it can be a program name with args.
4892set dummy c++; ac_word=$2
4893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896  echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898  if test -n "$BUILD_CXX"; then
4899  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900else
4901  ac_prog_rejected=no
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907  for ac_exec_ext in '' $ac_executable_extensions; do
4908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910       ac_prog_rejected=yes
4911       continue
4912     fi
4913    ac_cv_prog_BUILD_CXX="c++"
4914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915    break 2
4916  fi
4917done
4918done
4919IFS=$as_save_IFS
4920
4921if test $ac_prog_rejected = yes; then
4922  # We found a bogon in the path, so make sure we never use it.
4923  set dummy $ac_cv_prog_BUILD_CXX
4924  shift
4925  if test $# != 0; then
4926    # We chose a different compiler from the bogus one.
4927    # However, it has the same basename, so the bogon will be chosen
4928    # first if we set BUILD_CXX to just the basename; use the full file name.
4929    shift
4930    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4931  fi
4932fi
4933fi
4934fi
4935BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936if test -n "$BUILD_CXX"; then
4937  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938echo "${ECHO_T}$BUILD_CXX" >&6; }
4939else
4940  { echo "$as_me:$LINENO: result: no" >&5
4941echo "${ECHO_T}no" >&6; }
4942fi
4943
4944
4945     fi
4946  fi
4947else
4948  LLVM_CROSS_COMPILING=0
4949
4950fi
4951
4952if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4953  cvsbuild="yes"
4954  optimize="no"
4955  CVSBUILD=CVSBUILD=1
4956
4957else
4958  cvsbuild="no"
4959  optimize="yes"
4960fi
4961
4962
4963# Check whether --enable-libcpp was given.
4964if test "${enable_libcpp+set}" = set; then
4965  enableval=$enable_libcpp;
4966else
4967  enableval=default
4968fi
4969
4970case "$enableval" in
4971  yes) ENABLE_LIBCPP=1
4972 ;;
4973  no)  ENABLE_LIBCPP=0
4974 ;;
4975  default) ENABLE_LIBCPP=0
4976;;
4977  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4978echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4979   { (exit 1); exit 1; }; } ;;
4980esac
4981
4982# Check whether --enable-optimized was given.
4983if test "${enable_optimized+set}" = set; then
4984  enableval=$enable_optimized;
4985else
4986  enableval=$optimize
4987fi
4988
4989if test ${enableval} = "no" ; then
4990  ENABLE_OPTIMIZED=
4991
4992else
4993  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4994
4995fi
4996
4997# Check whether --enable-profiling was given.
4998if test "${enable_profiling+set}" = set; then
4999  enableval=$enable_profiling;
5000else
5001  enableval="no"
5002fi
5003
5004if test ${enableval} = "no" ; then
5005  ENABLE_PROFILING=
5006
5007else
5008  ENABLE_PROFILING=ENABLE_PROFILING=1
5009
5010fi
5011
5012# Check whether --enable-assertions was given.
5013if test "${enable_assertions+set}" = set; then
5014  enableval=$enable_assertions;
5015else
5016  enableval="yes"
5017fi
5018
5019if test ${enableval} = "yes" ; then
5020  DISABLE_ASSERTIONS=
5021
5022else
5023  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5024
5025fi
5026
5027# Check whether --enable-expensive-checks was given.
5028if test "${enable_expensive_checks+set}" = set; then
5029  enableval=$enable_expensive_checks;
5030else
5031  enableval="no"
5032fi
5033
5034if test ${enableval} = "yes" ; then
5035  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5036
5037  EXPENSIVE_CHECKS=yes
5038
5039else
5040  ENABLE_EXPENSIVE_CHECKS=
5041
5042  EXPENSIVE_CHECKS=no
5043
5044fi
5045
5046# Check whether --enable-debug-runtime was given.
5047if test "${enable_debug_runtime+set}" = set; then
5048  enableval=$enable_debug_runtime;
5049else
5050  enableval=no
5051fi
5052
5053if test ${enableval} = "no" ; then
5054  DEBUG_RUNTIME=
5055
5056else
5057  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5058
5059fi
5060
5061# Check whether --enable-debug-symbols was given.
5062if test "${enable_debug_symbols+set}" = set; then
5063  enableval=$enable_debug_symbols;
5064else
5065  enableval=no
5066fi
5067
5068if test ${enableval} = "no" ; then
5069  DEBUG_SYMBOLS=
5070
5071else
5072  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5073
5074fi
5075
5076# Check whether --enable-jit was given.
5077if test "${enable_jit+set}" = set; then
5078  enableval=$enable_jit;
5079else
5080  enableval=default
5081fi
5082
5083if test ${enableval} = "no"
5084then
5085  JIT=
5086
5087else
5088  case "$llvm_cv_target_arch" in
5089    x86)         TARGET_HAS_JIT=1
5090 ;;
5091    Sparc)       TARGET_HAS_JIT=0
5092 ;;
5093    PowerPC)     TARGET_HAS_JIT=1
5094 ;;
5095    x86_64)      TARGET_HAS_JIT=1
5096 ;;
5097    ARM)         TARGET_HAS_JIT=1
5098 ;;
5099    Mips)        TARGET_HAS_JIT=1
5100 ;;
5101    XCore)       TARGET_HAS_JIT=0
5102 ;;
5103    MSP430)      TARGET_HAS_JIT=0
5104 ;;
5105    MBlaze)      TARGET_HAS_JIT=0
5106 ;;
5107    PTX)         TARGET_HAS_JIT=0
5108 ;;
5109    *)           TARGET_HAS_JIT=0
5110 ;;
5111  esac
5112fi
5113
5114# Check whether --enable-docs was given.
5115if test "${enable_docs+set}" = set; then
5116  enableval=$enable_docs;
5117else
5118  enableval=default
5119fi
5120
5121case "$enableval" in
5122  yes) ENABLE_DOCS=1
5123 ;;
5124  no)  ENABLE_DOCS=0
5125 ;;
5126  default) ENABLE_DOCS=1
5127 ;;
5128  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5130   { (exit 1); exit 1; }; } ;;
5131esac
5132
5133# Check whether --enable-doxygen was given.
5134if test "${enable_doxygen+set}" = set; then
5135  enableval=$enable_doxygen;
5136else
5137  enableval=default
5138fi
5139
5140case "$enableval" in
5141  yes) ENABLE_DOXYGEN=1
5142 ;;
5143  no)  ENABLE_DOXYGEN=0
5144 ;;
5145  default) ENABLE_DOXYGEN=0
5146 ;;
5147  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5149   { (exit 1); exit 1; }; } ;;
5150esac
5151
5152# Check whether --enable-threads was given.
5153if test "${enable_threads+set}" = set; then
5154  enableval=$enable_threads;
5155else
5156  enableval=default
5157fi
5158
5159case "$enableval" in
5160  yes) LLVM_ENABLE_THREADS=1
5161 ;;
5162  no)  LLVM_ENABLE_THREADS=0
5163 ;;
5164  default) LLVM_ENABLE_THREADS=1
5165 ;;
5166  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5167echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5168   { (exit 1); exit 1; }; } ;;
5169esac
5170
5171cat >>confdefs.h <<_ACEOF
5172#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5173_ACEOF
5174
5175
5176# Check whether --enable-pthreads was given.
5177if test "${enable_pthreads+set}" = set; then
5178  enableval=$enable_pthreads;
5179else
5180  enableval=default
5181fi
5182
5183case "$enableval" in
5184  yes) ENABLE_PTHREADS=1
5185 ;;
5186  no)  ENABLE_PTHREADS=0
5187 ;;
5188  default) ENABLE_PTHREADS=1
5189 ;;
5190  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5192   { (exit 1); exit 1; }; } ;;
5193esac
5194
5195# Check whether --enable-pic was given.
5196if test "${enable_pic+set}" = set; then
5197  enableval=$enable_pic;
5198else
5199  enableval=default
5200fi
5201
5202case "$enableval" in
5203  yes) ENABLE_PIC=1
5204 ;;
5205  no)  ENABLE_PIC=0
5206 ;;
5207  default) ENABLE_PIC=1
5208 ;;
5209  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5210echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5211   { (exit 1); exit 1; }; } ;;
5212esac
5213
5214cat >>confdefs.h <<_ACEOF
5215#define ENABLE_PIC $ENABLE_PIC
5216_ACEOF
5217
5218
5219# Check whether --enable-shared was given.
5220if test "${enable_shared+set}" = set; then
5221  enableval=$enable_shared;
5222else
5223  enableval=default
5224fi
5225
5226case "$enableval" in
5227  yes) ENABLE_SHARED=1
5228 ;;
5229  no)  ENABLE_SHARED=0
5230 ;;
5231  default) ENABLE_SHARED=0
5232 ;;
5233  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5234echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5235   { (exit 1); exit 1; }; } ;;
5236esac
5237
5238# Check whether --enable-embed-stdcxx was given.
5239if test "${enable_embed_stdcxx+set}" = set; then
5240  enableval=$enable_embed_stdcxx;
5241else
5242  enableval=default
5243fi
5244
5245case "$enableval" in
5246  yes) ENABLE_EMBED_STDCXX=1
5247 ;;
5248  no)  ENABLE_EMBED_STDCXX=0
5249 ;;
5250  default) ENABLE_EMBED_STDCXX=0
5251 ;;
5252  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5253echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5254   { (exit 1); exit 1; }; } ;;
5255esac
5256
5257# Check whether --enable-timestamps was given.
5258if test "${enable_timestamps+set}" = set; then
5259  enableval=$enable_timestamps;
5260else
5261  enableval=default
5262fi
5263
5264case "$enableval" in
5265  yes) ENABLE_TIMESTAMPS=1
5266 ;;
5267  no)  ENABLE_TIMESTAMPS=0
5268 ;;
5269  default) ENABLE_TIMESTAMPS=1
5270 ;;
5271  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5272echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5273   { (exit 1); exit 1; }; } ;;
5274esac
5275
5276cat >>confdefs.h <<_ACEOF
5277#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5278_ACEOF
5279
5280
5281TARGETS_TO_BUILD=""
5282# Check whether --enable-targets was given.
5283if test "${enable_targets+set}" = set; then
5284  enableval=$enable_targets;
5285else
5286  enableval=all
5287fi
5288
5289if test "$enableval" = host-only ; then
5290  enableval=host
5291fi
5292case "$enableval" in
5293  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5294  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295      case "$a_target" in
5296        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5301        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5302        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5303        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5305        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5306        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5307        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5308        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5309        host) case "$llvm_cv_target_arch" in
5310            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5314            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5317            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5318            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5322echo "$as_me: error: Can not set target to build" >&2;}
5323   { (exit 1); exit 1; }; } ;;
5324          esac ;;
5325        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5326echo "$as_me: error: Unrecognized target $a_target" >&2;}
5327   { (exit 1); exit 1; }; } ;;
5328      esac
5329  done
5330  ;;
5331esac
5332TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5333
5334
5335# Determine whether we are building LLVM support for the native architecture.
5336# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5337for a_target in $TARGETS_TO_BUILD; do
5338  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5339
5340cat >>confdefs.h <<_ACEOF
5341#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5342_ACEOF
5343
5344    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5345    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5346    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5347    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5348    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5349      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5350    fi
5351
5352cat >>confdefs.h <<_ACEOF
5353#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5354_ACEOF
5355
5356
5357cat >>confdefs.h <<_ACEOF
5358#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5359_ACEOF
5360
5361
5362cat >>confdefs.h <<_ACEOF
5363#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5364_ACEOF
5365
5366
5367cat >>confdefs.h <<_ACEOF
5368#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5369_ACEOF
5370
5371    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372
5373cat >>confdefs.h <<_ACEOF
5374#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5375_ACEOF
5376
5377    fi
5378  fi
5379done
5380
5381# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5382# target feature def files.
5383LLVM_ENUM_TARGETS=""
5384LLVM_ENUM_ASM_PRINTERS=""
5385LLVM_ENUM_ASM_PARSERS=""
5386LLVM_ENUM_DISASSEMBLERS=""
5387for target_to_build in $TARGETS_TO_BUILD; do
5388  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5389  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5390    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5391  fi
5392  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5393    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5394  fi
5395  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5396    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5397  fi
5398done
5399
5400
5401
5402
5403
5404# Check whether --enable-cbe-printf-a was given.
5405if test "${enable_cbe_printf_a+set}" = set; then
5406  enableval=$enable_cbe_printf_a;
5407else
5408  enableval=default
5409fi
5410
5411case "$enableval" in
5412  yes) ENABLE_CBE_PRINTF_A=1
5413 ;;
5414  no)  ENABLE_CBE_PRINTF_A=0
5415 ;;
5416  default)  ENABLE_CBE_PRINTF_A=1
5417 ;;
5418  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5419echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5420   { (exit 1); exit 1; }; } ;;
5421esac
5422
5423cat >>confdefs.h <<_ACEOF
5424#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5425_ACEOF
5426
5427
5428
5429# Check whether --with-optimize-option was given.
5430if test "${with_optimize_option+set}" = set; then
5431  withval=$with_optimize_option;
5432else
5433  withval=default
5434fi
5435
5436{ echo "$as_me:$LINENO: checking optimization flags" >&5
5437echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5438case "$withval" in
5439  default)
5440    case "$llvm_cv_os_type" in
5441    FreeBSD) optimize_option=-O2 ;;
5442    MingW) optimize_option=-O2 ;;
5443    *)     optimize_option=-O3 ;;
5444    esac ;;
5445  *) optimize_option="$withval" ;;
5446esac
5447OPTIMIZE_OPTION=$optimize_option
5448
5449{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5450echo "${ECHO_T}$optimize_option" >&6; }
5451
5452
5453# Check whether --with-extra-options was given.
5454if test "${with_extra_options+set}" = set; then
5455  withval=$with_extra_options;
5456else
5457  withval=default
5458fi
5459
5460case "$withval" in
5461  default) EXTRA_OPTIONS= ;;
5462  *) EXTRA_OPTIONS=$withval ;;
5463esac
5464EXTRA_OPTIONS=$EXTRA_OPTIONS
5465
5466
5467
5468# Check whether --with-extra-ld-options was given.
5469if test "${with_extra_ld_options+set}" = set; then
5470  withval=$with_extra_ld_options;
5471else
5472  withval=default
5473fi
5474
5475case "$withval" in
5476  default) EXTRA_LD_OPTIONS= ;;
5477  *) EXTRA_LD_OPTIONS=$withval ;;
5478esac
5479EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5480
5481
5482# Check whether --enable-bindings was given.
5483if test "${enable_bindings+set}" = set; then
5484  enableval=$enable_bindings;
5485else
5486  enableval=default
5487fi
5488
5489BINDINGS_TO_BUILD=""
5490case "$enableval" in
5491  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5492  all ) BINDINGS_TO_BUILD="ocaml" ;;
5493  none | no) BINDINGS_TO_BUILD="" ;;
5494  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5495      case "$a_binding" in
5496        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5497        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5498echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5499   { (exit 1); exit 1; }; } ;;
5500      esac
5501  done
5502  ;;
5503esac
5504
5505
5506# Check whether --with-ocaml-libdir was given.
5507if test "${with_ocaml_libdir+set}" = set; then
5508  withval=$with_ocaml_libdir;
5509else
5510  withval=auto
5511fi
5512
5513case "$withval" in
5514  auto) with_ocaml_libdir="$withval" ;;
5515  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5516  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5517echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5518   { (exit 1); exit 1; }; } ;;
5519esac
5520
5521
5522# Check whether --with-clang-srcdir was given.
5523if test "${with_clang_srcdir+set}" = set; then
5524  withval=$with_clang_srcdir;
5525else
5526  withval="-"
5527fi
5528
5529case "$withval" in
5530  -) clang_src_root="" ;;
5531  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5532  *) clang_src_root="$ac_pwd/$withval" ;;
5533esac
5534CLANG_SRC_ROOT=$clang_src_root
5535
5536
5537
5538# Check whether --with-clang-resource-dir was given.
5539if test "${with_clang_resource_dir+set}" = set; then
5540  withval=$with_clang_resource_dir;
5541else
5542  withval=""
5543fi
5544
5545
5546cat >>confdefs.h <<_ACEOF
5547#define CLANG_RESOURCE_DIR "$withval"
5548_ACEOF
5549
5550
5551
5552# Check whether --with-c-include-dirs was given.
5553if test "${with_c_include_dirs+set}" = set; then
5554  withval=$with_c_include_dirs;
5555else
5556  withval=""
5557fi
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define C_INCLUDE_DIRS "$withval"
5562_ACEOF
5563
5564
5565
5566# Check whether --with-cxx-include-root was given.
5567if test "${with_cxx_include_root+set}" = set; then
5568  withval=$with_cxx_include_root;
5569else
5570  withval=""
5571fi
5572
5573
5574cat >>confdefs.h <<_ACEOF
5575#define CXX_INCLUDE_ROOT "$withval"
5576_ACEOF
5577
5578
5579
5580# Check whether --with-cxx-include-arch was given.
5581if test "${with_cxx_include_arch+set}" = set; then
5582  withval=$with_cxx_include_arch;
5583else
5584  withval=""
5585fi
5586
5587
5588cat >>confdefs.h <<_ACEOF
5589#define CXX_INCLUDE_ARCH "$withval"
5590_ACEOF
5591
5592
5593
5594# Check whether --with-cxx-include-32bit-dir was given.
5595if test "${with_cxx_include_32bit_dir+set}" = set; then
5596  withval=$with_cxx_include_32bit_dir;
5597else
5598  withval=""
5599fi
5600
5601
5602cat >>confdefs.h <<_ACEOF
5603#define CXX_INCLUDE_32BIT_DIR "$withval"
5604_ACEOF
5605
5606
5607
5608# Check whether --with-cxx-include-64bit-dir was given.
5609if test "${with_cxx_include_64bit_dir+set}" = set; then
5610  withval=$with_cxx_include_64bit_dir;
5611else
5612  withval=""
5613fi
5614
5615
5616cat >>confdefs.h <<_ACEOF
5617#define CXX_INCLUDE_64BIT_DIR "$withval"
5618_ACEOF
5619
5620
5621
5622# Check whether --with-binutils-include was given.
5623if test "${with_binutils_include+set}" = set; then
5624  withval=$with_binutils_include;
5625else
5626  withval=default
5627fi
5628
5629case "$withval" in
5630  default) WITH_BINUTILS_INCDIR=default ;;
5631  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5632  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5633echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5634   { (exit 1); exit 1; }; } ;;
5635esac
5636if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5637  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5638
5639  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5640     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5641     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5642echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5643   { (exit 1); exit 1; }; };
5644  fi
5645fi
5646
5647
5648# Check whether --with-bug-report-url was given.
5649if test "${with_bug_report_url+set}" = set; then
5650  withval=$with_bug_report_url;
5651else
5652  withval="http://llvm.org/bugs/"
5653fi
5654
5655
5656cat >>confdefs.h <<_ACEOF
5657#define BUG_REPORT_URL "$withval"
5658_ACEOF
5659
5660
5661# Check whether --enable-libffi was given.
5662if test "${enable_libffi+set}" = set; then
5663  enableval=$enable_libffi; case "$enableval" in
5664    yes) llvm_cv_enable_libffi="yes" ;;
5665    no)  llvm_cv_enable_libffi="no"  ;;
5666    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5667echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5668   { (exit 1); exit 1; }; } ;;
5669  esac
5670else
5671  llvm_cv_enable_libffi=no
5672fi
5673
5674
5675
5676# Check whether --with-internal-prefix was given.
5677if test "${with_internal_prefix+set}" = set; then
5678  withval=$with_internal_prefix;
5679else
5680  withval=""
5681fi
5682
5683INTERNAL_PREFIX=$withval
5684
5685
5686
5687{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5688echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5689if test "${lt_cv_path_NM+set}" = set; then
5690  echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692  if test -n "$NM"; then
5693  # Let the user override the test.
5694  lt_cv_path_NM="$NM"
5695else
5696  lt_nm_to_check="${ac_tool_prefix}nm"
5697  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5698    lt_nm_to_check="$lt_nm_to_check nm"
5699  fi
5700  for lt_tmp_nm in $lt_nm_to_check; do
5701    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5702    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5703      IFS="$lt_save_ifs"
5704      test -z "$ac_dir" && ac_dir=.
5705      tmp_nm="$ac_dir/$lt_tmp_nm"
5706      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5707	# Check to see if the nm accepts a BSD-compat flag.
5708	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5709	#   nm: unknown option "B" ignored
5710	# Tru64's nm complains that /dev/null is an invalid object file
5711	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5712	*/dev/null* | *'Invalid file or object type'*)
5713	  lt_cv_path_NM="$tmp_nm -B"
5714	  break
5715	  ;;
5716	*)
5717	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5718	  */dev/null*)
5719	    lt_cv_path_NM="$tmp_nm -p"
5720	    break
5721	    ;;
5722	  *)
5723	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5724	    continue # so that we can try to find one that supports BSD flags
5725	    ;;
5726	  esac
5727	  ;;
5728	esac
5729      fi
5730    done
5731    IFS="$lt_save_ifs"
5732  done
5733  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5734fi
5735fi
5736{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5737echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5738NM="$lt_cv_path_NM"
5739
5740
5741
5742{ echo "$as_me:$LINENO: checking for GNU make" >&5
5743echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744if test "${llvm_cv_gnu_make_command+set}" = set; then
5745  echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747  llvm_cv_gnu_make_command=''
5748 for a in "$MAKE" make gmake gnumake ; do
5749  if test -z "$a" ; then continue ; fi ;
5750  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751  then
5752   llvm_cv_gnu_make_command=$a ;
5753   break;
5754  fi
5755 done
5756fi
5757{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5759 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5760   ifGNUmake='' ;
5761 else
5762   ifGNUmake='#' ;
5763   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764echo "${ECHO_T}\"Not found\"" >&6; };
5765 fi
5766
5767
5768{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5770LN_S=$as_ln_s
5771if test "$LN_S" = "ln -s"; then
5772  { echo "$as_me:$LINENO: result: yes" >&5
5773echo "${ECHO_T}yes" >&6; }
5774else
5775  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776echo "${ECHO_T}no, using $LN_S" >&6; }
5777fi
5778
5779# Extract the first word of "cmp", so it can be a program name with args.
5780set dummy cmp; ac_word=$2
5781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783if test "${ac_cv_path_CMP+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  case $CMP in
5787  [\\/]* | ?:[\\/]*)
5788  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5789  ;;
5790  *)
5791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796  for ac_exec_ext in '' $ac_executable_extensions; do
5797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803done
5804IFS=$as_save_IFS
5805
5806  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5807  ;;
5808esac
5809fi
5810CMP=$ac_cv_path_CMP
5811if test -n "$CMP"; then
5812  { echo "$as_me:$LINENO: result: $CMP" >&5
5813echo "${ECHO_T}$CMP" >&6; }
5814else
5815  { echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6; }
5817fi
5818
5819
5820# Extract the first word of "cp", so it can be a program name with args.
5821set dummy cp; ac_word=$2
5822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_path_CP+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  case $CP in
5828  [\\/]* | ?:[\\/]*)
5829  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5830  ;;
5831  *)
5832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837  for ac_exec_ext in '' $ac_executable_extensions; do
5838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5848  ;;
5849esac
5850fi
5851CP=$ac_cv_path_CP
5852if test -n "$CP"; then
5853  { echo "$as_me:$LINENO: result: $CP" >&5
5854echo "${ECHO_T}$CP" >&6; }
5855else
5856  { echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6; }
5858fi
5859
5860
5861# Extract the first word of "date", so it can be a program name with args.
5862set dummy date; ac_word=$2
5863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_path_DATE+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  case $DATE in
5869  [\\/]* | ?:[\\/]*)
5870  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5871  ;;
5872  *)
5873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878  for ac_exec_ext in '' $ac_executable_extensions; do
5879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885done
5886IFS=$as_save_IFS
5887
5888  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5889  ;;
5890esac
5891fi
5892DATE=$ac_cv_path_DATE
5893if test -n "$DATE"; then
5894  { echo "$as_me:$LINENO: result: $DATE" >&5
5895echo "${ECHO_T}$DATE" >&6; }
5896else
5897  { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899fi
5900
5901
5902# Extract the first word of "find", so it can be a program name with args.
5903set dummy find; ac_word=$2
5904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_path_FIND+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  case $FIND in
5910  [\\/]* | ?:[\\/]*)
5911  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5912  ;;
5913  *)
5914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919  for ac_exec_ext in '' $ac_executable_extensions; do
5920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926done
5927IFS=$as_save_IFS
5928
5929  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5930  ;;
5931esac
5932fi
5933FIND=$ac_cv_path_FIND
5934if test -n "$FIND"; then
5935  { echo "$as_me:$LINENO: result: $FIND" >&5
5936echo "${ECHO_T}$FIND" >&6; }
5937else
5938  { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
5940fi
5941
5942
5943# Extract the first word of "grep", so it can be a program name with args.
5944set dummy grep; ac_word=$2
5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_path_GREP+set}" = set; then
5948  echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950  case $GREP in
5951  [\\/]* | ?:[\\/]*)
5952  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5953  ;;
5954  *)
5955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960  for ac_exec_ext in '' $ac_executable_extensions; do
5961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5971  ;;
5972esac
5973fi
5974GREP=$ac_cv_path_GREP
5975if test -n "$GREP"; then
5976  { echo "$as_me:$LINENO: result: $GREP" >&5
5977echo "${ECHO_T}$GREP" >&6; }
5978else
5979  { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
5981fi
5982
5983
5984# Extract the first word of "mkdir", so it can be a program name with args.
5985set dummy mkdir; ac_word=$2
5986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_path_MKDIR+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  case $MKDIR in
5992  [\\/]* | ?:[\\/]*)
5993  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5994  ;;
5995  *)
5996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999  IFS=$as_save_IFS
6000  test -z "$as_dir" && as_dir=.
6001  for ac_exec_ext in '' $ac_executable_extensions; do
6002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005    break 2
6006  fi
6007done
6008done
6009IFS=$as_save_IFS
6010
6011  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6012  ;;
6013esac
6014fi
6015MKDIR=$ac_cv_path_MKDIR
6016if test -n "$MKDIR"; then
6017  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6018echo "${ECHO_T}$MKDIR" >&6; }
6019else
6020  { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
6022fi
6023
6024
6025# Extract the first word of "mv", so it can be a program name with args.
6026set dummy mv; ac_word=$2
6027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029if test "${ac_cv_path_MV+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  case $MV in
6033  [\\/]* | ?:[\\/]*)
6034  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6035  ;;
6036  *)
6037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040  IFS=$as_save_IFS
6041  test -z "$as_dir" && as_dir=.
6042  for ac_exec_ext in '' $ac_executable_extensions; do
6043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046    break 2
6047  fi
6048done
6049done
6050IFS=$as_save_IFS
6051
6052  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6053  ;;
6054esac
6055fi
6056MV=$ac_cv_path_MV
6057if test -n "$MV"; then
6058  { echo "$as_me:$LINENO: result: $MV" >&5
6059echo "${ECHO_T}$MV" >&6; }
6060else
6061  { echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6; }
6063fi
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6071if test "${ac_cv_prog_RANLIB+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  if test -n "$RANLIB"; then
6075  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082  for ac_exec_ext in '' $ac_executable_extensions; do
6083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6084    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094RANLIB=$ac_cv_prog_RANLIB
6095if test -n "$RANLIB"; then
6096  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6097echo "${ECHO_T}$RANLIB" >&6; }
6098else
6099  { echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_RANLIB"; then
6106  ac_ct_RANLIB=$RANLIB
6107  # Extract the first word of "ranlib", so it can be a program name with args.
6108set dummy ranlib; ac_word=$2
6109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  if test -n "$ac_ct_RANLIB"; then
6115  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122  for ac_exec_ext in '' $ac_executable_extensions; do
6123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124    ac_cv_prog_ac_ct_RANLIB="ranlib"
6125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6135if test -n "$ac_ct_RANLIB"; then
6136  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6137echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6138else
6139  { echo "$as_me:$LINENO: result: no" >&5
6140echo "${ECHO_T}no" >&6; }
6141fi
6142
6143  if test "x$ac_ct_RANLIB" = x; then
6144    RANLIB=":"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149whose name does not start with the host triplet.  If you think this
6150configuration is useful to you, please write to autoconf@gnu.org." >&5
6151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152whose name does not start with the host triplet.  If you think this
6153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154ac_tool_warned=yes ;;
6155esac
6156    RANLIB=$ac_ct_RANLIB
6157  fi
6158else
6159  RANLIB="$ac_cv_prog_RANLIB"
6160fi
6161
6162if test -n "$ac_tool_prefix"; then
6163  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6164set dummy ${ac_tool_prefix}ar; ac_word=$2
6165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6167if test "${ac_cv_prog_AR+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  if test -n "$AR"; then
6171  ac_cv_prog_AR="$AR" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176  IFS=$as_save_IFS
6177  test -z "$as_dir" && as_dir=.
6178  for ac_exec_ext in '' $ac_executable_extensions; do
6179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6180    ac_cv_prog_AR="${ac_tool_prefix}ar"
6181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182    break 2
6183  fi
6184done
6185done
6186IFS=$as_save_IFS
6187
6188fi
6189fi
6190AR=$ac_cv_prog_AR
6191if test -n "$AR"; then
6192  { echo "$as_me:$LINENO: result: $AR" >&5
6193echo "${ECHO_T}$AR" >&6; }
6194else
6195  { echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6; }
6197fi
6198
6199
6200fi
6201if test -z "$ac_cv_prog_AR"; then
6202  ac_ct_AR=$AR
6203  # Extract the first word of "ar", so it can be a program name with args.
6204set dummy ar; ac_word=$2
6205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6208  echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210  if test -n "$ac_ct_AR"; then
6211  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218  for ac_exec_ext in '' $ac_executable_extensions; do
6219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220    ac_cv_prog_ac_ct_AR="ar"
6221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231if test -n "$ac_ct_AR"; then
6232  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6233echo "${ECHO_T}$ac_ct_AR" >&6; }
6234else
6235  { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237fi
6238
6239  if test "x$ac_ct_AR" = x; then
6240    AR="false"
6241  else
6242    case $cross_compiling:$ac_tool_warned in
6243yes:)
6244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6245whose name does not start with the host triplet.  If you think this
6246configuration is useful to you, please write to autoconf@gnu.org." >&5
6247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6248whose name does not start with the host triplet.  If you think this
6249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252    AR=$ac_ct_AR
6253  fi
6254else
6255  AR="$ac_cv_prog_AR"
6256fi
6257
6258# Extract the first word of "rm", so it can be a program name with args.
6259set dummy rm; ac_word=$2
6260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262if test "${ac_cv_path_RM+set}" = set; then
6263  echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265  case $RM in
6266  [\\/]* | ?:[\\/]*)
6267  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6268  ;;
6269  *)
6270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275  for ac_exec_ext in '' $ac_executable_extensions; do
6276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282done
6283IFS=$as_save_IFS
6284
6285  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6286  ;;
6287esac
6288fi
6289RM=$ac_cv_path_RM
6290if test -n "$RM"; then
6291  { echo "$as_me:$LINENO: result: $RM" >&5
6292echo "${ECHO_T}$RM" >&6; }
6293else
6294  { echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6; }
6296fi
6297
6298
6299# Extract the first word of "sed", so it can be a program name with args.
6300set dummy sed; ac_word=$2
6301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303if test "${ac_cv_path_SED+set}" = set; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306  case $SED in
6307  [\\/]* | ?:[\\/]*)
6308  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6309  ;;
6310  *)
6311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  test -z "$as_dir" && as_dir=.
6316  for ac_exec_ext in '' $ac_executable_extensions; do
6317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320    break 2
6321  fi
6322done
6323done
6324IFS=$as_save_IFS
6325
6326  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6327  ;;
6328esac
6329fi
6330SED=$ac_cv_path_SED
6331if test -n "$SED"; then
6332  { echo "$as_me:$LINENO: result: $SED" >&5
6333echo "${ECHO_T}$SED" >&6; }
6334else
6335  { echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6; }
6337fi
6338
6339
6340# Extract the first word of "tar", so it can be a program name with args.
6341set dummy tar; ac_word=$2
6342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344if test "${ac_cv_path_TAR+set}" = set; then
6345  echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347  case $TAR in
6348  [\\/]* | ?:[\\/]*)
6349  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6350  ;;
6351  *)
6352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355  IFS=$as_save_IFS
6356  test -z "$as_dir" && as_dir=.
6357  for ac_exec_ext in '' $ac_executable_extensions; do
6358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361    break 2
6362  fi
6363done
6364done
6365IFS=$as_save_IFS
6366
6367  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6368  ;;
6369esac
6370fi
6371TAR=$ac_cv_path_TAR
6372if test -n "$TAR"; then
6373  { echo "$as_me:$LINENO: result: $TAR" >&5
6374echo "${ECHO_T}$TAR" >&6; }
6375else
6376  { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
6378fi
6379
6380
6381# Extract the first word of "pwd", so it can be a program name with args.
6382set dummy pwd; ac_word=$2
6383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_path_BINPWD+set}" = set; then
6386  echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388  case $BINPWD in
6389  [\\/]* | ?:[\\/]*)
6390  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6391  ;;
6392  *)
6393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398  for ac_exec_ext in '' $ac_executable_extensions; do
6399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405done
6406IFS=$as_save_IFS
6407
6408  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6409  ;;
6410esac
6411fi
6412BINPWD=$ac_cv_path_BINPWD
6413if test -n "$BINPWD"; then
6414  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6415echo "${ECHO_T}$BINPWD" >&6; }
6416else
6417  { echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6; }
6419fi
6420
6421
6422
6423# Extract the first word of "Graphviz", so it can be a program name with args.
6424set dummy Graphviz; ac_word=$2
6425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430  case $GRAPHVIZ in
6431  [\\/]* | ?:[\\/]*)
6432  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6433  ;;
6434  *)
6435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438  IFS=$as_save_IFS
6439  test -z "$as_dir" && as_dir=.
6440  for ac_exec_ext in '' $ac_executable_extensions; do
6441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444    break 2
6445  fi
6446done
6447done
6448IFS=$as_save_IFS
6449
6450  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6451  ;;
6452esac
6453fi
6454GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6455if test -n "$GRAPHVIZ"; then
6456  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6457echo "${ECHO_T}$GRAPHVIZ" >&6; }
6458else
6459  { echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6; }
6461fi
6462
6463
6464if test "$GRAPHVIZ" != "echo Graphviz" ; then
6465
6466cat >>confdefs.h <<\_ACEOF
6467#define HAVE_GRAPHVIZ 1
6468_ACEOF
6469
6470    if test "$llvm_cv_os_type" = "MingW" ; then
6471    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472  fi
6473
6474cat >>confdefs.h <<_ACEOF
6475#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6476_ACEOF
6477
6478fi
6479# Extract the first word of "dot", so it can be a program name with args.
6480set dummy dot; ac_word=$2
6481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483if test "${ac_cv_path_DOT+set}" = set; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  case $DOT in
6487  [\\/]* | ?:[\\/]*)
6488  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6489  ;;
6490  *)
6491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494  IFS=$as_save_IFS
6495  test -z "$as_dir" && as_dir=.
6496  for ac_exec_ext in '' $ac_executable_extensions; do
6497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503done
6504IFS=$as_save_IFS
6505
6506  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6507  ;;
6508esac
6509fi
6510DOT=$ac_cv_path_DOT
6511if test -n "$DOT"; then
6512  { echo "$as_me:$LINENO: result: $DOT" >&5
6513echo "${ECHO_T}$DOT" >&6; }
6514else
6515  { echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6; }
6517fi
6518
6519
6520if test "$DOT" != "echo dot" ; then
6521
6522cat >>confdefs.h <<\_ACEOF
6523#define HAVE_DOT 1
6524_ACEOF
6525
6526    if test "$llvm_cv_os_type" = "MingW" ; then
6527    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528  fi
6529
6530cat >>confdefs.h <<_ACEOF
6531#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6532_ACEOF
6533
6534fi
6535# Extract the first word of "fdp", so it can be a program name with args.
6536set dummy fdp; ac_word=$2
6537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539if test "${ac_cv_path_FDP+set}" = set; then
6540  echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542  case $FDP in
6543  [\\/]* | ?:[\\/]*)
6544  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6545  ;;
6546  *)
6547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552  for ac_exec_ext in '' $ac_executable_extensions; do
6553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559done
6560IFS=$as_save_IFS
6561
6562  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6563  ;;
6564esac
6565fi
6566FDP=$ac_cv_path_FDP
6567if test -n "$FDP"; then
6568  { echo "$as_me:$LINENO: result: $FDP" >&5
6569echo "${ECHO_T}$FDP" >&6; }
6570else
6571  { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
6573fi
6574
6575
6576if test "$FDP" != "echo fdp" ; then
6577
6578cat >>confdefs.h <<\_ACEOF
6579#define HAVE_FDP 1
6580_ACEOF
6581
6582    if test "$llvm_cv_os_type" = "MingW" ; then
6583    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584  fi
6585
6586cat >>confdefs.h <<_ACEOF
6587#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6588_ACEOF
6589
6590fi
6591# Extract the first word of "neato", so it can be a program name with args.
6592set dummy neato; ac_word=$2
6593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595if test "${ac_cv_path_NEATO+set}" = set; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598  case $NEATO in
6599  [\\/]* | ?:[\\/]*)
6600  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6601  ;;
6602  *)
6603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  test -z "$as_dir" && as_dir=.
6608  for ac_exec_ext in '' $ac_executable_extensions; do
6609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615done
6616IFS=$as_save_IFS
6617
6618  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6619  ;;
6620esac
6621fi
6622NEATO=$ac_cv_path_NEATO
6623if test -n "$NEATO"; then
6624  { echo "$as_me:$LINENO: result: $NEATO" >&5
6625echo "${ECHO_T}$NEATO" >&6; }
6626else
6627  { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
6629fi
6630
6631
6632if test "$NEATO" != "echo neato" ; then
6633
6634cat >>confdefs.h <<\_ACEOF
6635#define HAVE_NEATO 1
6636_ACEOF
6637
6638    if test "$llvm_cv_os_type" = "MingW" ; then
6639    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640  fi
6641
6642cat >>confdefs.h <<_ACEOF
6643#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6644_ACEOF
6645
6646fi
6647# Extract the first word of "twopi", so it can be a program name with args.
6648set dummy twopi; ac_word=$2
6649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651if test "${ac_cv_path_TWOPI+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654  case $TWOPI in
6655  [\\/]* | ?:[\\/]*)
6656  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6657  ;;
6658  *)
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664  for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671done
6672IFS=$as_save_IFS
6673
6674  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6675  ;;
6676esac
6677fi
6678TWOPI=$ac_cv_path_TWOPI
6679if test -n "$TWOPI"; then
6680  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6681echo "${ECHO_T}$TWOPI" >&6; }
6682else
6683  { echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6; }
6685fi
6686
6687
6688if test "$TWOPI" != "echo twopi" ; then
6689
6690cat >>confdefs.h <<\_ACEOF
6691#define HAVE_TWOPI 1
6692_ACEOF
6693
6694    if test "$llvm_cv_os_type" = "MingW" ; then
6695    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6696  fi
6697
6698cat >>confdefs.h <<_ACEOF
6699#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6700_ACEOF
6701
6702fi
6703# Extract the first word of "circo", so it can be a program name with args.
6704set dummy circo; ac_word=$2
6705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707if test "${ac_cv_path_CIRCO+set}" = set; then
6708  echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710  case $CIRCO in
6711  [\\/]* | ?:[\\/]*)
6712  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6713  ;;
6714  *)
6715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720  for ac_exec_ext in '' $ac_executable_extensions; do
6721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727done
6728IFS=$as_save_IFS
6729
6730  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6731  ;;
6732esac
6733fi
6734CIRCO=$ac_cv_path_CIRCO
6735if test -n "$CIRCO"; then
6736  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6737echo "${ECHO_T}$CIRCO" >&6; }
6738else
6739  { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
6741fi
6742
6743
6744if test "$CIRCO" != "echo circo" ; then
6745
6746cat >>confdefs.h <<\_ACEOF
6747#define HAVE_CIRCO 1
6748_ACEOF
6749
6750    if test "$llvm_cv_os_type" = "MingW" ; then
6751    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6752  fi
6753
6754cat >>confdefs.h <<_ACEOF
6755#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6756_ACEOF
6757
6758fi
6759for ac_prog in gv gsview32
6760do
6761  # Extract the first word of "$ac_prog", so it can be a program name with args.
6762set dummy $ac_prog; ac_word=$2
6763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765if test "${ac_cv_path_GV+set}" = set; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768  case $GV in
6769  [\\/]* | ?:[\\/]*)
6770  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6771  ;;
6772  *)
6773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776  IFS=$as_save_IFS
6777  test -z "$as_dir" && as_dir=.
6778  for ac_exec_ext in '' $ac_executable_extensions; do
6779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785done
6786IFS=$as_save_IFS
6787
6788  ;;
6789esac
6790fi
6791GV=$ac_cv_path_GV
6792if test -n "$GV"; then
6793  { echo "$as_me:$LINENO: result: $GV" >&5
6794echo "${ECHO_T}$GV" >&6; }
6795else
6796  { echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6; }
6798fi
6799
6800
6801  test -n "$GV" && break
6802done
6803test -n "$GV" || GV="echo gv"
6804
6805if test "$GV" != "echo gv" ; then
6806
6807cat >>confdefs.h <<\_ACEOF
6808#define HAVE_GV 1
6809_ACEOF
6810
6811    if test "$llvm_cv_os_type" = "MingW" ; then
6812    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813  fi
6814
6815cat >>confdefs.h <<_ACEOF
6816#define LLVM_PATH_GV "$GV${EXEEXT}"
6817_ACEOF
6818
6819fi
6820# Extract the first word of "dotty", so it can be a program name with args.
6821set dummy dotty; ac_word=$2
6822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824if test "${ac_cv_path_DOTTY+set}" = set; then
6825  echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827  case $DOTTY in
6828  [\\/]* | ?:[\\/]*)
6829  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6830  ;;
6831  *)
6832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837  for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6848  ;;
6849esac
6850fi
6851DOTTY=$ac_cv_path_DOTTY
6852if test -n "$DOTTY"; then
6853  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6854echo "${ECHO_T}$DOTTY" >&6; }
6855else
6856  { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
6858fi
6859
6860
6861if test "$DOTTY" != "echo dotty" ; then
6862
6863cat >>confdefs.h <<\_ACEOF
6864#define HAVE_DOTTY 1
6865_ACEOF
6866
6867    if test "$llvm_cv_os_type" = "MingW" ; then
6868    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869  fi
6870
6871cat >>confdefs.h <<_ACEOF
6872#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6873_ACEOF
6874
6875fi
6876# Extract the first word of "xdot.py", so it can be a program name with args.
6877set dummy xdot.py; ac_word=$2
6878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880if test "${ac_cv_path_XDOT_PY+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883  case $XDOT_PY in
6884  [\\/]* | ?:[\\/]*)
6885  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6886  ;;
6887  *)
6888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893  for ac_exec_ext in '' $ac_executable_extensions; do
6894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900done
6901IFS=$as_save_IFS
6902
6903  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6904  ;;
6905esac
6906fi
6907XDOT_PY=$ac_cv_path_XDOT_PY
6908if test -n "$XDOT_PY"; then
6909  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6910echo "${ECHO_T}$XDOT_PY" >&6; }
6911else
6912  { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916
6917if test "$XDOT_PY" != "echo xdot.py" ; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define HAVE_XDOT_PY 1
6921_ACEOF
6922
6923    if test "$llvm_cv_os_type" = "MingW" ; then
6924    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925  fi
6926
6927cat >>confdefs.h <<_ACEOF
6928#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6929_ACEOF
6930
6931fi
6932
6933
6934# Extract the first word of "perl", so it can be a program name with args.
6935set dummy perl; ac_word=$2
6936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938if test "${ac_cv_path_PERL+set}" = set; then
6939  echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941  case $PERL in
6942  [\\/]* | ?:[\\/]*)
6943  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6944  ;;
6945  *)
6946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951  for ac_exec_ext in '' $ac_executable_extensions; do
6952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958done
6959IFS=$as_save_IFS
6960
6961  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6962  ;;
6963esac
6964fi
6965PERL=$ac_cv_path_PERL
6966if test -n "$PERL"; then
6967  { echo "$as_me:$LINENO: result: $PERL" >&5
6968echo "${ECHO_T}$PERL" >&6; }
6969else
6970  { echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6; }
6972fi
6973
6974
6975if test "$PERL" != "none"; then
6976  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6977echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6978  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6979    { echo "$as_me:$LINENO: result: yes" >&5
6980echo "${ECHO_T}yes" >&6; }
6981  else
6982    PERL=none
6983    { echo "$as_me:$LINENO: result: not found" >&5
6984echo "${ECHO_T}not found" >&6; }
6985  fi
6986fi
6987
6988
6989if test x"$PERL" = xnone; then
6990   HAVE_PERL=0
6991
6992   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6993echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6994   { (exit 1); exit 1; }; }
6995else
6996   HAVE_PERL=1
6997
6998fi
6999
7000# Find a good install program.  We prefer a C program (faster),
7001# so one script is as good as another.  But avoid the broken or
7002# incompatible versions:
7003# SysV /etc/install, /usr/sbin/install
7004# SunOS /usr/etc/install
7005# IRIX /sbin/install
7006# AIX /bin/install
7007# AmigaOS /C/install, which installs bootblocks on floppy discs
7008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7011# OS/2's system install, which has a completely different semantic
7012# ./install, which can be erroneously created by make from ./install.sh.
7013{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7014echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7015if test -z "$INSTALL"; then
7016if test "${ac_cv_path_install+set}" = set; then
7017  echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022  IFS=$as_save_IFS
7023  test -z "$as_dir" && as_dir=.
7024  # Account for people who put trailing slashes in PATH elements.
7025case $as_dir/ in
7026  ./ | .// | /cC/* | \
7027  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7028  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7029  /usr/ucb/* ) ;;
7030  *)
7031    # OSF1 and SCO ODT 3.0 have their own names for install.
7032    # Don't use installbsd from OSF since it installs stuff as root
7033    # by default.
7034    for ac_prog in ginstall scoinst install; do
7035      for ac_exec_ext in '' $ac_executable_extensions; do
7036	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7037	  if test $ac_prog = install &&
7038	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7039	    # AIX install.  It has an incompatible calling convention.
7040	    :
7041	  elif test $ac_prog = install &&
7042	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7043	    # program-specific install script used by HP pwplus--don't use.
7044	    :
7045	  else
7046	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7047	    break 3
7048	  fi
7049	fi
7050      done
7051    done
7052    ;;
7053esac
7054done
7055IFS=$as_save_IFS
7056
7057
7058fi
7059  if test "${ac_cv_path_install+set}" = set; then
7060    INSTALL=$ac_cv_path_install
7061  else
7062    # As a last resort, use the slow shell script.  Don't cache a
7063    # value for INSTALL within a source directory, because that will
7064    # break other packages using the cache if that directory is
7065    # removed, or if the value is a relative name.
7066    INSTALL=$ac_install_sh
7067  fi
7068fi
7069{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7070echo "${ECHO_T}$INSTALL" >&6; }
7071
7072# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7073# It thinks the first close brace ends the variable substitution.
7074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7075
7076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7077
7078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7079
7080case "$INSTALL" in
7081 [\\/$]* | ?:[\\/]* ) ;;
7082 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7083esac
7084
7085# Extract the first word of "bzip2", so it can be a program name with args.
7086set dummy bzip2; ac_word=$2
7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_BZIP2+set}" = set; then
7090  echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092  case $BZIP2 in
7093  [\\/]* | ?:[\\/]*)
7094  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7095  ;;
7096  *)
7097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102  for ac_exec_ext in '' $ac_executable_extensions; do
7103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112  ;;
7113esac
7114fi
7115BZIP2=$ac_cv_path_BZIP2
7116if test -n "$BZIP2"; then
7117  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7118echo "${ECHO_T}$BZIP2" >&6; }
7119else
7120  { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125# Extract the first word of "cat", so it can be a program name with args.
7126set dummy cat; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_CAT+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  case $CAT in
7133  [\\/]* | ?:[\\/]*)
7134  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7135  ;;
7136  *)
7137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142  for ac_exec_ext in '' $ac_executable_extensions; do
7143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152  ;;
7153esac
7154fi
7155CAT=$ac_cv_path_CAT
7156if test -n "$CAT"; then
7157  { echo "$as_me:$LINENO: result: $CAT" >&5
7158echo "${ECHO_T}$CAT" >&6; }
7159else
7160  { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
7165# Extract the first word of "doxygen", so it can be a program name with args.
7166set dummy doxygen; ac_word=$2
7167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169if test "${ac_cv_path_DOXYGEN+set}" = set; then
7170  echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172  case $DOXYGEN in
7173  [\\/]* | ?:[\\/]*)
7174  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7175  ;;
7176  *)
7177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182  for ac_exec_ext in '' $ac_executable_extensions; do
7183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189done
7190IFS=$as_save_IFS
7191
7192  ;;
7193esac
7194fi
7195DOXYGEN=$ac_cv_path_DOXYGEN
7196if test -n "$DOXYGEN"; then
7197  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7198echo "${ECHO_T}$DOXYGEN" >&6; }
7199else
7200  { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205# Extract the first word of "groff", so it can be a program name with args.
7206set dummy groff; ac_word=$2
7207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209if test "${ac_cv_path_GROFF+set}" = set; then
7210  echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212  case $GROFF in
7213  [\\/]* | ?:[\\/]*)
7214  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7215  ;;
7216  *)
7217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  test -z "$as_dir" && as_dir=.
7222  for ac_exec_ext in '' $ac_executable_extensions; do
7223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226    break 2
7227  fi
7228done
7229done
7230IFS=$as_save_IFS
7231
7232  ;;
7233esac
7234fi
7235GROFF=$ac_cv_path_GROFF
7236if test -n "$GROFF"; then
7237  { echo "$as_me:$LINENO: result: $GROFF" >&5
7238echo "${ECHO_T}$GROFF" >&6; }
7239else
7240  { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
7242fi
7243
7244
7245# Extract the first word of "gzip", so it can be a program name with args.
7246set dummy gzip; ac_word=$2
7247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_path_GZIPBIN+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  case $GZIPBIN in
7253  [\\/]* | ?:[\\/]*)
7254  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7255  ;;
7256  *)
7257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260  IFS=$as_save_IFS
7261  test -z "$as_dir" && as_dir=.
7262  for ac_exec_ext in '' $ac_executable_extensions; do
7263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266    break 2
7267  fi
7268done
7269done
7270IFS=$as_save_IFS
7271
7272  ;;
7273esac
7274fi
7275GZIPBIN=$ac_cv_path_GZIPBIN
7276if test -n "$GZIPBIN"; then
7277  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7278echo "${ECHO_T}$GZIPBIN" >&6; }
7279else
7280  { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
7282fi
7283
7284
7285# Extract the first word of "pod2html", so it can be a program name with args.
7286set dummy pod2html; ac_word=$2
7287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_POD2HTML+set}" = set; then
7290  echo $ECHO_N "(cached) $ECHO_C" >&6
7291else
7292  case $POD2HTML in
7293  [\\/]* | ?:[\\/]*)
7294  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7295  ;;
7296  *)
7297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300  IFS=$as_save_IFS
7301  test -z "$as_dir" && as_dir=.
7302  for ac_exec_ext in '' $ac_executable_extensions; do
7303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306    break 2
7307  fi
7308done
7309done
7310IFS=$as_save_IFS
7311
7312  ;;
7313esac
7314fi
7315POD2HTML=$ac_cv_path_POD2HTML
7316if test -n "$POD2HTML"; then
7317  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7318echo "${ECHO_T}$POD2HTML" >&6; }
7319else
7320  { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325# Extract the first word of "pod2man", so it can be a program name with args.
7326set dummy pod2man; ac_word=$2
7327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_POD2MAN+set}" = set; then
7330  echo $ECHO_N "(cached) $ECHO_C" >&6
7331else
7332  case $POD2MAN in
7333  [\\/]* | ?:[\\/]*)
7334  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7335  ;;
7336  *)
7337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342  for ac_exec_ext in '' $ac_executable_extensions; do
7343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352  ;;
7353esac
7354fi
7355POD2MAN=$ac_cv_path_POD2MAN
7356if test -n "$POD2MAN"; then
7357  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7358echo "${ECHO_T}$POD2MAN" >&6; }
7359else
7360  { echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6; }
7362fi
7363
7364
7365# Extract the first word of "pdfroff", so it can be a program name with args.
7366set dummy pdfroff; ac_word=$2
7367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369if test "${ac_cv_path_PDFROFF+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372  case $PDFROFF in
7373  [\\/]* | ?:[\\/]*)
7374  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7375  ;;
7376  *)
7377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  test -z "$as_dir" && as_dir=.
7382  for ac_exec_ext in '' $ac_executable_extensions; do
7383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386    break 2
7387  fi
7388done
7389done
7390IFS=$as_save_IFS
7391
7392  ;;
7393esac
7394fi
7395PDFROFF=$ac_cv_path_PDFROFF
7396if test -n "$PDFROFF"; then
7397  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7398echo "${ECHO_T}$PDFROFF" >&6; }
7399else
7400  { echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6; }
7402fi
7403
7404
7405# Extract the first word of "runtest", so it can be a program name with args.
7406set dummy runtest; ac_word=$2
7407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409if test "${ac_cv_path_RUNTEST+set}" = set; then
7410  echo $ECHO_N "(cached) $ECHO_C" >&6
7411else
7412  case $RUNTEST in
7413  [\\/]* | ?:[\\/]*)
7414  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7415  ;;
7416  *)
7417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420  IFS=$as_save_IFS
7421  test -z "$as_dir" && as_dir=.
7422  for ac_exec_ext in '' $ac_executable_extensions; do
7423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426    break 2
7427  fi
7428done
7429done
7430IFS=$as_save_IFS
7431
7432  ;;
7433esac
7434fi
7435RUNTEST=$ac_cv_path_RUNTEST
7436if test -n "$RUNTEST"; then
7437  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7438echo "${ECHO_T}$RUNTEST" >&6; }
7439else
7440  { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
7442fi
7443
7444
7445
7446no_itcl=true
7447{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7448echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7449
7450# Check whether --with-tclinclude was given.
7451if test "${with_tclinclude+set}" = set; then
7452  withval=$with_tclinclude; with_tclinclude=${withval}
7453else
7454  with_tclinclude=''
7455fi
7456
7457if test "${ac_cv_path_tclsh+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460
7461if test x"${with_tclinclude}" != x ; then
7462  if test -f ${with_tclinclude}/tclsh ; then
7463    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7464  elif test -f ${with_tclinclude}/src/tclsh ; then
7465    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7466  else
7467    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7468echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7469   { (exit 1); exit 1; }; }
7470  fi
7471fi
7472fi
7473
7474
7475if test x"${ac_cv_path_tclsh}" = x ; then
7476  { echo "$as_me:$LINENO: result: none" >&5
7477echo "${ECHO_T}none" >&6; }
7478  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
7479do
7480  # Extract the first word of "$ac_prog", so it can be a program name with args.
7481set dummy $ac_prog; ac_word=$2
7482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_TCLSH+set}" = set; then
7485  echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487  case $TCLSH in
7488  [\\/]* | ?:[\\/]*)
7489  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7490  ;;
7491  *)
7492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497  for ac_exec_ext in '' $ac_executable_extensions; do
7498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504done
7505IFS=$as_save_IFS
7506
7507  ;;
7508esac
7509fi
7510TCLSH=$ac_cv_path_TCLSH
7511if test -n "$TCLSH"; then
7512  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7513echo "${ECHO_T}$TCLSH" >&6; }
7514else
7515  { echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6; }
7517fi
7518
7519
7520  test -n "$TCLSH" && break
7521done
7522
7523  if test x"${TCLSH}" = x ; then
7524    ac_cv_path_tclsh='';
7525  else
7526    ac_cv_path_tclsh="${TCLSH}";
7527  fi
7528else
7529  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7530echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7531  TCLSH="${ac_cv_path_tclsh}"
7532
7533fi
7534
7535# Extract the first word of "zip", so it can be a program name with args.
7536set dummy zip; ac_word=$2
7537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_ZIP+set}" = set; then
7540  echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542  case $ZIP in
7543  [\\/]* | ?:[\\/]*)
7544  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7545  ;;
7546  *)
7547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552  for ac_exec_ext in '' $ac_executable_extensions; do
7553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559done
7560IFS=$as_save_IFS
7561
7562  ;;
7563esac
7564fi
7565ZIP=$ac_cv_path_ZIP
7566if test -n "$ZIP"; then
7567  { echo "$as_me:$LINENO: result: $ZIP" >&5
7568echo "${ECHO_T}$ZIP" >&6; }
7569else
7570  { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
7572fi
7573
7574
7575for ac_prog in ocamlc
7576do
7577  # Extract the first word of "$ac_prog", so it can be a program name with args.
7578set dummy $ac_prog; ac_word=$2
7579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581if test "${ac_cv_path_OCAMLC+set}" = set; then
7582  echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584  case $OCAMLC in
7585  [\\/]* | ?:[\\/]*)
7586  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7587  ;;
7588  *)
7589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602IFS=$as_save_IFS
7603
7604  ;;
7605esac
7606fi
7607OCAMLC=$ac_cv_path_OCAMLC
7608if test -n "$OCAMLC"; then
7609  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610echo "${ECHO_T}$OCAMLC" >&6; }
7611else
7612  { echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6; }
7614fi
7615
7616
7617  test -n "$OCAMLC" && break
7618done
7619
7620for ac_prog in ocamlopt
7621do
7622  # Extract the first word of "$ac_prog", so it can be a program name with args.
7623set dummy $ac_prog; ac_word=$2
7624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  case $OCAMLOPT in
7630  [\\/]* | ?:[\\/]*)
7631  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7632  ;;
7633  *)
7634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639  for ac_exec_ext in '' $ac_executable_extensions; do
7640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646done
7647IFS=$as_save_IFS
7648
7649  ;;
7650esac
7651fi
7652OCAMLOPT=$ac_cv_path_OCAMLOPT
7653if test -n "$OCAMLOPT"; then
7654  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655echo "${ECHO_T}$OCAMLOPT" >&6; }
7656else
7657  { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662  test -n "$OCAMLOPT" && break
7663done
7664
7665for ac_prog in ocamldep
7666do
7667  # Extract the first word of "$ac_prog", so it can be a program name with args.
7668set dummy $ac_prog; ac_word=$2
7669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672  echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674  case $OCAMLDEP in
7675  [\\/]* | ?:[\\/]*)
7676  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7677  ;;
7678  *)
7679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684  for ac_exec_ext in '' $ac_executable_extensions; do
7685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691done
7692IFS=$as_save_IFS
7693
7694  ;;
7695esac
7696fi
7697OCAMLDEP=$ac_cv_path_OCAMLDEP
7698if test -n "$OCAMLDEP"; then
7699  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700echo "${ECHO_T}$OCAMLDEP" >&6; }
7701else
7702  { echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6; }
7704fi
7705
7706
7707  test -n "$OCAMLDEP" && break
7708done
7709
7710for ac_prog in ocamldoc
7711do
7712  # Extract the first word of "$ac_prog", so it can be a program name with args.
7713set dummy $ac_prog; ac_word=$2
7714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717  echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719  case $OCAMLDOC in
7720  [\\/]* | ?:[\\/]*)
7721  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7722  ;;
7723  *)
7724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737IFS=$as_save_IFS
7738
7739  ;;
7740esac
7741fi
7742OCAMLDOC=$ac_cv_path_OCAMLDOC
7743if test -n "$OCAMLDOC"; then
7744  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745echo "${ECHO_T}$OCAMLDOC" >&6; }
7746else
7747  { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
7749fi
7750
7751
7752  test -n "$OCAMLDOC" && break
7753done
7754
7755for ac_prog in gas as
7756do
7757  # Extract the first word of "$ac_prog", so it can be a program name with args.
7758set dummy $ac_prog; ac_word=$2
7759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761if test "${ac_cv_path_GAS+set}" = set; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764  case $GAS in
7765  [\\/]* | ?:[\\/]*)
7766  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7767  ;;
7768  *)
7769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774  for ac_exec_ext in '' $ac_executable_extensions; do
7775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781done
7782IFS=$as_save_IFS
7783
7784  ;;
7785esac
7786fi
7787GAS=$ac_cv_path_GAS
7788if test -n "$GAS"; then
7789  { echo "$as_me:$LINENO: result: $GAS" >&5
7790echo "${ECHO_T}$GAS" >&6; }
7791else
7792  { echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6; }
7794fi
7795
7796
7797  test -n "$GAS" && break
7798done
7799
7800
7801{ echo "$as_me:$LINENO: checking for linker version" >&5
7802echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803if test "${llvm_cv_link_version+set}" = set; then
7804  echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806
7807   version_string="$(ld -v 2>&1 | head -1)"
7808
7809   # Check for ld64.
7810   if (echo "$version_string" | grep -q "ld64"); then
7811     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7812   else
7813     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7814   fi
7815
7816fi
7817{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7819
7820cat >>confdefs.h <<_ACEOF
7821#define HOST_LINK_VERSION "$llvm_cv_link_version"
7822_ACEOF
7823
7824
7825
7826{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828if test "${llvm_cv_link_use_r+set}" = set; then
7829  echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831   ac_ext=c
7832ac_cpp='$CPP $CPPFLAGS'
7833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837  oldcflags="$CFLAGS"
7838  CFLAGS="$CFLAGS -Wl,-R."
7839  cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h.  */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h.  */
7845
7846int
7847main ()
7848{
7849
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext conftest$ac_exeext
7855if { (ac_try="$ac_link"
7856case "(($ac_try" in
7857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858  *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861  (eval "$ac_link") 2>conftest.er1
7862  ac_status=$?
7863  grep -v '^ *+' conftest.er1 >conftest.err
7864  rm -f conftest.er1
7865  cat conftest.err >&5
7866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); } &&
7868	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869  { (case "(($ac_try" in
7870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871  *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874  (eval "$ac_try") 2>&5
7875  ac_status=$?
7876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877  (exit $ac_status); }; } &&
7878	 { ac_try='test -s conftest$ac_exeext'
7879  { (case "(($ac_try" in
7880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881  *) ac_try_echo=$ac_try;;
7882esac
7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884  (eval "$ac_try") 2>&5
7885  ac_status=$?
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); }; }; then
7888  llvm_cv_link_use_r=yes
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893	llvm_cv_link_use_r=no
7894fi
7895
7896rm -f core conftest.err conftest.$ac_objext \
7897      conftest$ac_exeext conftest.$ac_ext
7898  CFLAGS="$oldcflags"
7899  ac_ext=c
7900ac_cpp='$CPP $CPPFLAGS'
7901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906fi
7907{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7909if test "$llvm_cv_link_use_r" = yes ; then
7910
7911cat >>confdefs.h <<\_ACEOF
7912#define HAVE_LINK_R 1
7913_ACEOF
7914
7915  fi
7916
7917
7918{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923   ac_ext=c
7924ac_cpp='$CPP $CPPFLAGS'
7925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929  oldcflags="$CFLAGS"
7930  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7931  cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h.  */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h.  */
7937
7938int
7939main ()
7940{
7941
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (ac_try="$ac_link"
7948case "(($ac_try" in
7949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950  *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953  (eval "$ac_link") 2>conftest.er1
7954  ac_status=$?
7955  grep -v '^ *+' conftest.er1 >conftest.err
7956  rm -f conftest.er1
7957  cat conftest.err >&5
7958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959  (exit $ac_status); } &&
7960	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961  { (case "(($ac_try" in
7962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963  *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966  (eval "$ac_try") 2>&5
7967  ac_status=$?
7968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969  (exit $ac_status); }; } &&
7970	 { ac_try='test -s conftest$ac_exeext'
7971  { (case "(($ac_try" in
7972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973  *) ac_try_echo=$ac_try;;
7974esac
7975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976  (eval "$ac_try") 2>&5
7977  ac_status=$?
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); }; }; then
7980  llvm_cv_link_use_export_dynamic=yes
7981else
7982  echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985	llvm_cv_link_use_export_dynamic=no
7986fi
7987
7988rm -f core conftest.err conftest.$ac_objext \
7989      conftest$ac_exeext conftest.$ac_ext
7990  CFLAGS="$oldcflags"
7991  ac_ext=c
7992ac_cpp='$CPP $CPPFLAGS'
7993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998fi
7999{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8001if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8002
8003cat >>confdefs.h <<\_ACEOF
8004#define HAVE_LINK_EXPORT_DYNAMIC 1
8005_ACEOF
8006
8007  fi
8008
8009
8010{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012if test "${llvm_cv_link_use_version_script+set}" = set; then
8013  echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015   ac_ext=c
8016ac_cpp='$CPP $CPPFLAGS'
8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021  oldcflags="$CFLAGS"
8022
8023  # The following code is from the autoconf manual,
8024  # "11.13: Limitations of Usual Tools".
8025  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026  # Use mktemp if possible; otherwise fall back on mkdir,
8027  # with $RANDOM to make collisions less likely.
8028  : ${TMPDIR=/tmp}
8029  {
8030    tmp=`
8031      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8032    ` &&
8033    test -n "$tmp" && test -d "$tmp"
8034  } || {
8035    tmp=$TMPDIR/foo$$-$RANDOM
8036    (umask 077 && mkdir "$tmp")
8037  } || exit $?
8038
8039  echo "{" > "$tmp/export.map"
8040  echo "  global: main;" >> "$tmp/export.map"
8041  echo "  local: *;" >> "$tmp/export.map"
8042  echo "};" >> "$tmp/export.map"
8043
8044  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8045  cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h.  */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h.  */
8051
8052int
8053main ()
8054{
8055
8056  ;
8057  return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext conftest$ac_exeext
8061if { (ac_try="$ac_link"
8062case "(($ac_try" in
8063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064  *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067  (eval "$ac_link") 2>conftest.er1
8068  ac_status=$?
8069  grep -v '^ *+' conftest.er1 >conftest.err
8070  rm -f conftest.er1
8071  cat conftest.err >&5
8072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); } &&
8074	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075  { (case "(($ac_try" in
8076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077  *) ac_try_echo=$ac_try;;
8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080  (eval "$ac_try") 2>&5
8081  ac_status=$?
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); }; } &&
8084	 { ac_try='test -s conftest$ac_exeext'
8085  { (case "(($ac_try" in
8086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087  *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090  (eval "$ac_try") 2>&5
8091  ac_status=$?
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); }; }; then
8094  llvm_cv_link_use_version_script=yes
8095else
8096  echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
8099	llvm_cv_link_use_version_script=no
8100fi
8101
8102rm -f core conftest.err conftest.$ac_objext \
8103      conftest$ac_exeext conftest.$ac_ext
8104  rm "$tmp/export.map"
8105  rmdir "$tmp"
8106  CFLAGS="$oldcflags"
8107  ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114fi
8115{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117if test "$llvm_cv_link_use_version_script" = yes ; then
8118  HAVE_LINK_VERSION_SCRIPT=1
8119
8120  fi
8121
8122
8123
8124
8125{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127if test "${ac_cv_c_const+set}" = set; then
8128  echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130  cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h.  */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h.  */
8136
8137int
8138main ()
8139{
8140/* FIXME: Include the comments suggested by Paul. */
8141#ifndef __cplusplus
8142  /* Ultrix mips cc rejects this.  */
8143  typedef int charset[2];
8144  const charset x;
8145  /* SunOS 4.1.1 cc rejects this.  */
8146  char const *const *ccp;
8147  char **p;
8148  /* NEC SVR4.0.2 mips cc rejects this.  */
8149  struct point {int x, y;};
8150  static struct point const zero = {0,0};
8151  /* AIX XL C 1.02.0.0 rejects this.
8152     It does not let you subtract one const X* pointer from another in
8153     an arm of an if-expression whose if-part is not a constant
8154     expression */
8155  const char *g = "string";
8156  ccp = &g + (g ? g-g : 0);
8157  /* HPUX 7.0 cc rejects these. */
8158  ++ccp;
8159  p = (char**) ccp;
8160  ccp = (char const *const *) p;
8161  { /* SCO 3.2v4 cc rejects this.  */
8162    char *t;
8163    char const *s = 0 ? (char *) 0 : (char const *) 0;
8164
8165    *t++ = 0;
8166    if (s) return 0;
8167  }
8168  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8169    int x[] = {25, 17};
8170    const int *foo = &x[0];
8171    ++foo;
8172  }
8173  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174    typedef const int *iptr;
8175    iptr p = 0;
8176    ++p;
8177  }
8178  { /* AIX XL C 1.02.0.0 rejects this saying
8179       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180    struct s { int j; const int *ap[3]; };
8181    struct s *b; b->j = 5;
8182  }
8183  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8184    const int foo = 10;
8185    if (!foo) return 0;
8186  }
8187  return !x[0] && !zero.x;
8188#endif
8189
8190  ;
8191  return 0;
8192}
8193_ACEOF
8194rm -f conftest.$ac_objext
8195if { (ac_try="$ac_compile"
8196case "(($ac_try" in
8197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198  *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201  (eval "$ac_compile") 2>conftest.er1
8202  ac_status=$?
8203  grep -v '^ *+' conftest.er1 >conftest.err
8204  rm -f conftest.er1
8205  cat conftest.err >&5
8206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207  (exit $ac_status); } &&
8208	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209  { (case "(($ac_try" in
8210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211  *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214  (eval "$ac_try") 2>&5
8215  ac_status=$?
8216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217  (exit $ac_status); }; } &&
8218	 { ac_try='test -s conftest.$ac_objext'
8219  { (case "(($ac_try" in
8220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221  *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224  (eval "$ac_try") 2>&5
8225  ac_status=$?
8226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227  (exit $ac_status); }; }; then
8228  ac_cv_c_const=yes
8229else
8230  echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
8232
8233	ac_cv_c_const=no
8234fi
8235
8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239echo "${ECHO_T}$ac_cv_c_const" >&6; }
8240if test $ac_cv_c_const = no; then
8241
8242cat >>confdefs.h <<\_ACEOF
8243#define const
8244_ACEOF
8245
8246fi
8247
8248
8249
8250
8251
8252
8253ac_header_dirent=no
8254for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8255  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259  echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261  cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h.  */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h.  */
8267#include <sys/types.h>
8268#include <$ac_hdr>
8269
8270int
8271main ()
8272{
8273if ((DIR *) 0)
8274return 0;
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext
8280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283  *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286  (eval "$ac_compile") 2>conftest.er1
8287  ac_status=$?
8288  grep -v '^ *+' conftest.er1 >conftest.err
8289  rm -f conftest.er1
8290  cat conftest.err >&5
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); } &&
8293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294  { (case "(($ac_try" in
8295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296  *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299  (eval "$ac_try") 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; } &&
8303	 { ac_try='test -s conftest.$ac_objext'
8304  { (case "(($ac_try" in
8305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306  *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309  (eval "$ac_try") 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; }; then
8313  eval "$as_ac_Header=yes"
8314else
8315  echo "$as_me: failed program was:" >&5
8316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318	eval "$as_ac_Header=no"
8319fi
8320
8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322fi
8323ac_res=`eval echo '${'$as_ac_Header'}'`
8324	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8325echo "${ECHO_T}$ac_res" >&6; }
8326if test `eval echo '${'$as_ac_Header'}'` = yes; then
8327  cat >>confdefs.h <<_ACEOF
8328#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8329_ACEOF
8330
8331ac_header_dirent=$ac_hdr; break
8332fi
8333
8334done
8335# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336if test $ac_header_dirent = dirent.h; then
8337  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339if test "${ac_cv_search_opendir+set}" = set; then
8340  echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342  ac_func_search_save_LIBS=$LIBS
8343cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h.  */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h.  */
8349
8350/* Override any GCC internal prototype to avoid an error.
8351   Use char because int might match the return type of a GCC
8352   builtin and then its argument prototype would still apply.  */
8353#ifdef __cplusplus
8354extern "C"
8355#endif
8356char opendir ();
8357int
8358main ()
8359{
8360return opendir ();
8361  ;
8362  return 0;
8363}
8364_ACEOF
8365for ac_lib in '' dir; do
8366  if test -z "$ac_lib"; then
8367    ac_res="none required"
8368  else
8369    ac_res=-l$ac_lib
8370    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8371  fi
8372  rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (ac_try="$ac_link"
8374case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_link") 2>conftest.er1
8380  ac_status=$?
8381  grep -v '^ *+' conftest.er1 >conftest.err
8382  rm -f conftest.er1
8383  cat conftest.err >&5
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); } &&
8386	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387  { (case "(($ac_try" in
8388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389  *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392  (eval "$ac_try") 2>&5
8393  ac_status=$?
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); }; } &&
8396	 { ac_try='test -s conftest$ac_exeext'
8397  { (case "(($ac_try" in
8398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399  *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402  (eval "$ac_try") 2>&5
8403  ac_status=$?
8404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405  (exit $ac_status); }; }; then
8406  ac_cv_search_opendir=$ac_res
8407else
8408  echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
8412fi
8413
8414rm -f core conftest.err conftest.$ac_objext \
8415      conftest$ac_exeext
8416  if test "${ac_cv_search_opendir+set}" = set; then
8417  break
8418fi
8419done
8420if test "${ac_cv_search_opendir+set}" = set; then
8421  :
8422else
8423  ac_cv_search_opendir=no
8424fi
8425rm conftest.$ac_ext
8426LIBS=$ac_func_search_save_LIBS
8427fi
8428{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8430ac_res=$ac_cv_search_opendir
8431if test "$ac_res" != no; then
8432  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8433
8434fi
8435
8436else
8437  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439if test "${ac_cv_search_opendir+set}" = set; then
8440  echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442  ac_func_search_save_LIBS=$LIBS
8443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h.  */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h.  */
8449
8450/* Override any GCC internal prototype to avoid an error.
8451   Use char because int might match the return type of a GCC
8452   builtin and then its argument prototype would still apply.  */
8453#ifdef __cplusplus
8454extern "C"
8455#endif
8456char opendir ();
8457int
8458main ()
8459{
8460return opendir ();
8461  ;
8462  return 0;
8463}
8464_ACEOF
8465for ac_lib in '' x; do
8466  if test -z "$ac_lib"; then
8467    ac_res="none required"
8468  else
8469    ac_res=-l$ac_lib
8470    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8471  fi
8472  rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476  *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479  (eval "$ac_link") 2>conftest.er1
8480  ac_status=$?
8481  grep -v '^ *+' conftest.er1 >conftest.err
8482  rm -f conftest.er1
8483  cat conftest.err >&5
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); } &&
8486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487  { (case "(($ac_try" in
8488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489  *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492  (eval "$ac_try") 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; } &&
8496	 { ac_try='test -s conftest$ac_exeext'
8497  { (case "(($ac_try" in
8498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499  *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502  (eval "$ac_try") 2>&5
8503  ac_status=$?
8504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505  (exit $ac_status); }; }; then
8506  ac_cv_search_opendir=$ac_res
8507else
8508  echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511
8512fi
8513
8514rm -f core conftest.err conftest.$ac_objext \
8515      conftest$ac_exeext
8516  if test "${ac_cv_search_opendir+set}" = set; then
8517  break
8518fi
8519done
8520if test "${ac_cv_search_opendir+set}" = set; then
8521  :
8522else
8523  ac_cv_search_opendir=no
8524fi
8525rm conftest.$ac_ext
8526LIBS=$ac_func_search_save_LIBS
8527fi
8528{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8530ac_res=$ac_cv_search_opendir
8531if test "$ac_res" != no; then
8532  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533
8534fi
8535
8536fi
8537
8538
8539for ac_header in dlfcn.h
8540do
8541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546  echo $ECHO_N "(cached) $ECHO_C" >&6
8547fi
8548ac_res=`eval echo '${'$as_ac_Header'}'`
8549	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8550echo "${ECHO_T}$ac_res" >&6; }
8551else
8552  # Is the header compilable?
8553{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561$ac_includes_default
8562#include <$ac_header>
8563_ACEOF
8564rm -f conftest.$ac_objext
8565if { (ac_try="$ac_compile"
8566case "(($ac_try" in
8567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568  *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571  (eval "$ac_compile") 2>conftest.er1
8572  ac_status=$?
8573  grep -v '^ *+' conftest.er1 >conftest.err
8574  rm -f conftest.er1
8575  cat conftest.err >&5
8576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577  (exit $ac_status); } &&
8578	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579  { (case "(($ac_try" in
8580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581  *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584  (eval "$ac_try") 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; } &&
8588	 { ac_try='test -s conftest.$ac_objext'
8589  { (case "(($ac_try" in
8590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591  *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594  (eval "$ac_try") 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; }; then
8598  ac_header_compiler=yes
8599else
8600  echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603	ac_header_compiler=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608echo "${ECHO_T}$ac_header_compiler" >&6; }
8609
8610# Is the header present?
8611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h.  */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h.  */
8619#include <$ac_header>
8620_ACEOF
8621if { (ac_try="$ac_cpp conftest.$ac_ext"
8622case "(($ac_try" in
8623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624  *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8628  ac_status=$?
8629  grep -v '^ *+' conftest.er1 >conftest.err
8630  rm -f conftest.er1
8631  cat conftest.err >&5
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); } >/dev/null; then
8634  if test -s conftest.err; then
8635    ac_cpp_err=$ac_c_preproc_warn_flag
8636    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637  else
8638    ac_cpp_err=
8639  fi
8640else
8641  ac_cpp_err=yes
8642fi
8643if test -z "$ac_cpp_err"; then
8644  ac_header_preproc=yes
8645else
8646  echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649  ac_header_preproc=no
8650fi
8651
8652rm -f conftest.err conftest.$ac_ext
8653{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654echo "${ECHO_T}$ac_header_preproc" >&6; }
8655
8656# So?  What about this header?
8657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8658  yes:no: )
8659    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663    ac_header_preproc=yes
8664    ;;
8665  no:yes:* )
8666    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8669echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8670    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8673echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8674    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8678    ( cat <<\_ASBOX
8679## ----------------------------------- ##
8680## Report this to llvmbugs@cs.uiuc.edu ##
8681## ----------------------------------- ##
8682_ASBOX
8683     ) | sed "s/^/$as_me: WARNING:     /" >&2
8684    ;;
8685esac
8686{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689  echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691  eval "$as_ac_Header=\$ac_header_preproc"
8692fi
8693ac_res=`eval echo '${'$as_ac_Header'}'`
8694	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8695echo "${ECHO_T}$ac_res" >&6; }
8696
8697fi
8698if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699  cat >>confdefs.h <<_ACEOF
8700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701_ACEOF
8702
8703fi
8704
8705done
8706
8707# Check whether --enable-ltdl-install was given.
8708if test "${enable_ltdl_install+set}" = set; then
8709  enableval=$enable_ltdl_install;
8710fi
8711
8712
8713
8714
8715if test x"${enable_ltdl_install-no}" != xno; then
8716  INSTALL_LTDL_TRUE=
8717  INSTALL_LTDL_FALSE='#'
8718else
8719  INSTALL_LTDL_TRUE='#'
8720  INSTALL_LTDL_FALSE=
8721fi
8722
8723
8724
8725if test x"${enable_ltdl_convenience-no}" != xno; then
8726  CONVENIENCE_LTDL_TRUE=
8727  CONVENIENCE_LTDL_FALSE='#'
8728else
8729  CONVENIENCE_LTDL_TRUE='#'
8730  CONVENIENCE_LTDL_FALSE=
8731fi
8732
8733
8734{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8736library_names_spec=
8737libname_spec='lib$name'
8738soname_spec=
8739shrext_cmds=".so"
8740postinstall_cmds=
8741postuninstall_cmds=
8742finish_cmds=
8743finish_eval=
8744shlibpath_var=
8745shlibpath_overrides_runpath=unknown
8746version_type=none
8747dynamic_linker="$host_os ld.so"
8748sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749if test "$GCC" = yes; then
8750  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752    # if the path contains ";" then we assume it to be the separator
8753    # otherwise default to the standard path separator (i.e. ":") - it is
8754    # assumed that no part of a normal pathname contains ";" but that should
8755    # okay in the real world where ";" in dirpaths is itself problematic.
8756    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8757  else
8758    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8759  fi
8760else
8761  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762fi
8763need_lib_prefix=unknown
8764hardcode_into_libs=no
8765
8766# when you set need_version to no, make sure it does not cause -set_version
8767# flags to be left without arguments
8768need_version=unknown
8769
8770case $host_os in
8771aix3*)
8772  version_type=linux
8773  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774  shlibpath_var=LIBPATH
8775
8776  # AIX 3 has no versioning support, so we append a major version to the name.
8777  soname_spec='${libname}${release}${shared_ext}$major'
8778  ;;
8779
8780aix4* | aix5*)
8781  version_type=linux
8782  need_lib_prefix=no
8783  need_version=no
8784  hardcode_into_libs=yes
8785  if test "$host_cpu" = ia64; then
8786    # AIX 5 supports IA64
8787    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788    shlibpath_var=LD_LIBRARY_PATH
8789  else
8790    # With GCC up to 2.95.x, collect2 would create an import file
8791    # for dependence libraries.  The import file would start with
8792    # the line `#! .'.  This would cause the generated library to
8793    # depend on `.', always an invalid library.  This was fixed in
8794    # development snapshots of GCC prior to 3.0.
8795    case $host_os in
8796      aix4 | aix4.[01] | aix4.[01].*)
8797      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798	   echo ' yes '
8799	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8800	:
8801      else
8802	can_build_shared=no
8803      fi
8804      ;;
8805    esac
8806    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807    # soname into executable. Probably we can add versioning support to
8808    # collect2, so additional links can be useful in future.
8809    if test "$aix_use_runtimelinking" = yes; then
8810      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811      # instead of lib<name>.a to let people know that these are not
8812      # typical AIX shared libraries.
8813      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814    else
8815      # We preserve .a as extension for shared libraries through AIX4.2
8816      # and later when we are not doing run time linking.
8817      library_names_spec='${libname}${release}.a $libname.a'
8818      soname_spec='${libname}${release}${shared_ext}$major'
8819    fi
8820    shlibpath_var=LIBPATH
8821  fi
8822  ;;
8823
8824amigaos*)
8825  library_names_spec='$libname.ixlibrary $libname.a'
8826  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827  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'
8828  ;;
8829
8830beos*)
8831  library_names_spec='${libname}${shared_ext}'
8832  dynamic_linker="$host_os ld.so"
8833  shlibpath_var=LIBRARY_PATH
8834  ;;
8835
8836bsdi[45]*)
8837  version_type=linux
8838  need_version=no
8839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840  soname_spec='${libname}${release}${shared_ext}$major'
8841  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842  shlibpath_var=LD_LIBRARY_PATH
8843  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845  # the default ld.so.conf also contains /usr/contrib/lib and
8846  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847  # libtool to hard-code these into programs
8848  ;;
8849
8850cygwin* | mingw* | pw32*)
8851  version_type=windows
8852  shrext_cmds=".dll"
8853  need_version=no
8854  need_lib_prefix=no
8855
8856  case $GCC,$host_os in
8857  yes,cygwin* | yes,mingw* | yes,pw32*)
8858    library_names_spec='$libname.dll.a'
8859    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860    postinstall_cmds='base_file=`basename \${file}`~
8861      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862      dldir=$destdir/`dirname \$dlpath`~
8863      test -d \$dldir || mkdir -p \$dldir~
8864      $install_prog $dir/$dlname \$dldir/$dlname~
8865      chmod a+x \$dldir/$dlname'
8866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867      dlpath=$dir/\$dldll~
8868       $rm \$dlpath'
8869    shlibpath_overrides_runpath=yes
8870
8871    case $host_os in
8872    cygwin*)
8873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876      ;;
8877    mingw*)
8878      # MinGW DLLs use traditional 'lib' prefix
8879      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882        # It is most probably a Windows format PATH printed by
8883        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884        # path with ; separators, and with drive letters. We can handle the
8885        # drive letters (cygwin fileutils understands them), so leave them,
8886        # especially as we might pass files found there to a mingw objdump,
8887        # which wouldn't understand a cygwinified path. Ahh.
8888        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889      else
8890        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8891      fi
8892      ;;
8893    pw32*)
8894      # pw32 DLLs use 'pw' prefix rather than 'lib'
8895      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896      ;;
8897    esac
8898    ;;
8899
8900  *)
8901    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902    ;;
8903  esac
8904  dynamic_linker='Win32 ld.exe'
8905  # FIXME: first we should search . and the directory the executable is in
8906  shlibpath_var=PATH
8907  ;;
8908
8909darwin* | rhapsody*)
8910  dynamic_linker="$host_os dyld"
8911  version_type=darwin
8912  need_lib_prefix=no
8913  need_version=no
8914  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915  soname_spec='${libname}${release}${major}$shared_ext'
8916  shlibpath_overrides_runpath=yes
8917  shlibpath_var=DYLD_LIBRARY_PATH
8918  shrext_cmds='.dylib'
8919  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920  if test "$GCC" = yes; then
8921    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"`
8922  else
8923    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8924  fi
8925  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8926  ;;
8927
8928dgux*)
8929  version_type=linux
8930  need_lib_prefix=no
8931  need_version=no
8932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933  soname_spec='${libname}${release}${shared_ext}$major'
8934  shlibpath_var=LD_LIBRARY_PATH
8935  ;;
8936
8937freebsd1.*)
8938  dynamic_linker=no
8939  ;;
8940
8941kfreebsd*-gnu)
8942  version_type=linux
8943  need_lib_prefix=no
8944  need_version=no
8945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946  soname_spec='${libname}${release}${shared_ext}$major'
8947  shlibpath_var=LD_LIBRARY_PATH
8948  shlibpath_overrides_runpath=no
8949  hardcode_into_libs=yes
8950  dynamic_linker='GNU ld.so'
8951  ;;
8952
8953freebsd* | dragonfly*)
8954  # DragonFly does not have aout.  When/if they implement a new
8955  # versioning mechanism, adjust this.
8956  if test -x /usr/bin/objformat; then
8957    objformat=`/usr/bin/objformat`
8958  else
8959    case $host_os in
8960    freebsd[123].*) objformat=aout ;;
8961    *) objformat=elf ;;
8962    esac
8963  fi
8964  version_type=freebsd-$objformat
8965  case $version_type in
8966    freebsd-elf*)
8967      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968      need_version=no
8969      need_lib_prefix=no
8970      ;;
8971    freebsd-*)
8972      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8973      need_version=yes
8974      ;;
8975  esac
8976  shlibpath_var=LD_LIBRARY_PATH
8977  case $host_os in
8978  freebsd2.*)
8979    shlibpath_overrides_runpath=yes
8980    ;;
8981  freebsd3.[01]* | freebsdelf3.[01]*)
8982    shlibpath_overrides_runpath=yes
8983    hardcode_into_libs=yes
8984    ;;
8985  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987    shlibpath_overrides_runpath=no
8988    hardcode_into_libs=yes
8989    ;;
8990  freebsd*) # from 4.6 on
8991    shlibpath_overrides_runpath=yes
8992    hardcode_into_libs=yes
8993    ;;
8994  esac
8995  ;;
8996
8997gnu*)
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  hardcode_into_libs=yes
9005  ;;
9006
9007hpux9* | hpux10* | hpux11*)
9008  # Give a soname corresponding to the major version so that dld.sl refuses to
9009  # link against other versions.
9010  version_type=sunos
9011  need_lib_prefix=no
9012  need_version=no
9013  case $host_cpu in
9014  ia64*)
9015    shrext_cmds='.so'
9016    hardcode_into_libs=yes
9017    dynamic_linker="$host_os dld.so"
9018    shlibpath_var=LD_LIBRARY_PATH
9019    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021    soname_spec='${libname}${release}${shared_ext}$major'
9022    if test "X$HPUX_IA64_MODE" = X32; then
9023      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9024    else
9025      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9026    fi
9027    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9028    ;;
9029   hppa*64*)
9030     shrext_cmds='.sl'
9031     hardcode_into_libs=yes
9032     dynamic_linker="$host_os dld.sl"
9033     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036     soname_spec='${libname}${release}${shared_ext}$major'
9037     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039     ;;
9040   *)
9041    shrext_cmds='.sl'
9042    dynamic_linker="$host_os dld.sl"
9043    shlibpath_var=SHLIB_PATH
9044    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046    soname_spec='${libname}${release}${shared_ext}$major'
9047    ;;
9048  esac
9049  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050  postinstall_cmds='chmod 555 $lib'
9051  ;;
9052
9053interix3*)
9054  version_type=linux
9055  need_lib_prefix=no
9056  need_version=no
9057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058  soname_spec='${libname}${release}${shared_ext}$major'
9059  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060  shlibpath_var=LD_LIBRARY_PATH
9061  shlibpath_overrides_runpath=no
9062  hardcode_into_libs=yes
9063  ;;
9064
9065irix5* | irix6* | nonstopux*)
9066  case $host_os in
9067    nonstopux*) version_type=nonstopux ;;
9068    *)
9069	if test "$lt_cv_prog_gnu_ld" = yes; then
9070		version_type=linux
9071	else
9072		version_type=irix
9073	fi ;;
9074  esac
9075  need_lib_prefix=no
9076  need_version=no
9077  soname_spec='${libname}${release}${shared_ext}$major'
9078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9079  case $host_os in
9080  irix5* | nonstopux*)
9081    libsuff= shlibsuff=
9082    ;;
9083  *)
9084    case $LD in # libtool.m4 will add one of these switches to LD
9085    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086      libsuff= shlibsuff= libmagic=32-bit;;
9087    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088      libsuff=32 shlibsuff=N32 libmagic=N32;;
9089    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091    *) libsuff= shlibsuff= libmagic=never-match;;
9092    esac
9093    ;;
9094  esac
9095  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096  shlibpath_overrides_runpath=no
9097  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099  hardcode_into_libs=yes
9100  ;;
9101
9102# No shared lib support for Linux oldld, aout, or coff.
9103linux*oldld* | linux*aout* | linux*coff*)
9104  dynamic_linker=no
9105  ;;
9106
9107# This must be Linux ELF.
9108linux*)
9109  version_type=linux
9110  need_lib_prefix=no
9111  need_version=no
9112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113  soname_spec='${libname}${release}${shared_ext}$major'
9114  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115  shlibpath_var=LD_LIBRARY_PATH
9116  shlibpath_overrides_runpath=no
9117  # This implies no fast_install, which is unacceptable.
9118  # Some rework will be needed to allow for fast_install
9119  # before this can be enabled.
9120  hardcode_into_libs=yes
9121
9122  # Append ld.so.conf contents to the search path
9123  if test -f /etc/ld.so.conf; then
9124    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' ' '`
9125    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126  fi
9127
9128  # We used to test for /lib/ld.so.1 and disable shared libraries on
9129  # powerpc, because MkLinux only supported shared libraries with the
9130  # GNU dynamic linker.  Since this was broken with cross compilers,
9131  # most powerpc-linux boxes support dynamic linking these days and
9132  # people can always --disable-shared, the test was removed, and we
9133  # assume the GNU/Linux dynamic linker is in use.
9134  dynamic_linker='GNU/Linux ld.so'
9135  ;;
9136
9137knetbsd*-gnu)
9138  version_type=linux
9139  need_lib_prefix=no
9140  need_version=no
9141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142  soname_spec='${libname}${release}${shared_ext}$major'
9143  shlibpath_var=LD_LIBRARY_PATH
9144  shlibpath_overrides_runpath=no
9145  hardcode_into_libs=yes
9146  dynamic_linker='GNU ld.so'
9147  ;;
9148
9149netbsd*)
9150  version_type=sunos
9151  need_lib_prefix=no
9152  need_version=no
9153  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156    dynamic_linker='NetBSD (a.out) ld.so'
9157  else
9158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159    soname_spec='${libname}${release}${shared_ext}$major'
9160    dynamic_linker='NetBSD ld.elf_so'
9161  fi
9162  shlibpath_var=LD_LIBRARY_PATH
9163  shlibpath_overrides_runpath=yes
9164  hardcode_into_libs=yes
9165  ;;
9166
9167newsos6)
9168  version_type=linux
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170  shlibpath_var=LD_LIBRARY_PATH
9171  shlibpath_overrides_runpath=yes
9172  ;;
9173
9174nto-qnx*)
9175  version_type=linux
9176  need_lib_prefix=no
9177  need_version=no
9178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179  soname_spec='${libname}${release}${shared_ext}$major'
9180  shlibpath_var=LD_LIBRARY_PATH
9181  shlibpath_overrides_runpath=yes
9182  ;;
9183
9184openbsd*)
9185  version_type=sunos
9186  sys_lib_dlsearch_path_spec="/usr/lib"
9187  need_lib_prefix=no
9188  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9189  case $host_os in
9190    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191    *)                         need_version=no  ;;
9192  esac
9193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195  shlibpath_var=LD_LIBRARY_PATH
9196  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197    case $host_os in
9198      openbsd2.[89] | openbsd2.[89].*)
9199	shlibpath_overrides_runpath=no
9200	;;
9201      *)
9202	shlibpath_overrides_runpath=yes
9203	;;
9204      esac
9205  else
9206    shlibpath_overrides_runpath=yes
9207  fi
9208  ;;
9209
9210os2*)
9211  libname_spec='$name'
9212  shrext_cmds=".dll"
9213  need_lib_prefix=no
9214  library_names_spec='$libname${shared_ext} $libname.a'
9215  dynamic_linker='OS/2 ld.exe'
9216  shlibpath_var=LIBPATH
9217  ;;
9218
9219osf3* | osf4* | osf5*)
9220  version_type=osf
9221  need_lib_prefix=no
9222  need_version=no
9223  soname_spec='${libname}${release}${shared_ext}$major'
9224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225  shlibpath_var=LD_LIBRARY_PATH
9226  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9228  ;;
9229
9230solaris*)
9231  version_type=linux
9232  need_lib_prefix=no
9233  need_version=no
9234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235  soname_spec='${libname}${release}${shared_ext}$major'
9236  shlibpath_var=LD_LIBRARY_PATH
9237  shlibpath_overrides_runpath=yes
9238  hardcode_into_libs=yes
9239  # ldd complains unless libraries are executable
9240  postinstall_cmds='chmod +x $lib'
9241  ;;
9242
9243sunos4*)
9244  version_type=sunos
9245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247  shlibpath_var=LD_LIBRARY_PATH
9248  shlibpath_overrides_runpath=yes
9249  if test "$with_gnu_ld" = yes; then
9250    need_lib_prefix=no
9251  fi
9252  need_version=yes
9253  ;;
9254
9255sysv4 | sysv4.3*)
9256  version_type=linux
9257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258  soname_spec='${libname}${release}${shared_ext}$major'
9259  shlibpath_var=LD_LIBRARY_PATH
9260  case $host_vendor in
9261    sni)
9262      shlibpath_overrides_runpath=no
9263      need_lib_prefix=no
9264      export_dynamic_flag_spec='${wl}-Blargedynsym'
9265      runpath_var=LD_RUN_PATH
9266      ;;
9267    siemens)
9268      need_lib_prefix=no
9269      ;;
9270    motorola)
9271      need_lib_prefix=no
9272      need_version=no
9273      shlibpath_overrides_runpath=no
9274      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275      ;;
9276  esac
9277  ;;
9278
9279sysv4*MP*)
9280  if test -d /usr/nec ;then
9281    version_type=linux
9282    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283    soname_spec='$libname${shared_ext}.$major'
9284    shlibpath_var=LD_LIBRARY_PATH
9285  fi
9286  ;;
9287
9288sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289  version_type=freebsd-elf
9290  need_lib_prefix=no
9291  need_version=no
9292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293  soname_spec='${libname}${release}${shared_ext}$major'
9294  shlibpath_var=LD_LIBRARY_PATH
9295  hardcode_into_libs=yes
9296  if test "$with_gnu_ld" = yes; then
9297    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298    shlibpath_overrides_runpath=no
9299  else
9300    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301    shlibpath_overrides_runpath=yes
9302    case $host_os in
9303      sco3.2v5*)
9304        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9305	;;
9306    esac
9307  fi
9308  sys_lib_dlsearch_path_spec='/usr/lib'
9309  ;;
9310
9311uts4*)
9312  version_type=linux
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314  soname_spec='${libname}${release}${shared_ext}$major'
9315  shlibpath_var=LD_LIBRARY_PATH
9316  ;;
9317
9318*)
9319  dynamic_linker=no
9320  ;;
9321esac
9322{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323echo "${ECHO_T}$dynamic_linker" >&6; }
9324test "$dynamic_linker" = no && can_build_shared=no
9325
9326variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327if test "$GCC" = yes; then
9328  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9329fi
9330
9331
9332{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334if test "${libltdl_cv_shlibext+set}" = set; then
9335  echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337
9338module=yes
9339eval libltdl_cv_shlibext=$shrext_cmds
9340
9341fi
9342{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9344if test -n "$libltdl_cv_shlibext"; then
9345
9346cat >>confdefs.h <<_ACEOF
9347#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9348_ACEOF
9349
9350fi
9351
9352
9353{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356  echo $ECHO_N "(cached) $ECHO_C" >&6
9357else
9358  libltdl_cv_shlibpath_var="$shlibpath_var"
9359fi
9360{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9362if test -n "$libltdl_cv_shlibpath_var"; then
9363
9364cat >>confdefs.h <<_ACEOF
9365#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9366_ACEOF
9367
9368fi
9369
9370
9371{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9372echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373if test "${libltdl_cv_sys_search_path+set}" = set; then
9374  echo $ECHO_N "(cached) $ECHO_C" >&6
9375else
9376  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9377fi
9378{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9380if test -n "$libltdl_cv_sys_search_path"; then
9381  sys_search_path=
9382  for dir in $libltdl_cv_sys_search_path; do
9383    if test -z "$sys_search_path"; then
9384      sys_search_path="$dir"
9385    else
9386      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9387    fi
9388  done
9389
9390cat >>confdefs.h <<_ACEOF
9391#define LTDL_SYSSEARCHPATH "$sys_search_path"
9392_ACEOF
9393
9394fi
9395
9396{ echo "$as_me:$LINENO: checking for objdir" >&5
9397echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398if test "${libltdl_cv_objdir+set}" = set; then
9399  echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401  libltdl_cv_objdir="$objdir"
9402  if test -n "$objdir"; then
9403    :
9404  else
9405    rm -f .libs 2>/dev/null
9406    mkdir .libs 2>/dev/null
9407    if test -d .libs; then
9408      libltdl_cv_objdir=.libs
9409    else
9410      # MS-DOS does not allow filenames that begin with a dot.
9411      libltdl_cv_objdir=_libs
9412    fi
9413  rmdir .libs 2>/dev/null
9414  fi
9415
9416fi
9417{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9419
9420cat >>confdefs.h <<_ACEOF
9421#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9422_ACEOF
9423
9424
9425
9426
9427
9428
9429# Check for command to grab the raw symbol name followed by C symbol from nm.
9430{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433  echo $ECHO_N "(cached) $ECHO_C" >&6
9434else
9435
9436# These are sane defaults that work on at least a few old systems.
9437# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9438
9439# Character class describing NM global symbol codes.
9440symcode='[BCDEGRST]'
9441
9442# Regexp to match symbols that can be accessed directly from C.
9443sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9444
9445# Transform an extracted symbol line into a proper C declaration
9446lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9447
9448# Transform an extracted symbol line into symbol name and symbol address
9449lt_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'"
9450
9451# Define system-specific variables.
9452case $host_os in
9453aix*)
9454  symcode='[BCDT]'
9455  ;;
9456cygwin* | mingw* | pw32*)
9457  symcode='[ABCDGISTW]'
9458  ;;
9459hpux*) # Its linker distinguishes data from code symbols
9460  if test "$host_cpu" = ia64; then
9461    symcode='[ABCDEGRST]'
9462  fi
9463  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464  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'"
9465  ;;
9466linux*)
9467  if test "$host_cpu" = ia64; then
9468    symcode='[ABCDGIRSTW]'
9469    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470    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'"
9471  fi
9472  ;;
9473irix* | nonstopux*)
9474  symcode='[BCDEGRST]'
9475  ;;
9476osf*)
9477  symcode='[BCDEGQRST]'
9478  ;;
9479solaris*)
9480  symcode='[BDRT]'
9481  ;;
9482sco3.2v5*)
9483  symcode='[DT]'
9484  ;;
9485sysv4.2uw2*)
9486  symcode='[DT]'
9487  ;;
9488sysv5* | sco5v6* | unixware* | OpenUNIX*)
9489  symcode='[ABDT]'
9490  ;;
9491sysv4)
9492  symcode='[DFNSTU]'
9493  ;;
9494esac
9495
9496# Handle CRLF in mingw tool chain
9497opt_cr=
9498case $build_os in
9499mingw*)
9500  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9501  ;;
9502esac
9503
9504# If we're using GNU nm, then use its standard symbol codes.
9505case `$NM -V 2>&1` in
9506*GNU* | *'with BFD'*)
9507  symcode='[ABCDGIRSTW]' ;;
9508esac
9509
9510# Try without a prefix undercore, then with it.
9511for ac_symprfx in "" "_"; do
9512
9513  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514  symxfrm="\\1 $ac_symprfx\\2 \\2"
9515
9516  # Write the raw and C identifiers.
9517  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9518
9519  # Check to see that the pipe works correctly.
9520  pipe_works=no
9521
9522  rm -f conftest*
9523  cat > conftest.$ac_ext <<EOF
9524#ifdef __cplusplus
9525extern "C" {
9526#endif
9527char nm_test_var;
9528void nm_test_func(){}
9529#ifdef __cplusplus
9530}
9531#endif
9532int main(){nm_test_var='a';nm_test_func();return(0);}
9533EOF
9534
9535  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536  (eval $ac_compile) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); }; then
9540    # Now try to grab the symbols.
9541    nlist=conftest.nm
9542    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9543  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9544  ac_status=$?
9545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546  (exit $ac_status); } && test -s "$nlist"; then
9547      # Try sorting and uniquifying the output.
9548      if sort "$nlist" | uniq > "$nlist"T; then
9549	mv -f "$nlist"T "$nlist"
9550      else
9551	rm -f "$nlist"T
9552      fi
9553
9554      # Make sure that we snagged all the symbols we need.
9555      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557	  cat <<EOF > conftest.$ac_ext
9558#ifdef __cplusplus
9559extern "C" {
9560#endif
9561
9562EOF
9563	  # Now generate the symbol file.
9564	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9565
9566	  cat <<EOF >> conftest.$ac_ext
9567#if defined (__STDC__) && __STDC__
9568# define lt_ptr_t void *
9569#else
9570# define lt_ptr_t char *
9571# define const
9572#endif
9573
9574/* The mapping between symbol names and symbols. */
9575const struct {
9576  const char *name;
9577  lt_ptr_t address;
9578}
9579lt_preloaded_symbols[] =
9580{
9581EOF
9582	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583	  cat <<\EOF >> conftest.$ac_ext
9584  {0, (lt_ptr_t) 0}
9585};
9586
9587#ifdef __cplusplus
9588}
9589#endif
9590EOF
9591	  # Now try linking the two files.
9592	  mv conftest.$ac_objext conftstm.$ac_objext
9593	  lt_save_LIBS="$LIBS"
9594	  lt_save_CFLAGS="$CFLAGS"
9595	  LIBS="conftstm.$ac_objext"
9596	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9597	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598  (eval $ac_link) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9602	    pipe_works=yes
9603	  fi
9604	  LIBS="$lt_save_LIBS"
9605	  CFLAGS="$lt_save_CFLAGS"
9606	else
9607	  echo "cannot find nm_test_func in $nlist" >&5
9608	fi
9609      else
9610	echo "cannot find nm_test_var in $nlist" >&5
9611      fi
9612    else
9613      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9614    fi
9615  else
9616    echo "$progname: failed program was:" >&5
9617    cat conftest.$ac_ext >&5
9618  fi
9619  rm -f conftest* conftst*
9620
9621  # Do not use the global_symbol_pipe unless it works.
9622  if test "$pipe_works" = yes; then
9623    break
9624  else
9625    lt_cv_sys_global_symbol_pipe=
9626  fi
9627done
9628
9629fi
9630
9631if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632  lt_cv_sys_global_symbol_to_cdecl=
9633fi
9634if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9635  { echo "$as_me:$LINENO: result: failed" >&5
9636echo "${ECHO_T}failed" >&6; }
9637else
9638  { echo "$as_me:$LINENO: result: ok" >&5
9639echo "${ECHO_T}ok" >&6; }
9640fi
9641
9642
9643{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646  echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649    libltdl_cv_preloaded_symbols=yes
9650  else
9651    libltdl_cv_preloaded_symbols=no
9652  fi
9653
9654fi
9655{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9657if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9658
9659cat >>confdefs.h <<\_ACEOF
9660#define HAVE_PRELOADED_SYMBOLS 1
9661_ACEOF
9662
9663fi
9664
9665LIBADD_DL=
9666
9667ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
9674{ echo "$as_me:$LINENO: checking for shl_load" >&5
9675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676if test "${ac_cv_func_shl_load+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h.  */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h.  */
9685/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9687#define shl_load innocuous_shl_load
9688
9689/* System header to define __stub macros and hopefully few prototypes,
9690    which can conflict with char shl_load (); below.
9691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692    <limits.h> exists even on freestanding compilers.  */
9693
9694#ifdef __STDC__
9695# include <limits.h>
9696#else
9697# include <assert.h>
9698#endif
9699
9700#undef shl_load
9701
9702/* Override any GCC internal prototype to avoid an error.
9703   Use char because int might match the return type of a GCC
9704   builtin and then its argument prototype would still apply.  */
9705#ifdef __cplusplus
9706extern "C"
9707#endif
9708char shl_load ();
9709/* The GNU C library defines this for functions which it implements
9710    to always fail with ENOSYS.  Some functions are actually named
9711    something starting with __ and the normal name is an alias.  */
9712#if defined __stub_shl_load || defined __stub___shl_load
9713choke me
9714#endif
9715
9716int
9717main ()
9718{
9719return shl_load ();
9720  ;
9721  return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext conftest$ac_exeext
9725if { (ac_try="$ac_link"
9726case "(($ac_try" in
9727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728  *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731  (eval "$ac_link") 2>conftest.er1
9732  ac_status=$?
9733  grep -v '^ *+' conftest.er1 >conftest.err
9734  rm -f conftest.er1
9735  cat conftest.err >&5
9736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737  (exit $ac_status); } &&
9738	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739  { (case "(($ac_try" in
9740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741  *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744  (eval "$ac_try") 2>&5
9745  ac_status=$?
9746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747  (exit $ac_status); }; } &&
9748	 { ac_try='test -s conftest$ac_exeext'
9749  { (case "(($ac_try" in
9750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751  *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754  (eval "$ac_try") 2>&5
9755  ac_status=$?
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); }; }; then
9758  ac_cv_func_shl_load=yes
9759else
9760  echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763	ac_cv_func_shl_load=no
9764fi
9765
9766rm -f core conftest.err conftest.$ac_objext \
9767      conftest$ac_exeext conftest.$ac_ext
9768fi
9769{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771if test $ac_cv_func_shl_load = yes; then
9772
9773cat >>confdefs.h <<\_ACEOF
9774#define HAVE_SHL_LOAD 1
9775_ACEOF
9776
9777else
9778  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781  echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783  ac_check_lib_save_LIBS=$LIBS
9784LIBS="-ldld  $LIBS"
9785cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h.  */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h.  */
9791
9792/* Override any GCC internal prototype to avoid an error.
9793   Use char because int might match the return type of a GCC
9794   builtin and then its argument prototype would still apply.  */
9795#ifdef __cplusplus
9796extern "C"
9797#endif
9798char shl_load ();
9799int
9800main ()
9801{
9802return shl_load ();
9803  ;
9804  return 0;
9805}
9806_ACEOF
9807rm -f conftest.$ac_objext conftest$ac_exeext
9808if { (ac_try="$ac_link"
9809case "(($ac_try" in
9810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811  *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814  (eval "$ac_link") 2>conftest.er1
9815  ac_status=$?
9816  grep -v '^ *+' conftest.er1 >conftest.err
9817  rm -f conftest.er1
9818  cat conftest.err >&5
9819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820  (exit $ac_status); } &&
9821	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822  { (case "(($ac_try" in
9823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824  *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827  (eval "$ac_try") 2>&5
9828  ac_status=$?
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); }; } &&
9831	 { ac_try='test -s conftest$ac_exeext'
9832  { (case "(($ac_try" in
9833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834  *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837  (eval "$ac_try") 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); }; }; then
9841  ac_cv_lib_dld_shl_load=yes
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846	ac_cv_lib_dld_shl_load=no
9847fi
9848
9849rm -f core conftest.err conftest.$ac_objext \
9850      conftest$ac_exeext conftest.$ac_ext
9851LIBS=$ac_check_lib_save_LIBS
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855if test $ac_cv_lib_dld_shl_load = yes; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define HAVE_SHL_LOAD 1
9859_ACEOF
9860
9861	LIBADD_DL="$LIBADD_DL -ldld"
9862else
9863  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866  echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868  ac_check_lib_save_LIBS=$LIBS
9869LIBS="-ldl  $LIBS"
9870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876
9877/* Override any GCC internal prototype to avoid an error.
9878   Use char because int might match the return type of a GCC
9879   builtin and then its argument prototype would still apply.  */
9880#ifdef __cplusplus
9881extern "C"
9882#endif
9883char dlopen ();
9884int
9885main ()
9886{
9887return dlopen ();
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899  (eval "$ac_link") 2>conftest.er1
9900  ac_status=$?
9901  grep -v '^ *+' conftest.er1 >conftest.err
9902  rm -f conftest.er1
9903  cat conftest.err >&5
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); } &&
9906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907  { (case "(($ac_try" in
9908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909  *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912  (eval "$ac_try") 2>&5
9913  ac_status=$?
9914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915  (exit $ac_status); }; } &&
9916	 { ac_try='test -s conftest$ac_exeext'
9917  { (case "(($ac_try" in
9918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919  *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922  (eval "$ac_try") 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926  ac_cv_lib_dl_dlopen=yes
9927else
9928  echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931	ac_cv_lib_dl_dlopen=no
9932fi
9933
9934rm -f core conftest.err conftest.$ac_objext \
9935      conftest$ac_exeext conftest.$ac_ext
9936LIBS=$ac_check_lib_save_LIBS
9937fi
9938{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940if test $ac_cv_lib_dl_dlopen = yes; then
9941
9942cat >>confdefs.h <<\_ACEOF
9943#define HAVE_LIBDL 1
9944_ACEOF
9945
9946	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9947else
9948  cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h.  */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h.  */
9954#if HAVE_DLFCN_H
9955#  include <dlfcn.h>
9956#endif
9957
9958int
9959main ()
9960{
9961dlopen(0, 0);
9962  ;
9963  return 0;
9964}
9965_ACEOF
9966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (ac_try="$ac_link"
9968case "(($ac_try" in
9969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970  *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973  (eval "$ac_link") 2>conftest.er1
9974  ac_status=$?
9975  grep -v '^ *+' conftest.er1 >conftest.err
9976  rm -f conftest.er1
9977  cat conftest.err >&5
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); } &&
9980	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981  { (case "(($ac_try" in
9982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983  *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986  (eval "$ac_try") 2>&5
9987  ac_status=$?
9988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989  (exit $ac_status); }; } &&
9990	 { ac_try='test -s conftest$ac_exeext'
9991  { (case "(($ac_try" in
9992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993  *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996  (eval "$ac_try") 2>&5
9997  ac_status=$?
9998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999  (exit $ac_status); }; }; then
10000
10001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_LIBDL 1
10003_ACEOF
10004 libltdl_cv_func_dlopen="yes"
10005else
10006  echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012  echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014  ac_check_lib_save_LIBS=$LIBS
10015LIBS="-lsvld  $LIBS"
10016cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022
10023/* Override any GCC internal prototype to avoid an error.
10024   Use char because int might match the return type of a GCC
10025   builtin and then its argument prototype would still apply.  */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029char dlopen ();
10030int
10031main ()
10032{
10033return dlopen ();
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038rm -f conftest.$ac_objext conftest$ac_exeext
10039if { (ac_try="$ac_link"
10040case "(($ac_try" in
10041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042  *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045  (eval "$ac_link") 2>conftest.er1
10046  ac_status=$?
10047  grep -v '^ *+' conftest.er1 >conftest.err
10048  rm -f conftest.er1
10049  cat conftest.err >&5
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } &&
10052	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053  { (case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_try") 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062	 { ac_try='test -s conftest$ac_exeext'
10063  { (case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068  (eval "$ac_try") 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; }; then
10072  ac_cv_lib_svld_dlopen=yes
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077	ac_cv_lib_svld_dlopen=no
10078fi
10079
10080rm -f core conftest.err conftest.$ac_objext \
10081      conftest$ac_exeext conftest.$ac_ext
10082LIBS=$ac_check_lib_save_LIBS
10083fi
10084{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086if test $ac_cv_lib_svld_dlopen = yes; then
10087
10088cat >>confdefs.h <<\_ACEOF
10089#define HAVE_LIBDL 1
10090_ACEOF
10091
10092	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10093else
10094  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097  echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099  ac_check_lib_save_LIBS=$LIBS
10100LIBS="-ldld  $LIBS"
10101cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h.  */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h.  */
10107
10108/* Override any GCC internal prototype to avoid an error.
10109   Use char because int might match the return type of a GCC
10110   builtin and then its argument prototype would still apply.  */
10111#ifdef __cplusplus
10112extern "C"
10113#endif
10114char dld_link ();
10115int
10116main ()
10117{
10118return dld_link ();
10119  ;
10120  return 0;
10121}
10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (ac_try="$ac_link"
10125case "(($ac_try" in
10126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127  *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130  (eval "$ac_link") 2>conftest.er1
10131  ac_status=$?
10132  grep -v '^ *+' conftest.er1 >conftest.err
10133  rm -f conftest.er1
10134  cat conftest.err >&5
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } &&
10137	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138  { (case "(($ac_try" in
10139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140  *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143  (eval "$ac_try") 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; } &&
10147	 { ac_try='test -s conftest$ac_exeext'
10148  { (case "(($ac_try" in
10149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150  *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153  (eval "$ac_try") 2>&5
10154  ac_status=$?
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); }; }; then
10157  ac_cv_lib_dld_dld_link=yes
10158else
10159  echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162	ac_cv_lib_dld_dld_link=no
10163fi
10164
10165rm -f core conftest.err conftest.$ac_objext \
10166      conftest$ac_exeext conftest.$ac_ext
10167LIBS=$ac_check_lib_save_LIBS
10168fi
10169{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171if test $ac_cv_lib_dld_dld_link = yes; then
10172
10173cat >>confdefs.h <<\_ACEOF
10174#define HAVE_DLD 1
10175_ACEOF
10176
10177	 	LIBADD_DL="$LIBADD_DL -ldld"
10178else
10179  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h.  */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h.  */
10190/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10192#define _dyld_func_lookup innocuous__dyld_func_lookup
10193
10194/* System header to define __stub macros and hopefully few prototypes,
10195    which can conflict with char _dyld_func_lookup (); below.
10196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197    <limits.h> exists even on freestanding compilers.  */
10198
10199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204
10205#undef _dyld_func_lookup
10206
10207/* Override any GCC internal prototype to avoid an error.
10208   Use char because int might match the return type of a GCC
10209   builtin and then its argument prototype would still apply.  */
10210#ifdef __cplusplus
10211extern "C"
10212#endif
10213char _dyld_func_lookup ();
10214/* The GNU C library defines this for functions which it implements
10215    to always fail with ENOSYS.  Some functions are actually named
10216    something starting with __ and the normal name is an alias.  */
10217#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10218choke me
10219#endif
10220
10221int
10222main ()
10223{
10224return _dyld_func_lookup ();
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233  *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236  (eval "$ac_link") 2>conftest.er1
10237  ac_status=$?
10238  grep -v '^ *+' conftest.er1 >conftest.err
10239  rm -f conftest.er1
10240  cat conftest.err >&5
10241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } &&
10243	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244  { (case "(($ac_try" in
10245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246  *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249  (eval "$ac_try") 2>&5
10250  ac_status=$?
10251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252  (exit $ac_status); }; } &&
10253	 { ac_try='test -s conftest$ac_exeext'
10254  { (case "(($ac_try" in
10255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256  *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259  (eval "$ac_try") 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; }; then
10263  ac_cv_func__dyld_func_lookup=yes
10264else
10265  echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268	ac_cv_func__dyld_func_lookup=no
10269fi
10270
10271rm -f core conftest.err conftest.$ac_objext \
10272      conftest$ac_exeext conftest.$ac_ext
10273fi
10274{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276if test $ac_cv_func__dyld_func_lookup = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_DYLD 1
10280_ACEOF
10281
10282fi
10283
10284
10285fi
10286
10287
10288fi
10289
10290
10291fi
10292
10293rm -f core conftest.err conftest.$ac_objext \
10294      conftest$ac_exeext conftest.$ac_ext
10295
10296fi
10297
10298
10299fi
10300
10301
10302fi
10303
10304
10305if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10306then
10307  lt_save_LIBS="$LIBS"
10308  LIBS="$LIBS $LIBADD_DL"
10309
10310for ac_func in dlerror
10311do
10312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316  echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318  cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h.  */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h.  */
10324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10326#define $ac_func innocuous_$ac_func
10327
10328/* System header to define __stub macros and hopefully few prototypes,
10329    which can conflict with char $ac_func (); below.
10330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331    <limits.h> exists even on freestanding compilers.  */
10332
10333#ifdef __STDC__
10334# include <limits.h>
10335#else
10336# include <assert.h>
10337#endif
10338
10339#undef $ac_func
10340
10341/* Override any GCC internal prototype to avoid an error.
10342   Use char because int might match the return type of a GCC
10343   builtin and then its argument prototype would still apply.  */
10344#ifdef __cplusplus
10345extern "C"
10346#endif
10347char $ac_func ();
10348/* The GNU C library defines this for functions which it implements
10349    to always fail with ENOSYS.  Some functions are actually named
10350    something starting with __ and the normal name is an alias.  */
10351#if defined __stub_$ac_func || defined __stub___$ac_func
10352choke me
10353#endif
10354
10355int
10356main ()
10357{
10358return $ac_func ();
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (ac_try="$ac_link"
10365case "(($ac_try" in
10366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367  *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370  (eval "$ac_link") 2>conftest.er1
10371  ac_status=$?
10372  grep -v '^ *+' conftest.er1 >conftest.err
10373  rm -f conftest.er1
10374  cat conftest.err >&5
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); } &&
10377	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378  { (case "(($ac_try" in
10379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380  *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383  (eval "$ac_try") 2>&5
10384  ac_status=$?
10385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386  (exit $ac_status); }; } &&
10387	 { ac_try='test -s conftest$ac_exeext'
10388  { (case "(($ac_try" in
10389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390  *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393  (eval "$ac_try") 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); }; }; then
10397  eval "$as_ac_var=yes"
10398else
10399  echo "$as_me: failed program was:" >&5
10400sed 's/^/| /' conftest.$ac_ext >&5
10401
10402	eval "$as_ac_var=no"
10403fi
10404
10405rm -f core conftest.err conftest.$ac_objext \
10406      conftest$ac_exeext conftest.$ac_ext
10407fi
10408ac_res=`eval echo '${'$as_ac_var'}'`
10409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10410echo "${ECHO_T}$ac_res" >&6; }
10411if test `eval echo '${'$as_ac_var'}'` = yes; then
10412  cat >>confdefs.h <<_ACEOF
10413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10414_ACEOF
10415
10416fi
10417done
10418
10419  LIBS="$lt_save_LIBS"
10420fi
10421ac_ext=c
10422ac_cpp='$CPP $CPPFLAGS'
10423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426
10427
10428
10429{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432  echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434  ac_cv_sys_symbol_underscore=no
10435  cat > conftest.$ac_ext <<EOF
10436void nm_test_func(){}
10437int main(){nm_test_func;return 0;}
10438EOF
10439  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440  (eval $ac_compile) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; then
10444    # Now try to grab the symbols.
10445    ac_nlist=conftest.nm
10446    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10447  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10448  ac_status=$?
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); } && test -s "$ac_nlist"; then
10451      # See whether the symbols have a leading underscore.
10452      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453        ac_cv_sys_symbol_underscore=yes
10454      else
10455        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10456	  :
10457        else
10458	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10459        fi
10460      fi
10461    else
10462      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463    fi
10464  else
10465    echo "configure: failed program was:" >&5
10466    cat conftest.c >&5
10467  fi
10468  rm -rf conftest*
10469
10470fi
10471{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10473
10474
10475if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476  if test x"$libltdl_cv_func_dlopen" = xyes ||
10477     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10478	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480if test "${libltdl_cv_need_uscore+set}" = set; then
10481  echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483  libltdl_cv_need_uscore=unknown
10484          save_LIBS="$LIBS"
10485          LIBS="$LIBS $LIBADD_DL"
10486	  if test "$cross_compiling" = yes; then :
10487  libltdl_cv_need_uscore=cross
10488else
10489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490  lt_status=$lt_dlunknown
10491  cat > conftest.$ac_ext <<EOF
10492#line 10492 "configure"
10493#include "confdefs.h"
10494
10495#if HAVE_DLFCN_H
10496#include <dlfcn.h>
10497#endif
10498
10499#include <stdio.h>
10500
10501#ifdef RTLD_GLOBAL
10502#  define LT_DLGLOBAL		RTLD_GLOBAL
10503#else
10504#  ifdef DL_GLOBAL
10505#    define LT_DLGLOBAL		DL_GLOBAL
10506#  else
10507#    define LT_DLGLOBAL		0
10508#  endif
10509#endif
10510
10511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512   find out it does not work in some platform. */
10513#ifndef LT_DLLAZY_OR_NOW
10514#  ifdef RTLD_LAZY
10515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10516#  else
10517#    ifdef DL_LAZY
10518#      define LT_DLLAZY_OR_NOW		DL_LAZY
10519#    else
10520#      ifdef RTLD_NOW
10521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10522#      else
10523#        ifdef DL_NOW
10524#          define LT_DLLAZY_OR_NOW	DL_NOW
10525#        else
10526#          define LT_DLLAZY_OR_NOW	0
10527#        endif
10528#      endif
10529#    endif
10530#  endif
10531#endif
10532
10533#ifdef __cplusplus
10534extern "C" void exit (int);
10535#endif
10536
10537void fnord() { int i=42;}
10538int main ()
10539{
10540  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541  int status = $lt_dlunknown;
10542
10543  if (self)
10544    {
10545      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547      /* dlclose (self); */
10548    }
10549  else
10550    puts (dlerror ());
10551
10552    exit (status);
10553}
10554EOF
10555  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556  (eval $ac_link) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560    (./conftest; exit; ) >&5 2>/dev/null
10561    lt_status=$?
10562    case x$lt_status in
10563      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10565      x$lt_dlunknown|x*)  ;;
10566    esac
10567  else :
10568    # compilation failed
10569
10570  fi
10571fi
10572rm -fr conftest*
10573
10574	  LIBS="$save_LIBS"
10575
10576fi
10577{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10579  fi
10580fi
10581
10582if test x"$libltdl_cv_need_uscore" = xyes; then
10583
10584cat >>confdefs.h <<\_ACEOF
10585#define NEED_USCORE 1
10586_ACEOF
10587
10588fi
10589
10590
10591{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594  echo $ECHO_N "(cached) $ECHO_C" >&6
10595else
10596  # PORTME does your system automatically load deplibs for dlopen?
10597  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598  # For now, we just catch OSes we know something about -- in the
10599  # future, we'll try test this programmatically.
10600  libltdl_cv_sys_dlopen_deplibs=unknown
10601  case "$host_os" in
10602  aix3*|aix4.1.*|aix4.2.*)
10603    # Unknown whether this is true for these versions of AIX, but
10604    # we want this `case' here to explicitly catch those versions.
10605    libltdl_cv_sys_dlopen_deplibs=unknown
10606    ;;
10607  aix[45]*)
10608    libltdl_cv_sys_dlopen_deplibs=yes
10609    ;;
10610  darwin*)
10611    # Assuming the user has installed a libdl from somewhere, this is true
10612    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613    libltdl_cv_sys_dlopen_deplibs=yes
10614    ;;
10615  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616    # GNU and its variants, using gnu ld.so (Glibc)
10617    libltdl_cv_sys_dlopen_deplibs=yes
10618    ;;
10619  hpux10*|hpux11*)
10620    libltdl_cv_sys_dlopen_deplibs=yes
10621    ;;
10622  interix*)
10623    libltdl_cv_sys_dlopen_deplibs=yes
10624    ;;
10625  irix[12345]*|irix6.[01]*)
10626    # Catch all versions of IRIX before 6.2, and indicate that we don't
10627    # know how it worked for any of those versions.
10628    libltdl_cv_sys_dlopen_deplibs=unknown
10629    ;;
10630  irix*)
10631    # The case above catches anything before 6.2, and it's known that
10632    # at 6.2 and later dlopen does load deplibs.
10633    libltdl_cv_sys_dlopen_deplibs=yes
10634    ;;
10635  netbsd*)
10636    libltdl_cv_sys_dlopen_deplibs=yes
10637    ;;
10638  openbsd*)
10639    libltdl_cv_sys_dlopen_deplibs=yes
10640    ;;
10641  osf[1234]*)
10642    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643    # it did *not* use an RPATH in a shared library to find objects the
10644    # library depends on, so we explicitly say `no'.
10645    libltdl_cv_sys_dlopen_deplibs=no
10646    ;;
10647  osf5.0|osf5.0a|osf5.1)
10648    # dlopen *does* load deplibs and with the right loader patch applied
10649    # it even uses RPATH in a shared library to search for shared objects
10650    # that the library depends on, but there's no easy way to know if that
10651    # patch is installed.  Since this is the case, all we can really
10652    # say is unknown -- it depends on the patch being installed.  If
10653    # it is, this changes to `yes'.  Without it, it would be `no'.
10654    libltdl_cv_sys_dlopen_deplibs=unknown
10655    ;;
10656  osf*)
10657    # the two cases above should catch all versions of osf <= 5.1.  Read
10658    # the comments above for what we know about them.
10659    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660    # is used to find them so we can finally say `yes'.
10661    libltdl_cv_sys_dlopen_deplibs=yes
10662    ;;
10663  solaris*)
10664    libltdl_cv_sys_dlopen_deplibs=yes
10665    ;;
10666  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667    libltdl_cv_sys_dlopen_deplibs=yes
10668    ;;
10669  esac
10670
10671fi
10672{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10674if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10675
10676cat >>confdefs.h <<\_ACEOF
10677#define LTDL_DLOPEN_DEPLIBS 1
10678_ACEOF
10679
10680fi
10681
10682
10683for ac_header in argz.h
10684do
10685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690  echo $ECHO_N "(cached) $ECHO_C" >&6
10691fi
10692ac_res=`eval echo '${'$as_ac_Header'}'`
10693	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10694echo "${ECHO_T}$ac_res" >&6; }
10695else
10696  # Is the header compilable?
10697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h.  */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h.  */
10705$ac_includes_default
10706#include <$ac_header>
10707_ACEOF
10708rm -f conftest.$ac_objext
10709if { (ac_try="$ac_compile"
10710case "(($ac_try" in
10711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712  *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715  (eval "$ac_compile") 2>conftest.er1
10716  ac_status=$?
10717  grep -v '^ *+' conftest.er1 >conftest.err
10718  rm -f conftest.er1
10719  cat conftest.err >&5
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); } &&
10722	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723  { (case "(($ac_try" in
10724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725  *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728  (eval "$ac_try") 2>&5
10729  ac_status=$?
10730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731  (exit $ac_status); }; } &&
10732	 { ac_try='test -s conftest.$ac_objext'
10733  { (case "(($ac_try" in
10734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735  *) ac_try_echo=$ac_try;;
10736esac
10737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738  (eval "$ac_try") 2>&5
10739  ac_status=$?
10740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); }; }; then
10742  ac_header_compiler=yes
10743else
10744  echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747	ac_header_compiler=no
10748fi
10749
10750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752echo "${ECHO_T}$ac_header_compiler" >&6; }
10753
10754# Is the header present?
10755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h.  */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h.  */
10763#include <$ac_header>
10764_ACEOF
10765if { (ac_try="$ac_cpp conftest.$ac_ext"
10766case "(($ac_try" in
10767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768  *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10772  ac_status=$?
10773  grep -v '^ *+' conftest.er1 >conftest.err
10774  rm -f conftest.er1
10775  cat conftest.err >&5
10776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777  (exit $ac_status); } >/dev/null; then
10778  if test -s conftest.err; then
10779    ac_cpp_err=$ac_c_preproc_warn_flag
10780    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781  else
10782    ac_cpp_err=
10783  fi
10784else
10785  ac_cpp_err=yes
10786fi
10787if test -z "$ac_cpp_err"; then
10788  ac_header_preproc=yes
10789else
10790  echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793  ac_header_preproc=no
10794fi
10795
10796rm -f conftest.err conftest.$ac_ext
10797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798echo "${ECHO_T}$ac_header_preproc" >&6; }
10799
10800# So?  What about this header?
10801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802  yes:no: )
10803    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807    ac_header_preproc=yes
10808    ;;
10809  no:yes:* )
10810    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10813echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10814    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10817echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822    ( cat <<\_ASBOX
10823## ----------------------------------- ##
10824## Report this to llvmbugs@cs.uiuc.edu ##
10825## ----------------------------------- ##
10826_ASBOX
10827     ) | sed "s/^/$as_me: WARNING:     /" >&2
10828    ;;
10829esac
10830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833  echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835  eval "$as_ac_Header=\$ac_header_preproc"
10836fi
10837ac_res=`eval echo '${'$as_ac_Header'}'`
10838	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10839echo "${ECHO_T}$ac_res" >&6; }
10840
10841fi
10842if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843  cat >>confdefs.h <<_ACEOF
10844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845_ACEOF
10846
10847fi
10848
10849done
10850
10851
10852{ echo "$as_me:$LINENO: checking for error_t" >&5
10853echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854if test "${ac_cv_type_error_t+set}" = set; then
10855  echo $ECHO_N "(cached) $ECHO_C" >&6
10856else
10857  cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h.  */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h.  */
10863#if HAVE_ARGZ_H
10864#  include <argz.h>
10865#endif
10866
10867typedef error_t ac__type_new_;
10868int
10869main ()
10870{
10871if ((ac__type_new_ *) 0)
10872  return 0;
10873if (sizeof (ac__type_new_))
10874  return 0;
10875  ;
10876  return 0;
10877}
10878_ACEOF
10879rm -f conftest.$ac_objext
10880if { (ac_try="$ac_compile"
10881case "(($ac_try" in
10882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883  *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886  (eval "$ac_compile") 2>conftest.er1
10887  ac_status=$?
10888  grep -v '^ *+' conftest.er1 >conftest.err
10889  rm -f conftest.er1
10890  cat conftest.err >&5
10891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892  (exit $ac_status); } &&
10893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894  { (case "(($ac_try" in
10895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896  *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899  (eval "$ac_try") 2>&5
10900  ac_status=$?
10901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902  (exit $ac_status); }; } &&
10903	 { ac_try='test -s conftest.$ac_objext'
10904  { (case "(($ac_try" in
10905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906  *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909  (eval "$ac_try") 2>&5
10910  ac_status=$?
10911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912  (exit $ac_status); }; }; then
10913  ac_cv_type_error_t=yes
10914else
10915  echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918	ac_cv_type_error_t=no
10919fi
10920
10921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922fi
10923{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925if test $ac_cv_type_error_t = yes; then
10926
10927cat >>confdefs.h <<_ACEOF
10928#define HAVE_ERROR_T 1
10929_ACEOF
10930
10931
10932else
10933
10934cat >>confdefs.h <<\_ACEOF
10935#define error_t int
10936_ACEOF
10937
10938fi
10939
10940
10941
10942
10943
10944
10945
10946for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10947do
10948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952  echo $ECHO_N "(cached) $ECHO_C" >&6
10953else
10954  cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h.  */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h.  */
10960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10962#define $ac_func innocuous_$ac_func
10963
10964/* System header to define __stub macros and hopefully few prototypes,
10965    which can conflict with char $ac_func (); below.
10966    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967    <limits.h> exists even on freestanding compilers.  */
10968
10969#ifdef __STDC__
10970# include <limits.h>
10971#else
10972# include <assert.h>
10973#endif
10974
10975#undef $ac_func
10976
10977/* Override any GCC internal prototype to avoid an error.
10978   Use char because int might match the return type of a GCC
10979   builtin and then its argument prototype would still apply.  */
10980#ifdef __cplusplus
10981extern "C"
10982#endif
10983char $ac_func ();
10984/* The GNU C library defines this for functions which it implements
10985    to always fail with ENOSYS.  Some functions are actually named
10986    something starting with __ and the normal name is an alias.  */
10987#if defined __stub_$ac_func || defined __stub___$ac_func
10988choke me
10989#endif
10990
10991int
10992main ()
10993{
10994return $ac_func ();
10995  ;
10996  return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003  *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006  (eval "$ac_link") 2>conftest.er1
11007  ac_status=$?
11008  grep -v '^ *+' conftest.er1 >conftest.err
11009  rm -f conftest.er1
11010  cat conftest.err >&5
11011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012  (exit $ac_status); } &&
11013	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014  { (case "(($ac_try" in
11015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016  *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019  (eval "$ac_try") 2>&5
11020  ac_status=$?
11021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022  (exit $ac_status); }; } &&
11023	 { ac_try='test -s conftest$ac_exeext'
11024  { (case "(($ac_try" in
11025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026  *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029  (eval "$ac_try") 2>&5
11030  ac_status=$?
11031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032  (exit $ac_status); }; }; then
11033  eval "$as_ac_var=yes"
11034else
11035  echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038	eval "$as_ac_var=no"
11039fi
11040
11041rm -f core conftest.err conftest.$ac_objext \
11042      conftest$ac_exeext conftest.$ac_ext
11043fi
11044ac_res=`eval echo '${'$as_ac_var'}'`
11045	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11046echo "${ECHO_T}$ac_res" >&6; }
11047if test `eval echo '${'$as_ac_var'}'` = yes; then
11048  cat >>confdefs.h <<_ACEOF
11049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11050_ACEOF
11051
11052fi
11053done
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11083		  stdio.h unistd.h
11084do
11085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090  echo $ECHO_N "(cached) $ECHO_C" >&6
11091fi
11092ac_res=`eval echo '${'$as_ac_Header'}'`
11093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11094echo "${ECHO_T}$ac_res" >&6; }
11095else
11096  # Is the header compilable?
11097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h.  */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h.  */
11105$ac_includes_default
11106#include <$ac_header>
11107_ACEOF
11108rm -f conftest.$ac_objext
11109if { (ac_try="$ac_compile"
11110case "(($ac_try" in
11111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112  *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115  (eval "$ac_compile") 2>conftest.er1
11116  ac_status=$?
11117  grep -v '^ *+' conftest.er1 >conftest.err
11118  rm -f conftest.er1
11119  cat conftest.err >&5
11120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121  (exit $ac_status); } &&
11122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123  { (case "(($ac_try" in
11124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125  *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128  (eval "$ac_try") 2>&5
11129  ac_status=$?
11130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131  (exit $ac_status); }; } &&
11132	 { ac_try='test -s conftest.$ac_objext'
11133  { (case "(($ac_try" in
11134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135  *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138  (eval "$ac_try") 2>&5
11139  ac_status=$?
11140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141  (exit $ac_status); }; }; then
11142  ac_header_compiler=yes
11143else
11144  echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147	ac_header_compiler=no
11148fi
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154# Is the header present?
11155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h.  */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h.  */
11163#include <$ac_header>
11164_ACEOF
11165if { (ac_try="$ac_cpp conftest.$ac_ext"
11166case "(($ac_try" in
11167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168  *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172  ac_status=$?
11173  grep -v '^ *+' conftest.er1 >conftest.err
11174  rm -f conftest.er1
11175  cat conftest.err >&5
11176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177  (exit $ac_status); } >/dev/null; then
11178  if test -s conftest.err; then
11179    ac_cpp_err=$ac_c_preproc_warn_flag
11180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181  else
11182    ac_cpp_err=
11183  fi
11184else
11185  ac_cpp_err=yes
11186fi
11187if test -z "$ac_cpp_err"; then
11188  ac_header_preproc=yes
11189else
11190  echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193  ac_header_preproc=no
11194fi
11195
11196rm -f conftest.err conftest.$ac_ext
11197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200# So?  What about this header?
11201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202  yes:no: )
11203    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207    ac_header_preproc=yes
11208    ;;
11209  no:yes:* )
11210    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11213echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11214    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11217echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222    ( cat <<\_ASBOX
11223## ----------------------------------- ##
11224## Report this to llvmbugs@cs.uiuc.edu ##
11225## ----------------------------------- ##
11226_ASBOX
11227     ) | sed "s/^/$as_me: WARNING:     /" >&2
11228    ;;
11229esac
11230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233  echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235  eval "$as_ac_Header=\$ac_header_preproc"
11236fi
11237ac_res=`eval echo '${'$as_ac_Header'}'`
11238	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11239echo "${ECHO_T}$ac_res" >&6; }
11240
11241fi
11242if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243  cat >>confdefs.h <<_ACEOF
11244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245_ACEOF
11246
11247fi
11248
11249done
11250
11251
11252
11253
11254
11255for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11256do
11257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262  echo $ECHO_N "(cached) $ECHO_C" >&6
11263fi
11264ac_res=`eval echo '${'$as_ac_Header'}'`
11265	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11266echo "${ECHO_T}$ac_res" >&6; }
11267else
11268  # Is the header compilable?
11269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h.  */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h.  */
11277$ac_includes_default
11278#include <$ac_header>
11279_ACEOF
11280rm -f conftest.$ac_objext
11281if { (ac_try="$ac_compile"
11282case "(($ac_try" in
11283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284  *) ac_try_echo=$ac_try;;
11285esac
11286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287  (eval "$ac_compile") 2>conftest.er1
11288  ac_status=$?
11289  grep -v '^ *+' conftest.er1 >conftest.err
11290  rm -f conftest.er1
11291  cat conftest.err >&5
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); } &&
11294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295  { (case "(($ac_try" in
11296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297  *) ac_try_echo=$ac_try;;
11298esac
11299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300  (eval "$ac_try") 2>&5
11301  ac_status=$?
11302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303  (exit $ac_status); }; } &&
11304	 { ac_try='test -s conftest.$ac_objext'
11305  { (case "(($ac_try" in
11306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307  *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310  (eval "$ac_try") 2>&5
11311  ac_status=$?
11312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313  (exit $ac_status); }; }; then
11314  ac_header_compiler=yes
11315else
11316  echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319	ac_header_compiler=no
11320fi
11321
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326# Is the header present?
11327{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h.  */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h.  */
11335#include <$ac_header>
11336_ACEOF
11337if { (ac_try="$ac_cpp conftest.$ac_ext"
11338case "(($ac_try" in
11339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340  *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344  ac_status=$?
11345  grep -v '^ *+' conftest.er1 >conftest.err
11346  rm -f conftest.er1
11347  cat conftest.err >&5
11348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349  (exit $ac_status); } >/dev/null; then
11350  if test -s conftest.err; then
11351    ac_cpp_err=$ac_c_preproc_warn_flag
11352    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353  else
11354    ac_cpp_err=
11355  fi
11356else
11357  ac_cpp_err=yes
11358fi
11359if test -z "$ac_cpp_err"; then
11360  ac_header_preproc=yes
11361else
11362  echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365  ac_header_preproc=no
11366fi
11367
11368rm -f conftest.err conftest.$ac_ext
11369{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370echo "${ECHO_T}$ac_header_preproc" >&6; }
11371
11372# So?  What about this header?
11373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374  yes:no: )
11375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379    ac_header_preproc=yes
11380    ;;
11381  no:yes:* )
11382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11394    ( cat <<\_ASBOX
11395## ----------------------------------- ##
11396## Report this to llvmbugs@cs.uiuc.edu ##
11397## ----------------------------------- ##
11398_ASBOX
11399     ) | sed "s/^/$as_me: WARNING:     /" >&2
11400    ;;
11401esac
11402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405  echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407  eval "$as_ac_Header=\$ac_header_preproc"
11408fi
11409ac_res=`eval echo '${'$as_ac_Header'}'`
11410	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11411echo "${ECHO_T}$ac_res" >&6; }
11412
11413fi
11414if test `eval echo '${'$as_ac_Header'}'` = yes; then
11415  cat >>confdefs.h <<_ACEOF
11416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417_ACEOF
11418
11419fi
11420
11421done
11422
11423
11424
11425for ac_header in string.h strings.h
11426do
11427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432  echo $ECHO_N "(cached) $ECHO_C" >&6
11433fi
11434ac_res=`eval echo '${'$as_ac_Header'}'`
11435	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11436echo "${ECHO_T}$ac_res" >&6; }
11437else
11438  # Is the header compilable?
11439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h.  */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h.  */
11447$ac_includes_default
11448#include <$ac_header>
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (ac_try="$ac_compile"
11452case "(($ac_try" in
11453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454  *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457  (eval "$ac_compile") 2>conftest.er1
11458  ac_status=$?
11459  grep -v '^ *+' conftest.er1 >conftest.err
11460  rm -f conftest.er1
11461  cat conftest.err >&5
11462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463  (exit $ac_status); } &&
11464	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465  { (case "(($ac_try" in
11466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467  *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470  (eval "$ac_try") 2>&5
11471  ac_status=$?
11472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473  (exit $ac_status); }; } &&
11474	 { ac_try='test -s conftest.$ac_objext'
11475  { (case "(($ac_try" in
11476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477  *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480  (eval "$ac_try") 2>&5
11481  ac_status=$?
11482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483  (exit $ac_status); }; }; then
11484  ac_header_compiler=yes
11485else
11486  echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489	ac_header_compiler=no
11490fi
11491
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494echo "${ECHO_T}$ac_header_compiler" >&6; }
11495
11496# Is the header present?
11497{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499cat >conftest.$ac_ext <<_ACEOF
11500/* confdefs.h.  */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h.  */
11505#include <$ac_header>
11506_ACEOF
11507if { (ac_try="$ac_cpp conftest.$ac_ext"
11508case "(($ac_try" in
11509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510  *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11514  ac_status=$?
11515  grep -v '^ *+' conftest.er1 >conftest.err
11516  rm -f conftest.er1
11517  cat conftest.err >&5
11518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519  (exit $ac_status); } >/dev/null; then
11520  if test -s conftest.err; then
11521    ac_cpp_err=$ac_c_preproc_warn_flag
11522    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11523  else
11524    ac_cpp_err=
11525  fi
11526else
11527  ac_cpp_err=yes
11528fi
11529if test -z "$ac_cpp_err"; then
11530  ac_header_preproc=yes
11531else
11532  echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535  ac_header_preproc=no
11536fi
11537
11538rm -f conftest.err conftest.$ac_ext
11539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540echo "${ECHO_T}$ac_header_preproc" >&6; }
11541
11542# So?  What about this header?
11543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544  yes:no: )
11545    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549    ac_header_preproc=yes
11550    ;;
11551  no:yes:* )
11552    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11555echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11556    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11559echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564    ( cat <<\_ASBOX
11565## ----------------------------------- ##
11566## Report this to llvmbugs@cs.uiuc.edu ##
11567## ----------------------------------- ##
11568_ASBOX
11569     ) | sed "s/^/$as_me: WARNING:     /" >&2
11570    ;;
11571esac
11572{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575  echo $ECHO_N "(cached) $ECHO_C" >&6
11576else
11577  eval "$as_ac_Header=\$ac_header_preproc"
11578fi
11579ac_res=`eval echo '${'$as_ac_Header'}'`
11580	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11581echo "${ECHO_T}$ac_res" >&6; }
11582
11583fi
11584if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585  cat >>confdefs.h <<_ACEOF
11586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587_ACEOF
11588 break
11589fi
11590
11591done
11592
11593
11594
11595
11596for ac_func in strchr index
11597do
11598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602  echo $ECHO_N "(cached) $ECHO_C" >&6
11603else
11604  cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h.  */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h.  */
11610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11612#define $ac_func innocuous_$ac_func
11613
11614/* System header to define __stub macros and hopefully few prototypes,
11615    which can conflict with char $ac_func (); below.
11616    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617    <limits.h> exists even on freestanding compilers.  */
11618
11619#ifdef __STDC__
11620# include <limits.h>
11621#else
11622# include <assert.h>
11623#endif
11624
11625#undef $ac_func
11626
11627/* Override any GCC internal prototype to avoid an error.
11628   Use char because int might match the return type of a GCC
11629   builtin and then its argument prototype would still apply.  */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633char $ac_func ();
11634/* The GNU C library defines this for functions which it implements
11635    to always fail with ENOSYS.  Some functions are actually named
11636    something starting with __ and the normal name is an alias.  */
11637#if defined __stub_$ac_func || defined __stub___$ac_func
11638choke me
11639#endif
11640
11641int
11642main ()
11643{
11644return $ac_func ();
11645  ;
11646  return 0;
11647}
11648_ACEOF
11649rm -f conftest.$ac_objext conftest$ac_exeext
11650if { (ac_try="$ac_link"
11651case "(($ac_try" in
11652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653  *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656  (eval "$ac_link") 2>conftest.er1
11657  ac_status=$?
11658  grep -v '^ *+' conftest.er1 >conftest.err
11659  rm -f conftest.er1
11660  cat conftest.err >&5
11661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662  (exit $ac_status); } &&
11663	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664  { (case "(($ac_try" in
11665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666  *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669  (eval "$ac_try") 2>&5
11670  ac_status=$?
11671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672  (exit $ac_status); }; } &&
11673	 { ac_try='test -s conftest$ac_exeext'
11674  { (case "(($ac_try" in
11675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676  *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679  (eval "$ac_try") 2>&5
11680  ac_status=$?
11681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682  (exit $ac_status); }; }; then
11683  eval "$as_ac_var=yes"
11684else
11685  echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688	eval "$as_ac_var=no"
11689fi
11690
11691rm -f core conftest.err conftest.$ac_objext \
11692      conftest$ac_exeext conftest.$ac_ext
11693fi
11694ac_res=`eval echo '${'$as_ac_var'}'`
11695	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11696echo "${ECHO_T}$ac_res" >&6; }
11697if test `eval echo '${'$as_ac_var'}'` = yes; then
11698  cat >>confdefs.h <<_ACEOF
11699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700_ACEOF
11701 break
11702fi
11703done
11704
11705
11706
11707for ac_func in strrchr rindex
11708do
11709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713  echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715  cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h.  */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h.  */
11721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11723#define $ac_func innocuous_$ac_func
11724
11725/* System header to define __stub macros and hopefully few prototypes,
11726    which can conflict with char $ac_func (); below.
11727    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728    <limits.h> exists even on freestanding compilers.  */
11729
11730#ifdef __STDC__
11731# include <limits.h>
11732#else
11733# include <assert.h>
11734#endif
11735
11736#undef $ac_func
11737
11738/* Override any GCC internal prototype to avoid an error.
11739   Use char because int might match the return type of a GCC
11740   builtin and then its argument prototype would still apply.  */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char $ac_func ();
11745/* The GNU C library defines this for functions which it implements
11746    to always fail with ENOSYS.  Some functions are actually named
11747    something starting with __ and the normal name is an alias.  */
11748#if defined __stub_$ac_func || defined __stub___$ac_func
11749choke me
11750#endif
11751
11752int
11753main ()
11754{
11755return $ac_func ();
11756  ;
11757  return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext conftest$ac_exeext
11761if { (ac_try="$ac_link"
11762case "(($ac_try" in
11763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764  *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767  (eval "$ac_link") 2>conftest.er1
11768  ac_status=$?
11769  grep -v '^ *+' conftest.er1 >conftest.err
11770  rm -f conftest.er1
11771  cat conftest.err >&5
11772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773  (exit $ac_status); } &&
11774	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775  { (case "(($ac_try" in
11776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777  *) ac_try_echo=$ac_try;;
11778esac
11779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780  (eval "$ac_try") 2>&5
11781  ac_status=$?
11782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783  (exit $ac_status); }; } &&
11784	 { ac_try='test -s conftest$ac_exeext'
11785  { (case "(($ac_try" in
11786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787  *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790  (eval "$ac_try") 2>&5
11791  ac_status=$?
11792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793  (exit $ac_status); }; }; then
11794  eval "$as_ac_var=yes"
11795else
11796  echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799	eval "$as_ac_var=no"
11800fi
11801
11802rm -f core conftest.err conftest.$ac_objext \
11803      conftest$ac_exeext conftest.$ac_ext
11804fi
11805ac_res=`eval echo '${'$as_ac_var'}'`
11806	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11807echo "${ECHO_T}$ac_res" >&6; }
11808if test `eval echo '${'$as_ac_var'}'` = yes; then
11809  cat >>confdefs.h <<_ACEOF
11810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811_ACEOF
11812 break
11813fi
11814done
11815
11816
11817
11818for ac_func in memcpy bcopy
11819do
11820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824  echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826  cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h.  */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h.  */
11832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11834#define $ac_func innocuous_$ac_func
11835
11836/* System header to define __stub macros and hopefully few prototypes,
11837    which can conflict with char $ac_func (); below.
11838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839    <limits.h> exists even on freestanding compilers.  */
11840
11841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
11846
11847#undef $ac_func
11848
11849/* Override any GCC internal prototype to avoid an error.
11850   Use char because int might match the return type of a GCC
11851   builtin and then its argument prototype would still apply.  */
11852#ifdef __cplusplus
11853extern "C"
11854#endif
11855char $ac_func ();
11856/* The GNU C library defines this for functions which it implements
11857    to always fail with ENOSYS.  Some functions are actually named
11858    something starting with __ and the normal name is an alias.  */
11859#if defined __stub_$ac_func || defined __stub___$ac_func
11860choke me
11861#endif
11862
11863int
11864main ()
11865{
11866return $ac_func ();
11867  ;
11868  return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext conftest$ac_exeext
11872if { (ac_try="$ac_link"
11873case "(($ac_try" in
11874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875  *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878  (eval "$ac_link") 2>conftest.er1
11879  ac_status=$?
11880  grep -v '^ *+' conftest.er1 >conftest.err
11881  rm -f conftest.er1
11882  cat conftest.err >&5
11883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884  (exit $ac_status); } &&
11885	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886  { (case "(($ac_try" in
11887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888  *) ac_try_echo=$ac_try;;
11889esac
11890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891  (eval "$ac_try") 2>&5
11892  ac_status=$?
11893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894  (exit $ac_status); }; } &&
11895	 { ac_try='test -s conftest$ac_exeext'
11896  { (case "(($ac_try" in
11897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898  *) ac_try_echo=$ac_try;;
11899esac
11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901  (eval "$ac_try") 2>&5
11902  ac_status=$?
11903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904  (exit $ac_status); }; }; then
11905  eval "$as_ac_var=yes"
11906else
11907  echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910	eval "$as_ac_var=no"
11911fi
11912
11913rm -f core conftest.err conftest.$ac_objext \
11914      conftest$ac_exeext conftest.$ac_ext
11915fi
11916ac_res=`eval echo '${'$as_ac_var'}'`
11917	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11918echo "${ECHO_T}$ac_res" >&6; }
11919if test `eval echo '${'$as_ac_var'}'` = yes; then
11920  cat >>confdefs.h <<_ACEOF
11921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922_ACEOF
11923 break
11924fi
11925done
11926
11927
11928
11929for ac_func in memmove strcmp
11930do
11931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935  echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937  cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h.  */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h.  */
11943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11945#define $ac_func innocuous_$ac_func
11946
11947/* System header to define __stub macros and hopefully few prototypes,
11948    which can conflict with char $ac_func (); below.
11949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950    <limits.h> exists even on freestanding compilers.  */
11951
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
11957
11958#undef $ac_func
11959
11960/* Override any GCC internal prototype to avoid an error.
11961   Use char because int might match the return type of a GCC
11962   builtin and then its argument prototype would still apply.  */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966char $ac_func ();
11967/* The GNU C library defines this for functions which it implements
11968    to always fail with ENOSYS.  Some functions are actually named
11969    something starting with __ and the normal name is an alias.  */
11970#if defined __stub_$ac_func || defined __stub___$ac_func
11971choke me
11972#endif
11973
11974int
11975main ()
11976{
11977return $ac_func ();
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext conftest$ac_exeext
11983if { (ac_try="$ac_link"
11984case "(($ac_try" in
11985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986  *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989  (eval "$ac_link") 2>conftest.er1
11990  ac_status=$?
11991  grep -v '^ *+' conftest.er1 >conftest.err
11992  rm -f conftest.er1
11993  cat conftest.err >&5
11994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995  (exit $ac_status); } &&
11996	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997  { (case "(($ac_try" in
11998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999  *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002  (eval "$ac_try") 2>&5
12003  ac_status=$?
12004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005  (exit $ac_status); }; } &&
12006	 { ac_try='test -s conftest$ac_exeext'
12007  { (case "(($ac_try" in
12008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009  *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012  (eval "$ac_try") 2>&5
12013  ac_status=$?
12014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015  (exit $ac_status); }; }; then
12016  eval "$as_ac_var=yes"
12017else
12018  echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021	eval "$as_ac_var=no"
12022fi
12023
12024rm -f core conftest.err conftest.$ac_objext \
12025      conftest$ac_exeext conftest.$ac_ext
12026fi
12027ac_res=`eval echo '${'$as_ac_var'}'`
12028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12029echo "${ECHO_T}$ac_res" >&6; }
12030if test `eval echo '${'$as_ac_var'}'` = yes; then
12031  cat >>confdefs.h <<_ACEOF
12032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033_ACEOF
12034
12035fi
12036done
12037
12038
12039
12040
12041for ac_func in closedir opendir readdir
12042do
12043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047  echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049  cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h.  */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h.  */
12055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12057#define $ac_func innocuous_$ac_func
12058
12059/* System header to define __stub macros and hopefully few prototypes,
12060    which can conflict with char $ac_func (); below.
12061    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062    <limits.h> exists even on freestanding compilers.  */
12063
12064#ifdef __STDC__
12065# include <limits.h>
12066#else
12067# include <assert.h>
12068#endif
12069
12070#undef $ac_func
12071
12072/* Override any GCC internal prototype to avoid an error.
12073   Use char because int might match the return type of a GCC
12074   builtin and then its argument prototype would still apply.  */
12075#ifdef __cplusplus
12076extern "C"
12077#endif
12078char $ac_func ();
12079/* The GNU C library defines this for functions which it implements
12080    to always fail with ENOSYS.  Some functions are actually named
12081    something starting with __ and the normal name is an alias.  */
12082#if defined __stub_$ac_func || defined __stub___$ac_func
12083choke me
12084#endif
12085
12086int
12087main ()
12088{
12089return $ac_func ();
12090  ;
12091  return 0;
12092}
12093_ACEOF
12094rm -f conftest.$ac_objext conftest$ac_exeext
12095if { (ac_try="$ac_link"
12096case "(($ac_try" in
12097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098  *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101  (eval "$ac_link") 2>conftest.er1
12102  ac_status=$?
12103  grep -v '^ *+' conftest.er1 >conftest.err
12104  rm -f conftest.er1
12105  cat conftest.err >&5
12106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107  (exit $ac_status); } &&
12108	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109  { (case "(($ac_try" in
12110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111  *) ac_try_echo=$ac_try;;
12112esac
12113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114  (eval "$ac_try") 2>&5
12115  ac_status=$?
12116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117  (exit $ac_status); }; } &&
12118	 { ac_try='test -s conftest$ac_exeext'
12119  { (case "(($ac_try" in
12120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121  *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124  (eval "$ac_try") 2>&5
12125  ac_status=$?
12126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127  (exit $ac_status); }; }; then
12128  eval "$as_ac_var=yes"
12129else
12130  echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133	eval "$as_ac_var=no"
12134fi
12135
12136rm -f core conftest.err conftest.$ac_objext \
12137      conftest$ac_exeext conftest.$ac_ext
12138fi
12139ac_res=`eval echo '${'$as_ac_var'}'`
12140	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12141echo "${ECHO_T}$ac_res" >&6; }
12142if test `eval echo '${'$as_ac_var'}'` = yes; then
12143  cat >>confdefs.h <<_ACEOF
12144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145_ACEOF
12146
12147fi
12148done
12149
12150
12151
12152{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12153echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12154
12155ICC=no
12156IXX=no
12157case $CC in
12158  icc*|icpc*)
12159    ICC=yes
12160    IXX=yes
12161    ;;
12162   *)
12163    ;;
12164esac
12165
12166if test "$GCC" != "yes" && test "$ICC" != "yes"
12167then
12168  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169echo "$as_me: error: gcc|icc required but not found" >&2;}
12170   { (exit 1); exit 1; }; }
12171fi
12172
12173if test "$GXX" != "yes" && test "$IXX" != "yes"
12174then
12175  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12177   { (exit 1); exit 1; }; }
12178fi
12179
12180if test "$GCC" = "yes"
12181then
12182  cat >conftest.$ac_ext <<_ACEOF
12183#if !defined(__GNUC__) || __GNUC__ < 3
12184#error Unsupported GCC version
12185#endif
12186
12187_ACEOF
12188rm -f conftest.$ac_objext
12189if { (ac_try="$ac_compile"
12190case "(($ac_try" in
12191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192  *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195  (eval "$ac_compile") 2>conftest.er1
12196  ac_status=$?
12197  grep -v '^ *+' conftest.er1 >conftest.err
12198  rm -f conftest.er1
12199  cat conftest.err >&5
12200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201  (exit $ac_status); } &&
12202	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203  { (case "(($ac_try" in
12204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205  *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208  (eval "$ac_try") 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); }; } &&
12212	 { ac_try='test -s conftest.$ac_objext'
12213  { (case "(($ac_try" in
12214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215  *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218  (eval "$ac_try") 2>&5
12219  ac_status=$?
12220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221  (exit $ac_status); }; }; then
12222  :
12223else
12224  echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12228echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12229   { (exit 1); exit 1; }; }
12230fi
12231
12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233fi
12234
12235if test -z "$llvm_cv_gnu_make_command"
12236then
12237  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12238echo "$as_me: error: GNU Make required but not found" >&2;}
12239   { (exit 1); exit 1; }; }
12240fi
12241
12242{ echo "$as_me:$LINENO: result: ok" >&5
12243echo "${ECHO_T}ok" >&6; }
12244
12245{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12246echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12247NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12248
12249NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12250
12251{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12252echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12253
12254
12255
12256{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12257echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12258if test "${ac_cv_lib_m_sin+set}" = set; then
12259  echo $ECHO_N "(cached) $ECHO_C" >&6
12260else
12261  ac_check_lib_save_LIBS=$LIBS
12262LIBS="-lm  $LIBS"
12263cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h.  */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h.  */
12269
12270/* Override any GCC internal prototype to avoid an error.
12271   Use char because int might match the return type of a GCC
12272   builtin and then its argument prototype would still apply.  */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276char sin ();
12277int
12278main ()
12279{
12280return sin ();
12281  ;
12282  return 0;
12283}
12284_ACEOF
12285rm -f conftest.$ac_objext conftest$ac_exeext
12286if { (ac_try="$ac_link"
12287case "(($ac_try" in
12288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289  *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292  (eval "$ac_link") 2>conftest.er1
12293  ac_status=$?
12294  grep -v '^ *+' conftest.er1 >conftest.err
12295  rm -f conftest.er1
12296  cat conftest.err >&5
12297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298  (exit $ac_status); } &&
12299	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300  { (case "(($ac_try" in
12301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302  *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305  (eval "$ac_try") 2>&5
12306  ac_status=$?
12307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308  (exit $ac_status); }; } &&
12309	 { ac_try='test -s conftest$ac_exeext'
12310  { (case "(($ac_try" in
12311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312  *) ac_try_echo=$ac_try;;
12313esac
12314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315  (eval "$ac_try") 2>&5
12316  ac_status=$?
12317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318  (exit $ac_status); }; }; then
12319  ac_cv_lib_m_sin=yes
12320else
12321  echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324	ac_cv_lib_m_sin=no
12325fi
12326
12327rm -f core conftest.err conftest.$ac_objext \
12328      conftest$ac_exeext conftest.$ac_ext
12329LIBS=$ac_check_lib_save_LIBS
12330fi
12331{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12332echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12333if test $ac_cv_lib_m_sin = yes; then
12334  cat >>confdefs.h <<_ACEOF
12335#define HAVE_LIBM 1
12336_ACEOF
12337
12338  LIBS="-lm $LIBS"
12339
12340fi
12341
12342if test "$llvm_cv_os_type" = "MingW" ; then
12343
12344{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12345echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12346if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12347  echo $ECHO_N "(cached) $ECHO_C" >&6
12348else
12349  ac_check_lib_save_LIBS=$LIBS
12350LIBS="-limagehlp  $LIBS"
12351cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h.  */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
12356/* end confdefs.h.  */
12357
12358
12359int
12360main ()
12361{
12362return main ();
12363  ;
12364  return 0;
12365}
12366_ACEOF
12367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371  *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374  (eval "$ac_link") 2>conftest.er1
12375  ac_status=$?
12376  grep -v '^ *+' conftest.er1 >conftest.err
12377  rm -f conftest.er1
12378  cat conftest.err >&5
12379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380  (exit $ac_status); } &&
12381	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382  { (case "(($ac_try" in
12383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384  *) ac_try_echo=$ac_try;;
12385esac
12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387  (eval "$ac_try") 2>&5
12388  ac_status=$?
12389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390  (exit $ac_status); }; } &&
12391	 { ac_try='test -s conftest$ac_exeext'
12392  { (case "(($ac_try" in
12393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394  *) ac_try_echo=$ac_try;;
12395esac
12396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397  (eval "$ac_try") 2>&5
12398  ac_status=$?
12399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400  (exit $ac_status); }; }; then
12401  ac_cv_lib_imagehlp_main=yes
12402else
12403  echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406	ac_cv_lib_imagehlp_main=no
12407fi
12408
12409rm -f core conftest.err conftest.$ac_objext \
12410      conftest$ac_exeext conftest.$ac_ext
12411LIBS=$ac_check_lib_save_LIBS
12412fi
12413{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12414echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12415if test $ac_cv_lib_imagehlp_main = yes; then
12416  cat >>confdefs.h <<_ACEOF
12417#define HAVE_LIBIMAGEHLP 1
12418_ACEOF
12419
12420  LIBS="-limagehlp $LIBS"
12421
12422fi
12423
12424
12425{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12426echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12427if test "${ac_cv_lib_psapi_main+set}" = set; then
12428  echo $ECHO_N "(cached) $ECHO_C" >&6
12429else
12430  ac_check_lib_save_LIBS=$LIBS
12431LIBS="-lpsapi  $LIBS"
12432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h.  */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h.  */
12438
12439
12440int
12441main ()
12442{
12443return main ();
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448rm -f conftest.$ac_objext conftest$ac_exeext
12449if { (ac_try="$ac_link"
12450case "(($ac_try" in
12451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452  *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455  (eval "$ac_link") 2>conftest.er1
12456  ac_status=$?
12457  grep -v '^ *+' conftest.er1 >conftest.err
12458  rm -f conftest.er1
12459  cat conftest.err >&5
12460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461  (exit $ac_status); } &&
12462	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463  { (case "(($ac_try" in
12464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465  *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468  (eval "$ac_try") 2>&5
12469  ac_status=$?
12470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471  (exit $ac_status); }; } &&
12472	 { ac_try='test -s conftest$ac_exeext'
12473  { (case "(($ac_try" in
12474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475  *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478  (eval "$ac_try") 2>&5
12479  ac_status=$?
12480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481  (exit $ac_status); }; }; then
12482  ac_cv_lib_psapi_main=yes
12483else
12484  echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487	ac_cv_lib_psapi_main=no
12488fi
12489
12490rm -f core conftest.err conftest.$ac_objext \
12491      conftest$ac_exeext conftest.$ac_ext
12492LIBS=$ac_check_lib_save_LIBS
12493fi
12494{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12495echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12496if test $ac_cv_lib_psapi_main = yes; then
12497  cat >>confdefs.h <<_ACEOF
12498#define HAVE_LIBPSAPI 1
12499_ACEOF
12500
12501  LIBS="-lpsapi $LIBS"
12502
12503fi
12504
12505fi
12506
12507{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12508echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12509if test "${ac_cv_search_dlopen+set}" = set; then
12510  echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512  ac_func_search_save_LIBS=$LIBS
12513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h.  */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h.  */
12519
12520/* Override any GCC internal prototype to avoid an error.
12521   Use char because int might match the return type of a GCC
12522   builtin and then its argument prototype would still apply.  */
12523#ifdef __cplusplus
12524extern "C"
12525#endif
12526char dlopen ();
12527int
12528main ()
12529{
12530return dlopen ();
12531  ;
12532  return 0;
12533}
12534_ACEOF
12535for ac_lib in '' dl; do
12536  if test -z "$ac_lib"; then
12537    ac_res="none required"
12538  else
12539    ac_res=-l$ac_lib
12540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12541  fi
12542  rm -f conftest.$ac_objext conftest$ac_exeext
12543if { (ac_try="$ac_link"
12544case "(($ac_try" in
12545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546  *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549  (eval "$ac_link") 2>conftest.er1
12550  ac_status=$?
12551  grep -v '^ *+' conftest.er1 >conftest.err
12552  rm -f conftest.er1
12553  cat conftest.err >&5
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); } &&
12556	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557  { (case "(($ac_try" in
12558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559  *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562  (eval "$ac_try") 2>&5
12563  ac_status=$?
12564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565  (exit $ac_status); }; } &&
12566	 { ac_try='test -s conftest$ac_exeext'
12567  { (case "(($ac_try" in
12568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569  *) ac_try_echo=$ac_try;;
12570esac
12571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572  (eval "$ac_try") 2>&5
12573  ac_status=$?
12574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); }; }; then
12576  ac_cv_search_dlopen=$ac_res
12577else
12578  echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581
12582fi
12583
12584rm -f core conftest.err conftest.$ac_objext \
12585      conftest$ac_exeext
12586  if test "${ac_cv_search_dlopen+set}" = set; then
12587  break
12588fi
12589done
12590if test "${ac_cv_search_dlopen+set}" = set; then
12591  :
12592else
12593  ac_cv_search_dlopen=no
12594fi
12595rm conftest.$ac_ext
12596LIBS=$ac_func_search_save_LIBS
12597fi
12598{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12599echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12600ac_res=$ac_cv_search_dlopen
12601if test "$ac_res" != no; then
12602  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12603
12604cat >>confdefs.h <<\_ACEOF
12605#define HAVE_DLOPEN 1
12606_ACEOF
12607
12608else
12609  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12610echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12611fi
12612
12613
12614if test "$llvm_cv_enable_libffi" = "yes" ; then
12615  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12616echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12617if test "${ac_cv_search_ffi_call+set}" = set; then
12618  echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620  ac_func_search_save_LIBS=$LIBS
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h.  */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h.  */
12627
12628/* Override any GCC internal prototype to avoid an error.
12629   Use char because int might match the return type of a GCC
12630   builtin and then its argument prototype would still apply.  */
12631#ifdef __cplusplus
12632extern "C"
12633#endif
12634char ffi_call ();
12635int
12636main ()
12637{
12638return ffi_call ();
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643for ac_lib in '' ffi; do
12644  if test -z "$ac_lib"; then
12645    ac_res="none required"
12646  else
12647    ac_res=-l$ac_lib
12648    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12649  fi
12650  rm -f conftest.$ac_objext conftest$ac_exeext
12651if { (ac_try="$ac_link"
12652case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657  (eval "$ac_link") 2>conftest.er1
12658  ac_status=$?
12659  grep -v '^ *+' conftest.er1 >conftest.err
12660  rm -f conftest.er1
12661  cat conftest.err >&5
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); } &&
12664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12665  { (case "(($ac_try" in
12666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667  *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670  (eval "$ac_try") 2>&5
12671  ac_status=$?
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); }; } &&
12674	 { ac_try='test -s conftest$ac_exeext'
12675  { (case "(($ac_try" in
12676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677  *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680  (eval "$ac_try") 2>&5
12681  ac_status=$?
12682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683  (exit $ac_status); }; }; then
12684  ac_cv_search_ffi_call=$ac_res
12685else
12686  echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689
12690fi
12691
12692rm -f core conftest.err conftest.$ac_objext \
12693      conftest$ac_exeext
12694  if test "${ac_cv_search_ffi_call+set}" = set; then
12695  break
12696fi
12697done
12698if test "${ac_cv_search_ffi_call+set}" = set; then
12699  :
12700else
12701  ac_cv_search_ffi_call=no
12702fi
12703rm conftest.$ac_ext
12704LIBS=$ac_func_search_save_LIBS
12705fi
12706{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12707echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12708ac_res=$ac_cv_search_ffi_call
12709if test "$ac_res" != no; then
12710  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12711
12712cat >>confdefs.h <<\_ACEOF
12713#define HAVE_FFI_CALL 1
12714_ACEOF
12715
12716else
12717  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12718echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12719   { (exit 1); exit 1; }; }
12720fi
12721
12722fi
12723
12724{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12725echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12726if test "${ac_cv_search_mallinfo+set}" = set; then
12727  echo $ECHO_N "(cached) $ECHO_C" >&6
12728else
12729  ac_func_search_save_LIBS=$LIBS
12730cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h.  */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h.  */
12736
12737/* Override any GCC internal prototype to avoid an error.
12738   Use char because int might match the return type of a GCC
12739   builtin and then its argument prototype would still apply.  */
12740#ifdef __cplusplus
12741extern "C"
12742#endif
12743char mallinfo ();
12744int
12745main ()
12746{
12747return mallinfo ();
12748  ;
12749  return 0;
12750}
12751_ACEOF
12752for ac_lib in '' malloc; do
12753  if test -z "$ac_lib"; then
12754    ac_res="none required"
12755  else
12756    ac_res=-l$ac_lib
12757    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12758  fi
12759  rm -f conftest.$ac_objext conftest$ac_exeext
12760if { (ac_try="$ac_link"
12761case "(($ac_try" in
12762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763  *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766  (eval "$ac_link") 2>conftest.er1
12767  ac_status=$?
12768  grep -v '^ *+' conftest.er1 >conftest.err
12769  rm -f conftest.er1
12770  cat conftest.err >&5
12771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772  (exit $ac_status); } &&
12773	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774  { (case "(($ac_try" in
12775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776  *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779  (eval "$ac_try") 2>&5
12780  ac_status=$?
12781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782  (exit $ac_status); }; } &&
12783	 { ac_try='test -s conftest$ac_exeext'
12784  { (case "(($ac_try" in
12785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786  *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789  (eval "$ac_try") 2>&5
12790  ac_status=$?
12791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792  (exit $ac_status); }; }; then
12793  ac_cv_search_mallinfo=$ac_res
12794else
12795  echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798
12799fi
12800
12801rm -f core conftest.err conftest.$ac_objext \
12802      conftest$ac_exeext
12803  if test "${ac_cv_search_mallinfo+set}" = set; then
12804  break
12805fi
12806done
12807if test "${ac_cv_search_mallinfo+set}" = set; then
12808  :
12809else
12810  ac_cv_search_mallinfo=no
12811fi
12812rm conftest.$ac_ext
12813LIBS=$ac_func_search_save_LIBS
12814fi
12815{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12816echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12817ac_res=$ac_cv_search_mallinfo
12818if test "$ac_res" != no; then
12819  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12820
12821cat >>confdefs.h <<\_ACEOF
12822#define HAVE_MALLINFO 1
12823_ACEOF
12824
12825fi
12826
12827
12828if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12829
12830{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12831echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12832if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12833  echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835  ac_check_lib_save_LIBS=$LIBS
12836LIBS="-lpthread  $LIBS"
12837cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h.  */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h.  */
12843
12844/* Override any GCC internal prototype to avoid an error.
12845   Use char because int might match the return type of a GCC
12846   builtin and then its argument prototype would still apply.  */
12847#ifdef __cplusplus
12848extern "C"
12849#endif
12850char pthread_mutex_init ();
12851int
12852main ()
12853{
12854return pthread_mutex_init ();
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (ac_try="$ac_link"
12861case "(($ac_try" in
12862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863  *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866  (eval "$ac_link") 2>conftest.er1
12867  ac_status=$?
12868  grep -v '^ *+' conftest.er1 >conftest.err
12869  rm -f conftest.er1
12870  cat conftest.err >&5
12871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872  (exit $ac_status); } &&
12873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874  { (case "(($ac_try" in
12875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876  *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879  (eval "$ac_try") 2>&5
12880  ac_status=$?
12881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882  (exit $ac_status); }; } &&
12883	 { ac_try='test -s conftest$ac_exeext'
12884  { (case "(($ac_try" in
12885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886  *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889  (eval "$ac_try") 2>&5
12890  ac_status=$?
12891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892  (exit $ac_status); }; }; then
12893  ac_cv_lib_pthread_pthread_mutex_init=yes
12894else
12895  echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898	ac_cv_lib_pthread_pthread_mutex_init=no
12899fi
12900
12901rm -f core conftest.err conftest.$ac_objext \
12902      conftest$ac_exeext conftest.$ac_ext
12903LIBS=$ac_check_lib_save_LIBS
12904fi
12905{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12906echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12907if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12908  cat >>confdefs.h <<_ACEOF
12909#define HAVE_LIBPTHREAD 1
12910_ACEOF
12911
12912  LIBS="-lpthread $LIBS"
12913
12914fi
12915
12916  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12917echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12918if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919  echo $ECHO_N "(cached) $ECHO_C" >&6
12920else
12921  ac_func_search_save_LIBS=$LIBS
12922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h.  */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h.  */
12928
12929/* Override any GCC internal prototype to avoid an error.
12930   Use char because int might match the return type of a GCC
12931   builtin and then its argument prototype would still apply.  */
12932#ifdef __cplusplus
12933extern "C"
12934#endif
12935char pthread_mutex_lock ();
12936int
12937main ()
12938{
12939return pthread_mutex_lock ();
12940  ;
12941  return 0;
12942}
12943_ACEOF
12944for ac_lib in '' pthread; do
12945  if test -z "$ac_lib"; then
12946    ac_res="none required"
12947  else
12948    ac_res=-l$ac_lib
12949    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12950  fi
12951  rm -f conftest.$ac_objext conftest$ac_exeext
12952if { (ac_try="$ac_link"
12953case "(($ac_try" in
12954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955  *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958  (eval "$ac_link") 2>conftest.er1
12959  ac_status=$?
12960  grep -v '^ *+' conftest.er1 >conftest.err
12961  rm -f conftest.er1
12962  cat conftest.err >&5
12963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964  (exit $ac_status); } &&
12965	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12966  { (case "(($ac_try" in
12967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968  *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971  (eval "$ac_try") 2>&5
12972  ac_status=$?
12973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974  (exit $ac_status); }; } &&
12975	 { ac_try='test -s conftest$ac_exeext'
12976  { (case "(($ac_try" in
12977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978  *) ac_try_echo=$ac_try;;
12979esac
12980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981  (eval "$ac_try") 2>&5
12982  ac_status=$?
12983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984  (exit $ac_status); }; }; then
12985  ac_cv_search_pthread_mutex_lock=$ac_res
12986else
12987  echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991fi
12992
12993rm -f core conftest.err conftest.$ac_objext \
12994      conftest$ac_exeext
12995  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12996  break
12997fi
12998done
12999if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13000  :
13001else
13002  ac_cv_search_pthread_mutex_lock=no
13003fi
13004rm conftest.$ac_ext
13005LIBS=$ac_func_search_save_LIBS
13006fi
13007{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13008echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13009ac_res=$ac_cv_search_pthread_mutex_lock
13010if test "$ac_res" != no; then
13011  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13012
13013cat >>confdefs.h <<\_ACEOF
13014#define HAVE_PTHREAD_MUTEX_LOCK 1
13015_ACEOF
13016
13017fi
13018
13019  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13020echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13021if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022  echo $ECHO_N "(cached) $ECHO_C" >&6
13023else
13024  ac_func_search_save_LIBS=$LIBS
13025cat >conftest.$ac_ext <<_ACEOF
13026/* confdefs.h.  */
13027_ACEOF
13028cat confdefs.h >>conftest.$ac_ext
13029cat >>conftest.$ac_ext <<_ACEOF
13030/* end confdefs.h.  */
13031
13032/* Override any GCC internal prototype to avoid an error.
13033   Use char because int might match the return type of a GCC
13034   builtin and then its argument prototype would still apply.  */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038char pthread_rwlock_init ();
13039int
13040main ()
13041{
13042return pthread_rwlock_init ();
13043  ;
13044  return 0;
13045}
13046_ACEOF
13047for ac_lib in '' pthread; do
13048  if test -z "$ac_lib"; then
13049    ac_res="none required"
13050  else
13051    ac_res=-l$ac_lib
13052    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13053  fi
13054  rm -f conftest.$ac_objext conftest$ac_exeext
13055if { (ac_try="$ac_link"
13056case "(($ac_try" in
13057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058  *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061  (eval "$ac_link") 2>conftest.er1
13062  ac_status=$?
13063  grep -v '^ *+' conftest.er1 >conftest.err
13064  rm -f conftest.er1
13065  cat conftest.err >&5
13066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067  (exit $ac_status); } &&
13068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069  { (case "(($ac_try" in
13070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071  *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074  (eval "$ac_try") 2>&5
13075  ac_status=$?
13076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077  (exit $ac_status); }; } &&
13078	 { ac_try='test -s conftest$ac_exeext'
13079  { (case "(($ac_try" in
13080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081  *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084  (eval "$ac_try") 2>&5
13085  ac_status=$?
13086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087  (exit $ac_status); }; }; then
13088  ac_cv_search_pthread_rwlock_init=$ac_res
13089else
13090  echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
13094fi
13095
13096rm -f core conftest.err conftest.$ac_objext \
13097      conftest$ac_exeext
13098  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13099  break
13100fi
13101done
13102if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13103  :
13104else
13105  ac_cv_search_pthread_rwlock_init=no
13106fi
13107rm conftest.$ac_ext
13108LIBS=$ac_func_search_save_LIBS
13109fi
13110{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13111echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13112ac_res=$ac_cv_search_pthread_rwlock_init
13113if test "$ac_res" != no; then
13114  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define HAVE_PTHREAD_RWLOCK_INIT 1
13118_ACEOF
13119
13120fi
13121
13122  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13123echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13124if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125  echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127  ac_func_search_save_LIBS=$LIBS
13128cat >conftest.$ac_ext <<_ACEOF
13129/* confdefs.h.  */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h.  */
13134
13135/* Override any GCC internal prototype to avoid an error.
13136   Use char because int might match the return type of a GCC
13137   builtin and then its argument prototype would still apply.  */
13138#ifdef __cplusplus
13139extern "C"
13140#endif
13141char pthread_getspecific ();
13142int
13143main ()
13144{
13145return pthread_getspecific ();
13146  ;
13147  return 0;
13148}
13149_ACEOF
13150for ac_lib in '' pthread; do
13151  if test -z "$ac_lib"; then
13152    ac_res="none required"
13153  else
13154    ac_res=-l$ac_lib
13155    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13156  fi
13157  rm -f conftest.$ac_objext conftest$ac_exeext
13158if { (ac_try="$ac_link"
13159case "(($ac_try" in
13160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161  *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164  (eval "$ac_link") 2>conftest.er1
13165  ac_status=$?
13166  grep -v '^ *+' conftest.er1 >conftest.err
13167  rm -f conftest.er1
13168  cat conftest.err >&5
13169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170  (exit $ac_status); } &&
13171	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172  { (case "(($ac_try" in
13173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174  *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177  (eval "$ac_try") 2>&5
13178  ac_status=$?
13179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180  (exit $ac_status); }; } &&
13181	 { ac_try='test -s conftest$ac_exeext'
13182  { (case "(($ac_try" in
13183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184  *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187  (eval "$ac_try") 2>&5
13188  ac_status=$?
13189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190  (exit $ac_status); }; }; then
13191  ac_cv_search_pthread_getspecific=$ac_res
13192else
13193  echo "$as_me: failed program was:" >&5
13194sed 's/^/| /' conftest.$ac_ext >&5
13195
13196
13197fi
13198
13199rm -f core conftest.err conftest.$ac_objext \
13200      conftest$ac_exeext
13201  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13202  break
13203fi
13204done
13205if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13206  :
13207else
13208  ac_cv_search_pthread_getspecific=no
13209fi
13210rm conftest.$ac_ext
13211LIBS=$ac_func_search_save_LIBS
13212fi
13213{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13214echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13215ac_res=$ac_cv_search_pthread_getspecific
13216if test "$ac_res" != no; then
13217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13218
13219cat >>confdefs.h <<\_ACEOF
13220#define HAVE_PTHREAD_GETSPECIFIC 1
13221_ACEOF
13222
13223fi
13224
13225fi
13226
13227
13228# Check whether --with-udis86 was given.
13229if test "${with_udis86+set}" = set; then
13230  withval=$with_udis86;
13231      USE_UDIS86=1
13232
13233      case "$withval" in
13234        /usr/lib|yes) ;;
13235        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13236      esac
13237
13238{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13239echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13240if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13241  echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243  ac_check_lib_save_LIBS=$LIBS
13244LIBS="-ludis86  $LIBS"
13245cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h.  */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h.  */
13251
13252/* Override any GCC internal prototype to avoid an error.
13253   Use char because int might match the return type of a GCC
13254   builtin and then its argument prototype would still apply.  */
13255#ifdef __cplusplus
13256extern "C"
13257#endif
13258char ud_init ();
13259int
13260main ()
13261{
13262return ud_init ();
13263  ;
13264  return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext conftest$ac_exeext
13268if { (ac_try="$ac_link"
13269case "(($ac_try" in
13270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271  *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274  (eval "$ac_link") 2>conftest.er1
13275  ac_status=$?
13276  grep -v '^ *+' conftest.er1 >conftest.err
13277  rm -f conftest.er1
13278  cat conftest.err >&5
13279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); } &&
13281	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282  { (case "(($ac_try" in
13283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284  *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287  (eval "$ac_try") 2>&5
13288  ac_status=$?
13289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290  (exit $ac_status); }; } &&
13291	 { ac_try='test -s conftest$ac_exeext'
13292  { (case "(($ac_try" in
13293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294  *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297  (eval "$ac_try") 2>&5
13298  ac_status=$?
13299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300  (exit $ac_status); }; }; then
13301  ac_cv_lib_udis86_ud_init=yes
13302else
13303  echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306	ac_cv_lib_udis86_ud_init=no
13307fi
13308
13309rm -f core conftest.err conftest.$ac_objext \
13310      conftest$ac_exeext conftest.$ac_ext
13311LIBS=$ac_check_lib_save_LIBS
13312fi
13313{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13314echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13315if test $ac_cv_lib_udis86_ud_init = yes; then
13316  cat >>confdefs.h <<_ACEOF
13317#define HAVE_LIBUDIS86 1
13318_ACEOF
13319
13320  LIBS="-ludis86 $LIBS"
13321
13322else
13323
13324        echo "Error! You need to have libudis86 around."
13325        exit -1
13326
13327fi
13328
13329
13330else
13331  USE_UDIS86=0
13332
13333fi
13334
13335
13336cat >>confdefs.h <<_ACEOF
13337#define USE_UDIS86 $USE_UDIS86
13338_ACEOF
13339
13340
13341
13342# Check whether --with-oprofile was given.
13343if test "${with_oprofile+set}" = set; then
13344  withval=$with_oprofile;
13345      USE_OPROFILE=1
13346
13347      case "$withval" in
13348        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13349        no) llvm_cv_oppath=
13350            USE_OPROFILE=0
13351 ;;
13352        *) llvm_cv_oppath="${withval}/lib/oprofile"
13353           CPPFLAGS="-I${withval}/include";;
13354      esac
13355      if test -n "$llvm_cv_oppath" ; then
13356        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13357                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13358echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13359if test "${ac_cv_search_bfd_init+set}" = set; then
13360  echo $ECHO_N "(cached) $ECHO_C" >&6
13361else
13362  ac_func_search_save_LIBS=$LIBS
13363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h.  */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h.  */
13369
13370/* Override any GCC internal prototype to avoid an error.
13371   Use char because int might match the return type of a GCC
13372   builtin and then its argument prototype would still apply.  */
13373#ifdef __cplusplus
13374extern "C"
13375#endif
13376char bfd_init ();
13377int
13378main ()
13379{
13380return bfd_init ();
13381  ;
13382  return 0;
13383}
13384_ACEOF
13385for ac_lib in '' bfd; do
13386  if test -z "$ac_lib"; then
13387    ac_res="none required"
13388  else
13389    ac_res=-l$ac_lib
13390    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13391  fi
13392  rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (ac_try="$ac_link"
13394case "(($ac_try" in
13395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396  *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399  (eval "$ac_link") 2>conftest.er1
13400  ac_status=$?
13401  grep -v '^ *+' conftest.er1 >conftest.err
13402  rm -f conftest.er1
13403  cat conftest.err >&5
13404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405  (exit $ac_status); } &&
13406	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407  { (case "(($ac_try" in
13408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409  *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412  (eval "$ac_try") 2>&5
13413  ac_status=$?
13414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); }; } &&
13416	 { ac_try='test -s conftest$ac_exeext'
13417  { (case "(($ac_try" in
13418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419  *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422  (eval "$ac_try") 2>&5
13423  ac_status=$?
13424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425  (exit $ac_status); }; }; then
13426  ac_cv_search_bfd_init=$ac_res
13427else
13428  echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
13432fi
13433
13434rm -f core conftest.err conftest.$ac_objext \
13435      conftest$ac_exeext
13436  if test "${ac_cv_search_bfd_init+set}" = set; then
13437  break
13438fi
13439done
13440if test "${ac_cv_search_bfd_init+set}" = set; then
13441  :
13442else
13443  ac_cv_search_bfd_init=no
13444fi
13445rm conftest.$ac_ext
13446LIBS=$ac_func_search_save_LIBS
13447fi
13448{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13449echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13450ac_res=$ac_cv_search_bfd_init
13451if test "$ac_res" != no; then
13452  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454fi
13455
13456        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13457echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13458if test "${ac_cv_search_op_open_agent+set}" = set; then
13459  echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461  ac_func_search_save_LIBS=$LIBS
13462cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h.  */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h.  */
13468
13469/* Override any GCC internal prototype to avoid an error.
13470   Use char because int might match the return type of a GCC
13471   builtin and then its argument prototype would still apply.  */
13472#ifdef __cplusplus
13473extern "C"
13474#endif
13475char op_open_agent ();
13476int
13477main ()
13478{
13479return op_open_agent ();
13480  ;
13481  return 0;
13482}
13483_ACEOF
13484for ac_lib in '' opagent; do
13485  if test -z "$ac_lib"; then
13486    ac_res="none required"
13487  else
13488    ac_res=-l$ac_lib
13489    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13490  fi
13491  rm -f conftest.$ac_objext conftest$ac_exeext
13492if { (ac_try="$ac_link"
13493case "(($ac_try" in
13494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495  *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498  (eval "$ac_link") 2>conftest.er1
13499  ac_status=$?
13500  grep -v '^ *+' conftest.er1 >conftest.err
13501  rm -f conftest.er1
13502  cat conftest.err >&5
13503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504  (exit $ac_status); } &&
13505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506  { (case "(($ac_try" in
13507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508  *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511  (eval "$ac_try") 2>&5
13512  ac_status=$?
13513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514  (exit $ac_status); }; } &&
13515	 { ac_try='test -s conftest$ac_exeext'
13516  { (case "(($ac_try" in
13517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518  *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521  (eval "$ac_try") 2>&5
13522  ac_status=$?
13523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524  (exit $ac_status); }; }; then
13525  ac_cv_search_op_open_agent=$ac_res
13526else
13527  echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530
13531fi
13532
13533rm -f core conftest.err conftest.$ac_objext \
13534      conftest$ac_exeext
13535  if test "${ac_cv_search_op_open_agent+set}" = set; then
13536  break
13537fi
13538done
13539if test "${ac_cv_search_op_open_agent+set}" = set; then
13540  :
13541else
13542  ac_cv_search_op_open_agent=no
13543fi
13544rm conftest.$ac_ext
13545LIBS=$ac_func_search_save_LIBS
13546fi
13547{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13548echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13549ac_res=$ac_cv_search_op_open_agent
13550if test "$ac_res" != no; then
13551  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13552
13553else
13554
13555          echo "Error! You need to have libopagent around."
13556          exit -1
13557
13558fi
13559
13560        if test "${ac_cv_header_opagent_h+set}" = set; then
13561  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563if test "${ac_cv_header_opagent_h+set}" = set; then
13564  echo $ECHO_N "(cached) $ECHO_C" >&6
13565fi
13566{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13568else
13569  # Is the header compilable?
13570{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13571echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13572cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h.  */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h.  */
13578$ac_includes_default
13579#include <opagent.h>
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (ac_try="$ac_compile"
13583case "(($ac_try" in
13584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585  *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588  (eval "$ac_compile") 2>conftest.er1
13589  ac_status=$?
13590  grep -v '^ *+' conftest.er1 >conftest.err
13591  rm -f conftest.er1
13592  cat conftest.err >&5
13593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594  (exit $ac_status); } &&
13595	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596  { (case "(($ac_try" in
13597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598  *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601  (eval "$ac_try") 2>&5
13602  ac_status=$?
13603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604  (exit $ac_status); }; } &&
13605	 { ac_try='test -s conftest.$ac_objext'
13606  { (case "(($ac_try" in
13607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608  *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611  (eval "$ac_try") 2>&5
13612  ac_status=$?
13613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614  (exit $ac_status); }; }; then
13615  ac_header_compiler=yes
13616else
13617  echo "$as_me: failed program was:" >&5
13618sed 's/^/| /' conftest.$ac_ext >&5
13619
13620	ac_header_compiler=no
13621fi
13622
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625echo "${ECHO_T}$ac_header_compiler" >&6; }
13626
13627# Is the header present?
13628{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13629echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13630cat >conftest.$ac_ext <<_ACEOF
13631/* confdefs.h.  */
13632_ACEOF
13633cat confdefs.h >>conftest.$ac_ext
13634cat >>conftest.$ac_ext <<_ACEOF
13635/* end confdefs.h.  */
13636#include <opagent.h>
13637_ACEOF
13638if { (ac_try="$ac_cpp conftest.$ac_ext"
13639case "(($ac_try" in
13640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641  *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13645  ac_status=$?
13646  grep -v '^ *+' conftest.er1 >conftest.err
13647  rm -f conftest.er1
13648  cat conftest.err >&5
13649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650  (exit $ac_status); } >/dev/null; then
13651  if test -s conftest.err; then
13652    ac_cpp_err=$ac_c_preproc_warn_flag
13653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654  else
13655    ac_cpp_err=
13656  fi
13657else
13658  ac_cpp_err=yes
13659fi
13660if test -z "$ac_cpp_err"; then
13661  ac_header_preproc=yes
13662else
13663  echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666  ac_header_preproc=no
13667fi
13668
13669rm -f conftest.err conftest.$ac_ext
13670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13671echo "${ECHO_T}$ac_header_preproc" >&6; }
13672
13673# So?  What about this header?
13674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675  yes:no: )
13676    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13677echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13678    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13679echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13680    ac_header_preproc=yes
13681    ;;
13682  no:yes:* )
13683    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13684echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13685    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13686echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13687    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13688echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13689    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13690echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13691    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13692echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13693    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13694echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13695    ( cat <<\_ASBOX
13696## ----------------------------------- ##
13697## Report this to llvmbugs@cs.uiuc.edu ##
13698## ----------------------------------- ##
13699_ASBOX
13700     ) | sed "s/^/$as_me: WARNING:     /" >&2
13701    ;;
13702esac
13703{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13704echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13705if test "${ac_cv_header_opagent_h+set}" = set; then
13706  echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708  ac_cv_header_opagent_h=$ac_header_preproc
13709fi
13710{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13711echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13712
13713fi
13714if test $ac_cv_header_opagent_h = yes; then
13715  :
13716else
13717
13718          echo "Error! You need to have opagent.h around."
13719          exit -1
13720
13721fi
13722
13723
13724      fi
13725
13726else
13727
13728      USE_OPROFILE=0
13729
13730
13731fi
13732
13733
13734cat >>confdefs.h <<_ACEOF
13735#define USE_OPROFILE $USE_OPROFILE
13736_ACEOF
13737
13738
13739
13740
13741
13742
13743
13744
13745ac_header_dirent=no
13746for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13747  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13748{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13749echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13751  echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753  cat >conftest.$ac_ext <<_ACEOF
13754/* confdefs.h.  */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h.  */
13759#include <sys/types.h>
13760#include <$ac_hdr>
13761
13762int
13763main ()
13764{
13765if ((DIR *) 0)
13766return 0;
13767  ;
13768  return 0;
13769}
13770_ACEOF
13771rm -f conftest.$ac_objext
13772if { (ac_try="$ac_compile"
13773case "(($ac_try" in
13774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775  *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778  (eval "$ac_compile") 2>conftest.er1
13779  ac_status=$?
13780  grep -v '^ *+' conftest.er1 >conftest.err
13781  rm -f conftest.er1
13782  cat conftest.err >&5
13783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784  (exit $ac_status); } &&
13785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13786  { (case "(($ac_try" in
13787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788  *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791  (eval "$ac_try") 2>&5
13792  ac_status=$?
13793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794  (exit $ac_status); }; } &&
13795	 { ac_try='test -s conftest.$ac_objext'
13796  { (case "(($ac_try" in
13797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798  *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801  (eval "$ac_try") 2>&5
13802  ac_status=$?
13803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804  (exit $ac_status); }; }; then
13805  eval "$as_ac_Header=yes"
13806else
13807  echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810	eval "$as_ac_Header=no"
13811fi
13812
13813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814fi
13815ac_res=`eval echo '${'$as_ac_Header'}'`
13816	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13817echo "${ECHO_T}$ac_res" >&6; }
13818if test `eval echo '${'$as_ac_Header'}'` = yes; then
13819  cat >>confdefs.h <<_ACEOF
13820#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13821_ACEOF
13822
13823ac_header_dirent=$ac_hdr; break
13824fi
13825
13826done
13827# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13828if test $ac_header_dirent = dirent.h; then
13829  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13830echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13831if test "${ac_cv_search_opendir+set}" = set; then
13832  echo $ECHO_N "(cached) $ECHO_C" >&6
13833else
13834  ac_func_search_save_LIBS=$LIBS
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h.  */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h.  */
13841
13842/* Override any GCC internal prototype to avoid an error.
13843   Use char because int might match the return type of a GCC
13844   builtin and then its argument prototype would still apply.  */
13845#ifdef __cplusplus
13846extern "C"
13847#endif
13848char opendir ();
13849int
13850main ()
13851{
13852return opendir ();
13853  ;
13854  return 0;
13855}
13856_ACEOF
13857for ac_lib in '' dir; do
13858  if test -z "$ac_lib"; then
13859    ac_res="none required"
13860  else
13861    ac_res=-l$ac_lib
13862    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13863  fi
13864  rm -f conftest.$ac_objext conftest$ac_exeext
13865if { (ac_try="$ac_link"
13866case "(($ac_try" in
13867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868  *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871  (eval "$ac_link") 2>conftest.er1
13872  ac_status=$?
13873  grep -v '^ *+' conftest.er1 >conftest.err
13874  rm -f conftest.er1
13875  cat conftest.err >&5
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); } &&
13878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879  { (case "(($ac_try" in
13880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881  *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884  (eval "$ac_try") 2>&5
13885  ac_status=$?
13886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887  (exit $ac_status); }; } &&
13888	 { ac_try='test -s conftest$ac_exeext'
13889  { (case "(($ac_try" in
13890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891  *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894  (eval "$ac_try") 2>&5
13895  ac_status=$?
13896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897  (exit $ac_status); }; }; then
13898  ac_cv_search_opendir=$ac_res
13899else
13900  echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903
13904fi
13905
13906rm -f core conftest.err conftest.$ac_objext \
13907      conftest$ac_exeext
13908  if test "${ac_cv_search_opendir+set}" = set; then
13909  break
13910fi
13911done
13912if test "${ac_cv_search_opendir+set}" = set; then
13913  :
13914else
13915  ac_cv_search_opendir=no
13916fi
13917rm conftest.$ac_ext
13918LIBS=$ac_func_search_save_LIBS
13919fi
13920{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13921echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13922ac_res=$ac_cv_search_opendir
13923if test "$ac_res" != no; then
13924  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925
13926fi
13927
13928else
13929  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13930echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13931if test "${ac_cv_search_opendir+set}" = set; then
13932  echo $ECHO_N "(cached) $ECHO_C" >&6
13933else
13934  ac_func_search_save_LIBS=$LIBS
13935cat >conftest.$ac_ext <<_ACEOF
13936/* confdefs.h.  */
13937_ACEOF
13938cat confdefs.h >>conftest.$ac_ext
13939cat >>conftest.$ac_ext <<_ACEOF
13940/* end confdefs.h.  */
13941
13942/* Override any GCC internal prototype to avoid an error.
13943   Use char because int might match the return type of a GCC
13944   builtin and then its argument prototype would still apply.  */
13945#ifdef __cplusplus
13946extern "C"
13947#endif
13948char opendir ();
13949int
13950main ()
13951{
13952return opendir ();
13953  ;
13954  return 0;
13955}
13956_ACEOF
13957for ac_lib in '' x; do
13958  if test -z "$ac_lib"; then
13959    ac_res="none required"
13960  else
13961    ac_res=-l$ac_lib
13962    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13963  fi
13964  rm -f conftest.$ac_objext conftest$ac_exeext
13965if { (ac_try="$ac_link"
13966case "(($ac_try" in
13967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968  *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971  (eval "$ac_link") 2>conftest.er1
13972  ac_status=$?
13973  grep -v '^ *+' conftest.er1 >conftest.err
13974  rm -f conftest.er1
13975  cat conftest.err >&5
13976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977  (exit $ac_status); } &&
13978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979  { (case "(($ac_try" in
13980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981  *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984  (eval "$ac_try") 2>&5
13985  ac_status=$?
13986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987  (exit $ac_status); }; } &&
13988	 { ac_try='test -s conftest$ac_exeext'
13989  { (case "(($ac_try" in
13990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991  *) ac_try_echo=$ac_try;;
13992esac
13993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994  (eval "$ac_try") 2>&5
13995  ac_status=$?
13996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); }; }; then
13998  ac_cv_search_opendir=$ac_res
13999else
14000  echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
14004fi
14005
14006rm -f core conftest.err conftest.$ac_objext \
14007      conftest$ac_exeext
14008  if test "${ac_cv_search_opendir+set}" = set; then
14009  break
14010fi
14011done
14012if test "${ac_cv_search_opendir+set}" = set; then
14013  :
14014else
14015  ac_cv_search_opendir=no
14016fi
14017rm conftest.$ac_ext
14018LIBS=$ac_func_search_save_LIBS
14019fi
14020{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14021echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14022ac_res=$ac_cv_search_opendir
14023if test "$ac_res" != no; then
14024  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14025
14026fi
14027
14028fi
14029
14030{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14031echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14032if test "${ac_cv_header_mmap_anon+set}" = set; then
14033  echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035   ac_ext=c
14036ac_cpp='$CPP $CPPFLAGS'
14037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
14041  cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h.  */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h.  */
14047#include <sys/mman.h>
14048#include <unistd.h>
14049#include <fcntl.h>
14050int
14051main ()
14052{
14053mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14054  ;
14055  return 0;
14056}
14057_ACEOF
14058rm -f conftest.$ac_objext
14059if { (ac_try="$ac_compile"
14060case "(($ac_try" in
14061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062  *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065  (eval "$ac_compile") 2>conftest.er1
14066  ac_status=$?
14067  grep -v '^ *+' conftest.er1 >conftest.err
14068  rm -f conftest.er1
14069  cat conftest.err >&5
14070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071  (exit $ac_status); } &&
14072	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073  { (case "(($ac_try" in
14074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075  *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078  (eval "$ac_try") 2>&5
14079  ac_status=$?
14080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081  (exit $ac_status); }; } &&
14082	 { ac_try='test -s conftest.$ac_objext'
14083  { (case "(($ac_try" in
14084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085  *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088  (eval "$ac_try") 2>&5
14089  ac_status=$?
14090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091  (exit $ac_status); }; }; then
14092  ac_cv_header_mmap_anon=yes
14093else
14094  echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097	ac_cv_header_mmap_anon=no
14098fi
14099
14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101  ac_ext=c
14102ac_cpp='$CPP $CPPFLAGS'
14103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107
14108fi
14109{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14110echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14111if test "$ac_cv_header_mmap_anon" = yes; then
14112
14113cat >>confdefs.h <<\_ACEOF
14114#define HAVE_MMAP_ANONYMOUS 1
14115_ACEOF
14116
14117fi
14118
14119{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14120echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14121if test "${ac_cv_header_stat_broken+set}" = set; then
14122  echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124  cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h.  */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h.  */
14130#include <sys/types.h>
14131#include <sys/stat.h>
14132
14133#if defined S_ISBLK && defined S_IFDIR
14134# if S_ISBLK (S_IFDIR)
14135You lose.
14136# endif
14137#endif
14138
14139#if defined S_ISBLK && defined S_IFCHR
14140# if S_ISBLK (S_IFCHR)
14141You lose.
14142# endif
14143#endif
14144
14145#if defined S_ISLNK && defined S_IFREG
14146# if S_ISLNK (S_IFREG)
14147You lose.
14148# endif
14149#endif
14150
14151#if defined S_ISSOCK && defined S_IFREG
14152# if S_ISSOCK (S_IFREG)
14153You lose.
14154# endif
14155#endif
14156
14157_ACEOF
14158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14159  $EGREP "You lose" >/dev/null 2>&1; then
14160  ac_cv_header_stat_broken=yes
14161else
14162  ac_cv_header_stat_broken=no
14163fi
14164rm -f conftest*
14165
14166fi
14167{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14168echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14169if test $ac_cv_header_stat_broken = yes; then
14170
14171cat >>confdefs.h <<\_ACEOF
14172#define STAT_MACROS_BROKEN 1
14173_ACEOF
14174
14175fi
14176
14177{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14178echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14179if test "${ac_cv_header_sys_wait_h+set}" = set; then
14180  echo $ECHO_N "(cached) $ECHO_C" >&6
14181else
14182  cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h.  */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
14187/* end confdefs.h.  */
14188#include <sys/types.h>
14189#include <sys/wait.h>
14190#ifndef WEXITSTATUS
14191# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14192#endif
14193#ifndef WIFEXITED
14194# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14195#endif
14196
14197int
14198main ()
14199{
14200  int s;
14201  wait (&s);
14202  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14203  ;
14204  return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (ac_try="$ac_compile"
14209case "(($ac_try" in
14210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211  *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214  (eval "$ac_compile") 2>conftest.er1
14215  ac_status=$?
14216  grep -v '^ *+' conftest.er1 >conftest.err
14217  rm -f conftest.er1
14218  cat conftest.err >&5
14219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220  (exit $ac_status); } &&
14221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222  { (case "(($ac_try" in
14223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224  *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227  (eval "$ac_try") 2>&5
14228  ac_status=$?
14229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230  (exit $ac_status); }; } &&
14231	 { ac_try='test -s conftest.$ac_objext'
14232  { (case "(($ac_try" in
14233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234  *) ac_try_echo=$ac_try;;
14235esac
14236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237  (eval "$ac_try") 2>&5
14238  ac_status=$?
14239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240  (exit $ac_status); }; }; then
14241  ac_cv_header_sys_wait_h=yes
14242else
14243  echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246	ac_cv_header_sys_wait_h=no
14247fi
14248
14249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250fi
14251{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14252echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14253if test $ac_cv_header_sys_wait_h = yes; then
14254
14255cat >>confdefs.h <<\_ACEOF
14256#define HAVE_SYS_WAIT_H 1
14257_ACEOF
14258
14259fi
14260
14261{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14262echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14263if test "${ac_cv_header_time+set}" = set; then
14264  echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266  cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h.  */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h.  */
14272#include <sys/types.h>
14273#include <sys/time.h>
14274#include <time.h>
14275
14276int
14277main ()
14278{
14279if ((struct tm *) 0)
14280return 0;
14281  ;
14282  return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext
14286if { (ac_try="$ac_compile"
14287case "(($ac_try" in
14288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289  *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292  (eval "$ac_compile") 2>conftest.er1
14293  ac_status=$?
14294  grep -v '^ *+' conftest.er1 >conftest.err
14295  rm -f conftest.er1
14296  cat conftest.err >&5
14297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298  (exit $ac_status); } &&
14299	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300  { (case "(($ac_try" in
14301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302  *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305  (eval "$ac_try") 2>&5
14306  ac_status=$?
14307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308  (exit $ac_status); }; } &&
14309	 { ac_try='test -s conftest.$ac_objext'
14310  { (case "(($ac_try" in
14311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312  *) ac_try_echo=$ac_try;;
14313esac
14314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315  (eval "$ac_try") 2>&5
14316  ac_status=$?
14317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318  (exit $ac_status); }; }; then
14319  ac_cv_header_time=yes
14320else
14321  echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324	ac_cv_header_time=no
14325fi
14326
14327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328fi
14329{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14330echo "${ECHO_T}$ac_cv_header_time" >&6; }
14331if test $ac_cv_header_time = yes; then
14332
14333cat >>confdefs.h <<\_ACEOF
14334#define TIME_WITH_SYS_TIME 1
14335_ACEOF
14336
14337fi
14338
14339
14340
14341
14342
14343
14344
14345
14346for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14347do
14348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353  echo $ECHO_N "(cached) $ECHO_C" >&6
14354fi
14355ac_res=`eval echo '${'$as_ac_Header'}'`
14356	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14357echo "${ECHO_T}$ac_res" >&6; }
14358else
14359  # Is the header compilable?
14360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h.  */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h.  */
14368$ac_includes_default
14369#include <$ac_header>
14370_ACEOF
14371rm -f conftest.$ac_objext
14372if { (ac_try="$ac_compile"
14373case "(($ac_try" in
14374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375  *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378  (eval "$ac_compile") 2>conftest.er1
14379  ac_status=$?
14380  grep -v '^ *+' conftest.er1 >conftest.err
14381  rm -f conftest.er1
14382  cat conftest.err >&5
14383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384  (exit $ac_status); } &&
14385	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386  { (case "(($ac_try" in
14387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388  *) ac_try_echo=$ac_try;;
14389esac
14390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391  (eval "$ac_try") 2>&5
14392  ac_status=$?
14393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394  (exit $ac_status); }; } &&
14395	 { ac_try='test -s conftest.$ac_objext'
14396  { (case "(($ac_try" in
14397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398  *) ac_try_echo=$ac_try;;
14399esac
14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401  (eval "$ac_try") 2>&5
14402  ac_status=$?
14403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404  (exit $ac_status); }; }; then
14405  ac_header_compiler=yes
14406else
14407  echo "$as_me: failed program was:" >&5
14408sed 's/^/| /' conftest.$ac_ext >&5
14409
14410	ac_header_compiler=no
14411fi
14412
14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415echo "${ECHO_T}$ac_header_compiler" >&6; }
14416
14417# Is the header present?
14418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h.  */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h.  */
14426#include <$ac_header>
14427_ACEOF
14428if { (ac_try="$ac_cpp conftest.$ac_ext"
14429case "(($ac_try" in
14430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431  *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435  ac_status=$?
14436  grep -v '^ *+' conftest.er1 >conftest.err
14437  rm -f conftest.er1
14438  cat conftest.err >&5
14439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440  (exit $ac_status); } >/dev/null; then
14441  if test -s conftest.err; then
14442    ac_cpp_err=$ac_c_preproc_warn_flag
14443    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444  else
14445    ac_cpp_err=
14446  fi
14447else
14448  ac_cpp_err=yes
14449fi
14450if test -z "$ac_cpp_err"; then
14451  ac_header_preproc=yes
14452else
14453  echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456  ac_header_preproc=no
14457fi
14458
14459rm -f conftest.err conftest.$ac_ext
14460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461echo "${ECHO_T}$ac_header_preproc" >&6; }
14462
14463# So?  What about this header?
14464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465  yes:no: )
14466    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470    ac_header_preproc=yes
14471    ;;
14472  no:yes:* )
14473    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14476echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14477    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14480echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14481    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485    ( cat <<\_ASBOX
14486## ----------------------------------- ##
14487## Report this to llvmbugs@cs.uiuc.edu ##
14488## ----------------------------------- ##
14489_ASBOX
14490     ) | sed "s/^/$as_me: WARNING:     /" >&2
14491    ;;
14492esac
14493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496  echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498  eval "$as_ac_Header=\$ac_header_preproc"
14499fi
14500ac_res=`eval echo '${'$as_ac_Header'}'`
14501	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14502echo "${ECHO_T}$ac_res" >&6; }
14503
14504fi
14505if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506  cat >>confdefs.h <<_ACEOF
14507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508_ACEOF
14509
14510fi
14511
14512done
14513
14514
14515
14516
14517
14518
14519
14520for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14521do
14522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14524  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527  echo $ECHO_N "(cached) $ECHO_C" >&6
14528fi
14529ac_res=`eval echo '${'$as_ac_Header'}'`
14530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14531echo "${ECHO_T}$ac_res" >&6; }
14532else
14533  # Is the header compilable?
14534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14536cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h.  */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
14541/* end confdefs.h.  */
14542$ac_includes_default
14543#include <$ac_header>
14544_ACEOF
14545rm -f conftest.$ac_objext
14546if { (ac_try="$ac_compile"
14547case "(($ac_try" in
14548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549  *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552  (eval "$ac_compile") 2>conftest.er1
14553  ac_status=$?
14554  grep -v '^ *+' conftest.er1 >conftest.err
14555  rm -f conftest.er1
14556  cat conftest.err >&5
14557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558  (exit $ac_status); } &&
14559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560  { (case "(($ac_try" in
14561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562  *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565  (eval "$ac_try") 2>&5
14566  ac_status=$?
14567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568  (exit $ac_status); }; } &&
14569	 { ac_try='test -s conftest.$ac_objext'
14570  { (case "(($ac_try" in
14571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572  *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575  (eval "$ac_try") 2>&5
14576  ac_status=$?
14577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578  (exit $ac_status); }; }; then
14579  ac_header_compiler=yes
14580else
14581  echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584	ac_header_compiler=no
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14589echo "${ECHO_T}$ac_header_compiler" >&6; }
14590
14591# Is the header present?
14592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14594cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h.  */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h.  */
14600#include <$ac_header>
14601_ACEOF
14602if { (ac_try="$ac_cpp conftest.$ac_ext"
14603case "(($ac_try" in
14604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605  *) ac_try_echo=$ac_try;;
14606esac
14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14609  ac_status=$?
14610  grep -v '^ *+' conftest.er1 >conftest.err
14611  rm -f conftest.er1
14612  cat conftest.err >&5
14613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614  (exit $ac_status); } >/dev/null; then
14615  if test -s conftest.err; then
14616    ac_cpp_err=$ac_c_preproc_warn_flag
14617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14618  else
14619    ac_cpp_err=
14620  fi
14621else
14622  ac_cpp_err=yes
14623fi
14624if test -z "$ac_cpp_err"; then
14625  ac_header_preproc=yes
14626else
14627  echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630  ac_header_preproc=no
14631fi
14632
14633rm -f conftest.err conftest.$ac_ext
14634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635echo "${ECHO_T}$ac_header_preproc" >&6; }
14636
14637# So?  What about this header?
14638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639  yes:no: )
14640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644    ac_header_preproc=yes
14645    ;;
14646  no:yes:* )
14647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14659    ( cat <<\_ASBOX
14660## ----------------------------------- ##
14661## Report this to llvmbugs@cs.uiuc.edu ##
14662## ----------------------------------- ##
14663_ASBOX
14664     ) | sed "s/^/$as_me: WARNING:     /" >&2
14665    ;;
14666esac
14667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14670  echo $ECHO_N "(cached) $ECHO_C" >&6
14671else
14672  eval "$as_ac_Header=\$ac_header_preproc"
14673fi
14674ac_res=`eval echo '${'$as_ac_Header'}'`
14675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14676echo "${ECHO_T}$ac_res" >&6; }
14677
14678fi
14679if test `eval echo '${'$as_ac_Header'}'` = yes; then
14680  cat >>confdefs.h <<_ACEOF
14681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14682_ACEOF
14683
14684fi
14685
14686done
14687
14688
14689
14690for ac_header in utime.h windows.h
14691do
14692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697  echo $ECHO_N "(cached) $ECHO_C" >&6
14698fi
14699ac_res=`eval echo '${'$as_ac_Header'}'`
14700	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14701echo "${ECHO_T}$ac_res" >&6; }
14702else
14703  # Is the header compilable?
14704{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h.  */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h.  */
14712$ac_includes_default
14713#include <$ac_header>
14714_ACEOF
14715rm -f conftest.$ac_objext
14716if { (ac_try="$ac_compile"
14717case "(($ac_try" in
14718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719  *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722  (eval "$ac_compile") 2>conftest.er1
14723  ac_status=$?
14724  grep -v '^ *+' conftest.er1 >conftest.err
14725  rm -f conftest.er1
14726  cat conftest.err >&5
14727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728  (exit $ac_status); } &&
14729	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14730  { (case "(($ac_try" in
14731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732  *) ac_try_echo=$ac_try;;
14733esac
14734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735  (eval "$ac_try") 2>&5
14736  ac_status=$?
14737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738  (exit $ac_status); }; } &&
14739	 { ac_try='test -s conftest.$ac_objext'
14740  { (case "(($ac_try" in
14741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742  *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745  (eval "$ac_try") 2>&5
14746  ac_status=$?
14747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748  (exit $ac_status); }; }; then
14749  ac_header_compiler=yes
14750else
14751  echo "$as_me: failed program was:" >&5
14752sed 's/^/| /' conftest.$ac_ext >&5
14753
14754	ac_header_compiler=no
14755fi
14756
14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759echo "${ECHO_T}$ac_header_compiler" >&6; }
14760
14761# Is the header present?
14762{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14764cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h.  */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h.  */
14770#include <$ac_header>
14771_ACEOF
14772if { (ac_try="$ac_cpp conftest.$ac_ext"
14773case "(($ac_try" in
14774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775  *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779  ac_status=$?
14780  grep -v '^ *+' conftest.er1 >conftest.err
14781  rm -f conftest.er1
14782  cat conftest.err >&5
14783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784  (exit $ac_status); } >/dev/null; then
14785  if test -s conftest.err; then
14786    ac_cpp_err=$ac_c_preproc_warn_flag
14787    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788  else
14789    ac_cpp_err=
14790  fi
14791else
14792  ac_cpp_err=yes
14793fi
14794if test -z "$ac_cpp_err"; then
14795  ac_header_preproc=yes
14796else
14797  echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800  ac_header_preproc=no
14801fi
14802
14803rm -f conftest.err conftest.$ac_ext
14804{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14805echo "${ECHO_T}$ac_header_preproc" >&6; }
14806
14807# So?  What about this header?
14808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14809  yes:no: )
14810    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14812    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14814    ac_header_preproc=yes
14815    ;;
14816  no:yes:* )
14817    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14819    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14820echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14821    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14823    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14824echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14825    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14827    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14829    ( cat <<\_ASBOX
14830## ----------------------------------- ##
14831## Report this to llvmbugs@cs.uiuc.edu ##
14832## ----------------------------------- ##
14833_ASBOX
14834     ) | sed "s/^/$as_me: WARNING:     /" >&2
14835    ;;
14836esac
14837{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14840  echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842  eval "$as_ac_Header=\$ac_header_preproc"
14843fi
14844ac_res=`eval echo '${'$as_ac_Header'}'`
14845	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14846echo "${ECHO_T}$ac_res" >&6; }
14847
14848fi
14849if test `eval echo '${'$as_ac_Header'}'` = yes; then
14850  cat >>confdefs.h <<_ACEOF
14851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14852_ACEOF
14853
14854fi
14855
14856done
14857
14858
14859
14860
14861
14862
14863for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14864do
14865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870  echo $ECHO_N "(cached) $ECHO_C" >&6
14871fi
14872ac_res=`eval echo '${'$as_ac_Header'}'`
14873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14874echo "${ECHO_T}$ac_res" >&6; }
14875else
14876  # Is the header compilable?
14877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14879cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h.  */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h.  */
14885$ac_includes_default
14886#include <$ac_header>
14887_ACEOF
14888rm -f conftest.$ac_objext
14889if { (ac_try="$ac_compile"
14890case "(($ac_try" in
14891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892  *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895  (eval "$ac_compile") 2>conftest.er1
14896  ac_status=$?
14897  grep -v '^ *+' conftest.er1 >conftest.err
14898  rm -f conftest.er1
14899  cat conftest.err >&5
14900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901  (exit $ac_status); } &&
14902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903  { (case "(($ac_try" in
14904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905  *) ac_try_echo=$ac_try;;
14906esac
14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908  (eval "$ac_try") 2>&5
14909  ac_status=$?
14910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911  (exit $ac_status); }; } &&
14912	 { ac_try='test -s conftest.$ac_objext'
14913  { (case "(($ac_try" in
14914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915  *) ac_try_echo=$ac_try;;
14916esac
14917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918  (eval "$ac_try") 2>&5
14919  ac_status=$?
14920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921  (exit $ac_status); }; }; then
14922  ac_header_compiler=yes
14923else
14924  echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927	ac_header_compiler=no
14928fi
14929
14930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932echo "${ECHO_T}$ac_header_compiler" >&6; }
14933
14934# Is the header present?
14935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14937cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h.  */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h.  */
14943#include <$ac_header>
14944_ACEOF
14945if { (ac_try="$ac_cpp conftest.$ac_ext"
14946case "(($ac_try" in
14947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948  *) ac_try_echo=$ac_try;;
14949esac
14950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14952  ac_status=$?
14953  grep -v '^ *+' conftest.er1 >conftest.err
14954  rm -f conftest.er1
14955  cat conftest.err >&5
14956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957  (exit $ac_status); } >/dev/null; then
14958  if test -s conftest.err; then
14959    ac_cpp_err=$ac_c_preproc_warn_flag
14960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14961  else
14962    ac_cpp_err=
14963  fi
14964else
14965  ac_cpp_err=yes
14966fi
14967if test -z "$ac_cpp_err"; then
14968  ac_header_preproc=yes
14969else
14970  echo "$as_me: failed program was:" >&5
14971sed 's/^/| /' conftest.$ac_ext >&5
14972
14973  ac_header_preproc=no
14974fi
14975
14976rm -f conftest.err conftest.$ac_ext
14977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6; }
14979
14980# So?  What about this header?
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982  yes:no: )
14983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987    ac_header_preproc=yes
14988    ;;
14989  no:yes:* )
14990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15002    ( cat <<\_ASBOX
15003## ----------------------------------- ##
15004## Report this to llvmbugs@cs.uiuc.edu ##
15005## ----------------------------------- ##
15006_ASBOX
15007     ) | sed "s/^/$as_me: WARNING:     /" >&2
15008    ;;
15009esac
15010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013  echo $ECHO_N "(cached) $ECHO_C" >&6
15014else
15015  eval "$as_ac_Header=\$ac_header_preproc"
15016fi
15017ac_res=`eval echo '${'$as_ac_Header'}'`
15018	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15019echo "${ECHO_T}$ac_res" >&6; }
15020
15021fi
15022if test `eval echo '${'$as_ac_Header'}'` = yes; then
15023  cat >>confdefs.h <<_ACEOF
15024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15025_ACEOF
15026
15027fi
15028
15029done
15030
15031
15032
15033
15034
15035for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15036do
15037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15042  echo $ECHO_N "(cached) $ECHO_C" >&6
15043fi
15044ac_res=`eval echo '${'$as_ac_Header'}'`
15045	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15046echo "${ECHO_T}$ac_res" >&6; }
15047else
15048  # Is the header compilable?
15049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15051cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h.  */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h.  */
15057$ac_includes_default
15058#include <$ac_header>
15059_ACEOF
15060rm -f conftest.$ac_objext
15061if { (ac_try="$ac_compile"
15062case "(($ac_try" in
15063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064  *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067  (eval "$ac_compile") 2>conftest.er1
15068  ac_status=$?
15069  grep -v '^ *+' conftest.er1 >conftest.err
15070  rm -f conftest.er1
15071  cat conftest.err >&5
15072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073  (exit $ac_status); } &&
15074	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075  { (case "(($ac_try" in
15076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077  *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080  (eval "$ac_try") 2>&5
15081  ac_status=$?
15082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083  (exit $ac_status); }; } &&
15084	 { ac_try='test -s conftest.$ac_objext'
15085  { (case "(($ac_try" in
15086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087  *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090  (eval "$ac_try") 2>&5
15091  ac_status=$?
15092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093  (exit $ac_status); }; }; then
15094  ac_header_compiler=yes
15095else
15096  echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099	ac_header_compiler=no
15100fi
15101
15102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104echo "${ECHO_T}$ac_header_compiler" >&6; }
15105
15106# Is the header present?
15107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15109cat >conftest.$ac_ext <<_ACEOF
15110/* confdefs.h.  */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h.  */
15115#include <$ac_header>
15116_ACEOF
15117if { (ac_try="$ac_cpp conftest.$ac_ext"
15118case "(($ac_try" in
15119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120  *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15124  ac_status=$?
15125  grep -v '^ *+' conftest.er1 >conftest.err
15126  rm -f conftest.er1
15127  cat conftest.err >&5
15128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129  (exit $ac_status); } >/dev/null; then
15130  if test -s conftest.err; then
15131    ac_cpp_err=$ac_c_preproc_warn_flag
15132    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133  else
15134    ac_cpp_err=
15135  fi
15136else
15137  ac_cpp_err=yes
15138fi
15139if test -z "$ac_cpp_err"; then
15140  ac_header_preproc=yes
15141else
15142  echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145  ac_header_preproc=no
15146fi
15147
15148rm -f conftest.err conftest.$ac_ext
15149{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15150echo "${ECHO_T}$ac_header_preproc" >&6; }
15151
15152# So?  What about this header?
15153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15154  yes:no: )
15155    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15157    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15159    ac_header_preproc=yes
15160    ;;
15161  no:yes:* )
15162    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15164    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15165echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15166    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15168    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15169echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15170    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15174    ( cat <<\_ASBOX
15175## ----------------------------------- ##
15176## Report this to llvmbugs@cs.uiuc.edu ##
15177## ----------------------------------- ##
15178_ASBOX
15179     ) | sed "s/^/$as_me: WARNING:     /" >&2
15180    ;;
15181esac
15182{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185  echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187  eval "$as_ac_Header=\$ac_header_preproc"
15188fi
15189ac_res=`eval echo '${'$as_ac_Header'}'`
15190	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15191echo "${ECHO_T}$ac_res" >&6; }
15192
15193fi
15194if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195  cat >>confdefs.h <<_ACEOF
15196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15197_ACEOF
15198
15199fi
15200
15201done
15202
15203
15204for ac_header in valgrind/valgrind.h
15205do
15206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15208  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15211  echo $ECHO_N "(cached) $ECHO_C" >&6
15212fi
15213ac_res=`eval echo '${'$as_ac_Header'}'`
15214	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15215echo "${ECHO_T}$ac_res" >&6; }
15216else
15217  # Is the header compilable?
15218{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h.  */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h.  */
15226$ac_includes_default
15227#include <$ac_header>
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (ac_try="$ac_compile"
15231case "(($ac_try" in
15232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233  *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236  (eval "$ac_compile") 2>conftest.er1
15237  ac_status=$?
15238  grep -v '^ *+' conftest.er1 >conftest.err
15239  rm -f conftest.er1
15240  cat conftest.err >&5
15241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242  (exit $ac_status); } &&
15243	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244  { (case "(($ac_try" in
15245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246  *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249  (eval "$ac_try") 2>&5
15250  ac_status=$?
15251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252  (exit $ac_status); }; } &&
15253	 { ac_try='test -s conftest.$ac_objext'
15254  { (case "(($ac_try" in
15255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256  *) ac_try_echo=$ac_try;;
15257esac
15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259  (eval "$ac_try") 2>&5
15260  ac_status=$?
15261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262  (exit $ac_status); }; }; then
15263  ac_header_compiler=yes
15264else
15265  echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268	ac_header_compiler=no
15269fi
15270
15271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15273echo "${ECHO_T}$ac_header_compiler" >&6; }
15274
15275# Is the header present?
15276{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15278cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h.  */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h.  */
15284#include <$ac_header>
15285_ACEOF
15286if { (ac_try="$ac_cpp conftest.$ac_ext"
15287case "(($ac_try" in
15288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289  *) ac_try_echo=$ac_try;;
15290esac
15291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15293  ac_status=$?
15294  grep -v '^ *+' conftest.er1 >conftest.err
15295  rm -f conftest.er1
15296  cat conftest.err >&5
15297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298  (exit $ac_status); } >/dev/null; then
15299  if test -s conftest.err; then
15300    ac_cpp_err=$ac_c_preproc_warn_flag
15301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302  else
15303    ac_cpp_err=
15304  fi
15305else
15306  ac_cpp_err=yes
15307fi
15308if test -z "$ac_cpp_err"; then
15309  ac_header_preproc=yes
15310else
15311  echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314  ac_header_preproc=no
15315fi
15316
15317rm -f conftest.err conftest.$ac_ext
15318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319echo "${ECHO_T}$ac_header_preproc" >&6; }
15320
15321# So?  What about this header?
15322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323  yes:no: )
15324    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328    ac_header_preproc=yes
15329    ;;
15330  no:yes:* )
15331    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15334echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15335    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15338echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15339    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343    ( cat <<\_ASBOX
15344## ----------------------------------- ##
15345## Report this to llvmbugs@cs.uiuc.edu ##
15346## ----------------------------------- ##
15347_ASBOX
15348     ) | sed "s/^/$as_me: WARNING:     /" >&2
15349    ;;
15350esac
15351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354  echo $ECHO_N "(cached) $ECHO_C" >&6
15355else
15356  eval "$as_ac_Header=\$ac_header_preproc"
15357fi
15358ac_res=`eval echo '${'$as_ac_Header'}'`
15359	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15360echo "${ECHO_T}$ac_res" >&6; }
15361
15362fi
15363if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364  cat >>confdefs.h <<_ACEOF
15365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366_ACEOF
15367
15368fi
15369
15370done
15371
15372
15373for ac_header in fenv.h
15374do
15375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15377  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380  echo $ECHO_N "(cached) $ECHO_C" >&6
15381fi
15382ac_res=`eval echo '${'$as_ac_Header'}'`
15383	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15384echo "${ECHO_T}$ac_res" >&6; }
15385else
15386  # Is the header compilable?
15387{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15389cat >conftest.$ac_ext <<_ACEOF
15390/* confdefs.h.  */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h.  */
15395$ac_includes_default
15396#include <$ac_header>
15397_ACEOF
15398rm -f conftest.$ac_objext
15399if { (ac_try="$ac_compile"
15400case "(($ac_try" in
15401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402  *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405  (eval "$ac_compile") 2>conftest.er1
15406  ac_status=$?
15407  grep -v '^ *+' conftest.er1 >conftest.err
15408  rm -f conftest.er1
15409  cat conftest.err >&5
15410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411  (exit $ac_status); } &&
15412	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413  { (case "(($ac_try" in
15414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415  *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418  (eval "$ac_try") 2>&5
15419  ac_status=$?
15420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421  (exit $ac_status); }; } &&
15422	 { ac_try='test -s conftest.$ac_objext'
15423  { (case "(($ac_try" in
15424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425  *) ac_try_echo=$ac_try;;
15426esac
15427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428  (eval "$ac_try") 2>&5
15429  ac_status=$?
15430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431  (exit $ac_status); }; }; then
15432  ac_header_compiler=yes
15433else
15434  echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437	ac_header_compiler=no
15438fi
15439
15440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442echo "${ECHO_T}$ac_header_compiler" >&6; }
15443
15444# Is the header present?
15445{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15447cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h.  */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h.  */
15453#include <$ac_header>
15454_ACEOF
15455if { (ac_try="$ac_cpp conftest.$ac_ext"
15456case "(($ac_try" in
15457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458  *) ac_try_echo=$ac_try;;
15459esac
15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15462  ac_status=$?
15463  grep -v '^ *+' conftest.er1 >conftest.err
15464  rm -f conftest.er1
15465  cat conftest.err >&5
15466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467  (exit $ac_status); } >/dev/null; then
15468  if test -s conftest.err; then
15469    ac_cpp_err=$ac_c_preproc_warn_flag
15470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471  else
15472    ac_cpp_err=
15473  fi
15474else
15475  ac_cpp_err=yes
15476fi
15477if test -z "$ac_cpp_err"; then
15478  ac_header_preproc=yes
15479else
15480  echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483  ac_header_preproc=no
15484fi
15485
15486rm -f conftest.err conftest.$ac_ext
15487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15488echo "${ECHO_T}$ac_header_preproc" >&6; }
15489
15490# So?  What about this header?
15491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15492  yes:no: )
15493    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15495    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15497    ac_header_preproc=yes
15498    ;;
15499  no:yes:* )
15500    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15502    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15503echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15504    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15506    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15507echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15510    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15512    ( cat <<\_ASBOX
15513## ----------------------------------- ##
15514## Report this to llvmbugs@cs.uiuc.edu ##
15515## ----------------------------------- ##
15516_ASBOX
15517     ) | sed "s/^/$as_me: WARNING:     /" >&2
15518    ;;
15519esac
15520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523  echo $ECHO_N "(cached) $ECHO_C" >&6
15524else
15525  eval "$as_ac_Header=\$ac_header_preproc"
15526fi
15527ac_res=`eval echo '${'$as_ac_Header'}'`
15528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15529echo "${ECHO_T}$ac_res" >&6; }
15530
15531fi
15532if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533  cat >>confdefs.h <<_ACEOF
15534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535_ACEOF
15536
15537fi
15538
15539done
15540
15541if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15542
15543for ac_header in pthread.h
15544do
15545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550  echo $ECHO_N "(cached) $ECHO_C" >&6
15551fi
15552ac_res=`eval echo '${'$as_ac_Header'}'`
15553	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15554echo "${ECHO_T}$ac_res" >&6; }
15555else
15556  # Is the header compilable?
15557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15559cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h.  */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h.  */
15565$ac_includes_default
15566#include <$ac_header>
15567_ACEOF
15568rm -f conftest.$ac_objext
15569if { (ac_try="$ac_compile"
15570case "(($ac_try" in
15571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572  *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575  (eval "$ac_compile") 2>conftest.er1
15576  ac_status=$?
15577  grep -v '^ *+' conftest.er1 >conftest.err
15578  rm -f conftest.er1
15579  cat conftest.err >&5
15580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581  (exit $ac_status); } &&
15582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583  { (case "(($ac_try" in
15584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585  *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588  (eval "$ac_try") 2>&5
15589  ac_status=$?
15590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591  (exit $ac_status); }; } &&
15592	 { ac_try='test -s conftest.$ac_objext'
15593  { (case "(($ac_try" in
15594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595  *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598  (eval "$ac_try") 2>&5
15599  ac_status=$?
15600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601  (exit $ac_status); }; }; then
15602  ac_header_compiler=yes
15603else
15604  echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607	ac_header_compiler=no
15608fi
15609
15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612echo "${ECHO_T}$ac_header_compiler" >&6; }
15613
15614# Is the header present?
15615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15617cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h.  */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h.  */
15623#include <$ac_header>
15624_ACEOF
15625if { (ac_try="$ac_cpp conftest.$ac_ext"
15626case "(($ac_try" in
15627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628  *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15632  ac_status=$?
15633  grep -v '^ *+' conftest.er1 >conftest.err
15634  rm -f conftest.er1
15635  cat conftest.err >&5
15636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637  (exit $ac_status); } >/dev/null; then
15638  if test -s conftest.err; then
15639    ac_cpp_err=$ac_c_preproc_warn_flag
15640    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641  else
15642    ac_cpp_err=
15643  fi
15644else
15645  ac_cpp_err=yes
15646fi
15647if test -z "$ac_cpp_err"; then
15648  ac_header_preproc=yes
15649else
15650  echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653  ac_header_preproc=no
15654fi
15655
15656rm -f conftest.err conftest.$ac_ext
15657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658echo "${ECHO_T}$ac_header_preproc" >&6; }
15659
15660# So?  What about this header?
15661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662  yes:no: )
15663    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15667    ac_header_preproc=yes
15668    ;;
15669  no:yes:* )
15670    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15673echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15674    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15676    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15677echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15680    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15682    ( cat <<\_ASBOX
15683## ----------------------------------- ##
15684## Report this to llvmbugs@cs.uiuc.edu ##
15685## ----------------------------------- ##
15686_ASBOX
15687     ) | sed "s/^/$as_me: WARNING:     /" >&2
15688    ;;
15689esac
15690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693  echo $ECHO_N "(cached) $ECHO_C" >&6
15694else
15695  eval "$as_ac_Header=\$ac_header_preproc"
15696fi
15697ac_res=`eval echo '${'$as_ac_Header'}'`
15698	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15699echo "${ECHO_T}$ac_res" >&6; }
15700
15701fi
15702if test `eval echo '${'$as_ac_Header'}'` = yes; then
15703  cat >>confdefs.h <<_ACEOF
15704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15705_ACEOF
15706 HAVE_PTHREAD=1
15707
15708else
15709  HAVE_PTHREAD=0
15710
15711fi
15712
15713done
15714
15715else
15716  HAVE_PTHREAD=0
15717
15718fi
15719
15720if test "$llvm_cv_enable_libffi" = "yes" ; then
15721
15722
15723for ac_header in ffi.h ffi/ffi.h
15724do
15725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15730  echo $ECHO_N "(cached) $ECHO_C" >&6
15731fi
15732ac_res=`eval echo '${'$as_ac_Header'}'`
15733	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15734echo "${ECHO_T}$ac_res" >&6; }
15735else
15736  # Is the header compilable?
15737{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15739cat >conftest.$ac_ext <<_ACEOF
15740/* confdefs.h.  */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h.  */
15745$ac_includes_default
15746#include <$ac_header>
15747_ACEOF
15748rm -f conftest.$ac_objext
15749if { (ac_try="$ac_compile"
15750case "(($ac_try" in
15751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752  *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755  (eval "$ac_compile") 2>conftest.er1
15756  ac_status=$?
15757  grep -v '^ *+' conftest.er1 >conftest.err
15758  rm -f conftest.er1
15759  cat conftest.err >&5
15760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761  (exit $ac_status); } &&
15762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15763  { (case "(($ac_try" in
15764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765  *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768  (eval "$ac_try") 2>&5
15769  ac_status=$?
15770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771  (exit $ac_status); }; } &&
15772	 { ac_try='test -s conftest.$ac_objext'
15773  { (case "(($ac_try" in
15774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775  *) ac_try_echo=$ac_try;;
15776esac
15777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778  (eval "$ac_try") 2>&5
15779  ac_status=$?
15780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781  (exit $ac_status); }; }; then
15782  ac_header_compiler=yes
15783else
15784  echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787	ac_header_compiler=no
15788fi
15789
15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15792echo "${ECHO_T}$ac_header_compiler" >&6; }
15793
15794# Is the header present?
15795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15797cat >conftest.$ac_ext <<_ACEOF
15798/* confdefs.h.  */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h.  */
15803#include <$ac_header>
15804_ACEOF
15805if { (ac_try="$ac_cpp conftest.$ac_ext"
15806case "(($ac_try" in
15807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808  *) ac_try_echo=$ac_try;;
15809esac
15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15812  ac_status=$?
15813  grep -v '^ *+' conftest.er1 >conftest.err
15814  rm -f conftest.er1
15815  cat conftest.err >&5
15816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817  (exit $ac_status); } >/dev/null; then
15818  if test -s conftest.err; then
15819    ac_cpp_err=$ac_c_preproc_warn_flag
15820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821  else
15822    ac_cpp_err=
15823  fi
15824else
15825  ac_cpp_err=yes
15826fi
15827if test -z "$ac_cpp_err"; then
15828  ac_header_preproc=yes
15829else
15830  echo "$as_me: failed program was:" >&5
15831sed 's/^/| /' conftest.$ac_ext >&5
15832
15833  ac_header_preproc=no
15834fi
15835
15836rm -f conftest.err conftest.$ac_ext
15837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838echo "${ECHO_T}$ac_header_preproc" >&6; }
15839
15840# So?  What about this header?
15841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15842  yes:no: )
15843    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847    ac_header_preproc=yes
15848    ;;
15849  no:yes:* )
15850    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15853echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15854    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15857echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15862    ( cat <<\_ASBOX
15863## ----------------------------------- ##
15864## Report this to llvmbugs@cs.uiuc.edu ##
15865## ----------------------------------- ##
15866_ASBOX
15867     ) | sed "s/^/$as_me: WARNING:     /" >&2
15868    ;;
15869esac
15870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873  echo $ECHO_N "(cached) $ECHO_C" >&6
15874else
15875  eval "$as_ac_Header=\$ac_header_preproc"
15876fi
15877ac_res=`eval echo '${'$as_ac_Header'}'`
15878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15879echo "${ECHO_T}$ac_res" >&6; }
15880
15881fi
15882if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883  cat >>confdefs.h <<_ACEOF
15884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885_ACEOF
15886
15887fi
15888
15889done
15890
15891fi
15892
15893
15894for ac_header in CrashReporterClient.h
15895do
15896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15898  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901  echo $ECHO_N "(cached) $ECHO_C" >&6
15902fi
15903ac_res=`eval echo '${'$as_ac_Header'}'`
15904	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15905echo "${ECHO_T}$ac_res" >&6; }
15906else
15907  # Is the header compilable?
15908{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15910cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h.  */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h.  */
15916$ac_includes_default
15917#include <$ac_header>
15918_ACEOF
15919rm -f conftest.$ac_objext
15920if { (ac_try="$ac_compile"
15921case "(($ac_try" in
15922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923  *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926  (eval "$ac_compile") 2>conftest.er1
15927  ac_status=$?
15928  grep -v '^ *+' conftest.er1 >conftest.err
15929  rm -f conftest.er1
15930  cat conftest.err >&5
15931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932  (exit $ac_status); } &&
15933	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15934  { (case "(($ac_try" in
15935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936  *) ac_try_echo=$ac_try;;
15937esac
15938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939  (eval "$ac_try") 2>&5
15940  ac_status=$?
15941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942  (exit $ac_status); }; } &&
15943	 { ac_try='test -s conftest.$ac_objext'
15944  { (case "(($ac_try" in
15945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946  *) ac_try_echo=$ac_try;;
15947esac
15948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949  (eval "$ac_try") 2>&5
15950  ac_status=$?
15951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952  (exit $ac_status); }; }; then
15953  ac_header_compiler=yes
15954else
15955  echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958	ac_header_compiler=no
15959fi
15960
15961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963echo "${ECHO_T}$ac_header_compiler" >&6; }
15964
15965# Is the header present?
15966{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h.  */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h.  */
15974#include <$ac_header>
15975_ACEOF
15976if { (ac_try="$ac_cpp conftest.$ac_ext"
15977case "(($ac_try" in
15978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979  *) ac_try_echo=$ac_try;;
15980esac
15981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15983  ac_status=$?
15984  grep -v '^ *+' conftest.er1 >conftest.err
15985  rm -f conftest.er1
15986  cat conftest.err >&5
15987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988  (exit $ac_status); } >/dev/null; then
15989  if test -s conftest.err; then
15990    ac_cpp_err=$ac_c_preproc_warn_flag
15991    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15992  else
15993    ac_cpp_err=
15994  fi
15995else
15996  ac_cpp_err=yes
15997fi
15998if test -z "$ac_cpp_err"; then
15999  ac_header_preproc=yes
16000else
16001  echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004  ac_header_preproc=no
16005fi
16006
16007rm -f conftest.err conftest.$ac_ext
16008{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009echo "${ECHO_T}$ac_header_preproc" >&6; }
16010
16011# So?  What about this header?
16012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16013  yes:no: )
16014    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16016    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16018    ac_header_preproc=yes
16019    ;;
16020  no:yes:* )
16021    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16023    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16024echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16025    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16027    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16028echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16031    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16033    ( cat <<\_ASBOX
16034## ----------------------------------- ##
16035## Report this to llvmbugs@cs.uiuc.edu ##
16036## ----------------------------------- ##
16037_ASBOX
16038     ) | sed "s/^/$as_me: WARNING:     /" >&2
16039    ;;
16040esac
16041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16044  echo $ECHO_N "(cached) $ECHO_C" >&6
16045else
16046  eval "$as_ac_Header=\$ac_header_preproc"
16047fi
16048ac_res=`eval echo '${'$as_ac_Header'}'`
16049	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16050echo "${ECHO_T}$ac_res" >&6; }
16051
16052fi
16053if test `eval echo '${'$as_ac_Header'}'` = yes; then
16054  cat >>confdefs.h <<_ACEOF
16055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16056_ACEOF
16057
16058fi
16059
16060done
16061
16062
16063{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16064echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16065cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h.  */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h.  */
16071extern const char *__crashreporter_info__;
16072      int main() {
16073        __crashreporter_info__ = "test";
16074        return 0;
16075      }
16076
16077_ACEOF
16078rm -f conftest.$ac_objext conftest$ac_exeext
16079if { (ac_try="$ac_link"
16080case "(($ac_try" in
16081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082  *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085  (eval "$ac_link") 2>conftest.er1
16086  ac_status=$?
16087  grep -v '^ *+' conftest.er1 >conftest.err
16088  rm -f conftest.er1
16089  cat conftest.err >&5
16090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091  (exit $ac_status); } &&
16092	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093  { (case "(($ac_try" in
16094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095  *) ac_try_echo=$ac_try;;
16096esac
16097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098  (eval "$ac_try") 2>&5
16099  ac_status=$?
16100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101  (exit $ac_status); }; } &&
16102	 { ac_try='test -s conftest$ac_exeext'
16103  { (case "(($ac_try" in
16104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105  *) ac_try_echo=$ac_try;;
16106esac
16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108  (eval "$ac_try") 2>&5
16109  ac_status=$?
16110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111  (exit $ac_status); }; }; then
16112  { echo "$as_me:$LINENO: result: yes" >&5
16113echo "${ECHO_T}yes" >&6; }
16114
16115cat >>confdefs.h <<\_ACEOF
16116#define HAVE_CRASHREPORTER_INFO 1
16117_ACEOF
16118
16119else
16120  echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
16123	{ echo "$as_me:$LINENO: result: no" >&5
16124echo "${ECHO_T}no" >&6; }
16125
16126cat >>confdefs.h <<\_ACEOF
16127#define HAVE_CRASHREPORTER_INFO 0
16128_ACEOF
16129
16130fi
16131
16132rm -f core conftest.err conftest.$ac_objext \
16133      conftest$ac_exeext conftest.$ac_ext
16134
16135
16136
16137
16138  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16139echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16140if test "${ac_cv_huge_val_sanity+set}" = set; then
16141  echo $ECHO_N "(cached) $ECHO_C" >&6
16142else
16143
16144    ac_ext=cpp
16145ac_cpp='$CXXCPP $CPPFLAGS'
16146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16149
16150    ac_save_CXXFLAGS=$CXXFLAGS
16151    CXXFLAGS=-pedantic
16152    if test "$cross_compiling" = yes; then
16153  ac_cv_huge_val_sanity=yes
16154else
16155  cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h.  */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h.  */
16161#include <math.h>
16162int
16163main ()
16164{
16165double x = HUGE_VAL; return x != x;
16166  ;
16167  return 0;
16168}
16169_ACEOF
16170rm -f conftest$ac_exeext
16171if { (ac_try="$ac_link"
16172case "(($ac_try" in
16173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174  *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177  (eval "$ac_link") 2>&5
16178  ac_status=$?
16179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181  { (case "(($ac_try" in
16182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183  *) ac_try_echo=$ac_try;;
16184esac
16185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186  (eval "$ac_try") 2>&5
16187  ac_status=$?
16188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189  (exit $ac_status); }; }; then
16190  ac_cv_huge_val_sanity=yes
16191else
16192  echo "$as_me: program exited with status $ac_status" >&5
16193echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196( exit $ac_status )
16197ac_cv_huge_val_sanity=no
16198fi
16199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16200fi
16201
16202
16203    CXXFLAGS=$ac_save_CXXFLAGS
16204    ac_ext=c
16205ac_cpp='$CPP $CPPFLAGS'
16206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16208ac_compiler_gnu=$ac_cv_c_compiler_gnu
16209
16210
16211fi
16212{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16213echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16214  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16215
16216
16217{ echo "$as_me:$LINENO: checking for pid_t" >&5
16218echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16219if test "${ac_cv_type_pid_t+set}" = set; then
16220  echo $ECHO_N "(cached) $ECHO_C" >&6
16221else
16222  cat >conftest.$ac_ext <<_ACEOF
16223/* confdefs.h.  */
16224_ACEOF
16225cat confdefs.h >>conftest.$ac_ext
16226cat >>conftest.$ac_ext <<_ACEOF
16227/* end confdefs.h.  */
16228$ac_includes_default
16229typedef pid_t ac__type_new_;
16230int
16231main ()
16232{
16233if ((ac__type_new_ *) 0)
16234  return 0;
16235if (sizeof (ac__type_new_))
16236  return 0;
16237  ;
16238  return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (ac_try="$ac_compile"
16243case "(($ac_try" in
16244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245  *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248  (eval "$ac_compile") 2>conftest.er1
16249  ac_status=$?
16250  grep -v '^ *+' conftest.er1 >conftest.err
16251  rm -f conftest.er1
16252  cat conftest.err >&5
16253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254  (exit $ac_status); } &&
16255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256  { (case "(($ac_try" in
16257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258  *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261  (eval "$ac_try") 2>&5
16262  ac_status=$?
16263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264  (exit $ac_status); }; } &&
16265	 { ac_try='test -s conftest.$ac_objext'
16266  { (case "(($ac_try" in
16267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268  *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271  (eval "$ac_try") 2>&5
16272  ac_status=$?
16273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274  (exit $ac_status); }; }; then
16275  ac_cv_type_pid_t=yes
16276else
16277  echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280	ac_cv_type_pid_t=no
16281fi
16282
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284fi
16285{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16286echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16287if test $ac_cv_type_pid_t = yes; then
16288  :
16289else
16290
16291cat >>confdefs.h <<_ACEOF
16292#define pid_t int
16293_ACEOF
16294
16295fi
16296
16297{ echo "$as_me:$LINENO: checking for size_t" >&5
16298echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16299if test "${ac_cv_type_size_t+set}" = set; then
16300  echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302  cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h.  */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h.  */
16308$ac_includes_default
16309typedef size_t ac__type_new_;
16310int
16311main ()
16312{
16313if ((ac__type_new_ *) 0)
16314  return 0;
16315if (sizeof (ac__type_new_))
16316  return 0;
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321rm -f conftest.$ac_objext
16322if { (ac_try="$ac_compile"
16323case "(($ac_try" in
16324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325  *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328  (eval "$ac_compile") 2>conftest.er1
16329  ac_status=$?
16330  grep -v '^ *+' conftest.er1 >conftest.err
16331  rm -f conftest.er1
16332  cat conftest.err >&5
16333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334  (exit $ac_status); } &&
16335	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336  { (case "(($ac_try" in
16337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338  *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341  (eval "$ac_try") 2>&5
16342  ac_status=$?
16343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344  (exit $ac_status); }; } &&
16345	 { ac_try='test -s conftest.$ac_objext'
16346  { (case "(($ac_try" in
16347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348  *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351  (eval "$ac_try") 2>&5
16352  ac_status=$?
16353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354  (exit $ac_status); }; }; then
16355  ac_cv_type_size_t=yes
16356else
16357  echo "$as_me: failed program was:" >&5
16358sed 's/^/| /' conftest.$ac_ext >&5
16359
16360	ac_cv_type_size_t=no
16361fi
16362
16363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364fi
16365{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16366echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16367if test $ac_cv_type_size_t = yes; then
16368  :
16369else
16370
16371cat >>confdefs.h <<_ACEOF
16372#define size_t unsigned int
16373_ACEOF
16374
16375fi
16376
16377
16378cat >>confdefs.h <<_ACEOF
16379#define RETSIGTYPE void
16380_ACEOF
16381
16382{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16383echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16384if test "${ac_cv_struct_tm+set}" = set; then
16385  echo $ECHO_N "(cached) $ECHO_C" >&6
16386else
16387  cat >conftest.$ac_ext <<_ACEOF
16388/* confdefs.h.  */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
16392/* end confdefs.h.  */
16393#include <sys/types.h>
16394#include <time.h>
16395
16396int
16397main ()
16398{
16399struct tm *tp; tp->tm_sec;
16400  ;
16401  return 0;
16402}
16403_ACEOF
16404rm -f conftest.$ac_objext
16405if { (ac_try="$ac_compile"
16406case "(($ac_try" in
16407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408  *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411  (eval "$ac_compile") 2>conftest.er1
16412  ac_status=$?
16413  grep -v '^ *+' conftest.er1 >conftest.err
16414  rm -f conftest.er1
16415  cat conftest.err >&5
16416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417  (exit $ac_status); } &&
16418	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419  { (case "(($ac_try" in
16420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421  *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424  (eval "$ac_try") 2>&5
16425  ac_status=$?
16426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427  (exit $ac_status); }; } &&
16428	 { ac_try='test -s conftest.$ac_objext'
16429  { (case "(($ac_try" in
16430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431  *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434  (eval "$ac_try") 2>&5
16435  ac_status=$?
16436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437  (exit $ac_status); }; }; then
16438  ac_cv_struct_tm=time.h
16439else
16440  echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443	ac_cv_struct_tm=sys/time.h
16444fi
16445
16446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447fi
16448{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16449echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16450if test $ac_cv_struct_tm = sys/time.h; then
16451
16452cat >>confdefs.h <<\_ACEOF
16453#define TM_IN_SYS_TIME 1
16454_ACEOF
16455
16456fi
16457
16458{ echo "$as_me:$LINENO: checking for int64_t" >&5
16459echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16460if test "${ac_cv_type_int64_t+set}" = set; then
16461  echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463  cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h.  */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h.  */
16469$ac_includes_default
16470typedef int64_t ac__type_new_;
16471int
16472main ()
16473{
16474if ((ac__type_new_ *) 0)
16475  return 0;
16476if (sizeof (ac__type_new_))
16477  return 0;
16478  ;
16479  return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (ac_try="$ac_compile"
16484case "(($ac_try" in
16485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486  *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489  (eval "$ac_compile") 2>conftest.er1
16490  ac_status=$?
16491  grep -v '^ *+' conftest.er1 >conftest.err
16492  rm -f conftest.er1
16493  cat conftest.err >&5
16494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495  (exit $ac_status); } &&
16496	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497  { (case "(($ac_try" in
16498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499  *) ac_try_echo=$ac_try;;
16500esac
16501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502  (eval "$ac_try") 2>&5
16503  ac_status=$?
16504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505  (exit $ac_status); }; } &&
16506	 { ac_try='test -s conftest.$ac_objext'
16507  { (case "(($ac_try" in
16508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509  *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512  (eval "$ac_try") 2>&5
16513  ac_status=$?
16514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515  (exit $ac_status); }; }; then
16516  ac_cv_type_int64_t=yes
16517else
16518  echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521	ac_cv_type_int64_t=no
16522fi
16523
16524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525fi
16526{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16527echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16528if test $ac_cv_type_int64_t = yes; then
16529
16530cat >>confdefs.h <<_ACEOF
16531#define HAVE_INT64_T 1
16532_ACEOF
16533
16534
16535else
16536  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16537echo "$as_me: error: Type int64_t required but not found" >&2;}
16538   { (exit 1); exit 1; }; }
16539fi
16540
16541{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16542echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16543if test "${ac_cv_type_uint64_t+set}" = set; then
16544  echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546  cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h.  */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h.  */
16552$ac_includes_default
16553typedef uint64_t ac__type_new_;
16554int
16555main ()
16556{
16557if ((ac__type_new_ *) 0)
16558  return 0;
16559if (sizeof (ac__type_new_))
16560  return 0;
16561  ;
16562  return 0;
16563}
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (ac_try="$ac_compile"
16567case "(($ac_try" in
16568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569  *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572  (eval "$ac_compile") 2>conftest.er1
16573  ac_status=$?
16574  grep -v '^ *+' conftest.er1 >conftest.err
16575  rm -f conftest.er1
16576  cat conftest.err >&5
16577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578  (exit $ac_status); } &&
16579	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580  { (case "(($ac_try" in
16581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582  *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585  (eval "$ac_try") 2>&5
16586  ac_status=$?
16587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588  (exit $ac_status); }; } &&
16589	 { ac_try='test -s conftest.$ac_objext'
16590  { (case "(($ac_try" in
16591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592  *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595  (eval "$ac_try") 2>&5
16596  ac_status=$?
16597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598  (exit $ac_status); }; }; then
16599  ac_cv_type_uint64_t=yes
16600else
16601  echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604	ac_cv_type_uint64_t=no
16605fi
16606
16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608fi
16609{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16610echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16611if test $ac_cv_type_uint64_t = yes; then
16612
16613cat >>confdefs.h <<_ACEOF
16614#define HAVE_UINT64_T 1
16615_ACEOF
16616
16617
16618else
16619  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16620echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16621if test "${ac_cv_type_u_int64_t+set}" = set; then
16622  echo $ECHO_N "(cached) $ECHO_C" >&6
16623else
16624  cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h.  */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h.  */
16630$ac_includes_default
16631typedef u_int64_t ac__type_new_;
16632int
16633main ()
16634{
16635if ((ac__type_new_ *) 0)
16636  return 0;
16637if (sizeof (ac__type_new_))
16638  return 0;
16639  ;
16640  return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (ac_try="$ac_compile"
16645case "(($ac_try" in
16646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647  *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650  (eval "$ac_compile") 2>conftest.er1
16651  ac_status=$?
16652  grep -v '^ *+' conftest.er1 >conftest.err
16653  rm -f conftest.er1
16654  cat conftest.err >&5
16655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656  (exit $ac_status); } &&
16657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16658  { (case "(($ac_try" in
16659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660  *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663  (eval "$ac_try") 2>&5
16664  ac_status=$?
16665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666  (exit $ac_status); }; } &&
16667	 { ac_try='test -s conftest.$ac_objext'
16668  { (case "(($ac_try" in
16669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670  *) ac_try_echo=$ac_try;;
16671esac
16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673  (eval "$ac_try") 2>&5
16674  ac_status=$?
16675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676  (exit $ac_status); }; }; then
16677  ac_cv_type_u_int64_t=yes
16678else
16679  echo "$as_me: failed program was:" >&5
16680sed 's/^/| /' conftest.$ac_ext >&5
16681
16682	ac_cv_type_u_int64_t=no
16683fi
16684
16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686fi
16687{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16688echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16689if test $ac_cv_type_u_int64_t = yes; then
16690
16691cat >>confdefs.h <<_ACEOF
16692#define HAVE_U_INT64_T 1
16693_ACEOF
16694
16695
16696else
16697  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16698echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16699   { (exit 1); exit 1; }; }
16700fi
16701
16702fi
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16714do
16715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16719  echo $ECHO_N "(cached) $ECHO_C" >&6
16720else
16721  cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h.  */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h.  */
16727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16728   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16729#define $ac_func innocuous_$ac_func
16730
16731/* System header to define __stub macros and hopefully few prototypes,
16732    which can conflict with char $ac_func (); below.
16733    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734    <limits.h> exists even on freestanding compilers.  */
16735
16736#ifdef __STDC__
16737# include <limits.h>
16738#else
16739# include <assert.h>
16740#endif
16741
16742#undef $ac_func
16743
16744/* Override any GCC internal prototype to avoid an error.
16745   Use char because int might match the return type of a GCC
16746   builtin and then its argument prototype would still apply.  */
16747#ifdef __cplusplus
16748extern "C"
16749#endif
16750char $ac_func ();
16751/* The GNU C library defines this for functions which it implements
16752    to always fail with ENOSYS.  Some functions are actually named
16753    something starting with __ and the normal name is an alias.  */
16754#if defined __stub_$ac_func || defined __stub___$ac_func
16755choke me
16756#endif
16757
16758int
16759main ()
16760{
16761return $ac_func ();
16762  ;
16763  return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext conftest$ac_exeext
16767if { (ac_try="$ac_link"
16768case "(($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_link") 2>conftest.er1
16774  ac_status=$?
16775  grep -v '^ *+' conftest.er1 >conftest.err
16776  rm -f conftest.er1
16777  cat conftest.err >&5
16778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779  (exit $ac_status); } &&
16780	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781  { (case "(($ac_try" in
16782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783  *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786  (eval "$ac_try") 2>&5
16787  ac_status=$?
16788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789  (exit $ac_status); }; } &&
16790	 { ac_try='test -s conftest$ac_exeext'
16791  { (case "(($ac_try" in
16792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793  *) ac_try_echo=$ac_try;;
16794esac
16795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796  (eval "$ac_try") 2>&5
16797  ac_status=$?
16798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799  (exit $ac_status); }; }; then
16800  eval "$as_ac_var=yes"
16801else
16802  echo "$as_me: failed program was:" >&5
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
16805	eval "$as_ac_var=no"
16806fi
16807
16808rm -f core conftest.err conftest.$ac_objext \
16809      conftest$ac_exeext conftest.$ac_ext
16810fi
16811ac_res=`eval echo '${'$as_ac_var'}'`
16812	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16813echo "${ECHO_T}$ac_res" >&6; }
16814if test `eval echo '${'$as_ac_var'}'` = yes; then
16815  cat >>confdefs.h <<_ACEOF
16816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817_ACEOF
16818
16819fi
16820done
16821
16822
16823
16824
16825
16826for ac_func in powf fmodf strtof round
16827do
16828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832  echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834  cat >conftest.$ac_ext <<_ACEOF
16835/* confdefs.h.  */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h.  */
16840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16842#define $ac_func innocuous_$ac_func
16843
16844/* System header to define __stub macros and hopefully few prototypes,
16845    which can conflict with char $ac_func (); below.
16846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847    <limits.h> exists even on freestanding compilers.  */
16848
16849#ifdef __STDC__
16850# include <limits.h>
16851#else
16852# include <assert.h>
16853#endif
16854
16855#undef $ac_func
16856
16857/* Override any GCC internal prototype to avoid an error.
16858   Use char because int might match the return type of a GCC
16859   builtin and then its argument prototype would still apply.  */
16860#ifdef __cplusplus
16861extern "C"
16862#endif
16863char $ac_func ();
16864/* The GNU C library defines this for functions which it implements
16865    to always fail with ENOSYS.  Some functions are actually named
16866    something starting with __ and the normal name is an alias.  */
16867#if defined __stub_$ac_func || defined __stub___$ac_func
16868choke me
16869#endif
16870
16871int
16872main ()
16873{
16874return $ac_func ();
16875  ;
16876  return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext conftest$ac_exeext
16880if { (ac_try="$ac_link"
16881case "(($ac_try" in
16882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883  *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886  (eval "$ac_link") 2>conftest.er1
16887  ac_status=$?
16888  grep -v '^ *+' conftest.er1 >conftest.err
16889  rm -f conftest.er1
16890  cat conftest.err >&5
16891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892  (exit $ac_status); } &&
16893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894  { (case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899  (eval "$ac_try") 2>&5
16900  ac_status=$?
16901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902  (exit $ac_status); }; } &&
16903	 { ac_try='test -s conftest$ac_exeext'
16904  { (case "(($ac_try" in
16905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906  *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909  (eval "$ac_try") 2>&5
16910  ac_status=$?
16911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912  (exit $ac_status); }; }; then
16913  eval "$as_ac_var=yes"
16914else
16915  echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918	eval "$as_ac_var=no"
16919fi
16920
16921rm -f core conftest.err conftest.$ac_objext \
16922      conftest$ac_exeext conftest.$ac_ext
16923fi
16924ac_res=`eval echo '${'$as_ac_var'}'`
16925	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16926echo "${ECHO_T}$ac_res" >&6; }
16927if test `eval echo '${'$as_ac_var'}'` = yes; then
16928  cat >>confdefs.h <<_ACEOF
16929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930_ACEOF
16931
16932fi
16933done
16934
16935
16936
16937
16938
16939
16940for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16941do
16942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946  echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948  cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h.  */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h.  */
16954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16956#define $ac_func innocuous_$ac_func
16957
16958/* System header to define __stub macros and hopefully few prototypes,
16959    which can conflict with char $ac_func (); below.
16960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961    <limits.h> exists even on freestanding compilers.  */
16962
16963#ifdef __STDC__
16964# include <limits.h>
16965#else
16966# include <assert.h>
16967#endif
16968
16969#undef $ac_func
16970
16971/* Override any GCC internal prototype to avoid an error.
16972   Use char because int might match the return type of a GCC
16973   builtin and then its argument prototype would still apply.  */
16974#ifdef __cplusplus
16975extern "C"
16976#endif
16977char $ac_func ();
16978/* The GNU C library defines this for functions which it implements
16979    to always fail with ENOSYS.  Some functions are actually named
16980    something starting with __ and the normal name is an alias.  */
16981#if defined __stub_$ac_func || defined __stub___$ac_func
16982choke me
16983#endif
16984
16985int
16986main ()
16987{
16988return $ac_func ();
16989  ;
16990  return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext conftest$ac_exeext
16994if { (ac_try="$ac_link"
16995case "(($ac_try" in
16996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997  *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000  (eval "$ac_link") 2>conftest.er1
17001  ac_status=$?
17002  grep -v '^ *+' conftest.er1 >conftest.err
17003  rm -f conftest.er1
17004  cat conftest.err >&5
17005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006  (exit $ac_status); } &&
17007	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008  { (case "(($ac_try" in
17009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010  *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013  (eval "$ac_try") 2>&5
17014  ac_status=$?
17015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016  (exit $ac_status); }; } &&
17017	 { ac_try='test -s conftest$ac_exeext'
17018  { (case "(($ac_try" in
17019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020  *) ac_try_echo=$ac_try;;
17021esac
17022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023  (eval "$ac_try") 2>&5
17024  ac_status=$?
17025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026  (exit $ac_status); }; }; then
17027  eval "$as_ac_var=yes"
17028else
17029  echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032	eval "$as_ac_var=no"
17033fi
17034
17035rm -f core conftest.err conftest.$ac_objext \
17036      conftest$ac_exeext conftest.$ac_ext
17037fi
17038ac_res=`eval echo '${'$as_ac_var'}'`
17039	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17040echo "${ECHO_T}$ac_res" >&6; }
17041if test `eval echo '${'$as_ac_var'}'` = yes; then
17042  cat >>confdefs.h <<_ACEOF
17043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17044_ACEOF
17045
17046fi
17047done
17048
17049
17050
17051
17052for ac_func in isatty mkdtemp mkstemp
17053do
17054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17058  echo $ECHO_N "(cached) $ECHO_C" >&6
17059else
17060  cat >conftest.$ac_ext <<_ACEOF
17061/* confdefs.h.  */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h.  */
17066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17068#define $ac_func innocuous_$ac_func
17069
17070/* System header to define __stub macros and hopefully few prototypes,
17071    which can conflict with char $ac_func (); below.
17072    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073    <limits.h> exists even on freestanding compilers.  */
17074
17075#ifdef __STDC__
17076# include <limits.h>
17077#else
17078# include <assert.h>
17079#endif
17080
17081#undef $ac_func
17082
17083/* Override any GCC internal prototype to avoid an error.
17084   Use char because int might match the return type of a GCC
17085   builtin and then its argument prototype would still apply.  */
17086#ifdef __cplusplus
17087extern "C"
17088#endif
17089char $ac_func ();
17090/* The GNU C library defines this for functions which it implements
17091    to always fail with ENOSYS.  Some functions are actually named
17092    something starting with __ and the normal name is an alias.  */
17093#if defined __stub_$ac_func || defined __stub___$ac_func
17094choke me
17095#endif
17096
17097int
17098main ()
17099{
17100return $ac_func ();
17101  ;
17102  return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext conftest$ac_exeext
17106if { (ac_try="$ac_link"
17107case "(($ac_try" in
17108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109  *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112  (eval "$ac_link") 2>conftest.er1
17113  ac_status=$?
17114  grep -v '^ *+' conftest.er1 >conftest.err
17115  rm -f conftest.er1
17116  cat conftest.err >&5
17117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118  (exit $ac_status); } &&
17119	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120  { (case "(($ac_try" in
17121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122  *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125  (eval "$ac_try") 2>&5
17126  ac_status=$?
17127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128  (exit $ac_status); }; } &&
17129	 { ac_try='test -s conftest$ac_exeext'
17130  { (case "(($ac_try" in
17131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132  *) ac_try_echo=$ac_try;;
17133esac
17134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135  (eval "$ac_try") 2>&5
17136  ac_status=$?
17137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138  (exit $ac_status); }; }; then
17139  eval "$as_ac_var=yes"
17140else
17141  echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144	eval "$as_ac_var=no"
17145fi
17146
17147rm -f core conftest.err conftest.$ac_objext \
17148      conftest$ac_exeext conftest.$ac_ext
17149fi
17150ac_res=`eval echo '${'$as_ac_var'}'`
17151	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17152echo "${ECHO_T}$ac_res" >&6; }
17153if test `eval echo '${'$as_ac_var'}'` = yes; then
17154  cat >>confdefs.h <<_ACEOF
17155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17156_ACEOF
17157
17158fi
17159done
17160
17161
17162
17163
17164
17165
17166
17167
17168for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17169do
17170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17174  echo $ECHO_N "(cached) $ECHO_C" >&6
17175else
17176  cat >conftest.$ac_ext <<_ACEOF
17177/* confdefs.h.  */
17178_ACEOF
17179cat confdefs.h >>conftest.$ac_ext
17180cat >>conftest.$ac_ext <<_ACEOF
17181/* end confdefs.h.  */
17182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17183   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17184#define $ac_func innocuous_$ac_func
17185
17186/* System header to define __stub macros and hopefully few prototypes,
17187    which can conflict with char $ac_func (); below.
17188    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17189    <limits.h> exists even on freestanding compilers.  */
17190
17191#ifdef __STDC__
17192# include <limits.h>
17193#else
17194# include <assert.h>
17195#endif
17196
17197#undef $ac_func
17198
17199/* Override any GCC internal prototype to avoid an error.
17200   Use char because int might match the return type of a GCC
17201   builtin and then its argument prototype would still apply.  */
17202#ifdef __cplusplus
17203extern "C"
17204#endif
17205char $ac_func ();
17206/* The GNU C library defines this for functions which it implements
17207    to always fail with ENOSYS.  Some functions are actually named
17208    something starting with __ and the normal name is an alias.  */
17209#if defined __stub_$ac_func || defined __stub___$ac_func
17210choke me
17211#endif
17212
17213int
17214main ()
17215{
17216return $ac_func ();
17217  ;
17218  return 0;
17219}
17220_ACEOF
17221rm -f conftest.$ac_objext conftest$ac_exeext
17222if { (ac_try="$ac_link"
17223case "(($ac_try" in
17224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225  *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228  (eval "$ac_link") 2>conftest.er1
17229  ac_status=$?
17230  grep -v '^ *+' conftest.er1 >conftest.err
17231  rm -f conftest.er1
17232  cat conftest.err >&5
17233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234  (exit $ac_status); } &&
17235	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236  { (case "(($ac_try" in
17237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238  *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241  (eval "$ac_try") 2>&5
17242  ac_status=$?
17243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244  (exit $ac_status); }; } &&
17245	 { ac_try='test -s conftest$ac_exeext'
17246  { (case "(($ac_try" in
17247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248  *) ac_try_echo=$ac_try;;
17249esac
17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251  (eval "$ac_try") 2>&5
17252  ac_status=$?
17253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254  (exit $ac_status); }; }; then
17255  eval "$as_ac_var=yes"
17256else
17257  echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
17260	eval "$as_ac_var=no"
17261fi
17262
17263rm -f core conftest.err conftest.$ac_objext \
17264      conftest$ac_exeext conftest.$ac_ext
17265fi
17266ac_res=`eval echo '${'$as_ac_var'}'`
17267	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17268echo "${ECHO_T}$ac_res" >&6; }
17269if test `eval echo '${'$as_ac_var'}'` = yes; then
17270  cat >>confdefs.h <<_ACEOF
17271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17272_ACEOF
17273
17274fi
17275done
17276
17277
17278
17279
17280for ac_func in strerror strerror_r setenv
17281do
17282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17286  echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288  cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h.  */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h.  */
17294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17295   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17296#define $ac_func innocuous_$ac_func
17297
17298/* System header to define __stub macros and hopefully few prototypes,
17299    which can conflict with char $ac_func (); below.
17300    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301    <limits.h> exists even on freestanding compilers.  */
17302
17303#ifdef __STDC__
17304# include <limits.h>
17305#else
17306# include <assert.h>
17307#endif
17308
17309#undef $ac_func
17310
17311/* Override any GCC internal prototype to avoid an error.
17312   Use char because int might match the return type of a GCC
17313   builtin and then its argument prototype would still apply.  */
17314#ifdef __cplusplus
17315extern "C"
17316#endif
17317char $ac_func ();
17318/* The GNU C library defines this for functions which it implements
17319    to always fail with ENOSYS.  Some functions are actually named
17320    something starting with __ and the normal name is an alias.  */
17321#if defined __stub_$ac_func || defined __stub___$ac_func
17322choke me
17323#endif
17324
17325int
17326main ()
17327{
17328return $ac_func ();
17329  ;
17330  return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext conftest$ac_exeext
17334if { (ac_try="$ac_link"
17335case "(($ac_try" in
17336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337  *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340  (eval "$ac_link") 2>conftest.er1
17341  ac_status=$?
17342  grep -v '^ *+' conftest.er1 >conftest.err
17343  rm -f conftest.er1
17344  cat conftest.err >&5
17345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346  (exit $ac_status); } &&
17347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348  { (case "(($ac_try" in
17349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350  *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353  (eval "$ac_try") 2>&5
17354  ac_status=$?
17355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356  (exit $ac_status); }; } &&
17357	 { ac_try='test -s conftest$ac_exeext'
17358  { (case "(($ac_try" in
17359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360  *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363  (eval "$ac_try") 2>&5
17364  ac_status=$?
17365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366  (exit $ac_status); }; }; then
17367  eval "$as_ac_var=yes"
17368else
17369  echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372	eval "$as_ac_var=no"
17373fi
17374
17375rm -f core conftest.err conftest.$ac_objext \
17376      conftest$ac_exeext conftest.$ac_ext
17377fi
17378ac_res=`eval echo '${'$as_ac_var'}'`
17379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17380echo "${ECHO_T}$ac_res" >&6; }
17381if test `eval echo '${'$as_ac_var'}'` = yes; then
17382  cat >>confdefs.h <<_ACEOF
17383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17384_ACEOF
17385
17386fi
17387done
17388
17389
17390
17391
17392
17393for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17394do
17395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399  echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401  cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h.  */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h.  */
17407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17409#define $ac_func innocuous_$ac_func
17410
17411/* System header to define __stub macros and hopefully few prototypes,
17412    which can conflict with char $ac_func (); below.
17413    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414    <limits.h> exists even on freestanding compilers.  */
17415
17416#ifdef __STDC__
17417# include <limits.h>
17418#else
17419# include <assert.h>
17420#endif
17421
17422#undef $ac_func
17423
17424/* Override any GCC internal prototype to avoid an error.
17425   Use char because int might match the return type of a GCC
17426   builtin and then its argument prototype would still apply.  */
17427#ifdef __cplusplus
17428extern "C"
17429#endif
17430char $ac_func ();
17431/* The GNU C library defines this for functions which it implements
17432    to always fail with ENOSYS.  Some functions are actually named
17433    something starting with __ and the normal name is an alias.  */
17434#if defined __stub_$ac_func || defined __stub___$ac_func
17435choke me
17436#endif
17437
17438int
17439main ()
17440{
17441return $ac_func ();
17442  ;
17443  return 0;
17444}
17445_ACEOF
17446rm -f conftest.$ac_objext conftest$ac_exeext
17447if { (ac_try="$ac_link"
17448case "(($ac_try" in
17449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450  *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453  (eval "$ac_link") 2>conftest.er1
17454  ac_status=$?
17455  grep -v '^ *+' conftest.er1 >conftest.err
17456  rm -f conftest.er1
17457  cat conftest.err >&5
17458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459  (exit $ac_status); } &&
17460	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461  { (case "(($ac_try" in
17462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463  *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466  (eval "$ac_try") 2>&5
17467  ac_status=$?
17468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469  (exit $ac_status); }; } &&
17470	 { ac_try='test -s conftest$ac_exeext'
17471  { (case "(($ac_try" in
17472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473  *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476  (eval "$ac_try") 2>&5
17477  ac_status=$?
17478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479  (exit $ac_status); }; }; then
17480  eval "$as_ac_var=yes"
17481else
17482  echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485	eval "$as_ac_var=no"
17486fi
17487
17488rm -f core conftest.err conftest.$ac_objext \
17489      conftest$ac_exeext conftest.$ac_ext
17490fi
17491ac_res=`eval echo '${'$as_ac_var'}'`
17492	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17493echo "${ECHO_T}$ac_res" >&6; }
17494if test `eval echo '${'$as_ac_var'}'` = yes; then
17495  cat >>confdefs.h <<_ACEOF
17496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17497_ACEOF
17498
17499fi
17500done
17501
17502
17503
17504
17505
17506
17507for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17508do
17509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17513  echo $ECHO_N "(cached) $ECHO_C" >&6
17514else
17515  cat >conftest.$ac_ext <<_ACEOF
17516/* confdefs.h.  */
17517_ACEOF
17518cat confdefs.h >>conftest.$ac_ext
17519cat >>conftest.$ac_ext <<_ACEOF
17520/* end confdefs.h.  */
17521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17523#define $ac_func innocuous_$ac_func
17524
17525/* System header to define __stub macros and hopefully few prototypes,
17526    which can conflict with char $ac_func (); below.
17527    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528    <limits.h> exists even on freestanding compilers.  */
17529
17530#ifdef __STDC__
17531# include <limits.h>
17532#else
17533# include <assert.h>
17534#endif
17535
17536#undef $ac_func
17537
17538/* Override any GCC internal prototype to avoid an error.
17539   Use char because int might match the return type of a GCC
17540   builtin and then its argument prototype would still apply.  */
17541#ifdef __cplusplus
17542extern "C"
17543#endif
17544char $ac_func ();
17545/* The GNU C library defines this for functions which it implements
17546    to always fail with ENOSYS.  Some functions are actually named
17547    something starting with __ and the normal name is an alias.  */
17548#if defined __stub_$ac_func || defined __stub___$ac_func
17549choke me
17550#endif
17551
17552int
17553main ()
17554{
17555return $ac_func ();
17556  ;
17557  return 0;
17558}
17559_ACEOF
17560rm -f conftest.$ac_objext conftest$ac_exeext
17561if { (ac_try="$ac_link"
17562case "(($ac_try" in
17563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564  *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567  (eval "$ac_link") 2>conftest.er1
17568  ac_status=$?
17569  grep -v '^ *+' conftest.er1 >conftest.err
17570  rm -f conftest.er1
17571  cat conftest.err >&5
17572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573  (exit $ac_status); } &&
17574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575  { (case "(($ac_try" in
17576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577  *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580  (eval "$ac_try") 2>&5
17581  ac_status=$?
17582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583  (exit $ac_status); }; } &&
17584	 { ac_try='test -s conftest$ac_exeext'
17585  { (case "(($ac_try" in
17586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587  *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590  (eval "$ac_try") 2>&5
17591  ac_status=$?
17592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593  (exit $ac_status); }; }; then
17594  eval "$as_ac_var=yes"
17595else
17596  echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599	eval "$as_ac_var=no"
17600fi
17601
17602rm -f core conftest.err conftest.$ac_objext \
17603      conftest$ac_exeext conftest.$ac_ext
17604fi
17605ac_res=`eval echo '${'$as_ac_var'}'`
17606	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17607echo "${ECHO_T}$ac_res" >&6; }
17608if test `eval echo '${'$as_ac_var'}'` = yes; then
17609  cat >>confdefs.h <<_ACEOF
17610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611_ACEOF
17612
17613fi
17614done
17615
17616{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17617echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17618if test "${llvm_cv_c_printf_a+set}" = set; then
17619  echo $ECHO_N "(cached) $ECHO_C" >&6
17620else
17621  ac_ext=c
17622ac_cpp='$CPP $CPPFLAGS'
17623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627 if test "$cross_compiling" = yes; then
17628  llvmac_cv_c_printf_a=no
17629else
17630  cat >conftest.$ac_ext <<_ACEOF
17631
17632  /* confdefs.h.  */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h.  */
17637
17638#include <stdio.h>
17639#include <stdlib.h>
17640
17641int
17642main ()
17643{
17644
17645volatile double A, B;
17646char Buffer[100];
17647A = 1;
17648A /= 10.0;
17649sprintf(Buffer, "%a", A);
17650B = atof(Buffer);
17651if (A != B)
17652  return (1);
17653if (A != 0x1.999999999999ap-4)
17654  return (1);
17655return (0);
17656  ;
17657  return 0;
17658}
17659_ACEOF
17660rm -f conftest$ac_exeext
17661if { (ac_try="$ac_link"
17662case "(($ac_try" in
17663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664  *) ac_try_echo=$ac_try;;
17665esac
17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667  (eval "$ac_link") 2>&5
17668  ac_status=$?
17669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17671  { (case "(($ac_try" in
17672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673  *) ac_try_echo=$ac_try;;
17674esac
17675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676  (eval "$ac_try") 2>&5
17677  ac_status=$?
17678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679  (exit $ac_status); }; }; then
17680  llvm_cv_c_printf_a=yes
17681else
17682  echo "$as_me: program exited with status $ac_status" >&5
17683echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686( exit $ac_status )
17687llvmac_cv_c_printf_a=no
17688fi
17689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17690fi
17691
17692
17693 ac_ext=c
17694ac_cpp='$CPP $CPPFLAGS'
17695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
17699fi
17700{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17701echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17702 if test "$llvm_cv_c_printf_a" = "yes"; then
17703
17704cat >>confdefs.h <<\_ACEOF
17705#define HAVE_PRINTF_A 1
17706_ACEOF
17707
17708 fi
17709
17710
17711{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17712echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17713if test "${ac_cv_func_rand48+set}" = set; then
17714  echo $ECHO_N "(cached) $ECHO_C" >&6
17715else
17716  ac_ext=cpp
17717ac_cpp='$CXXCPP $CPPFLAGS'
17718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722   cat >conftest.$ac_ext <<_ACEOF
17723/* confdefs.h.  */
17724_ACEOF
17725cat confdefs.h >>conftest.$ac_ext
17726cat >>conftest.$ac_ext <<_ACEOF
17727/* end confdefs.h.  */
17728#include <stdlib.h>
17729int
17730main ()
17731{
17732srand48(0);lrand48();drand48();
17733  ;
17734  return 0;
17735}
17736_ACEOF
17737rm -f conftest.$ac_objext
17738if { (ac_try="$ac_compile"
17739case "(($ac_try" in
17740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741  *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744  (eval "$ac_compile") 2>conftest.er1
17745  ac_status=$?
17746  grep -v '^ *+' conftest.er1 >conftest.err
17747  rm -f conftest.er1
17748  cat conftest.err >&5
17749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750  (exit $ac_status); } &&
17751	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17752  { (case "(($ac_try" in
17753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754  *) ac_try_echo=$ac_try;;
17755esac
17756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757  (eval "$ac_try") 2>&5
17758  ac_status=$?
17759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760  (exit $ac_status); }; } &&
17761	 { ac_try='test -s conftest.$ac_objext'
17762  { (case "(($ac_try" in
17763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764  *) ac_try_echo=$ac_try;;
17765esac
17766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767  (eval "$ac_try") 2>&5
17768  ac_status=$?
17769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770  (exit $ac_status); }; }; then
17771  ac_cv_func_rand48=yes
17772else
17773  echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776	ac_cv_func_rand48=no
17777fi
17778
17779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780  ac_ext=c
17781ac_cpp='$CPP $CPPFLAGS'
17782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784ac_compiler_gnu=$ac_cv_c_compiler_gnu
17785
17786fi
17787{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17788echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17789
17790if test "$ac_cv_func_rand48" = "yes" ; then
17791
17792cat >>confdefs.h <<\_ACEOF
17793#define HAVE_RAND48 1
17794_ACEOF
17795
17796fi
17797
17798
17799{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17800echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17801if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17802  echo $ECHO_N "(cached) $ECHO_C" >&6
17803else
17804  cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h.  */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h.  */
17810$ac_includes_default
17811int
17812main ()
17813{
17814#ifndef strerror_s
17815  char *p = (char *) strerror_s;
17816  return !p;
17817#endif
17818
17819  ;
17820  return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext
17824if { (ac_try="$ac_compile"
17825case "(($ac_try" in
17826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827  *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830  (eval "$ac_compile") 2>conftest.er1
17831  ac_status=$?
17832  grep -v '^ *+' conftest.er1 >conftest.err
17833  rm -f conftest.er1
17834  cat conftest.err >&5
17835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836  (exit $ac_status); } &&
17837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838  { (case "(($ac_try" in
17839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840  *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843  (eval "$ac_try") 2>&5
17844  ac_status=$?
17845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846  (exit $ac_status); }; } &&
17847	 { ac_try='test -s conftest.$ac_objext'
17848  { (case "(($ac_try" in
17849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850  *) ac_try_echo=$ac_try;;
17851esac
17852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853  (eval "$ac_try") 2>&5
17854  ac_status=$?
17855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856  (exit $ac_status); }; }; then
17857  ac_cv_have_decl_strerror_s=yes
17858else
17859  echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862	ac_cv_have_decl_strerror_s=no
17863fi
17864
17865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866fi
17867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17868echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17869if test $ac_cv_have_decl_strerror_s = yes; then
17870
17871cat >>confdefs.h <<_ACEOF
17872#define HAVE_DECL_STRERROR_S 1
17873_ACEOF
17874
17875
17876else
17877  cat >>confdefs.h <<_ACEOF
17878#define HAVE_DECL_STRERROR_S 0
17879_ACEOF
17880
17881
17882fi
17883
17884
17885
17886if test "$llvm_cv_os_type" = "MingW" ; then
17887  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17888echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17889if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17890  echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892  ac_check_lib_save_LIBS=$LIBS
17893LIBS="-lgcc  $LIBS"
17894cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h.  */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h.  */
17900
17901/* Override any GCC internal prototype to avoid an error.
17902   Use char because int might match the return type of a GCC
17903   builtin and then its argument prototype would still apply.  */
17904#ifdef __cplusplus
17905extern "C"
17906#endif
17907char _alloca ();
17908int
17909main ()
17910{
17911return _alloca ();
17912  ;
17913  return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920  *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923  (eval "$ac_link") 2>conftest.er1
17924  ac_status=$?
17925  grep -v '^ *+' conftest.er1 >conftest.err
17926  rm -f conftest.er1
17927  cat conftest.err >&5
17928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); } &&
17930	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931  { (case "(($ac_try" in
17932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933  *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936  (eval "$ac_try") 2>&5
17937  ac_status=$?
17938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); }; } &&
17940	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17950  ac_cv_lib_gcc__alloca=yes
17951else
17952  echo "$as_me: failed program was:" >&5
17953sed 's/^/| /' conftest.$ac_ext >&5
17954
17955	ac_cv_lib_gcc__alloca=no
17956fi
17957
17958rm -f core conftest.err conftest.$ac_objext \
17959      conftest$ac_exeext conftest.$ac_ext
17960LIBS=$ac_check_lib_save_LIBS
17961fi
17962{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17963echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17964if test $ac_cv_lib_gcc__alloca = yes; then
17965
17966cat >>confdefs.h <<\_ACEOF
17967#define HAVE__ALLOCA 1
17968_ACEOF
17969
17970fi
17971
17972  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17973echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17974if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17975  echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977  ac_check_lib_save_LIBS=$LIBS
17978LIBS="-lgcc  $LIBS"
17979cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h.  */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h.  */
17985
17986/* Override any GCC internal prototype to avoid an error.
17987   Use char because int might match the return type of a GCC
17988   builtin and then its argument prototype would still apply.  */
17989#ifdef __cplusplus
17990extern "C"
17991#endif
17992char __alloca ();
17993int
17994main ()
17995{
17996return __alloca ();
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (ac_try="$ac_link"
18003case "(($ac_try" in
18004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005  *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008  (eval "$ac_link") 2>conftest.er1
18009  ac_status=$?
18010  grep -v '^ *+' conftest.er1 >conftest.err
18011  rm -f conftest.er1
18012  cat conftest.err >&5
18013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014  (exit $ac_status); } &&
18015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016  { (case "(($ac_try" in
18017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018  *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021  (eval "$ac_try") 2>&5
18022  ac_status=$?
18023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024  (exit $ac_status); }; } &&
18025	 { ac_try='test -s conftest$ac_exeext'
18026  { (case "(($ac_try" in
18027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028  *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031  (eval "$ac_try") 2>&5
18032  ac_status=$?
18033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034  (exit $ac_status); }; }; then
18035  ac_cv_lib_gcc___alloca=yes
18036else
18037  echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040	ac_cv_lib_gcc___alloca=no
18041fi
18042
18043rm -f core conftest.err conftest.$ac_objext \
18044      conftest$ac_exeext conftest.$ac_ext
18045LIBS=$ac_check_lib_save_LIBS
18046fi
18047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18048echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18049if test $ac_cv_lib_gcc___alloca = yes; then
18050
18051cat >>confdefs.h <<\_ACEOF
18052#define HAVE___ALLOCA 1
18053_ACEOF
18054
18055fi
18056
18057  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18058echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18059if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18060  echo $ECHO_N "(cached) $ECHO_C" >&6
18061else
18062  ac_check_lib_save_LIBS=$LIBS
18063LIBS="-lgcc  $LIBS"
18064cat >conftest.$ac_ext <<_ACEOF
18065/* confdefs.h.  */
18066_ACEOF
18067cat confdefs.h >>conftest.$ac_ext
18068cat >>conftest.$ac_ext <<_ACEOF
18069/* end confdefs.h.  */
18070
18071/* Override any GCC internal prototype to avoid an error.
18072   Use char because int might match the return type of a GCC
18073   builtin and then its argument prototype would still apply.  */
18074#ifdef __cplusplus
18075extern "C"
18076#endif
18077char __chkstk ();
18078int
18079main ()
18080{
18081return __chkstk ();
18082  ;
18083  return 0;
18084}
18085_ACEOF
18086rm -f conftest.$ac_objext conftest$ac_exeext
18087if { (ac_try="$ac_link"
18088case "(($ac_try" in
18089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090  *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093  (eval "$ac_link") 2>conftest.er1
18094  ac_status=$?
18095  grep -v '^ *+' conftest.er1 >conftest.err
18096  rm -f conftest.er1
18097  cat conftest.err >&5
18098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099  (exit $ac_status); } &&
18100	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101  { (case "(($ac_try" in
18102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103  *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106  (eval "$ac_try") 2>&5
18107  ac_status=$?
18108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109  (exit $ac_status); }; } &&
18110	 { ac_try='test -s conftest$ac_exeext'
18111  { (case "(($ac_try" in
18112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113  *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116  (eval "$ac_try") 2>&5
18117  ac_status=$?
18118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119  (exit $ac_status); }; }; then
18120  ac_cv_lib_gcc___chkstk=yes
18121else
18122  echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125	ac_cv_lib_gcc___chkstk=no
18126fi
18127
18128rm -f core conftest.err conftest.$ac_objext \
18129      conftest$ac_exeext conftest.$ac_ext
18130LIBS=$ac_check_lib_save_LIBS
18131fi
18132{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18133echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18134if test $ac_cv_lib_gcc___chkstk = yes; then
18135
18136cat >>confdefs.h <<\_ACEOF
18137#define HAVE___CHKSTK 1
18138_ACEOF
18139
18140fi
18141
18142  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18143echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18144if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18145  echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147  ac_check_lib_save_LIBS=$LIBS
18148LIBS="-lgcc  $LIBS"
18149cat >conftest.$ac_ext <<_ACEOF
18150/* confdefs.h.  */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h.  */
18155
18156/* Override any GCC internal prototype to avoid an error.
18157   Use char because int might match the return type of a GCC
18158   builtin and then its argument prototype would still apply.  */
18159#ifdef __cplusplus
18160extern "C"
18161#endif
18162char ___chkstk ();
18163int
18164main ()
18165{
18166return ___chkstk ();
18167  ;
18168  return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext conftest$ac_exeext
18172if { (ac_try="$ac_link"
18173case "(($ac_try" in
18174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175  *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178  (eval "$ac_link") 2>conftest.er1
18179  ac_status=$?
18180  grep -v '^ *+' conftest.er1 >conftest.err
18181  rm -f conftest.er1
18182  cat conftest.err >&5
18183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184  (exit $ac_status); } &&
18185	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18186  { (case "(($ac_try" in
18187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188  *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191  (eval "$ac_try") 2>&5
18192  ac_status=$?
18193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194  (exit $ac_status); }; } &&
18195	 { ac_try='test -s conftest$ac_exeext'
18196  { (case "(($ac_try" in
18197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198  *) ac_try_echo=$ac_try;;
18199esac
18200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201  (eval "$ac_try") 2>&5
18202  ac_status=$?
18203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204  (exit $ac_status); }; }; then
18205  ac_cv_lib_gcc____chkstk=yes
18206else
18207  echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210	ac_cv_lib_gcc____chkstk=no
18211fi
18212
18213rm -f core conftest.err conftest.$ac_objext \
18214      conftest$ac_exeext conftest.$ac_ext
18215LIBS=$ac_check_lib_save_LIBS
18216fi
18217{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18218echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18219if test $ac_cv_lib_gcc____chkstk = yes; then
18220
18221cat >>confdefs.h <<\_ACEOF
18222#define HAVE____CHKSTK 1
18223_ACEOF
18224
18225fi
18226
18227
18228  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18229echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18230if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18231  echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233  ac_check_lib_save_LIBS=$LIBS
18234LIBS="-lgcc  $LIBS"
18235cat >conftest.$ac_ext <<_ACEOF
18236/* confdefs.h.  */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h.  */
18241
18242/* Override any GCC internal prototype to avoid an error.
18243   Use char because int might match the return type of a GCC
18244   builtin and then its argument prototype would still apply.  */
18245#ifdef __cplusplus
18246extern "C"
18247#endif
18248char __ashldi3 ();
18249int
18250main ()
18251{
18252return __ashldi3 ();
18253  ;
18254  return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (ac_try="$ac_link"
18259case "(($ac_try" in
18260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261  *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264  (eval "$ac_link") 2>conftest.er1
18265  ac_status=$?
18266  grep -v '^ *+' conftest.er1 >conftest.err
18267  rm -f conftest.er1
18268  cat conftest.err >&5
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); } &&
18271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272  { (case "(($ac_try" in
18273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274  *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277  (eval "$ac_try") 2>&5
18278  ac_status=$?
18279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280  (exit $ac_status); }; } &&
18281	 { ac_try='test -s conftest$ac_exeext'
18282  { (case "(($ac_try" in
18283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284  *) ac_try_echo=$ac_try;;
18285esac
18286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287  (eval "$ac_try") 2>&5
18288  ac_status=$?
18289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290  (exit $ac_status); }; }; then
18291  ac_cv_lib_gcc___ashldi3=yes
18292else
18293  echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296	ac_cv_lib_gcc___ashldi3=no
18297fi
18298
18299rm -f core conftest.err conftest.$ac_objext \
18300      conftest$ac_exeext conftest.$ac_ext
18301LIBS=$ac_check_lib_save_LIBS
18302fi
18303{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18304echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18305if test $ac_cv_lib_gcc___ashldi3 = yes; then
18306
18307cat >>confdefs.h <<\_ACEOF
18308#define HAVE___ASHLDI3 1
18309_ACEOF
18310
18311fi
18312
18313  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18314echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18315if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18316  echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318  ac_check_lib_save_LIBS=$LIBS
18319LIBS="-lgcc  $LIBS"
18320cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h.  */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h.  */
18326
18327/* Override any GCC internal prototype to avoid an error.
18328   Use char because int might match the return type of a GCC
18329   builtin and then its argument prototype would still apply.  */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333char __ashrdi3 ();
18334int
18335main ()
18336{
18337return __ashrdi3 ();
18338  ;
18339  return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (ac_try="$ac_link"
18344case "(($ac_try" in
18345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346  *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349  (eval "$ac_link") 2>conftest.er1
18350  ac_status=$?
18351  grep -v '^ *+' conftest.er1 >conftest.err
18352  rm -f conftest.er1
18353  cat conftest.err >&5
18354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); } &&
18356	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357  { (case "(($ac_try" in
18358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359  *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362  (eval "$ac_try") 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; } &&
18366	 { ac_try='test -s conftest$ac_exeext'
18367  { (case "(($ac_try" in
18368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369  *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372  (eval "$ac_try") 2>&5
18373  ac_status=$?
18374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375  (exit $ac_status); }; }; then
18376  ac_cv_lib_gcc___ashrdi3=yes
18377else
18378  echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381	ac_cv_lib_gcc___ashrdi3=no
18382fi
18383
18384rm -f core conftest.err conftest.$ac_objext \
18385      conftest$ac_exeext conftest.$ac_ext
18386LIBS=$ac_check_lib_save_LIBS
18387fi
18388{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18389echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18390if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18391
18392cat >>confdefs.h <<\_ACEOF
18393#define HAVE___ASHRDI3 1
18394_ACEOF
18395
18396fi
18397
18398  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18399echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18400if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18401  echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403  ac_check_lib_save_LIBS=$LIBS
18404LIBS="-lgcc  $LIBS"
18405cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h.  */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h.  */
18411
18412/* Override any GCC internal prototype to avoid an error.
18413   Use char because int might match the return type of a GCC
18414   builtin and then its argument prototype would still apply.  */
18415#ifdef __cplusplus
18416extern "C"
18417#endif
18418char __divdi3 ();
18419int
18420main ()
18421{
18422return __divdi3 ();
18423  ;
18424  return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (ac_try="$ac_link"
18429case "(($ac_try" in
18430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431  *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434  (eval "$ac_link") 2>conftest.er1
18435  ac_status=$?
18436  grep -v '^ *+' conftest.er1 >conftest.err
18437  rm -f conftest.er1
18438  cat conftest.err >&5
18439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); } &&
18441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442  { (case "(($ac_try" in
18443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444  *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447  (eval "$ac_try") 2>&5
18448  ac_status=$?
18449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450  (exit $ac_status); }; } &&
18451	 { ac_try='test -s conftest$ac_exeext'
18452  { (case "(($ac_try" in
18453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454  *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457  (eval "$ac_try") 2>&5
18458  ac_status=$?
18459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460  (exit $ac_status); }; }; then
18461  ac_cv_lib_gcc___divdi3=yes
18462else
18463  echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466	ac_cv_lib_gcc___divdi3=no
18467fi
18468
18469rm -f core conftest.err conftest.$ac_objext \
18470      conftest$ac_exeext conftest.$ac_ext
18471LIBS=$ac_check_lib_save_LIBS
18472fi
18473{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18474echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18475if test $ac_cv_lib_gcc___divdi3 = yes; then
18476
18477cat >>confdefs.h <<\_ACEOF
18478#define HAVE___DIVDI3 1
18479_ACEOF
18480
18481fi
18482
18483  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18484echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18485if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18486  echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488  ac_check_lib_save_LIBS=$LIBS
18489LIBS="-lgcc  $LIBS"
18490cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h.  */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h.  */
18496
18497/* Override any GCC internal prototype to avoid an error.
18498   Use char because int might match the return type of a GCC
18499   builtin and then its argument prototype would still apply.  */
18500#ifdef __cplusplus
18501extern "C"
18502#endif
18503char __fixdfdi ();
18504int
18505main ()
18506{
18507return __fixdfdi ();
18508  ;
18509  return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext conftest$ac_exeext
18513if { (ac_try="$ac_link"
18514case "(($ac_try" in
18515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516  *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519  (eval "$ac_link") 2>conftest.er1
18520  ac_status=$?
18521  grep -v '^ *+' conftest.er1 >conftest.err
18522  rm -f conftest.er1
18523  cat conftest.err >&5
18524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525  (exit $ac_status); } &&
18526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527  { (case "(($ac_try" in
18528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529  *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532  (eval "$ac_try") 2>&5
18533  ac_status=$?
18534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535  (exit $ac_status); }; } &&
18536	 { ac_try='test -s conftest$ac_exeext'
18537  { (case "(($ac_try" in
18538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539  *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542  (eval "$ac_try") 2>&5
18543  ac_status=$?
18544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545  (exit $ac_status); }; }; then
18546  ac_cv_lib_gcc___fixdfdi=yes
18547else
18548  echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551	ac_cv_lib_gcc___fixdfdi=no
18552fi
18553
18554rm -f core conftest.err conftest.$ac_objext \
18555      conftest$ac_exeext conftest.$ac_ext
18556LIBS=$ac_check_lib_save_LIBS
18557fi
18558{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18559echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18560if test $ac_cv_lib_gcc___fixdfdi = yes; then
18561
18562cat >>confdefs.h <<\_ACEOF
18563#define HAVE___FIXDFDI 1
18564_ACEOF
18565
18566fi
18567
18568  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18569echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18570if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18571  echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573  ac_check_lib_save_LIBS=$LIBS
18574LIBS="-lgcc  $LIBS"
18575cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h.  */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h.  */
18581
18582/* Override any GCC internal prototype to avoid an error.
18583   Use char because int might match the return type of a GCC
18584   builtin and then its argument prototype would still apply.  */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588char __fixsfdi ();
18589int
18590main ()
18591{
18592return __fixsfdi ();
18593  ;
18594  return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext conftest$ac_exeext
18598if { (ac_try="$ac_link"
18599case "(($ac_try" in
18600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601  *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604  (eval "$ac_link") 2>conftest.er1
18605  ac_status=$?
18606  grep -v '^ *+' conftest.er1 >conftest.err
18607  rm -f conftest.er1
18608  cat conftest.err >&5
18609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610  (exit $ac_status); } &&
18611	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612  { (case "(($ac_try" in
18613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614  *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617  (eval "$ac_try") 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; } &&
18621	 { ac_try='test -s conftest$ac_exeext'
18622  { (case "(($ac_try" in
18623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624  *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627  (eval "$ac_try") 2>&5
18628  ac_status=$?
18629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630  (exit $ac_status); }; }; then
18631  ac_cv_lib_gcc___fixsfdi=yes
18632else
18633  echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636	ac_cv_lib_gcc___fixsfdi=no
18637fi
18638
18639rm -f core conftest.err conftest.$ac_objext \
18640      conftest$ac_exeext conftest.$ac_ext
18641LIBS=$ac_check_lib_save_LIBS
18642fi
18643{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18644echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18645if test $ac_cv_lib_gcc___fixsfdi = yes; then
18646
18647cat >>confdefs.h <<\_ACEOF
18648#define HAVE___FIXSFDI 1
18649_ACEOF
18650
18651fi
18652
18653  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18654echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18655if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18656  echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658  ac_check_lib_save_LIBS=$LIBS
18659LIBS="-lgcc  $LIBS"
18660cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h.  */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h.  */
18666
18667/* Override any GCC internal prototype to avoid an error.
18668   Use char because int might match the return type of a GCC
18669   builtin and then its argument prototype would still apply.  */
18670#ifdef __cplusplus
18671extern "C"
18672#endif
18673char __floatdidf ();
18674int
18675main ()
18676{
18677return __floatdidf ();
18678  ;
18679  return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686  *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689  (eval "$ac_link") 2>conftest.er1
18690  ac_status=$?
18691  grep -v '^ *+' conftest.er1 >conftest.err
18692  rm -f conftest.er1
18693  cat conftest.err >&5
18694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695  (exit $ac_status); } &&
18696	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697  { (case "(($ac_try" in
18698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699  *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702  (eval "$ac_try") 2>&5
18703  ac_status=$?
18704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705  (exit $ac_status); }; } &&
18706	 { ac_try='test -s conftest$ac_exeext'
18707  { (case "(($ac_try" in
18708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709  *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712  (eval "$ac_try") 2>&5
18713  ac_status=$?
18714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715  (exit $ac_status); }; }; then
18716  ac_cv_lib_gcc___floatdidf=yes
18717else
18718  echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721	ac_cv_lib_gcc___floatdidf=no
18722fi
18723
18724rm -f core conftest.err conftest.$ac_objext \
18725      conftest$ac_exeext conftest.$ac_ext
18726LIBS=$ac_check_lib_save_LIBS
18727fi
18728{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18729echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18730if test $ac_cv_lib_gcc___floatdidf = yes; then
18731
18732cat >>confdefs.h <<\_ACEOF
18733#define HAVE___FLOATDIDF 1
18734_ACEOF
18735
18736fi
18737
18738  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18739echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18740if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18741  echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743  ac_check_lib_save_LIBS=$LIBS
18744LIBS="-lgcc  $LIBS"
18745cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h.  */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h.  */
18751
18752/* Override any GCC internal prototype to avoid an error.
18753   Use char because int might match the return type of a GCC
18754   builtin and then its argument prototype would still apply.  */
18755#ifdef __cplusplus
18756extern "C"
18757#endif
18758char __lshrdi3 ();
18759int
18760main ()
18761{
18762return __lshrdi3 ();
18763  ;
18764  return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext conftest$ac_exeext
18768if { (ac_try="$ac_link"
18769case "(($ac_try" in
18770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771  *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774  (eval "$ac_link") 2>conftest.er1
18775  ac_status=$?
18776  grep -v '^ *+' conftest.er1 >conftest.err
18777  rm -f conftest.er1
18778  cat conftest.err >&5
18779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780  (exit $ac_status); } &&
18781	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782  { (case "(($ac_try" in
18783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784  *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787  (eval "$ac_try") 2>&5
18788  ac_status=$?
18789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790  (exit $ac_status); }; } &&
18791	 { ac_try='test -s conftest$ac_exeext'
18792  { (case "(($ac_try" in
18793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794  *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797  (eval "$ac_try") 2>&5
18798  ac_status=$?
18799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800  (exit $ac_status); }; }; then
18801  ac_cv_lib_gcc___lshrdi3=yes
18802else
18803  echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806	ac_cv_lib_gcc___lshrdi3=no
18807fi
18808
18809rm -f core conftest.err conftest.$ac_objext \
18810      conftest$ac_exeext conftest.$ac_ext
18811LIBS=$ac_check_lib_save_LIBS
18812fi
18813{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18814echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18815if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18816
18817cat >>confdefs.h <<\_ACEOF
18818#define HAVE___LSHRDI3 1
18819_ACEOF
18820
18821fi
18822
18823  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18824echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18825if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18826  echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828  ac_check_lib_save_LIBS=$LIBS
18829LIBS="-lgcc  $LIBS"
18830cat >conftest.$ac_ext <<_ACEOF
18831/* confdefs.h.  */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h.  */
18836
18837/* Override any GCC internal prototype to avoid an error.
18838   Use char because int might match the return type of a GCC
18839   builtin and then its argument prototype would still apply.  */
18840#ifdef __cplusplus
18841extern "C"
18842#endif
18843char __moddi3 ();
18844int
18845main ()
18846{
18847return __moddi3 ();
18848  ;
18849  return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext conftest$ac_exeext
18853if { (ac_try="$ac_link"
18854case "(($ac_try" in
18855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856  *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859  (eval "$ac_link") 2>conftest.er1
18860  ac_status=$?
18861  grep -v '^ *+' conftest.er1 >conftest.err
18862  rm -f conftest.er1
18863  cat conftest.err >&5
18864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865  (exit $ac_status); } &&
18866	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867  { (case "(($ac_try" in
18868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869  *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872  (eval "$ac_try") 2>&5
18873  ac_status=$?
18874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875  (exit $ac_status); }; } &&
18876	 { ac_try='test -s conftest$ac_exeext'
18877  { (case "(($ac_try" in
18878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879  *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882  (eval "$ac_try") 2>&5
18883  ac_status=$?
18884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885  (exit $ac_status); }; }; then
18886  ac_cv_lib_gcc___moddi3=yes
18887else
18888  echo "$as_me: failed program was:" >&5
18889sed 's/^/| /' conftest.$ac_ext >&5
18890
18891	ac_cv_lib_gcc___moddi3=no
18892fi
18893
18894rm -f core conftest.err conftest.$ac_objext \
18895      conftest$ac_exeext conftest.$ac_ext
18896LIBS=$ac_check_lib_save_LIBS
18897fi
18898{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18899echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18900if test $ac_cv_lib_gcc___moddi3 = yes; then
18901
18902cat >>confdefs.h <<\_ACEOF
18903#define HAVE___MODDI3 1
18904_ACEOF
18905
18906fi
18907
18908  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18909echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18910if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18911  echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913  ac_check_lib_save_LIBS=$LIBS
18914LIBS="-lgcc  $LIBS"
18915cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h.  */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h.  */
18921
18922/* Override any GCC internal prototype to avoid an error.
18923   Use char because int might match the return type of a GCC
18924   builtin and then its argument prototype would still apply.  */
18925#ifdef __cplusplus
18926extern "C"
18927#endif
18928char __udivdi3 ();
18929int
18930main ()
18931{
18932return __udivdi3 ();
18933  ;
18934  return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext conftest$ac_exeext
18938if { (ac_try="$ac_link"
18939case "(($ac_try" in
18940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941  *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944  (eval "$ac_link") 2>conftest.er1
18945  ac_status=$?
18946  grep -v '^ *+' conftest.er1 >conftest.err
18947  rm -f conftest.er1
18948  cat conftest.err >&5
18949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950  (exit $ac_status); } &&
18951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952  { (case "(($ac_try" in
18953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954  *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957  (eval "$ac_try") 2>&5
18958  ac_status=$?
18959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960  (exit $ac_status); }; } &&
18961	 { ac_try='test -s conftest$ac_exeext'
18962  { (case "(($ac_try" in
18963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964  *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967  (eval "$ac_try") 2>&5
18968  ac_status=$?
18969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970  (exit $ac_status); }; }; then
18971  ac_cv_lib_gcc___udivdi3=yes
18972else
18973  echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976	ac_cv_lib_gcc___udivdi3=no
18977fi
18978
18979rm -f core conftest.err conftest.$ac_objext \
18980      conftest$ac_exeext conftest.$ac_ext
18981LIBS=$ac_check_lib_save_LIBS
18982fi
18983{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18984echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18985if test $ac_cv_lib_gcc___udivdi3 = yes; then
18986
18987cat >>confdefs.h <<\_ACEOF
18988#define HAVE___UDIVDI3 1
18989_ACEOF
18990
18991fi
18992
18993  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18994echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18995if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18996  echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998  ac_check_lib_save_LIBS=$LIBS
18999LIBS="-lgcc  $LIBS"
19000cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h.  */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h.  */
19006
19007/* Override any GCC internal prototype to avoid an error.
19008   Use char because int might match the return type of a GCC
19009   builtin and then its argument prototype would still apply.  */
19010#ifdef __cplusplus
19011extern "C"
19012#endif
19013char __umoddi3 ();
19014int
19015main ()
19016{
19017return __umoddi3 ();
19018  ;
19019  return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext conftest$ac_exeext
19023if { (ac_try="$ac_link"
19024case "(($ac_try" in
19025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026  *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029  (eval "$ac_link") 2>conftest.er1
19030  ac_status=$?
19031  grep -v '^ *+' conftest.er1 >conftest.err
19032  rm -f conftest.er1
19033  cat conftest.err >&5
19034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035  (exit $ac_status); } &&
19036	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037  { (case "(($ac_try" in
19038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039  *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042  (eval "$ac_try") 2>&5
19043  ac_status=$?
19044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045  (exit $ac_status); }; } &&
19046	 { ac_try='test -s conftest$ac_exeext'
19047  { (case "(($ac_try" in
19048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049  *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052  (eval "$ac_try") 2>&5
19053  ac_status=$?
19054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055  (exit $ac_status); }; }; then
19056  ac_cv_lib_gcc___umoddi3=yes
19057else
19058  echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061	ac_cv_lib_gcc___umoddi3=no
19062fi
19063
19064rm -f core conftest.err conftest.$ac_objext \
19065      conftest$ac_exeext conftest.$ac_ext
19066LIBS=$ac_check_lib_save_LIBS
19067fi
19068{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19069echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19070if test $ac_cv_lib_gcc___umoddi3 = yes; then
19071
19072cat >>confdefs.h <<\_ACEOF
19073#define HAVE___UMODDI3 1
19074_ACEOF
19075
19076fi
19077
19078
19079  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19080echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19081if test "${ac_cv_lib_gcc___main+set}" = set; then
19082  echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084  ac_check_lib_save_LIBS=$LIBS
19085LIBS="-lgcc  $LIBS"
19086cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h.  */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h.  */
19092
19093/* Override any GCC internal prototype to avoid an error.
19094   Use char because int might match the return type of a GCC
19095   builtin and then its argument prototype would still apply.  */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char __main ();
19100int
19101main ()
19102{
19103return __main ();
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112  *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115  (eval "$ac_link") 2>conftest.er1
19116  ac_status=$?
19117  grep -v '^ *+' conftest.er1 >conftest.err
19118  rm -f conftest.er1
19119  cat conftest.err >&5
19120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121  (exit $ac_status); } &&
19122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123  { (case "(($ac_try" in
19124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125  *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128  (eval "$ac_try") 2>&5
19129  ac_status=$?
19130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131  (exit $ac_status); }; } &&
19132	 { ac_try='test -s conftest$ac_exeext'
19133  { (case "(($ac_try" in
19134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135  *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138  (eval "$ac_try") 2>&5
19139  ac_status=$?
19140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141  (exit $ac_status); }; }; then
19142  ac_cv_lib_gcc___main=yes
19143else
19144  echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147	ac_cv_lib_gcc___main=no
19148fi
19149
19150rm -f core conftest.err conftest.$ac_objext \
19151      conftest$ac_exeext conftest.$ac_ext
19152LIBS=$ac_check_lib_save_LIBS
19153fi
19154{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19155echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19156if test $ac_cv_lib_gcc___main = yes; then
19157
19158cat >>confdefs.h <<\_ACEOF
19159#define HAVE___MAIN 1
19160_ACEOF
19161
19162fi
19163
19164  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19165echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19166if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19167  echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169  ac_check_lib_save_LIBS=$LIBS
19170LIBS="-lgcc  $LIBS"
19171cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h.  */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h.  */
19177
19178/* Override any GCC internal prototype to avoid an error.
19179   Use char because int might match the return type of a GCC
19180   builtin and then its argument prototype would still apply.  */
19181#ifdef __cplusplus
19182extern "C"
19183#endif
19184char __cmpdi2 ();
19185int
19186main ()
19187{
19188return __cmpdi2 ();
19189  ;
19190  return 0;
19191}
19192_ACEOF
19193rm -f conftest.$ac_objext conftest$ac_exeext
19194if { (ac_try="$ac_link"
19195case "(($ac_try" in
19196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197  *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200  (eval "$ac_link") 2>conftest.er1
19201  ac_status=$?
19202  grep -v '^ *+' conftest.er1 >conftest.err
19203  rm -f conftest.er1
19204  cat conftest.err >&5
19205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206  (exit $ac_status); } &&
19207	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208  { (case "(($ac_try" in
19209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210  *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213  (eval "$ac_try") 2>&5
19214  ac_status=$?
19215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216  (exit $ac_status); }; } &&
19217	 { ac_try='test -s conftest$ac_exeext'
19218  { (case "(($ac_try" in
19219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220  *) ac_try_echo=$ac_try;;
19221esac
19222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223  (eval "$ac_try") 2>&5
19224  ac_status=$?
19225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226  (exit $ac_status); }; }; then
19227  ac_cv_lib_gcc___cmpdi2=yes
19228else
19229  echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232	ac_cv_lib_gcc___cmpdi2=no
19233fi
19234
19235rm -f core conftest.err conftest.$ac_objext \
19236      conftest$ac_exeext conftest.$ac_ext
19237LIBS=$ac_check_lib_save_LIBS
19238fi
19239{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19240echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19241if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19242
19243cat >>confdefs.h <<\_ACEOF
19244#define HAVE___CMPDI2 1
19245_ACEOF
19246
19247fi
19248
19249fi
19250
19251if test "$llvm_cv_os_type" = "MingW" ; then
19252  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19253echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19254  cat >conftest.$ac_ext <<_ACEOF
19255#include <windows.h>
19256#include <imagehlp.h>
19257extern void foo(PENUMLOADED_MODULES_CALLBACK);
19258extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19259_ACEOF
19260rm -f conftest.$ac_objext
19261if { (ac_try="$ac_compile"
19262case "(($ac_try" in
19263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264  *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267  (eval "$ac_compile") 2>conftest.er1
19268  ac_status=$?
19269  grep -v '^ *+' conftest.er1 >conftest.err
19270  rm -f conftest.er1
19271  cat conftest.err >&5
19272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273  (exit $ac_status); } &&
19274	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275  { (case "(($ac_try" in
19276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277  *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280  (eval "$ac_try") 2>&5
19281  ac_status=$?
19282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283  (exit $ac_status); }; } &&
19284	 { ac_try='test -s conftest.$ac_objext'
19285  { (case "(($ac_try" in
19286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287  *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290  (eval "$ac_try") 2>&5
19291  ac_status=$?
19292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293  (exit $ac_status); }; }; then
19294
19295  { echo "$as_me:$LINENO: result: yes" >&5
19296echo "${ECHO_T}yes" >&6; }
19297  llvm_cv_win32_elmcb_pcstr="PCSTR"
19298
19299else
19300  echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303
19304  { echo "$as_me:$LINENO: result: no" >&5
19305echo "${ECHO_T}no" >&6; }
19306  llvm_cv_win32_elmcb_pcstr="PSTR"
19307
19308fi
19309
19310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311
19312cat >>confdefs.h <<_ACEOF
19313#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19314_ACEOF
19315
19316fi
19317
19318
19319{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19320echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19321if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19322  echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324  ac_ext=cpp
19325ac_cpp='$CXXCPP $CPPFLAGS'
19326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
19330   cat >conftest.$ac_ext <<_ACEOF
19331/* confdefs.h.  */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h.  */
19336#include <math.h>
19337int
19338main ()
19339{
19340float f; isnan(f);
19341  ;
19342  return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext
19346if { (ac_try="$ac_compile"
19347case "(($ac_try" in
19348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349  *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352  (eval "$ac_compile") 2>conftest.er1
19353  ac_status=$?
19354  grep -v '^ *+' conftest.er1 >conftest.err
19355  rm -f conftest.er1
19356  cat conftest.err >&5
19357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358  (exit $ac_status); } &&
19359	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360  { (case "(($ac_try" in
19361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362  *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365  (eval "$ac_try") 2>&5
19366  ac_status=$?
19367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368  (exit $ac_status); }; } &&
19369	 { ac_try='test -s conftest.$ac_objext'
19370  { (case "(($ac_try" in
19371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372  *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375  (eval "$ac_try") 2>&5
19376  ac_status=$?
19377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378  (exit $ac_status); }; }; then
19379  ac_cv_func_isnan_in_math_h=yes
19380else
19381  echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384	ac_cv_func_isnan_in_math_h=no
19385fi
19386
19387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388  ac_ext=c
19389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394fi
19395{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19396echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19397
19398
19399if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19400
19401cat >>confdefs.h <<\_ACEOF
19402#define HAVE_ISNAN_IN_MATH_H 1
19403_ACEOF
19404
19405fi
19406
19407{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19408echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19409if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19410  echo $ECHO_N "(cached) $ECHO_C" >&6
19411else
19412  ac_ext=cpp
19413ac_cpp='$CXXCPP $CPPFLAGS'
19414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19417
19418   cat >conftest.$ac_ext <<_ACEOF
19419/* confdefs.h.  */
19420_ACEOF
19421cat confdefs.h >>conftest.$ac_ext
19422cat >>conftest.$ac_ext <<_ACEOF
19423/* end confdefs.h.  */
19424#include <cmath>
19425int
19426main ()
19427{
19428float f; isnan(f);
19429  ;
19430  return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext
19434if { (ac_try="$ac_compile"
19435case "(($ac_try" in
19436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437  *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440  (eval "$ac_compile") 2>conftest.er1
19441  ac_status=$?
19442  grep -v '^ *+' conftest.er1 >conftest.err
19443  rm -f conftest.er1
19444  cat conftest.err >&5
19445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446  (exit $ac_status); } &&
19447	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448  { (case "(($ac_try" in
19449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450  *) ac_try_echo=$ac_try;;
19451esac
19452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453  (eval "$ac_try") 2>&5
19454  ac_status=$?
19455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456  (exit $ac_status); }; } &&
19457	 { ac_try='test -s conftest.$ac_objext'
19458  { (case "(($ac_try" in
19459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460  *) ac_try_echo=$ac_try;;
19461esac
19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463  (eval "$ac_try") 2>&5
19464  ac_status=$?
19465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466  (exit $ac_status); }; }; then
19467  ac_cv_func_isnan_in_cmath=yes
19468else
19469  echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472	ac_cv_func_isnan_in_cmath=no
19473fi
19474
19475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19476  ac_ext=c
19477ac_cpp='$CPP $CPPFLAGS'
19478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482fi
19483{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19484echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19485
19486if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19487
19488cat >>confdefs.h <<\_ACEOF
19489#define HAVE_ISNAN_IN_CMATH 1
19490_ACEOF
19491
19492fi
19493
19494{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19495echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19496if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19497  echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499  ac_ext=cpp
19500ac_cpp='$CXXCPP $CPPFLAGS'
19501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504
19505   cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h.  */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h.  */
19511#include <cmath>
19512int
19513main ()
19514{
19515float f; std::isnan(f);
19516  ;
19517  return 0;
19518}
19519_ACEOF
19520rm -f conftest.$ac_objext
19521if { (ac_try="$ac_compile"
19522case "(($ac_try" in
19523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524  *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527  (eval "$ac_compile") 2>conftest.er1
19528  ac_status=$?
19529  grep -v '^ *+' conftest.er1 >conftest.err
19530  rm -f conftest.er1
19531  cat conftest.err >&5
19532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533  (exit $ac_status); } &&
19534	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535  { (case "(($ac_try" in
19536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537  *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540  (eval "$ac_try") 2>&5
19541  ac_status=$?
19542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543  (exit $ac_status); }; } &&
19544	 { ac_try='test -s conftest.$ac_objext'
19545  { (case "(($ac_try" in
19546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547  *) ac_try_echo=$ac_try;;
19548esac
19549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550  (eval "$ac_try") 2>&5
19551  ac_status=$?
19552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553  (exit $ac_status); }; }; then
19554  ac_cv_func_std_isnan_in_cmath=yes
19555else
19556  echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559	ac_cv_func_std_isnan_in_cmath=no
19560fi
19561
19562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563  ac_ext=c
19564ac_cpp='$CPP $CPPFLAGS'
19565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
19569fi
19570{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19571echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19572
19573if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19574
19575cat >>confdefs.h <<\_ACEOF
19576#define HAVE_STD_ISNAN_IN_CMATH 1
19577_ACEOF
19578
19579fi
19580
19581
19582{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19583echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19584if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19585  echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587  ac_ext=cpp
19588ac_cpp='$CXXCPP $CPPFLAGS'
19589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19592
19593   cat >conftest.$ac_ext <<_ACEOF
19594/* confdefs.h.  */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
19598/* end confdefs.h.  */
19599#include <math.h>
19600int
19601main ()
19602{
19603float f; isinf(f);
19604  ;
19605  return 0;
19606}
19607_ACEOF
19608rm -f conftest.$ac_objext
19609if { (ac_try="$ac_compile"
19610case "(($ac_try" in
19611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612  *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615  (eval "$ac_compile") 2>conftest.er1
19616  ac_status=$?
19617  grep -v '^ *+' conftest.er1 >conftest.err
19618  rm -f conftest.er1
19619  cat conftest.err >&5
19620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621  (exit $ac_status); } &&
19622	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19623  { (case "(($ac_try" in
19624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625  *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628  (eval "$ac_try") 2>&5
19629  ac_status=$?
19630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631  (exit $ac_status); }; } &&
19632	 { ac_try='test -s conftest.$ac_objext'
19633  { (case "(($ac_try" in
19634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635  *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638  (eval "$ac_try") 2>&5
19639  ac_status=$?
19640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641  (exit $ac_status); }; }; then
19642  ac_cv_func_isinf_in_math_h=yes
19643else
19644  echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647	ac_cv_func_isinf_in_math_h=no
19648fi
19649
19650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651  ac_ext=c
19652ac_cpp='$CPP $CPPFLAGS'
19653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655ac_compiler_gnu=$ac_cv_c_compiler_gnu
19656
19657fi
19658{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19659echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19660
19661if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19662
19663cat >>confdefs.h <<\_ACEOF
19664#define HAVE_ISINF_IN_MATH_H 1
19665_ACEOF
19666
19667fi
19668
19669{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19670echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19671if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19672  echo $ECHO_N "(cached) $ECHO_C" >&6
19673else
19674  ac_ext=cpp
19675ac_cpp='$CXXCPP $CPPFLAGS'
19676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19679
19680   cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h.  */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h.  */
19686#include <cmath>
19687int
19688main ()
19689{
19690float f; isinf(f);
19691  ;
19692  return 0;
19693}
19694_ACEOF
19695rm -f conftest.$ac_objext
19696if { (ac_try="$ac_compile"
19697case "(($ac_try" in
19698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699  *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702  (eval "$ac_compile") 2>conftest.er1
19703  ac_status=$?
19704  grep -v '^ *+' conftest.er1 >conftest.err
19705  rm -f conftest.er1
19706  cat conftest.err >&5
19707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708  (exit $ac_status); } &&
19709	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19710  { (case "(($ac_try" in
19711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712  *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715  (eval "$ac_try") 2>&5
19716  ac_status=$?
19717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718  (exit $ac_status); }; } &&
19719	 { ac_try='test -s conftest.$ac_objext'
19720  { (case "(($ac_try" in
19721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722  *) ac_try_echo=$ac_try;;
19723esac
19724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725  (eval "$ac_try") 2>&5
19726  ac_status=$?
19727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728  (exit $ac_status); }; }; then
19729  ac_cv_func_isinf_in_cmath=yes
19730else
19731  echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734	ac_cv_func_isinf_in_cmath=no
19735fi
19736
19737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738  ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744fi
19745{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19746echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19747
19748if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19749
19750cat >>confdefs.h <<\_ACEOF
19751#define HAVE_ISINF_IN_CMATH 1
19752_ACEOF
19753
19754fi
19755
19756{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19757echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19758if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761  ac_ext=cpp
19762ac_cpp='$CXXCPP $CPPFLAGS'
19763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
19767   cat >conftest.$ac_ext <<_ACEOF
19768/* confdefs.h.  */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h.  */
19773#include <cmath>
19774int
19775main ()
19776{
19777float f; std::isinf(f)}
19778  ;
19779  return 0;
19780}
19781_ACEOF
19782rm -f conftest.$ac_objext
19783if { (ac_try="$ac_compile"
19784case "(($ac_try" in
19785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786  *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789  (eval "$ac_compile") 2>conftest.er1
19790  ac_status=$?
19791  grep -v '^ *+' conftest.er1 >conftest.err
19792  rm -f conftest.er1
19793  cat conftest.err >&5
19794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795  (exit $ac_status); } &&
19796	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797  { (case "(($ac_try" in
19798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799  *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802  (eval "$ac_try") 2>&5
19803  ac_status=$?
19804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805  (exit $ac_status); }; } &&
19806	 { ac_try='test -s conftest.$ac_objext'
19807  { (case "(($ac_try" in
19808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809  *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812  (eval "$ac_try") 2>&5
19813  ac_status=$?
19814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815  (exit $ac_status); }; }; then
19816  ac_cv_func_std_isinf_in_cmath=yes
19817else
19818  echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821	ac_cv_func_std_isinf_in_cmath=no
19822fi
19823
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825  ac_ext=c
19826ac_cpp='$CPP $CPPFLAGS'
19827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831fi
19832{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19833echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19834
19835if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19836
19837cat >>confdefs.h <<\_ACEOF
19838#define HAVE_STD_ISINF_IN_CMATH 1
19839_ACEOF
19840
19841fi
19842
19843{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19844echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19845if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19846  echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848  ac_ext=cpp
19849ac_cpp='$CXXCPP $CPPFLAGS'
19850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
19854   cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h.  */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h.  */
19860#include <ieeefp.h>
19861int
19862main ()
19863{
19864float f; finite(f);
19865  ;
19866  return 0;
19867}
19868_ACEOF
19869rm -f conftest.$ac_objext
19870if { (ac_try="$ac_compile"
19871case "(($ac_try" in
19872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873  *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876  (eval "$ac_compile") 2>conftest.er1
19877  ac_status=$?
19878  grep -v '^ *+' conftest.er1 >conftest.err
19879  rm -f conftest.er1
19880  cat conftest.err >&5
19881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882  (exit $ac_status); } &&
19883	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884  { (case "(($ac_try" in
19885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886  *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889  (eval "$ac_try") 2>&5
19890  ac_status=$?
19891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892  (exit $ac_status); }; } &&
19893	 { ac_try='test -s conftest.$ac_objext'
19894  { (case "(($ac_try" in
19895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896  *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899  (eval "$ac_try") 2>&5
19900  ac_status=$?
19901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902  (exit $ac_status); }; }; then
19903  ac_cv_func_finite_in_ieeefp_h=yes
19904else
19905  echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908	ac_cv_func_finite_in_ieeefp_h=no
19909fi
19910
19911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912  ac_ext=c
19913ac_cpp='$CPP $CPPFLAGS'
19914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918fi
19919{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19920echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19921
19922if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19923
19924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_FINITE_IN_IEEEFP_H 1
19926_ACEOF
19927
19928fi
19929
19930
19931
19932if test "$llvm_cv_platform_type" = "Unix" ; then
19933
19934
19935for ac_header in stdlib.h unistd.h
19936do
19937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942  echo $ECHO_N "(cached) $ECHO_C" >&6
19943fi
19944ac_res=`eval echo '${'$as_ac_Header'}'`
19945	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19946echo "${ECHO_T}$ac_res" >&6; }
19947else
19948  # Is the header compilable?
19949{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h.  */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h.  */
19957$ac_includes_default
19958#include <$ac_header>
19959_ACEOF
19960rm -f conftest.$ac_objext
19961if { (ac_try="$ac_compile"
19962case "(($ac_try" in
19963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964  *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967  (eval "$ac_compile") 2>conftest.er1
19968  ac_status=$?
19969  grep -v '^ *+' conftest.er1 >conftest.err
19970  rm -f conftest.er1
19971  cat conftest.err >&5
19972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973  (exit $ac_status); } &&
19974	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975  { (case "(($ac_try" in
19976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977  *) ac_try_echo=$ac_try;;
19978esac
19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980  (eval "$ac_try") 2>&5
19981  ac_status=$?
19982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983  (exit $ac_status); }; } &&
19984	 { ac_try='test -s conftest.$ac_objext'
19985  { (case "(($ac_try" in
19986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987  *) ac_try_echo=$ac_try;;
19988esac
19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990  (eval "$ac_try") 2>&5
19991  ac_status=$?
19992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993  (exit $ac_status); }; }; then
19994  ac_header_compiler=yes
19995else
19996  echo "$as_me: failed program was:" >&5
19997sed 's/^/| /' conftest.$ac_ext >&5
19998
19999	ac_header_compiler=no
20000fi
20001
20002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004echo "${ECHO_T}$ac_header_compiler" >&6; }
20005
20006# Is the header present?
20007{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20009cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h.  */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h.  */
20015#include <$ac_header>
20016_ACEOF
20017if { (ac_try="$ac_cpp conftest.$ac_ext"
20018case "(($ac_try" in
20019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020  *) ac_try_echo=$ac_try;;
20021esac
20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20024  ac_status=$?
20025  grep -v '^ *+' conftest.er1 >conftest.err
20026  rm -f conftest.er1
20027  cat conftest.err >&5
20028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029  (exit $ac_status); } >/dev/null; then
20030  if test -s conftest.err; then
20031    ac_cpp_err=$ac_c_preproc_warn_flag
20032    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20033  else
20034    ac_cpp_err=
20035  fi
20036else
20037  ac_cpp_err=yes
20038fi
20039if test -z "$ac_cpp_err"; then
20040  ac_header_preproc=yes
20041else
20042  echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045  ac_header_preproc=no
20046fi
20047
20048rm -f conftest.err conftest.$ac_ext
20049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052# So?  What about this header?
20053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054  yes:no: )
20055    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059    ac_header_preproc=yes
20060    ;;
20061  no:yes:* )
20062    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20065echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20066    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20069echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20070    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20074    ( cat <<\_ASBOX
20075## ----------------------------------- ##
20076## Report this to llvmbugs@cs.uiuc.edu ##
20077## ----------------------------------- ##
20078_ASBOX
20079     ) | sed "s/^/$as_me: WARNING:     /" >&2
20080    ;;
20081esac
20082{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085  echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087  eval "$as_ac_Header=\$ac_header_preproc"
20088fi
20089ac_res=`eval echo '${'$as_ac_Header'}'`
20090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20091echo "${ECHO_T}$ac_res" >&6; }
20092
20093fi
20094if test `eval echo '${'$as_ac_Header'}'` = yes; then
20095  cat >>confdefs.h <<_ACEOF
20096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20097_ACEOF
20098
20099fi
20100
20101done
20102
20103
20104for ac_func in getpagesize
20105do
20106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110  echo $ECHO_N "(cached) $ECHO_C" >&6
20111else
20112  cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h.  */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h.  */
20118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20120#define $ac_func innocuous_$ac_func
20121
20122/* System header to define __stub macros and hopefully few prototypes,
20123    which can conflict with char $ac_func (); below.
20124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125    <limits.h> exists even on freestanding compilers.  */
20126
20127#ifdef __STDC__
20128# include <limits.h>
20129#else
20130# include <assert.h>
20131#endif
20132
20133#undef $ac_func
20134
20135/* Override any GCC internal prototype to avoid an error.
20136   Use char because int might match the return type of a GCC
20137   builtin and then its argument prototype would still apply.  */
20138#ifdef __cplusplus
20139extern "C"
20140#endif
20141char $ac_func ();
20142/* The GNU C library defines this for functions which it implements
20143    to always fail with ENOSYS.  Some functions are actually named
20144    something starting with __ and the normal name is an alias.  */
20145#if defined __stub_$ac_func || defined __stub___$ac_func
20146choke me
20147#endif
20148
20149int
20150main ()
20151{
20152return $ac_func ();
20153  ;
20154  return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext conftest$ac_exeext
20158if { (ac_try="$ac_link"
20159case "(($ac_try" in
20160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161  *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164  (eval "$ac_link") 2>conftest.er1
20165  ac_status=$?
20166  grep -v '^ *+' conftest.er1 >conftest.err
20167  rm -f conftest.er1
20168  cat conftest.err >&5
20169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170  (exit $ac_status); } &&
20171	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172  { (case "(($ac_try" in
20173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174  *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177  (eval "$ac_try") 2>&5
20178  ac_status=$?
20179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180  (exit $ac_status); }; } &&
20181	 { ac_try='test -s conftest$ac_exeext'
20182  { (case "(($ac_try" in
20183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184  *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187  (eval "$ac_try") 2>&5
20188  ac_status=$?
20189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190  (exit $ac_status); }; }; then
20191  eval "$as_ac_var=yes"
20192else
20193  echo "$as_me: failed program was:" >&5
20194sed 's/^/| /' conftest.$ac_ext >&5
20195
20196	eval "$as_ac_var=no"
20197fi
20198
20199rm -f core conftest.err conftest.$ac_objext \
20200      conftest$ac_exeext conftest.$ac_ext
20201fi
20202ac_res=`eval echo '${'$as_ac_var'}'`
20203	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20204echo "${ECHO_T}$ac_res" >&6; }
20205if test `eval echo '${'$as_ac_var'}'` = yes; then
20206  cat >>confdefs.h <<_ACEOF
20207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20208_ACEOF
20209
20210fi
20211done
20212
20213{ echo "$as_me:$LINENO: checking for working mmap" >&5
20214echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20215if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20216  echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218  if test "$cross_compiling" = yes; then
20219  ac_cv_func_mmap_fixed_mapped=no
20220else
20221  cat >conftest.$ac_ext <<_ACEOF
20222/* confdefs.h.  */
20223_ACEOF
20224cat confdefs.h >>conftest.$ac_ext
20225cat >>conftest.$ac_ext <<_ACEOF
20226/* end confdefs.h.  */
20227$ac_includes_default
20228/* malloc might have been renamed as rpl_malloc. */
20229#undef malloc
20230
20231/* Thanks to Mike Haertel and Jim Avera for this test.
20232   Here is a matrix of mmap possibilities:
20233	mmap private not fixed
20234	mmap private fixed at somewhere currently unmapped
20235	mmap private fixed at somewhere already mapped
20236	mmap shared not fixed
20237	mmap shared fixed at somewhere currently unmapped
20238	mmap shared fixed at somewhere already mapped
20239   For private mappings, we should verify that changes cannot be read()
20240   back from the file, nor mmap's back from the file at a different
20241   address.  (There have been systems where private was not correctly
20242   implemented like the infamous i386 svr4.0, and systems where the
20243   VM page cache was not coherent with the file system buffer cache
20244   like early versions of FreeBSD and possibly contemporary NetBSD.)
20245   For shared mappings, we should conversely verify that changes get
20246   propagated back to all the places they're supposed to be.
20247
20248   Grep wants private fixed already mapped.
20249   The main things grep needs to know about mmap are:
20250   * does it exist and is it safe to write into the mmap'd area
20251   * how to use it (BSD variants)  */
20252
20253#include <fcntl.h>
20254#include <sys/mman.h>
20255
20256#if !STDC_HEADERS && !HAVE_STDLIB_H
20257char *malloc ();
20258#endif
20259
20260/* This mess was copied from the GNU getpagesize.h.  */
20261#if !HAVE_GETPAGESIZE
20262/* Assume that all systems that can run configure have sys/param.h.  */
20263# if !HAVE_SYS_PARAM_H
20264#  define HAVE_SYS_PARAM_H 1
20265# endif
20266
20267# ifdef _SC_PAGESIZE
20268#  define getpagesize() sysconf(_SC_PAGESIZE)
20269# else /* no _SC_PAGESIZE */
20270#  if HAVE_SYS_PARAM_H
20271#   include <sys/param.h>
20272#   ifdef EXEC_PAGESIZE
20273#    define getpagesize() EXEC_PAGESIZE
20274#   else /* no EXEC_PAGESIZE */
20275#    ifdef NBPG
20276#     define getpagesize() NBPG * CLSIZE
20277#     ifndef CLSIZE
20278#      define CLSIZE 1
20279#     endif /* no CLSIZE */
20280#    else /* no NBPG */
20281#     ifdef NBPC
20282#      define getpagesize() NBPC
20283#     else /* no NBPC */
20284#      ifdef PAGESIZE
20285#       define getpagesize() PAGESIZE
20286#      endif /* PAGESIZE */
20287#     endif /* no NBPC */
20288#    endif /* no NBPG */
20289#   endif /* no EXEC_PAGESIZE */
20290#  else /* no HAVE_SYS_PARAM_H */
20291#   define getpagesize() 8192	/* punt totally */
20292#  endif /* no HAVE_SYS_PARAM_H */
20293# endif /* no _SC_PAGESIZE */
20294
20295#endif /* no HAVE_GETPAGESIZE */
20296
20297int
20298main ()
20299{
20300  char *data, *data2, *data3;
20301  int i, pagesize;
20302  int fd;
20303
20304  pagesize = getpagesize ();
20305
20306  /* First, make a file with some known garbage in it. */
20307  data = (char *) malloc (pagesize);
20308  if (!data)
20309    return 1;
20310  for (i = 0; i < pagesize; ++i)
20311    *(data + i) = rand ();
20312  umask (0);
20313  fd = creat ("conftest.mmap", 0600);
20314  if (fd < 0)
20315    return 1;
20316  if (write (fd, data, pagesize) != pagesize)
20317    return 1;
20318  close (fd);
20319
20320  /* Next, try to mmap the file at a fixed address which already has
20321     something else allocated at it.  If we can, also make sure that
20322     we see the same garbage.  */
20323  fd = open ("conftest.mmap", O_RDWR);
20324  if (fd < 0)
20325    return 1;
20326  data2 = (char *) malloc (2 * pagesize);
20327  if (!data2)
20328    return 1;
20329  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20330  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20331		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20332    return 1;
20333  for (i = 0; i < pagesize; ++i)
20334    if (*(data + i) != *(data2 + i))
20335      return 1;
20336
20337  /* Finally, make sure that changes to the mapped area do not
20338     percolate back to the file as seen by read().  (This is a bug on
20339     some variants of i386 svr4.0.)  */
20340  for (i = 0; i < pagesize; ++i)
20341    *(data2 + i) = *(data2 + i) + 1;
20342  data3 = (char *) malloc (pagesize);
20343  if (!data3)
20344    return 1;
20345  if (read (fd, data3, pagesize) != pagesize)
20346    return 1;
20347  for (i = 0; i < pagesize; ++i)
20348    if (*(data + i) != *(data3 + i))
20349      return 1;
20350  close (fd);
20351  return 0;
20352}
20353_ACEOF
20354rm -f conftest$ac_exeext
20355if { (ac_try="$ac_link"
20356case "(($ac_try" in
20357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358  *) ac_try_echo=$ac_try;;
20359esac
20360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361  (eval "$ac_link") 2>&5
20362  ac_status=$?
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20365  { (case "(($ac_try" in
20366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367  *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370  (eval "$ac_try") 2>&5
20371  ac_status=$?
20372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373  (exit $ac_status); }; }; then
20374  ac_cv_func_mmap_fixed_mapped=yes
20375else
20376  echo "$as_me: program exited with status $ac_status" >&5
20377echo "$as_me: failed program was:" >&5
20378sed 's/^/| /' conftest.$ac_ext >&5
20379
20380( exit $ac_status )
20381ac_cv_func_mmap_fixed_mapped=no
20382fi
20383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20384fi
20385
20386
20387fi
20388{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20389echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20390if test $ac_cv_func_mmap_fixed_mapped = yes; then
20391
20392cat >>confdefs.h <<\_ACEOF
20393#define HAVE_MMAP 1
20394_ACEOF
20395
20396fi
20397rm -f conftest.mmap
20398
20399  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20400echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20401if test "${ac_cv_func_mmap_file+set}" = set; then
20402  echo $ECHO_N "(cached) $ECHO_C" >&6
20403else
20404   ac_ext=c
20405ac_cpp='$CPP $CPPFLAGS'
20406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410  if test "$cross_compiling" = yes; then
20411  ac_cv_func_mmap_file=no
20412else
20413  cat >conftest.$ac_ext <<_ACEOF
20414
20415    /* confdefs.h.  */
20416_ACEOF
20417cat confdefs.h >>conftest.$ac_ext
20418cat >>conftest.$ac_ext <<_ACEOF
20419/* end confdefs.h.  */
20420
20421#include <sys/types.h>
20422#include <sys/mman.h>
20423#include <fcntl.h>
20424
20425int
20426main ()
20427{
20428
20429  int fd;
20430  fd = creat ("foo",0777);
20431  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20432  unlink ("foo");
20433  return (fd != (int) MAP_FAILED);
20434  ;
20435  return 0;
20436}
20437_ACEOF
20438rm -f conftest$ac_exeext
20439if { (ac_try="$ac_link"
20440case "(($ac_try" in
20441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442  *) ac_try_echo=$ac_try;;
20443esac
20444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445  (eval "$ac_link") 2>&5
20446  ac_status=$?
20447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449  { (case "(($ac_try" in
20450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451  *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454  (eval "$ac_try") 2>&5
20455  ac_status=$?
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); }; }; then
20458  ac_cv_func_mmap_file=yes
20459else
20460  echo "$as_me: program exited with status $ac_status" >&5
20461echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464( exit $ac_status )
20465ac_cv_func_mmap_file=no
20466fi
20467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20468fi
20469
20470
20471  ac_ext=c
20472ac_cpp='$CPP $CPPFLAGS'
20473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475ac_compiler_gnu=$ac_cv_c_compiler_gnu
20476
20477
20478fi
20479{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20480echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20481if test "$ac_cv_func_mmap_file" = yes; then
20482
20483cat >>confdefs.h <<\_ACEOF
20484#define HAVE_MMAP_FILE
20485_ACEOF
20486
20487   MMAP_FILE=yes
20488
20489fi
20490
20491  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20492echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20493if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20494  echo $ECHO_N "(cached) $ECHO_C" >&6
20495else
20496  if test "$llvm_cv_os_type" = "Interix" ; then
20497   ac_cv_need_dev_zero_for_mmap=yes
20498 else
20499   ac_cv_need_dev_zero_for_mmap=no
20500 fi
20501
20502fi
20503{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20504echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20505if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20506
20507cat >>confdefs.h <<\_ACEOF
20508#define NEED_DEV_ZERO_FOR_MMAP 1
20509_ACEOF
20510
20511fi
20512
20513  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20514  then
20515    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20516echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20517  fi
20518  if test "$ac_cv_func_mmap_file" = "no"
20519  then
20520    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20521echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20522  fi
20523fi
20524
20525{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20526echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20527ac_ext=cpp
20528ac_cpp='$CXXCPP $CPPFLAGS'
20529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20532
20533cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h.  */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h.  */
20539int main() {
20540        volatile unsigned long val = 1;
20541        __sync_synchronize();
20542        __sync_val_compare_and_swap(&val, 1, 0);
20543        __sync_add_and_fetch(&val, 1);
20544        __sync_sub_and_fetch(&val, 1);
20545        return 0;
20546      }
20547
20548_ACEOF
20549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (ac_try="$ac_link"
20551case "(($ac_try" in
20552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553  *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556  (eval "$ac_link") 2>conftest.er1
20557  ac_status=$?
20558  grep -v '^ *+' conftest.er1 >conftest.err
20559  rm -f conftest.er1
20560  cat conftest.err >&5
20561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562  (exit $ac_status); } &&
20563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564  { (case "(($ac_try" in
20565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566  *) ac_try_echo=$ac_try;;
20567esac
20568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569  (eval "$ac_try") 2>&5
20570  ac_status=$?
20571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572  (exit $ac_status); }; } &&
20573	 { ac_try='test -s conftest$ac_exeext'
20574  { (case "(($ac_try" in
20575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576  *) ac_try_echo=$ac_try;;
20577esac
20578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579  (eval "$ac_try") 2>&5
20580  ac_status=$?
20581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582  (exit $ac_status); }; }; then
20583  ac_ext=c
20584ac_cpp='$CPP $CPPFLAGS'
20585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589  { echo "$as_me:$LINENO: result: yes" >&5
20590echo "${ECHO_T}yes" >&6; }
20591
20592cat >>confdefs.h <<\_ACEOF
20593#define LLVM_HAS_ATOMICS 1
20594_ACEOF
20595
20596else
20597  echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
20599
20600	{ echo "$as_me:$LINENO: result: no" >&5
20601echo "${ECHO_T}no" >&6; }
20602
20603cat >>confdefs.h <<\_ACEOF
20604#define LLVM_HAS_ATOMICS 0
20605_ACEOF
20606
20607  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20608echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20609fi
20610
20611rm -f core conftest.err conftest.$ac_objext \
20612      conftest$ac_exeext conftest.$ac_ext
20613
20614
20615if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20616  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20617echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20618if test "${llvm_cv_linux_mixed+set}" = set; then
20619  echo $ECHO_N "(cached) $ECHO_C" >&6
20620else
20621   ac_ext=c
20622ac_cpp='$CPP $CPPFLAGS'
20623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626
20627  cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h.  */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h.  */
20633#ifndef __x86_64__
20634       error: Not x86-64 even if uname says so!
20635      #endif
20636
20637int
20638main ()
20639{
20640
20641  ;
20642  return 0;
20643}
20644_ACEOF
20645rm -f conftest.$ac_objext
20646if { (ac_try="$ac_compile"
20647case "(($ac_try" in
20648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649  *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652  (eval "$ac_compile") 2>conftest.er1
20653  ac_status=$?
20654  grep -v '^ *+' conftest.er1 >conftest.err
20655  rm -f conftest.er1
20656  cat conftest.err >&5
20657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658  (exit $ac_status); } &&
20659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20660  { (case "(($ac_try" in
20661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662  *) ac_try_echo=$ac_try;;
20663esac
20664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665  (eval "$ac_try") 2>&5
20666  ac_status=$?
20667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668  (exit $ac_status); }; } &&
20669	 { ac_try='test -s conftest.$ac_objext'
20670  { (case "(($ac_try" in
20671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672  *) ac_try_echo=$ac_try;;
20673esac
20674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675  (eval "$ac_try") 2>&5
20676  ac_status=$?
20677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678  (exit $ac_status); }; }; then
20679  llvm_cv_linux_mixed=no
20680else
20681  echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
20684	llvm_cv_linux_mixed=yes
20685fi
20686
20687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688  ac_ext=c
20689ac_cpp='$CPP $CPPFLAGS'
20690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693
20694
20695fi
20696{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20697echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20698
20699  if test "$llvm_cv_linux_mixed" = "yes"; then
20700    llvm_cv_target_arch="x86"
20701    ARCH="x86"
20702  fi
20703fi
20704
20705
20706for ac_func in __dso_handle
20707do
20708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20712  echo $ECHO_N "(cached) $ECHO_C" >&6
20713else
20714  cat >conftest.$ac_ext <<_ACEOF
20715/* confdefs.h.  */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h.  */
20720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20722#define $ac_func innocuous_$ac_func
20723
20724/* System header to define __stub macros and hopefully few prototypes,
20725    which can conflict with char $ac_func (); below.
20726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727    <limits.h> exists even on freestanding compilers.  */
20728
20729#ifdef __STDC__
20730# include <limits.h>
20731#else
20732# include <assert.h>
20733#endif
20734
20735#undef $ac_func
20736
20737/* Override any GCC internal prototype to avoid an error.
20738   Use char because int might match the return type of a GCC
20739   builtin and then its argument prototype would still apply.  */
20740#ifdef __cplusplus
20741extern "C"
20742#endif
20743char $ac_func ();
20744/* The GNU C library defines this for functions which it implements
20745    to always fail with ENOSYS.  Some functions are actually named
20746    something starting with __ and the normal name is an alias.  */
20747#if defined __stub_$ac_func || defined __stub___$ac_func
20748choke me
20749#endif
20750
20751int
20752main ()
20753{
20754return $ac_func ();
20755  ;
20756  return 0;
20757}
20758_ACEOF
20759rm -f conftest.$ac_objext conftest$ac_exeext
20760if { (ac_try="$ac_link"
20761case "(($ac_try" in
20762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763  *) ac_try_echo=$ac_try;;
20764esac
20765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766  (eval "$ac_link") 2>conftest.er1
20767  ac_status=$?
20768  grep -v '^ *+' conftest.er1 >conftest.err
20769  rm -f conftest.er1
20770  cat conftest.err >&5
20771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772  (exit $ac_status); } &&
20773	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774  { (case "(($ac_try" in
20775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776  *) ac_try_echo=$ac_try;;
20777esac
20778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779  (eval "$ac_try") 2>&5
20780  ac_status=$?
20781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782  (exit $ac_status); }; } &&
20783	 { ac_try='test -s conftest$ac_exeext'
20784  { (case "(($ac_try" in
20785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786  *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789  (eval "$ac_try") 2>&5
20790  ac_status=$?
20791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792  (exit $ac_status); }; }; then
20793  eval "$as_ac_var=yes"
20794else
20795  echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798	eval "$as_ac_var=no"
20799fi
20800
20801rm -f core conftest.err conftest.$ac_objext \
20802      conftest$ac_exeext conftest.$ac_ext
20803fi
20804ac_res=`eval echo '${'$as_ac_var'}'`
20805	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20806echo "${ECHO_T}$ac_res" >&6; }
20807if test `eval echo '${'$as_ac_var'}'` = yes; then
20808  cat >>confdefs.h <<_ACEOF
20809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20810_ACEOF
20811
20812fi
20813done
20814
20815
20816SHLIBEXT=$libltdl_cv_shlibext
20817
20818
20819SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20820
20821
20822# Translate the various configuration directories and other basic
20823# information into substitutions that will end up in Makefile.config.in
20824# that these configured values can be used by the makefiles
20825if test "${prefix}" = "NONE" ; then
20826  prefix="/usr/local"
20827fi
20828eval LLVM_PREFIX="${prefix}";
20829eval LLVM_BINDIR="${prefix}/bin";
20830eval LLVM_LIBDIR="${prefix}/lib";
20831eval LLVM_DATADIR="${prefix}/share/llvm";
20832eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20833eval LLVM_ETCDIR="${prefix}/etc/llvm";
20834eval LLVM_INCLUDEDIR="${prefix}/include";
20835eval LLVM_INFODIR="${prefix}/info";
20836eval LLVM_MANDIR="${prefix}/man";
20837LLVM_CONFIGTIME=`date`
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849# Place the various directores into the config.h file as #defines so that we
20850# can know about the installation paths within LLVM.
20851
20852cat >>confdefs.h <<_ACEOF
20853#define LLVM_PREFIX "$LLVM_PREFIX"
20854_ACEOF
20855
20856
20857cat >>confdefs.h <<_ACEOF
20858#define LLVM_BINDIR "$LLVM_BINDIR"
20859_ACEOF
20860
20861
20862cat >>confdefs.h <<_ACEOF
20863#define LLVM_LIBDIR "$LLVM_LIBDIR"
20864_ACEOF
20865
20866
20867cat >>confdefs.h <<_ACEOF
20868#define LLVM_DATADIR "$LLVM_DATADIR"
20869_ACEOF
20870
20871
20872cat >>confdefs.h <<_ACEOF
20873#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20874_ACEOF
20875
20876
20877cat >>confdefs.h <<_ACEOF
20878#define LLVM_ETCDIR "$LLVM_ETCDIR"
20879_ACEOF
20880
20881
20882cat >>confdefs.h <<_ACEOF
20883#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20884_ACEOF
20885
20886
20887cat >>confdefs.h <<_ACEOF
20888#define LLVM_INFODIR "$LLVM_INFODIR"
20889_ACEOF
20890
20891
20892cat >>confdefs.h <<_ACEOF
20893#define LLVM_MANDIR "$LLVM_MANDIR"
20894_ACEOF
20895
20896
20897cat >>confdefs.h <<_ACEOF
20898#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20899_ACEOF
20900
20901
20902cat >>confdefs.h <<_ACEOF
20903#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20904_ACEOF
20905
20906
20907# Determine which bindings to build.
20908if test "$BINDINGS_TO_BUILD" = auto ; then
20909  BINDINGS_TO_BUILD=""
20910  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20911    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20912  fi
20913fi
20914BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20915
20916
20917# This isn't really configurey, but it avoids having to repeat the list in
20918# other files.
20919ALL_BINDINGS=ocaml
20920
20921
20922# Do any work necessary to ensure that bindings have what they need.
20923binding_prereqs_failed=0
20924for a_binding in $BINDINGS_TO_BUILD ; do
20925  case "$a_binding" in
20926  ocaml)
20927    if test "x$OCAMLC" = x ; then
20928      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20929echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20930      binding_prereqs_failed=1
20931    fi
20932    if test "x$OCAMLDEP" = x ; then
20933      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20934echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20935      binding_prereqs_failed=1
20936    fi
20937    if test "x$OCAMLOPT" = x ; then
20938      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20939echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20940          fi
20941    if test "x$with_ocaml_libdir" != xauto ; then
20942      OCAML_LIBDIR=$with_ocaml_libdir
20943
20944    else
20945      ocaml_stdlib="`"$OCAMLC" -where`"
20946      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20947      then
20948        # ocaml stdlib is beneath our prefix; use stdlib
20949        OCAML_LIBDIR=$ocaml_stdlib
20950
20951      else
20952        # ocaml stdlib is outside our prefix; use libdir/ocaml
20953        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20954
20955      fi
20956    fi
20957    ;;
20958  esac
20959done
20960if test "$binding_prereqs_failed" = 1 ; then
20961  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20962echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20963   { (exit 1); exit 1; }; }
20964fi
20965
20966{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20967echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20968if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20969  echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971   ac_ext=cpp
20972ac_cpp='$CXXCPP $CPPFLAGS'
20973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977  oldcxxflags="$CXXFLAGS"
20978  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20979  cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h.  */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h.  */
20985
20986int
20987main ()
20988{
20989
20990  ;
20991  return 0;
20992}
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (ac_try="$ac_compile"
20996case "(($ac_try" in
20997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998  *) ac_try_echo=$ac_try;;
20999esac
21000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001  (eval "$ac_compile") 2>conftest.er1
21002  ac_status=$?
21003  grep -v '^ *+' conftest.er1 >conftest.err
21004  rm -f conftest.er1
21005  cat conftest.err >&5
21006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007  (exit $ac_status); } &&
21008	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21009  { (case "(($ac_try" in
21010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011  *) ac_try_echo=$ac_try;;
21012esac
21013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014  (eval "$ac_try") 2>&5
21015  ac_status=$?
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); }; } &&
21018	 { ac_try='test -s conftest.$ac_objext'
21019  { (case "(($ac_try" in
21020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021  *) ac_try_echo=$ac_try;;
21022esac
21023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024  (eval "$ac_try") 2>&5
21025  ac_status=$?
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); }; }; then
21028  llvm_cv_cxx_visibility_inlines_hidden=yes
21029else
21030  echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033	llvm_cv_cxx_visibility_inlines_hidden=no
21034fi
21035
21036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037  CXXFLAGS="$oldcxxflags"
21038  ac_ext=c
21039ac_cpp='$CPP $CPPFLAGS'
21040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_c_compiler_gnu
21043
21044
21045fi
21046{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21047echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21048if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21049  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21050
21051else
21052  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21053
21054fi
21055
21056
21057if test "$llvm_cv_link_use_r" = "yes" ; then
21058  RPATH="-Wl,-R"
21059else
21060  RPATH="-Wl,-rpath"
21061fi
21062
21063
21064if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21065  RDYNAMIC="-Wl,-export-dynamic"
21066else
21067  RDYNAMIC=""
21068fi
21069
21070
21071
21072ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21073
21074
21075
21076
21077
21078
21079ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21080
21081ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21082
21083ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21084
21085ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21086
21087ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21088
21089
21090ac_config_files="$ac_config_files Makefile.config"
21091
21092
21093ac_config_files="$ac_config_files llvm.spec"
21094
21095
21096ac_config_files="$ac_config_files docs/doxygen.cfg"
21097
21098if test -f ${srcdir}/tools/clang/README.txt; then
21099  ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21100
21101fi
21102
21103ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21104
21105
21106ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21107
21108
21109ac_config_commands="$ac_config_commands setup"
21110
21111ac_config_commands="$ac_config_commands Makefile"
21112
21113
21114ac_config_commands="$ac_config_commands Makefile.common"
21115
21116
21117ac_config_commands="$ac_config_commands examples/Makefile"
21118
21119
21120ac_config_commands="$ac_config_commands lib/Makefile"
21121
21122
21123ac_config_commands="$ac_config_commands runtime/Makefile"
21124
21125
21126ac_config_commands="$ac_config_commands test/Makefile"
21127
21128
21129ac_config_commands="$ac_config_commands test/Makefile.tests"
21130
21131
21132ac_config_commands="$ac_config_commands unittests/Makefile"
21133
21134
21135ac_config_commands="$ac_config_commands tools/Makefile"
21136
21137
21138ac_config_commands="$ac_config_commands utils/Makefile"
21139
21140
21141ac_config_commands="$ac_config_commands projects/Makefile"
21142
21143
21144ac_config_commands="$ac_config_commands bindings/Makefile"
21145
21146
21147ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21148
21149
21150
21151cat >confcache <<\_ACEOF
21152# This file is a shell script that caches the results of configure
21153# tests run on this system so they can be shared between configure
21154# scripts and configure runs, see configure's option --config-cache.
21155# It is not useful on other systems.  If it contains results you don't
21156# want to keep, you may remove or edit it.
21157#
21158# config.status only pays attention to the cache file if you give it
21159# the --recheck option to rerun configure.
21160#
21161# `ac_cv_env_foo' variables (set or unset) will be overridden when
21162# loading this file, other *unset* `ac_cv_foo' will be assigned the
21163# following values.
21164
21165_ACEOF
21166
21167# The following way of writing the cache mishandles newlines in values,
21168# but we know of no workaround that is simple, portable, and efficient.
21169# So, we kill variables containing newlines.
21170# Ultrix sh set writes to stderr and can't be redirected directly,
21171# and sets the high bit in the cache file unless we assign to the vars.
21172(
21173  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174    eval ac_val=\$$ac_var
21175    case $ac_val in #(
21176    *${as_nl}*)
21177      case $ac_var in #(
21178      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21179echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21180      esac
21181      case $ac_var in #(
21182      _ | IFS | as_nl) ;; #(
21183      *) $as_unset $ac_var ;;
21184      esac ;;
21185    esac
21186  done
21187
21188  (set) 2>&1 |
21189    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21190    *${as_nl}ac_space=\ *)
21191      # `set' does not quote correctly, so add quotes (double-quote
21192      # substitution turns \\\\ into \\, and sed turns \\ into \).
21193      sed -n \
21194	"s/'/'\\\\''/g;
21195	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21196      ;; #(
21197    *)
21198      # `set' quotes correctly as required by POSIX, so do not add quotes.
21199      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21200      ;;
21201    esac |
21202    sort
21203) |
21204  sed '
21205     /^ac_cv_env_/b end
21206     t clear
21207     :clear
21208     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21209     t end
21210     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21211     :end' >>confcache
21212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21213  if test -w "$cache_file"; then
21214    test "x$cache_file" != "x/dev/null" &&
21215      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21216echo "$as_me: updating cache $cache_file" >&6;}
21217    cat confcache >$cache_file
21218  else
21219    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21220echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21221  fi
21222fi
21223rm -f confcache
21224
21225test "x$prefix" = xNONE && prefix=$ac_default_prefix
21226# Let make expand exec_prefix.
21227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21228
21229DEFS=-DHAVE_CONFIG_H
21230
21231ac_libobjs=
21232ac_ltlibobjs=
21233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234  # 1. Remove the extension, and $U if already installed.
21235  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21236  ac_i=`echo "$ac_i" | sed "$ac_script"`
21237  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21238  #    will be set to the directory where LIBOBJS objects are built.
21239  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21241done
21242LIBOBJS=$ac_libobjs
21243
21244LTLIBOBJS=$ac_ltlibobjs
21245
21246
21247if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21248  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21249Usually this means the macro was only invoked conditionally." >&5
21250echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21251Usually this means the macro was only invoked conditionally." >&2;}
21252   { (exit 1); exit 1; }; }
21253fi
21254if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21255  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256Usually this means the macro was only invoked conditionally." >&5
21257echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258Usually this means the macro was only invoked conditionally." >&2;}
21259   { (exit 1); exit 1; }; }
21260fi
21261
21262: ${CONFIG_STATUS=./config.status}
21263ac_clean_files_save=$ac_clean_files
21264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21265{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21266echo "$as_me: creating $CONFIG_STATUS" >&6;}
21267cat >$CONFIG_STATUS <<_ACEOF
21268#! $SHELL
21269# Generated by $as_me.
21270# Run this file to recreate the current configuration.
21271# Compiler output produced by configure, useful for debugging
21272# configure, is in config.log if it exists.
21273
21274debug=false
21275ac_cs_recheck=false
21276ac_cs_silent=false
21277SHELL=\${CONFIG_SHELL-$SHELL}
21278_ACEOF
21279
21280cat >>$CONFIG_STATUS <<\_ACEOF
21281## --------------------- ##
21282## M4sh Initialization.  ##
21283## --------------------- ##
21284
21285# Be Bourne compatible
21286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21287  emulate sh
21288  NULLCMD=:
21289  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21290  # is contrary to our usage.  Disable this feature.
21291  alias -g '${1+"$@"}'='"$@"'
21292  setopt NO_GLOB_SUBST
21293else
21294  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21295fi
21296BIN_SH=xpg4; export BIN_SH # for Tru64
21297DUALCASE=1; export DUALCASE # for MKS sh
21298
21299
21300# PATH needs CR
21301# Avoid depending upon Character Ranges.
21302as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21303as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21304as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21305as_cr_digits='0123456789'
21306as_cr_alnum=$as_cr_Letters$as_cr_digits
21307
21308# The user is always right.
21309if test "${PATH_SEPARATOR+set}" != set; then
21310  echo "#! /bin/sh" >conf$$.sh
21311  echo  "exit 0"   >>conf$$.sh
21312  chmod +x conf$$.sh
21313  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21314    PATH_SEPARATOR=';'
21315  else
21316    PATH_SEPARATOR=:
21317  fi
21318  rm -f conf$$.sh
21319fi
21320
21321# Support unset when possible.
21322if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21323  as_unset=unset
21324else
21325  as_unset=false
21326fi
21327
21328
21329# IFS
21330# We need space, tab and new line, in precisely that order.  Quoting is
21331# there to prevent editors from complaining about space-tab.
21332# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21333# splitting by setting IFS to empty value.)
21334as_nl='
21335'
21336IFS=" ""	$as_nl"
21337
21338# Find who we are.  Look in the path if we contain no directory separator.
21339case $0 in
21340  *[\\/]* ) as_myself=$0 ;;
21341  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342for as_dir in $PATH
21343do
21344  IFS=$as_save_IFS
21345  test -z "$as_dir" && as_dir=.
21346  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21347done
21348IFS=$as_save_IFS
21349
21350     ;;
21351esac
21352# We did not find ourselves, most probably we were run as `sh COMMAND'
21353# in which case we are not to be found in the path.
21354if test "x$as_myself" = x; then
21355  as_myself=$0
21356fi
21357if test ! -f "$as_myself"; then
21358  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21359  { (exit 1); exit 1; }
21360fi
21361
21362# Work around bugs in pre-3.0 UWIN ksh.
21363for as_var in ENV MAIL MAILPATH
21364do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21365done
21366PS1='$ '
21367PS2='> '
21368PS4='+ '
21369
21370# NLS nuisances.
21371for as_var in \
21372  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374  LC_TELEPHONE LC_TIME
21375do
21376  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377    eval $as_var=C; export $as_var
21378  else
21379    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21380  fi
21381done
21382
21383# Required to use basename.
21384if expr a : '\(a\)' >/dev/null 2>&1 &&
21385   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21386  as_expr=expr
21387else
21388  as_expr=false
21389fi
21390
21391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21392  as_basename=basename
21393else
21394  as_basename=false
21395fi
21396
21397
21398# Name of the executable.
21399as_me=`$as_basename -- "$0" ||
21400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21401	 X"$0" : 'X\(//\)$' \| \
21402	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21403echo X/"$0" |
21404    sed '/^.*\/\([^/][^/]*\)\/*$/{
21405	    s//\1/
21406	    q
21407	  }
21408	  /^X\/\(\/\/\)$/{
21409	    s//\1/
21410	    q
21411	  }
21412	  /^X\/\(\/\).*/{
21413	    s//\1/
21414	    q
21415	  }
21416	  s/.*/./; q'`
21417
21418# CDPATH.
21419$as_unset CDPATH
21420
21421
21422
21423  as_lineno_1=$LINENO
21424  as_lineno_2=$LINENO
21425  test "x$as_lineno_1" != "x$as_lineno_2" &&
21426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21427
21428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429  # uniformly replaced by the line number.  The first 'sed' inserts a
21430  # line-number line after each line using $LINENO; the second 'sed'
21431  # does the real work.  The second script uses 'N' to pair each
21432  # line-number line with the line containing $LINENO, and appends
21433  # trailing '-' during substitution so that $LINENO is not a special
21434  # case at line end.
21435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21437  # E. McMahon (1931-1989) for sed's syntax.  :-)
21438  sed -n '
21439    p
21440    /[$]LINENO/=
21441  ' <$as_myself |
21442    sed '
21443      s/[$]LINENO.*/&-/
21444      t lineno
21445      b
21446      :lineno
21447      N
21448      :loop
21449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21450      t loop
21451      s/-\n.*//
21452    ' >$as_me.lineno &&
21453  chmod +x "$as_me.lineno" ||
21454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21455   { (exit 1); exit 1; }; }
21456
21457  # Don't try to exec as it changes $[0], causing all sort of problems
21458  # (the dirname of $[0] is not the place where we might find the
21459  # original and so on.  Autoconf is especially sensitive to this).
21460  . "./$as_me.lineno"
21461  # Exit status is that of the last command.
21462  exit
21463}
21464
21465
21466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21467  as_dirname=dirname
21468else
21469  as_dirname=false
21470fi
21471
21472ECHO_C= ECHO_N= ECHO_T=
21473case `echo -n x` in
21474-n*)
21475  case `echo 'x\c'` in
21476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21477  *)   ECHO_C='\c';;
21478  esac;;
21479*)
21480  ECHO_N='-n';;
21481esac
21482
21483if expr a : '\(a\)' >/dev/null 2>&1 &&
21484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21485  as_expr=expr
21486else
21487  as_expr=false
21488fi
21489
21490rm -f conf$$ conf$$.exe conf$$.file
21491if test -d conf$$.dir; then
21492  rm -f conf$$.dir/conf$$.file
21493else
21494  rm -f conf$$.dir
21495  mkdir conf$$.dir
21496fi
21497echo >conf$$.file
21498if ln -s conf$$.file conf$$ 2>/dev/null; then
21499  as_ln_s='ln -s'
21500  # ... but there are two gotchas:
21501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21503  # In both cases, we have to default to `cp -p'.
21504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21505    as_ln_s='cp -p'
21506elif ln conf$$.file conf$$ 2>/dev/null; then
21507  as_ln_s=ln
21508else
21509  as_ln_s='cp -p'
21510fi
21511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21512rmdir conf$$.dir 2>/dev/null
21513
21514if mkdir -p . 2>/dev/null; then
21515  as_mkdir_p=:
21516else
21517  test -d ./-p && rmdir ./-p
21518  as_mkdir_p=false
21519fi
21520
21521# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21522# systems may use methods other than mode bits to determine executability.
21523cat >conf$$.file <<_ASEOF
21524#! /bin/sh
21525exit 0
21526_ASEOF
21527chmod +x conf$$.file
21528if test -x conf$$.file >/dev/null 2>&1; then
21529  as_executable_p="test -x"
21530else
21531  as_executable_p=:
21532fi
21533rm -f conf$$.file
21534
21535# Sed expression to map a string onto a valid CPP name.
21536as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21537
21538# Sed expression to map a string onto a valid variable name.
21539as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21540
21541
21542exec 6>&1
21543
21544# Save the log message, to keep $[0] and so on meaningful, and to
21545# report actual input values of CONFIG_FILES etc. instead of their
21546# values after options handling.
21547ac_log="
21548This file was extended by llvm $as_me 3.1svn, which was
21549generated by GNU Autoconf 2.60.  Invocation command line was
21550
21551  CONFIG_FILES    = $CONFIG_FILES
21552  CONFIG_HEADERS  = $CONFIG_HEADERS
21553  CONFIG_LINKS    = $CONFIG_LINKS
21554  CONFIG_COMMANDS = $CONFIG_COMMANDS
21555  $ $0 $@
21556
21557on `(hostname || uname -n) 2>/dev/null | sed 1q`
21558"
21559
21560_ACEOF
21561
21562cat >>$CONFIG_STATUS <<_ACEOF
21563# Files that config.status was made for.
21564config_files="$ac_config_files"
21565config_headers="$ac_config_headers"
21566config_commands="$ac_config_commands"
21567
21568_ACEOF
21569
21570cat >>$CONFIG_STATUS <<\_ACEOF
21571ac_cs_usage="\
21572\`$as_me' instantiates files from templates according to the
21573current configuration.
21574
21575Usage: $0 [OPTIONS] [FILE]...
21576
21577  -h, --help       print this help, then exit
21578  -V, --version    print version number, then exit
21579  -q, --quiet      do not print progress messages
21580  -d, --debug      don't remove temporary files
21581      --recheck    update $as_me by reconfiguring in the same conditions
21582  --file=FILE[:TEMPLATE]
21583		   instantiate the configuration file FILE
21584  --header=FILE[:TEMPLATE]
21585		   instantiate the configuration header FILE
21586
21587Configuration files:
21588$config_files
21589
21590Configuration headers:
21591$config_headers
21592
21593Configuration commands:
21594$config_commands
21595
21596Report bugs to <bug-autoconf@gnu.org>."
21597
21598_ACEOF
21599cat >>$CONFIG_STATUS <<_ACEOF
21600ac_cs_version="\\
21601llvm config.status 3.1svn
21602configured by $0, generated by GNU Autoconf 2.60,
21603  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21604
21605Copyright (C) 2006 Free Software Foundation, Inc.
21606This config.status script is free software; the Free Software Foundation
21607gives unlimited permission to copy, distribute and modify it."
21608
21609ac_pwd='$ac_pwd'
21610srcdir='$srcdir'
21611INSTALL='$INSTALL'
21612_ACEOF
21613
21614cat >>$CONFIG_STATUS <<\_ACEOF
21615# If no file are specified by the user, then we need to provide default
21616# value.  By we need to know if files were specified by the user.
21617ac_need_defaults=:
21618while test $# != 0
21619do
21620  case $1 in
21621  --*=*)
21622    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21623    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21624    ac_shift=:
21625    ;;
21626  *)
21627    ac_option=$1
21628    ac_optarg=$2
21629    ac_shift=shift
21630    ;;
21631  esac
21632
21633  case $ac_option in
21634  # Handling of the options.
21635  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21636    ac_cs_recheck=: ;;
21637  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21638    echo "$ac_cs_version"; exit ;;
21639  --debug | --debu | --deb | --de | --d | -d )
21640    debug=: ;;
21641  --file | --fil | --fi | --f )
21642    $ac_shift
21643    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21644    ac_need_defaults=false;;
21645  --header | --heade | --head | --hea )
21646    $ac_shift
21647    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21648    ac_need_defaults=false;;
21649  --he | --h)
21650    # Conflict between --help and --header
21651    { echo "$as_me: error: ambiguous option: $1
21652Try \`$0 --help' for more information." >&2
21653   { (exit 1); exit 1; }; };;
21654  --help | --hel | -h )
21655    echo "$ac_cs_usage"; exit ;;
21656  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21657  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21658    ac_cs_silent=: ;;
21659
21660  # This is an error.
21661  -*) { echo "$as_me: error: unrecognized option: $1
21662Try \`$0 --help' for more information." >&2
21663   { (exit 1); exit 1; }; } ;;
21664
21665  *) ac_config_targets="$ac_config_targets $1"
21666     ac_need_defaults=false ;;
21667
21668  esac
21669  shift
21670done
21671
21672ac_configure_extra_args=
21673
21674if $ac_cs_silent; then
21675  exec 6>/dev/null
21676  ac_configure_extra_args="$ac_configure_extra_args --silent"
21677fi
21678
21679_ACEOF
21680cat >>$CONFIG_STATUS <<_ACEOF
21681if \$ac_cs_recheck; then
21682  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21683  CONFIG_SHELL=$SHELL
21684  export CONFIG_SHELL
21685  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21686fi
21687
21688_ACEOF
21689cat >>$CONFIG_STATUS <<\_ACEOF
21690exec 5>>config.log
21691{
21692  echo
21693  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21694## Running $as_me. ##
21695_ASBOX
21696  echo "$ac_log"
21697} >&5
21698
21699_ACEOF
21700cat >>$CONFIG_STATUS <<_ACEOF
21701#
21702# INIT-COMMANDS
21703#
21704llvm_src="${srcdir}"
21705
21706_ACEOF
21707
21708cat >>$CONFIG_STATUS <<\_ACEOF
21709
21710# Handling of arguments.
21711for ac_config_target in $ac_config_targets
21712do
21713  case $ac_config_target in
21714    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21715    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21716    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21717    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21718    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21719    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21720    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21721    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21722    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21723    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21724    "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21725    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21726    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21727    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21728    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21729    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21730    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21731    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21732    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21733    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21734    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21735    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21736    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21737    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21738    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21739    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21740    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21741
21742  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21743echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21744   { (exit 1); exit 1; }; };;
21745  esac
21746done
21747
21748
21749# If the user did not use the arguments to specify the items to instantiate,
21750# then the envvar interface is used.  Set only those that are not.
21751# We use the long form for the default assignment because of an extremely
21752# bizarre bug on SunOS 4.1.3.
21753if $ac_need_defaults; then
21754  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21755  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21756  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21757fi
21758
21759# Have a temporary directory for convenience.  Make it in the build tree
21760# simply because there is no reason against having it here, and in addition,
21761# creating and moving files from /tmp can sometimes cause problems.
21762# Hook for its removal unless debugging.
21763# Note that there is a small window in which the directory will not be cleaned:
21764# after its creation but before its name has been assigned to `$tmp'.
21765$debug ||
21766{
21767  tmp=
21768  trap 'exit_status=$?
21769  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21770' 0
21771  trap '{ (exit 1); exit 1; }' 1 2 13 15
21772}
21773# Create a (secure) tmp directory for tmp files.
21774
21775{
21776  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21777  test -n "$tmp" && test -d "$tmp"
21778}  ||
21779{
21780  tmp=./conf$$-$RANDOM
21781  (umask 077 && mkdir "$tmp")
21782} ||
21783{
21784   echo "$me: cannot create a temporary directory in ." >&2
21785   { (exit 1); exit 1; }
21786}
21787
21788#
21789# Set up the sed scripts for CONFIG_FILES section.
21790#
21791
21792# No need to generate the scripts if there are no CONFIG_FILES.
21793# This happens for instance when ./config.status config.h
21794if test -n "$CONFIG_FILES"; then
21795
21796_ACEOF
21797
21798
21799
21800ac_delim='%!_!# '
21801for ac_last_try in false false false false false :; do
21802  cat >conf$$subs.sed <<_ACEOF
21803SHELL!$SHELL$ac_delim
21804PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21805PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21806PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21807PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21808PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21809PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21810exec_prefix!$exec_prefix$ac_delim
21811prefix!$prefix$ac_delim
21812program_transform_name!$program_transform_name$ac_delim
21813bindir!$bindir$ac_delim
21814sbindir!$sbindir$ac_delim
21815libexecdir!$libexecdir$ac_delim
21816datarootdir!$datarootdir$ac_delim
21817datadir!$datadir$ac_delim
21818sysconfdir!$sysconfdir$ac_delim
21819sharedstatedir!$sharedstatedir$ac_delim
21820localstatedir!$localstatedir$ac_delim
21821includedir!$includedir$ac_delim
21822oldincludedir!$oldincludedir$ac_delim
21823docdir!$docdir$ac_delim
21824infodir!$infodir$ac_delim
21825htmldir!$htmldir$ac_delim
21826dvidir!$dvidir$ac_delim
21827pdfdir!$pdfdir$ac_delim
21828psdir!$psdir$ac_delim
21829libdir!$libdir$ac_delim
21830localedir!$localedir$ac_delim
21831mandir!$mandir$ac_delim
21832DEFS!$DEFS$ac_delim
21833ECHO_C!$ECHO_C$ac_delim
21834ECHO_N!$ECHO_N$ac_delim
21835ECHO_T!$ECHO_T$ac_delim
21836LIBS!$LIBS$ac_delim
21837build_alias!$build_alias$ac_delim
21838host_alias!$host_alias$ac_delim
21839target_alias!$target_alias$ac_delim
21840LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21841CC!$CC$ac_delim
21842CFLAGS!$CFLAGS$ac_delim
21843LDFLAGS!$LDFLAGS$ac_delim
21844CPPFLAGS!$CPPFLAGS$ac_delim
21845ac_ct_CC!$ac_ct_CC$ac_delim
21846EXEEXT!$EXEEXT$ac_delim
21847OBJEXT!$OBJEXT$ac_delim
21848CXX!$CXX$ac_delim
21849CXXFLAGS!$CXXFLAGS$ac_delim
21850ac_ct_CXX!$ac_ct_CXX$ac_delim
21851CPP!$CPP$ac_delim
21852subdirs!$subdirs$ac_delim
21853ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21854LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21855build!$build$ac_delim
21856build_cpu!$build_cpu$ac_delim
21857build_vendor!$build_vendor$ac_delim
21858build_os!$build_os$ac_delim
21859host!$host$ac_delim
21860host_cpu!$host_cpu$ac_delim
21861host_vendor!$host_vendor$ac_delim
21862host_os!$host_os$ac_delim
21863target!$target$ac_delim
21864target_cpu!$target_cpu$ac_delim
21865target_vendor!$target_vendor$ac_delim
21866target_os!$target_os$ac_delim
21867OS!$OS$ac_delim
21868HOST_OS!$HOST_OS$ac_delim
21869TARGET_OS!$TARGET_OS$ac_delim
21870LINKALL!$LINKALL$ac_delim
21871NOLINKALL!$NOLINKALL$ac_delim
21872LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21873LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21874ARCH!$ARCH$ac_delim
21875ENDIAN!$ENDIAN$ac_delim
21876GREP!$GREP$ac_delim
21877EGREP!$EGREP$ac_delim
21878LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21879BUILD_CC!$BUILD_CC$ac_delim
21880BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21881BUILD_CXX!$BUILD_CXX$ac_delim
21882CVSBUILD!$CVSBUILD$ac_delim
21883ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21884ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21885ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21886DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21887ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21888EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21889DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21890DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21891JIT!$JIT$ac_delim
21892TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21893ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21894ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21895LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21896ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21897ENABLE_PIC!$ENABLE_PIC$ac_delim
21898ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21899ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21900_ACEOF
21901
21902  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21903    break
21904  elif $ac_last_try; then
21905    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21906echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21907   { (exit 1); exit 1; }; }
21908  else
21909    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21910  fi
21911done
21912
21913ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21914if test -n "$ac_eof"; then
21915  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21916  ac_eof=`expr $ac_eof + 1`
21917fi
21918
21919cat >>$CONFIG_STATUS <<_ACEOF
21920cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21922_ACEOF
21923sed '
21924s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21925s/^/s,@/; s/!/@,|#_!!_#|/
21926:n
21927t n
21928s/'"$ac_delim"'$/,g/; t
21929s/$/\\/; p
21930N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21931' >>$CONFIG_STATUS <conf$$subs.sed
21932rm -f conf$$subs.sed
21933cat >>$CONFIG_STATUS <<_ACEOF
21934CEOF$ac_eof
21935_ACEOF
21936
21937
21938ac_delim='%!_!# '
21939for ac_last_try in false false false false false :; do
21940  cat >conf$$subs.sed <<_ACEOF
21941ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21942TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21943LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21944LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21945LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21946LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21947ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21948OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21949EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21950EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21951CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21952BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21953INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21954NM!$NM$ac_delim
21955ifGNUmake!$ifGNUmake$ac_delim
21956LN_S!$LN_S$ac_delim
21957CMP!$CMP$ac_delim
21958CP!$CP$ac_delim
21959DATE!$DATE$ac_delim
21960FIND!$FIND$ac_delim
21961MKDIR!$MKDIR$ac_delim
21962MV!$MV$ac_delim
21963RANLIB!$RANLIB$ac_delim
21964AR!$AR$ac_delim
21965RM!$RM$ac_delim
21966SED!$SED$ac_delim
21967TAR!$TAR$ac_delim
21968BINPWD!$BINPWD$ac_delim
21969GRAPHVIZ!$GRAPHVIZ$ac_delim
21970DOT!$DOT$ac_delim
21971FDP!$FDP$ac_delim
21972NEATO!$NEATO$ac_delim
21973TWOPI!$TWOPI$ac_delim
21974CIRCO!$CIRCO$ac_delim
21975GV!$GV$ac_delim
21976DOTTY!$DOTTY$ac_delim
21977XDOT_PY!$XDOT_PY$ac_delim
21978PERL!$PERL$ac_delim
21979HAVE_PERL!$HAVE_PERL$ac_delim
21980INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21981INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21982INSTALL_DATA!$INSTALL_DATA$ac_delim
21983BZIP2!$BZIP2$ac_delim
21984CAT!$CAT$ac_delim
21985DOXYGEN!$DOXYGEN$ac_delim
21986GROFF!$GROFF$ac_delim
21987GZIPBIN!$GZIPBIN$ac_delim
21988POD2HTML!$POD2HTML$ac_delim
21989POD2MAN!$POD2MAN$ac_delim
21990PDFROFF!$PDFROFF$ac_delim
21991RUNTEST!$RUNTEST$ac_delim
21992TCLSH!$TCLSH$ac_delim
21993ZIP!$ZIP$ac_delim
21994OCAMLC!$OCAMLC$ac_delim
21995OCAMLOPT!$OCAMLOPT$ac_delim
21996OCAMLDEP!$OCAMLDEP$ac_delim
21997OCAMLDOC!$OCAMLDOC$ac_delim
21998GAS!$GAS$ac_delim
21999HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22000INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22001INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22002CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22003CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22004LIBADD_DL!$LIBADD_DL$ac_delim
22005NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22006NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22007USE_UDIS86!$USE_UDIS86$ac_delim
22008USE_OPROFILE!$USE_OPROFILE$ac_delim
22009HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22010HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22011MMAP_FILE!$MMAP_FILE$ac_delim
22012SHLIBEXT!$SHLIBEXT$ac_delim
22013SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22014LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22015LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22016LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22017LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22018LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22019LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22020LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22021LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22022LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22023LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22024BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22025ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22026OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22027ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22028RPATH!$RPATH$ac_delim
22029RDYNAMIC!$RDYNAMIC$ac_delim
22030LIBOBJS!$LIBOBJS$ac_delim
22031LTLIBOBJS!$LTLIBOBJS$ac_delim
22032_ACEOF
22033
22034  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22035    break
22036  elif $ac_last_try; then
22037    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22038echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22039   { (exit 1); exit 1; }; }
22040  else
22041    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22042  fi
22043done
22044
22045ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22046if test -n "$ac_eof"; then
22047  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22048  ac_eof=`expr $ac_eof + 1`
22049fi
22050
22051cat >>$CONFIG_STATUS <<_ACEOF
22052cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22054_ACEOF
22055sed '
22056s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22057s/^/s,@/; s/!/@,|#_!!_#|/
22058:n
22059t n
22060s/'"$ac_delim"'$/,g/; t
22061s/$/\\/; p
22062N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22063' >>$CONFIG_STATUS <conf$$subs.sed
22064rm -f conf$$subs.sed
22065cat >>$CONFIG_STATUS <<_ACEOF
22066:end
22067s/|#_!!_#|//g
22068CEOF$ac_eof
22069_ACEOF
22070
22071
22072# VPATH may cause trouble with some makes, so we remove $(srcdir),
22073# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22074# trailing colons and then remove the whole line if VPATH becomes empty
22075# (actually we leave an empty line to preserve line numbers).
22076if test "x$srcdir" = x.; then
22077  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22078s/:*\$(srcdir):*/:/
22079s/:*\${srcdir}:*/:/
22080s/:*@srcdir@:*/:/
22081s/^\([^=]*=[	 ]*\):*/\1/
22082s/:*$//
22083s/^[^=]*=[	 ]*$//
22084}'
22085fi
22086
22087cat >>$CONFIG_STATUS <<\_ACEOF
22088fi # test -n "$CONFIG_FILES"
22089
22090
22091for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22092do
22093  case $ac_tag in
22094  :[FHLC]) ac_mode=$ac_tag; continue;;
22095  esac
22096  case $ac_mode$ac_tag in
22097  :[FHL]*:*);;
22098  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22099echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22100   { (exit 1); exit 1; }; };;
22101  :[FH]-) ac_tag=-:-;;
22102  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22103  esac
22104  ac_save_IFS=$IFS
22105  IFS=:
22106  set x $ac_tag
22107  IFS=$ac_save_IFS
22108  shift
22109  ac_file=$1
22110  shift
22111
22112  case $ac_mode in
22113  :L) ac_source=$1;;
22114  :[FH])
22115    ac_file_inputs=
22116    for ac_f
22117    do
22118      case $ac_f in
22119      -) ac_f="$tmp/stdin";;
22120      *) # Look for the file first in the build tree, then in the source tree
22121	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22122	 # because $ac_f cannot contain `:'.
22123	 test -f "$ac_f" ||
22124	   case $ac_f in
22125	   [\\/$]*) false;;
22126	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22127	   esac ||
22128	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22129echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22130   { (exit 1); exit 1; }; };;
22131      esac
22132      ac_file_inputs="$ac_file_inputs $ac_f"
22133    done
22134
22135    # Let's still pretend it is `configure' which instantiates (i.e., don't
22136    # use $as_me), people would be surprised to read:
22137    #    /* config.h.  Generated by config.status.  */
22138    configure_input="Generated from "`IFS=:
22139	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22140    if test x"$ac_file" != x-; then
22141      configure_input="$ac_file.  $configure_input"
22142      { echo "$as_me:$LINENO: creating $ac_file" >&5
22143echo "$as_me: creating $ac_file" >&6;}
22144    fi
22145
22146    case $ac_tag in
22147    *:-:* | *:-) cat >"$tmp/stdin";;
22148    esac
22149    ;;
22150  esac
22151
22152  ac_dir=`$as_dirname -- "$ac_file" ||
22153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154	 X"$ac_file" : 'X\(//\)[^/]' \| \
22155	 X"$ac_file" : 'X\(//\)$' \| \
22156	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22157echo X"$ac_file" |
22158    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159	    s//\1/
22160	    q
22161	  }
22162	  /^X\(\/\/\)[^/].*/{
22163	    s//\1/
22164	    q
22165	  }
22166	  /^X\(\/\/\)$/{
22167	    s//\1/
22168	    q
22169	  }
22170	  /^X\(\/\).*/{
22171	    s//\1/
22172	    q
22173	  }
22174	  s/.*/./; q'`
22175  { as_dir="$ac_dir"
22176  case $as_dir in #(
22177  -*) as_dir=./$as_dir;;
22178  esac
22179  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22180    as_dirs=
22181    while :; do
22182      case $as_dir in #(
22183      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22184      *) as_qdir=$as_dir;;
22185      esac
22186      as_dirs="'$as_qdir' $as_dirs"
22187      as_dir=`$as_dirname -- "$as_dir" ||
22188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22189	 X"$as_dir" : 'X\(//\)[^/]' \| \
22190	 X"$as_dir" : 'X\(//\)$' \| \
22191	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22192echo X"$as_dir" |
22193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22194	    s//\1/
22195	    q
22196	  }
22197	  /^X\(\/\/\)[^/].*/{
22198	    s//\1/
22199	    q
22200	  }
22201	  /^X\(\/\/\)$/{
22202	    s//\1/
22203	    q
22204	  }
22205	  /^X\(\/\).*/{
22206	    s//\1/
22207	    q
22208	  }
22209	  s/.*/./; q'`
22210      test -d "$as_dir" && break
22211    done
22212    test -z "$as_dirs" || eval "mkdir $as_dirs"
22213  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22214echo "$as_me: error: cannot create directory $as_dir" >&2;}
22215   { (exit 1); exit 1; }; }; }
22216  ac_builddir=.
22217
22218case "$ac_dir" in
22219.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22220*)
22221  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22222  # A ".." for each directory in $ac_dir_suffix.
22223  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22224  case $ac_top_builddir_sub in
22225  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22226  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22227  esac ;;
22228esac
22229ac_abs_top_builddir=$ac_pwd
22230ac_abs_builddir=$ac_pwd$ac_dir_suffix
22231# for backward compatibility:
22232ac_top_builddir=$ac_top_build_prefix
22233
22234case $srcdir in
22235  .)  # We are building in place.
22236    ac_srcdir=.
22237    ac_top_srcdir=$ac_top_builddir_sub
22238    ac_abs_top_srcdir=$ac_pwd ;;
22239  [\\/]* | ?:[\\/]* )  # Absolute name.
22240    ac_srcdir=$srcdir$ac_dir_suffix;
22241    ac_top_srcdir=$srcdir
22242    ac_abs_top_srcdir=$srcdir ;;
22243  *) # Relative name.
22244    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22245    ac_top_srcdir=$ac_top_build_prefix$srcdir
22246    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22247esac
22248ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22249
22250
22251  case $ac_mode in
22252  :F)
22253  #
22254  # CONFIG_FILE
22255  #
22256
22257  case $INSTALL in
22258  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22259  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22260  esac
22261_ACEOF
22262
22263cat >>$CONFIG_STATUS <<\_ACEOF
22264# If the template does not know about datarootdir, expand it.
22265# FIXME: This hack should be removed a few years after 2.60.
22266ac_datarootdir_hack=; ac_datarootdir_seen=
22267
22268case `sed -n '/datarootdir/ {
22269  p
22270  q
22271}
22272/@datadir@/p
22273/@docdir@/p
22274/@infodir@/p
22275/@localedir@/p
22276/@mandir@/p
22277' $ac_file_inputs` in
22278*datarootdir*) ac_datarootdir_seen=yes;;
22279*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22280  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22281echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22282_ACEOF
22283cat >>$CONFIG_STATUS <<_ACEOF
22284  ac_datarootdir_hack='
22285  s&@datadir@&$datadir&g
22286  s&@docdir@&$docdir&g
22287  s&@infodir@&$infodir&g
22288  s&@localedir@&$localedir&g
22289  s&@mandir@&$mandir&g
22290    s&\\\${datarootdir}&$datarootdir&g' ;;
22291esac
22292_ACEOF
22293
22294# Neutralize VPATH when `$srcdir' = `.'.
22295# Shell code in configure.ac might set extrasub.
22296# FIXME: do we really want to maintain this feature?
22297cat >>$CONFIG_STATUS <<_ACEOF
22298  sed "$ac_vpsub
22299$extrasub
22300_ACEOF
22301cat >>$CONFIG_STATUS <<\_ACEOF
22302:t
22303/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22304s&@configure_input@&$configure_input&;t t
22305s&@top_builddir@&$ac_top_builddir_sub&;t t
22306s&@srcdir@&$ac_srcdir&;t t
22307s&@abs_srcdir@&$ac_abs_srcdir&;t t
22308s&@top_srcdir@&$ac_top_srcdir&;t t
22309s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22310s&@builddir@&$ac_builddir&;t t
22311s&@abs_builddir@&$ac_abs_builddir&;t t
22312s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22313s&@INSTALL@&$ac_INSTALL&;t t
22314$ac_datarootdir_hack
22315" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22316
22317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22318  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22319  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22320  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22321which seems to be undefined.  Please make sure it is defined." >&5
22322echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323which seems to be undefined.  Please make sure it is defined." >&2;}
22324
22325  rm -f "$tmp/stdin"
22326  case $ac_file in
22327  -) cat "$tmp/out"; rm -f "$tmp/out";;
22328  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22329  esac
22330 ;;
22331  :H)
22332  #
22333  # CONFIG_HEADER
22334  #
22335_ACEOF
22336
22337# Transform confdefs.h into a sed script `conftest.defines', that
22338# substitutes the proper values into config.h.in to produce config.h.
22339rm -f conftest.defines conftest.tail
22340# First, append a space to every undef/define line, to ease matching.
22341echo 's/$/ /' >conftest.defines
22342# Then, protect against being on the right side of a sed subst, or in
22343# an unquoted here document, in config.status.  If some macros were
22344# called several times there might be several #defines for the same
22345# symbol, which is useless.  But do not sort them, since the last
22346# AC_DEFINE must be honored.
22347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22348# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22349# NAME is the cpp macro being defined, VALUE is the value it is being given.
22350# PARAMS is the parameter list in the macro definition--in most cases, it's
22351# just an empty string.
22352ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22353ac_dB='\\)[	 (].*,\\1define\\2'
22354ac_dC=' '
22355ac_dD=' ,'
22356
22357uniq confdefs.h |
22358  sed -n '
22359	t rset
22360	:rset
22361	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22362	t ok
22363	d
22364	:ok
22365	s/[\\&,]/\\&/g
22366	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22367	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22368  ' >>conftest.defines
22369
22370# Remove the space that was appended to ease matching.
22371# Then replace #undef with comments.  This is necessary, for
22372# example, in the case of _POSIX_SOURCE, which is predefined and required
22373# on some systems where configure will not decide to define it.
22374# (The regexp can be short, since the line contains either #define or #undef.)
22375echo 's/ $//
22376s,^[	 #]*u.*,/* & */,' >>conftest.defines
22377
22378# Break up conftest.defines:
22379ac_max_sed_lines=50
22380
22381# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22382# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22383# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22384# et cetera.
22385ac_in='$ac_file_inputs'
22386ac_out='"$tmp/out1"'
22387ac_nxt='"$tmp/out2"'
22388
22389while :
22390do
22391  # Write a here document:
22392    cat >>$CONFIG_STATUS <<_ACEOF
22393    # First, check the format of the line:
22394    cat >"\$tmp/defines.sed" <<\\CEOF
22395/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22396/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22397b
22398:def
22399_ACEOF
22400  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22401  echo 'CEOF
22402    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22403  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22404  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22405  grep . conftest.tail >/dev/null || break
22406  rm -f conftest.defines
22407  mv conftest.tail conftest.defines
22408done
22409rm -f conftest.defines conftest.tail
22410
22411echo "ac_result=$ac_in" >>$CONFIG_STATUS
22412cat >>$CONFIG_STATUS <<\_ACEOF
22413  if test x"$ac_file" != x-; then
22414    echo "/* $configure_input  */" >"$tmp/config.h"
22415    cat "$ac_result" >>"$tmp/config.h"
22416    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22417      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22418echo "$as_me: $ac_file is unchanged" >&6;}
22419    else
22420      rm -f $ac_file
22421      mv "$tmp/config.h" $ac_file
22422    fi
22423  else
22424    echo "/* $configure_input  */"
22425    cat "$ac_result"
22426  fi
22427  rm -f "$tmp/out12"
22428 ;;
22429
22430  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22431echo "$as_me: executing $ac_file commands" >&6;}
22432 ;;
22433  esac
22434
22435
22436  case $ac_file$ac_mode in
22437    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22438   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22439    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22440   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22441    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22442   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22443    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22444   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22445    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22446   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22447    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22448   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22449    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22450   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22451    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22452   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22453    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22454   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22455    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22456   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22457    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22458   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22459    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22460   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22461    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22462   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22463
22464  esac
22465done # for ac_tag
22466
22467
22468{ (exit 0); exit 0; }
22469_ACEOF
22470chmod +x $CONFIG_STATUS
22471ac_clean_files=$ac_clean_files_save
22472
22473
22474# configure is writing to config.log, and then calls config.status.
22475# config.status does its own redirection, appending to config.log.
22476# Unfortunately, on DOS this fails, as config.log is still kept open
22477# by configure, so config.status won't be able to write to it; its
22478# output is simply discarded.  So we exec the FD to /dev/null,
22479# effectively closing config.log, so it can be properly (re)opened and
22480# appended to by config.status.  When coming back to configure, we
22481# need to make the FD available again.
22482if test "$no_create" != yes; then
22483  ac_cs_success=:
22484  ac_config_status_args=
22485  test "$silent" = yes &&
22486    ac_config_status_args="$ac_config_status_args --quiet"
22487  exec 5>/dev/null
22488  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22489  exec 5>>config.log
22490  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22491  # would make configure fail if this is the last instruction.
22492  $ac_cs_success || { (exit 1); exit 1; }
22493fi
22494
22495#
22496# CONFIG_SUBDIRS section.
22497#
22498if test "$no_recursion" != yes; then
22499
22500  # Remove --cache-file and --srcdir arguments so they do not pile up.
22501  ac_sub_configure_args=
22502  ac_prev=
22503  eval "set x $ac_configure_args"
22504  shift
22505  for ac_arg
22506  do
22507    if test -n "$ac_prev"; then
22508      ac_prev=
22509      continue
22510    fi
22511    case $ac_arg in
22512    -cache-file | --cache-file | --cache-fil | --cache-fi \
22513    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22514      ac_prev=cache_file ;;
22515    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22516    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22517    | --c=*)
22518      ;;
22519    --config-cache | -C)
22520      ;;
22521    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22522      ac_prev=srcdir ;;
22523    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22524      ;;
22525    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22526      ac_prev=prefix ;;
22527    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22528      ;;
22529    *)
22530      case $ac_arg in
22531      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22532      esac
22533      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22534    esac
22535  done
22536
22537  # Always prepend --prefix to ensure using the same prefix
22538  # in subdir configurations.
22539  ac_arg="--prefix=$prefix"
22540  case $ac_arg in
22541  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22542  esac
22543  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22544
22545  ac_popdir=`pwd`
22546  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22547
22548    # Do not complain, so a configure script can configure whichever
22549    # parts of a large source tree are present.
22550    test -d "$srcdir/$ac_dir" || continue
22551
22552    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22553    echo "$as_me:$LINENO: $ac_msg" >&5
22554    echo "$ac_msg" >&6
22555    { as_dir="$ac_dir"
22556  case $as_dir in #(
22557  -*) as_dir=./$as_dir;;
22558  esac
22559  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22560    as_dirs=
22561    while :; do
22562      case $as_dir in #(
22563      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22564      *) as_qdir=$as_dir;;
22565      esac
22566      as_dirs="'$as_qdir' $as_dirs"
22567      as_dir=`$as_dirname -- "$as_dir" ||
22568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569	 X"$as_dir" : 'X\(//\)[^/]' \| \
22570	 X"$as_dir" : 'X\(//\)$' \| \
22571	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22572echo X"$as_dir" |
22573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22574	    s//\1/
22575	    q
22576	  }
22577	  /^X\(\/\/\)[^/].*/{
22578	    s//\1/
22579	    q
22580	  }
22581	  /^X\(\/\/\)$/{
22582	    s//\1/
22583	    q
22584	  }
22585	  /^X\(\/\).*/{
22586	    s//\1/
22587	    q
22588	  }
22589	  s/.*/./; q'`
22590      test -d "$as_dir" && break
22591    done
22592    test -z "$as_dirs" || eval "mkdir $as_dirs"
22593  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22594echo "$as_me: error: cannot create directory $as_dir" >&2;}
22595   { (exit 1); exit 1; }; }; }
22596    ac_builddir=.
22597
22598case "$ac_dir" in
22599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22600*)
22601  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22602  # A ".." for each directory in $ac_dir_suffix.
22603  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22604  case $ac_top_builddir_sub in
22605  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22606  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22607  esac ;;
22608esac
22609ac_abs_top_builddir=$ac_pwd
22610ac_abs_builddir=$ac_pwd$ac_dir_suffix
22611# for backward compatibility:
22612ac_top_builddir=$ac_top_build_prefix
22613
22614case $srcdir in
22615  .)  # We are building in place.
22616    ac_srcdir=.
22617    ac_top_srcdir=$ac_top_builddir_sub
22618    ac_abs_top_srcdir=$ac_pwd ;;
22619  [\\/]* | ?:[\\/]* )  # Absolute name.
22620    ac_srcdir=$srcdir$ac_dir_suffix;
22621    ac_top_srcdir=$srcdir
22622    ac_abs_top_srcdir=$srcdir ;;
22623  *) # Relative name.
22624    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22625    ac_top_srcdir=$ac_top_build_prefix$srcdir
22626    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22627esac
22628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22629
22630
22631    cd "$ac_dir"
22632
22633    # Check for guested configure; otherwise get Cygnus style configure.
22634    if test -f "$ac_srcdir/configure.gnu"; then
22635      ac_sub_configure=$ac_srcdir/configure.gnu
22636    elif test -f "$ac_srcdir/configure"; then
22637      ac_sub_configure=$ac_srcdir/configure
22638    elif test -f "$ac_srcdir/configure.in"; then
22639      # This should be Cygnus configure.
22640      ac_sub_configure=$ac_aux_dir/configure
22641    else
22642      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22643echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22644      ac_sub_configure=
22645    fi
22646
22647    # The recursion is here.
22648    if test -n "$ac_sub_configure"; then
22649      # Make the cache file name correct relative to the subdirectory.
22650      case $cache_file in
22651      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22652      *) # Relative name.
22653	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22654      esac
22655
22656      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22657echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22658      # The eval makes quoting arguments work.
22659      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22660	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22661	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22662echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22663   { (exit 1); exit 1; }; }
22664    fi
22665
22666    cd "$ac_popdir"
22667  done
22668fi
22669
22670