configure revision 45ba16588ddfd5365ab961e84513bd79feba0dce
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 <http://llvm.org/bugs/>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541exec 7<&0 </dev/null 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561# Identity of this package.
562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568ac_unique_file="lib/VMCore/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#if HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#if HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#if STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# if HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#if HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#if HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#if HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#if HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='SHELL
606PATH_SEPARATOR
607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654subdirs
655ENABLE_POLLY
656LLVM_HAS_POLLY
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
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, hexagon,
1422                          xcore, 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 <http://llvm.org/bugs/>.
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-2012 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-2012 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      compiler-rt)       ;;
3497      llvm-gcc)       ;;
3498      test-suite)     ;;
3499      llvm-test)      ;;
3500      poolalloc)      ;;
3501      llvm-poolalloc) ;;
3502      *)
3503        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505        ;;
3506    esac
3507  fi
3508done
3509
3510# Check whether --enable-polly was given.
3511if test "${enable_polly+set}" = set; then
3512  enableval=$enable_polly;
3513else
3514  enableval=default
3515fi
3516
3517case "$enableval" in
3518  yes) ENABLE_POLLY=1
3519 ;;
3520  no)  ENABLE_POLLY=0
3521 ;;
3522  default) ENABLE_POLLY=1
3523 ;;
3524  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526   { (exit 1); exit 1; }; } ;;
3527esac
3528
3529
3530if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531  LLVM_HAS_POLLY=1
3532
3533  subdirs="$subdirs tools/polly"
3534
3535fi
3536
3537
3538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542   { (exit 1); exit 1; }; }
3543
3544{ echo "$as_me:$LINENO: checking build system type" >&5
3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546if test "${ac_cv_build+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
3553  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555   { (exit 1); exit 1; }; }
3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559   { (exit 1); exit 1; }; }
3560
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563echo "${ECHO_T}$ac_cv_build" >&6; }
3564case $ac_cv_build in
3565*-*-*) ;;
3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567echo "$as_me: error: invalid value of canonical build" >&2;}
3568   { (exit 1); exit 1; }; };;
3569esac
3570build=$ac_cv_build
3571ac_save_IFS=$IFS; IFS='-'
3572set x $ac_cv_build
3573shift
3574build_cpu=$1
3575build_vendor=$2
3576shift; shift
3577# Remember, the first character of IFS is used to create $*,
3578# except with old shells:
3579build_os=$*
3580IFS=$ac_save_IFS
3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584{ echo "$as_me:$LINENO: checking host system type" >&5
3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586if test "${ac_cv_host+set}" = set; then
3587  echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589  if test "x$host_alias" = x; then
3590  ac_cv_host=$ac_cv_build
3591else
3592  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595   { (exit 1); exit 1; }; }
3596fi
3597
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600echo "${ECHO_T}$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604echo "$as_me: error: invalid value of canonical host" >&2;}
3605   { (exit 1); exit 1; }; };;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ echo "$as_me:$LINENO: checking target system type" >&5
3622echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623if test "${ac_cv_target+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  if test "x$target_alias" = x; then
3627  ac_cv_target=$ac_cv_host
3628else
3629  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632   { (exit 1); exit 1; }; }
3633fi
3634
3635fi
3636{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637echo "${ECHO_T}$ac_cv_target" >&6; }
3638case $ac_cv_target in
3639*-*-*) ;;
3640*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641echo "$as_me: error: invalid value of canonical target" >&2;}
3642   { (exit 1); exit 1; }; };;
3643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661  test "$program_prefix$program_suffix$program_transform_name" = \
3662    NONENONEs,x,x, &&
3663  program_prefix=${target_alias}-
3664
3665{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667if test "${llvm_cv_os_type+set}" = set; then
3668  echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670  case $host in
3671  *-*-aix*)
3672    llvm_cv_link_all_option="-Wl,--whole-archive"
3673    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674    llvm_cv_os_type="AIX"
3675    llvm_cv_platform_type="Unix" ;;
3676  *-*-irix*)
3677    llvm_cv_link_all_option="-Wl,--whole-archive"
3678    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679    llvm_cv_os_type="IRIX"
3680    llvm_cv_platform_type="Unix" ;;
3681  *-*-cygwin*)
3682    llvm_cv_link_all_option="-Wl,--whole-archive"
3683    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684    llvm_cv_os_type="Cygwin"
3685    llvm_cv_platform_type="Unix" ;;
3686  *-*-darwin*)
3687    llvm_cv_link_all_option="-Wl,-all_load"
3688    llvm_cv_no_link_all_option="-Wl,-noall_load"
3689    llvm_cv_os_type="Darwin"
3690    llvm_cv_platform_type="Unix" ;;
3691  *-*-minix*)
3692    llvm_cv_link_all_option="-Wl,-all_load"
3693    llvm_cv_no_link_all_option="-Wl,-noall_load"
3694    llvm_cv_os_type="Minix"
3695    llvm_cv_platform_type="Unix" ;;
3696  *-*-freebsd* | *-*-kfreebsd-gnu)
3697    llvm_cv_link_all_option="-Wl,--whole-archive"
3698    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699    llvm_cv_os_type="FreeBSD"
3700    llvm_cv_platform_type="Unix" ;;
3701  *-*-openbsd*)
3702    llvm_cv_link_all_option="-Wl,--whole-archive"
3703    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704    llvm_cv_os_type="OpenBSD"
3705    llvm_cv_platform_type="Unix" ;;
3706  *-*-netbsd*)
3707    llvm_cv_link_all_option="-Wl,--whole-archive"
3708    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709    llvm_cv_os_type="NetBSD"
3710    llvm_cv_platform_type="Unix" ;;
3711  *-*-dragonfly*)
3712    llvm_cv_link_all_option="-Wl,--whole-archive"
3713    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714    llvm_cv_os_type="DragonFly"
3715    llvm_cv_platform_type="Unix" ;;
3716  *-*-hpux*)
3717    llvm_cv_link_all_option="-Wl,--whole-archive"
3718    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719    llvm_cv_os_type="HP-UX"
3720    llvm_cv_platform_type="Unix" ;;
3721  *-*-interix*)
3722    llvm_cv_link_all_option="-Wl,--whole-archive"
3723    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724    llvm_cv_os_type="Interix"
3725    llvm_cv_platform_type="Unix" ;;
3726  *-*-linux*)
3727    llvm_cv_link_all_option="-Wl,--whole-archive"
3728    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729    llvm_cv_os_type="Linux"
3730    llvm_cv_platform_type="Unix" ;;
3731  *-*-gnu*)
3732    llvm_cv_link_all_option="-Wl,--whole-archive"
3733    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734    llvm_cv_os_type="GNU"
3735    llvm_cv_platform_type="Unix" ;;
3736  *-*-solaris*)
3737    llvm_cv_link_all_option="-Wl,-z,allextract"
3738    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739    llvm_cv_os_type="SunOS"
3740    llvm_cv_platform_type="Unix" ;;
3741  *-*-auroraux*)
3742    llvm_cv_link_all_option="-Wl,-z,allextract"
3743    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744    llvm_cv_os_type="AuroraUX"
3745    llvm_cv_platform_type="Unix" ;;
3746  *-*-win32*)
3747    llvm_cv_link_all_option="-Wl,--whole-archive"
3748    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749    llvm_cv_os_type="Win32"
3750    llvm_cv_platform_type="Win32" ;;
3751  *-*-mingw*)
3752    llvm_cv_link_all_option="-Wl,--whole-archive"
3753    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754    llvm_cv_os_type="MingW"
3755    llvm_cv_platform_type="Win32" ;;
3756  *-*-haiku*)
3757    llvm_cv_link_all_option="-Wl,--whole-archive"
3758    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759    llvm_cv_os_type="Haiku"
3760    llvm_cv_platform_type="Unix" ;;
3761  *-unknown-eabi*)
3762    llvm_cv_link_all_option="-Wl,--whole-archive"
3763    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764    llvm_cv_os_type="Freestanding"
3765    llvm_cv_platform_type="Unix" ;;
3766  *-unknown-elf*)
3767    llvm_cv_link_all_option="-Wl,--whole-archive"
3768    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769    llvm_cv_os_type="Freestanding"
3770    llvm_cv_platform_type="Unix" ;;
3771  *)
3772    llvm_cv_link_all_option=""
3773    llvm_cv_no_link_all_option=""
3774    llvm_cv_os_type="Unknown"
3775    llvm_cv_platform_type="Unknown" ;;
3776esac
3777fi
3778{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780
3781{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783if test "${llvm_cv_target_os_type+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  case $target in
3787  *-*-aix*)
3788    llvm_cv_target_os_type="AIX" ;;
3789  *-*-irix*)
3790    llvm_cv_target_os_type="IRIX" ;;
3791  *-*-cygwin*)
3792    llvm_cv_target_os_type="Cygwin" ;;
3793  *-*-darwin*)
3794    llvm_cv_target_os_type="Darwin" ;;
3795  *-*-minix*)
3796    llvm_cv_target_os_type="Minix" ;;
3797  *-*-freebsd*)
3798    llvm_cv_target_os_type="FreeBSD" ;;
3799  *-*-openbsd*)
3800    llvm_cv_target_os_type="OpenBSD" ;;
3801  *-*-netbsd*)
3802    llvm_cv_target_os_type="NetBSD" ;;
3803  *-*-dragonfly*)
3804    llvm_cv_target_os_type="DragonFly" ;;
3805  *-*-hpux*)
3806    llvm_cv_target_os_type="HP-UX" ;;
3807  *-*-interix*)
3808    llvm_cv_target_os_type="Interix" ;;
3809  *-*-linux*)
3810    llvm_cv_target_os_type="Linux" ;;
3811  *-*-solaris*)
3812    llvm_cv_target_os_type="SunOS" ;;
3813  *-*-auroraux*)
3814    llvm_cv_target_os_type="AuroraUX" ;;
3815  *-*-win32*)
3816    llvm_cv_target_os_type="Win32" ;;
3817  *-*-mingw*)
3818    llvm_cv_target_os_type="MingW" ;;
3819  *-*-haiku*)
3820    llvm_cv_target_os_type="Haiku" ;;
3821  *-*-rtems*)
3822    llvm_cv_target_os_type="RTEMS" ;;
3823  *-*-nacl*)
3824    llvm_cv_target_os_type="NativeClient" ;;
3825  *-unknown-eabi*)
3826    llvm_cv_target_os_type="Freestanding" ;;
3827  *)
3828    llvm_cv_target_os_type="Unknown" ;;
3829esac
3830fi
3831{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833
3834if test "$llvm_cv_os_type" = "Unknown" ; then
3835  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837   { (exit 1); exit 1; }; }
3838fi
3839
3840OS=$llvm_cv_os_type
3841
3842HOST_OS=$llvm_cv_os_type
3843
3844TARGET_OS=$llvm_cv_target_os_type
3845
3846
3847LINKALL=$llvm_cv_link_all_option
3848
3849NOLINKALL=$llvm_cv_no_link_all_option
3850
3851
3852case $llvm_cv_platform_type in
3853  Unix)
3854
3855cat >>confdefs.h <<\_ACEOF
3856#define LLVM_ON_UNIX 1
3857_ACEOF
3858
3859    LLVM_ON_UNIX=1
3860
3861    LLVM_ON_WIN32=0
3862
3863    ;;
3864  Win32)
3865
3866cat >>confdefs.h <<\_ACEOF
3867#define LLVM_ON_WIN32 1
3868_ACEOF
3869
3870    LLVM_ON_UNIX=0
3871
3872    LLVM_ON_WIN32=1
3873
3874    ;;
3875esac
3876
3877{ echo "$as_me:$LINENO: checking target architecture" >&5
3878echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879if test "${llvm_cv_target_arch+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  case $target in
3883  i?86-*)                 llvm_cv_target_arch="x86" ;;
3884  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3885  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3886  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3887  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3888  mips-*)                 llvm_cv_target_arch="Mips" ;;
3889  mipsel-*)               llvm_cv_target_arch="Mips" ;;
3890  xcore-*)                llvm_cv_target_arch="XCore" ;;
3891  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3892  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3893  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3894  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3895  *)                      llvm_cv_target_arch="Unknown" ;;
3896esac
3897fi
3898{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901if test "$llvm_cv_target_arch" = "Unknown" ; then
3902  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904fi
3905
3906# Determine the LLVM native architecture for the target
3907case "$llvm_cv_target_arch" in
3908    x86)     LLVM_NATIVE_ARCH="X86" ;;
3909    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3910    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3911esac
3912
3913ARCH=$llvm_cv_target_arch
3914
3915
3916
3917
3918{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920if test "${ac_cv_path_GREP+set}" = set; then
3921  echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923  # Extract the first word of "grep ggrep" to use in msg output
3924if test -z "$GREP"; then
3925set dummy grep ggrep; ac_prog_name=$2
3926if test "${ac_cv_path_GREP+set}" = set; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929  ac_path_GREP_found=false
3930# Loop through the user's path and test for each of PROGNAME-LIST
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936  for ac_prog in grep ggrep; do
3937  for ac_exec_ext in '' $ac_executable_extensions; do
3938    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940    # Check for GNU ac_path_GREP and select it if it is found.
3941  # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946  ac_count=0
3947  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3948  while :
3949  do
3950    cat "conftest.in" "conftest.in" >"conftest.tmp"
3951    mv "conftest.tmp" "conftest.in"
3952    cp "conftest.in" "conftest.nl"
3953    echo 'GREP' >> "conftest.nl"
3954    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956    ac_count=`expr $ac_count + 1`
3957    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958      # Best one so far, save it but keep looking for a better one
3959      ac_cv_path_GREP="$ac_path_GREP"
3960      ac_path_GREP_max=$ac_count
3961    fi
3962    # 10*(2^10) chars as input seems more than enough
3963    test $ac_count -gt 10 && break
3964  done
3965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
3968
3969    $ac_path_GREP_found && break 3
3970  done
3971done
3972
3973done
3974IFS=$as_save_IFS
3975
3976
3977fi
3978
3979GREP="$ac_cv_path_GREP"
3980if test -z "$GREP"; then
3981  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983   { (exit 1); exit 1; }; }
3984fi
3985
3986else
3987  ac_cv_path_GREP=$GREP
3988fi
3989
3990
3991fi
3992{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3995
3996
3997{ echo "$as_me:$LINENO: checking for egrep" >&5
3998echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003   then ac_cv_path_EGREP="$GREP -E"
4004   else
4005     # Extract the first word of "egrep" to use in msg output
4006if test -z "$EGREP"; then
4007set dummy egrep; ac_prog_name=$2
4008if test "${ac_cv_path_EGREP+set}" = set; then
4009  echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011  ac_path_EGREP_found=false
4012# Loop through the user's path and test for each of PROGNAME-LIST
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015do
4016  IFS=$as_save_IFS
4017  test -z "$as_dir" && as_dir=.
4018  for ac_prog in egrep; do
4019  for ac_exec_ext in '' $ac_executable_extensions; do
4020    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022    # Check for GNU ac_path_EGREP and select it if it is found.
4023  # Check for GNU $ac_path_EGREP
4024case `"$ac_path_EGREP" --version 2>&1` in
4025*GNU*)
4026  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027*)
4028  ac_count=0
4029  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030  while :
4031  do
4032    cat "conftest.in" "conftest.in" >"conftest.tmp"
4033    mv "conftest.tmp" "conftest.in"
4034    cp "conftest.in" "conftest.nl"
4035    echo 'EGREP' >> "conftest.nl"
4036    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038    ac_count=`expr $ac_count + 1`
4039    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040      # Best one so far, save it but keep looking for a better one
4041      ac_cv_path_EGREP="$ac_path_EGREP"
4042      ac_path_EGREP_max=$ac_count
4043    fi
4044    # 10*(2^10) chars as input seems more than enough
4045    test $ac_count -gt 10 && break
4046  done
4047  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
4050
4051    $ac_path_EGREP_found && break 3
4052  done
4053done
4054
4055done
4056IFS=$as_save_IFS
4057
4058
4059fi
4060
4061EGREP="$ac_cv_path_EGREP"
4062if test -z "$EGREP"; then
4063  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065   { (exit 1); exit 1; }; }
4066fi
4067
4068else
4069  ac_cv_path_EGREP=$EGREP
4070fi
4071
4072
4073   fi
4074fi
4075{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077 EGREP="$ac_cv_path_EGREP"
4078
4079
4080{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082if test "${ac_cv_header_stdc+set}" = set; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h.  */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h.  */
4091#include <stdlib.h>
4092#include <stdarg.h>
4093#include <string.h>
4094#include <float.h>
4095
4096int
4097main ()
4098{
4099
4100  ;
4101  return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (ac_try="$ac_compile"
4106case "(($ac_try" in
4107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108  *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111  (eval "$ac_compile") 2>conftest.er1
4112  ac_status=$?
4113  grep -v '^ *+' conftest.er1 >conftest.err
4114  rm -f conftest.er1
4115  cat conftest.err >&5
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); } &&
4118	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119  { (case "(($ac_try" in
4120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121  *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124  (eval "$ac_try") 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; } &&
4128	 { ac_try='test -s conftest.$ac_objext'
4129  { (case "(($ac_try" in
4130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131  *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134  (eval "$ac_try") 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); }; }; then
4138  ac_cv_header_stdc=yes
4139else
4140  echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143	ac_cv_header_stdc=no
4144fi
4145
4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148if test $ac_cv_header_stdc = yes; then
4149  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#include <string.h>
4157
4158_ACEOF
4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160  $EGREP "memchr" >/dev/null 2>&1; then
4161  :
4162else
4163  ac_cv_header_stdc=no
4164fi
4165rm -f conftest*
4166
4167fi
4168
4169if test $ac_cv_header_stdc = yes; then
4170  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171  cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h.  */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h.  */
4177#include <stdlib.h>
4178
4179_ACEOF
4180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181  $EGREP "free" >/dev/null 2>&1; then
4182  :
4183else
4184  ac_cv_header_stdc=no
4185fi
4186rm -f conftest*
4187
4188fi
4189
4190if test $ac_cv_header_stdc = yes; then
4191  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192  if test "$cross_compiling" = yes; then
4193  :
4194else
4195  cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h.  */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h.  */
4201#include <ctype.h>
4202#include <stdlib.h>
4203#if ((' ' & 0x0FF) == 0x020)
4204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206#else
4207# define ISLOWER(c) \
4208		   (('a' <= (c) && (c) <= 'i') \
4209		     || ('j' <= (c) && (c) <= 'r') \
4210		     || ('s' <= (c) && (c) <= 'z'))
4211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212#endif
4213
4214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215int
4216main ()
4217{
4218  int i;
4219  for (i = 0; i < 256; i++)
4220    if (XOR (islower (i), ISLOWER (i))
4221	|| toupper (i) != TOUPPER (i))
4222      return 2;
4223  return 0;
4224}
4225_ACEOF
4226rm -f conftest$ac_exeext
4227if { (ac_try="$ac_link"
4228case "(($ac_try" in
4229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230  *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233  (eval "$ac_link") 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237  { (case "(($ac_try" in
4238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239  *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242  (eval "$ac_try") 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; }; then
4246  :
4247else
4248  echo "$as_me: program exited with status $ac_status" >&5
4249echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252( exit $ac_status )
4253ac_cv_header_stdc=no
4254fi
4255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256fi
4257
4258
4259fi
4260fi
4261{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4263if test $ac_cv_header_stdc = yes; then
4264
4265cat >>confdefs.h <<\_ACEOF
4266#define STDC_HEADERS 1
4267_ACEOF
4268
4269fi
4270
4271# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282		  inttypes.h stdint.h unistd.h
4283do
4284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288  echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290  cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h.  */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h.  */
4296$ac_includes_default
4297
4298#include <$ac_header>
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (ac_try="$ac_compile"
4302case "(($ac_try" in
4303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304  *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307  (eval "$ac_compile") 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } &&
4314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315  { (case "(($ac_try" in
4316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317  *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320  (eval "$ac_try") 2>&5
4321  ac_status=$?
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); }; } &&
4324	 { ac_try='test -s conftest.$ac_objext'
4325  { (case "(($ac_try" in
4326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327  *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330  (eval "$ac_try") 2>&5
4331  ac_status=$?
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); }; }; then
4334  eval "$as_ac_Header=yes"
4335else
4336  echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339	eval "$as_ac_Header=no"
4340fi
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344ac_res=`eval echo '${'$as_ac_Header'}'`
4345	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4346echo "${ECHO_T}$ac_res" >&6; }
4347if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348  cat >>confdefs.h <<_ACEOF
4349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350_ACEOF
4351
4352fi
4353
4354done
4355
4356
4357{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359if test "${ac_cv_c_bigendian+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  # See if sys/param.h defines the BYTE_ORDER macro.
4363cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369#include <sys/types.h>
4370#include <sys/param.h>
4371
4372int
4373main ()
4374{
4375#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4376 bogus endian macros
4377#endif
4378
4379  ;
4380  return 0;
4381}
4382_ACEOF
4383rm -f conftest.$ac_objext
4384if { (ac_try="$ac_compile"
4385case "(($ac_try" in
4386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387  *) ac_try_echo=$ac_try;;
4388esac
4389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390  (eval "$ac_compile") 2>conftest.er1
4391  ac_status=$?
4392  grep -v '^ *+' conftest.er1 >conftest.err
4393  rm -f conftest.er1
4394  cat conftest.err >&5
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); } &&
4397	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398  { (case "(($ac_try" in
4399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400  *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403  (eval "$ac_try") 2>&5
4404  ac_status=$?
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); }; } &&
4407	 { ac_try='test -s conftest.$ac_objext'
4408  { (case "(($ac_try" in
4409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410  *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413  (eval "$ac_try") 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; }; then
4417  # It does; now see whether it defined to BIG_ENDIAN or not.
4418cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424#include <sys/types.h>
4425#include <sys/param.h>
4426
4427int
4428main ()
4429{
4430#if BYTE_ORDER != BIG_ENDIAN
4431 not big endian
4432#endif
4433
4434  ;
4435  return 0;
4436}
4437_ACEOF
4438rm -f conftest.$ac_objext
4439if { (ac_try="$ac_compile"
4440case "(($ac_try" in
4441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442  *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445  (eval "$ac_compile") 2>conftest.er1
4446  ac_status=$?
4447  grep -v '^ *+' conftest.er1 >conftest.err
4448  rm -f conftest.er1
4449  cat conftest.err >&5
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } &&
4452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453  { (case "(($ac_try" in
4454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455  *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458  (eval "$ac_try") 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; } &&
4462	 { ac_try='test -s conftest.$ac_objext'
4463  { (case "(($ac_try" in
4464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465  *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468  (eval "$ac_try") 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; }; then
4472  ac_cv_c_bigendian=yes
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477	ac_cv_c_bigendian=no
4478fi
4479
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481else
4482  echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485	# It does not; compile a test program.
4486if test "$cross_compiling" = yes; then
4487  # try to guess the endianness by grepping values into an object file
4488  ac_cv_c_bigendian=unknown
4489  cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4501int
4502main ()
4503{
4504 _ascii (); _ebcdic ();
4505  ;
4506  return 0;
4507}
4508_ACEOF
4509rm -f conftest.$ac_objext
4510if { (ac_try="$ac_compile"
4511case "(($ac_try" in
4512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513  *) ac_try_echo=$ac_try;;
4514esac
4515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516  (eval "$ac_compile") 2>conftest.er1
4517  ac_status=$?
4518  grep -v '^ *+' conftest.er1 >conftest.err
4519  rm -f conftest.er1
4520  cat conftest.err >&5
4521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522  (exit $ac_status); } &&
4523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524  { (case "(($ac_try" in
4525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526  *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529  (eval "$ac_try") 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; } &&
4533	 { ac_try='test -s conftest.$ac_objext'
4534  { (case "(($ac_try" in
4535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536  *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539  (eval "$ac_try") 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; }; then
4543  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4544  ac_cv_c_bigendian=yes
4545fi
4546if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547  if test "$ac_cv_c_bigendian" = unknown; then
4548    ac_cv_c_bigendian=no
4549  else
4550    # finding both strings is unlikely to happen, but who knows?
4551    ac_cv_c_bigendian=unknown
4552  fi
4553fi
4554else
4555  echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558
4559fi
4560
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562else
4563  cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h.  */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h.  */
4569$ac_includes_default
4570int
4571main ()
4572{
4573
4574  /* Are we little or big endian?  From Harbison&Steele.  */
4575  union
4576  {
4577    long int l;
4578    char c[sizeof (long int)];
4579  } u;
4580  u.l = 1;
4581  return u.c[sizeof (long int) - 1] == 1;
4582
4583  ;
4584  return 0;
4585}
4586_ACEOF
4587rm -f conftest$ac_exeext
4588if { (ac_try="$ac_link"
4589case "(($ac_try" in
4590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591  *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594  (eval "$ac_link") 2>&5
4595  ac_status=$?
4596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598  { (case "(($ac_try" in
4599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600  *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603  (eval "$ac_try") 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); }; }; then
4607  ac_cv_c_bigendian=no
4608else
4609  echo "$as_me: program exited with status $ac_status" >&5
4610echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613( exit $ac_status )
4614ac_cv_c_bigendian=yes
4615fi
4616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617fi
4618
4619
4620fi
4621
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626case $ac_cv_c_bigendian in
4627  yes)
4628    ENDIAN=big
4629 ;;
4630  no)
4631    ENDIAN=little
4632 ;;
4633  *)
4634    { { echo "$as_me:$LINENO: error: unknown endianness
4635presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636echo "$as_me: error: unknown endianness
4637presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638   { (exit 1); exit 1; }; } ;;
4639esac
4640
4641
4642if test "$cross_compiling" = yes; then
4643  LLVM_CROSS_COMPILING=1
4644
4645
4646{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648if test "${ac_cv_build_exeext+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652  ac_cv_build_exeext=.exe
4653else
4654  ac_build_prefix=${build_alias}-
4655
4656  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657set dummy ${ac_build_prefix}gcc; ac_word=$2
4658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661  echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663  if test -n "$BUILD_CC"; then
4664  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669  IFS=$as_save_IFS
4670  test -z "$as_dir" && as_dir=.
4671  for ac_exec_ext in '' $ac_executable_extensions; do
4672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675    break 2
4676  fi
4677done
4678done
4679IFS=$as_save_IFS
4680
4681fi
4682fi
4683BUILD_CC=$ac_cv_prog_BUILD_CC
4684if test -n "$BUILD_CC"; then
4685  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686echo "${ECHO_T}$BUILD_CC" >&6; }
4687else
4688  { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693  if test -z "$BUILD_CC"; then
4694     # Extract the first word of "gcc", so it can be a program name with args.
4695set dummy gcc; ac_word=$2
4696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  if test -n "$BUILD_CC"; then
4702  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707  IFS=$as_save_IFS
4708  test -z "$as_dir" && as_dir=.
4709  for ac_exec_ext in '' $ac_executable_extensions; do
4710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711    ac_cv_prog_BUILD_CC="gcc"
4712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713    break 2
4714  fi
4715done
4716done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721BUILD_CC=$ac_cv_prog_BUILD_CC
4722if test -n "$BUILD_CC"; then
4723  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724echo "${ECHO_T}$BUILD_CC" >&6; }
4725else
4726  { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
4728fi
4729
4730
4731     if test -z "$BUILD_CC"; then
4732       # Extract the first word of "cc", so it can be a program name with args.
4733set dummy cc; ac_word=$2
4734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  if test -n "$BUILD_CC"; then
4740  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4741else
4742  ac_prog_rejected=no
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  test -z "$as_dir" && as_dir=.
4748  for ac_exec_ext in '' $ac_executable_extensions; do
4749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751       ac_prog_rejected=yes
4752       continue
4753     fi
4754    ac_cv_prog_BUILD_CC="cc"
4755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756    break 2
4757  fi
4758done
4759done
4760IFS=$as_save_IFS
4761
4762if test $ac_prog_rejected = yes; then
4763  # We found a bogon in the path, so make sure we never use it.
4764  set dummy $ac_cv_prog_BUILD_CC
4765  shift
4766  if test $# != 0; then
4767    # We chose a different compiler from the bogus one.
4768    # However, it has the same basename, so the bogon will be chosen
4769    # first if we set BUILD_CC to just the basename; use the full file name.
4770    shift
4771    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4772  fi
4773fi
4774fi
4775fi
4776BUILD_CC=$ac_cv_prog_BUILD_CC
4777if test -n "$BUILD_CC"; then
4778  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779echo "${ECHO_T}$BUILD_CC" >&6; }
4780else
4781  { echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6; }
4783fi
4784
4785
4786     fi
4787  fi
4788  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790   { (exit 1); exit 1; }; }
4791  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4792  rm -f conftest*
4793  echo 'int main () { return 0; }' > conftest.$ac_ext
4794  ac_cv_build_exeext=
4795  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4796  (eval $ac_build_link) 2>&5
4797  ac_status=$?
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); }; then
4800    for file in conftest.*; do
4801      case $file in
4802      *.c | *.o | *.obj | *.dSYM) ;;
4803      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4804      esac
4805    done
4806  else
4807    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809   { (exit 1); exit 1; }; }
4810  fi
4811  rm -f conftest*
4812  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4813fi
4814fi
4815
4816BUILD_EXEEXT=""
4817test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4818{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4820ac_build_exeext=$BUILD_EXEEXT
4821
4822  ac_build_prefix=${build_alias}-
4823  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824set dummy ${ac_build_prefix}g++; ac_word=$2
4825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  if test -n "$BUILD_CXX"; then
4831  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836  IFS=$as_save_IFS
4837  test -z "$as_dir" && as_dir=.
4838  for ac_exec_ext in '' $ac_executable_extensions; do
4839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842    break 2
4843  fi
4844done
4845done
4846IFS=$as_save_IFS
4847
4848fi
4849fi
4850BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851if test -n "$BUILD_CXX"; then
4852  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853echo "${ECHO_T}$BUILD_CXX" >&6; }
4854else
4855  { echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6; }
4857fi
4858
4859
4860  if test -z "$BUILD_CXX"; then
4861     # Extract the first word of "g++", so it can be a program name with args.
4862set dummy g++; ac_word=$2
4863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  if test -n "$BUILD_CXX"; then
4869  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876  for ac_exec_ext in '' $ac_executable_extensions; do
4877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878    ac_cv_prog_BUILD_CXX="g++"
4879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889if test -n "$BUILD_CXX"; then
4890  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891echo "${ECHO_T}$BUILD_CXX" >&6; }
4892else
4893  { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
4895fi
4896
4897
4898     if test -z "$BUILD_CXX"; then
4899       # Extract the first word of "c++", so it can be a program name with args.
4900set dummy c++; ac_word=$2
4901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906  if test -n "$BUILD_CXX"; then
4907  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4908else
4909  ac_prog_rejected=no
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915  for ac_exec_ext in '' $ac_executable_extensions; do
4916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918       ac_prog_rejected=yes
4919       continue
4920     fi
4921    ac_cv_prog_BUILD_CXX="c++"
4922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926done
4927IFS=$as_save_IFS
4928
4929if test $ac_prog_rejected = yes; then
4930  # We found a bogon in the path, so make sure we never use it.
4931  set dummy $ac_cv_prog_BUILD_CXX
4932  shift
4933  if test $# != 0; then
4934    # We chose a different compiler from the bogus one.
4935    # However, it has the same basename, so the bogon will be chosen
4936    # first if we set BUILD_CXX to just the basename; use the full file name.
4937    shift
4938    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4939  fi
4940fi
4941fi
4942fi
4943BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944if test -n "$BUILD_CXX"; then
4945  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946echo "${ECHO_T}$BUILD_CXX" >&6; }
4947else
4948  { echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; }
4950fi
4951
4952
4953     fi
4954  fi
4955else
4956  LLVM_CROSS_COMPILING=0
4957
4958fi
4959
4960if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961  cvsbuild="yes"
4962  optimize="no"
4963  CVSBUILD=CVSBUILD=1
4964
4965else
4966  cvsbuild="no"
4967  optimize="yes"
4968fi
4969
4970
4971# Check whether --enable-libcpp was given.
4972if test "${enable_libcpp+set}" = set; then
4973  enableval=$enable_libcpp;
4974else
4975  enableval=default
4976fi
4977
4978case "$enableval" in
4979  yes) ENABLE_LIBCPP=1
4980 ;;
4981  no)  ENABLE_LIBCPP=0
4982 ;;
4983  default) ENABLE_LIBCPP=0
4984;;
4985  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4986echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4987   { (exit 1); exit 1; }; } ;;
4988esac
4989
4990# Check whether --enable-optimized was given.
4991if test "${enable_optimized+set}" = set; then
4992  enableval=$enable_optimized;
4993else
4994  enableval=$optimize
4995fi
4996
4997if test ${enableval} = "no" ; then
4998  ENABLE_OPTIMIZED=
4999
5000else
5001  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5002
5003fi
5004
5005# Check whether --enable-profiling was given.
5006if test "${enable_profiling+set}" = set; then
5007  enableval=$enable_profiling;
5008else
5009  enableval="no"
5010fi
5011
5012if test ${enableval} = "no" ; then
5013  ENABLE_PROFILING=
5014
5015else
5016  ENABLE_PROFILING=ENABLE_PROFILING=1
5017
5018fi
5019
5020# Check whether --enable-assertions was given.
5021if test "${enable_assertions+set}" = set; then
5022  enableval=$enable_assertions;
5023else
5024  enableval="yes"
5025fi
5026
5027if test ${enableval} = "yes" ; then
5028  DISABLE_ASSERTIONS=
5029
5030else
5031  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5032
5033fi
5034
5035# Check whether --enable-expensive-checks was given.
5036if test "${enable_expensive_checks+set}" = set; then
5037  enableval=$enable_expensive_checks;
5038else
5039  enableval="no"
5040fi
5041
5042if test ${enableval} = "yes" ; then
5043  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044
5045  EXPENSIVE_CHECKS=yes
5046
5047else
5048  ENABLE_EXPENSIVE_CHECKS=
5049
5050  EXPENSIVE_CHECKS=no
5051
5052fi
5053
5054# Check whether --enable-debug-runtime was given.
5055if test "${enable_debug_runtime+set}" = set; then
5056  enableval=$enable_debug_runtime;
5057else
5058  enableval=no
5059fi
5060
5061if test ${enableval} = "no" ; then
5062  DEBUG_RUNTIME=
5063
5064else
5065  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066
5067fi
5068
5069# Check whether --enable-debug-symbols was given.
5070if test "${enable_debug_symbols+set}" = set; then
5071  enableval=$enable_debug_symbols;
5072else
5073  enableval=no
5074fi
5075
5076if test ${enableval} = "no" ; then
5077  DEBUG_SYMBOLS=
5078
5079else
5080  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081
5082fi
5083
5084# Check whether --enable-jit was given.
5085if test "${enable_jit+set}" = set; then
5086  enableval=$enable_jit;
5087else
5088  enableval=default
5089fi
5090
5091if test ${enableval} = "no"
5092then
5093  JIT=
5094
5095else
5096  case "$llvm_cv_target_arch" in
5097    x86)         TARGET_HAS_JIT=1
5098 ;;
5099    Sparc)       TARGET_HAS_JIT=0
5100 ;;
5101    PowerPC)     TARGET_HAS_JIT=1
5102 ;;
5103    x86_64)      TARGET_HAS_JIT=1
5104 ;;
5105    ARM)         TARGET_HAS_JIT=1
5106 ;;
5107    Mips)        TARGET_HAS_JIT=1
5108 ;;
5109    XCore)       TARGET_HAS_JIT=0
5110 ;;
5111    MSP430)      TARGET_HAS_JIT=0
5112 ;;
5113    Hexagon)     TARGET_HAS_JIT=0
5114 ;;
5115    MBlaze)      TARGET_HAS_JIT=0
5116 ;;
5117    PTX)         TARGET_HAS_JIT=0
5118 ;;
5119    *)           TARGET_HAS_JIT=0
5120 ;;
5121  esac
5122fi
5123
5124# Check whether --enable-docs was given.
5125if test "${enable_docs+set}" = set; then
5126  enableval=$enable_docs;
5127else
5128  enableval=default
5129fi
5130
5131case "$enableval" in
5132  yes) ENABLE_DOCS=1
5133 ;;
5134  no)  ENABLE_DOCS=0
5135 ;;
5136  default) ENABLE_DOCS=1
5137 ;;
5138  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140   { (exit 1); exit 1; }; } ;;
5141esac
5142
5143# Check whether --enable-doxygen was given.
5144if test "${enable_doxygen+set}" = set; then
5145  enableval=$enable_doxygen;
5146else
5147  enableval=default
5148fi
5149
5150case "$enableval" in
5151  yes) ENABLE_DOXYGEN=1
5152 ;;
5153  no)  ENABLE_DOXYGEN=0
5154 ;;
5155  default) ENABLE_DOXYGEN=0
5156 ;;
5157  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159   { (exit 1); exit 1; }; } ;;
5160esac
5161
5162# Check whether --enable-threads was given.
5163if test "${enable_threads+set}" = set; then
5164  enableval=$enable_threads;
5165else
5166  enableval=default
5167fi
5168
5169case "$enableval" in
5170  yes) LLVM_ENABLE_THREADS=1
5171 ;;
5172  no)  LLVM_ENABLE_THREADS=0
5173 ;;
5174  default) LLVM_ENABLE_THREADS=1
5175 ;;
5176  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178   { (exit 1); exit 1; }; } ;;
5179esac
5180
5181cat >>confdefs.h <<_ACEOF
5182#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5183_ACEOF
5184
5185
5186# Check whether --enable-pthreads was given.
5187if test "${enable_pthreads+set}" = set; then
5188  enableval=$enable_pthreads;
5189else
5190  enableval=default
5191fi
5192
5193case "$enableval" in
5194  yes) ENABLE_PTHREADS=1
5195 ;;
5196  no)  ENABLE_PTHREADS=0
5197 ;;
5198  default) ENABLE_PTHREADS=1
5199 ;;
5200  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202   { (exit 1); exit 1; }; } ;;
5203esac
5204
5205# Check whether --enable-pic was given.
5206if test "${enable_pic+set}" = set; then
5207  enableval=$enable_pic;
5208else
5209  enableval=default
5210fi
5211
5212case "$enableval" in
5213  yes) ENABLE_PIC=1
5214 ;;
5215  no)  ENABLE_PIC=0
5216 ;;
5217  default) ENABLE_PIC=1
5218 ;;
5219  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221   { (exit 1); exit 1; }; } ;;
5222esac
5223
5224cat >>confdefs.h <<_ACEOF
5225#define ENABLE_PIC $ENABLE_PIC
5226_ACEOF
5227
5228
5229# Check whether --enable-shared was given.
5230if test "${enable_shared+set}" = set; then
5231  enableval=$enable_shared;
5232else
5233  enableval=default
5234fi
5235
5236case "$enableval" in
5237  yes) ENABLE_SHARED=1
5238 ;;
5239  no)  ENABLE_SHARED=0
5240 ;;
5241  default) ENABLE_SHARED=0
5242 ;;
5243  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245   { (exit 1); exit 1; }; } ;;
5246esac
5247
5248# Check whether --enable-embed-stdcxx was given.
5249if test "${enable_embed_stdcxx+set}" = set; then
5250  enableval=$enable_embed_stdcxx;
5251else
5252  enableval=default
5253fi
5254
5255case "$enableval" in
5256  yes) ENABLE_EMBED_STDCXX=1
5257 ;;
5258  no)  ENABLE_EMBED_STDCXX=0
5259 ;;
5260  default) ENABLE_EMBED_STDCXX=0
5261 ;;
5262  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264   { (exit 1); exit 1; }; } ;;
5265esac
5266
5267# Check whether --enable-timestamps was given.
5268if test "${enable_timestamps+set}" = set; then
5269  enableval=$enable_timestamps;
5270else
5271  enableval=default
5272fi
5273
5274case "$enableval" in
5275  yes) ENABLE_TIMESTAMPS=1
5276 ;;
5277  no)  ENABLE_TIMESTAMPS=0
5278 ;;
5279  default) ENABLE_TIMESTAMPS=1
5280 ;;
5281  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283   { (exit 1); exit 1; }; } ;;
5284esac
5285
5286cat >>confdefs.h <<_ACEOF
5287#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288_ACEOF
5289
5290
5291TARGETS_TO_BUILD=""
5292# Check whether --enable-targets was given.
5293if test "${enable_targets+set}" = set; then
5294  enableval=$enable_targets;
5295else
5296  enableval=all
5297fi
5298
5299if test "$enableval" = host-only ; then
5300  enableval=host
5301fi
5302case "$enableval" in
5303  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5304  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305      case "$a_target" in
5306        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5314        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5315        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5316        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5317        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5318        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5319        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5320        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321        host) case "$llvm_cv_target_arch" in
5322            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5324            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5325            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5326            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5327            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5328            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5329            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5330            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5331            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5332            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5333            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5334            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5335echo "$as_me: error: Can not set target to build" >&2;}
5336   { (exit 1); exit 1; }; } ;;
5337          esac ;;
5338        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5339echo "$as_me: error: Unrecognized target $a_target" >&2;}
5340   { (exit 1); exit 1; }; } ;;
5341      esac
5342  done
5343  ;;
5344esac
5345TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5346
5347
5348# Determine whether we are building LLVM support for the native architecture.
5349# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5350for a_target in $TARGETS_TO_BUILD; do
5351  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5352
5353cat >>confdefs.h <<_ACEOF
5354#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5355_ACEOF
5356
5357    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5358    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5359    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5360    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5361    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5362      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5363    fi
5364
5365cat >>confdefs.h <<_ACEOF
5366#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5367_ACEOF
5368
5369
5370cat >>confdefs.h <<_ACEOF
5371#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5372_ACEOF
5373
5374
5375cat >>confdefs.h <<_ACEOF
5376#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5377_ACEOF
5378
5379
5380cat >>confdefs.h <<_ACEOF
5381#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5382_ACEOF
5383
5384    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5385
5386cat >>confdefs.h <<_ACEOF
5387#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5388_ACEOF
5389
5390    fi
5391  fi
5392done
5393
5394# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5395# target feature def files.
5396LLVM_ENUM_TARGETS=""
5397LLVM_ENUM_ASM_PRINTERS=""
5398LLVM_ENUM_ASM_PARSERS=""
5399LLVM_ENUM_DISASSEMBLERS=""
5400for target_to_build in $TARGETS_TO_BUILD; do
5401  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5402  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5403    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404  fi
5405  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407  fi
5408  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410  fi
5411done
5412
5413
5414
5415
5416
5417# Check whether --enable-cbe-printf-a was given.
5418if test "${enable_cbe_printf_a+set}" = set; then
5419  enableval=$enable_cbe_printf_a;
5420else
5421  enableval=default
5422fi
5423
5424case "$enableval" in
5425  yes) ENABLE_CBE_PRINTF_A=1
5426 ;;
5427  no)  ENABLE_CBE_PRINTF_A=0
5428 ;;
5429  default)  ENABLE_CBE_PRINTF_A=1
5430 ;;
5431  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433   { (exit 1); exit 1; }; } ;;
5434esac
5435
5436cat >>confdefs.h <<_ACEOF
5437#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5438_ACEOF
5439
5440
5441
5442# Check whether --with-optimize-option was given.
5443if test "${with_optimize_option+set}" = set; then
5444  withval=$with_optimize_option;
5445else
5446  withval=default
5447fi
5448
5449{ echo "$as_me:$LINENO: checking optimization flags" >&5
5450echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5451case "$withval" in
5452  default)
5453    case "$llvm_cv_os_type" in
5454    FreeBSD) optimize_option=-O2 ;;
5455    MingW) optimize_option=-O2 ;;
5456    *)     optimize_option=-O3 ;;
5457    esac ;;
5458  *) optimize_option="$withval" ;;
5459esac
5460OPTIMIZE_OPTION=$optimize_option
5461
5462{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5463echo "${ECHO_T}$optimize_option" >&6; }
5464
5465
5466# Check whether --with-extra-options was given.
5467if test "${with_extra_options+set}" = set; then
5468  withval=$with_extra_options;
5469else
5470  withval=default
5471fi
5472
5473case "$withval" in
5474  default) EXTRA_OPTIONS= ;;
5475  *) EXTRA_OPTIONS=$withval ;;
5476esac
5477EXTRA_OPTIONS=$EXTRA_OPTIONS
5478
5479
5480
5481# Check whether --with-extra-ld-options was given.
5482if test "${with_extra_ld_options+set}" = set; then
5483  withval=$with_extra_ld_options;
5484else
5485  withval=default
5486fi
5487
5488case "$withval" in
5489  default) EXTRA_LD_OPTIONS= ;;
5490  *) EXTRA_LD_OPTIONS=$withval ;;
5491esac
5492EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493
5494
5495# Check whether --enable-bindings was given.
5496if test "${enable_bindings+set}" = set; then
5497  enableval=$enable_bindings;
5498else
5499  enableval=default
5500fi
5501
5502BINDINGS_TO_BUILD=""
5503case "$enableval" in
5504  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5505  all ) BINDINGS_TO_BUILD="ocaml" ;;
5506  none | no) BINDINGS_TO_BUILD="" ;;
5507  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508      case "$a_binding" in
5509        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5510        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512   { (exit 1); exit 1; }; } ;;
5513      esac
5514  done
5515  ;;
5516esac
5517
5518
5519# Check whether --with-ocaml-libdir was given.
5520if test "${with_ocaml_libdir+set}" = set; then
5521  withval=$with_ocaml_libdir;
5522else
5523  withval=auto
5524fi
5525
5526case "$withval" in
5527  auto) with_ocaml_libdir="$withval" ;;
5528  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5529  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531   { (exit 1); exit 1; }; } ;;
5532esac
5533
5534
5535# Check whether --with-clang-srcdir was given.
5536if test "${with_clang_srcdir+set}" = set; then
5537  withval=$with_clang_srcdir;
5538else
5539  withval="-"
5540fi
5541
5542case "$withval" in
5543  -) clang_src_root="" ;;
5544  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545  *) clang_src_root="$ac_pwd/$withval" ;;
5546esac
5547CLANG_SRC_ROOT=$clang_src_root
5548
5549
5550
5551# Check whether --with-clang-resource-dir was given.
5552if test "${with_clang_resource_dir+set}" = set; then
5553  withval=$with_clang_resource_dir;
5554else
5555  withval=""
5556fi
5557
5558
5559cat >>confdefs.h <<_ACEOF
5560#define CLANG_RESOURCE_DIR "$withval"
5561_ACEOF
5562
5563
5564
5565# Check whether --with-c-include-dirs was given.
5566if test "${with_c_include_dirs+set}" = set; then
5567  withval=$with_c_include_dirs;
5568else
5569  withval=""
5570fi
5571
5572
5573cat >>confdefs.h <<_ACEOF
5574#define C_INCLUDE_DIRS "$withval"
5575_ACEOF
5576
5577
5578
5579# Check whether --with-cxx-include-root was given.
5580if test "${with_cxx_include_root+set}" = set; then
5581  withval=$with_cxx_include_root;
5582else
5583  withval=""
5584fi
5585
5586
5587cat >>confdefs.h <<_ACEOF
5588#define CXX_INCLUDE_ROOT "$withval"
5589_ACEOF
5590
5591
5592
5593# Check whether --with-cxx-include-arch was given.
5594if test "${with_cxx_include_arch+set}" = set; then
5595  withval=$with_cxx_include_arch;
5596else
5597  withval=""
5598fi
5599
5600
5601cat >>confdefs.h <<_ACEOF
5602#define CXX_INCLUDE_ARCH "$withval"
5603_ACEOF
5604
5605
5606
5607# Check whether --with-cxx-include-32bit-dir was given.
5608if test "${with_cxx_include_32bit_dir+set}" = set; then
5609  withval=$with_cxx_include_32bit_dir;
5610else
5611  withval=""
5612fi
5613
5614
5615cat >>confdefs.h <<_ACEOF
5616#define CXX_INCLUDE_32BIT_DIR "$withval"
5617_ACEOF
5618
5619
5620
5621# Check whether --with-cxx-include-64bit-dir was given.
5622if test "${with_cxx_include_64bit_dir+set}" = set; then
5623  withval=$with_cxx_include_64bit_dir;
5624else
5625  withval=""
5626fi
5627
5628
5629cat >>confdefs.h <<_ACEOF
5630#define CXX_INCLUDE_64BIT_DIR "$withval"
5631_ACEOF
5632
5633
5634
5635# Check whether --with-binutils-include was given.
5636if test "${with_binutils_include+set}" = set; then
5637  withval=$with_binutils_include;
5638else
5639  withval=default
5640fi
5641
5642case "$withval" in
5643  default) WITH_BINUTILS_INCDIR=default ;;
5644  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5645  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5646echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5647   { (exit 1); exit 1; }; } ;;
5648esac
5649if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5650  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5651
5652  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5653     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5654     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5655echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5656   { (exit 1); exit 1; }; };
5657  fi
5658fi
5659
5660
5661# Check whether --with-bug-report-url was given.
5662if test "${with_bug_report_url+set}" = set; then
5663  withval=$with_bug_report_url;
5664else
5665  withval="http://llvm.org/bugs/"
5666fi
5667
5668
5669cat >>confdefs.h <<_ACEOF
5670#define BUG_REPORT_URL "$withval"
5671_ACEOF
5672
5673
5674# Check whether --enable-libffi was given.
5675if test "${enable_libffi+set}" = set; then
5676  enableval=$enable_libffi; case "$enableval" in
5677    yes) llvm_cv_enable_libffi="yes" ;;
5678    no)  llvm_cv_enable_libffi="no"  ;;
5679    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5680echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5681   { (exit 1); exit 1; }; } ;;
5682  esac
5683else
5684  llvm_cv_enable_libffi=no
5685fi
5686
5687
5688
5689# Check whether --with-internal-prefix was given.
5690if test "${with_internal_prefix+set}" = set; then
5691  withval=$with_internal_prefix;
5692else
5693  withval=""
5694fi
5695
5696INTERNAL_PREFIX=$withval
5697
5698
5699
5700{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5701echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5702if test "${lt_cv_path_NM+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  if test -n "$NM"; then
5706  # Let the user override the test.
5707  lt_cv_path_NM="$NM"
5708else
5709  lt_nm_to_check="${ac_tool_prefix}nm"
5710  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711    lt_nm_to_check="$lt_nm_to_check nm"
5712  fi
5713  for lt_tmp_nm in $lt_nm_to_check; do
5714    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5716      IFS="$lt_save_ifs"
5717      test -z "$ac_dir" && ac_dir=.
5718      tmp_nm="$ac_dir/$lt_tmp_nm"
5719      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5720	# Check to see if the nm accepts a BSD-compat flag.
5721	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5722	#   nm: unknown option "B" ignored
5723	# Tru64's nm complains that /dev/null is an invalid object file
5724	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5725	*/dev/null* | *'Invalid file or object type'*)
5726	  lt_cv_path_NM="$tmp_nm -B"
5727	  break
5728	  ;;
5729	*)
5730	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5731	  */dev/null*)
5732	    lt_cv_path_NM="$tmp_nm -p"
5733	    break
5734	    ;;
5735	  *)
5736	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5737	    continue # so that we can try to find one that supports BSD flags
5738	    ;;
5739	  esac
5740	  ;;
5741	esac
5742      fi
5743    done
5744    IFS="$lt_save_ifs"
5745  done
5746  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5747fi
5748fi
5749{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5750echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5751NM="$lt_cv_path_NM"
5752
5753
5754
5755{ echo "$as_me:$LINENO: checking for GNU make" >&5
5756echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5757if test "${llvm_cv_gnu_make_command+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  llvm_cv_gnu_make_command=''
5761 for a in "$MAKE" make gmake gnumake ; do
5762  if test -z "$a" ; then continue ; fi ;
5763  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5764  then
5765   llvm_cv_gnu_make_command=$a ;
5766   break;
5767  fi
5768 done
5769fi
5770{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5771echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5772 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5773   ifGNUmake='' ;
5774 else
5775   ifGNUmake='#' ;
5776   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5777echo "${ECHO_T}\"Not found\"" >&6; };
5778 fi
5779
5780
5781{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5782echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5783LN_S=$as_ln_s
5784if test "$LN_S" = "ln -s"; then
5785  { echo "$as_me:$LINENO: result: yes" >&5
5786echo "${ECHO_T}yes" >&6; }
5787else
5788  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5789echo "${ECHO_T}no, using $LN_S" >&6; }
5790fi
5791
5792# Extract the first word of "cmp", so it can be a program name with args.
5793set dummy cmp; ac_word=$2
5794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_CMP+set}" = set; then
5797  echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799  case $CMP in
5800  [\\/]* | ?:[\\/]*)
5801  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5802  ;;
5803  *)
5804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809  for ac_exec_ext in '' $ac_executable_extensions; do
5810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5820  ;;
5821esac
5822fi
5823CMP=$ac_cv_path_CMP
5824if test -n "$CMP"; then
5825  { echo "$as_me:$LINENO: result: $CMP" >&5
5826echo "${ECHO_T}$CMP" >&6; }
5827else
5828  { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
5830fi
5831
5832
5833# Extract the first word of "cp", so it can be a program name with args.
5834set dummy cp; ac_word=$2
5835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_CP+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840  case $CP in
5841  [\\/]* | ?:[\\/]*)
5842  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5843  ;;
5844  *)
5845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850  for ac_exec_ext in '' $ac_executable_extensions; do
5851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857done
5858IFS=$as_save_IFS
5859
5860  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5861  ;;
5862esac
5863fi
5864CP=$ac_cv_path_CP
5865if test -n "$CP"; then
5866  { echo "$as_me:$LINENO: result: $CP" >&5
5867echo "${ECHO_T}$CP" >&6; }
5868else
5869  { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
5871fi
5872
5873
5874# Extract the first word of "date", so it can be a program name with args.
5875set dummy date; ac_word=$2
5876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_DATE+set}" = set; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881  case $DATE in
5882  [\\/]* | ?:[\\/]*)
5883  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5884  ;;
5885  *)
5886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889  IFS=$as_save_IFS
5890  test -z "$as_dir" && as_dir=.
5891  for ac_exec_ext in '' $ac_executable_extensions; do
5892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895    break 2
5896  fi
5897done
5898done
5899IFS=$as_save_IFS
5900
5901  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5902  ;;
5903esac
5904fi
5905DATE=$ac_cv_path_DATE
5906if test -n "$DATE"; then
5907  { echo "$as_me:$LINENO: result: $DATE" >&5
5908echo "${ECHO_T}$DATE" >&6; }
5909else
5910  { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
5912fi
5913
5914
5915# Extract the first word of "find", so it can be a program name with args.
5916set dummy find; ac_word=$2
5917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_FIND+set}" = set; then
5920  echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922  case $FIND in
5923  [\\/]* | ?:[\\/]*)
5924  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5925  ;;
5926  *)
5927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930  IFS=$as_save_IFS
5931  test -z "$as_dir" && as_dir=.
5932  for ac_exec_ext in '' $ac_executable_extensions; do
5933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936    break 2
5937  fi
5938done
5939done
5940IFS=$as_save_IFS
5941
5942  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5943  ;;
5944esac
5945fi
5946FIND=$ac_cv_path_FIND
5947if test -n "$FIND"; then
5948  { echo "$as_me:$LINENO: result: $FIND" >&5
5949echo "${ECHO_T}$FIND" >&6; }
5950else
5951  { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
5953fi
5954
5955
5956# Extract the first word of "grep", so it can be a program name with args.
5957set dummy grep; ac_word=$2
5958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_GREP+set}" = set; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  case $GREP in
5964  [\\/]* | ?:[\\/]*)
5965  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5966  ;;
5967  *)
5968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971  IFS=$as_save_IFS
5972  test -z "$as_dir" && as_dir=.
5973  for ac_exec_ext in '' $ac_executable_extensions; do
5974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977    break 2
5978  fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5984  ;;
5985esac
5986fi
5987GREP=$ac_cv_path_GREP
5988if test -n "$GREP"; then
5989  { echo "$as_me:$LINENO: result: $GREP" >&5
5990echo "${ECHO_T}$GREP" >&6; }
5991else
5992  { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
5994fi
5995
5996
5997# Extract the first word of "mkdir", so it can be a program name with args.
5998set dummy mkdir; ac_word=$2
5999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_path_MKDIR+set}" = set; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004  case $MKDIR in
6005  [\\/]* | ?:[\\/]*)
6006  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6007  ;;
6008  *)
6009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014  for ac_exec_ext in '' $ac_executable_extensions; do
6015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021done
6022IFS=$as_save_IFS
6023
6024  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6025  ;;
6026esac
6027fi
6028MKDIR=$ac_cv_path_MKDIR
6029if test -n "$MKDIR"; then
6030  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6031echo "${ECHO_T}$MKDIR" >&6; }
6032else
6033  { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
6035fi
6036
6037
6038# Extract the first word of "mv", so it can be a program name with args.
6039set dummy mv; ac_word=$2
6040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_path_MV+set}" = set; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045  case $MV in
6046  [\\/]* | ?:[\\/]*)
6047  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6048  ;;
6049  *)
6050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053  IFS=$as_save_IFS
6054  test -z "$as_dir" && as_dir=.
6055  for ac_exec_ext in '' $ac_executable_extensions; do
6056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059    break 2
6060  fi
6061done
6062done
6063IFS=$as_save_IFS
6064
6065  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6066  ;;
6067esac
6068fi
6069MV=$ac_cv_path_MV
6070if test -n "$MV"; then
6071  { echo "$as_me:$LINENO: result: $MV" >&5
6072echo "${ECHO_T}$MV" >&6; }
6073else
6074  { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
6076fi
6077
6078
6079if test -n "$ac_tool_prefix"; then
6080  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084if test "${ac_cv_prog_RANLIB+set}" = set; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087  if test -n "$RANLIB"; then
6088  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095  for ac_exec_ext in '' $ac_executable_extensions; do
6096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107RANLIB=$ac_cv_prog_RANLIB
6108if test -n "$RANLIB"; then
6109  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6110echo "${ECHO_T}$RANLIB" >&6; }
6111else
6112  { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
6114fi
6115
6116
6117fi
6118if test -z "$ac_cv_prog_RANLIB"; then
6119  ac_ct_RANLIB=$RANLIB
6120  # Extract the first word of "ranlib", so it can be a program name with args.
6121set dummy ranlib; ac_word=$2
6122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6124if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6125  echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127  if test -n "$ac_ct_RANLIB"; then
6128  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133  IFS=$as_save_IFS
6134  test -z "$as_dir" && as_dir=.
6135  for ac_exec_ext in '' $ac_executable_extensions; do
6136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6137    ac_cv_prog_ac_ct_RANLIB="ranlib"
6138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139    break 2
6140  fi
6141done
6142done
6143IFS=$as_save_IFS
6144
6145fi
6146fi
6147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6148if test -n "$ac_ct_RANLIB"; then
6149  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6150echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6151else
6152  { echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6; }
6154fi
6155
6156  if test "x$ac_ct_RANLIB" = x; then
6157    RANLIB=":"
6158  else
6159    case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6162whose name does not start with the host triplet.  If you think this
6163configuration is useful to you, please write to autoconf@gnu.org." >&5
6164echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6165whose name does not start with the host triplet.  If you think this
6166configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6167ac_tool_warned=yes ;;
6168esac
6169    RANLIB=$ac_ct_RANLIB
6170  fi
6171else
6172  RANLIB="$ac_cv_prog_RANLIB"
6173fi
6174
6175if test -n "$ac_tool_prefix"; then
6176  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177set dummy ${ac_tool_prefix}ar; ac_word=$2
6178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180if test "${ac_cv_prog_AR+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  if test -n "$AR"; then
6184  ac_cv_prog_AR="$AR" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191  for ac_exec_ext in '' $ac_executable_extensions; do
6192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193    ac_cv_prog_AR="${ac_tool_prefix}ar"
6194    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203AR=$ac_cv_prog_AR
6204if test -n "$AR"; then
6205  { echo "$as_me:$LINENO: result: $AR" >&5
6206echo "${ECHO_T}$AR" >&6; }
6207else
6208  { echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6; }
6210fi
6211
6212
6213fi
6214if test -z "$ac_cv_prog_AR"; then
6215  ac_ct_AR=$AR
6216  # Extract the first word of "ar", so it can be a program name with args.
6217set dummy ar; ac_word=$2
6218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$ac_ct_AR"; then
6224  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6233    ac_cv_prog_ac_ct_AR="ar"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
6243ac_ct_AR=$ac_cv_prog_ac_ct_AR
6244if test -n "$ac_ct_AR"; then
6245  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6246echo "${ECHO_T}$ac_ct_AR" >&6; }
6247else
6248  { echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6; }
6250fi
6251
6252  if test "x$ac_ct_AR" = x; then
6253    AR="false"
6254  else
6255    case $cross_compiling:$ac_tool_warned in
6256yes:)
6257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6258whose name does not start with the host triplet.  If you think this
6259configuration is useful to you, please write to autoconf@gnu.org." >&5
6260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6261whose name does not start with the host triplet.  If you think this
6262configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6263ac_tool_warned=yes ;;
6264esac
6265    AR=$ac_ct_AR
6266  fi
6267else
6268  AR="$ac_cv_prog_AR"
6269fi
6270
6271# Extract the first word of "rm", so it can be a program name with args.
6272set dummy rm; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_RM+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278  case $RM in
6279  [\\/]* | ?:[\\/]*)
6280  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6281  ;;
6282  *)
6283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288  for ac_exec_ext in '' $ac_executable_extensions; do
6289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6299  ;;
6300esac
6301fi
6302RM=$ac_cv_path_RM
6303if test -n "$RM"; then
6304  { echo "$as_me:$LINENO: result: $RM" >&5
6305echo "${ECHO_T}$RM" >&6; }
6306else
6307  { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
6309fi
6310
6311
6312# Extract the first word of "sed", so it can be a program name with args.
6313set dummy sed; ac_word=$2
6314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_SED+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  case $SED in
6320  [\\/]* | ?:[\\/]*)
6321  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6322  ;;
6323  *)
6324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327  IFS=$as_save_IFS
6328  test -z "$as_dir" && as_dir=.
6329  for ac_exec_ext in '' $ac_executable_extensions; do
6330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6340  ;;
6341esac
6342fi
6343SED=$ac_cv_path_SED
6344if test -n "$SED"; then
6345  { echo "$as_me:$LINENO: result: $SED" >&5
6346echo "${ECHO_T}$SED" >&6; }
6347else
6348  { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
6350fi
6351
6352
6353# Extract the first word of "tar", so it can be a program name with args.
6354set dummy tar; ac_word=$2
6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_TAR+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360  case $TAR in
6361  [\\/]* | ?:[\\/]*)
6362  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6363  ;;
6364  *)
6365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  test -z "$as_dir" && as_dir=.
6370  for ac_exec_ext in '' $ac_executable_extensions; do
6371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374    break 2
6375  fi
6376done
6377done
6378IFS=$as_save_IFS
6379
6380  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6381  ;;
6382esac
6383fi
6384TAR=$ac_cv_path_TAR
6385if test -n "$TAR"; then
6386  { echo "$as_me:$LINENO: result: $TAR" >&5
6387echo "${ECHO_T}$TAR" >&6; }
6388else
6389  { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
6391fi
6392
6393
6394# Extract the first word of "pwd", so it can be a program name with args.
6395set dummy pwd; ac_word=$2
6396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398if test "${ac_cv_path_BINPWD+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401  case $BINPWD in
6402  [\\/]* | ?:[\\/]*)
6403  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6404  ;;
6405  *)
6406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411  for ac_exec_ext in '' $ac_executable_extensions; do
6412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415    break 2
6416  fi
6417done
6418done
6419IFS=$as_save_IFS
6420
6421  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6422  ;;
6423esac
6424fi
6425BINPWD=$ac_cv_path_BINPWD
6426if test -n "$BINPWD"; then
6427  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6428echo "${ECHO_T}$BINPWD" >&6; }
6429else
6430  { echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6; }
6432fi
6433
6434
6435
6436# Extract the first word of "Graphviz", so it can be a program name with args.
6437set dummy Graphviz; ac_word=$2
6438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6441  echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443  case $GRAPHVIZ in
6444  [\\/]* | ?:[\\/]*)
6445  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6446  ;;
6447  *)
6448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453  for ac_exec_ext in '' $ac_executable_extensions; do
6454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6455    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460done
6461IFS=$as_save_IFS
6462
6463  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6464  ;;
6465esac
6466fi
6467GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6468if test -n "$GRAPHVIZ"; then
6469  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6470echo "${ECHO_T}$GRAPHVIZ" >&6; }
6471else
6472  { echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6; }
6474fi
6475
6476
6477if test "$GRAPHVIZ" != "echo Graphviz" ; then
6478
6479cat >>confdefs.h <<\_ACEOF
6480#define HAVE_GRAPHVIZ 1
6481_ACEOF
6482
6483    if test "$llvm_cv_os_type" = "MingW" ; then
6484    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6485  fi
6486
6487cat >>confdefs.h <<_ACEOF
6488#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6489_ACEOF
6490
6491fi
6492# Extract the first word of "dot", so it can be a program name with args.
6493set dummy dot; ac_word=$2
6494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496if test "${ac_cv_path_DOT+set}" = set; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499  case $DOT in
6500  [\\/]* | ?:[\\/]*)
6501  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6502  ;;
6503  *)
6504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509  for ac_exec_ext in '' $ac_executable_extensions; do
6510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516done
6517IFS=$as_save_IFS
6518
6519  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6520  ;;
6521esac
6522fi
6523DOT=$ac_cv_path_DOT
6524if test -n "$DOT"; then
6525  { echo "$as_me:$LINENO: result: $DOT" >&5
6526echo "${ECHO_T}$DOT" >&6; }
6527else
6528  { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
6530fi
6531
6532
6533if test "$DOT" != "echo dot" ; then
6534
6535cat >>confdefs.h <<\_ACEOF
6536#define HAVE_DOT 1
6537_ACEOF
6538
6539    if test "$llvm_cv_os_type" = "MingW" ; then
6540    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6541  fi
6542
6543cat >>confdefs.h <<_ACEOF
6544#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6545_ACEOF
6546
6547fi
6548# Extract the first word of "fdp", so it can be a program name with args.
6549set dummy fdp; ac_word=$2
6550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552if test "${ac_cv_path_FDP+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  case $FDP in
6556  [\\/]* | ?:[\\/]*)
6557  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6558  ;;
6559  *)
6560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563  IFS=$as_save_IFS
6564  test -z "$as_dir" && as_dir=.
6565  for ac_exec_ext in '' $ac_executable_extensions; do
6566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572done
6573IFS=$as_save_IFS
6574
6575  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6576  ;;
6577esac
6578fi
6579FDP=$ac_cv_path_FDP
6580if test -n "$FDP"; then
6581  { echo "$as_me:$LINENO: result: $FDP" >&5
6582echo "${ECHO_T}$FDP" >&6; }
6583else
6584  { echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6; }
6586fi
6587
6588
6589if test "$FDP" != "echo fdp" ; then
6590
6591cat >>confdefs.h <<\_ACEOF
6592#define HAVE_FDP 1
6593_ACEOF
6594
6595    if test "$llvm_cv_os_type" = "MingW" ; then
6596    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6597  fi
6598
6599cat >>confdefs.h <<_ACEOF
6600#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6601_ACEOF
6602
6603fi
6604# Extract the first word of "neato", so it can be a program name with args.
6605set dummy neato; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_NEATO+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  case $NEATO in
6612  [\\/]* | ?:[\\/]*)
6613  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6614  ;;
6615  *)
6616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  test -z "$as_dir" && as_dir=.
6621  for ac_exec_ext in '' $ac_executable_extensions; do
6622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625    break 2
6626  fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6632  ;;
6633esac
6634fi
6635NEATO=$ac_cv_path_NEATO
6636if test -n "$NEATO"; then
6637  { echo "$as_me:$LINENO: result: $NEATO" >&5
6638echo "${ECHO_T}$NEATO" >&6; }
6639else
6640  { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645if test "$NEATO" != "echo neato" ; then
6646
6647cat >>confdefs.h <<\_ACEOF
6648#define HAVE_NEATO 1
6649_ACEOF
6650
6651    if test "$llvm_cv_os_type" = "MingW" ; then
6652    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653  fi
6654
6655cat >>confdefs.h <<_ACEOF
6656#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6657_ACEOF
6658
6659fi
6660# Extract the first word of "twopi", so it can be a program name with args.
6661set dummy twopi; ac_word=$2
6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_path_TWOPI+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  case $TWOPI in
6668  [\\/]* | ?:[\\/]*)
6669  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6670  ;;
6671  *)
6672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677  for ac_exec_ext in '' $ac_executable_extensions; do
6678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6688  ;;
6689esac
6690fi
6691TWOPI=$ac_cv_path_TWOPI
6692if test -n "$TWOPI"; then
6693  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6694echo "${ECHO_T}$TWOPI" >&6; }
6695else
6696  { echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6; }
6698fi
6699
6700
6701if test "$TWOPI" != "echo twopi" ; then
6702
6703cat >>confdefs.h <<\_ACEOF
6704#define HAVE_TWOPI 1
6705_ACEOF
6706
6707    if test "$llvm_cv_os_type" = "MingW" ; then
6708    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709  fi
6710
6711cat >>confdefs.h <<_ACEOF
6712#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6713_ACEOF
6714
6715fi
6716# Extract the first word of "circo", so it can be a program name with args.
6717set dummy circo; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_CIRCO+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  case $CIRCO in
6724  [\\/]* | ?:[\\/]*)
6725  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6726  ;;
6727  *)
6728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733  for ac_exec_ext in '' $ac_executable_extensions; do
6734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6744  ;;
6745esac
6746fi
6747CIRCO=$ac_cv_path_CIRCO
6748if test -n "$CIRCO"; then
6749  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6750echo "${ECHO_T}$CIRCO" >&6; }
6751else
6752  { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757if test "$CIRCO" != "echo circo" ; then
6758
6759cat >>confdefs.h <<\_ACEOF
6760#define HAVE_CIRCO 1
6761_ACEOF
6762
6763    if test "$llvm_cv_os_type" = "MingW" ; then
6764    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765  fi
6766
6767cat >>confdefs.h <<_ACEOF
6768#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6769_ACEOF
6770
6771fi
6772for ac_prog in gv gsview32
6773do
6774  # Extract the first word of "$ac_prog", so it can be a program name with args.
6775set dummy $ac_prog; ac_word=$2
6776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778if test "${ac_cv_path_GV+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  case $GV in
6782  [\\/]* | ?:[\\/]*)
6783  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6784  ;;
6785  *)
6786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  test -z "$as_dir" && as_dir=.
6791  for ac_exec_ext in '' $ac_executable_extensions; do
6792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798done
6799IFS=$as_save_IFS
6800
6801  ;;
6802esac
6803fi
6804GV=$ac_cv_path_GV
6805if test -n "$GV"; then
6806  { echo "$as_me:$LINENO: result: $GV" >&5
6807echo "${ECHO_T}$GV" >&6; }
6808else
6809  { echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6; }
6811fi
6812
6813
6814  test -n "$GV" && break
6815done
6816test -n "$GV" || GV="echo gv"
6817
6818if test "$GV" != "echo gv" ; then
6819
6820cat >>confdefs.h <<\_ACEOF
6821#define HAVE_GV 1
6822_ACEOF
6823
6824    if test "$llvm_cv_os_type" = "MingW" ; then
6825    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826  fi
6827
6828cat >>confdefs.h <<_ACEOF
6829#define LLVM_PATH_GV "$GV${EXEEXT}"
6830_ACEOF
6831
6832fi
6833# Extract the first word of "dotty", so it can be a program name with args.
6834set dummy dotty; ac_word=$2
6835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837if test "${ac_cv_path_DOTTY+set}" = set; then
6838  echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840  case $DOTTY in
6841  [\\/]* | ?:[\\/]*)
6842  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6843  ;;
6844  *)
6845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850  for ac_exec_ext in '' $ac_executable_extensions; do
6851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6852    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857done
6858IFS=$as_save_IFS
6859
6860  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6861  ;;
6862esac
6863fi
6864DOTTY=$ac_cv_path_DOTTY
6865if test -n "$DOTTY"; then
6866  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6867echo "${ECHO_T}$DOTTY" >&6; }
6868else
6869  { echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6; }
6871fi
6872
6873
6874if test "$DOTTY" != "echo dotty" ; then
6875
6876cat >>confdefs.h <<\_ACEOF
6877#define HAVE_DOTTY 1
6878_ACEOF
6879
6880    if test "$llvm_cv_os_type" = "MingW" ; then
6881    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882  fi
6883
6884cat >>confdefs.h <<_ACEOF
6885#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6886_ACEOF
6887
6888fi
6889# Extract the first word of "xdot.py", so it can be a program name with args.
6890set dummy xdot.py; ac_word=$2
6891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_XDOT_PY+set}" = set; then
6894  echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896  case $XDOT_PY in
6897  [\\/]* | ?:[\\/]*)
6898  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6899  ;;
6900  *)
6901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6917  ;;
6918esac
6919fi
6920XDOT_PY=$ac_cv_path_XDOT_PY
6921if test -n "$XDOT_PY"; then
6922  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6923echo "${ECHO_T}$XDOT_PY" >&6; }
6924else
6925  { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
6927fi
6928
6929
6930if test "$XDOT_PY" != "echo xdot.py" ; then
6931
6932cat >>confdefs.h <<\_ACEOF
6933#define HAVE_XDOT_PY 1
6934_ACEOF
6935
6936    if test "$llvm_cv_os_type" = "MingW" ; then
6937    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938  fi
6939
6940cat >>confdefs.h <<_ACEOF
6941#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6942_ACEOF
6943
6944fi
6945
6946
6947# Extract the first word of "perl", so it can be a program name with args.
6948set dummy perl; ac_word=$2
6949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_path_PERL+set}" = set; then
6952  echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954  case $PERL in
6955  [\\/]* | ?:[\\/]*)
6956  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6957  ;;
6958  *)
6959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964  for ac_exec_ext in '' $ac_executable_extensions; do
6965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971done
6972IFS=$as_save_IFS
6973
6974  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6975  ;;
6976esac
6977fi
6978PERL=$ac_cv_path_PERL
6979if test -n "$PERL"; then
6980  { echo "$as_me:$LINENO: result: $PERL" >&5
6981echo "${ECHO_T}$PERL" >&6; }
6982else
6983  { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
6985fi
6986
6987
6988if test "$PERL" != "none"; then
6989  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6990echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6991  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6992    { echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6; }
6994  else
6995    PERL=none
6996    { echo "$as_me:$LINENO: result: not found" >&5
6997echo "${ECHO_T}not found" >&6; }
6998  fi
6999fi
7000
7001
7002if test x"$PERL" = xnone; then
7003   HAVE_PERL=0
7004
7005   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7006echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7007   { (exit 1); exit 1; }; }
7008else
7009   HAVE_PERL=1
7010
7011fi
7012
7013# Find a good install program.  We prefer a C program (faster),
7014# so one script is as good as another.  But avoid the broken or
7015# incompatible versions:
7016# SysV /etc/install, /usr/sbin/install
7017# SunOS /usr/etc/install
7018# IRIX /sbin/install
7019# AIX /bin/install
7020# AmigaOS /C/install, which installs bootblocks on floppy discs
7021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024# OS/2's system install, which has a completely different semantic
7025# ./install, which can be erroneously created by make from ./install.sh.
7026{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7028if test -z "$INSTALL"; then
7029if test "${ac_cv_path_install+set}" = set; then
7030  echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035  IFS=$as_save_IFS
7036  test -z "$as_dir" && as_dir=.
7037  # Account for people who put trailing slashes in PATH elements.
7038case $as_dir/ in
7039  ./ | .// | /cC/* | \
7040  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7042  /usr/ucb/* ) ;;
7043  *)
7044    # OSF1 and SCO ODT 3.0 have their own names for install.
7045    # Don't use installbsd from OSF since it installs stuff as root
7046    # by default.
7047    for ac_prog in ginstall scoinst install; do
7048      for ac_exec_ext in '' $ac_executable_extensions; do
7049	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7050	  if test $ac_prog = install &&
7051	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052	    # AIX install.  It has an incompatible calling convention.
7053	    :
7054	  elif test $ac_prog = install &&
7055	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056	    # program-specific install script used by HP pwplus--don't use.
7057	    :
7058	  else
7059	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060	    break 3
7061	  fi
7062	fi
7063      done
7064    done
7065    ;;
7066esac
7067done
7068IFS=$as_save_IFS
7069
7070
7071fi
7072  if test "${ac_cv_path_install+set}" = set; then
7073    INSTALL=$ac_cv_path_install
7074  else
7075    # As a last resort, use the slow shell script.  Don't cache a
7076    # value for INSTALL within a source directory, because that will
7077    # break other packages using the cache if that directory is
7078    # removed, or if the value is a relative name.
7079    INSTALL=$ac_install_sh
7080  fi
7081fi
7082{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7083echo "${ECHO_T}$INSTALL" >&6; }
7084
7085# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086# It thinks the first close brace ends the variable substitution.
7087test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7088
7089test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7090
7091test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7092
7093case "$INSTALL" in
7094 [\\/$]* | ?:[\\/]* ) ;;
7095 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7096esac
7097
7098# Extract the first word of "bzip2", so it can be a program name with args.
7099set dummy bzip2; ac_word=$2
7100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_path_BZIP2+set}" = set; then
7103  echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105  case $BZIP2 in
7106  [\\/]* | ?:[\\/]*)
7107  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7108  ;;
7109  *)
7110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115  for ac_exec_ext in '' $ac_executable_extensions; do
7116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122done
7123IFS=$as_save_IFS
7124
7125  ;;
7126esac
7127fi
7128BZIP2=$ac_cv_path_BZIP2
7129if test -n "$BZIP2"; then
7130  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131echo "${ECHO_T}$BZIP2" >&6; }
7132else
7133  { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
7135fi
7136
7137
7138# Extract the first word of "cat", so it can be a program name with args.
7139set dummy cat; ac_word=$2
7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_path_CAT+set}" = set; then
7143  echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145  case $CAT in
7146  [\\/]* | ?:[\\/]*)
7147  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7148  ;;
7149  *)
7150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  test -z "$as_dir" && as_dir=.
7155  for ac_exec_ext in '' $ac_executable_extensions; do
7156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159    break 2
7160  fi
7161done
7162done
7163IFS=$as_save_IFS
7164
7165  ;;
7166esac
7167fi
7168CAT=$ac_cv_path_CAT
7169if test -n "$CAT"; then
7170  { echo "$as_me:$LINENO: result: $CAT" >&5
7171echo "${ECHO_T}$CAT" >&6; }
7172else
7173  { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
7175fi
7176
7177
7178# Extract the first word of "doxygen", so it can be a program name with args.
7179set dummy doxygen; ac_word=$2
7180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183  echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185  case $DOXYGEN in
7186  [\\/]* | ?:[\\/]*)
7187  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7188  ;;
7189  *)
7190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193  IFS=$as_save_IFS
7194  test -z "$as_dir" && as_dir=.
7195  for ac_exec_ext in '' $ac_executable_extensions; do
7196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199    break 2
7200  fi
7201done
7202done
7203IFS=$as_save_IFS
7204
7205  ;;
7206esac
7207fi
7208DOXYGEN=$ac_cv_path_DOXYGEN
7209if test -n "$DOXYGEN"; then
7210  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211echo "${ECHO_T}$DOXYGEN" >&6; }
7212else
7213  { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218# Extract the first word of "groff", so it can be a program name with args.
7219set dummy groff; ac_word=$2
7220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222if test "${ac_cv_path_GROFF+set}" = set; then
7223  echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225  case $GROFF in
7226  [\\/]* | ?:[\\/]*)
7227  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7228  ;;
7229  *)
7230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233  IFS=$as_save_IFS
7234  test -z "$as_dir" && as_dir=.
7235  for ac_exec_ext in '' $ac_executable_extensions; do
7236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239    break 2
7240  fi
7241done
7242done
7243IFS=$as_save_IFS
7244
7245  ;;
7246esac
7247fi
7248GROFF=$ac_cv_path_GROFF
7249if test -n "$GROFF"; then
7250  { echo "$as_me:$LINENO: result: $GROFF" >&5
7251echo "${ECHO_T}$GROFF" >&6; }
7252else
7253  { echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6; }
7255fi
7256
7257
7258# Extract the first word of "gzip", so it can be a program name with args.
7259set dummy gzip; ac_word=$2
7260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262if test "${ac_cv_path_GZIPBIN+set}" = set; then
7263  echo $ECHO_N "(cached) $ECHO_C" >&6
7264else
7265  case $GZIPBIN in
7266  [\\/]* | ?:[\\/]*)
7267  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7268  ;;
7269  *)
7270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275  for ac_exec_ext in '' $ac_executable_extensions; do
7276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282done
7283IFS=$as_save_IFS
7284
7285  ;;
7286esac
7287fi
7288GZIPBIN=$ac_cv_path_GZIPBIN
7289if test -n "$GZIPBIN"; then
7290  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291echo "${ECHO_T}$GZIPBIN" >&6; }
7292else
7293  { echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6; }
7295fi
7296
7297
7298# Extract the first word of "pod2html", so it can be a program name with args.
7299set dummy pod2html; ac_word=$2
7300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302if test "${ac_cv_path_POD2HTML+set}" = set; then
7303  echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305  case $POD2HTML in
7306  [\\/]* | ?:[\\/]*)
7307  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7308  ;;
7309  *)
7310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315  for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322done
7323IFS=$as_save_IFS
7324
7325  ;;
7326esac
7327fi
7328POD2HTML=$ac_cv_path_POD2HTML
7329if test -n "$POD2HTML"; then
7330  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7331echo "${ECHO_T}$POD2HTML" >&6; }
7332else
7333  { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
7335fi
7336
7337
7338# Extract the first word of "pod2man", so it can be a program name with args.
7339set dummy pod2man; ac_word=$2
7340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_POD2MAN+set}" = set; then
7343  echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345  case $POD2MAN in
7346  [\\/]* | ?:[\\/]*)
7347  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7348  ;;
7349  *)
7350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355  for ac_exec_ext in '' $ac_executable_extensions; do
7356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362done
7363IFS=$as_save_IFS
7364
7365  ;;
7366esac
7367fi
7368POD2MAN=$ac_cv_path_POD2MAN
7369if test -n "$POD2MAN"; then
7370  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7371echo "${ECHO_T}$POD2MAN" >&6; }
7372else
7373  { echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6; }
7375fi
7376
7377
7378# Extract the first word of "pdfroff", so it can be a program name with args.
7379set dummy pdfroff; ac_word=$2
7380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382if test "${ac_cv_path_PDFROFF+set}" = set; then
7383  echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385  case $PDFROFF in
7386  [\\/]* | ?:[\\/]*)
7387  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7388  ;;
7389  *)
7390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395  for ac_exec_ext in '' $ac_executable_extensions; do
7396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402done
7403IFS=$as_save_IFS
7404
7405  ;;
7406esac
7407fi
7408PDFROFF=$ac_cv_path_PDFROFF
7409if test -n "$PDFROFF"; then
7410  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7411echo "${ECHO_T}$PDFROFF" >&6; }
7412else
7413  { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
7415fi
7416
7417
7418# Extract the first word of "runtest", so it can be a program name with args.
7419set dummy runtest; ac_word=$2
7420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422if test "${ac_cv_path_RUNTEST+set}" = set; then
7423  echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425  case $RUNTEST in
7426  [\\/]* | ?:[\\/]*)
7427  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7428  ;;
7429  *)
7430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433  IFS=$as_save_IFS
7434  test -z "$as_dir" && as_dir=.
7435  for ac_exec_ext in '' $ac_executable_extensions; do
7436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439    break 2
7440  fi
7441done
7442done
7443IFS=$as_save_IFS
7444
7445  ;;
7446esac
7447fi
7448RUNTEST=$ac_cv_path_RUNTEST
7449if test -n "$RUNTEST"; then
7450  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7451echo "${ECHO_T}$RUNTEST" >&6; }
7452else
7453  { echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6; }
7455fi
7456
7457
7458
7459no_itcl=true
7460{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7461echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7462
7463# Check whether --with-tclinclude was given.
7464if test "${with_tclinclude+set}" = set; then
7465  withval=$with_tclinclude; with_tclinclude=${withval}
7466else
7467  with_tclinclude=''
7468fi
7469
7470if test "${ac_cv_path_tclsh+set}" = set; then
7471  echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473
7474if test x"${with_tclinclude}" != x ; then
7475  if test -f ${with_tclinclude}/tclsh ; then
7476    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7477  elif test -f ${with_tclinclude}/src/tclsh ; then
7478    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7479  else
7480    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7481echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7482   { (exit 1); exit 1; }; }
7483  fi
7484fi
7485fi
7486
7487
7488if test x"${ac_cv_path_tclsh}" = x ; then
7489  { echo "$as_me:$LINENO: result: none" >&5
7490echo "${ECHO_T}none" >&6; }
7491  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
7492do
7493  # Extract the first word of "$ac_prog", so it can be a program name with args.
7494set dummy $ac_prog; ac_word=$2
7495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_TCLSH+set}" = set; then
7498  echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500  case $TCLSH in
7501  [\\/]* | ?:[\\/]*)
7502  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7503  ;;
7504  *)
7505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508  IFS=$as_save_IFS
7509  test -z "$as_dir" && as_dir=.
7510  for ac_exec_ext in '' $ac_executable_extensions; do
7511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514    break 2
7515  fi
7516done
7517done
7518IFS=$as_save_IFS
7519
7520  ;;
7521esac
7522fi
7523TCLSH=$ac_cv_path_TCLSH
7524if test -n "$TCLSH"; then
7525  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7526echo "${ECHO_T}$TCLSH" >&6; }
7527else
7528  { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
7530fi
7531
7532
7533  test -n "$TCLSH" && break
7534done
7535
7536  if test x"${TCLSH}" = x ; then
7537    ac_cv_path_tclsh='';
7538  else
7539    ac_cv_path_tclsh="${TCLSH}";
7540  fi
7541else
7542  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7543echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7544  TCLSH="${ac_cv_path_tclsh}"
7545
7546fi
7547
7548# Extract the first word of "zip", so it can be a program name with args.
7549set dummy zip; ac_word=$2
7550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_ZIP+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  case $ZIP in
7556  [\\/]* | ?:[\\/]*)
7557  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7558  ;;
7559  *)
7560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563  IFS=$as_save_IFS
7564  test -z "$as_dir" && as_dir=.
7565  for ac_exec_ext in '' $ac_executable_extensions; do
7566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569    break 2
7570  fi
7571done
7572done
7573IFS=$as_save_IFS
7574
7575  ;;
7576esac
7577fi
7578ZIP=$ac_cv_path_ZIP
7579if test -n "$ZIP"; then
7580  { echo "$as_me:$LINENO: result: $ZIP" >&5
7581echo "${ECHO_T}$ZIP" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585fi
7586
7587
7588for ac_prog in ocamlc
7589do
7590  # Extract the first word of "$ac_prog", so it can be a program name with args.
7591set dummy $ac_prog; ac_word=$2
7592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594if test "${ac_cv_path_OCAMLC+set}" = set; then
7595  echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597  case $OCAMLC in
7598  [\\/]* | ?:[\\/]*)
7599  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7600  ;;
7601  *)
7602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605  IFS=$as_save_IFS
7606  test -z "$as_dir" && as_dir=.
7607  for ac_exec_ext in '' $ac_executable_extensions; do
7608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7609    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611    break 2
7612  fi
7613done
7614done
7615IFS=$as_save_IFS
7616
7617  ;;
7618esac
7619fi
7620OCAMLC=$ac_cv_path_OCAMLC
7621if test -n "$OCAMLC"; then
7622  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7623echo "${ECHO_T}$OCAMLC" >&6; }
7624else
7625  { echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6; }
7627fi
7628
7629
7630  test -n "$OCAMLC" && break
7631done
7632
7633for ac_prog in ocamlopt
7634do
7635  # Extract the first word of "$ac_prog", so it can be a program name with args.
7636set dummy $ac_prog; ac_word=$2
7637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7639if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7640  echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642  case $OCAMLOPT in
7643  [\\/]* | ?:[\\/]*)
7644  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7645  ;;
7646  *)
7647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650  IFS=$as_save_IFS
7651  test -z "$as_dir" && as_dir=.
7652  for ac_exec_ext in '' $ac_executable_extensions; do
7653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7654    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656    break 2
7657  fi
7658done
7659done
7660IFS=$as_save_IFS
7661
7662  ;;
7663esac
7664fi
7665OCAMLOPT=$ac_cv_path_OCAMLOPT
7666if test -n "$OCAMLOPT"; then
7667  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7668echo "${ECHO_T}$OCAMLOPT" >&6; }
7669else
7670  { echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6; }
7672fi
7673
7674
7675  test -n "$OCAMLOPT" && break
7676done
7677
7678for ac_prog in ocamldep
7679do
7680  # Extract the first word of "$ac_prog", so it can be a program name with args.
7681set dummy $ac_prog; ac_word=$2
7682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7685  echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687  case $OCAMLDEP in
7688  [\\/]* | ?:[\\/]*)
7689  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7690  ;;
7691  *)
7692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  test -z "$as_dir" && as_dir=.
7697  for ac_exec_ext in '' $ac_executable_extensions; do
7698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7699    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701    break 2
7702  fi
7703done
7704done
7705IFS=$as_save_IFS
7706
7707  ;;
7708esac
7709fi
7710OCAMLDEP=$ac_cv_path_OCAMLDEP
7711if test -n "$OCAMLDEP"; then
7712  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7713echo "${ECHO_T}$OCAMLDEP" >&6; }
7714else
7715  { echo "$as_me:$LINENO: result: no" >&5
7716echo "${ECHO_T}no" >&6; }
7717fi
7718
7719
7720  test -n "$OCAMLDEP" && break
7721done
7722
7723for ac_prog in ocamldoc
7724do
7725  # Extract the first word of "$ac_prog", so it can be a program name with args.
7726set dummy $ac_prog; ac_word=$2
7727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7730  echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732  case $OCAMLDOC in
7733  [\\/]* | ?:[\\/]*)
7734  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7735  ;;
7736  *)
7737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740  IFS=$as_save_IFS
7741  test -z "$as_dir" && as_dir=.
7742  for ac_exec_ext in '' $ac_executable_extensions; do
7743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746    break 2
7747  fi
7748done
7749done
7750IFS=$as_save_IFS
7751
7752  ;;
7753esac
7754fi
7755OCAMLDOC=$ac_cv_path_OCAMLDOC
7756if test -n "$OCAMLDOC"; then
7757  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7758echo "${ECHO_T}$OCAMLDOC" >&6; }
7759else
7760  { echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6; }
7762fi
7763
7764
7765  test -n "$OCAMLDOC" && break
7766done
7767
7768for ac_prog in gas as
7769do
7770  # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
7772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_GAS+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  case $GAS in
7778  [\\/]* | ?:[\\/]*)
7779  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7780  ;;
7781  *)
7782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787  for ac_exec_ext in '' $ac_executable_extensions; do
7788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794done
7795IFS=$as_save_IFS
7796
7797  ;;
7798esac
7799fi
7800GAS=$ac_cv_path_GAS
7801if test -n "$GAS"; then
7802  { echo "$as_me:$LINENO: result: $GAS" >&5
7803echo "${ECHO_T}$GAS" >&6; }
7804else
7805  { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
7807fi
7808
7809
7810  test -n "$GAS" && break
7811done
7812
7813
7814{ echo "$as_me:$LINENO: checking for linker version" >&5
7815echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7816if test "${llvm_cv_link_version+set}" = set; then
7817  echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819
7820   version_string="$(ld -v 2>&1 | head -1)"
7821
7822   # Check for ld64.
7823   if (echo "$version_string" | grep -q "ld64"); then
7824     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7825   else
7826     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7827   fi
7828
7829fi
7830{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7831echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7832
7833cat >>confdefs.h <<_ACEOF
7834#define HOST_LINK_VERSION "$llvm_cv_link_version"
7835_ACEOF
7836
7837
7838
7839{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7840echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7841if test "${llvm_cv_link_use_r+set}" = set; then
7842  echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844   ac_ext=c
7845ac_cpp='$CPP $CPPFLAGS'
7846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849
7850  oldcflags="$CFLAGS"
7851  CFLAGS="$CFLAGS -Wl,-R."
7852  cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h.  */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h.  */
7858
7859int
7860main ()
7861{
7862
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (ac_try="$ac_link"
7869case "(($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_link") 2>conftest.er1
7875  ac_status=$?
7876  grep -v '^ *+' conftest.er1 >conftest.err
7877  rm -f conftest.er1
7878  cat conftest.err >&5
7879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880  (exit $ac_status); } &&
7881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882  { (case "(($ac_try" in
7883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884  *) ac_try_echo=$ac_try;;
7885esac
7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887  (eval "$ac_try") 2>&5
7888  ac_status=$?
7889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890  (exit $ac_status); }; } &&
7891	 { ac_try='test -s conftest$ac_exeext'
7892  { (case "(($ac_try" in
7893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894  *) ac_try_echo=$ac_try;;
7895esac
7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897  (eval "$ac_try") 2>&5
7898  ac_status=$?
7899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900  (exit $ac_status); }; }; then
7901  llvm_cv_link_use_r=yes
7902else
7903  echo "$as_me: failed program was:" >&5
7904sed 's/^/| /' conftest.$ac_ext >&5
7905
7906	llvm_cv_link_use_r=no
7907fi
7908
7909rm -f core conftest.err conftest.$ac_objext \
7910      conftest$ac_exeext conftest.$ac_ext
7911  CFLAGS="$oldcflags"
7912  ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919fi
7920{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7921echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7922if test "$llvm_cv_link_use_r" = yes ; then
7923
7924cat >>confdefs.h <<\_ACEOF
7925#define HAVE_LINK_R 1
7926_ACEOF
7927
7928  fi
7929
7930
7931{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7932echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7933if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7934  echo $ECHO_N "(cached) $ECHO_C" >&6
7935else
7936   ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942  oldcflags="$CFLAGS"
7943  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7944  cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h.  */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h.  */
7950
7951int
7952main ()
7953{
7954
7955  ;
7956  return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext conftest$ac_exeext
7960if { (ac_try="$ac_link"
7961case "(($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_link") 2>conftest.er1
7967  ac_status=$?
7968  grep -v '^ *+' conftest.er1 >conftest.err
7969  rm -f conftest.er1
7970  cat conftest.err >&5
7971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972  (exit $ac_status); } &&
7973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974  { (case "(($ac_try" in
7975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976  *) ac_try_echo=$ac_try;;
7977esac
7978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979  (eval "$ac_try") 2>&5
7980  ac_status=$?
7981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982  (exit $ac_status); }; } &&
7983	 { ac_try='test -s conftest$ac_exeext'
7984  { (case "(($ac_try" in
7985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986  *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989  (eval "$ac_try") 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); }; }; then
7993  llvm_cv_link_use_export_dynamic=yes
7994else
7995  echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998	llvm_cv_link_use_export_dynamic=no
7999fi
8000
8001rm -f core conftest.err conftest.$ac_objext \
8002      conftest$ac_exeext conftest.$ac_ext
8003  CFLAGS="$oldcflags"
8004  ac_ext=c
8005ac_cpp='$CPP $CPPFLAGS'
8006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011fi
8012{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8013echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8014if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8015
8016cat >>confdefs.h <<\_ACEOF
8017#define HAVE_LINK_EXPORT_DYNAMIC 1
8018_ACEOF
8019
8020  fi
8021
8022
8023{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8024echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8025if test "${llvm_cv_link_use_version_script+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028   ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034  oldcflags="$CFLAGS"
8035
8036  # The following code is from the autoconf manual,
8037  # "11.13: Limitations of Usual Tools".
8038  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8039  # Use mktemp if possible; otherwise fall back on mkdir,
8040  # with $RANDOM to make collisions less likely.
8041  : ${TMPDIR=/tmp}
8042  {
8043    tmp=`
8044      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8045    ` &&
8046    test -n "$tmp" && test -d "$tmp"
8047  } || {
8048    tmp=$TMPDIR/foo$$-$RANDOM
8049    (umask 077 && mkdir "$tmp")
8050  } || exit $?
8051
8052  echo "{" > "$tmp/export.map"
8053  echo "  global: main;" >> "$tmp/export.map"
8054  echo "  local: *;" >> "$tmp/export.map"
8055  echo "};" >> "$tmp/export.map"
8056
8057  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8058  cat >conftest.$ac_ext <<_ACEOF
8059/* confdefs.h.  */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h.  */
8064
8065int
8066main ()
8067{
8068
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext conftest$ac_exeext
8074if { (ac_try="$ac_link"
8075case "(($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_link") 2>conftest.er1
8081  ac_status=$?
8082  grep -v '^ *+' conftest.er1 >conftest.err
8083  rm -f conftest.er1
8084  cat conftest.err >&5
8085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086  (exit $ac_status); } &&
8087	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8088  { (case "(($ac_try" in
8089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090  *) ac_try_echo=$ac_try;;
8091esac
8092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093  (eval "$ac_try") 2>&5
8094  ac_status=$?
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); }; } &&
8097	 { ac_try='test -s conftest$ac_exeext'
8098  { (case "(($ac_try" in
8099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100  *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103  (eval "$ac_try") 2>&5
8104  ac_status=$?
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); }; }; then
8107  llvm_cv_link_use_version_script=yes
8108else
8109  echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112	llvm_cv_link_use_version_script=no
8113fi
8114
8115rm -f core conftest.err conftest.$ac_objext \
8116      conftest$ac_exeext conftest.$ac_ext
8117  rm "$tmp/export.map"
8118  rmdir "$tmp"
8119  CFLAGS="$oldcflags"
8120  ac_ext=c
8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127fi
8128{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8129echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8130if test "$llvm_cv_link_use_version_script" = yes ; then
8131  HAVE_LINK_VERSION_SCRIPT=1
8132
8133  fi
8134
8135
8136
8137
8138{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8140if test "${ac_cv_c_const+set}" = set; then
8141  echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143  cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h.  */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h.  */
8149
8150int
8151main ()
8152{
8153/* FIXME: Include the comments suggested by Paul. */
8154#ifndef __cplusplus
8155  /* Ultrix mips cc rejects this.  */
8156  typedef int charset[2];
8157  const charset x;
8158  /* SunOS 4.1.1 cc rejects this.  */
8159  char const *const *ccp;
8160  char **p;
8161  /* NEC SVR4.0.2 mips cc rejects this.  */
8162  struct point {int x, y;};
8163  static struct point const zero = {0,0};
8164  /* AIX XL C 1.02.0.0 rejects this.
8165     It does not let you subtract one const X* pointer from another in
8166     an arm of an if-expression whose if-part is not a constant
8167     expression */
8168  const char *g = "string";
8169  ccp = &g + (g ? g-g : 0);
8170  /* HPUX 7.0 cc rejects these. */
8171  ++ccp;
8172  p = (char**) ccp;
8173  ccp = (char const *const *) p;
8174  { /* SCO 3.2v4 cc rejects this.  */
8175    char *t;
8176    char const *s = 0 ? (char *) 0 : (char const *) 0;
8177
8178    *t++ = 0;
8179    if (s) return 0;
8180  }
8181  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8182    int x[] = {25, 17};
8183    const int *foo = &x[0];
8184    ++foo;
8185  }
8186  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8187    typedef const int *iptr;
8188    iptr p = 0;
8189    ++p;
8190  }
8191  { /* AIX XL C 1.02.0.0 rejects this saying
8192       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8193    struct s { int j; const int *ap[3]; };
8194    struct s *b; b->j = 5;
8195  }
8196  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8197    const int foo = 10;
8198    if (!foo) return 0;
8199  }
8200  return !x[0] && !zero.x;
8201#endif
8202
8203  ;
8204  return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (ac_try="$ac_compile"
8209case "(($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_compile") 2>conftest.er1
8215  ac_status=$?
8216  grep -v '^ *+' conftest.er1 >conftest.err
8217  rm -f conftest.er1
8218  cat conftest.err >&5
8219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220  (exit $ac_status); } &&
8221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222  { (case "(($ac_try" in
8223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224  *) ac_try_echo=$ac_try;;
8225esac
8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227  (eval "$ac_try") 2>&5
8228  ac_status=$?
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); }; } &&
8231	 { ac_try='test -s conftest.$ac_objext'
8232  { (case "(($ac_try" in
8233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234  *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237  (eval "$ac_try") 2>&5
8238  ac_status=$?
8239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240  (exit $ac_status); }; }; then
8241  ac_cv_c_const=yes
8242else
8243  echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246	ac_cv_c_const=no
8247fi
8248
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8252echo "${ECHO_T}$ac_cv_c_const" >&6; }
8253if test $ac_cv_c_const = no; then
8254
8255cat >>confdefs.h <<\_ACEOF
8256#define const
8257_ACEOF
8258
8259fi
8260
8261
8262
8263
8264
8265
8266ac_header_dirent=no
8267for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8268  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8269{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8270echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272  echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274  cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h.  */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h.  */
8280#include <sys/types.h>
8281#include <$ac_hdr>
8282
8283int
8284main ()
8285{
8286if ((DIR *) 0)
8287return 0;
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292rm -f conftest.$ac_objext
8293if { (ac_try="$ac_compile"
8294case "(($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_compile") 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } &&
8306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307  { (case "(($ac_try" in
8308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309  *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312  (eval "$ac_try") 2>&5
8313  ac_status=$?
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); }; } &&
8316	 { ac_try='test -s conftest.$ac_objext'
8317  { (case "(($ac_try" in
8318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319  *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322  (eval "$ac_try") 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326  eval "$as_ac_Header=yes"
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331	eval "$as_ac_Header=no"
8332fi
8333
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335fi
8336ac_res=`eval echo '${'$as_ac_Header'}'`
8337	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8338echo "${ECHO_T}$ac_res" >&6; }
8339if test `eval echo '${'$as_ac_Header'}'` = yes; then
8340  cat >>confdefs.h <<_ACEOF
8341#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8342_ACEOF
8343
8344ac_header_dirent=$ac_hdr; break
8345fi
8346
8347done
8348# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8349if test $ac_header_dirent = dirent.h; then
8350  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352if test "${ac_cv_search_opendir+set}" = set; then
8353  echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355  ac_func_search_save_LIBS=$LIBS
8356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h.  */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h.  */
8362
8363/* Override any GCC internal prototype to avoid an error.
8364   Use char because int might match the return type of a GCC
8365   builtin and then its argument prototype would still apply.  */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369char opendir ();
8370int
8371main ()
8372{
8373return opendir ();
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378for ac_lib in '' dir; do
8379  if test -z "$ac_lib"; then
8380    ac_res="none required"
8381  else
8382    ac_res=-l$ac_lib
8383    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8384  fi
8385  rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($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_link") 2>conftest.er1
8393  ac_status=$?
8394  grep -v '^ *+' conftest.er1 >conftest.err
8395  rm -f conftest.er1
8396  cat conftest.err >&5
8397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398  (exit $ac_status); } &&
8399	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400  { (case "(($ac_try" in
8401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402  *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405  (eval "$ac_try") 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); }; } &&
8409	 { ac_try='test -s conftest$ac_exeext'
8410  { (case "(($ac_try" in
8411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412  *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415  (eval "$ac_try") 2>&5
8416  ac_status=$?
8417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418  (exit $ac_status); }; }; then
8419  ac_cv_search_opendir=$ac_res
8420else
8421  echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
8425fi
8426
8427rm -f core conftest.err conftest.$ac_objext \
8428      conftest$ac_exeext
8429  if test "${ac_cv_search_opendir+set}" = set; then
8430  break
8431fi
8432done
8433if test "${ac_cv_search_opendir+set}" = set; then
8434  :
8435else
8436  ac_cv_search_opendir=no
8437fi
8438rm conftest.$ac_ext
8439LIBS=$ac_func_search_save_LIBS
8440fi
8441{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8443ac_res=$ac_cv_search_opendir
8444if test "$ac_res" != no; then
8445  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446
8447fi
8448
8449else
8450  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8451echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8452if test "${ac_cv_search_opendir+set}" = set; then
8453  echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455  ac_func_search_save_LIBS=$LIBS
8456cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h.  */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h.  */
8462
8463/* Override any GCC internal prototype to avoid an error.
8464   Use char because int might match the return type of a GCC
8465   builtin and then its argument prototype would still apply.  */
8466#ifdef __cplusplus
8467extern "C"
8468#endif
8469char opendir ();
8470int
8471main ()
8472{
8473return opendir ();
8474  ;
8475  return 0;
8476}
8477_ACEOF
8478for ac_lib in '' x; do
8479  if test -z "$ac_lib"; then
8480    ac_res="none required"
8481  else
8482    ac_res=-l$ac_lib
8483    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8484  fi
8485  rm -f conftest.$ac_objext conftest$ac_exeext
8486if { (ac_try="$ac_link"
8487case "(($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_link") 2>conftest.er1
8493  ac_status=$?
8494  grep -v '^ *+' conftest.er1 >conftest.err
8495  rm -f conftest.er1
8496  cat conftest.err >&5
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } &&
8499	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500  { (case "(($ac_try" in
8501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502  *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505  (eval "$ac_try") 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509	 { ac_try='test -s conftest$ac_exeext'
8510  { (case "(($ac_try" in
8511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512  *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515  (eval "$ac_try") 2>&5
8516  ac_status=$?
8517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518  (exit $ac_status); }; }; then
8519  ac_cv_search_opendir=$ac_res
8520else
8521  echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524
8525fi
8526
8527rm -f core conftest.err conftest.$ac_objext \
8528      conftest$ac_exeext
8529  if test "${ac_cv_search_opendir+set}" = set; then
8530  break
8531fi
8532done
8533if test "${ac_cv_search_opendir+set}" = set; then
8534  :
8535else
8536  ac_cv_search_opendir=no
8537fi
8538rm conftest.$ac_ext
8539LIBS=$ac_func_search_save_LIBS
8540fi
8541{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8542echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8543ac_res=$ac_cv_search_opendir
8544if test "$ac_res" != no; then
8545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8546
8547fi
8548
8549fi
8550
8551
8552for ac_header in dlfcn.h
8553do
8554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559  echo $ECHO_N "(cached) $ECHO_C" >&6
8560fi
8561ac_res=`eval echo '${'$as_ac_Header'}'`
8562	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8563echo "${ECHO_T}$ac_res" >&6; }
8564else
8565  # Is the header compilable?
8566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574$ac_includes_default
8575#include <$ac_header>
8576_ACEOF
8577rm -f conftest.$ac_objext
8578if { (ac_try="$ac_compile"
8579case "(($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_compile") 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } &&
8591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592  { (case "(($ac_try" in
8593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594  *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597  (eval "$ac_try") 2>&5
8598  ac_status=$?
8599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600  (exit $ac_status); }; } &&
8601	 { ac_try='test -s conftest.$ac_objext'
8602  { (case "(($ac_try" in
8603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604  *) ac_try_echo=$ac_try;;
8605esac
8606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607  (eval "$ac_try") 2>&5
8608  ac_status=$?
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); }; }; then
8611  ac_header_compiler=yes
8612else
8613  echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616	ac_header_compiler=no
8617fi
8618
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8621echo "${ECHO_T}$ac_header_compiler" >&6; }
8622
8623# Is the header present?
8624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8626cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h.  */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h.  */
8632#include <$ac_header>
8633_ACEOF
8634if { (ac_try="$ac_cpp conftest.$ac_ext"
8635case "(($ac_try" in
8636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637  *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8641  ac_status=$?
8642  grep -v '^ *+' conftest.er1 >conftest.err
8643  rm -f conftest.er1
8644  cat conftest.err >&5
8645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646  (exit $ac_status); } >/dev/null; then
8647  if test -s conftest.err; then
8648    ac_cpp_err=$ac_c_preproc_warn_flag
8649    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8650  else
8651    ac_cpp_err=
8652  fi
8653else
8654  ac_cpp_err=yes
8655fi
8656if test -z "$ac_cpp_err"; then
8657  ac_header_preproc=yes
8658else
8659  echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662  ac_header_preproc=no
8663fi
8664
8665rm -f conftest.err conftest.$ac_ext
8666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8667echo "${ECHO_T}$ac_header_preproc" >&6; }
8668
8669# So?  What about this header?
8670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8671  yes:no: )
8672    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8674    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8676    ac_header_preproc=yes
8677    ;;
8678  no:yes:* )
8679    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8681    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8682echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8683    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8685    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8686echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8687    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8689    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8691    ( cat <<\_ASBOX
8692## ------------------------------------ ##
8693## Report this to http://llvm.org/bugs/ ##
8694## ------------------------------------ ##
8695_ASBOX
8696     ) | sed "s/^/$as_me: WARNING:     /" >&2
8697    ;;
8698esac
8699{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  eval "$as_ac_Header=\$ac_header_preproc"
8705fi
8706ac_res=`eval echo '${'$as_ac_Header'}'`
8707	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8708echo "${ECHO_T}$ac_res" >&6; }
8709
8710fi
8711if test `eval echo '${'$as_ac_Header'}'` = yes; then
8712  cat >>confdefs.h <<_ACEOF
8713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8714_ACEOF
8715
8716fi
8717
8718done
8719
8720# Check whether --enable-ltdl-install was given.
8721if test "${enable_ltdl_install+set}" = set; then
8722  enableval=$enable_ltdl_install;
8723fi
8724
8725
8726
8727
8728if test x"${enable_ltdl_install-no}" != xno; then
8729  INSTALL_LTDL_TRUE=
8730  INSTALL_LTDL_FALSE='#'
8731else
8732  INSTALL_LTDL_TRUE='#'
8733  INSTALL_LTDL_FALSE=
8734fi
8735
8736
8737
8738if test x"${enable_ltdl_convenience-no}" != xno; then
8739  CONVENIENCE_LTDL_TRUE=
8740  CONVENIENCE_LTDL_FALSE='#'
8741else
8742  CONVENIENCE_LTDL_TRUE='#'
8743  CONVENIENCE_LTDL_FALSE=
8744fi
8745
8746
8747{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8749library_names_spec=
8750libname_spec='lib$name'
8751soname_spec=
8752shrext_cmds=".so"
8753postinstall_cmds=
8754postuninstall_cmds=
8755finish_cmds=
8756finish_eval=
8757shlibpath_var=
8758shlibpath_overrides_runpath=unknown
8759version_type=none
8760dynamic_linker="$host_os ld.so"
8761sys_lib_dlsearch_path_spec="/lib /usr/lib"
8762if test "$GCC" = yes; then
8763  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8764  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8765    # if the path contains ";" then we assume it to be the separator
8766    # otherwise default to the standard path separator (i.e. ":") - it is
8767    # assumed that no part of a normal pathname contains ";" but that should
8768    # okay in the real world where ";" in dirpaths is itself problematic.
8769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8770  else
8771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8772  fi
8773else
8774  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8775fi
8776need_lib_prefix=unknown
8777hardcode_into_libs=no
8778
8779# when you set need_version to no, make sure it does not cause -set_version
8780# flags to be left without arguments
8781need_version=unknown
8782
8783case $host_os in
8784aix3*)
8785  version_type=linux
8786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787  shlibpath_var=LIBPATH
8788
8789  # AIX 3 has no versioning support, so we append a major version to the name.
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  ;;
8792
8793aix4* | aix5*)
8794  version_type=linux
8795  need_lib_prefix=no
8796  need_version=no
8797  hardcode_into_libs=yes
8798  if test "$host_cpu" = ia64; then
8799    # AIX 5 supports IA64
8800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8801    shlibpath_var=LD_LIBRARY_PATH
8802  else
8803    # With GCC up to 2.95.x, collect2 would create an import file
8804    # for dependence libraries.  The import file would start with
8805    # the line `#! .'.  This would cause the generated library to
8806    # depend on `.', always an invalid library.  This was fixed in
8807    # development snapshots of GCC prior to 3.0.
8808    case $host_os in
8809      aix4 | aix4.[01] | aix4.[01].*)
8810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811	   echo ' yes '
8812	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8813	:
8814      else
8815	can_build_shared=no
8816      fi
8817      ;;
8818    esac
8819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820    # soname into executable. Probably we can add versioning support to
8821    # collect2, so additional links can be useful in future.
8822    if test "$aix_use_runtimelinking" = yes; then
8823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824      # instead of lib<name>.a to let people know that these are not
8825      # typical AIX shared libraries.
8826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827    else
8828      # We preserve .a as extension for shared libraries through AIX4.2
8829      # and later when we are not doing run time linking.
8830      library_names_spec='${libname}${release}.a $libname.a'
8831      soname_spec='${libname}${release}${shared_ext}$major'
8832    fi
8833    shlibpath_var=LIBPATH
8834  fi
8835  ;;
8836
8837amigaos*)
8838  library_names_spec='$libname.ixlibrary $libname.a'
8839  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8840  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'
8841  ;;
8842
8843beos*)
8844  library_names_spec='${libname}${shared_ext}'
8845  dynamic_linker="$host_os ld.so"
8846  shlibpath_var=LIBRARY_PATH
8847  ;;
8848
8849bsdi[45]*)
8850  version_type=linux
8851  need_version=no
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853  soname_spec='${libname}${release}${shared_ext}$major'
8854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8855  shlibpath_var=LD_LIBRARY_PATH
8856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8858  # the default ld.so.conf also contains /usr/contrib/lib and
8859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8860  # libtool to hard-code these into programs
8861  ;;
8862
8863cygwin* | mingw* | pw32*)
8864  version_type=windows
8865  shrext_cmds=".dll"
8866  need_version=no
8867  need_lib_prefix=no
8868
8869  case $GCC,$host_os in
8870  yes,cygwin* | yes,mingw* | yes,pw32*)
8871    library_names_spec='$libname.dll.a'
8872    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8873    postinstall_cmds='base_file=`basename \${file}`~
8874      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8875      dldir=$destdir/`dirname \$dlpath`~
8876      test -d \$dldir || mkdir -p \$dldir~
8877      $install_prog $dir/$dlname \$dldir/$dlname~
8878      chmod a+x \$dldir/$dlname'
8879    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8880      dlpath=$dir/\$dldll~
8881       $rm \$dlpath'
8882    shlibpath_overrides_runpath=yes
8883
8884    case $host_os in
8885    cygwin*)
8886      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8887      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8889      ;;
8890    mingw*)
8891      # MinGW DLLs use traditional 'lib' prefix
8892      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8895        # It is most probably a Windows format PATH printed by
8896        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8897        # path with ; separators, and with drive letters. We can handle the
8898        # drive letters (cygwin fileutils understands them), so leave them,
8899        # especially as we might pass files found there to a mingw objdump,
8900        # which wouldn't understand a cygwinified path. Ahh.
8901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8902      else
8903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8904      fi
8905      ;;
8906    pw32*)
8907      # pw32 DLLs use 'pw' prefix rather than 'lib'
8908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909      ;;
8910    esac
8911    ;;
8912
8913  *)
8914    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8915    ;;
8916  esac
8917  dynamic_linker='Win32 ld.exe'
8918  # FIXME: first we should search . and the directory the executable is in
8919  shlibpath_var=PATH
8920  ;;
8921
8922darwin* | rhapsody*)
8923  dynamic_linker="$host_os dyld"
8924  version_type=darwin
8925  need_lib_prefix=no
8926  need_version=no
8927  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8928  soname_spec='${libname}${release}${major}$shared_ext'
8929  shlibpath_overrides_runpath=yes
8930  shlibpath_var=DYLD_LIBRARY_PATH
8931  shrext_cmds='.dylib'
8932  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8933  if test "$GCC" = yes; then
8934    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"`
8935  else
8936    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8937  fi
8938  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8939  ;;
8940
8941dgux*)
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  ;;
8949
8950freebsd1.*)
8951  dynamic_linker=no
8952  ;;
8953
8954kfreebsd*-gnu)
8955  version_type=linux
8956  need_lib_prefix=no
8957  need_version=no
8958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959  soname_spec='${libname}${release}${shared_ext}$major'
8960  shlibpath_var=LD_LIBRARY_PATH
8961  shlibpath_overrides_runpath=no
8962  hardcode_into_libs=yes
8963  dynamic_linker='GNU ld.so'
8964  ;;
8965
8966freebsd* | dragonfly*)
8967  # DragonFly does not have aout.  When/if they implement a new
8968  # versioning mechanism, adjust this.
8969  if test -x /usr/bin/objformat; then
8970    objformat=`/usr/bin/objformat`
8971  else
8972    case $host_os in
8973    freebsd[123].*) objformat=aout ;;
8974    *) objformat=elf ;;
8975    esac
8976  fi
8977  version_type=freebsd-$objformat
8978  case $version_type in
8979    freebsd-elf*)
8980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8981      need_version=no
8982      need_lib_prefix=no
8983      ;;
8984    freebsd-*)
8985      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8986      need_version=yes
8987      ;;
8988  esac
8989  shlibpath_var=LD_LIBRARY_PATH
8990  case $host_os in
8991  freebsd2.*)
8992    shlibpath_overrides_runpath=yes
8993    ;;
8994  freebsd3.[01]* | freebsdelf3.[01]*)
8995    shlibpath_overrides_runpath=yes
8996    hardcode_into_libs=yes
8997    ;;
8998  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8999  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9000    shlibpath_overrides_runpath=no
9001    hardcode_into_libs=yes
9002    ;;
9003  freebsd*) # from 4.6 on
9004    shlibpath_overrides_runpath=yes
9005    hardcode_into_libs=yes
9006    ;;
9007  esac
9008  ;;
9009
9010gnu*)
9011  version_type=linux
9012  need_lib_prefix=no
9013  need_version=no
9014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9015  soname_spec='${libname}${release}${shared_ext}$major'
9016  shlibpath_var=LD_LIBRARY_PATH
9017  hardcode_into_libs=yes
9018  ;;
9019
9020hpux9* | hpux10* | hpux11*)
9021  # Give a soname corresponding to the major version so that dld.sl refuses to
9022  # link against other versions.
9023  version_type=sunos
9024  need_lib_prefix=no
9025  need_version=no
9026  case $host_cpu in
9027  ia64*)
9028    shrext_cmds='.so'
9029    hardcode_into_libs=yes
9030    dynamic_linker="$host_os dld.so"
9031    shlibpath_var=LD_LIBRARY_PATH
9032    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034    soname_spec='${libname}${release}${shared_ext}$major'
9035    if test "X$HPUX_IA64_MODE" = X32; then
9036      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9037    else
9038      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9039    fi
9040    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041    ;;
9042   hppa*64*)
9043     shrext_cmds='.sl'
9044     hardcode_into_libs=yes
9045     dynamic_linker="$host_os dld.sl"
9046     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049     soname_spec='${libname}${release}${shared_ext}$major'
9050     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9052     ;;
9053   *)
9054    shrext_cmds='.sl'
9055    dynamic_linker="$host_os dld.sl"
9056    shlibpath_var=SHLIB_PATH
9057    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059    soname_spec='${libname}${release}${shared_ext}$major'
9060    ;;
9061  esac
9062  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9063  postinstall_cmds='chmod 555 $lib'
9064  ;;
9065
9066interix3*)
9067  version_type=linux
9068  need_lib_prefix=no
9069  need_version=no
9070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071  soname_spec='${libname}${release}${shared_ext}$major'
9072  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9073  shlibpath_var=LD_LIBRARY_PATH
9074  shlibpath_overrides_runpath=no
9075  hardcode_into_libs=yes
9076  ;;
9077
9078irix5* | irix6* | nonstopux*)
9079  case $host_os in
9080    nonstopux*) version_type=nonstopux ;;
9081    *)
9082	if test "$lt_cv_prog_gnu_ld" = yes; then
9083		version_type=linux
9084	else
9085		version_type=irix
9086	fi ;;
9087  esac
9088  need_lib_prefix=no
9089  need_version=no
9090  soname_spec='${libname}${release}${shared_ext}$major'
9091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9092  case $host_os in
9093  irix5* | nonstopux*)
9094    libsuff= shlibsuff=
9095    ;;
9096  *)
9097    case $LD in # libtool.m4 will add one of these switches to LD
9098    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9099      libsuff= shlibsuff= libmagic=32-bit;;
9100    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9101      libsuff=32 shlibsuff=N32 libmagic=N32;;
9102    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9103      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9104    *) libsuff= shlibsuff= libmagic=never-match;;
9105    esac
9106    ;;
9107  esac
9108  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9109  shlibpath_overrides_runpath=no
9110  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9111  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9112  hardcode_into_libs=yes
9113  ;;
9114
9115# No shared lib support for Linux oldld, aout, or coff.
9116linux*oldld* | linux*aout* | linux*coff*)
9117  dynamic_linker=no
9118  ;;
9119
9120# This must be Linux ELF.
9121linux*)
9122  version_type=linux
9123  need_lib_prefix=no
9124  need_version=no
9125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126  soname_spec='${libname}${release}${shared_ext}$major'
9127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9128  shlibpath_var=LD_LIBRARY_PATH
9129  shlibpath_overrides_runpath=no
9130  # This implies no fast_install, which is unacceptable.
9131  # Some rework will be needed to allow for fast_install
9132  # before this can be enabled.
9133  hardcode_into_libs=yes
9134
9135  # Append ld.so.conf contents to the search path
9136  if test -f /etc/ld.so.conf; then
9137    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' ' '`
9138    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9139  fi
9140
9141  # We used to test for /lib/ld.so.1 and disable shared libraries on
9142  # powerpc, because MkLinux only supported shared libraries with the
9143  # GNU dynamic linker.  Since this was broken with cross compilers,
9144  # most powerpc-linux boxes support dynamic linking these days and
9145  # people can always --disable-shared, the test was removed, and we
9146  # assume the GNU/Linux dynamic linker is in use.
9147  dynamic_linker='GNU/Linux ld.so'
9148  ;;
9149
9150knetbsd*-gnu)
9151  version_type=linux
9152  need_lib_prefix=no
9153  need_version=no
9154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155  soname_spec='${libname}${release}${shared_ext}$major'
9156  shlibpath_var=LD_LIBRARY_PATH
9157  shlibpath_overrides_runpath=no
9158  hardcode_into_libs=yes
9159  dynamic_linker='GNU ld.so'
9160  ;;
9161
9162netbsd*)
9163  version_type=sunos
9164  need_lib_prefix=no
9165  need_version=no
9166  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169    dynamic_linker='NetBSD (a.out) ld.so'
9170  else
9171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172    soname_spec='${libname}${release}${shared_ext}$major'
9173    dynamic_linker='NetBSD ld.elf_so'
9174  fi
9175  shlibpath_var=LD_LIBRARY_PATH
9176  shlibpath_overrides_runpath=yes
9177  hardcode_into_libs=yes
9178  ;;
9179
9180newsos6)
9181  version_type=linux
9182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183  shlibpath_var=LD_LIBRARY_PATH
9184  shlibpath_overrides_runpath=yes
9185  ;;
9186
9187nto-qnx*)
9188  version_type=linux
9189  need_lib_prefix=no
9190  need_version=no
9191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192  soname_spec='${libname}${release}${shared_ext}$major'
9193  shlibpath_var=LD_LIBRARY_PATH
9194  shlibpath_overrides_runpath=yes
9195  ;;
9196
9197openbsd*)
9198  version_type=sunos
9199  sys_lib_dlsearch_path_spec="/usr/lib"
9200  need_lib_prefix=no
9201  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9202  case $host_os in
9203    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9204    *)                         need_version=no  ;;
9205  esac
9206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208  shlibpath_var=LD_LIBRARY_PATH
9209  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9210    case $host_os in
9211      openbsd2.[89] | openbsd2.[89].*)
9212	shlibpath_overrides_runpath=no
9213	;;
9214      *)
9215	shlibpath_overrides_runpath=yes
9216	;;
9217      esac
9218  else
9219    shlibpath_overrides_runpath=yes
9220  fi
9221  ;;
9222
9223os2*)
9224  libname_spec='$name'
9225  shrext_cmds=".dll"
9226  need_lib_prefix=no
9227  library_names_spec='$libname${shared_ext} $libname.a'
9228  dynamic_linker='OS/2 ld.exe'
9229  shlibpath_var=LIBPATH
9230  ;;
9231
9232osf3* | osf4* | osf5*)
9233  version_type=osf
9234  need_lib_prefix=no
9235  need_version=no
9236  soname_spec='${libname}${release}${shared_ext}$major'
9237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238  shlibpath_var=LD_LIBRARY_PATH
9239  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9240  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9241  ;;
9242
9243solaris*)
9244  version_type=linux
9245  need_lib_prefix=no
9246  need_version=no
9247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248  soname_spec='${libname}${release}${shared_ext}$major'
9249  shlibpath_var=LD_LIBRARY_PATH
9250  shlibpath_overrides_runpath=yes
9251  hardcode_into_libs=yes
9252  # ldd complains unless libraries are executable
9253  postinstall_cmds='chmod +x $lib'
9254  ;;
9255
9256sunos4*)
9257  version_type=sunos
9258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9260  shlibpath_var=LD_LIBRARY_PATH
9261  shlibpath_overrides_runpath=yes
9262  if test "$with_gnu_ld" = yes; then
9263    need_lib_prefix=no
9264  fi
9265  need_version=yes
9266  ;;
9267
9268sysv4 | sysv4.3*)
9269  version_type=linux
9270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271  soname_spec='${libname}${release}${shared_ext}$major'
9272  shlibpath_var=LD_LIBRARY_PATH
9273  case $host_vendor in
9274    sni)
9275      shlibpath_overrides_runpath=no
9276      need_lib_prefix=no
9277      export_dynamic_flag_spec='${wl}-Blargedynsym'
9278      runpath_var=LD_RUN_PATH
9279      ;;
9280    siemens)
9281      need_lib_prefix=no
9282      ;;
9283    motorola)
9284      need_lib_prefix=no
9285      need_version=no
9286      shlibpath_overrides_runpath=no
9287      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288      ;;
9289  esac
9290  ;;
9291
9292sysv4*MP*)
9293  if test -d /usr/nec ;then
9294    version_type=linux
9295    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9296    soname_spec='$libname${shared_ext}.$major'
9297    shlibpath_var=LD_LIBRARY_PATH
9298  fi
9299  ;;
9300
9301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9302  version_type=freebsd-elf
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306  soname_spec='${libname}${release}${shared_ext}$major'
9307  shlibpath_var=LD_LIBRARY_PATH
9308  hardcode_into_libs=yes
9309  if test "$with_gnu_ld" = yes; then
9310    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9311    shlibpath_overrides_runpath=no
9312  else
9313    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9314    shlibpath_overrides_runpath=yes
9315    case $host_os in
9316      sco3.2v5*)
9317        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9318	;;
9319    esac
9320  fi
9321  sys_lib_dlsearch_path_spec='/usr/lib'
9322  ;;
9323
9324uts4*)
9325  version_type=linux
9326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327  soname_spec='${libname}${release}${shared_ext}$major'
9328  shlibpath_var=LD_LIBRARY_PATH
9329  ;;
9330
9331*)
9332  dynamic_linker=no
9333  ;;
9334esac
9335{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9336echo "${ECHO_T}$dynamic_linker" >&6; }
9337test "$dynamic_linker" = no && can_build_shared=no
9338
9339variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9340if test "$GCC" = yes; then
9341  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9342fi
9343
9344
9345{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9346echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9347if test "${libltdl_cv_shlibext+set}" = set; then
9348  echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350
9351module=yes
9352eval libltdl_cv_shlibext=$shrext_cmds
9353
9354fi
9355{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9356echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9357if test -n "$libltdl_cv_shlibext"; then
9358
9359cat >>confdefs.h <<_ACEOF
9360#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361_ACEOF
9362
9363fi
9364
9365
9366{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9367echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9368if test "${libltdl_cv_shlibpath_var+set}" = set; then
9369  echo $ECHO_N "(cached) $ECHO_C" >&6
9370else
9371  libltdl_cv_shlibpath_var="$shlibpath_var"
9372fi
9373{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9374echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9375if test -n "$libltdl_cv_shlibpath_var"; then
9376
9377cat >>confdefs.h <<_ACEOF
9378#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379_ACEOF
9380
9381fi
9382
9383
9384{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9385echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9386if test "${libltdl_cv_sys_search_path+set}" = set; then
9387  echo $ECHO_N "(cached) $ECHO_C" >&6
9388else
9389  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9390fi
9391{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9392echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9393if test -n "$libltdl_cv_sys_search_path"; then
9394  sys_search_path=
9395  for dir in $libltdl_cv_sys_search_path; do
9396    if test -z "$sys_search_path"; then
9397      sys_search_path="$dir"
9398    else
9399      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9400    fi
9401  done
9402
9403cat >>confdefs.h <<_ACEOF
9404#define LTDL_SYSSEARCHPATH "$sys_search_path"
9405_ACEOF
9406
9407fi
9408
9409{ echo "$as_me:$LINENO: checking for objdir" >&5
9410echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9411if test "${libltdl_cv_objdir+set}" = set; then
9412  echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414  libltdl_cv_objdir="$objdir"
9415  if test -n "$objdir"; then
9416    :
9417  else
9418    rm -f .libs 2>/dev/null
9419    mkdir .libs 2>/dev/null
9420    if test -d .libs; then
9421      libltdl_cv_objdir=.libs
9422    else
9423      # MS-DOS does not allow filenames that begin with a dot.
9424      libltdl_cv_objdir=_libs
9425    fi
9426  rmdir .libs 2>/dev/null
9427  fi
9428
9429fi
9430{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9431echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9432
9433cat >>confdefs.h <<_ACEOF
9434#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9435_ACEOF
9436
9437
9438
9439
9440
9441
9442# Check for command to grab the raw symbol name followed by C symbol from nm.
9443{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9444echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9445if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9446  echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448
9449# These are sane defaults that work on at least a few old systems.
9450# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9451
9452# Character class describing NM global symbol codes.
9453symcode='[BCDEGRST]'
9454
9455# Regexp to match symbols that can be accessed directly from C.
9456sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9457
9458# Transform an extracted symbol line into a proper C declaration
9459lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9460
9461# Transform an extracted symbol line into symbol name and symbol address
9462lt_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'"
9463
9464# Define system-specific variables.
9465case $host_os in
9466aix*)
9467  symcode='[BCDT]'
9468  ;;
9469cygwin* | mingw* | pw32*)
9470  symcode='[ABCDGISTW]'
9471  ;;
9472hpux*) # Its linker distinguishes data from code symbols
9473  if test "$host_cpu" = ia64; then
9474    symcode='[ABCDEGRST]'
9475  fi
9476  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9477  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'"
9478  ;;
9479linux*)
9480  if test "$host_cpu" = ia64; then
9481    symcode='[ABCDGIRSTW]'
9482    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9483    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'"
9484  fi
9485  ;;
9486irix* | nonstopux*)
9487  symcode='[BCDEGRST]'
9488  ;;
9489osf*)
9490  symcode='[BCDEGQRST]'
9491  ;;
9492solaris*)
9493  symcode='[BDRT]'
9494  ;;
9495sco3.2v5*)
9496  symcode='[DT]'
9497  ;;
9498sysv4.2uw2*)
9499  symcode='[DT]'
9500  ;;
9501sysv5* | sco5v6* | unixware* | OpenUNIX*)
9502  symcode='[ABDT]'
9503  ;;
9504sysv4)
9505  symcode='[DFNSTU]'
9506  ;;
9507esac
9508
9509# Handle CRLF in mingw tool chain
9510opt_cr=
9511case $build_os in
9512mingw*)
9513  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9514  ;;
9515esac
9516
9517# If we're using GNU nm, then use its standard symbol codes.
9518case `$NM -V 2>&1` in
9519*GNU* | *'with BFD'*)
9520  symcode='[ABCDGIRSTW]' ;;
9521esac
9522
9523# Try without a prefix undercore, then with it.
9524for ac_symprfx in "" "_"; do
9525
9526  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9527  symxfrm="\\1 $ac_symprfx\\2 \\2"
9528
9529  # Write the raw and C identifiers.
9530  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9531
9532  # Check to see that the pipe works correctly.
9533  pipe_works=no
9534
9535  rm -f conftest*
9536  cat > conftest.$ac_ext <<EOF
9537#ifdef __cplusplus
9538extern "C" {
9539#endif
9540char nm_test_var;
9541void nm_test_func(){}
9542#ifdef __cplusplus
9543}
9544#endif
9545int main(){nm_test_var='a';nm_test_func();return(0);}
9546EOF
9547
9548  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549  (eval $ac_compile) 2>&5
9550  ac_status=$?
9551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552  (exit $ac_status); }; then
9553    # Now try to grab the symbols.
9554    nlist=conftest.nm
9555    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9556  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9557  ac_status=$?
9558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559  (exit $ac_status); } && test -s "$nlist"; then
9560      # Try sorting and uniquifying the output.
9561      if sort "$nlist" | uniq > "$nlist"T; then
9562	mv -f "$nlist"T "$nlist"
9563      else
9564	rm -f "$nlist"T
9565      fi
9566
9567      # Make sure that we snagged all the symbols we need.
9568      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9569	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9570	  cat <<EOF > conftest.$ac_ext
9571#ifdef __cplusplus
9572extern "C" {
9573#endif
9574
9575EOF
9576	  # Now generate the symbol file.
9577	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9578
9579	  cat <<EOF >> conftest.$ac_ext
9580#if defined (__STDC__) && __STDC__
9581# define lt_ptr_t void *
9582#else
9583# define lt_ptr_t char *
9584# define const
9585#endif
9586
9587/* The mapping between symbol names and symbols. */
9588const struct {
9589  const char *name;
9590  lt_ptr_t address;
9591}
9592lt_preloaded_symbols[] =
9593{
9594EOF
9595	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9596	  cat <<\EOF >> conftest.$ac_ext
9597  {0, (lt_ptr_t) 0}
9598};
9599
9600#ifdef __cplusplus
9601}
9602#endif
9603EOF
9604	  # Now try linking the two files.
9605	  mv conftest.$ac_objext conftstm.$ac_objext
9606	  lt_save_LIBS="$LIBS"
9607	  lt_save_CFLAGS="$CFLAGS"
9608	  LIBS="conftstm.$ac_objext"
9609	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9610	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611  (eval $ac_link) 2>&5
9612  ac_status=$?
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9615	    pipe_works=yes
9616	  fi
9617	  LIBS="$lt_save_LIBS"
9618	  CFLAGS="$lt_save_CFLAGS"
9619	else
9620	  echo "cannot find nm_test_func in $nlist" >&5
9621	fi
9622      else
9623	echo "cannot find nm_test_var in $nlist" >&5
9624      fi
9625    else
9626      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9627    fi
9628  else
9629    echo "$progname: failed program was:" >&5
9630    cat conftest.$ac_ext >&5
9631  fi
9632  rm -f conftest* conftst*
9633
9634  # Do not use the global_symbol_pipe unless it works.
9635  if test "$pipe_works" = yes; then
9636    break
9637  else
9638    lt_cv_sys_global_symbol_pipe=
9639  fi
9640done
9641
9642fi
9643
9644if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645  lt_cv_sys_global_symbol_to_cdecl=
9646fi
9647if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9648  { echo "$as_me:$LINENO: result: failed" >&5
9649echo "${ECHO_T}failed" >&6; }
9650else
9651  { echo "$as_me:$LINENO: result: ok" >&5
9652echo "${ECHO_T}ok" >&6; }
9653fi
9654
9655
9656{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9657echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9658if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9659  echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9662    libltdl_cv_preloaded_symbols=yes
9663  else
9664    libltdl_cv_preloaded_symbols=no
9665  fi
9666
9667fi
9668{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9669echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9670if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9671
9672cat >>confdefs.h <<\_ACEOF
9673#define HAVE_PRELOADED_SYMBOLS 1
9674_ACEOF
9675
9676fi
9677
9678LIBADD_DL=
9679
9680ac_ext=c
9681ac_cpp='$CPP $CPPFLAGS'
9682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686
9687{ echo "$as_me:$LINENO: checking for shl_load" >&5
9688echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9689if test "${ac_cv_func_shl_load+set}" = set; then
9690  echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692  cat >conftest.$ac_ext <<_ACEOF
9693/* confdefs.h.  */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h.  */
9698/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9699   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9700#define shl_load innocuous_shl_load
9701
9702/* System header to define __stub macros and hopefully few prototypes,
9703    which can conflict with char shl_load (); below.
9704    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9705    <limits.h> exists even on freestanding compilers.  */
9706
9707#ifdef __STDC__
9708# include <limits.h>
9709#else
9710# include <assert.h>
9711#endif
9712
9713#undef shl_load
9714
9715/* Override any GCC internal prototype to avoid an error.
9716   Use char because int might match the return type of a GCC
9717   builtin and then its argument prototype would still apply.  */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721char shl_load ();
9722/* The GNU C library defines this for functions which it implements
9723    to always fail with ENOSYS.  Some functions are actually named
9724    something starting with __ and the normal name is an alias.  */
9725#if defined __stub_shl_load || defined __stub___shl_load
9726choke me
9727#endif
9728
9729int
9730main ()
9731{
9732return shl_load ();
9733  ;
9734  return 0;
9735}
9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
9738if { (ac_try="$ac_link"
9739case "(($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_link") 2>conftest.er1
9745  ac_status=$?
9746  grep -v '^ *+' conftest.er1 >conftest.err
9747  rm -f conftest.er1
9748  cat conftest.err >&5
9749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750  (exit $ac_status); } &&
9751	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752  { (case "(($ac_try" in
9753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754  *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757  (eval "$ac_try") 2>&5
9758  ac_status=$?
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); }; } &&
9761	 { ac_try='test -s conftest$ac_exeext'
9762  { (case "(($ac_try" in
9763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764  *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767  (eval "$ac_try") 2>&5
9768  ac_status=$?
9769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770  (exit $ac_status); }; }; then
9771  ac_cv_func_shl_load=yes
9772else
9773  echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776	ac_cv_func_shl_load=no
9777fi
9778
9779rm -f core conftest.err conftest.$ac_objext \
9780      conftest$ac_exeext conftest.$ac_ext
9781fi
9782{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784if test $ac_cv_func_shl_load = yes; then
9785
9786cat >>confdefs.h <<\_ACEOF
9787#define HAVE_SHL_LOAD 1
9788_ACEOF
9789
9790else
9791  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9792echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9793if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9794  echo $ECHO_N "(cached) $ECHO_C" >&6
9795else
9796  ac_check_lib_save_LIBS=$LIBS
9797LIBS="-ldld  $LIBS"
9798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h.  */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h.  */
9804
9805/* Override any GCC internal prototype to avoid an error.
9806   Use char because int might match the return type of a GCC
9807   builtin and then its argument prototype would still apply.  */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811char shl_load ();
9812int
9813main ()
9814{
9815return shl_load ();
9816  ;
9817  return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (ac_try="$ac_link"
9822case "(($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_link") 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } &&
9834	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835  { (case "(($ac_try" in
9836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837  *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840  (eval "$ac_try") 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; } &&
9844	 { ac_try='test -s conftest$ac_exeext'
9845  { (case "(($ac_try" in
9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847  *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850  (eval "$ac_try") 2>&5
9851  ac_status=$?
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }; }; then
9854  ac_cv_lib_dld_shl_load=yes
9855else
9856  echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859	ac_cv_lib_dld_shl_load=no
9860fi
9861
9862rm -f core conftest.err conftest.$ac_objext \
9863      conftest$ac_exeext conftest.$ac_ext
9864LIBS=$ac_check_lib_save_LIBS
9865fi
9866{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9867echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9868if test $ac_cv_lib_dld_shl_load = yes; then
9869
9870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_SHL_LOAD 1
9872_ACEOF
9873
9874	LIBADD_DL="$LIBADD_DL -ldld"
9875else
9876  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9879  echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881  ac_check_lib_save_LIBS=$LIBS
9882LIBS="-ldl  $LIBS"
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h.  */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h.  */
9889
9890/* Override any GCC internal prototype to avoid an error.
9891   Use char because int might match the return type of a GCC
9892   builtin and then its argument prototype would still apply.  */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896char dlopen ();
9897int
9898main ()
9899{
9900return dlopen ();
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (ac_try="$ac_link"
9907case "(($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_link") 2>conftest.er1
9913  ac_status=$?
9914  grep -v '^ *+' conftest.er1 >conftest.err
9915  rm -f conftest.er1
9916  cat conftest.err >&5
9917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918  (exit $ac_status); } &&
9919	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9920  { (case "(($ac_try" in
9921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922  *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925  (eval "$ac_try") 2>&5
9926  ac_status=$?
9927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928  (exit $ac_status); }; } &&
9929	 { ac_try='test -s conftest$ac_exeext'
9930  { (case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935  (eval "$ac_try") 2>&5
9936  ac_status=$?
9937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); }; }; then
9939  ac_cv_lib_dl_dlopen=yes
9940else
9941  echo "$as_me: failed program was:" >&5
9942sed 's/^/| /' conftest.$ac_ext >&5
9943
9944	ac_cv_lib_dl_dlopen=no
9945fi
9946
9947rm -f core conftest.err conftest.$ac_objext \
9948      conftest$ac_exeext conftest.$ac_ext
9949LIBS=$ac_check_lib_save_LIBS
9950fi
9951{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9952echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9953if test $ac_cv_lib_dl_dlopen = yes; then
9954
9955cat >>confdefs.h <<\_ACEOF
9956#define HAVE_LIBDL 1
9957_ACEOF
9958
9959	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9960else
9961  cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967#if HAVE_DLFCN_H
9968#  include <dlfcn.h>
9969#endif
9970
9971int
9972main ()
9973{
9974dlopen(0, 0);
9975  ;
9976  return 0;
9977}
9978_ACEOF
9979rm -f conftest.$ac_objext conftest$ac_exeext
9980if { (ac_try="$ac_link"
9981case "(($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_link") 2>conftest.er1
9987  ac_status=$?
9988  grep -v '^ *+' conftest.er1 >conftest.err
9989  rm -f conftest.er1
9990  cat conftest.err >&5
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); } &&
9993	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994  { (case "(($ac_try" in
9995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996  *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999  (eval "$ac_try") 2>&5
10000  ac_status=$?
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); }; } &&
10003	 { ac_try='test -s conftest$ac_exeext'
10004  { (case "(($ac_try" in
10005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006  *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009  (eval "$ac_try") 2>&5
10010  ac_status=$?
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); }; }; then
10013
10014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_LIBDL 1
10016_ACEOF
10017 libltdl_cv_func_dlopen="yes"
10018else
10019  echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025  echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027  ac_check_lib_save_LIBS=$LIBS
10028LIBS="-lsvld  $LIBS"
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h.  */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h.  */
10035
10036/* Override any GCC internal prototype to avoid an error.
10037   Use char because int might match the return type of a GCC
10038   builtin and then its argument prototype would still apply.  */
10039#ifdef __cplusplus
10040extern "C"
10041#endif
10042char dlopen ();
10043int
10044main ()
10045{
10046return dlopen ();
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($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_link") 2>conftest.er1
10059  ac_status=$?
10060  grep -v '^ *+' conftest.er1 >conftest.err
10061  rm -f conftest.er1
10062  cat conftest.err >&5
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); } &&
10065	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066  { (case "(($ac_try" in
10067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068  *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071  (eval "$ac_try") 2>&5
10072  ac_status=$?
10073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); }; } &&
10075	 { ac_try='test -s conftest$ac_exeext'
10076  { (case "(($ac_try" in
10077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078  *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081  (eval "$ac_try") 2>&5
10082  ac_status=$?
10083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084  (exit $ac_status); }; }; then
10085  ac_cv_lib_svld_dlopen=yes
10086else
10087  echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090	ac_cv_lib_svld_dlopen=no
10091fi
10092
10093rm -f core conftest.err conftest.$ac_objext \
10094      conftest$ac_exeext conftest.$ac_ext
10095LIBS=$ac_check_lib_save_LIBS
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10098echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10099if test $ac_cv_lib_svld_dlopen = yes; then
10100
10101cat >>confdefs.h <<\_ACEOF
10102#define HAVE_LIBDL 1
10103_ACEOF
10104
10105	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10106else
10107  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110  echo $ECHO_N "(cached) $ECHO_C" >&6
10111else
10112  ac_check_lib_save_LIBS=$LIBS
10113LIBS="-ldld  $LIBS"
10114cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h.  */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
10119/* end confdefs.h.  */
10120
10121/* Override any GCC internal prototype to avoid an error.
10122   Use char because int might match the return type of a GCC
10123   builtin and then its argument prototype would still apply.  */
10124#ifdef __cplusplus
10125extern "C"
10126#endif
10127char dld_link ();
10128int
10129main ()
10130{
10131return dld_link ();
10132  ;
10133  return 0;
10134}
10135_ACEOF
10136rm -f conftest.$ac_objext conftest$ac_exeext
10137if { (ac_try="$ac_link"
10138case "(($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_link") 2>conftest.er1
10144  ac_status=$?
10145  grep -v '^ *+' conftest.er1 >conftest.err
10146  rm -f conftest.er1
10147  cat conftest.err >&5
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); } &&
10150	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10151  { (case "(($ac_try" in
10152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153  *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156  (eval "$ac_try") 2>&5
10157  ac_status=$?
10158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159  (exit $ac_status); }; } &&
10160	 { ac_try='test -s conftest$ac_exeext'
10161  { (case "(($ac_try" in
10162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163  *) ac_try_echo=$ac_try;;
10164esac
10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166  (eval "$ac_try") 2>&5
10167  ac_status=$?
10168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169  (exit $ac_status); }; }; then
10170  ac_cv_lib_dld_dld_link=yes
10171else
10172  echo "$as_me: failed program was:" >&5
10173sed 's/^/| /' conftest.$ac_ext >&5
10174
10175	ac_cv_lib_dld_dld_link=no
10176fi
10177
10178rm -f core conftest.err conftest.$ac_objext \
10179      conftest$ac_exeext conftest.$ac_ext
10180LIBS=$ac_check_lib_save_LIBS
10181fi
10182{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10183echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10184if test $ac_cv_lib_dld_dld_link = yes; then
10185
10186cat >>confdefs.h <<\_ACEOF
10187#define HAVE_DLD 1
10188_ACEOF
10189
10190	 	LIBADD_DL="$LIBADD_DL -ldld"
10191else
10192  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10193echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10194if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10195  echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197  cat >conftest.$ac_ext <<_ACEOF
10198/* confdefs.h.  */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h.  */
10203/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10204   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10205#define _dyld_func_lookup innocuous__dyld_func_lookup
10206
10207/* System header to define __stub macros and hopefully few prototypes,
10208    which can conflict with char _dyld_func_lookup (); below.
10209    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210    <limits.h> exists even on freestanding compilers.  */
10211
10212#ifdef __STDC__
10213# include <limits.h>
10214#else
10215# include <assert.h>
10216#endif
10217
10218#undef _dyld_func_lookup
10219
10220/* Override any GCC internal prototype to avoid an error.
10221   Use char because int might match the return type of a GCC
10222   builtin and then its argument prototype would still apply.  */
10223#ifdef __cplusplus
10224extern "C"
10225#endif
10226char _dyld_func_lookup ();
10227/* The GNU C library defines this for functions which it implements
10228    to always fail with ENOSYS.  Some functions are actually named
10229    something starting with __ and the normal name is an alias.  */
10230#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10231choke me
10232#endif
10233
10234int
10235main ()
10236{
10237return _dyld_func_lookup ();
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (ac_try="$ac_link"
10244case "(($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_link") 2>conftest.er1
10250  ac_status=$?
10251  grep -v '^ *+' conftest.er1 >conftest.err
10252  rm -f conftest.er1
10253  cat conftest.err >&5
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); } &&
10256	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257  { (case "(($ac_try" in
10258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259  *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262  (eval "$ac_try") 2>&5
10263  ac_status=$?
10264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265  (exit $ac_status); }; } &&
10266	 { ac_try='test -s conftest$ac_exeext'
10267  { (case "(($ac_try" in
10268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269  *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272  (eval "$ac_try") 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; }; then
10276  ac_cv_func__dyld_func_lookup=yes
10277else
10278  echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
10281	ac_cv_func__dyld_func_lookup=no
10282fi
10283
10284rm -f core conftest.err conftest.$ac_objext \
10285      conftest$ac_exeext conftest.$ac_ext
10286fi
10287{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10288echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10289if test $ac_cv_func__dyld_func_lookup = yes; then
10290
10291cat >>confdefs.h <<\_ACEOF
10292#define HAVE_DYLD 1
10293_ACEOF
10294
10295fi
10296
10297
10298fi
10299
10300
10301fi
10302
10303
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext \
10307      conftest$ac_exeext conftest.$ac_ext
10308
10309fi
10310
10311
10312fi
10313
10314
10315fi
10316
10317
10318if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10319then
10320  lt_save_LIBS="$LIBS"
10321  LIBS="$LIBS $LIBADD_DL"
10322
10323for ac_func in dlerror
10324do
10325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10329  echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331  cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h.  */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h.  */
10337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10339#define $ac_func innocuous_$ac_func
10340
10341/* System header to define __stub macros and hopefully few prototypes,
10342    which can conflict with char $ac_func (); below.
10343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344    <limits.h> exists even on freestanding compilers.  */
10345
10346#ifdef __STDC__
10347# include <limits.h>
10348#else
10349# include <assert.h>
10350#endif
10351
10352#undef $ac_func
10353
10354/* Override any GCC internal prototype to avoid an error.
10355   Use char because int might match the return type of a GCC
10356   builtin and then its argument prototype would still apply.  */
10357#ifdef __cplusplus
10358extern "C"
10359#endif
10360char $ac_func ();
10361/* The GNU C library defines this for functions which it implements
10362    to always fail with ENOSYS.  Some functions are actually named
10363    something starting with __ and the normal name is an alias.  */
10364#if defined __stub_$ac_func || defined __stub___$ac_func
10365choke me
10366#endif
10367
10368int
10369main ()
10370{
10371return $ac_func ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (ac_try="$ac_link"
10378case "(($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_link") 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } &&
10390	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391  { (case "(($ac_try" in
10392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393  *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396  (eval "$ac_try") 2>&5
10397  ac_status=$?
10398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399  (exit $ac_status); }; } &&
10400	 { ac_try='test -s conftest$ac_exeext'
10401  { (case "(($ac_try" in
10402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403  *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406  (eval "$ac_try") 2>&5
10407  ac_status=$?
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); }; }; then
10410  eval "$as_ac_var=yes"
10411else
10412  echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415	eval "$as_ac_var=no"
10416fi
10417
10418rm -f core conftest.err conftest.$ac_objext \
10419      conftest$ac_exeext conftest.$ac_ext
10420fi
10421ac_res=`eval echo '${'$as_ac_var'}'`
10422	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10423echo "${ECHO_T}$ac_res" >&6; }
10424if test `eval echo '${'$as_ac_var'}'` = yes; then
10425  cat >>confdefs.h <<_ACEOF
10426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427_ACEOF
10428
10429fi
10430done
10431
10432  LIBS="$lt_save_LIBS"
10433fi
10434ac_ext=c
10435ac_cpp='$CPP $CPPFLAGS'
10436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439
10440
10441
10442{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10443echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10444if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10445  echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447  ac_cv_sys_symbol_underscore=no
10448  cat > conftest.$ac_ext <<EOF
10449void nm_test_func(){}
10450int main(){nm_test_func;return 0;}
10451EOF
10452  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453  (eval $ac_compile) 2>&5
10454  ac_status=$?
10455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456  (exit $ac_status); }; then
10457    # Now try to grab the symbols.
10458    ac_nlist=conftest.nm
10459    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10460  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10461  ac_status=$?
10462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463  (exit $ac_status); } && test -s "$ac_nlist"; then
10464      # See whether the symbols have a leading underscore.
10465      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10466        ac_cv_sys_symbol_underscore=yes
10467      else
10468        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10469	  :
10470        else
10471	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10472        fi
10473      fi
10474    else
10475      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10476    fi
10477  else
10478    echo "configure: failed program was:" >&5
10479    cat conftest.c >&5
10480  fi
10481  rm -rf conftest*
10482
10483fi
10484{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10485echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10486
10487
10488if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10489  if test x"$libltdl_cv_func_dlopen" = xyes ||
10490     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10491	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10492echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10493if test "${libltdl_cv_need_uscore+set}" = set; then
10494  echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496  libltdl_cv_need_uscore=unknown
10497          save_LIBS="$LIBS"
10498          LIBS="$LIBS $LIBADD_DL"
10499	  if test "$cross_compiling" = yes; then :
10500  libltdl_cv_need_uscore=cross
10501else
10502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10503  lt_status=$lt_dlunknown
10504  cat > conftest.$ac_ext <<EOF
10505#line 10505 "configure"
10506#include "confdefs.h"
10507
10508#if HAVE_DLFCN_H
10509#include <dlfcn.h>
10510#endif
10511
10512#include <stdio.h>
10513
10514#ifdef RTLD_GLOBAL
10515#  define LT_DLGLOBAL		RTLD_GLOBAL
10516#else
10517#  ifdef DL_GLOBAL
10518#    define LT_DLGLOBAL		DL_GLOBAL
10519#  else
10520#    define LT_DLGLOBAL		0
10521#  endif
10522#endif
10523
10524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10525   find out it does not work in some platform. */
10526#ifndef LT_DLLAZY_OR_NOW
10527#  ifdef RTLD_LAZY
10528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10529#  else
10530#    ifdef DL_LAZY
10531#      define LT_DLLAZY_OR_NOW		DL_LAZY
10532#    else
10533#      ifdef RTLD_NOW
10534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10535#      else
10536#        ifdef DL_NOW
10537#          define LT_DLLAZY_OR_NOW	DL_NOW
10538#        else
10539#          define LT_DLLAZY_OR_NOW	0
10540#        endif
10541#      endif
10542#    endif
10543#  endif
10544#endif
10545
10546#ifdef __cplusplus
10547extern "C" void exit (int);
10548#endif
10549
10550void fnord() { int i=42;}
10551int main ()
10552{
10553  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10554  int status = $lt_dlunknown;
10555
10556  if (self)
10557    {
10558      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10559      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10560      /* dlclose (self); */
10561    }
10562  else
10563    puts (dlerror ());
10564
10565    exit (status);
10566}
10567EOF
10568  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569  (eval $ac_link) 2>&5
10570  ac_status=$?
10571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10573    (./conftest; exit; ) >&5 2>/dev/null
10574    lt_status=$?
10575    case x$lt_status in
10576      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10577      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10578      x$lt_dlunknown|x*)  ;;
10579    esac
10580  else :
10581    # compilation failed
10582
10583  fi
10584fi
10585rm -fr conftest*
10586
10587	  LIBS="$save_LIBS"
10588
10589fi
10590{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10591echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10592  fi
10593fi
10594
10595if test x"$libltdl_cv_need_uscore" = xyes; then
10596
10597cat >>confdefs.h <<\_ACEOF
10598#define NEED_USCORE 1
10599_ACEOF
10600
10601fi
10602
10603
10604{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10605echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10606if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10607  echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
10609  # PORTME does your system automatically load deplibs for dlopen?
10610  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10611  # For now, we just catch OSes we know something about -- in the
10612  # future, we'll try test this programmatically.
10613  libltdl_cv_sys_dlopen_deplibs=unknown
10614  case "$host_os" in
10615  aix3*|aix4.1.*|aix4.2.*)
10616    # Unknown whether this is true for these versions of AIX, but
10617    # we want this `case' here to explicitly catch those versions.
10618    libltdl_cv_sys_dlopen_deplibs=unknown
10619    ;;
10620  aix[45]*)
10621    libltdl_cv_sys_dlopen_deplibs=yes
10622    ;;
10623  darwin*)
10624    # Assuming the user has installed a libdl from somewhere, this is true
10625    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10626    libltdl_cv_sys_dlopen_deplibs=yes
10627    ;;
10628  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10629    # GNU and its variants, using gnu ld.so (Glibc)
10630    libltdl_cv_sys_dlopen_deplibs=yes
10631    ;;
10632  hpux10*|hpux11*)
10633    libltdl_cv_sys_dlopen_deplibs=yes
10634    ;;
10635  interix*)
10636    libltdl_cv_sys_dlopen_deplibs=yes
10637    ;;
10638  irix[12345]*|irix6.[01]*)
10639    # Catch all versions of IRIX before 6.2, and indicate that we don't
10640    # know how it worked for any of those versions.
10641    libltdl_cv_sys_dlopen_deplibs=unknown
10642    ;;
10643  irix*)
10644    # The case above catches anything before 6.2, and it's known that
10645    # at 6.2 and later dlopen does load deplibs.
10646    libltdl_cv_sys_dlopen_deplibs=yes
10647    ;;
10648  netbsd*)
10649    libltdl_cv_sys_dlopen_deplibs=yes
10650    ;;
10651  openbsd*)
10652    libltdl_cv_sys_dlopen_deplibs=yes
10653    ;;
10654  osf[1234]*)
10655    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10656    # it did *not* use an RPATH in a shared library to find objects the
10657    # library depends on, so we explicitly say `no'.
10658    libltdl_cv_sys_dlopen_deplibs=no
10659    ;;
10660  osf5.0|osf5.0a|osf5.1)
10661    # dlopen *does* load deplibs and with the right loader patch applied
10662    # it even uses RPATH in a shared library to search for shared objects
10663    # that the library depends on, but there's no easy way to know if that
10664    # patch is installed.  Since this is the case, all we can really
10665    # say is unknown -- it depends on the patch being installed.  If
10666    # it is, this changes to `yes'.  Without it, it would be `no'.
10667    libltdl_cv_sys_dlopen_deplibs=unknown
10668    ;;
10669  osf*)
10670    # the two cases above should catch all versions of osf <= 5.1.  Read
10671    # the comments above for what we know about them.
10672    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10673    # is used to find them so we can finally say `yes'.
10674    libltdl_cv_sys_dlopen_deplibs=yes
10675    ;;
10676  solaris*)
10677    libltdl_cv_sys_dlopen_deplibs=yes
10678    ;;
10679  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680    libltdl_cv_sys_dlopen_deplibs=yes
10681    ;;
10682  esac
10683
10684fi
10685{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10686echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10687if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10688
10689cat >>confdefs.h <<\_ACEOF
10690#define LTDL_DLOPEN_DEPLIBS 1
10691_ACEOF
10692
10693fi
10694
10695
10696for ac_header in argz.h
10697do
10698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703  echo $ECHO_N "(cached) $ECHO_C" >&6
10704fi
10705ac_res=`eval echo '${'$as_ac_Header'}'`
10706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10707echo "${ECHO_T}$ac_res" >&6; }
10708else
10709  # Is the header compilable?
10710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h.  */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h.  */
10718$ac_includes_default
10719#include <$ac_header>
10720_ACEOF
10721rm -f conftest.$ac_objext
10722if { (ac_try="$ac_compile"
10723case "(($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_compile") 2>conftest.er1
10729  ac_status=$?
10730  grep -v '^ *+' conftest.er1 >conftest.err
10731  rm -f conftest.er1
10732  cat conftest.err >&5
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); } &&
10735	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736  { (case "(($ac_try" in
10737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738  *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741  (eval "$ac_try") 2>&5
10742  ac_status=$?
10743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744  (exit $ac_status); }; } &&
10745	 { ac_try='test -s conftest.$ac_objext'
10746  { (case "(($ac_try" in
10747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748  *) ac_try_echo=$ac_try;;
10749esac
10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751  (eval "$ac_try") 2>&5
10752  ac_status=$?
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); }; }; then
10755  ac_header_compiler=yes
10756else
10757  echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760	ac_header_compiler=no
10761fi
10762
10763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765echo "${ECHO_T}$ac_header_compiler" >&6; }
10766
10767# Is the header present?
10768{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10770cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h.  */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h.  */
10776#include <$ac_header>
10777_ACEOF
10778if { (ac_try="$ac_cpp conftest.$ac_ext"
10779case "(($ac_try" in
10780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781  *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785  ac_status=$?
10786  grep -v '^ *+' conftest.er1 >conftest.err
10787  rm -f conftest.er1
10788  cat conftest.err >&5
10789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790  (exit $ac_status); } >/dev/null; then
10791  if test -s conftest.err; then
10792    ac_cpp_err=$ac_c_preproc_warn_flag
10793    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10794  else
10795    ac_cpp_err=
10796  fi
10797else
10798  ac_cpp_err=yes
10799fi
10800if test -z "$ac_cpp_err"; then
10801  ac_header_preproc=yes
10802else
10803  echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806  ac_header_preproc=no
10807fi
10808
10809rm -f conftest.err conftest.$ac_ext
10810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811echo "${ECHO_T}$ac_header_preproc" >&6; }
10812
10813# So?  What about this header?
10814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815  yes:no: )
10816    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820    ac_header_preproc=yes
10821    ;;
10822  no:yes:* )
10823    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10826echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10827    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10830echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10831    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835    ( cat <<\_ASBOX
10836## ------------------------------------ ##
10837## Report this to http://llvm.org/bugs/ ##
10838## ------------------------------------ ##
10839_ASBOX
10840     ) | sed "s/^/$as_me: WARNING:     /" >&2
10841    ;;
10842esac
10843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846  echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848  eval "$as_ac_Header=\$ac_header_preproc"
10849fi
10850ac_res=`eval echo '${'$as_ac_Header'}'`
10851	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10852echo "${ECHO_T}$ac_res" >&6; }
10853
10854fi
10855if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856  cat >>confdefs.h <<_ACEOF
10857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858_ACEOF
10859
10860fi
10861
10862done
10863
10864
10865{ echo "$as_me:$LINENO: checking for error_t" >&5
10866echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10867if test "${ac_cv_type_error_t+set}" = set; then
10868  echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870  cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h.  */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h.  */
10876#if HAVE_ARGZ_H
10877#  include <argz.h>
10878#endif
10879
10880typedef error_t ac__type_new_;
10881int
10882main ()
10883{
10884if ((ac__type_new_ *) 0)
10885  return 0;
10886if (sizeof (ac__type_new_))
10887  return 0;
10888  ;
10889  return 0;
10890}
10891_ACEOF
10892rm -f conftest.$ac_objext
10893if { (ac_try="$ac_compile"
10894case "(($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_compile") 2>conftest.er1
10900  ac_status=$?
10901  grep -v '^ *+' conftest.er1 >conftest.err
10902  rm -f conftest.er1
10903  cat conftest.err >&5
10904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905  (exit $ac_status); } &&
10906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907  { (case "(($ac_try" in
10908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909  *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912  (eval "$ac_try") 2>&5
10913  ac_status=$?
10914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915  (exit $ac_status); }; } &&
10916	 { ac_try='test -s conftest.$ac_objext'
10917  { (case "(($ac_try" in
10918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919  *) ac_try_echo=$ac_try;;
10920esac
10921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922  (eval "$ac_try") 2>&5
10923  ac_status=$?
10924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925  (exit $ac_status); }; }; then
10926  ac_cv_type_error_t=yes
10927else
10928  echo "$as_me: failed program was:" >&5
10929sed 's/^/| /' conftest.$ac_ext >&5
10930
10931	ac_cv_type_error_t=no
10932fi
10933
10934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935fi
10936{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10937echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10938if test $ac_cv_type_error_t = yes; then
10939
10940cat >>confdefs.h <<_ACEOF
10941#define HAVE_ERROR_T 1
10942_ACEOF
10943
10944
10945else
10946
10947cat >>confdefs.h <<\_ACEOF
10948#define error_t int
10949_ACEOF
10950
10951fi
10952
10953
10954
10955
10956
10957
10958
10959for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10960do
10961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10965  echo $ECHO_N "(cached) $ECHO_C" >&6
10966else
10967  cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h.  */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h.  */
10973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10975#define $ac_func innocuous_$ac_func
10976
10977/* System header to define __stub macros and hopefully few prototypes,
10978    which can conflict with char $ac_func (); below.
10979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10980    <limits.h> exists even on freestanding compilers.  */
10981
10982#ifdef __STDC__
10983# include <limits.h>
10984#else
10985# include <assert.h>
10986#endif
10987
10988#undef $ac_func
10989
10990/* Override any GCC internal prototype to avoid an error.
10991   Use char because int might match the return type of a GCC
10992   builtin and then its argument prototype would still apply.  */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char $ac_func ();
10997/* The GNU C library defines this for functions which it implements
10998    to always fail with ENOSYS.  Some functions are actually named
10999    something starting with __ and the normal name is an alias.  */
11000#if defined __stub_$ac_func || defined __stub___$ac_func
11001choke me
11002#endif
11003
11004int
11005main ()
11006{
11007return $ac_func ();
11008  ;
11009  return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext conftest$ac_exeext
11013if { (ac_try="$ac_link"
11014case "(($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_link") 2>conftest.er1
11020  ac_status=$?
11021  grep -v '^ *+' conftest.er1 >conftest.err
11022  rm -f conftest.er1
11023  cat conftest.err >&5
11024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025  (exit $ac_status); } &&
11026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027  { (case "(($ac_try" in
11028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029  *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032  (eval "$ac_try") 2>&5
11033  ac_status=$?
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); }; } &&
11036	 { ac_try='test -s conftest$ac_exeext'
11037  { (case "(($ac_try" in
11038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039  *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042  (eval "$ac_try") 2>&5
11043  ac_status=$?
11044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045  (exit $ac_status); }; }; then
11046  eval "$as_ac_var=yes"
11047else
11048  echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051	eval "$as_ac_var=no"
11052fi
11053
11054rm -f core conftest.err conftest.$ac_objext \
11055      conftest$ac_exeext conftest.$ac_ext
11056fi
11057ac_res=`eval echo '${'$as_ac_var'}'`
11058	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11059echo "${ECHO_T}$ac_res" >&6; }
11060if test `eval echo '${'$as_ac_var'}'` = yes; then
11061  cat >>confdefs.h <<_ACEOF
11062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063_ACEOF
11064
11065fi
11066done
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11096		  stdio.h unistd.h
11097do
11098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103  echo $ECHO_N "(cached) $ECHO_C" >&6
11104fi
11105ac_res=`eval echo '${'$as_ac_Header'}'`
11106	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11107echo "${ECHO_T}$ac_res" >&6; }
11108else
11109  # Is the header compilable?
11110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h.  */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h.  */
11118$ac_includes_default
11119#include <$ac_header>
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (ac_try="$ac_compile"
11123case "(($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_compile") 2>conftest.er1
11129  ac_status=$?
11130  grep -v '^ *+' conftest.er1 >conftest.err
11131  rm -f conftest.er1
11132  cat conftest.err >&5
11133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134  (exit $ac_status); } &&
11135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136  { (case "(($ac_try" in
11137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138  *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141  (eval "$ac_try") 2>&5
11142  ac_status=$?
11143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); }; } &&
11145	 { ac_try='test -s conftest.$ac_objext'
11146  { (case "(($ac_try" in
11147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148  *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151  (eval "$ac_try") 2>&5
11152  ac_status=$?
11153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154  (exit $ac_status); }; }; then
11155  ac_header_compiler=yes
11156else
11157  echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160	ac_header_compiler=no
11161fi
11162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165echo "${ECHO_T}$ac_header_compiler" >&6; }
11166
11167# Is the header present?
11168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h.  */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h.  */
11176#include <$ac_header>
11177_ACEOF
11178if { (ac_try="$ac_cpp conftest.$ac_ext"
11179case "(($ac_try" in
11180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181  *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185  ac_status=$?
11186  grep -v '^ *+' conftest.er1 >conftest.err
11187  rm -f conftest.er1
11188  cat conftest.err >&5
11189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190  (exit $ac_status); } >/dev/null; then
11191  if test -s conftest.err; then
11192    ac_cpp_err=$ac_c_preproc_warn_flag
11193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194  else
11195    ac_cpp_err=
11196  fi
11197else
11198  ac_cpp_err=yes
11199fi
11200if test -z "$ac_cpp_err"; then
11201  ac_header_preproc=yes
11202else
11203  echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206  ac_header_preproc=no
11207fi
11208
11209rm -f conftest.err conftest.$ac_ext
11210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211echo "${ECHO_T}$ac_header_preproc" >&6; }
11212
11213# So?  What about this header?
11214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215  yes:no: )
11216    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220    ac_header_preproc=yes
11221    ;;
11222  no:yes:* )
11223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11226echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11227    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11230echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235    ( cat <<\_ASBOX
11236## ------------------------------------ ##
11237## Report this to http://llvm.org/bugs/ ##
11238## ------------------------------------ ##
11239_ASBOX
11240     ) | sed "s/^/$as_me: WARNING:     /" >&2
11241    ;;
11242esac
11243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246  echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248  eval "$as_ac_Header=\$ac_header_preproc"
11249fi
11250ac_res=`eval echo '${'$as_ac_Header'}'`
11251	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
11253
11254fi
11255if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256  cat >>confdefs.h <<_ACEOF
11257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258_ACEOF
11259
11260fi
11261
11262done
11263
11264
11265
11266
11267
11268for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11269do
11270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275  echo $ECHO_N "(cached) $ECHO_C" >&6
11276fi
11277ac_res=`eval echo '${'$as_ac_Header'}'`
11278	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11279echo "${ECHO_T}$ac_res" >&6; }
11280else
11281  # Is the header compilable?
11282{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h.  */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h.  */
11290$ac_includes_default
11291#include <$ac_header>
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (ac_try="$ac_compile"
11295case "(($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_compile") 2>conftest.er1
11301  ac_status=$?
11302  grep -v '^ *+' conftest.er1 >conftest.err
11303  rm -f conftest.er1
11304  cat conftest.err >&5
11305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306  (exit $ac_status); } &&
11307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11308  { (case "(($ac_try" in
11309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310  *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313  (eval "$ac_try") 2>&5
11314  ac_status=$?
11315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316  (exit $ac_status); }; } &&
11317	 { ac_try='test -s conftest.$ac_objext'
11318  { (case "(($ac_try" in
11319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320  *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323  (eval "$ac_try") 2>&5
11324  ac_status=$?
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); }; }; then
11327  ac_header_compiler=yes
11328else
11329  echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332	ac_header_compiler=no
11333fi
11334
11335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337echo "${ECHO_T}$ac_header_compiler" >&6; }
11338
11339# Is the header present?
11340{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h.  */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h.  */
11348#include <$ac_header>
11349_ACEOF
11350if { (ac_try="$ac_cpp conftest.$ac_ext"
11351case "(($ac_try" in
11352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353  *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11357  ac_status=$?
11358  grep -v '^ *+' conftest.er1 >conftest.err
11359  rm -f conftest.er1
11360  cat conftest.err >&5
11361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362  (exit $ac_status); } >/dev/null; then
11363  if test -s conftest.err; then
11364    ac_cpp_err=$ac_c_preproc_warn_flag
11365    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366  else
11367    ac_cpp_err=
11368  fi
11369else
11370  ac_cpp_err=yes
11371fi
11372if test -z "$ac_cpp_err"; then
11373  ac_header_preproc=yes
11374else
11375  echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378  ac_header_preproc=no
11379fi
11380
11381rm -f conftest.err conftest.$ac_ext
11382{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383echo "${ECHO_T}$ac_header_preproc" >&6; }
11384
11385# So?  What about this header?
11386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11387  yes:no: )
11388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392    ac_header_preproc=yes
11393    ;;
11394  no:yes:* )
11395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11407    ( cat <<\_ASBOX
11408## ------------------------------------ ##
11409## Report this to http://llvm.org/bugs/ ##
11410## ------------------------------------ ##
11411_ASBOX
11412     ) | sed "s/^/$as_me: WARNING:     /" >&2
11413    ;;
11414esac
11415{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418  echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420  eval "$as_ac_Header=\$ac_header_preproc"
11421fi
11422ac_res=`eval echo '${'$as_ac_Header'}'`
11423	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11424echo "${ECHO_T}$ac_res" >&6; }
11425
11426fi
11427if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428  cat >>confdefs.h <<_ACEOF
11429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430_ACEOF
11431
11432fi
11433
11434done
11435
11436
11437
11438for ac_header in string.h strings.h
11439do
11440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445  echo $ECHO_N "(cached) $ECHO_C" >&6
11446fi
11447ac_res=`eval echo '${'$as_ac_Header'}'`
11448	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11449echo "${ECHO_T}$ac_res" >&6; }
11450else
11451  # Is the header compilable?
11452{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11454cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h.  */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h.  */
11460$ac_includes_default
11461#include <$ac_header>
11462_ACEOF
11463rm -f conftest.$ac_objext
11464if { (ac_try="$ac_compile"
11465case "(($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_compile") 2>conftest.er1
11471  ac_status=$?
11472  grep -v '^ *+' conftest.er1 >conftest.err
11473  rm -f conftest.er1
11474  cat conftest.err >&5
11475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476  (exit $ac_status); } &&
11477	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478  { (case "(($ac_try" in
11479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480  *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483  (eval "$ac_try") 2>&5
11484  ac_status=$?
11485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486  (exit $ac_status); }; } &&
11487	 { ac_try='test -s conftest.$ac_objext'
11488  { (case "(($ac_try" in
11489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490  *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493  (eval "$ac_try") 2>&5
11494  ac_status=$?
11495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496  (exit $ac_status); }; }; then
11497  ac_header_compiler=yes
11498else
11499  echo "$as_me: failed program was:" >&5
11500sed 's/^/| /' conftest.$ac_ext >&5
11501
11502	ac_header_compiler=no
11503fi
11504
11505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507echo "${ECHO_T}$ac_header_compiler" >&6; }
11508
11509# Is the header present?
11510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h.  */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h.  */
11518#include <$ac_header>
11519_ACEOF
11520if { (ac_try="$ac_cpp conftest.$ac_ext"
11521case "(($ac_try" in
11522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523  *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11527  ac_status=$?
11528  grep -v '^ *+' conftest.er1 >conftest.err
11529  rm -f conftest.er1
11530  cat conftest.err >&5
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); } >/dev/null; then
11533  if test -s conftest.err; then
11534    ac_cpp_err=$ac_c_preproc_warn_flag
11535    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11536  else
11537    ac_cpp_err=
11538  fi
11539else
11540  ac_cpp_err=yes
11541fi
11542if test -z "$ac_cpp_err"; then
11543  ac_header_preproc=yes
11544else
11545  echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548  ac_header_preproc=no
11549fi
11550
11551rm -f conftest.err conftest.$ac_ext
11552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553echo "${ECHO_T}$ac_header_preproc" >&6; }
11554
11555# So?  What about this header?
11556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557  yes:no: )
11558    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562    ac_header_preproc=yes
11563    ;;
11564  no:yes:* )
11565    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11568echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11569    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11572echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577    ( cat <<\_ASBOX
11578## ------------------------------------ ##
11579## Report this to http://llvm.org/bugs/ ##
11580## ------------------------------------ ##
11581_ASBOX
11582     ) | sed "s/^/$as_me: WARNING:     /" >&2
11583    ;;
11584esac
11585{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588  echo $ECHO_N "(cached) $ECHO_C" >&6
11589else
11590  eval "$as_ac_Header=\$ac_header_preproc"
11591fi
11592ac_res=`eval echo '${'$as_ac_Header'}'`
11593	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11594echo "${ECHO_T}$ac_res" >&6; }
11595
11596fi
11597if test `eval echo '${'$as_ac_Header'}'` = yes; then
11598  cat >>confdefs.h <<_ACEOF
11599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11600_ACEOF
11601 break
11602fi
11603
11604done
11605
11606
11607
11608
11609for ac_func in strchr index
11610do
11611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11615  echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617  cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h.  */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h.  */
11623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11625#define $ac_func innocuous_$ac_func
11626
11627/* System header to define __stub macros and hopefully few prototypes,
11628    which can conflict with char $ac_func (); below.
11629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11630    <limits.h> exists even on freestanding compilers.  */
11631
11632#ifdef __STDC__
11633# include <limits.h>
11634#else
11635# include <assert.h>
11636#endif
11637
11638#undef $ac_func
11639
11640/* Override any GCC internal prototype to avoid an error.
11641   Use char because int might match the return type of a GCC
11642   builtin and then its argument prototype would still apply.  */
11643#ifdef __cplusplus
11644extern "C"
11645#endif
11646char $ac_func ();
11647/* The GNU C library defines this for functions which it implements
11648    to always fail with ENOSYS.  Some functions are actually named
11649    something starting with __ and the normal name is an alias.  */
11650#if defined __stub_$ac_func || defined __stub___$ac_func
11651choke me
11652#endif
11653
11654int
11655main ()
11656{
11657return $ac_func ();
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext conftest$ac_exeext
11663if { (ac_try="$ac_link"
11664case "(($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_link") 2>conftest.er1
11670  ac_status=$?
11671  grep -v '^ *+' conftest.er1 >conftest.err
11672  rm -f conftest.er1
11673  cat conftest.err >&5
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); } &&
11676	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677  { (case "(($ac_try" in
11678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679  *) ac_try_echo=$ac_try;;
11680esac
11681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682  (eval "$ac_try") 2>&5
11683  ac_status=$?
11684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685  (exit $ac_status); }; } &&
11686	 { ac_try='test -s conftest$ac_exeext'
11687  { (case "(($ac_try" in
11688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689  *) ac_try_echo=$ac_try;;
11690esac
11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692  (eval "$ac_try") 2>&5
11693  ac_status=$?
11694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695  (exit $ac_status); }; }; then
11696  eval "$as_ac_var=yes"
11697else
11698  echo "$as_me: failed program was:" >&5
11699sed 's/^/| /' conftest.$ac_ext >&5
11700
11701	eval "$as_ac_var=no"
11702fi
11703
11704rm -f core conftest.err conftest.$ac_objext \
11705      conftest$ac_exeext conftest.$ac_ext
11706fi
11707ac_res=`eval echo '${'$as_ac_var'}'`
11708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11709echo "${ECHO_T}$ac_res" >&6; }
11710if test `eval echo '${'$as_ac_var'}'` = yes; then
11711  cat >>confdefs.h <<_ACEOF
11712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713_ACEOF
11714 break
11715fi
11716done
11717
11718
11719
11720for ac_func in strrchr rindex
11721do
11722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11726  echo $ECHO_N "(cached) $ECHO_C" >&6
11727else
11728  cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h.  */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h.  */
11734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11736#define $ac_func innocuous_$ac_func
11737
11738/* System header to define __stub macros and hopefully few prototypes,
11739    which can conflict with char $ac_func (); below.
11740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741    <limits.h> exists even on freestanding compilers.  */
11742
11743#ifdef __STDC__
11744# include <limits.h>
11745#else
11746# include <assert.h>
11747#endif
11748
11749#undef $ac_func
11750
11751/* Override any GCC internal prototype to avoid an error.
11752   Use char because int might match the return type of a GCC
11753   builtin and then its argument prototype would still apply.  */
11754#ifdef __cplusplus
11755extern "C"
11756#endif
11757char $ac_func ();
11758/* The GNU C library defines this for functions which it implements
11759    to always fail with ENOSYS.  Some functions are actually named
11760    something starting with __ and the normal name is an alias.  */
11761#if defined __stub_$ac_func || defined __stub___$ac_func
11762choke me
11763#endif
11764
11765int
11766main ()
11767{
11768return $ac_func ();
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (ac_try="$ac_link"
11775case "(($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_link") 2>conftest.er1
11781  ac_status=$?
11782  grep -v '^ *+' conftest.er1 >conftest.err
11783  rm -f conftest.er1
11784  cat conftest.err >&5
11785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786  (exit $ac_status); } &&
11787	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788  { (case "(($ac_try" in
11789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790  *) ac_try_echo=$ac_try;;
11791esac
11792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793  (eval "$ac_try") 2>&5
11794  ac_status=$?
11795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796  (exit $ac_status); }; } &&
11797	 { ac_try='test -s conftest$ac_exeext'
11798  { (case "(($ac_try" in
11799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800  *) ac_try_echo=$ac_try;;
11801esac
11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803  (eval "$ac_try") 2>&5
11804  ac_status=$?
11805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806  (exit $ac_status); }; }; then
11807  eval "$as_ac_var=yes"
11808else
11809  echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
11811
11812	eval "$as_ac_var=no"
11813fi
11814
11815rm -f core conftest.err conftest.$ac_objext \
11816      conftest$ac_exeext conftest.$ac_ext
11817fi
11818ac_res=`eval echo '${'$as_ac_var'}'`
11819	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11820echo "${ECHO_T}$ac_res" >&6; }
11821if test `eval echo '${'$as_ac_var'}'` = yes; then
11822  cat >>confdefs.h <<_ACEOF
11823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824_ACEOF
11825 break
11826fi
11827done
11828
11829
11830
11831for ac_func in memcpy bcopy
11832do
11833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11837  echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839  cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h.  */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h.  */
11845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11847#define $ac_func innocuous_$ac_func
11848
11849/* System header to define __stub macros and hopefully few prototypes,
11850    which can conflict with char $ac_func (); below.
11851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852    <limits.h> exists even on freestanding compilers.  */
11853
11854#ifdef __STDC__
11855# include <limits.h>
11856#else
11857# include <assert.h>
11858#endif
11859
11860#undef $ac_func
11861
11862/* Override any GCC internal prototype to avoid an error.
11863   Use char because int might match the return type of a GCC
11864   builtin and then its argument prototype would still apply.  */
11865#ifdef __cplusplus
11866extern "C"
11867#endif
11868char $ac_func ();
11869/* The GNU C library defines this for functions which it implements
11870    to always fail with ENOSYS.  Some functions are actually named
11871    something starting with __ and the normal name is an alias.  */
11872#if defined __stub_$ac_func || defined __stub___$ac_func
11873choke me
11874#endif
11875
11876int
11877main ()
11878{
11879return $ac_func ();
11880  ;
11881  return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (ac_try="$ac_link"
11886case "(($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_link") 2>conftest.er1
11892  ac_status=$?
11893  grep -v '^ *+' conftest.er1 >conftest.err
11894  rm -f conftest.er1
11895  cat conftest.err >&5
11896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897  (exit $ac_status); } &&
11898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11899  { (case "(($ac_try" in
11900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901  *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904  (eval "$ac_try") 2>&5
11905  ac_status=$?
11906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907  (exit $ac_status); }; } &&
11908	 { ac_try='test -s conftest$ac_exeext'
11909  { (case "(($ac_try" in
11910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911  *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914  (eval "$ac_try") 2>&5
11915  ac_status=$?
11916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917  (exit $ac_status); }; }; then
11918  eval "$as_ac_var=yes"
11919else
11920  echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923	eval "$as_ac_var=no"
11924fi
11925
11926rm -f core conftest.err conftest.$ac_objext \
11927      conftest$ac_exeext conftest.$ac_ext
11928fi
11929ac_res=`eval echo '${'$as_ac_var'}'`
11930	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11931echo "${ECHO_T}$ac_res" >&6; }
11932if test `eval echo '${'$as_ac_var'}'` = yes; then
11933  cat >>confdefs.h <<_ACEOF
11934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11935_ACEOF
11936 break
11937fi
11938done
11939
11940
11941
11942for ac_func in memmove strcmp
11943do
11944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11948  echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950  cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h.  */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h.  */
11956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11957   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11958#define $ac_func innocuous_$ac_func
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961    which can conflict with char $ac_func (); below.
11962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963    <limits.h> exists even on freestanding compilers.  */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef $ac_func
11972
11973/* Override any GCC internal prototype to avoid an error.
11974   Use char because int might match the return type of a GCC
11975   builtin and then its argument prototype would still apply.  */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char $ac_func ();
11980/* The GNU C library defines this for functions which it implements
11981    to always fail with ENOSYS.  Some functions are actually named
11982    something starting with __ and the normal name is an alias.  */
11983#if defined __stub_$ac_func || defined __stub___$ac_func
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return $ac_func ();
11991  ;
11992  return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($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_link") 2>conftest.er1
12003  ac_status=$?
12004  grep -v '^ *+' conftest.er1 >conftest.err
12005  rm -f conftest.er1
12006  cat conftest.err >&5
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); } &&
12009	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010  { (case "(($ac_try" in
12011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012  *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015  (eval "$ac_try") 2>&5
12016  ac_status=$?
12017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018  (exit $ac_status); }; } &&
12019	 { ac_try='test -s conftest$ac_exeext'
12020  { (case "(($ac_try" in
12021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022  *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025  (eval "$ac_try") 2>&5
12026  ac_status=$?
12027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028  (exit $ac_status); }; }; then
12029  eval "$as_ac_var=yes"
12030else
12031  echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034	eval "$as_ac_var=no"
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext \
12038      conftest$ac_exeext conftest.$ac_ext
12039fi
12040ac_res=`eval echo '${'$as_ac_var'}'`
12041	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12042echo "${ECHO_T}$ac_res" >&6; }
12043if test `eval echo '${'$as_ac_var'}'` = yes; then
12044  cat >>confdefs.h <<_ACEOF
12045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12046_ACEOF
12047
12048fi
12049done
12050
12051
12052
12053
12054for ac_func in closedir opendir readdir
12055do
12056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12060  echo $ECHO_N "(cached) $ECHO_C" >&6
12061else
12062  cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h.  */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h.  */
12068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12070#define $ac_func innocuous_$ac_func
12071
12072/* System header to define __stub macros and hopefully few prototypes,
12073    which can conflict with char $ac_func (); below.
12074    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075    <limits.h> exists even on freestanding compilers.  */
12076
12077#ifdef __STDC__
12078# include <limits.h>
12079#else
12080# include <assert.h>
12081#endif
12082
12083#undef $ac_func
12084
12085/* Override any GCC internal prototype to avoid an error.
12086   Use char because int might match the return type of a GCC
12087   builtin and then its argument prototype would still apply.  */
12088#ifdef __cplusplus
12089extern "C"
12090#endif
12091char $ac_func ();
12092/* The GNU C library defines this for functions which it implements
12093    to always fail with ENOSYS.  Some functions are actually named
12094    something starting with __ and the normal name is an alias.  */
12095#if defined __stub_$ac_func || defined __stub___$ac_func
12096choke me
12097#endif
12098
12099int
12100main ()
12101{
12102return $ac_func ();
12103  ;
12104  return 0;
12105}
12106_ACEOF
12107rm -f conftest.$ac_objext conftest$ac_exeext
12108if { (ac_try="$ac_link"
12109case "(($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_link") 2>conftest.er1
12115  ac_status=$?
12116  grep -v '^ *+' conftest.er1 >conftest.err
12117  rm -f conftest.er1
12118  cat conftest.err >&5
12119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); } &&
12121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12122  { (case "(($ac_try" in
12123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124  *) ac_try_echo=$ac_try;;
12125esac
12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127  (eval "$ac_try") 2>&5
12128  ac_status=$?
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); }; } &&
12131	 { ac_try='test -s conftest$ac_exeext'
12132  { (case "(($ac_try" in
12133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134  *) ac_try_echo=$ac_try;;
12135esac
12136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137  (eval "$ac_try") 2>&5
12138  ac_status=$?
12139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140  (exit $ac_status); }; }; then
12141  eval "$as_ac_var=yes"
12142else
12143  echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146	eval "$as_ac_var=no"
12147fi
12148
12149rm -f core conftest.err conftest.$ac_objext \
12150      conftest$ac_exeext conftest.$ac_ext
12151fi
12152ac_res=`eval echo '${'$as_ac_var'}'`
12153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12154echo "${ECHO_T}$ac_res" >&6; }
12155if test `eval echo '${'$as_ac_var'}'` = yes; then
12156  cat >>confdefs.h <<_ACEOF
12157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158_ACEOF
12159
12160fi
12161done
12162
12163
12164
12165{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12166echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12167
12168ICC=no
12169IXX=no
12170case $CC in
12171  icc*|icpc*)
12172    ICC=yes
12173    IXX=yes
12174    ;;
12175   *)
12176    ;;
12177esac
12178
12179if test "$GCC" != "yes" && test "$ICC" != "yes"
12180then
12181  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12182echo "$as_me: error: gcc|icc required but not found" >&2;}
12183   { (exit 1); exit 1; }; }
12184fi
12185
12186if test "$GXX" != "yes" && test "$IXX" != "yes"
12187then
12188  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12189echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12190   { (exit 1); exit 1; }; }
12191fi
12192
12193if test "$GCC" = "yes"
12194then
12195  cat >conftest.$ac_ext <<_ACEOF
12196#if !defined(__GNUC__) || __GNUC__ < 3
12197#error Unsupported GCC version
12198#endif
12199
12200_ACEOF
12201rm -f conftest.$ac_objext
12202if { (ac_try="$ac_compile"
12203case "(($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_compile") 2>conftest.er1
12209  ac_status=$?
12210  grep -v '^ *+' conftest.er1 >conftest.err
12211  rm -f conftest.er1
12212  cat conftest.err >&5
12213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214  (exit $ac_status); } &&
12215	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216  { (case "(($ac_try" in
12217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218  *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221  (eval "$ac_try") 2>&5
12222  ac_status=$?
12223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224  (exit $ac_status); }; } &&
12225	 { ac_try='test -s conftest.$ac_objext'
12226  { (case "(($ac_try" in
12227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228  *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231  (eval "$ac_try") 2>&5
12232  ac_status=$?
12233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234  (exit $ac_status); }; }; then
12235  :
12236else
12237  echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242   { (exit 1); exit 1; }; }
12243fi
12244
12245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246fi
12247
12248if test -z "$llvm_cv_gnu_make_command"
12249then
12250  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251echo "$as_me: error: GNU Make required but not found" >&2;}
12252   { (exit 1); exit 1; }; }
12253fi
12254
12255{ echo "$as_me:$LINENO: result: ok" >&5
12256echo "${ECHO_T}ok" >&6; }
12257
12258{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12260NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12261
12262NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12263
12264{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12265echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12266
12267
12268
12269{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12270echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12271if test "${ac_cv_lib_m_sin+set}" = set; then
12272  echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274  ac_check_lib_save_LIBS=$LIBS
12275LIBS="-lm  $LIBS"
12276cat >conftest.$ac_ext <<_ACEOF
12277/* confdefs.h.  */
12278_ACEOF
12279cat confdefs.h >>conftest.$ac_ext
12280cat >>conftest.$ac_ext <<_ACEOF
12281/* end confdefs.h.  */
12282
12283/* Override any GCC internal prototype to avoid an error.
12284   Use char because int might match the return type of a GCC
12285   builtin and then its argument prototype would still apply.  */
12286#ifdef __cplusplus
12287extern "C"
12288#endif
12289char sin ();
12290int
12291main ()
12292{
12293return sin ();
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (ac_try="$ac_link"
12300case "(($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_link") 2>conftest.er1
12306  ac_status=$?
12307  grep -v '^ *+' conftest.er1 >conftest.err
12308  rm -f conftest.er1
12309  cat conftest.err >&5
12310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311  (exit $ac_status); } &&
12312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313  { (case "(($ac_try" in
12314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315  *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318  (eval "$ac_try") 2>&5
12319  ac_status=$?
12320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321  (exit $ac_status); }; } &&
12322	 { ac_try='test -s conftest$ac_exeext'
12323  { (case "(($ac_try" in
12324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325  *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328  (eval "$ac_try") 2>&5
12329  ac_status=$?
12330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331  (exit $ac_status); }; }; then
12332  ac_cv_lib_m_sin=yes
12333else
12334  echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337	ac_cv_lib_m_sin=no
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext \
12341      conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12345echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12346if test $ac_cv_lib_m_sin = yes; then
12347  cat >>confdefs.h <<_ACEOF
12348#define HAVE_LIBM 1
12349_ACEOF
12350
12351  LIBS="-lm $LIBS"
12352
12353fi
12354
12355if test "$llvm_cv_os_type" = "MingW" ; then
12356
12357{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12358echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12359if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12360  echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362  ac_check_lib_save_LIBS=$LIBS
12363LIBS="-limagehlp  $LIBS"
12364cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h.  */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h.  */
12370
12371
12372int
12373main ()
12374{
12375return main ();
12376  ;
12377  return 0;
12378}
12379_ACEOF
12380rm -f conftest.$ac_objext conftest$ac_exeext
12381if { (ac_try="$ac_link"
12382case "(($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_link") 2>conftest.er1
12388  ac_status=$?
12389  grep -v '^ *+' conftest.er1 >conftest.err
12390  rm -f conftest.er1
12391  cat conftest.err >&5
12392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393  (exit $ac_status); } &&
12394	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12395  { (case "(($ac_try" in
12396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397  *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400  (eval "$ac_try") 2>&5
12401  ac_status=$?
12402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403  (exit $ac_status); }; } &&
12404	 { ac_try='test -s conftest$ac_exeext'
12405  { (case "(($ac_try" in
12406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407  *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410  (eval "$ac_try") 2>&5
12411  ac_status=$?
12412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413  (exit $ac_status); }; }; then
12414  ac_cv_lib_imagehlp_main=yes
12415else
12416  echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419	ac_cv_lib_imagehlp_main=no
12420fi
12421
12422rm -f core conftest.err conftest.$ac_objext \
12423      conftest$ac_exeext conftest.$ac_ext
12424LIBS=$ac_check_lib_save_LIBS
12425fi
12426{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12427echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12428if test $ac_cv_lib_imagehlp_main = yes; then
12429  cat >>confdefs.h <<_ACEOF
12430#define HAVE_LIBIMAGEHLP 1
12431_ACEOF
12432
12433  LIBS="-limagehlp $LIBS"
12434
12435fi
12436
12437
12438{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12439echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12440if test "${ac_cv_lib_psapi_main+set}" = set; then
12441  echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443  ac_check_lib_save_LIBS=$LIBS
12444LIBS="-lpsapi  $LIBS"
12445cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h.  */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h.  */
12451
12452
12453int
12454main ()
12455{
12456return main ();
12457  ;
12458  return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (ac_try="$ac_link"
12463case "(($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_link") 2>conftest.er1
12469  ac_status=$?
12470  grep -v '^ *+' conftest.er1 >conftest.err
12471  rm -f conftest.er1
12472  cat conftest.err >&5
12473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474  (exit $ac_status); } &&
12475	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476  { (case "(($ac_try" in
12477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478  *) ac_try_echo=$ac_try;;
12479esac
12480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481  (eval "$ac_try") 2>&5
12482  ac_status=$?
12483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484  (exit $ac_status); }; } &&
12485	 { ac_try='test -s conftest$ac_exeext'
12486  { (case "(($ac_try" in
12487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488  *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491  (eval "$ac_try") 2>&5
12492  ac_status=$?
12493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494  (exit $ac_status); }; }; then
12495  ac_cv_lib_psapi_main=yes
12496else
12497  echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500	ac_cv_lib_psapi_main=no
12501fi
12502
12503rm -f core conftest.err conftest.$ac_objext \
12504      conftest$ac_exeext conftest.$ac_ext
12505LIBS=$ac_check_lib_save_LIBS
12506fi
12507{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12508echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12509if test $ac_cv_lib_psapi_main = yes; then
12510  cat >>confdefs.h <<_ACEOF
12511#define HAVE_LIBPSAPI 1
12512_ACEOF
12513
12514  LIBS="-lpsapi $LIBS"
12515
12516fi
12517
12518fi
12519
12520{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12521echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12522if test "${ac_cv_search_dlopen+set}" = set; then
12523  echo $ECHO_N "(cached) $ECHO_C" >&6
12524else
12525  ac_func_search_save_LIBS=$LIBS
12526cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h.  */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h.  */
12532
12533/* Override any GCC internal prototype to avoid an error.
12534   Use char because int might match the return type of a GCC
12535   builtin and then its argument prototype would still apply.  */
12536#ifdef __cplusplus
12537extern "C"
12538#endif
12539char dlopen ();
12540int
12541main ()
12542{
12543return dlopen ();
12544  ;
12545  return 0;
12546}
12547_ACEOF
12548for ac_lib in '' dl; do
12549  if test -z "$ac_lib"; then
12550    ac_res="none required"
12551  else
12552    ac_res=-l$ac_lib
12553    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12554  fi
12555  rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (ac_try="$ac_link"
12557case "(($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_link") 2>conftest.er1
12563  ac_status=$?
12564  grep -v '^ *+' conftest.er1 >conftest.err
12565  rm -f conftest.er1
12566  cat conftest.err >&5
12567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568  (exit $ac_status); } &&
12569	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570  { (case "(($ac_try" in
12571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572  *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575  (eval "$ac_try") 2>&5
12576  ac_status=$?
12577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578  (exit $ac_status); }; } &&
12579	 { ac_try='test -s conftest$ac_exeext'
12580  { (case "(($ac_try" in
12581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582  *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585  (eval "$ac_try") 2>&5
12586  ac_status=$?
12587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588  (exit $ac_status); }; }; then
12589  ac_cv_search_dlopen=$ac_res
12590else
12591  echo "$as_me: failed program was:" >&5
12592sed 's/^/| /' conftest.$ac_ext >&5
12593
12594
12595fi
12596
12597rm -f core conftest.err conftest.$ac_objext \
12598      conftest$ac_exeext
12599  if test "${ac_cv_search_dlopen+set}" = set; then
12600  break
12601fi
12602done
12603if test "${ac_cv_search_dlopen+set}" = set; then
12604  :
12605else
12606  ac_cv_search_dlopen=no
12607fi
12608rm conftest.$ac_ext
12609LIBS=$ac_func_search_save_LIBS
12610fi
12611{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12612echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12613ac_res=$ac_cv_search_dlopen
12614if test "$ac_res" != no; then
12615  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12616
12617cat >>confdefs.h <<\_ACEOF
12618#define HAVE_DLOPEN 1
12619_ACEOF
12620
12621else
12622  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12623echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12624fi
12625
12626
12627if test "$llvm_cv_enable_libffi" = "yes" ; then
12628  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12629echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12630if test "${ac_cv_search_ffi_call+set}" = set; then
12631  echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633  ac_func_search_save_LIBS=$LIBS
12634cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h.  */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h.  */
12640
12641/* Override any GCC internal prototype to avoid an error.
12642   Use char because int might match the return type of a GCC
12643   builtin and then its argument prototype would still apply.  */
12644#ifdef __cplusplus
12645extern "C"
12646#endif
12647char ffi_call ();
12648int
12649main ()
12650{
12651return ffi_call ();
12652  ;
12653  return 0;
12654}
12655_ACEOF
12656for ac_lib in '' ffi; do
12657  if test -z "$ac_lib"; then
12658    ac_res="none required"
12659  else
12660    ac_res=-l$ac_lib
12661    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12662  fi
12663  rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (ac_try="$ac_link"
12665case "(($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_link") 2>conftest.er1
12671  ac_status=$?
12672  grep -v '^ *+' conftest.er1 >conftest.err
12673  rm -f conftest.er1
12674  cat conftest.err >&5
12675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676  (exit $ac_status); } &&
12677	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12678  { (case "(($ac_try" in
12679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680  *) ac_try_echo=$ac_try;;
12681esac
12682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683  (eval "$ac_try") 2>&5
12684  ac_status=$?
12685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686  (exit $ac_status); }; } &&
12687	 { ac_try='test -s conftest$ac_exeext'
12688  { (case "(($ac_try" in
12689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690  *) ac_try_echo=$ac_try;;
12691esac
12692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693  (eval "$ac_try") 2>&5
12694  ac_status=$?
12695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696  (exit $ac_status); }; }; then
12697  ac_cv_search_ffi_call=$ac_res
12698else
12699  echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
12702
12703fi
12704
12705rm -f core conftest.err conftest.$ac_objext \
12706      conftest$ac_exeext
12707  if test "${ac_cv_search_ffi_call+set}" = set; then
12708  break
12709fi
12710done
12711if test "${ac_cv_search_ffi_call+set}" = set; then
12712  :
12713else
12714  ac_cv_search_ffi_call=no
12715fi
12716rm conftest.$ac_ext
12717LIBS=$ac_func_search_save_LIBS
12718fi
12719{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12720echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12721ac_res=$ac_cv_search_ffi_call
12722if test "$ac_res" != no; then
12723  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12724
12725cat >>confdefs.h <<\_ACEOF
12726#define HAVE_FFI_CALL 1
12727_ACEOF
12728
12729else
12730  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12731echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12732   { (exit 1); exit 1; }; }
12733fi
12734
12735fi
12736
12737{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12738echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12739if test "${ac_cv_search_mallinfo+set}" = set; then
12740  echo $ECHO_N "(cached) $ECHO_C" >&6
12741else
12742  ac_func_search_save_LIBS=$LIBS
12743cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h.  */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h.  */
12749
12750/* Override any GCC internal prototype to avoid an error.
12751   Use char because int might match the return type of a GCC
12752   builtin and then its argument prototype would still apply.  */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char mallinfo ();
12757int
12758main ()
12759{
12760return mallinfo ();
12761  ;
12762  return 0;
12763}
12764_ACEOF
12765for ac_lib in '' malloc; do
12766  if test -z "$ac_lib"; then
12767    ac_res="none required"
12768  else
12769    ac_res=-l$ac_lib
12770    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12771  fi
12772  rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($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_link") 2>conftest.er1
12780  ac_status=$?
12781  grep -v '^ *+' conftest.er1 >conftest.err
12782  rm -f conftest.er1
12783  cat conftest.err >&5
12784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785  (exit $ac_status); } &&
12786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787  { (case "(($ac_try" in
12788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789  *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792  (eval "$ac_try") 2>&5
12793  ac_status=$?
12794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795  (exit $ac_status); }; } &&
12796	 { ac_try='test -s conftest$ac_exeext'
12797  { (case "(($ac_try" in
12798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799  *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802  (eval "$ac_try") 2>&5
12803  ac_status=$?
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); }; }; then
12806  ac_cv_search_mallinfo=$ac_res
12807else
12808  echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
12812fi
12813
12814rm -f core conftest.err conftest.$ac_objext \
12815      conftest$ac_exeext
12816  if test "${ac_cv_search_mallinfo+set}" = set; then
12817  break
12818fi
12819done
12820if test "${ac_cv_search_mallinfo+set}" = set; then
12821  :
12822else
12823  ac_cv_search_mallinfo=no
12824fi
12825rm conftest.$ac_ext
12826LIBS=$ac_func_search_save_LIBS
12827fi
12828{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12829echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12830ac_res=$ac_cv_search_mallinfo
12831if test "$ac_res" != no; then
12832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12833
12834cat >>confdefs.h <<\_ACEOF
12835#define HAVE_MALLINFO 1
12836_ACEOF
12837
12838fi
12839
12840
12841if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12842
12843{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12844echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12845if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12846  echo $ECHO_N "(cached) $ECHO_C" >&6
12847else
12848  ac_check_lib_save_LIBS=$LIBS
12849LIBS="-lpthread  $LIBS"
12850cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h.  */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h.  */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858   Use char because int might match the return type of a GCC
12859   builtin and then its argument prototype would still apply.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char pthread_mutex_init ();
12864int
12865main ()
12866{
12867return pthread_mutex_init ();
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872rm -f conftest.$ac_objext conftest$ac_exeext
12873if { (ac_try="$ac_link"
12874case "(($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_link") 2>conftest.er1
12880  ac_status=$?
12881  grep -v '^ *+' conftest.er1 >conftest.err
12882  rm -f conftest.er1
12883  cat conftest.err >&5
12884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885  (exit $ac_status); } &&
12886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887  { (case "(($ac_try" in
12888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889  *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892  (eval "$ac_try") 2>&5
12893  ac_status=$?
12894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895  (exit $ac_status); }; } &&
12896	 { ac_try='test -s conftest$ac_exeext'
12897  { (case "(($ac_try" in
12898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899  *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902  (eval "$ac_try") 2>&5
12903  ac_status=$?
12904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905  (exit $ac_status); }; }; then
12906  ac_cv_lib_pthread_pthread_mutex_init=yes
12907else
12908  echo "$as_me: failed program was:" >&5
12909sed 's/^/| /' conftest.$ac_ext >&5
12910
12911	ac_cv_lib_pthread_pthread_mutex_init=no
12912fi
12913
12914rm -f core conftest.err conftest.$ac_objext \
12915      conftest$ac_exeext conftest.$ac_ext
12916LIBS=$ac_check_lib_save_LIBS
12917fi
12918{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12919echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12920if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12921  cat >>confdefs.h <<_ACEOF
12922#define HAVE_LIBPTHREAD 1
12923_ACEOF
12924
12925  LIBS="-lpthread $LIBS"
12926
12927fi
12928
12929  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12930echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12931if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12932  echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
12934  ac_func_search_save_LIBS=$LIBS
12935cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h.  */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h.  */
12941
12942/* Override any GCC internal prototype to avoid an error.
12943   Use char because int might match the return type of a GCC
12944   builtin and then its argument prototype would still apply.  */
12945#ifdef __cplusplus
12946extern "C"
12947#endif
12948char pthread_mutex_lock ();
12949int
12950main ()
12951{
12952return pthread_mutex_lock ();
12953  ;
12954  return 0;
12955}
12956_ACEOF
12957for ac_lib in '' pthread; do
12958  if test -z "$ac_lib"; then
12959    ac_res="none required"
12960  else
12961    ac_res=-l$ac_lib
12962    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12963  fi
12964  rm -f conftest.$ac_objext conftest$ac_exeext
12965if { (ac_try="$ac_link"
12966case "(($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_link") 2>conftest.er1
12972  ac_status=$?
12973  grep -v '^ *+' conftest.er1 >conftest.err
12974  rm -f conftest.er1
12975  cat conftest.err >&5
12976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977  (exit $ac_status); } &&
12978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979  { (case "(($ac_try" in
12980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981  *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984  (eval "$ac_try") 2>&5
12985  ac_status=$?
12986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987  (exit $ac_status); }; } &&
12988	 { ac_try='test -s conftest$ac_exeext'
12989  { (case "(($ac_try" in
12990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991  *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994  (eval "$ac_try") 2>&5
12995  ac_status=$?
12996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997  (exit $ac_status); }; }; then
12998  ac_cv_search_pthread_mutex_lock=$ac_res
12999else
13000  echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003
13004fi
13005
13006rm -f core conftest.err conftest.$ac_objext \
13007      conftest$ac_exeext
13008  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13009  break
13010fi
13011done
13012if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13013  :
13014else
13015  ac_cv_search_pthread_mutex_lock=no
13016fi
13017rm conftest.$ac_ext
13018LIBS=$ac_func_search_save_LIBS
13019fi
13020{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13021echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13022ac_res=$ac_cv_search_pthread_mutex_lock
13023if test "$ac_res" != no; then
13024  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13025
13026cat >>confdefs.h <<\_ACEOF
13027#define HAVE_PTHREAD_MUTEX_LOCK 1
13028_ACEOF
13029
13030fi
13031
13032  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13033echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13034if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13035  echo $ECHO_N "(cached) $ECHO_C" >&6
13036else
13037  ac_func_search_save_LIBS=$LIBS
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h.  */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h.  */
13044
13045/* Override any GCC internal prototype to avoid an error.
13046   Use char because int might match the return type of a GCC
13047   builtin and then its argument prototype would still apply.  */
13048#ifdef __cplusplus
13049extern "C"
13050#endif
13051char pthread_rwlock_init ();
13052int
13053main ()
13054{
13055return pthread_rwlock_init ();
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060for ac_lib in '' pthread; do
13061  if test -z "$ac_lib"; then
13062    ac_res="none required"
13063  else
13064    ac_res=-l$ac_lib
13065    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13066  fi
13067  rm -f conftest.$ac_objext conftest$ac_exeext
13068if { (ac_try="$ac_link"
13069case "(($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_link") 2>conftest.er1
13075  ac_status=$?
13076  grep -v '^ *+' conftest.er1 >conftest.err
13077  rm -f conftest.er1
13078  cat conftest.err >&5
13079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080  (exit $ac_status); } &&
13081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082  { (case "(($ac_try" in
13083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084  *) ac_try_echo=$ac_try;;
13085esac
13086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087  (eval "$ac_try") 2>&5
13088  ac_status=$?
13089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090  (exit $ac_status); }; } &&
13091	 { ac_try='test -s conftest$ac_exeext'
13092  { (case "(($ac_try" in
13093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094  *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097  (eval "$ac_try") 2>&5
13098  ac_status=$?
13099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100  (exit $ac_status); }; }; then
13101  ac_cv_search_pthread_rwlock_init=$ac_res
13102else
13103  echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106
13107fi
13108
13109rm -f core conftest.err conftest.$ac_objext \
13110      conftest$ac_exeext
13111  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13112  break
13113fi
13114done
13115if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13116  :
13117else
13118  ac_cv_search_pthread_rwlock_init=no
13119fi
13120rm conftest.$ac_ext
13121LIBS=$ac_func_search_save_LIBS
13122fi
13123{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13124echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13125ac_res=$ac_cv_search_pthread_rwlock_init
13126if test "$ac_res" != no; then
13127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128
13129cat >>confdefs.h <<\_ACEOF
13130#define HAVE_PTHREAD_RWLOCK_INIT 1
13131_ACEOF
13132
13133fi
13134
13135  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13136echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13137if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13138  echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140  ac_func_search_save_LIBS=$LIBS
13141cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h.  */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h.  */
13147
13148/* Override any GCC internal prototype to avoid an error.
13149   Use char because int might match the return type of a GCC
13150   builtin and then its argument prototype would still apply.  */
13151#ifdef __cplusplus
13152extern "C"
13153#endif
13154char pthread_getspecific ();
13155int
13156main ()
13157{
13158return pthread_getspecific ();
13159  ;
13160  return 0;
13161}
13162_ACEOF
13163for ac_lib in '' pthread; do
13164  if test -z "$ac_lib"; then
13165    ac_res="none required"
13166  else
13167    ac_res=-l$ac_lib
13168    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13169  fi
13170  rm -f conftest.$ac_objext conftest$ac_exeext
13171if { (ac_try="$ac_link"
13172case "(($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_link") 2>conftest.er1
13178  ac_status=$?
13179  grep -v '^ *+' conftest.er1 >conftest.err
13180  rm -f conftest.er1
13181  cat conftest.err >&5
13182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183  (exit $ac_status); } &&
13184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185  { (case "(($ac_try" in
13186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187  *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190  (eval "$ac_try") 2>&5
13191  ac_status=$?
13192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193  (exit $ac_status); }; } &&
13194	 { ac_try='test -s conftest$ac_exeext'
13195  { (case "(($ac_try" in
13196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197  *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200  (eval "$ac_try") 2>&5
13201  ac_status=$?
13202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203  (exit $ac_status); }; }; then
13204  ac_cv_search_pthread_getspecific=$ac_res
13205else
13206  echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
13209
13210fi
13211
13212rm -f core conftest.err conftest.$ac_objext \
13213      conftest$ac_exeext
13214  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13215  break
13216fi
13217done
13218if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13219  :
13220else
13221  ac_cv_search_pthread_getspecific=no
13222fi
13223rm conftest.$ac_ext
13224LIBS=$ac_func_search_save_LIBS
13225fi
13226{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13227echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13228ac_res=$ac_cv_search_pthread_getspecific
13229if test "$ac_res" != no; then
13230  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13231
13232cat >>confdefs.h <<\_ACEOF
13233#define HAVE_PTHREAD_GETSPECIFIC 1
13234_ACEOF
13235
13236fi
13237
13238fi
13239
13240
13241# Check whether --with-udis86 was given.
13242if test "${with_udis86+set}" = set; then
13243  withval=$with_udis86;
13244      USE_UDIS86=1
13245
13246      case "$withval" in
13247        /usr/lib|yes) ;;
13248        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13249      esac
13250
13251{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13252echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13253if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13254  echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256  ac_check_lib_save_LIBS=$LIBS
13257LIBS="-ludis86  $LIBS"
13258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h.  */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h.  */
13264
13265/* Override any GCC internal prototype to avoid an error.
13266   Use char because int might match the return type of a GCC
13267   builtin and then its argument prototype would still apply.  */
13268#ifdef __cplusplus
13269extern "C"
13270#endif
13271char ud_init ();
13272int
13273main ()
13274{
13275return ud_init ();
13276  ;
13277  return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext conftest$ac_exeext
13281if { (ac_try="$ac_link"
13282case "(($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_link") 2>conftest.er1
13288  ac_status=$?
13289  grep -v '^ *+' conftest.er1 >conftest.err
13290  rm -f conftest.er1
13291  cat conftest.err >&5
13292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293  (exit $ac_status); } &&
13294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295  { (case "(($ac_try" in
13296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297  *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300  (eval "$ac_try") 2>&5
13301  ac_status=$?
13302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303  (exit $ac_status); }; } &&
13304	 { ac_try='test -s conftest$ac_exeext'
13305  { (case "(($ac_try" in
13306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307  *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310  (eval "$ac_try") 2>&5
13311  ac_status=$?
13312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313  (exit $ac_status); }; }; then
13314  ac_cv_lib_udis86_ud_init=yes
13315else
13316  echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319	ac_cv_lib_udis86_ud_init=no
13320fi
13321
13322rm -f core conftest.err conftest.$ac_objext \
13323      conftest$ac_exeext conftest.$ac_ext
13324LIBS=$ac_check_lib_save_LIBS
13325fi
13326{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13327echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13328if test $ac_cv_lib_udis86_ud_init = yes; then
13329  cat >>confdefs.h <<_ACEOF
13330#define HAVE_LIBUDIS86 1
13331_ACEOF
13332
13333  LIBS="-ludis86 $LIBS"
13334
13335else
13336
13337        echo "Error! You need to have libudis86 around."
13338        exit -1
13339
13340fi
13341
13342
13343else
13344  USE_UDIS86=0
13345
13346fi
13347
13348
13349cat >>confdefs.h <<_ACEOF
13350#define USE_UDIS86 $USE_UDIS86
13351_ACEOF
13352
13353
13354
13355# Check whether --with-oprofile was given.
13356if test "${with_oprofile+set}" = set; then
13357  withval=$with_oprofile;
13358      USE_OPROFILE=1
13359
13360      case "$withval" in
13361        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13362        no) llvm_cv_oppath=
13363            USE_OPROFILE=0
13364 ;;
13365        *) llvm_cv_oppath="${withval}/lib/oprofile"
13366           CPPFLAGS="-I${withval}/include";;
13367      esac
13368      if test -n "$llvm_cv_oppath" ; then
13369        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13370                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13371echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13372if test "${ac_cv_search_bfd_init+set}" = set; then
13373  echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
13375  ac_func_search_save_LIBS=$LIBS
13376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h.  */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h.  */
13382
13383/* Override any GCC internal prototype to avoid an error.
13384   Use char because int might match the return type of a GCC
13385   builtin and then its argument prototype would still apply.  */
13386#ifdef __cplusplus
13387extern "C"
13388#endif
13389char bfd_init ();
13390int
13391main ()
13392{
13393return bfd_init ();
13394  ;
13395  return 0;
13396}
13397_ACEOF
13398for ac_lib in '' bfd; do
13399  if test -z "$ac_lib"; then
13400    ac_res="none required"
13401  else
13402    ac_res=-l$ac_lib
13403    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13404  fi
13405  rm -f conftest.$ac_objext conftest$ac_exeext
13406if { (ac_try="$ac_link"
13407case "(($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_link") 2>conftest.er1
13413  ac_status=$?
13414  grep -v '^ *+' conftest.er1 >conftest.err
13415  rm -f conftest.er1
13416  cat conftest.err >&5
13417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418  (exit $ac_status); } &&
13419	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420  { (case "(($ac_try" in
13421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422  *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425  (eval "$ac_try") 2>&5
13426  ac_status=$?
13427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428  (exit $ac_status); }; } &&
13429	 { ac_try='test -s conftest$ac_exeext'
13430  { (case "(($ac_try" in
13431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432  *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435  (eval "$ac_try") 2>&5
13436  ac_status=$?
13437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438  (exit $ac_status); }; }; then
13439  ac_cv_search_bfd_init=$ac_res
13440else
13441  echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444
13445fi
13446
13447rm -f core conftest.err conftest.$ac_objext \
13448      conftest$ac_exeext
13449  if test "${ac_cv_search_bfd_init+set}" = set; then
13450  break
13451fi
13452done
13453if test "${ac_cv_search_bfd_init+set}" = set; then
13454  :
13455else
13456  ac_cv_search_bfd_init=no
13457fi
13458rm conftest.$ac_ext
13459LIBS=$ac_func_search_save_LIBS
13460fi
13461{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13462echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13463ac_res=$ac_cv_search_bfd_init
13464if test "$ac_res" != no; then
13465  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467fi
13468
13469        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13470echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13471if test "${ac_cv_search_op_open_agent+set}" = set; then
13472  echo $ECHO_N "(cached) $ECHO_C" >&6
13473else
13474  ac_func_search_save_LIBS=$LIBS
13475cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h.  */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h.  */
13481
13482/* Override any GCC internal prototype to avoid an error.
13483   Use char because int might match the return type of a GCC
13484   builtin and then its argument prototype would still apply.  */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char op_open_agent ();
13489int
13490main ()
13491{
13492return op_open_agent ();
13493  ;
13494  return 0;
13495}
13496_ACEOF
13497for ac_lib in '' opagent; do
13498  if test -z "$ac_lib"; then
13499    ac_res="none required"
13500  else
13501    ac_res=-l$ac_lib
13502    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13503  fi
13504  rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($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_link") 2>conftest.er1
13512  ac_status=$?
13513  grep -v '^ *+' conftest.er1 >conftest.err
13514  rm -f conftest.er1
13515  cat conftest.err >&5
13516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517  (exit $ac_status); } &&
13518	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519  { (case "(($ac_try" in
13520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521  *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524  (eval "$ac_try") 2>&5
13525  ac_status=$?
13526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527  (exit $ac_status); }; } &&
13528	 { ac_try='test -s conftest$ac_exeext'
13529  { (case "(($ac_try" in
13530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531  *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534  (eval "$ac_try") 2>&5
13535  ac_status=$?
13536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537  (exit $ac_status); }; }; then
13538  ac_cv_search_op_open_agent=$ac_res
13539else
13540  echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
13543
13544fi
13545
13546rm -f core conftest.err conftest.$ac_objext \
13547      conftest$ac_exeext
13548  if test "${ac_cv_search_op_open_agent+set}" = set; then
13549  break
13550fi
13551done
13552if test "${ac_cv_search_op_open_agent+set}" = set; then
13553  :
13554else
13555  ac_cv_search_op_open_agent=no
13556fi
13557rm conftest.$ac_ext
13558LIBS=$ac_func_search_save_LIBS
13559fi
13560{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13561echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13562ac_res=$ac_cv_search_op_open_agent
13563if test "$ac_res" != no; then
13564  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13565
13566else
13567
13568          echo "Error! You need to have libopagent around."
13569          exit -1
13570
13571fi
13572
13573        if test "${ac_cv_header_opagent_h+set}" = set; then
13574  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576if test "${ac_cv_header_opagent_h+set}" = set; then
13577  echo $ECHO_N "(cached) $ECHO_C" >&6
13578fi
13579{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13580echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13581else
13582  # Is the header compilable?
13583{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13584echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13585cat >conftest.$ac_ext <<_ACEOF
13586/* confdefs.h.  */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h.  */
13591$ac_includes_default
13592#include <opagent.h>
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (ac_try="$ac_compile"
13596case "(($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_compile") 2>conftest.er1
13602  ac_status=$?
13603  grep -v '^ *+' conftest.er1 >conftest.err
13604  rm -f conftest.er1
13605  cat conftest.err >&5
13606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607  (exit $ac_status); } &&
13608	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609  { (case "(($ac_try" in
13610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611  *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614  (eval "$ac_try") 2>&5
13615  ac_status=$?
13616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617  (exit $ac_status); }; } &&
13618	 { ac_try='test -s conftest.$ac_objext'
13619  { (case "(($ac_try" in
13620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621  *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624  (eval "$ac_try") 2>&5
13625  ac_status=$?
13626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627  (exit $ac_status); }; }; then
13628  ac_header_compiler=yes
13629else
13630  echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
13633	ac_header_compiler=no
13634fi
13635
13636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638echo "${ECHO_T}$ac_header_compiler" >&6; }
13639
13640# Is the header present?
13641{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13642echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13643cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h.  */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h.  */
13649#include <opagent.h>
13650_ACEOF
13651if { (ac_try="$ac_cpp conftest.$ac_ext"
13652case "(($ac_try" in
13653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654  *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658  ac_status=$?
13659  grep -v '^ *+' conftest.er1 >conftest.err
13660  rm -f conftest.er1
13661  cat conftest.err >&5
13662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663  (exit $ac_status); } >/dev/null; then
13664  if test -s conftest.err; then
13665    ac_cpp_err=$ac_c_preproc_warn_flag
13666    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13667  else
13668    ac_cpp_err=
13669  fi
13670else
13671  ac_cpp_err=yes
13672fi
13673if test -z "$ac_cpp_err"; then
13674  ac_header_preproc=yes
13675else
13676  echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679  ac_header_preproc=no
13680fi
13681
13682rm -f conftest.err conftest.$ac_ext
13683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13684echo "${ECHO_T}$ac_header_preproc" >&6; }
13685
13686# So?  What about this header?
13687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13688  yes:no: )
13689    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13690echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13691    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13692echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13693    ac_header_preproc=yes
13694    ;;
13695  no:yes:* )
13696    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13697echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13698    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13699echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13700    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13701echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13702    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13703echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13704    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13705echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13706    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13707echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13708    ( cat <<\_ASBOX
13709## ------------------------------------ ##
13710## Report this to http://llvm.org/bugs/ ##
13711## ------------------------------------ ##
13712_ASBOX
13713     ) | sed "s/^/$as_me: WARNING:     /" >&2
13714    ;;
13715esac
13716{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13717echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13718if test "${ac_cv_header_opagent_h+set}" = set; then
13719  echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721  ac_cv_header_opagent_h=$ac_header_preproc
13722fi
13723{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13724echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13725
13726fi
13727if test $ac_cv_header_opagent_h = yes; then
13728  :
13729else
13730
13731          echo "Error! You need to have opagent.h around."
13732          exit -1
13733
13734fi
13735
13736
13737      fi
13738
13739else
13740
13741      USE_OPROFILE=0
13742
13743
13744fi
13745
13746
13747cat >>confdefs.h <<_ACEOF
13748#define USE_OPROFILE $USE_OPROFILE
13749_ACEOF
13750
13751
13752
13753
13754
13755
13756
13757
13758ac_header_dirent=no
13759for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13760  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13761{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13762echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13764  echo $ECHO_N "(cached) $ECHO_C" >&6
13765else
13766  cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h.  */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h.  */
13772#include <sys/types.h>
13773#include <$ac_hdr>
13774
13775int
13776main ()
13777{
13778if ((DIR *) 0)
13779return 0;
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext
13785if { (ac_try="$ac_compile"
13786case "(($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_compile") 2>conftest.er1
13792  ac_status=$?
13793  grep -v '^ *+' conftest.er1 >conftest.err
13794  rm -f conftest.er1
13795  cat conftest.err >&5
13796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797  (exit $ac_status); } &&
13798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799  { (case "(($ac_try" in
13800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801  *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804  (eval "$ac_try") 2>&5
13805  ac_status=$?
13806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807  (exit $ac_status); }; } &&
13808	 { ac_try='test -s conftest.$ac_objext'
13809  { (case "(($ac_try" in
13810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811  *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814  (eval "$ac_try") 2>&5
13815  ac_status=$?
13816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817  (exit $ac_status); }; }; then
13818  eval "$as_ac_Header=yes"
13819else
13820  echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823	eval "$as_ac_Header=no"
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827fi
13828ac_res=`eval echo '${'$as_ac_Header'}'`
13829	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13830echo "${ECHO_T}$ac_res" >&6; }
13831if test `eval echo '${'$as_ac_Header'}'` = yes; then
13832  cat >>confdefs.h <<_ACEOF
13833#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13834_ACEOF
13835
13836ac_header_dirent=$ac_hdr; break
13837fi
13838
13839done
13840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13841if test $ac_header_dirent = dirent.h; then
13842  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13843echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13844if test "${ac_cv_search_opendir+set}" = set; then
13845  echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847  ac_func_search_save_LIBS=$LIBS
13848cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h.  */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
13853/* end confdefs.h.  */
13854
13855/* Override any GCC internal prototype to avoid an error.
13856   Use char because int might match the return type of a GCC
13857   builtin and then its argument prototype would still apply.  */
13858#ifdef __cplusplus
13859extern "C"
13860#endif
13861char opendir ();
13862int
13863main ()
13864{
13865return opendir ();
13866  ;
13867  return 0;
13868}
13869_ACEOF
13870for ac_lib in '' dir; do
13871  if test -z "$ac_lib"; then
13872    ac_res="none required"
13873  else
13874    ac_res=-l$ac_lib
13875    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13876  fi
13877  rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($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_link") 2>conftest.er1
13885  ac_status=$?
13886  grep -v '^ *+' conftest.er1 >conftest.err
13887  rm -f conftest.er1
13888  cat conftest.err >&5
13889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890  (exit $ac_status); } &&
13891	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892  { (case "(($ac_try" in
13893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894  *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897  (eval "$ac_try") 2>&5
13898  ac_status=$?
13899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900  (exit $ac_status); }; } &&
13901	 { ac_try='test -s conftest$ac_exeext'
13902  { (case "(($ac_try" in
13903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904  *) ac_try_echo=$ac_try;;
13905esac
13906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907  (eval "$ac_try") 2>&5
13908  ac_status=$?
13909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910  (exit $ac_status); }; }; then
13911  ac_cv_search_opendir=$ac_res
13912else
13913  echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
13917fi
13918
13919rm -f core conftest.err conftest.$ac_objext \
13920      conftest$ac_exeext
13921  if test "${ac_cv_search_opendir+set}" = set; then
13922  break
13923fi
13924done
13925if test "${ac_cv_search_opendir+set}" = set; then
13926  :
13927else
13928  ac_cv_search_opendir=no
13929fi
13930rm conftest.$ac_ext
13931LIBS=$ac_func_search_save_LIBS
13932fi
13933{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13934echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13935ac_res=$ac_cv_search_opendir
13936if test "$ac_res" != no; then
13937  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938
13939fi
13940
13941else
13942  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13944if test "${ac_cv_search_opendir+set}" = set; then
13945  echo $ECHO_N "(cached) $ECHO_C" >&6
13946else
13947  ac_func_search_save_LIBS=$LIBS
13948cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h.  */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h.  */
13954
13955/* Override any GCC internal prototype to avoid an error.
13956   Use char because int might match the return type of a GCC
13957   builtin and then its argument prototype would still apply.  */
13958#ifdef __cplusplus
13959extern "C"
13960#endif
13961char opendir ();
13962int
13963main ()
13964{
13965return opendir ();
13966  ;
13967  return 0;
13968}
13969_ACEOF
13970for ac_lib in '' x; do
13971  if test -z "$ac_lib"; then
13972    ac_res="none required"
13973  else
13974    ac_res=-l$ac_lib
13975    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13976  fi
13977  rm -f conftest.$ac_objext conftest$ac_exeext
13978if { (ac_try="$ac_link"
13979case "(($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_link") 2>conftest.er1
13985  ac_status=$?
13986  grep -v '^ *+' conftest.er1 >conftest.err
13987  rm -f conftest.er1
13988  cat conftest.err >&5
13989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990  (exit $ac_status); } &&
13991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992  { (case "(($ac_try" in
13993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994  *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997  (eval "$ac_try") 2>&5
13998  ac_status=$?
13999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000  (exit $ac_status); }; } &&
14001	 { ac_try='test -s conftest$ac_exeext'
14002  { (case "(($ac_try" in
14003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004  *) ac_try_echo=$ac_try;;
14005esac
14006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007  (eval "$ac_try") 2>&5
14008  ac_status=$?
14009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010  (exit $ac_status); }; }; then
14011  ac_cv_search_opendir=$ac_res
14012else
14013  echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
14017fi
14018
14019rm -f core conftest.err conftest.$ac_objext \
14020      conftest$ac_exeext
14021  if test "${ac_cv_search_opendir+set}" = set; then
14022  break
14023fi
14024done
14025if test "${ac_cv_search_opendir+set}" = set; then
14026  :
14027else
14028  ac_cv_search_opendir=no
14029fi
14030rm conftest.$ac_ext
14031LIBS=$ac_func_search_save_LIBS
14032fi
14033{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14034echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14035ac_res=$ac_cv_search_opendir
14036if test "$ac_res" != no; then
14037  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14038
14039fi
14040
14041fi
14042
14043{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14044echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14045if test "${ac_cv_header_mmap_anon+set}" = set; then
14046  echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048   ac_ext=c
14049ac_cpp='$CPP $CPPFLAGS'
14050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052ac_compiler_gnu=$ac_cv_c_compiler_gnu
14053
14054  cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h.  */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h.  */
14060#include <sys/mman.h>
14061#include <unistd.h>
14062#include <fcntl.h>
14063int
14064main ()
14065{
14066mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14067  ;
14068  return 0;
14069}
14070_ACEOF
14071rm -f conftest.$ac_objext
14072if { (ac_try="$ac_compile"
14073case "(($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_compile") 2>conftest.er1
14079  ac_status=$?
14080  grep -v '^ *+' conftest.er1 >conftest.err
14081  rm -f conftest.er1
14082  cat conftest.err >&5
14083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084  (exit $ac_status); } &&
14085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086  { (case "(($ac_try" in
14087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088  *) ac_try_echo=$ac_try;;
14089esac
14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091  (eval "$ac_try") 2>&5
14092  ac_status=$?
14093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094  (exit $ac_status); }; } &&
14095	 { ac_try='test -s conftest.$ac_objext'
14096  { (case "(($ac_try" in
14097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098  *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101  (eval "$ac_try") 2>&5
14102  ac_status=$?
14103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104  (exit $ac_status); }; }; then
14105  ac_cv_header_mmap_anon=yes
14106else
14107  echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110	ac_cv_header_mmap_anon=no
14111fi
14112
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114  ac_ext=c
14115ac_cpp='$CPP $CPPFLAGS'
14116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119
14120
14121fi
14122{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14123echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14124if test "$ac_cv_header_mmap_anon" = yes; then
14125
14126cat >>confdefs.h <<\_ACEOF
14127#define HAVE_MMAP_ANONYMOUS 1
14128_ACEOF
14129
14130fi
14131
14132{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14133echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14134if test "${ac_cv_header_stat_broken+set}" = set; then
14135  echo $ECHO_N "(cached) $ECHO_C" >&6
14136else
14137  cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h.  */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h.  */
14143#include <sys/types.h>
14144#include <sys/stat.h>
14145
14146#if defined S_ISBLK && defined S_IFDIR
14147# if S_ISBLK (S_IFDIR)
14148You lose.
14149# endif
14150#endif
14151
14152#if defined S_ISBLK && defined S_IFCHR
14153# if S_ISBLK (S_IFCHR)
14154You lose.
14155# endif
14156#endif
14157
14158#if defined S_ISLNK && defined S_IFREG
14159# if S_ISLNK (S_IFREG)
14160You lose.
14161# endif
14162#endif
14163
14164#if defined S_ISSOCK && defined S_IFREG
14165# if S_ISSOCK (S_IFREG)
14166You lose.
14167# endif
14168#endif
14169
14170_ACEOF
14171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172  $EGREP "You lose" >/dev/null 2>&1; then
14173  ac_cv_header_stat_broken=yes
14174else
14175  ac_cv_header_stat_broken=no
14176fi
14177rm -f conftest*
14178
14179fi
14180{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14181echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14182if test $ac_cv_header_stat_broken = yes; then
14183
14184cat >>confdefs.h <<\_ACEOF
14185#define STAT_MACROS_BROKEN 1
14186_ACEOF
14187
14188fi
14189
14190{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14191echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14192if test "${ac_cv_header_sys_wait_h+set}" = set; then
14193  echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195  cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h.  */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h.  */
14201#include <sys/types.h>
14202#include <sys/wait.h>
14203#ifndef WEXITSTATUS
14204# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14205#endif
14206#ifndef WIFEXITED
14207# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14208#endif
14209
14210int
14211main ()
14212{
14213  int s;
14214  wait (&s);
14215  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14216  ;
14217  return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext
14221if { (ac_try="$ac_compile"
14222case "(($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_compile") 2>conftest.er1
14228  ac_status=$?
14229  grep -v '^ *+' conftest.er1 >conftest.err
14230  rm -f conftest.er1
14231  cat conftest.err >&5
14232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233  (exit $ac_status); } &&
14234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235  { (case "(($ac_try" in
14236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237  *) ac_try_echo=$ac_try;;
14238esac
14239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240  (eval "$ac_try") 2>&5
14241  ac_status=$?
14242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243  (exit $ac_status); }; } &&
14244	 { ac_try='test -s conftest.$ac_objext'
14245  { (case "(($ac_try" in
14246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247  *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250  (eval "$ac_try") 2>&5
14251  ac_status=$?
14252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253  (exit $ac_status); }; }; then
14254  ac_cv_header_sys_wait_h=yes
14255else
14256  echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259	ac_cv_header_sys_wait_h=no
14260fi
14261
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263fi
14264{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14265echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14266if test $ac_cv_header_sys_wait_h = yes; then
14267
14268cat >>confdefs.h <<\_ACEOF
14269#define HAVE_SYS_WAIT_H 1
14270_ACEOF
14271
14272fi
14273
14274{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14275echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14276if test "${ac_cv_header_time+set}" = set; then
14277  echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279  cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h.  */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h.  */
14285#include <sys/types.h>
14286#include <sys/time.h>
14287#include <time.h>
14288
14289int
14290main ()
14291{
14292if ((struct tm *) 0)
14293return 0;
14294  ;
14295  return 0;
14296}
14297_ACEOF
14298rm -f conftest.$ac_objext
14299if { (ac_try="$ac_compile"
14300case "(($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_compile") 2>conftest.er1
14306  ac_status=$?
14307  grep -v '^ *+' conftest.er1 >conftest.err
14308  rm -f conftest.er1
14309  cat conftest.err >&5
14310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311  (exit $ac_status); } &&
14312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313  { (case "(($ac_try" in
14314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315  *) ac_try_echo=$ac_try;;
14316esac
14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318  (eval "$ac_try") 2>&5
14319  ac_status=$?
14320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321  (exit $ac_status); }; } &&
14322	 { ac_try='test -s conftest.$ac_objext'
14323  { (case "(($ac_try" in
14324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325  *) ac_try_echo=$ac_try;;
14326esac
14327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328  (eval "$ac_try") 2>&5
14329  ac_status=$?
14330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331  (exit $ac_status); }; }; then
14332  ac_cv_header_time=yes
14333else
14334  echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337	ac_cv_header_time=no
14338fi
14339
14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341fi
14342{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14343echo "${ECHO_T}$ac_cv_header_time" >&6; }
14344if test $ac_cv_header_time = yes; then
14345
14346cat >>confdefs.h <<\_ACEOF
14347#define TIME_WITH_SYS_TIME 1
14348_ACEOF
14349
14350fi
14351
14352
14353
14354
14355
14356
14357
14358
14359for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14360do
14361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14363  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366  echo $ECHO_N "(cached) $ECHO_C" >&6
14367fi
14368ac_res=`eval echo '${'$as_ac_Header'}'`
14369	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14370echo "${ECHO_T}$ac_res" >&6; }
14371else
14372  # Is the header compilable?
14373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14375cat >conftest.$ac_ext <<_ACEOF
14376/* confdefs.h.  */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
14380/* end confdefs.h.  */
14381$ac_includes_default
14382#include <$ac_header>
14383_ACEOF
14384rm -f conftest.$ac_objext
14385if { (ac_try="$ac_compile"
14386case "(($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_compile") 2>conftest.er1
14392  ac_status=$?
14393  grep -v '^ *+' conftest.er1 >conftest.err
14394  rm -f conftest.er1
14395  cat conftest.err >&5
14396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397  (exit $ac_status); } &&
14398	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399  { (case "(($ac_try" in
14400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401  *) ac_try_echo=$ac_try;;
14402esac
14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404  (eval "$ac_try") 2>&5
14405  ac_status=$?
14406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407  (exit $ac_status); }; } &&
14408	 { ac_try='test -s conftest.$ac_objext'
14409  { (case "(($ac_try" in
14410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411  *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414  (eval "$ac_try") 2>&5
14415  ac_status=$?
14416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417  (exit $ac_status); }; }; then
14418  ac_header_compiler=yes
14419else
14420  echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
14423	ac_header_compiler=no
14424fi
14425
14426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14428echo "${ECHO_T}$ac_header_compiler" >&6; }
14429
14430# Is the header present?
14431{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14433cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h.  */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h.  */
14439#include <$ac_header>
14440_ACEOF
14441if { (ac_try="$ac_cpp conftest.$ac_ext"
14442case "(($ac_try" in
14443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444  *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14448  ac_status=$?
14449  grep -v '^ *+' conftest.er1 >conftest.err
14450  rm -f conftest.er1
14451  cat conftest.err >&5
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); } >/dev/null; then
14454  if test -s conftest.err; then
14455    ac_cpp_err=$ac_c_preproc_warn_flag
14456    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14457  else
14458    ac_cpp_err=
14459  fi
14460else
14461  ac_cpp_err=yes
14462fi
14463if test -z "$ac_cpp_err"; then
14464  ac_header_preproc=yes
14465else
14466  echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469  ac_header_preproc=no
14470fi
14471
14472rm -f conftest.err conftest.$ac_ext
14473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474echo "${ECHO_T}$ac_header_preproc" >&6; }
14475
14476# So?  What about this header?
14477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478  yes:no: )
14479    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483    ac_header_preproc=yes
14484    ;;
14485  no:yes:* )
14486    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14489echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14490    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14493echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14494    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14498    ( cat <<\_ASBOX
14499## ------------------------------------ ##
14500## Report this to http://llvm.org/bugs/ ##
14501## ------------------------------------ ##
14502_ASBOX
14503     ) | sed "s/^/$as_me: WARNING:     /" >&2
14504    ;;
14505esac
14506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509  echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511  eval "$as_ac_Header=\$ac_header_preproc"
14512fi
14513ac_res=`eval echo '${'$as_ac_Header'}'`
14514	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14515echo "${ECHO_T}$ac_res" >&6; }
14516
14517fi
14518if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519  cat >>confdefs.h <<_ACEOF
14520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521_ACEOF
14522
14523fi
14524
14525done
14526
14527
14528
14529
14530
14531
14532
14533for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14534do
14535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540  echo $ECHO_N "(cached) $ECHO_C" >&6
14541fi
14542ac_res=`eval echo '${'$as_ac_Header'}'`
14543	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14544echo "${ECHO_T}$ac_res" >&6; }
14545else
14546  # Is the header compilable?
14547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14549cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h.  */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h.  */
14555$ac_includes_default
14556#include <$ac_header>
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($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_compile") 2>conftest.er1
14566  ac_status=$?
14567  grep -v '^ *+' conftest.er1 >conftest.err
14568  rm -f conftest.er1
14569  cat conftest.err >&5
14570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571  (exit $ac_status); } &&
14572	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573  { (case "(($ac_try" in
14574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575  *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578  (eval "$ac_try") 2>&5
14579  ac_status=$?
14580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581  (exit $ac_status); }; } &&
14582	 { ac_try='test -s conftest.$ac_objext'
14583  { (case "(($ac_try" in
14584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585  *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588  (eval "$ac_try") 2>&5
14589  ac_status=$?
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); }; }; then
14592  ac_header_compiler=yes
14593else
14594  echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597	ac_header_compiler=no
14598fi
14599
14600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602echo "${ECHO_T}$ac_header_compiler" >&6; }
14603
14604# Is the header present?
14605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14607cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h.  */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h.  */
14613#include <$ac_header>
14614_ACEOF
14615if { (ac_try="$ac_cpp conftest.$ac_ext"
14616case "(($ac_try" in
14617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618  *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14622  ac_status=$?
14623  grep -v '^ *+' conftest.er1 >conftest.err
14624  rm -f conftest.er1
14625  cat conftest.err >&5
14626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627  (exit $ac_status); } >/dev/null; then
14628  if test -s conftest.err; then
14629    ac_cpp_err=$ac_c_preproc_warn_flag
14630    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14631  else
14632    ac_cpp_err=
14633  fi
14634else
14635  ac_cpp_err=yes
14636fi
14637if test -z "$ac_cpp_err"; then
14638  ac_header_preproc=yes
14639else
14640  echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643  ac_header_preproc=no
14644fi
14645
14646rm -f conftest.err conftest.$ac_ext
14647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648echo "${ECHO_T}$ac_header_preproc" >&6; }
14649
14650# So?  What about this header?
14651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14652  yes:no: )
14653    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14657    ac_header_preproc=yes
14658    ;;
14659  no:yes:* )
14660    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14662    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14663echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14664    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14666    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14667echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14668    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14670    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14672    ( cat <<\_ASBOX
14673## ------------------------------------ ##
14674## Report this to http://llvm.org/bugs/ ##
14675## ------------------------------------ ##
14676_ASBOX
14677     ) | sed "s/^/$as_me: WARNING:     /" >&2
14678    ;;
14679esac
14680{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14683  echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685  eval "$as_ac_Header=\$ac_header_preproc"
14686fi
14687ac_res=`eval echo '${'$as_ac_Header'}'`
14688	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14689echo "${ECHO_T}$ac_res" >&6; }
14690
14691fi
14692if test `eval echo '${'$as_ac_Header'}'` = yes; then
14693  cat >>confdefs.h <<_ACEOF
14694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14695_ACEOF
14696
14697fi
14698
14699done
14700
14701
14702
14703for ac_header in utime.h windows.h
14704do
14705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14707  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710  echo $ECHO_N "(cached) $ECHO_C" >&6
14711fi
14712ac_res=`eval echo '${'$as_ac_Header'}'`
14713	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14714echo "${ECHO_T}$ac_res" >&6; }
14715else
14716  # Is the header compilable?
14717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h.  */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h.  */
14725$ac_includes_default
14726#include <$ac_header>
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (ac_try="$ac_compile"
14730case "(($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_compile") 2>conftest.er1
14736  ac_status=$?
14737  grep -v '^ *+' conftest.er1 >conftest.err
14738  rm -f conftest.er1
14739  cat conftest.err >&5
14740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741  (exit $ac_status); } &&
14742	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743  { (case "(($ac_try" in
14744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745  *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748  (eval "$ac_try") 2>&5
14749  ac_status=$?
14750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751  (exit $ac_status); }; } &&
14752	 { ac_try='test -s conftest.$ac_objext'
14753  { (case "(($ac_try" in
14754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755  *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758  (eval "$ac_try") 2>&5
14759  ac_status=$?
14760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761  (exit $ac_status); }; }; then
14762  ac_header_compiler=yes
14763else
14764  echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767	ac_header_compiler=no
14768fi
14769
14770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772echo "${ECHO_T}$ac_header_compiler" >&6; }
14773
14774# Is the header present?
14775{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14777cat >conftest.$ac_ext <<_ACEOF
14778/* confdefs.h.  */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h.  */
14783#include <$ac_header>
14784_ACEOF
14785if { (ac_try="$ac_cpp conftest.$ac_ext"
14786case "(($ac_try" in
14787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788  *) ac_try_echo=$ac_try;;
14789esac
14790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14792  ac_status=$?
14793  grep -v '^ *+' conftest.er1 >conftest.err
14794  rm -f conftest.er1
14795  cat conftest.err >&5
14796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797  (exit $ac_status); } >/dev/null; then
14798  if test -s conftest.err; then
14799    ac_cpp_err=$ac_c_preproc_warn_flag
14800    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14801  else
14802    ac_cpp_err=
14803  fi
14804else
14805  ac_cpp_err=yes
14806fi
14807if test -z "$ac_cpp_err"; then
14808  ac_header_preproc=yes
14809else
14810  echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813  ac_header_preproc=no
14814fi
14815
14816rm -f conftest.err conftest.$ac_ext
14817{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818echo "${ECHO_T}$ac_header_preproc" >&6; }
14819
14820# So?  What about this header?
14821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822  yes:no: )
14823    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827    ac_header_preproc=yes
14828    ;;
14829  no:yes:* )
14830    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14833echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14834    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14837echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14838    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842    ( cat <<\_ASBOX
14843## ------------------------------------ ##
14844## Report this to http://llvm.org/bugs/ ##
14845## ------------------------------------ ##
14846_ASBOX
14847     ) | sed "s/^/$as_me: WARNING:     /" >&2
14848    ;;
14849esac
14850{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853  echo $ECHO_N "(cached) $ECHO_C" >&6
14854else
14855  eval "$as_ac_Header=\$ac_header_preproc"
14856fi
14857ac_res=`eval echo '${'$as_ac_Header'}'`
14858	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14859echo "${ECHO_T}$ac_res" >&6; }
14860
14861fi
14862if test `eval echo '${'$as_ac_Header'}'` = yes; then
14863  cat >>confdefs.h <<_ACEOF
14864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14865_ACEOF
14866
14867fi
14868
14869done
14870
14871
14872
14873
14874
14875
14876for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14877do
14878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883  echo $ECHO_N "(cached) $ECHO_C" >&6
14884fi
14885ac_res=`eval echo '${'$as_ac_Header'}'`
14886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14887echo "${ECHO_T}$ac_res" >&6; }
14888else
14889  # Is the header compilable?
14890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892cat >conftest.$ac_ext <<_ACEOF
14893/* confdefs.h.  */
14894_ACEOF
14895cat confdefs.h >>conftest.$ac_ext
14896cat >>conftest.$ac_ext <<_ACEOF
14897/* end confdefs.h.  */
14898$ac_includes_default
14899#include <$ac_header>
14900_ACEOF
14901rm -f conftest.$ac_objext
14902if { (ac_try="$ac_compile"
14903case "(($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_compile") 2>conftest.er1
14909  ac_status=$?
14910  grep -v '^ *+' conftest.er1 >conftest.err
14911  rm -f conftest.er1
14912  cat conftest.err >&5
14913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914  (exit $ac_status); } &&
14915	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916  { (case "(($ac_try" in
14917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918  *) ac_try_echo=$ac_try;;
14919esac
14920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921  (eval "$ac_try") 2>&5
14922  ac_status=$?
14923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924  (exit $ac_status); }; } &&
14925	 { ac_try='test -s conftest.$ac_objext'
14926  { (case "(($ac_try" in
14927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928  *) ac_try_echo=$ac_try;;
14929esac
14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931  (eval "$ac_try") 2>&5
14932  ac_status=$?
14933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934  (exit $ac_status); }; }; then
14935  ac_header_compiler=yes
14936else
14937  echo "$as_me: failed program was:" >&5
14938sed 's/^/| /' conftest.$ac_ext >&5
14939
14940	ac_header_compiler=no
14941fi
14942
14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945echo "${ECHO_T}$ac_header_compiler" >&6; }
14946
14947# Is the header present?
14948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h.  */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h.  */
14956#include <$ac_header>
14957_ACEOF
14958if { (ac_try="$ac_cpp conftest.$ac_ext"
14959case "(($ac_try" in
14960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961  *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14965  ac_status=$?
14966  grep -v '^ *+' conftest.er1 >conftest.err
14967  rm -f conftest.er1
14968  cat conftest.err >&5
14969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970  (exit $ac_status); } >/dev/null; then
14971  if test -s conftest.err; then
14972    ac_cpp_err=$ac_c_preproc_warn_flag
14973    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14974  else
14975    ac_cpp_err=
14976  fi
14977else
14978  ac_cpp_err=yes
14979fi
14980if test -z "$ac_cpp_err"; then
14981  ac_header_preproc=yes
14982else
14983  echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986  ac_header_preproc=no
14987fi
14988
14989rm -f conftest.err conftest.$ac_ext
14990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991echo "${ECHO_T}$ac_header_preproc" >&6; }
14992
14993# So?  What about this header?
14994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14995  yes:no: )
14996    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000    ac_header_preproc=yes
15001    ;;
15002  no:yes:* )
15003    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15006echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15007    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15010echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15015    ( cat <<\_ASBOX
15016## ------------------------------------ ##
15017## Report this to http://llvm.org/bugs/ ##
15018## ------------------------------------ ##
15019_ASBOX
15020     ) | sed "s/^/$as_me: WARNING:     /" >&2
15021    ;;
15022esac
15023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026  echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028  eval "$as_ac_Header=\$ac_header_preproc"
15029fi
15030ac_res=`eval echo '${'$as_ac_Header'}'`
15031	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15032echo "${ECHO_T}$ac_res" >&6; }
15033
15034fi
15035if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036  cat >>confdefs.h <<_ACEOF
15037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15038_ACEOF
15039
15040fi
15041
15042done
15043
15044
15045
15046
15047
15048for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15049do
15050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055  echo $ECHO_N "(cached) $ECHO_C" >&6
15056fi
15057ac_res=`eval echo '${'$as_ac_Header'}'`
15058	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15059echo "${ECHO_T}$ac_res" >&6; }
15060else
15061  # Is the header compilable?
15062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15064cat >conftest.$ac_ext <<_ACEOF
15065/* confdefs.h.  */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h.  */
15070$ac_includes_default
15071#include <$ac_header>
15072_ACEOF
15073rm -f conftest.$ac_objext
15074if { (ac_try="$ac_compile"
15075case "(($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_compile") 2>conftest.er1
15081  ac_status=$?
15082  grep -v '^ *+' conftest.er1 >conftest.err
15083  rm -f conftest.er1
15084  cat conftest.err >&5
15085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086  (exit $ac_status); } &&
15087	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088  { (case "(($ac_try" in
15089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090  *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093  (eval "$ac_try") 2>&5
15094  ac_status=$?
15095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096  (exit $ac_status); }; } &&
15097	 { ac_try='test -s conftest.$ac_objext'
15098  { (case "(($ac_try" in
15099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100  *) ac_try_echo=$ac_try;;
15101esac
15102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103  (eval "$ac_try") 2>&5
15104  ac_status=$?
15105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); }; }; then
15107  ac_header_compiler=yes
15108else
15109  echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112	ac_header_compiler=no
15113fi
15114
15115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15117echo "${ECHO_T}$ac_header_compiler" >&6; }
15118
15119# Is the header present?
15120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15122cat >conftest.$ac_ext <<_ACEOF
15123/* confdefs.h.  */
15124_ACEOF
15125cat confdefs.h >>conftest.$ac_ext
15126cat >>conftest.$ac_ext <<_ACEOF
15127/* end confdefs.h.  */
15128#include <$ac_header>
15129_ACEOF
15130if { (ac_try="$ac_cpp conftest.$ac_ext"
15131case "(($ac_try" in
15132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133  *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15137  ac_status=$?
15138  grep -v '^ *+' conftest.er1 >conftest.err
15139  rm -f conftest.er1
15140  cat conftest.err >&5
15141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142  (exit $ac_status); } >/dev/null; then
15143  if test -s conftest.err; then
15144    ac_cpp_err=$ac_c_preproc_warn_flag
15145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15146  else
15147    ac_cpp_err=
15148  fi
15149else
15150  ac_cpp_err=yes
15151fi
15152if test -z "$ac_cpp_err"; then
15153  ac_header_preproc=yes
15154else
15155  echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158  ac_header_preproc=no
15159fi
15160
15161rm -f conftest.err conftest.$ac_ext
15162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163echo "${ECHO_T}$ac_header_preproc" >&6; }
15164
15165# So?  What about this header?
15166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167  yes:no: )
15168    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15170    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172    ac_header_preproc=yes
15173    ;;
15174  no:yes:* )
15175    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15177    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15178echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15179    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15182echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15183    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15187    ( cat <<\_ASBOX
15188## ------------------------------------ ##
15189## Report this to http://llvm.org/bugs/ ##
15190## ------------------------------------ ##
15191_ASBOX
15192     ) | sed "s/^/$as_me: WARNING:     /" >&2
15193    ;;
15194esac
15195{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198  echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200  eval "$as_ac_Header=\$ac_header_preproc"
15201fi
15202ac_res=`eval echo '${'$as_ac_Header'}'`
15203	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15204echo "${ECHO_T}$ac_res" >&6; }
15205
15206fi
15207if test `eval echo '${'$as_ac_Header'}'` = yes; then
15208  cat >>confdefs.h <<_ACEOF
15209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15210_ACEOF
15211
15212fi
15213
15214done
15215
15216
15217for ac_header in valgrind/valgrind.h
15218do
15219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224  echo $ECHO_N "(cached) $ECHO_C" >&6
15225fi
15226ac_res=`eval echo '${'$as_ac_Header'}'`
15227	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15228echo "${ECHO_T}$ac_res" >&6; }
15229else
15230  # Is the header compilable?
15231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h.  */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h.  */
15239$ac_includes_default
15240#include <$ac_header>
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (ac_try="$ac_compile"
15244case "(($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_compile") 2>conftest.er1
15250  ac_status=$?
15251  grep -v '^ *+' conftest.er1 >conftest.err
15252  rm -f conftest.er1
15253  cat conftest.err >&5
15254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255  (exit $ac_status); } &&
15256	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257  { (case "(($ac_try" in
15258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259  *) ac_try_echo=$ac_try;;
15260esac
15261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262  (eval "$ac_try") 2>&5
15263  ac_status=$?
15264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265  (exit $ac_status); }; } &&
15266	 { ac_try='test -s conftest.$ac_objext'
15267  { (case "(($ac_try" in
15268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269  *) ac_try_echo=$ac_try;;
15270esac
15271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272  (eval "$ac_try") 2>&5
15273  ac_status=$?
15274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275  (exit $ac_status); }; }; then
15276  ac_header_compiler=yes
15277else
15278  echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281	ac_header_compiler=no
15282fi
15283
15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286echo "${ECHO_T}$ac_header_compiler" >&6; }
15287
15288# Is the header present?
15289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h.  */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h.  */
15297#include <$ac_header>
15298_ACEOF
15299if { (ac_try="$ac_cpp conftest.$ac_ext"
15300case "(($ac_try" in
15301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302  *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306  ac_status=$?
15307  grep -v '^ *+' conftest.er1 >conftest.err
15308  rm -f conftest.er1
15309  cat conftest.err >&5
15310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311  (exit $ac_status); } >/dev/null; then
15312  if test -s conftest.err; then
15313    ac_cpp_err=$ac_c_preproc_warn_flag
15314    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315  else
15316    ac_cpp_err=
15317  fi
15318else
15319  ac_cpp_err=yes
15320fi
15321if test -z "$ac_cpp_err"; then
15322  ac_header_preproc=yes
15323else
15324  echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327  ac_header_preproc=no
15328fi
15329
15330rm -f conftest.err conftest.$ac_ext
15331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332echo "${ECHO_T}$ac_header_preproc" >&6; }
15333
15334# So?  What about this header?
15335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336  yes:no: )
15337    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341    ac_header_preproc=yes
15342    ;;
15343  no:yes:* )
15344    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15347echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15348    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15351echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15352    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356    ( cat <<\_ASBOX
15357## ------------------------------------ ##
15358## Report this to http://llvm.org/bugs/ ##
15359## ------------------------------------ ##
15360_ASBOX
15361     ) | sed "s/^/$as_me: WARNING:     /" >&2
15362    ;;
15363esac
15364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367  echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369  eval "$as_ac_Header=\$ac_header_preproc"
15370fi
15371ac_res=`eval echo '${'$as_ac_Header'}'`
15372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15373echo "${ECHO_T}$ac_res" >&6; }
15374
15375fi
15376if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377  cat >>confdefs.h <<_ACEOF
15378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379_ACEOF
15380
15381fi
15382
15383done
15384
15385
15386for ac_header in fenv.h
15387do
15388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393  echo $ECHO_N "(cached) $ECHO_C" >&6
15394fi
15395ac_res=`eval echo '${'$as_ac_Header'}'`
15396	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15397echo "${ECHO_T}$ac_res" >&6; }
15398else
15399  # Is the header compilable?
15400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h.  */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h.  */
15408$ac_includes_default
15409#include <$ac_header>
15410_ACEOF
15411rm -f conftest.$ac_objext
15412if { (ac_try="$ac_compile"
15413case "(($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_compile") 2>conftest.er1
15419  ac_status=$?
15420  grep -v '^ *+' conftest.er1 >conftest.err
15421  rm -f conftest.er1
15422  cat conftest.err >&5
15423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424  (exit $ac_status); } &&
15425	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426  { (case "(($ac_try" in
15427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428  *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431  (eval "$ac_try") 2>&5
15432  ac_status=$?
15433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434  (exit $ac_status); }; } &&
15435	 { ac_try='test -s conftest.$ac_objext'
15436  { (case "(($ac_try" in
15437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438  *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441  (eval "$ac_try") 2>&5
15442  ac_status=$?
15443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444  (exit $ac_status); }; }; then
15445  ac_header_compiler=yes
15446else
15447  echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450	ac_header_compiler=no
15451fi
15452
15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455echo "${ECHO_T}$ac_header_compiler" >&6; }
15456
15457# Is the header present?
15458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h.  */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h.  */
15466#include <$ac_header>
15467_ACEOF
15468if { (ac_try="$ac_cpp conftest.$ac_ext"
15469case "(($ac_try" in
15470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471  *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15475  ac_status=$?
15476  grep -v '^ *+' conftest.er1 >conftest.err
15477  rm -f conftest.er1
15478  cat conftest.err >&5
15479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480  (exit $ac_status); } >/dev/null; then
15481  if test -s conftest.err; then
15482    ac_cpp_err=$ac_c_preproc_warn_flag
15483    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484  else
15485    ac_cpp_err=
15486  fi
15487else
15488  ac_cpp_err=yes
15489fi
15490if test -z "$ac_cpp_err"; then
15491  ac_header_preproc=yes
15492else
15493  echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496  ac_header_preproc=no
15497fi
15498
15499rm -f conftest.err conftest.$ac_ext
15500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501echo "${ECHO_T}$ac_header_preproc" >&6; }
15502
15503# So?  What about this header?
15504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505  yes:no: )
15506    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510    ac_header_preproc=yes
15511    ;;
15512  no:yes:* )
15513    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15516echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15517    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15520echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525    ( cat <<\_ASBOX
15526## ------------------------------------ ##
15527## Report this to http://llvm.org/bugs/ ##
15528## ------------------------------------ ##
15529_ASBOX
15530     ) | sed "s/^/$as_me: WARNING:     /" >&2
15531    ;;
15532esac
15533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536  echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538  eval "$as_ac_Header=\$ac_header_preproc"
15539fi
15540ac_res=`eval echo '${'$as_ac_Header'}'`
15541	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15542echo "${ECHO_T}$ac_res" >&6; }
15543
15544fi
15545if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546  cat >>confdefs.h <<_ACEOF
15547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15548_ACEOF
15549
15550fi
15551
15552done
15553
15554if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15555
15556for ac_header in pthread.h
15557do
15558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15560  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563  echo $ECHO_N "(cached) $ECHO_C" >&6
15564fi
15565ac_res=`eval echo '${'$as_ac_Header'}'`
15566	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15567echo "${ECHO_T}$ac_res" >&6; }
15568else
15569  # Is the header compilable?
15570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h.  */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h.  */
15578$ac_includes_default
15579#include <$ac_header>
15580_ACEOF
15581rm -f conftest.$ac_objext
15582if { (ac_try="$ac_compile"
15583case "(($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_compile") 2>conftest.er1
15589  ac_status=$?
15590  grep -v '^ *+' conftest.er1 >conftest.err
15591  rm -f conftest.er1
15592  cat conftest.err >&5
15593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594  (exit $ac_status); } &&
15595	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596  { (case "(($ac_try" in
15597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598  *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601  (eval "$ac_try") 2>&5
15602  ac_status=$?
15603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604  (exit $ac_status); }; } &&
15605	 { ac_try='test -s conftest.$ac_objext'
15606  { (case "(($ac_try" in
15607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608  *) ac_try_echo=$ac_try;;
15609esac
15610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611  (eval "$ac_try") 2>&5
15612  ac_status=$?
15613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614  (exit $ac_status); }; }; then
15615  ac_header_compiler=yes
15616else
15617  echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620	ac_header_compiler=no
15621fi
15622
15623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625echo "${ECHO_T}$ac_header_compiler" >&6; }
15626
15627# Is the header present?
15628{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15630cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h.  */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h.  */
15636#include <$ac_header>
15637_ACEOF
15638if { (ac_try="$ac_cpp conftest.$ac_ext"
15639case "(($ac_try" in
15640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641  *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645  ac_status=$?
15646  grep -v '^ *+' conftest.er1 >conftest.err
15647  rm -f conftest.er1
15648  cat conftest.err >&5
15649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650  (exit $ac_status); } >/dev/null; then
15651  if test -s conftest.err; then
15652    ac_cpp_err=$ac_c_preproc_warn_flag
15653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15654  else
15655    ac_cpp_err=
15656  fi
15657else
15658  ac_cpp_err=yes
15659fi
15660if test -z "$ac_cpp_err"; then
15661  ac_header_preproc=yes
15662else
15663  echo "$as_me: failed program was:" >&5
15664sed 's/^/| /' conftest.$ac_ext >&5
15665
15666  ac_header_preproc=no
15667fi
15668
15669rm -f conftest.err conftest.$ac_ext
15670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15671echo "${ECHO_T}$ac_header_preproc" >&6; }
15672
15673# So?  What about this header?
15674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15675  yes:no: )
15676    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15680    ac_header_preproc=yes
15681    ;;
15682  no:yes:* )
15683    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15686echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15687    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15689    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15690echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15695    ( cat <<\_ASBOX
15696## ------------------------------------ ##
15697## Report this to http://llvm.org/bugs/ ##
15698## ------------------------------------ ##
15699_ASBOX
15700     ) | sed "s/^/$as_me: WARNING:     /" >&2
15701    ;;
15702esac
15703{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706  echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708  eval "$as_ac_Header=\$ac_header_preproc"
15709fi
15710ac_res=`eval echo '${'$as_ac_Header'}'`
15711	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15712echo "${ECHO_T}$ac_res" >&6; }
15713
15714fi
15715if test `eval echo '${'$as_ac_Header'}'` = yes; then
15716  cat >>confdefs.h <<_ACEOF
15717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15718_ACEOF
15719 HAVE_PTHREAD=1
15720
15721else
15722  HAVE_PTHREAD=0
15723
15724fi
15725
15726done
15727
15728else
15729  HAVE_PTHREAD=0
15730
15731fi
15732
15733if test "$llvm_cv_enable_libffi" = "yes" ; then
15734
15735
15736for ac_header in ffi.h ffi/ffi.h
15737do
15738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15740  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743  echo $ECHO_N "(cached) $ECHO_C" >&6
15744fi
15745ac_res=`eval echo '${'$as_ac_Header'}'`
15746	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15747echo "${ECHO_T}$ac_res" >&6; }
15748else
15749  # Is the header compilable?
15750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15752cat >conftest.$ac_ext <<_ACEOF
15753/* confdefs.h.  */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h.  */
15758$ac_includes_default
15759#include <$ac_header>
15760_ACEOF
15761rm -f conftest.$ac_objext
15762if { (ac_try="$ac_compile"
15763case "(($ac_try" in
15764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765  *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768  (eval "$ac_compile") 2>conftest.er1
15769  ac_status=$?
15770  grep -v '^ *+' conftest.er1 >conftest.err
15771  rm -f conftest.er1
15772  cat conftest.err >&5
15773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774  (exit $ac_status); } &&
15775	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15776  { (case "(($ac_try" in
15777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778  *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781  (eval "$ac_try") 2>&5
15782  ac_status=$?
15783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784  (exit $ac_status); }; } &&
15785	 { ac_try='test -s conftest.$ac_objext'
15786  { (case "(($ac_try" in
15787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788  *) ac_try_echo=$ac_try;;
15789esac
15790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791  (eval "$ac_try") 2>&5
15792  ac_status=$?
15793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794  (exit $ac_status); }; }; then
15795  ac_header_compiler=yes
15796else
15797  echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800	ac_header_compiler=no
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805echo "${ECHO_T}$ac_header_compiler" >&6; }
15806
15807# Is the header present?
15808{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15810cat >conftest.$ac_ext <<_ACEOF
15811/* confdefs.h.  */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h.  */
15816#include <$ac_header>
15817_ACEOF
15818if { (ac_try="$ac_cpp conftest.$ac_ext"
15819case "(($ac_try" in
15820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821  *) ac_try_echo=$ac_try;;
15822esac
15823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15825  ac_status=$?
15826  grep -v '^ *+' conftest.er1 >conftest.err
15827  rm -f conftest.er1
15828  cat conftest.err >&5
15829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830  (exit $ac_status); } >/dev/null; then
15831  if test -s conftest.err; then
15832    ac_cpp_err=$ac_c_preproc_warn_flag
15833    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15834  else
15835    ac_cpp_err=
15836  fi
15837else
15838  ac_cpp_err=yes
15839fi
15840if test -z "$ac_cpp_err"; then
15841  ac_header_preproc=yes
15842else
15843  echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846  ac_header_preproc=no
15847fi
15848
15849rm -f conftest.err conftest.$ac_ext
15850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851echo "${ECHO_T}$ac_header_preproc" >&6; }
15852
15853# So?  What about this header?
15854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855  yes:no: )
15856    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860    ac_header_preproc=yes
15861    ;;
15862  no:yes:* )
15863    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15866echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15867    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15870echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15871    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875    ( cat <<\_ASBOX
15876## ------------------------------------ ##
15877## Report this to http://llvm.org/bugs/ ##
15878## ------------------------------------ ##
15879_ASBOX
15880     ) | sed "s/^/$as_me: WARNING:     /" >&2
15881    ;;
15882esac
15883{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886  echo $ECHO_N "(cached) $ECHO_C" >&6
15887else
15888  eval "$as_ac_Header=\$ac_header_preproc"
15889fi
15890ac_res=`eval echo '${'$as_ac_Header'}'`
15891	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15892echo "${ECHO_T}$ac_res" >&6; }
15893
15894fi
15895if test `eval echo '${'$as_ac_Header'}'` = yes; then
15896  cat >>confdefs.h <<_ACEOF
15897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15898_ACEOF
15899
15900fi
15901
15902done
15903
15904fi
15905
15906
15907for ac_header in CrashReporterClient.h
15908do
15909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15911  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914  echo $ECHO_N "(cached) $ECHO_C" >&6
15915fi
15916ac_res=`eval echo '${'$as_ac_Header'}'`
15917	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15918echo "${ECHO_T}$ac_res" >&6; }
15919else
15920  # Is the header compilable?
15921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15923cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h.  */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h.  */
15929$ac_includes_default
15930#include <$ac_header>
15931_ACEOF
15932rm -f conftest.$ac_objext
15933if { (ac_try="$ac_compile"
15934case "(($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_compile") 2>conftest.er1
15940  ac_status=$?
15941  grep -v '^ *+' conftest.er1 >conftest.err
15942  rm -f conftest.er1
15943  cat conftest.err >&5
15944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945  (exit $ac_status); } &&
15946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947  { (case "(($ac_try" in
15948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949  *) ac_try_echo=$ac_try;;
15950esac
15951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952  (eval "$ac_try") 2>&5
15953  ac_status=$?
15954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955  (exit $ac_status); }; } &&
15956	 { ac_try='test -s conftest.$ac_objext'
15957  { (case "(($ac_try" in
15958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959  *) ac_try_echo=$ac_try;;
15960esac
15961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962  (eval "$ac_try") 2>&5
15963  ac_status=$?
15964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965  (exit $ac_status); }; }; then
15966  ac_header_compiler=yes
15967else
15968  echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971	ac_header_compiler=no
15972fi
15973
15974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976echo "${ECHO_T}$ac_header_compiler" >&6; }
15977
15978# Is the header present?
15979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15981cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h.  */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h.  */
15987#include <$ac_header>
15988_ACEOF
15989if { (ac_try="$ac_cpp conftest.$ac_ext"
15990case "(($ac_try" in
15991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992  *) ac_try_echo=$ac_try;;
15993esac
15994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15996  ac_status=$?
15997  grep -v '^ *+' conftest.er1 >conftest.err
15998  rm -f conftest.er1
15999  cat conftest.err >&5
16000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001  (exit $ac_status); } >/dev/null; then
16002  if test -s conftest.err; then
16003    ac_cpp_err=$ac_c_preproc_warn_flag
16004    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16005  else
16006    ac_cpp_err=
16007  fi
16008else
16009  ac_cpp_err=yes
16010fi
16011if test -z "$ac_cpp_err"; then
16012  ac_header_preproc=yes
16013else
16014  echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017  ac_header_preproc=no
16018fi
16019
16020rm -f conftest.err conftest.$ac_ext
16021{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16022echo "${ECHO_T}$ac_header_preproc" >&6; }
16023
16024# So?  What about this header?
16025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16026  yes:no: )
16027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16031    ac_header_preproc=yes
16032    ;;
16033  no:yes:* )
16034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16046    ( cat <<\_ASBOX
16047## ------------------------------------ ##
16048## Report this to http://llvm.org/bugs/ ##
16049## ------------------------------------ ##
16050_ASBOX
16051     ) | sed "s/^/$as_me: WARNING:     /" >&2
16052    ;;
16053esac
16054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057  echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059  eval "$as_ac_Header=\$ac_header_preproc"
16060fi
16061ac_res=`eval echo '${'$as_ac_Header'}'`
16062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16063echo "${ECHO_T}$ac_res" >&6; }
16064
16065fi
16066if test `eval echo '${'$as_ac_Header'}'` = yes; then
16067  cat >>confdefs.h <<_ACEOF
16068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16069_ACEOF
16070
16071fi
16072
16073done
16074
16075
16076{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16077echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16078cat >conftest.$ac_ext <<_ACEOF
16079/* confdefs.h.  */
16080_ACEOF
16081cat confdefs.h >>conftest.$ac_ext
16082cat >>conftest.$ac_ext <<_ACEOF
16083/* end confdefs.h.  */
16084extern const char *__crashreporter_info__;
16085      int main() {
16086        __crashreporter_info__ = "test";
16087        return 0;
16088      }
16089
16090_ACEOF
16091rm -f conftest.$ac_objext conftest$ac_exeext
16092if { (ac_try="$ac_link"
16093case "(($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_link") 2>conftest.er1
16099  ac_status=$?
16100  grep -v '^ *+' conftest.er1 >conftest.err
16101  rm -f conftest.er1
16102  cat conftest.err >&5
16103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104  (exit $ac_status); } &&
16105	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106  { (case "(($ac_try" in
16107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108  *) ac_try_echo=$ac_try;;
16109esac
16110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111  (eval "$ac_try") 2>&5
16112  ac_status=$?
16113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114  (exit $ac_status); }; } &&
16115	 { ac_try='test -s conftest$ac_exeext'
16116  { (case "(($ac_try" in
16117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118  *) ac_try_echo=$ac_try;;
16119esac
16120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121  (eval "$ac_try") 2>&5
16122  ac_status=$?
16123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124  (exit $ac_status); }; }; then
16125  { echo "$as_me:$LINENO: result: yes" >&5
16126echo "${ECHO_T}yes" >&6; }
16127
16128cat >>confdefs.h <<\_ACEOF
16129#define HAVE_CRASHREPORTER_INFO 1
16130_ACEOF
16131
16132else
16133  echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136	{ echo "$as_me:$LINENO: result: no" >&5
16137echo "${ECHO_T}no" >&6; }
16138
16139cat >>confdefs.h <<\_ACEOF
16140#define HAVE_CRASHREPORTER_INFO 0
16141_ACEOF
16142
16143fi
16144
16145rm -f core conftest.err conftest.$ac_objext \
16146      conftest$ac_exeext conftest.$ac_ext
16147
16148
16149
16150
16151  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16152echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16153if test "${ac_cv_huge_val_sanity+set}" = set; then
16154  echo $ECHO_N "(cached) $ECHO_C" >&6
16155else
16156
16157    ac_ext=cpp
16158ac_cpp='$CXXCPP $CPPFLAGS'
16159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16162
16163    ac_save_CXXFLAGS=$CXXFLAGS
16164    CXXFLAGS=-pedantic
16165    if test "$cross_compiling" = yes; then
16166  ac_cv_huge_val_sanity=yes
16167else
16168  cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h.  */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h.  */
16174#include <math.h>
16175int
16176main ()
16177{
16178double x = HUGE_VAL; return x != x;
16179  ;
16180  return 0;
16181}
16182_ACEOF
16183rm -f conftest$ac_exeext
16184if { (ac_try="$ac_link"
16185case "(($ac_try" in
16186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187  *) ac_try_echo=$ac_try;;
16188esac
16189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190  (eval "$ac_link") 2>&5
16191  ac_status=$?
16192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16194  { (case "(($ac_try" in
16195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196  *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199  (eval "$ac_try") 2>&5
16200  ac_status=$?
16201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202  (exit $ac_status); }; }; then
16203  ac_cv_huge_val_sanity=yes
16204else
16205  echo "$as_me: program exited with status $ac_status" >&5
16206echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209( exit $ac_status )
16210ac_cv_huge_val_sanity=no
16211fi
16212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213fi
16214
16215
16216    CXXFLAGS=$ac_save_CXXFLAGS
16217    ac_ext=c
16218ac_cpp='$CPP $CPPFLAGS'
16219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221ac_compiler_gnu=$ac_cv_c_compiler_gnu
16222
16223
16224fi
16225{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16226echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16227  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16228
16229
16230{ echo "$as_me:$LINENO: checking for pid_t" >&5
16231echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16232if test "${ac_cv_type_pid_t+set}" = set; then
16233  echo $ECHO_N "(cached) $ECHO_C" >&6
16234else
16235  cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h.  */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h.  */
16241$ac_includes_default
16242typedef pid_t ac__type_new_;
16243int
16244main ()
16245{
16246if ((ac__type_new_ *) 0)
16247  return 0;
16248if (sizeof (ac__type_new_))
16249  return 0;
16250  ;
16251  return 0;
16252}
16253_ACEOF
16254rm -f conftest.$ac_objext
16255if { (ac_try="$ac_compile"
16256case "(($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_compile") 2>conftest.er1
16262  ac_status=$?
16263  grep -v '^ *+' conftest.er1 >conftest.err
16264  rm -f conftest.er1
16265  cat conftest.err >&5
16266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267  (exit $ac_status); } &&
16268	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269  { (case "(($ac_try" in
16270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271  *) ac_try_echo=$ac_try;;
16272esac
16273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274  (eval "$ac_try") 2>&5
16275  ac_status=$?
16276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277  (exit $ac_status); }; } &&
16278	 { ac_try='test -s conftest.$ac_objext'
16279  { (case "(($ac_try" in
16280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281  *) ac_try_echo=$ac_try;;
16282esac
16283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284  (eval "$ac_try") 2>&5
16285  ac_status=$?
16286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287  (exit $ac_status); }; }; then
16288  ac_cv_type_pid_t=yes
16289else
16290  echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293	ac_cv_type_pid_t=no
16294fi
16295
16296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297fi
16298{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16299echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16300if test $ac_cv_type_pid_t = yes; then
16301  :
16302else
16303
16304cat >>confdefs.h <<_ACEOF
16305#define pid_t int
16306_ACEOF
16307
16308fi
16309
16310{ echo "$as_me:$LINENO: checking for size_t" >&5
16311echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16312if test "${ac_cv_type_size_t+set}" = set; then
16313  echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315  cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h.  */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h.  */
16321$ac_includes_default
16322typedef size_t ac__type_new_;
16323int
16324main ()
16325{
16326if ((ac__type_new_ *) 0)
16327  return 0;
16328if (sizeof (ac__type_new_))
16329  return 0;
16330  ;
16331  return 0;
16332}
16333_ACEOF
16334rm -f conftest.$ac_objext
16335if { (ac_try="$ac_compile"
16336case "(($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_compile") 2>conftest.er1
16342  ac_status=$?
16343  grep -v '^ *+' conftest.er1 >conftest.err
16344  rm -f conftest.er1
16345  cat conftest.err >&5
16346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347  (exit $ac_status); } &&
16348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349  { (case "(($ac_try" in
16350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351  *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354  (eval "$ac_try") 2>&5
16355  ac_status=$?
16356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357  (exit $ac_status); }; } &&
16358	 { ac_try='test -s conftest.$ac_objext'
16359  { (case "(($ac_try" in
16360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361  *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364  (eval "$ac_try") 2>&5
16365  ac_status=$?
16366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367  (exit $ac_status); }; }; then
16368  ac_cv_type_size_t=yes
16369else
16370  echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373	ac_cv_type_size_t=no
16374fi
16375
16376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377fi
16378{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16379echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16380if test $ac_cv_type_size_t = yes; then
16381  :
16382else
16383
16384cat >>confdefs.h <<_ACEOF
16385#define size_t unsigned int
16386_ACEOF
16387
16388fi
16389
16390
16391cat >>confdefs.h <<_ACEOF
16392#define RETSIGTYPE void
16393_ACEOF
16394
16395{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16396echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16397if test "${ac_cv_struct_tm+set}" = set; then
16398  echo $ECHO_N "(cached) $ECHO_C" >&6
16399else
16400  cat >conftest.$ac_ext <<_ACEOF
16401/* confdefs.h.  */
16402_ACEOF
16403cat confdefs.h >>conftest.$ac_ext
16404cat >>conftest.$ac_ext <<_ACEOF
16405/* end confdefs.h.  */
16406#include <sys/types.h>
16407#include <time.h>
16408
16409int
16410main ()
16411{
16412struct tm *tp; tp->tm_sec;
16413  ;
16414  return 0;
16415}
16416_ACEOF
16417rm -f conftest.$ac_objext
16418if { (ac_try="$ac_compile"
16419case "(($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_compile") 2>conftest.er1
16425  ac_status=$?
16426  grep -v '^ *+' conftest.er1 >conftest.err
16427  rm -f conftest.er1
16428  cat conftest.err >&5
16429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430  (exit $ac_status); } &&
16431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16432  { (case "(($ac_try" in
16433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434  *) ac_try_echo=$ac_try;;
16435esac
16436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437  (eval "$ac_try") 2>&5
16438  ac_status=$?
16439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440  (exit $ac_status); }; } &&
16441	 { ac_try='test -s conftest.$ac_objext'
16442  { (case "(($ac_try" in
16443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444  *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447  (eval "$ac_try") 2>&5
16448  ac_status=$?
16449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450  (exit $ac_status); }; }; then
16451  ac_cv_struct_tm=time.h
16452else
16453  echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456	ac_cv_struct_tm=sys/time.h
16457fi
16458
16459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460fi
16461{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16462echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16463if test $ac_cv_struct_tm = sys/time.h; then
16464
16465cat >>confdefs.h <<\_ACEOF
16466#define TM_IN_SYS_TIME 1
16467_ACEOF
16468
16469fi
16470
16471{ echo "$as_me:$LINENO: checking for int64_t" >&5
16472echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16473if test "${ac_cv_type_int64_t+set}" = set; then
16474  echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476  cat >conftest.$ac_ext <<_ACEOF
16477/* confdefs.h.  */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h.  */
16482$ac_includes_default
16483typedef int64_t ac__type_new_;
16484int
16485main ()
16486{
16487if ((ac__type_new_ *) 0)
16488  return 0;
16489if (sizeof (ac__type_new_))
16490  return 0;
16491  ;
16492  return 0;
16493}
16494_ACEOF
16495rm -f conftest.$ac_objext
16496if { (ac_try="$ac_compile"
16497case "(($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_compile") 2>conftest.er1
16503  ac_status=$?
16504  grep -v '^ *+' conftest.er1 >conftest.err
16505  rm -f conftest.er1
16506  cat conftest.err >&5
16507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508  (exit $ac_status); } &&
16509	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510  { (case "(($ac_try" in
16511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512  *) ac_try_echo=$ac_try;;
16513esac
16514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515  (eval "$ac_try") 2>&5
16516  ac_status=$?
16517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518  (exit $ac_status); }; } &&
16519	 { ac_try='test -s conftest.$ac_objext'
16520  { (case "(($ac_try" in
16521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522  *) ac_try_echo=$ac_try;;
16523esac
16524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525  (eval "$ac_try") 2>&5
16526  ac_status=$?
16527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528  (exit $ac_status); }; }; then
16529  ac_cv_type_int64_t=yes
16530else
16531  echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534	ac_cv_type_int64_t=no
16535fi
16536
16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538fi
16539{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16540echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16541if test $ac_cv_type_int64_t = yes; then
16542
16543cat >>confdefs.h <<_ACEOF
16544#define HAVE_INT64_T 1
16545_ACEOF
16546
16547
16548else
16549  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16550echo "$as_me: error: Type int64_t required but not found" >&2;}
16551   { (exit 1); exit 1; }; }
16552fi
16553
16554{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16555echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16556if test "${ac_cv_type_uint64_t+set}" = set; then
16557  echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559  cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h.  */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h.  */
16565$ac_includes_default
16566typedef uint64_t ac__type_new_;
16567int
16568main ()
16569{
16570if ((ac__type_new_ *) 0)
16571  return 0;
16572if (sizeof (ac__type_new_))
16573  return 0;
16574  ;
16575  return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (ac_try="$ac_compile"
16580case "(($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_compile") 2>conftest.er1
16586  ac_status=$?
16587  grep -v '^ *+' conftest.er1 >conftest.err
16588  rm -f conftest.er1
16589  cat conftest.err >&5
16590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591  (exit $ac_status); } &&
16592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593  { (case "(($ac_try" in
16594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595  *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598  (eval "$ac_try") 2>&5
16599  ac_status=$?
16600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601  (exit $ac_status); }; } &&
16602	 { ac_try='test -s conftest.$ac_objext'
16603  { (case "(($ac_try" in
16604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605  *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608  (eval "$ac_try") 2>&5
16609  ac_status=$?
16610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611  (exit $ac_status); }; }; then
16612  ac_cv_type_uint64_t=yes
16613else
16614  echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
16617	ac_cv_type_uint64_t=no
16618fi
16619
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621fi
16622{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16623echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16624if test $ac_cv_type_uint64_t = yes; then
16625
16626cat >>confdefs.h <<_ACEOF
16627#define HAVE_UINT64_T 1
16628_ACEOF
16629
16630
16631else
16632  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16633echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16634if test "${ac_cv_type_u_int64_t+set}" = set; then
16635  echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637  cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h.  */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h.  */
16643$ac_includes_default
16644typedef u_int64_t ac__type_new_;
16645int
16646main ()
16647{
16648if ((ac__type_new_ *) 0)
16649  return 0;
16650if (sizeof (ac__type_new_))
16651  return 0;
16652  ;
16653  return 0;
16654}
16655_ACEOF
16656rm -f conftest.$ac_objext
16657if { (ac_try="$ac_compile"
16658case "(($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_compile") 2>conftest.er1
16664  ac_status=$?
16665  grep -v '^ *+' conftest.er1 >conftest.err
16666  rm -f conftest.er1
16667  cat conftest.err >&5
16668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669  (exit $ac_status); } &&
16670	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671  { (case "(($ac_try" in
16672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673  *) ac_try_echo=$ac_try;;
16674esac
16675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676  (eval "$ac_try") 2>&5
16677  ac_status=$?
16678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679  (exit $ac_status); }; } &&
16680	 { ac_try='test -s conftest.$ac_objext'
16681  { (case "(($ac_try" in
16682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683  *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686  (eval "$ac_try") 2>&5
16687  ac_status=$?
16688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689  (exit $ac_status); }; }; then
16690  ac_cv_type_u_int64_t=yes
16691else
16692  echo "$as_me: failed program was:" >&5
16693sed 's/^/| /' conftest.$ac_ext >&5
16694
16695	ac_cv_type_u_int64_t=no
16696fi
16697
16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699fi
16700{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16701echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16702if test $ac_cv_type_u_int64_t = yes; then
16703
16704cat >>confdefs.h <<_ACEOF
16705#define HAVE_U_INT64_T 1
16706_ACEOF
16707
16708
16709else
16710  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16711echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16712   { (exit 1); exit 1; }; }
16713fi
16714
16715fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16727do
16728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16732  echo $ECHO_N "(cached) $ECHO_C" >&6
16733else
16734  cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h.  */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h.  */
16740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16742#define $ac_func innocuous_$ac_func
16743
16744/* System header to define __stub macros and hopefully few prototypes,
16745    which can conflict with char $ac_func (); below.
16746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747    <limits.h> exists even on freestanding compilers.  */
16748
16749#ifdef __STDC__
16750# include <limits.h>
16751#else
16752# include <assert.h>
16753#endif
16754
16755#undef $ac_func
16756
16757/* Override any GCC internal prototype to avoid an error.
16758   Use char because int might match the return type of a GCC
16759   builtin and then its argument prototype would still apply.  */
16760#ifdef __cplusplus
16761extern "C"
16762#endif
16763char $ac_func ();
16764/* The GNU C library defines this for functions which it implements
16765    to always fail with ENOSYS.  Some functions are actually named
16766    something starting with __ and the normal name is an alias.  */
16767#if defined __stub_$ac_func || defined __stub___$ac_func
16768choke me
16769#endif
16770
16771int
16772main ()
16773{
16774return $ac_func ();
16775  ;
16776  return 0;
16777}
16778_ACEOF
16779rm -f conftest.$ac_objext conftest$ac_exeext
16780if { (ac_try="$ac_link"
16781case "(($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_link") 2>conftest.er1
16787  ac_status=$?
16788  grep -v '^ *+' conftest.er1 >conftest.err
16789  rm -f conftest.er1
16790  cat conftest.err >&5
16791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792  (exit $ac_status); } &&
16793	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794  { (case "(($ac_try" in
16795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796  *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799  (eval "$ac_try") 2>&5
16800  ac_status=$?
16801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802  (exit $ac_status); }; } &&
16803	 { ac_try='test -s conftest$ac_exeext'
16804  { (case "(($ac_try" in
16805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806  *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809  (eval "$ac_try") 2>&5
16810  ac_status=$?
16811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812  (exit $ac_status); }; }; then
16813  eval "$as_ac_var=yes"
16814else
16815  echo "$as_me: failed program was:" >&5
16816sed 's/^/| /' conftest.$ac_ext >&5
16817
16818	eval "$as_ac_var=no"
16819fi
16820
16821rm -f core conftest.err conftest.$ac_objext \
16822      conftest$ac_exeext conftest.$ac_ext
16823fi
16824ac_res=`eval echo '${'$as_ac_var'}'`
16825	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16826echo "${ECHO_T}$ac_res" >&6; }
16827if test `eval echo '${'$as_ac_var'}'` = yes; then
16828  cat >>confdefs.h <<_ACEOF
16829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16830_ACEOF
16831
16832fi
16833done
16834
16835
16836
16837
16838
16839for ac_func in powf fmodf strtof round
16840do
16841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16845  echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847  cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h.  */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h.  */
16853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16855#define $ac_func innocuous_$ac_func
16856
16857/* System header to define __stub macros and hopefully few prototypes,
16858    which can conflict with char $ac_func (); below.
16859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860    <limits.h> exists even on freestanding compilers.  */
16861
16862#ifdef __STDC__
16863# include <limits.h>
16864#else
16865# include <assert.h>
16866#endif
16867
16868#undef $ac_func
16869
16870/* Override any GCC internal prototype to avoid an error.
16871   Use char because int might match the return type of a GCC
16872   builtin and then its argument prototype would still apply.  */
16873#ifdef __cplusplus
16874extern "C"
16875#endif
16876char $ac_func ();
16877/* The GNU C library defines this for functions which it implements
16878    to always fail with ENOSYS.  Some functions are actually named
16879    something starting with __ and the normal name is an alias.  */
16880#if defined __stub_$ac_func || defined __stub___$ac_func
16881choke me
16882#endif
16883
16884int
16885main ()
16886{
16887return $ac_func ();
16888  ;
16889  return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (ac_try="$ac_link"
16894case "(($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_link") 2>conftest.er1
16900  ac_status=$?
16901  grep -v '^ *+' conftest.er1 >conftest.err
16902  rm -f conftest.er1
16903  cat conftest.err >&5
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); } &&
16906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907  { (case "(($ac_try" in
16908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909  *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912  (eval "$ac_try") 2>&5
16913  ac_status=$?
16914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915  (exit $ac_status); }; } &&
16916	 { ac_try='test -s conftest$ac_exeext'
16917  { (case "(($ac_try" in
16918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919  *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922  (eval "$ac_try") 2>&5
16923  ac_status=$?
16924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925  (exit $ac_status); }; }; then
16926  eval "$as_ac_var=yes"
16927else
16928  echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931	eval "$as_ac_var=no"
16932fi
16933
16934rm -f core conftest.err conftest.$ac_objext \
16935      conftest$ac_exeext conftest.$ac_ext
16936fi
16937ac_res=`eval echo '${'$as_ac_var'}'`
16938	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16939echo "${ECHO_T}$ac_res" >&6; }
16940if test `eval echo '${'$as_ac_var'}'` = yes; then
16941  cat >>confdefs.h <<_ACEOF
16942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16943_ACEOF
16944
16945fi
16946done
16947
16948
16949
16950
16951
16952
16953for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16954do
16955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16956{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16959  echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961  cat >conftest.$ac_ext <<_ACEOF
16962/* confdefs.h.  */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h.  */
16967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16969#define $ac_func innocuous_$ac_func
16970
16971/* System header to define __stub macros and hopefully few prototypes,
16972    which can conflict with char $ac_func (); below.
16973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974    <limits.h> exists even on freestanding compilers.  */
16975
16976#ifdef __STDC__
16977# include <limits.h>
16978#else
16979# include <assert.h>
16980#endif
16981
16982#undef $ac_func
16983
16984/* Override any GCC internal prototype to avoid an error.
16985   Use char because int might match the return type of a GCC
16986   builtin and then its argument prototype would still apply.  */
16987#ifdef __cplusplus
16988extern "C"
16989#endif
16990char $ac_func ();
16991/* The GNU C library defines this for functions which it implements
16992    to always fail with ENOSYS.  Some functions are actually named
16993    something starting with __ and the normal name is an alias.  */
16994#if defined __stub_$ac_func || defined __stub___$ac_func
16995choke me
16996#endif
16997
16998int
16999main ()
17000{
17001return $ac_func ();
17002  ;
17003  return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext conftest$ac_exeext
17007if { (ac_try="$ac_link"
17008case "(($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_link") 2>conftest.er1
17014  ac_status=$?
17015  grep -v '^ *+' conftest.er1 >conftest.err
17016  rm -f conftest.er1
17017  cat conftest.err >&5
17018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019  (exit $ac_status); } &&
17020	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021  { (case "(($ac_try" in
17022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023  *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026  (eval "$ac_try") 2>&5
17027  ac_status=$?
17028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029  (exit $ac_status); }; } &&
17030	 { ac_try='test -s conftest$ac_exeext'
17031  { (case "(($ac_try" in
17032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033  *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036  (eval "$ac_try") 2>&5
17037  ac_status=$?
17038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039  (exit $ac_status); }; }; then
17040  eval "$as_ac_var=yes"
17041else
17042  echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045	eval "$as_ac_var=no"
17046fi
17047
17048rm -f core conftest.err conftest.$ac_objext \
17049      conftest$ac_exeext conftest.$ac_ext
17050fi
17051ac_res=`eval echo '${'$as_ac_var'}'`
17052	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17053echo "${ECHO_T}$ac_res" >&6; }
17054if test `eval echo '${'$as_ac_var'}'` = yes; then
17055  cat >>confdefs.h <<_ACEOF
17056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057_ACEOF
17058
17059fi
17060done
17061
17062
17063
17064
17065for ac_func in isatty mkdtemp mkstemp
17066do
17067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17071  echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073  cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h.  */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h.  */
17079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17081#define $ac_func innocuous_$ac_func
17082
17083/* System header to define __stub macros and hopefully few prototypes,
17084    which can conflict with char $ac_func (); below.
17085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086    <limits.h> exists even on freestanding compilers.  */
17087
17088#ifdef __STDC__
17089# include <limits.h>
17090#else
17091# include <assert.h>
17092#endif
17093
17094#undef $ac_func
17095
17096/* Override any GCC internal prototype to avoid an error.
17097   Use char because int might match the return type of a GCC
17098   builtin and then its argument prototype would still apply.  */
17099#ifdef __cplusplus
17100extern "C"
17101#endif
17102char $ac_func ();
17103/* The GNU C library defines this for functions which it implements
17104    to always fail with ENOSYS.  Some functions are actually named
17105    something starting with __ and the normal name is an alias.  */
17106#if defined __stub_$ac_func || defined __stub___$ac_func
17107choke me
17108#endif
17109
17110int
17111main ()
17112{
17113return $ac_func ();
17114  ;
17115  return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext conftest$ac_exeext
17119if { (ac_try="$ac_link"
17120case "(($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_link") 2>conftest.er1
17126  ac_status=$?
17127  grep -v '^ *+' conftest.er1 >conftest.err
17128  rm -f conftest.er1
17129  cat conftest.err >&5
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); } &&
17132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17133  { (case "(($ac_try" in
17134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135  *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138  (eval "$ac_try") 2>&5
17139  ac_status=$?
17140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141  (exit $ac_status); }; } &&
17142	 { ac_try='test -s conftest$ac_exeext'
17143  { (case "(($ac_try" in
17144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145  *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148  (eval "$ac_try") 2>&5
17149  ac_status=$?
17150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151  (exit $ac_status); }; }; then
17152  eval "$as_ac_var=yes"
17153else
17154  echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157	eval "$as_ac_var=no"
17158fi
17159
17160rm -f core conftest.err conftest.$ac_objext \
17161      conftest$ac_exeext conftest.$ac_ext
17162fi
17163ac_res=`eval echo '${'$as_ac_var'}'`
17164	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17165echo "${ECHO_T}$ac_res" >&6; }
17166if test `eval echo '${'$as_ac_var'}'` = yes; then
17167  cat >>confdefs.h <<_ACEOF
17168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169_ACEOF
17170
17171fi
17172done
17173
17174
17175
17176
17177
17178
17179
17180
17181for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17182do
17183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17186if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17187  echo $ECHO_N "(cached) $ECHO_C" >&6
17188else
17189  cat >conftest.$ac_ext <<_ACEOF
17190/* confdefs.h.  */
17191_ACEOF
17192cat confdefs.h >>conftest.$ac_ext
17193cat >>conftest.$ac_ext <<_ACEOF
17194/* end confdefs.h.  */
17195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17197#define $ac_func innocuous_$ac_func
17198
17199/* System header to define __stub macros and hopefully few prototypes,
17200    which can conflict with char $ac_func (); below.
17201    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202    <limits.h> exists even on freestanding compilers.  */
17203
17204#ifdef __STDC__
17205# include <limits.h>
17206#else
17207# include <assert.h>
17208#endif
17209
17210#undef $ac_func
17211
17212/* Override any GCC internal prototype to avoid an error.
17213   Use char because int might match the return type of a GCC
17214   builtin and then its argument prototype would still apply.  */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char $ac_func ();
17219/* The GNU C library defines this for functions which it implements
17220    to always fail with ENOSYS.  Some functions are actually named
17221    something starting with __ and the normal name is an alias.  */
17222#if defined __stub_$ac_func || defined __stub___$ac_func
17223choke me
17224#endif
17225
17226int
17227main ()
17228{
17229return $ac_func ();
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234rm -f conftest.$ac_objext conftest$ac_exeext
17235if { (ac_try="$ac_link"
17236case "(($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_link") 2>conftest.er1
17242  ac_status=$?
17243  grep -v '^ *+' conftest.er1 >conftest.err
17244  rm -f conftest.er1
17245  cat conftest.err >&5
17246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247  (exit $ac_status); } &&
17248	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249  { (case "(($ac_try" in
17250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251  *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254  (eval "$ac_try") 2>&5
17255  ac_status=$?
17256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257  (exit $ac_status); }; } &&
17258	 { ac_try='test -s conftest$ac_exeext'
17259  { (case "(($ac_try" in
17260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261  *) ac_try_echo=$ac_try;;
17262esac
17263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264  (eval "$ac_try") 2>&5
17265  ac_status=$?
17266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267  (exit $ac_status); }; }; then
17268  eval "$as_ac_var=yes"
17269else
17270  echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273	eval "$as_ac_var=no"
17274fi
17275
17276rm -f core conftest.err conftest.$ac_objext \
17277      conftest$ac_exeext conftest.$ac_ext
17278fi
17279ac_res=`eval echo '${'$as_ac_var'}'`
17280	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17281echo "${ECHO_T}$ac_res" >&6; }
17282if test `eval echo '${'$as_ac_var'}'` = yes; then
17283  cat >>confdefs.h <<_ACEOF
17284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17285_ACEOF
17286
17287fi
17288done
17289
17290
17291
17292
17293for ac_func in strerror strerror_r setenv
17294do
17295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17299  echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301  cat >conftest.$ac_ext <<_ACEOF
17302/* confdefs.h.  */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h.  */
17307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17309#define $ac_func innocuous_$ac_func
17310
17311/* System header to define __stub macros and hopefully few prototypes,
17312    which can conflict with char $ac_func (); below.
17313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314    <limits.h> exists even on freestanding compilers.  */
17315
17316#ifdef __STDC__
17317# include <limits.h>
17318#else
17319# include <assert.h>
17320#endif
17321
17322#undef $ac_func
17323
17324/* Override any GCC internal prototype to avoid an error.
17325   Use char because int might match the return type of a GCC
17326   builtin and then its argument prototype would still apply.  */
17327#ifdef __cplusplus
17328extern "C"
17329#endif
17330char $ac_func ();
17331/* The GNU C library defines this for functions which it implements
17332    to always fail with ENOSYS.  Some functions are actually named
17333    something starting with __ and the normal name is an alias.  */
17334#if defined __stub_$ac_func || defined __stub___$ac_func
17335choke me
17336#endif
17337
17338int
17339main ()
17340{
17341return $ac_func ();
17342  ;
17343  return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
17347if { (ac_try="$ac_link"
17348case "(($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_link") 2>conftest.er1
17354  ac_status=$?
17355  grep -v '^ *+' conftest.er1 >conftest.err
17356  rm -f conftest.er1
17357  cat conftest.err >&5
17358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359  (exit $ac_status); } &&
17360	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361  { (case "(($ac_try" in
17362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363  *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366  (eval "$ac_try") 2>&5
17367  ac_status=$?
17368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369  (exit $ac_status); }; } &&
17370	 { ac_try='test -s conftest$ac_exeext'
17371  { (case "(($ac_try" in
17372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373  *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376  (eval "$ac_try") 2>&5
17377  ac_status=$?
17378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379  (exit $ac_status); }; }; then
17380  eval "$as_ac_var=yes"
17381else
17382  echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385	eval "$as_ac_var=no"
17386fi
17387
17388rm -f core conftest.err conftest.$ac_objext \
17389      conftest$ac_exeext conftest.$ac_ext
17390fi
17391ac_res=`eval echo '${'$as_ac_var'}'`
17392	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17393echo "${ECHO_T}$ac_res" >&6; }
17394if test `eval echo '${'$as_ac_var'}'` = yes; then
17395  cat >>confdefs.h <<_ACEOF
17396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17397_ACEOF
17398
17399fi
17400done
17401
17402
17403
17404
17405
17406for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17407do
17408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17412  echo $ECHO_N "(cached) $ECHO_C" >&6
17413else
17414  cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h.  */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h.  */
17420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17422#define $ac_func innocuous_$ac_func
17423
17424/* System header to define __stub macros and hopefully few prototypes,
17425    which can conflict with char $ac_func (); below.
17426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17427    <limits.h> exists even on freestanding compilers.  */
17428
17429#ifdef __STDC__
17430# include <limits.h>
17431#else
17432# include <assert.h>
17433#endif
17434
17435#undef $ac_func
17436
17437/* Override any GCC internal prototype to avoid an error.
17438   Use char because int might match the return type of a GCC
17439   builtin and then its argument prototype would still apply.  */
17440#ifdef __cplusplus
17441extern "C"
17442#endif
17443char $ac_func ();
17444/* The GNU C library defines this for functions which it implements
17445    to always fail with ENOSYS.  Some functions are actually named
17446    something starting with __ and the normal name is an alias.  */
17447#if defined __stub_$ac_func || defined __stub___$ac_func
17448choke me
17449#endif
17450
17451int
17452main ()
17453{
17454return $ac_func ();
17455  ;
17456  return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext conftest$ac_exeext
17460if { (ac_try="$ac_link"
17461case "(($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_link") 2>conftest.er1
17467  ac_status=$?
17468  grep -v '^ *+' conftest.er1 >conftest.err
17469  rm -f conftest.er1
17470  cat conftest.err >&5
17471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472  (exit $ac_status); } &&
17473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474  { (case "(($ac_try" in
17475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476  *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479  (eval "$ac_try") 2>&5
17480  ac_status=$?
17481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482  (exit $ac_status); }; } &&
17483	 { ac_try='test -s conftest$ac_exeext'
17484  { (case "(($ac_try" in
17485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486  *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489  (eval "$ac_try") 2>&5
17490  ac_status=$?
17491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492  (exit $ac_status); }; }; then
17493  eval "$as_ac_var=yes"
17494else
17495  echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498	eval "$as_ac_var=no"
17499fi
17500
17501rm -f core conftest.err conftest.$ac_objext \
17502      conftest$ac_exeext conftest.$ac_ext
17503fi
17504ac_res=`eval echo '${'$as_ac_var'}'`
17505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17506echo "${ECHO_T}$ac_res" >&6; }
17507if test `eval echo '${'$as_ac_var'}'` = yes; then
17508  cat >>confdefs.h <<_ACEOF
17509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17510_ACEOF
17511
17512fi
17513done
17514
17515
17516
17517
17518
17519
17520for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17521do
17522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17526  echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528  cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h.  */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h.  */
17534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17536#define $ac_func innocuous_$ac_func
17537
17538/* System header to define __stub macros and hopefully few prototypes,
17539    which can conflict with char $ac_func (); below.
17540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541    <limits.h> exists even on freestanding compilers.  */
17542
17543#ifdef __STDC__
17544# include <limits.h>
17545#else
17546# include <assert.h>
17547#endif
17548
17549#undef $ac_func
17550
17551/* Override any GCC internal prototype to avoid an error.
17552   Use char because int might match the return type of a GCC
17553   builtin and then its argument prototype would still apply.  */
17554#ifdef __cplusplus
17555extern "C"
17556#endif
17557char $ac_func ();
17558/* The GNU C library defines this for functions which it implements
17559    to always fail with ENOSYS.  Some functions are actually named
17560    something starting with __ and the normal name is an alias.  */
17561#if defined __stub_$ac_func || defined __stub___$ac_func
17562choke me
17563#endif
17564
17565int
17566main ()
17567{
17568return $ac_func ();
17569  ;
17570  return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext conftest$ac_exeext
17574if { (ac_try="$ac_link"
17575case "(($ac_try" in
17576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577  *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580  (eval "$ac_link") 2>conftest.er1
17581  ac_status=$?
17582  grep -v '^ *+' conftest.er1 >conftest.err
17583  rm -f conftest.er1
17584  cat conftest.err >&5
17585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586  (exit $ac_status); } &&
17587	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588  { (case "(($ac_try" in
17589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590  *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593  (eval "$ac_try") 2>&5
17594  ac_status=$?
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); }; } &&
17597	 { ac_try='test -s conftest$ac_exeext'
17598  { (case "(($ac_try" in
17599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600  *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603  (eval "$ac_try") 2>&5
17604  ac_status=$?
17605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606  (exit $ac_status); }; }; then
17607  eval "$as_ac_var=yes"
17608else
17609  echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
17612	eval "$as_ac_var=no"
17613fi
17614
17615rm -f core conftest.err conftest.$ac_objext \
17616      conftest$ac_exeext conftest.$ac_ext
17617fi
17618ac_res=`eval echo '${'$as_ac_var'}'`
17619	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17620echo "${ECHO_T}$ac_res" >&6; }
17621if test `eval echo '${'$as_ac_var'}'` = yes; then
17622  cat >>confdefs.h <<_ACEOF
17623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17624_ACEOF
17625
17626fi
17627done
17628
17629{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17630echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17631if test "${llvm_cv_c_printf_a+set}" = set; then
17632  echo $ECHO_N "(cached) $ECHO_C" >&6
17633else
17634  ac_ext=c
17635ac_cpp='$CPP $CPPFLAGS'
17636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
17640 if test "$cross_compiling" = yes; then
17641  llvmac_cv_c_printf_a=no
17642else
17643  cat >conftest.$ac_ext <<_ACEOF
17644
17645  /* confdefs.h.  */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h.  */
17650
17651#include <stdio.h>
17652#include <stdlib.h>
17653
17654int
17655main ()
17656{
17657
17658volatile double A, B;
17659char Buffer[100];
17660A = 1;
17661A /= 10.0;
17662sprintf(Buffer, "%a", A);
17663B = atof(Buffer);
17664if (A != B)
17665  return (1);
17666if (A != 0x1.999999999999ap-4)
17667  return (1);
17668return (0);
17669  ;
17670  return 0;
17671}
17672_ACEOF
17673rm -f conftest$ac_exeext
17674if { (ac_try="$ac_link"
17675case "(($ac_try" in
17676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677  *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680  (eval "$ac_link") 2>&5
17681  ac_status=$?
17682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17684  { (case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689  (eval "$ac_try") 2>&5
17690  ac_status=$?
17691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692  (exit $ac_status); }; }; then
17693  llvm_cv_c_printf_a=yes
17694else
17695  echo "$as_me: program exited with status $ac_status" >&5
17696echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699( exit $ac_status )
17700llvmac_cv_c_printf_a=no
17701fi
17702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703fi
17704
17705
17706 ac_ext=c
17707ac_cpp='$CPP $CPPFLAGS'
17708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711
17712fi
17713{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17714echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17715 if test "$llvm_cv_c_printf_a" = "yes"; then
17716
17717cat >>confdefs.h <<\_ACEOF
17718#define HAVE_PRINTF_A 1
17719_ACEOF
17720
17721 fi
17722
17723
17724{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17725echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17726if test "${ac_cv_func_rand48+set}" = set; then
17727  echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729  ac_ext=cpp
17730ac_cpp='$CXXCPP $CPPFLAGS'
17731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17734
17735   cat >conftest.$ac_ext <<_ACEOF
17736/* confdefs.h.  */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
17740/* end confdefs.h.  */
17741#include <stdlib.h>
17742int
17743main ()
17744{
17745srand48(0);lrand48();drand48();
17746  ;
17747  return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext
17751if { (ac_try="$ac_compile"
17752case "(($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_compile") 2>conftest.er1
17758  ac_status=$?
17759  grep -v '^ *+' conftest.er1 >conftest.err
17760  rm -f conftest.er1
17761  cat conftest.err >&5
17762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763  (exit $ac_status); } &&
17764	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17765  { (case "(($ac_try" in
17766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767  *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770  (eval "$ac_try") 2>&5
17771  ac_status=$?
17772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773  (exit $ac_status); }; } &&
17774	 { ac_try='test -s conftest.$ac_objext'
17775  { (case "(($ac_try" in
17776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777  *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780  (eval "$ac_try") 2>&5
17781  ac_status=$?
17782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783  (exit $ac_status); }; }; then
17784  ac_cv_func_rand48=yes
17785else
17786  echo "$as_me: failed program was:" >&5
17787sed 's/^/| /' conftest.$ac_ext >&5
17788
17789	ac_cv_func_rand48=no
17790fi
17791
17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793  ac_ext=c
17794ac_cpp='$CPP $CPPFLAGS'
17795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799fi
17800{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17801echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17802
17803if test "$ac_cv_func_rand48" = "yes" ; then
17804
17805cat >>confdefs.h <<\_ACEOF
17806#define HAVE_RAND48 1
17807_ACEOF
17808
17809fi
17810
17811
17812{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17813echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17814if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17815  echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817  cat >conftest.$ac_ext <<_ACEOF
17818/* confdefs.h.  */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
17822/* end confdefs.h.  */
17823$ac_includes_default
17824int
17825main ()
17826{
17827#ifndef strerror_s
17828  char *p = (char *) strerror_s;
17829  return !p;
17830#endif
17831
17832  ;
17833  return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
17837if { (ac_try="$ac_compile"
17838case "(($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_compile") 2>conftest.er1
17844  ac_status=$?
17845  grep -v '^ *+' conftest.er1 >conftest.err
17846  rm -f conftest.er1
17847  cat conftest.err >&5
17848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849  (exit $ac_status); } &&
17850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851  { (case "(($ac_try" in
17852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853  *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856  (eval "$ac_try") 2>&5
17857  ac_status=$?
17858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859  (exit $ac_status); }; } &&
17860	 { ac_try='test -s conftest.$ac_objext'
17861  { (case "(($ac_try" in
17862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863  *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866  (eval "$ac_try") 2>&5
17867  ac_status=$?
17868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869  (exit $ac_status); }; }; then
17870  ac_cv_have_decl_strerror_s=yes
17871else
17872  echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875	ac_cv_have_decl_strerror_s=no
17876fi
17877
17878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879fi
17880{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17881echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17882if test $ac_cv_have_decl_strerror_s = yes; then
17883
17884cat >>confdefs.h <<_ACEOF
17885#define HAVE_DECL_STRERROR_S 1
17886_ACEOF
17887
17888
17889else
17890  cat >>confdefs.h <<_ACEOF
17891#define HAVE_DECL_STRERROR_S 0
17892_ACEOF
17893
17894
17895fi
17896
17897
17898
17899if test "$llvm_cv_os_type" = "MingW" ; then
17900  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17901echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17902if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17903  echo $ECHO_N "(cached) $ECHO_C" >&6
17904else
17905  ac_check_lib_save_LIBS=$LIBS
17906LIBS="-lgcc  $LIBS"
17907cat >conftest.$ac_ext <<_ACEOF
17908/* confdefs.h.  */
17909_ACEOF
17910cat confdefs.h >>conftest.$ac_ext
17911cat >>conftest.$ac_ext <<_ACEOF
17912/* end confdefs.h.  */
17913
17914/* Override any GCC internal prototype to avoid an error.
17915   Use char because int might match the return type of a GCC
17916   builtin and then its argument prototype would still apply.  */
17917#ifdef __cplusplus
17918extern "C"
17919#endif
17920char _alloca ();
17921int
17922main ()
17923{
17924return _alloca ();
17925  ;
17926  return 0;
17927}
17928_ACEOF
17929rm -f conftest.$ac_objext conftest$ac_exeext
17930if { (ac_try="$ac_link"
17931case "(($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_link") 2>conftest.er1
17937  ac_status=$?
17938  grep -v '^ *+' conftest.er1 >conftest.err
17939  rm -f conftest.er1
17940  cat conftest.err >&5
17941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942  (exit $ac_status); } &&
17943	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944  { (case "(($ac_try" in
17945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946  *) ac_try_echo=$ac_try;;
17947esac
17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949  (eval "$ac_try") 2>&5
17950  ac_status=$?
17951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952  (exit $ac_status); }; } &&
17953	 { ac_try='test -s conftest$ac_exeext'
17954  { (case "(($ac_try" in
17955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956  *) ac_try_echo=$ac_try;;
17957esac
17958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959  (eval "$ac_try") 2>&5
17960  ac_status=$?
17961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962  (exit $ac_status); }; }; then
17963  ac_cv_lib_gcc__alloca=yes
17964else
17965  echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968	ac_cv_lib_gcc__alloca=no
17969fi
17970
17971rm -f core conftest.err conftest.$ac_objext \
17972      conftest$ac_exeext conftest.$ac_ext
17973LIBS=$ac_check_lib_save_LIBS
17974fi
17975{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17976echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17977if test $ac_cv_lib_gcc__alloca = yes; then
17978
17979cat >>confdefs.h <<\_ACEOF
17980#define HAVE__ALLOCA 1
17981_ACEOF
17982
17983fi
17984
17985  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17986echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17987if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17988  echo $ECHO_N "(cached) $ECHO_C" >&6
17989else
17990  ac_check_lib_save_LIBS=$LIBS
17991LIBS="-lgcc  $LIBS"
17992cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h.  */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h.  */
17998
17999/* Override any GCC internal prototype to avoid an error.
18000   Use char because int might match the return type of a GCC
18001   builtin and then its argument prototype would still apply.  */
18002#ifdef __cplusplus
18003extern "C"
18004#endif
18005char __alloca ();
18006int
18007main ()
18008{
18009return __alloca ();
18010  ;
18011  return 0;
18012}
18013_ACEOF
18014rm -f conftest.$ac_objext conftest$ac_exeext
18015if { (ac_try="$ac_link"
18016case "(($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_link") 2>conftest.er1
18022  ac_status=$?
18023  grep -v '^ *+' conftest.er1 >conftest.err
18024  rm -f conftest.er1
18025  cat conftest.err >&5
18026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027  (exit $ac_status); } &&
18028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18029  { (case "(($ac_try" in
18030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031  *) ac_try_echo=$ac_try;;
18032esac
18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034  (eval "$ac_try") 2>&5
18035  ac_status=$?
18036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037  (exit $ac_status); }; } &&
18038	 { ac_try='test -s conftest$ac_exeext'
18039  { (case "(($ac_try" in
18040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041  *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044  (eval "$ac_try") 2>&5
18045  ac_status=$?
18046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047  (exit $ac_status); }; }; then
18048  ac_cv_lib_gcc___alloca=yes
18049else
18050  echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053	ac_cv_lib_gcc___alloca=no
18054fi
18055
18056rm -f core conftest.err conftest.$ac_objext \
18057      conftest$ac_exeext conftest.$ac_ext
18058LIBS=$ac_check_lib_save_LIBS
18059fi
18060{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18061echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18062if test $ac_cv_lib_gcc___alloca = yes; then
18063
18064cat >>confdefs.h <<\_ACEOF
18065#define HAVE___ALLOCA 1
18066_ACEOF
18067
18068fi
18069
18070  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18071echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18072if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18073  echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075  ac_check_lib_save_LIBS=$LIBS
18076LIBS="-lgcc  $LIBS"
18077cat >conftest.$ac_ext <<_ACEOF
18078/* confdefs.h.  */
18079_ACEOF
18080cat confdefs.h >>conftest.$ac_ext
18081cat >>conftest.$ac_ext <<_ACEOF
18082/* end confdefs.h.  */
18083
18084/* Override any GCC internal prototype to avoid an error.
18085   Use char because int might match the return type of a GCC
18086   builtin and then its argument prototype would still apply.  */
18087#ifdef __cplusplus
18088extern "C"
18089#endif
18090char __chkstk ();
18091int
18092main ()
18093{
18094return __chkstk ();
18095  ;
18096  return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext conftest$ac_exeext
18100if { (ac_try="$ac_link"
18101case "(($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_link") 2>conftest.er1
18107  ac_status=$?
18108  grep -v '^ *+' conftest.er1 >conftest.err
18109  rm -f conftest.er1
18110  cat conftest.err >&5
18111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112  (exit $ac_status); } &&
18113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114  { (case "(($ac_try" in
18115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116  *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119  (eval "$ac_try") 2>&5
18120  ac_status=$?
18121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122  (exit $ac_status); }; } &&
18123	 { ac_try='test -s conftest$ac_exeext'
18124  { (case "(($ac_try" in
18125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126  *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129  (eval "$ac_try") 2>&5
18130  ac_status=$?
18131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132  (exit $ac_status); }; }; then
18133  ac_cv_lib_gcc___chkstk=yes
18134else
18135  echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138	ac_cv_lib_gcc___chkstk=no
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext \
18142      conftest$ac_exeext conftest.$ac_ext
18143LIBS=$ac_check_lib_save_LIBS
18144fi
18145{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18146echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18147if test $ac_cv_lib_gcc___chkstk = yes; then
18148
18149cat >>confdefs.h <<\_ACEOF
18150#define HAVE___CHKSTK 1
18151_ACEOF
18152
18153fi
18154
18155  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18156echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18157if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18158  echo $ECHO_N "(cached) $ECHO_C" >&6
18159else
18160  ac_check_lib_save_LIBS=$LIBS
18161LIBS="-lgcc  $LIBS"
18162cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h.  */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h.  */
18168
18169/* Override any GCC internal prototype to avoid an error.
18170   Use char because int might match the return type of a GCC
18171   builtin and then its argument prototype would still apply.  */
18172#ifdef __cplusplus
18173extern "C"
18174#endif
18175char ___chkstk ();
18176int
18177main ()
18178{
18179return ___chkstk ();
18180  ;
18181  return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext conftest$ac_exeext
18185if { (ac_try="$ac_link"
18186case "(($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_link") 2>conftest.er1
18192  ac_status=$?
18193  grep -v '^ *+' conftest.er1 >conftest.err
18194  rm -f conftest.er1
18195  cat conftest.err >&5
18196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197  (exit $ac_status); } &&
18198	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199  { (case "(($ac_try" in
18200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201  *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204  (eval "$ac_try") 2>&5
18205  ac_status=$?
18206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207  (exit $ac_status); }; } &&
18208	 { ac_try='test -s conftest$ac_exeext'
18209  { (case "(($ac_try" in
18210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211  *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214  (eval "$ac_try") 2>&5
18215  ac_status=$?
18216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217  (exit $ac_status); }; }; then
18218  ac_cv_lib_gcc____chkstk=yes
18219else
18220  echo "$as_me: failed program was:" >&5
18221sed 's/^/| /' conftest.$ac_ext >&5
18222
18223	ac_cv_lib_gcc____chkstk=no
18224fi
18225
18226rm -f core conftest.err conftest.$ac_objext \
18227      conftest$ac_exeext conftest.$ac_ext
18228LIBS=$ac_check_lib_save_LIBS
18229fi
18230{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18231echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18232if test $ac_cv_lib_gcc____chkstk = yes; then
18233
18234cat >>confdefs.h <<\_ACEOF
18235#define HAVE____CHKSTK 1
18236_ACEOF
18237
18238fi
18239
18240
18241  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18242echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18243if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18244  echo $ECHO_N "(cached) $ECHO_C" >&6
18245else
18246  ac_check_lib_save_LIBS=$LIBS
18247LIBS="-lgcc  $LIBS"
18248cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h.  */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h.  */
18254
18255/* Override any GCC internal prototype to avoid an error.
18256   Use char because int might match the return type of a GCC
18257   builtin and then its argument prototype would still apply.  */
18258#ifdef __cplusplus
18259extern "C"
18260#endif
18261char __ashldi3 ();
18262int
18263main ()
18264{
18265return __ashldi3 ();
18266  ;
18267  return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext conftest$ac_exeext
18271if { (ac_try="$ac_link"
18272case "(($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_link") 2>conftest.er1
18278  ac_status=$?
18279  grep -v '^ *+' conftest.er1 >conftest.err
18280  rm -f conftest.er1
18281  cat conftest.err >&5
18282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283  (exit $ac_status); } &&
18284	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285  { (case "(($ac_try" in
18286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287  *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290  (eval "$ac_try") 2>&5
18291  ac_status=$?
18292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293  (exit $ac_status); }; } &&
18294	 { ac_try='test -s conftest$ac_exeext'
18295  { (case "(($ac_try" in
18296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297  *) ac_try_echo=$ac_try;;
18298esac
18299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300  (eval "$ac_try") 2>&5
18301  ac_status=$?
18302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303  (exit $ac_status); }; }; then
18304  ac_cv_lib_gcc___ashldi3=yes
18305else
18306  echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309	ac_cv_lib_gcc___ashldi3=no
18310fi
18311
18312rm -f core conftest.err conftest.$ac_objext \
18313      conftest$ac_exeext conftest.$ac_ext
18314LIBS=$ac_check_lib_save_LIBS
18315fi
18316{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18317echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18318if test $ac_cv_lib_gcc___ashldi3 = yes; then
18319
18320cat >>confdefs.h <<\_ACEOF
18321#define HAVE___ASHLDI3 1
18322_ACEOF
18323
18324fi
18325
18326  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18327echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18328if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18329  echo $ECHO_N "(cached) $ECHO_C" >&6
18330else
18331  ac_check_lib_save_LIBS=$LIBS
18332LIBS="-lgcc  $LIBS"
18333cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h.  */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h.  */
18339
18340/* Override any GCC internal prototype to avoid an error.
18341   Use char because int might match the return type of a GCC
18342   builtin and then its argument prototype would still apply.  */
18343#ifdef __cplusplus
18344extern "C"
18345#endif
18346char __ashrdi3 ();
18347int
18348main ()
18349{
18350return __ashrdi3 ();
18351  ;
18352  return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext conftest$ac_exeext
18356if { (ac_try="$ac_link"
18357case "(($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_link") 2>conftest.er1
18363  ac_status=$?
18364  grep -v '^ *+' conftest.er1 >conftest.err
18365  rm -f conftest.er1
18366  cat conftest.err >&5
18367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368  (exit $ac_status); } &&
18369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370  { (case "(($ac_try" in
18371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372  *) ac_try_echo=$ac_try;;
18373esac
18374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375  (eval "$ac_try") 2>&5
18376  ac_status=$?
18377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378  (exit $ac_status); }; } &&
18379	 { ac_try='test -s conftest$ac_exeext'
18380  { (case "(($ac_try" in
18381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382  *) ac_try_echo=$ac_try;;
18383esac
18384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385  (eval "$ac_try") 2>&5
18386  ac_status=$?
18387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388  (exit $ac_status); }; }; then
18389  ac_cv_lib_gcc___ashrdi3=yes
18390else
18391  echo "$as_me: failed program was:" >&5
18392sed 's/^/| /' conftest.$ac_ext >&5
18393
18394	ac_cv_lib_gcc___ashrdi3=no
18395fi
18396
18397rm -f core conftest.err conftest.$ac_objext \
18398      conftest$ac_exeext conftest.$ac_ext
18399LIBS=$ac_check_lib_save_LIBS
18400fi
18401{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18402echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18403if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18404
18405cat >>confdefs.h <<\_ACEOF
18406#define HAVE___ASHRDI3 1
18407_ACEOF
18408
18409fi
18410
18411  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18412echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18413if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18414  echo $ECHO_N "(cached) $ECHO_C" >&6
18415else
18416  ac_check_lib_save_LIBS=$LIBS
18417LIBS="-lgcc  $LIBS"
18418cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h.  */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h.  */
18424
18425/* Override any GCC internal prototype to avoid an error.
18426   Use char because int might match the return type of a GCC
18427   builtin and then its argument prototype would still apply.  */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char __divdi3 ();
18432int
18433main ()
18434{
18435return __divdi3 ();
18436  ;
18437  return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (ac_try="$ac_link"
18442case "(($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_link") 2>conftest.er1
18448  ac_status=$?
18449  grep -v '^ *+' conftest.er1 >conftest.err
18450  rm -f conftest.er1
18451  cat conftest.err >&5
18452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); } &&
18454	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455  { (case "(($ac_try" in
18456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457  *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460  (eval "$ac_try") 2>&5
18461  ac_status=$?
18462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); }; } &&
18464	 { ac_try='test -s conftest$ac_exeext'
18465  { (case "(($ac_try" in
18466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467  *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470  (eval "$ac_try") 2>&5
18471  ac_status=$?
18472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473  (exit $ac_status); }; }; then
18474  ac_cv_lib_gcc___divdi3=yes
18475else
18476  echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479	ac_cv_lib_gcc___divdi3=no
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext \
18483      conftest$ac_exeext conftest.$ac_ext
18484LIBS=$ac_check_lib_save_LIBS
18485fi
18486{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18487echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18488if test $ac_cv_lib_gcc___divdi3 = yes; then
18489
18490cat >>confdefs.h <<\_ACEOF
18491#define HAVE___DIVDI3 1
18492_ACEOF
18493
18494fi
18495
18496  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18497echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18498if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18499  echo $ECHO_N "(cached) $ECHO_C" >&6
18500else
18501  ac_check_lib_save_LIBS=$LIBS
18502LIBS="-lgcc  $LIBS"
18503cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h.  */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h.  */
18509
18510/* Override any GCC internal prototype to avoid an error.
18511   Use char because int might match the return type of a GCC
18512   builtin and then its argument prototype would still apply.  */
18513#ifdef __cplusplus
18514extern "C"
18515#endif
18516char __fixdfdi ();
18517int
18518main ()
18519{
18520return __fixdfdi ();
18521  ;
18522  return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext conftest$ac_exeext
18526if { (ac_try="$ac_link"
18527case "(($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_link") 2>conftest.er1
18533  ac_status=$?
18534  grep -v '^ *+' conftest.er1 >conftest.err
18535  rm -f conftest.er1
18536  cat conftest.err >&5
18537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538  (exit $ac_status); } &&
18539	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540  { (case "(($ac_try" in
18541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542  *) ac_try_echo=$ac_try;;
18543esac
18544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545  (eval "$ac_try") 2>&5
18546  ac_status=$?
18547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548  (exit $ac_status); }; } &&
18549	 { ac_try='test -s conftest$ac_exeext'
18550  { (case "(($ac_try" in
18551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552  *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555  (eval "$ac_try") 2>&5
18556  ac_status=$?
18557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558  (exit $ac_status); }; }; then
18559  ac_cv_lib_gcc___fixdfdi=yes
18560else
18561  echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564	ac_cv_lib_gcc___fixdfdi=no
18565fi
18566
18567rm -f core conftest.err conftest.$ac_objext \
18568      conftest$ac_exeext conftest.$ac_ext
18569LIBS=$ac_check_lib_save_LIBS
18570fi
18571{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18572echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18573if test $ac_cv_lib_gcc___fixdfdi = yes; then
18574
18575cat >>confdefs.h <<\_ACEOF
18576#define HAVE___FIXDFDI 1
18577_ACEOF
18578
18579fi
18580
18581  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18582echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18583if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18584  echo $ECHO_N "(cached) $ECHO_C" >&6
18585else
18586  ac_check_lib_save_LIBS=$LIBS
18587LIBS="-lgcc  $LIBS"
18588cat >conftest.$ac_ext <<_ACEOF
18589/* confdefs.h.  */
18590_ACEOF
18591cat confdefs.h >>conftest.$ac_ext
18592cat >>conftest.$ac_ext <<_ACEOF
18593/* end confdefs.h.  */
18594
18595/* Override any GCC internal prototype to avoid an error.
18596   Use char because int might match the return type of a GCC
18597   builtin and then its argument prototype would still apply.  */
18598#ifdef __cplusplus
18599extern "C"
18600#endif
18601char __fixsfdi ();
18602int
18603main ()
18604{
18605return __fixsfdi ();
18606  ;
18607  return 0;
18608}
18609_ACEOF
18610rm -f conftest.$ac_objext conftest$ac_exeext
18611if { (ac_try="$ac_link"
18612case "(($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_link") 2>conftest.er1
18618  ac_status=$?
18619  grep -v '^ *+' conftest.er1 >conftest.err
18620  rm -f conftest.er1
18621  cat conftest.err >&5
18622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623  (exit $ac_status); } &&
18624	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625  { (case "(($ac_try" in
18626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627  *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630  (eval "$ac_try") 2>&5
18631  ac_status=$?
18632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633  (exit $ac_status); }; } &&
18634	 { ac_try='test -s conftest$ac_exeext'
18635  { (case "(($ac_try" in
18636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637  *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640  (eval "$ac_try") 2>&5
18641  ac_status=$?
18642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643  (exit $ac_status); }; }; then
18644  ac_cv_lib_gcc___fixsfdi=yes
18645else
18646  echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649	ac_cv_lib_gcc___fixsfdi=no
18650fi
18651
18652rm -f core conftest.err conftest.$ac_objext \
18653      conftest$ac_exeext conftest.$ac_ext
18654LIBS=$ac_check_lib_save_LIBS
18655fi
18656{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18657echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18658if test $ac_cv_lib_gcc___fixsfdi = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define HAVE___FIXSFDI 1
18662_ACEOF
18663
18664fi
18665
18666  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18667echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18668if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18669  echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671  ac_check_lib_save_LIBS=$LIBS
18672LIBS="-lgcc  $LIBS"
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h.  */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h.  */
18679
18680/* Override any GCC internal prototype to avoid an error.
18681   Use char because int might match the return type of a GCC
18682   builtin and then its argument prototype would still apply.  */
18683#ifdef __cplusplus
18684extern "C"
18685#endif
18686char __floatdidf ();
18687int
18688main ()
18689{
18690return __floatdidf ();
18691  ;
18692  return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext conftest$ac_exeext
18696if { (ac_try="$ac_link"
18697case "(($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_link") 2>conftest.er1
18703  ac_status=$?
18704  grep -v '^ *+' conftest.er1 >conftest.err
18705  rm -f conftest.er1
18706  cat conftest.err >&5
18707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708  (exit $ac_status); } &&
18709	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710  { (case "(($ac_try" in
18711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712  *) ac_try_echo=$ac_try;;
18713esac
18714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715  (eval "$ac_try") 2>&5
18716  ac_status=$?
18717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718  (exit $ac_status); }; } &&
18719	 { ac_try='test -s conftest$ac_exeext'
18720  { (case "(($ac_try" in
18721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722  *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725  (eval "$ac_try") 2>&5
18726  ac_status=$?
18727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728  (exit $ac_status); }; }; then
18729  ac_cv_lib_gcc___floatdidf=yes
18730else
18731  echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734	ac_cv_lib_gcc___floatdidf=no
18735fi
18736
18737rm -f core conftest.err conftest.$ac_objext \
18738      conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18742echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18743if test $ac_cv_lib_gcc___floatdidf = yes; then
18744
18745cat >>confdefs.h <<\_ACEOF
18746#define HAVE___FLOATDIDF 1
18747_ACEOF
18748
18749fi
18750
18751  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18752echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18753if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18754  echo $ECHO_N "(cached) $ECHO_C" >&6
18755else
18756  ac_check_lib_save_LIBS=$LIBS
18757LIBS="-lgcc  $LIBS"
18758cat >conftest.$ac_ext <<_ACEOF
18759/* confdefs.h.  */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h.  */
18764
18765/* Override any GCC internal prototype to avoid an error.
18766   Use char because int might match the return type of a GCC
18767   builtin and then its argument prototype would still apply.  */
18768#ifdef __cplusplus
18769extern "C"
18770#endif
18771char __lshrdi3 ();
18772int
18773main ()
18774{
18775return __lshrdi3 ();
18776  ;
18777  return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext conftest$ac_exeext
18781if { (ac_try="$ac_link"
18782case "(($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_link") 2>conftest.er1
18788  ac_status=$?
18789  grep -v '^ *+' conftest.er1 >conftest.err
18790  rm -f conftest.er1
18791  cat conftest.err >&5
18792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793  (exit $ac_status); } &&
18794	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795  { (case "(($ac_try" in
18796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797  *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800  (eval "$ac_try") 2>&5
18801  ac_status=$?
18802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803  (exit $ac_status); }; } &&
18804	 { ac_try='test -s conftest$ac_exeext'
18805  { (case "(($ac_try" in
18806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807  *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810  (eval "$ac_try") 2>&5
18811  ac_status=$?
18812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813  (exit $ac_status); }; }; then
18814  ac_cv_lib_gcc___lshrdi3=yes
18815else
18816  echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819	ac_cv_lib_gcc___lshrdi3=no
18820fi
18821
18822rm -f core conftest.err conftest.$ac_objext \
18823      conftest$ac_exeext conftest.$ac_ext
18824LIBS=$ac_check_lib_save_LIBS
18825fi
18826{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18827echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18828if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18829
18830cat >>confdefs.h <<\_ACEOF
18831#define HAVE___LSHRDI3 1
18832_ACEOF
18833
18834fi
18835
18836  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18837echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18838if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18839  echo $ECHO_N "(cached) $ECHO_C" >&6
18840else
18841  ac_check_lib_save_LIBS=$LIBS
18842LIBS="-lgcc  $LIBS"
18843cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h.  */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h.  */
18849
18850/* Override any GCC internal prototype to avoid an error.
18851   Use char because int might match the return type of a GCC
18852   builtin and then its argument prototype would still apply.  */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856char __moddi3 ();
18857int
18858main ()
18859{
18860return __moddi3 ();
18861  ;
18862  return 0;
18863}
18864_ACEOF
18865rm -f conftest.$ac_objext conftest$ac_exeext
18866if { (ac_try="$ac_link"
18867case "(($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_link") 2>conftest.er1
18873  ac_status=$?
18874  grep -v '^ *+' conftest.er1 >conftest.err
18875  rm -f conftest.er1
18876  cat conftest.err >&5
18877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878  (exit $ac_status); } &&
18879	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880  { (case "(($ac_try" in
18881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882  *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885  (eval "$ac_try") 2>&5
18886  ac_status=$?
18887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888  (exit $ac_status); }; } &&
18889	 { ac_try='test -s conftest$ac_exeext'
18890  { (case "(($ac_try" in
18891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892  *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895  (eval "$ac_try") 2>&5
18896  ac_status=$?
18897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898  (exit $ac_status); }; }; then
18899  ac_cv_lib_gcc___moddi3=yes
18900else
18901  echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904	ac_cv_lib_gcc___moddi3=no
18905fi
18906
18907rm -f core conftest.err conftest.$ac_objext \
18908      conftest$ac_exeext conftest.$ac_ext
18909LIBS=$ac_check_lib_save_LIBS
18910fi
18911{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18912echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18913if test $ac_cv_lib_gcc___moddi3 = yes; then
18914
18915cat >>confdefs.h <<\_ACEOF
18916#define HAVE___MODDI3 1
18917_ACEOF
18918
18919fi
18920
18921  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18922echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18923if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18924  echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926  ac_check_lib_save_LIBS=$LIBS
18927LIBS="-lgcc  $LIBS"
18928cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h.  */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h.  */
18934
18935/* Override any GCC internal prototype to avoid an error.
18936   Use char because int might match the return type of a GCC
18937   builtin and then its argument prototype would still apply.  */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941char __udivdi3 ();
18942int
18943main ()
18944{
18945return __udivdi3 ();
18946  ;
18947  return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($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_link") 2>conftest.er1
18958  ac_status=$?
18959  grep -v '^ *+' conftest.er1 >conftest.err
18960  rm -f conftest.er1
18961  cat conftest.err >&5
18962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963  (exit $ac_status); } &&
18964	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965  { (case "(($ac_try" in
18966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967  *) ac_try_echo=$ac_try;;
18968esac
18969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970  (eval "$ac_try") 2>&5
18971  ac_status=$?
18972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973  (exit $ac_status); }; } &&
18974	 { ac_try='test -s conftest$ac_exeext'
18975  { (case "(($ac_try" in
18976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977  *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980  (eval "$ac_try") 2>&5
18981  ac_status=$?
18982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983  (exit $ac_status); }; }; then
18984  ac_cv_lib_gcc___udivdi3=yes
18985else
18986  echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989	ac_cv_lib_gcc___udivdi3=no
18990fi
18991
18992rm -f core conftest.err conftest.$ac_objext \
18993      conftest$ac_exeext conftest.$ac_ext
18994LIBS=$ac_check_lib_save_LIBS
18995fi
18996{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18997echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18998if test $ac_cv_lib_gcc___udivdi3 = yes; then
18999
19000cat >>confdefs.h <<\_ACEOF
19001#define HAVE___UDIVDI3 1
19002_ACEOF
19003
19004fi
19005
19006  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19007echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19008if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19009  echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011  ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lgcc  $LIBS"
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h.  */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h.  */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021   Use char because int might match the return type of a GCC
19022   builtin and then its argument prototype would still apply.  */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char __umoddi3 ();
19027int
19028main ()
19029{
19030return __umoddi3 ();
19031  ;
19032  return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($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_link") 2>conftest.er1
19043  ac_status=$?
19044  grep -v '^ *+' conftest.er1 >conftest.err
19045  rm -f conftest.er1
19046  cat conftest.err >&5
19047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048  (exit $ac_status); } &&
19049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050  { (case "(($ac_try" in
19051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052  *) ac_try_echo=$ac_try;;
19053esac
19054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055  (eval "$ac_try") 2>&5
19056  ac_status=$?
19057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058  (exit $ac_status); }; } &&
19059	 { ac_try='test -s conftest$ac_exeext'
19060  { (case "(($ac_try" in
19061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062  *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065  (eval "$ac_try") 2>&5
19066  ac_status=$?
19067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068  (exit $ac_status); }; }; then
19069  ac_cv_lib_gcc___umoddi3=yes
19070else
19071  echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074	ac_cv_lib_gcc___umoddi3=no
19075fi
19076
19077rm -f core conftest.err conftest.$ac_objext \
19078      conftest$ac_exeext conftest.$ac_ext
19079LIBS=$ac_check_lib_save_LIBS
19080fi
19081{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19082echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19083if test $ac_cv_lib_gcc___umoddi3 = yes; then
19084
19085cat >>confdefs.h <<\_ACEOF
19086#define HAVE___UMODDI3 1
19087_ACEOF
19088
19089fi
19090
19091
19092  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19093echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19094if test "${ac_cv_lib_gcc___main+set}" = set; then
19095  echo $ECHO_N "(cached) $ECHO_C" >&6
19096else
19097  ac_check_lib_save_LIBS=$LIBS
19098LIBS="-lgcc  $LIBS"
19099cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h.  */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h.  */
19105
19106/* Override any GCC internal prototype to avoid an error.
19107   Use char because int might match the return type of a GCC
19108   builtin and then its argument prototype would still apply.  */
19109#ifdef __cplusplus
19110extern "C"
19111#endif
19112char __main ();
19113int
19114main ()
19115{
19116return __main ();
19117  ;
19118  return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
19122if { (ac_try="$ac_link"
19123case "(($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_link") 2>conftest.er1
19129  ac_status=$?
19130  grep -v '^ *+' conftest.er1 >conftest.err
19131  rm -f conftest.er1
19132  cat conftest.err >&5
19133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134  (exit $ac_status); } &&
19135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136  { (case "(($ac_try" in
19137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138  *) ac_try_echo=$ac_try;;
19139esac
19140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141  (eval "$ac_try") 2>&5
19142  ac_status=$?
19143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144  (exit $ac_status); }; } &&
19145	 { ac_try='test -s conftest$ac_exeext'
19146  { (case "(($ac_try" in
19147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148  *) ac_try_echo=$ac_try;;
19149esac
19150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151  (eval "$ac_try") 2>&5
19152  ac_status=$?
19153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154  (exit $ac_status); }; }; then
19155  ac_cv_lib_gcc___main=yes
19156else
19157  echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160	ac_cv_lib_gcc___main=no
19161fi
19162
19163rm -f core conftest.err conftest.$ac_objext \
19164      conftest$ac_exeext conftest.$ac_ext
19165LIBS=$ac_check_lib_save_LIBS
19166fi
19167{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19168echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19169if test $ac_cv_lib_gcc___main = yes; then
19170
19171cat >>confdefs.h <<\_ACEOF
19172#define HAVE___MAIN 1
19173_ACEOF
19174
19175fi
19176
19177  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19178echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19179if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19180  echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182  ac_check_lib_save_LIBS=$LIBS
19183LIBS="-lgcc  $LIBS"
19184cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h.  */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h.  */
19190
19191/* Override any GCC internal prototype to avoid an error.
19192   Use char because int might match the return type of a GCC
19193   builtin and then its argument prototype would still apply.  */
19194#ifdef __cplusplus
19195extern "C"
19196#endif
19197char __cmpdi2 ();
19198int
19199main ()
19200{
19201return __cmpdi2 ();
19202  ;
19203  return 0;
19204}
19205_ACEOF
19206rm -f conftest.$ac_objext conftest$ac_exeext
19207if { (ac_try="$ac_link"
19208case "(($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_link") 2>conftest.er1
19214  ac_status=$?
19215  grep -v '^ *+' conftest.er1 >conftest.err
19216  rm -f conftest.er1
19217  cat conftest.err >&5
19218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219  (exit $ac_status); } &&
19220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19221  { (case "(($ac_try" in
19222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223  *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226  (eval "$ac_try") 2>&5
19227  ac_status=$?
19228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229  (exit $ac_status); }; } &&
19230	 { ac_try='test -s conftest$ac_exeext'
19231  { (case "(($ac_try" in
19232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233  *) ac_try_echo=$ac_try;;
19234esac
19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236  (eval "$ac_try") 2>&5
19237  ac_status=$?
19238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239  (exit $ac_status); }; }; then
19240  ac_cv_lib_gcc___cmpdi2=yes
19241else
19242  echo "$as_me: failed program was:" >&5
19243sed 's/^/| /' conftest.$ac_ext >&5
19244
19245	ac_cv_lib_gcc___cmpdi2=no
19246fi
19247
19248rm -f core conftest.err conftest.$ac_objext \
19249      conftest$ac_exeext conftest.$ac_ext
19250LIBS=$ac_check_lib_save_LIBS
19251fi
19252{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19253echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19254if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19255
19256cat >>confdefs.h <<\_ACEOF
19257#define HAVE___CMPDI2 1
19258_ACEOF
19259
19260fi
19261
19262fi
19263
19264if test "$llvm_cv_os_type" = "MingW" ; then
19265  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19266echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19267  cat >conftest.$ac_ext <<_ACEOF
19268#include <windows.h>
19269#include <imagehlp.h>
19270extern void foo(PENUMLOADED_MODULES_CALLBACK);
19271extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (ac_try="$ac_compile"
19275case "(($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_compile") 2>conftest.er1
19281  ac_status=$?
19282  grep -v '^ *+' conftest.er1 >conftest.err
19283  rm -f conftest.er1
19284  cat conftest.err >&5
19285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286  (exit $ac_status); } &&
19287	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288  { (case "(($ac_try" in
19289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290  *) ac_try_echo=$ac_try;;
19291esac
19292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293  (eval "$ac_try") 2>&5
19294  ac_status=$?
19295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296  (exit $ac_status); }; } &&
19297	 { ac_try='test -s conftest.$ac_objext'
19298  { (case "(($ac_try" in
19299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300  *) ac_try_echo=$ac_try;;
19301esac
19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303  (eval "$ac_try") 2>&5
19304  ac_status=$?
19305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306  (exit $ac_status); }; }; then
19307
19308  { echo "$as_me:$LINENO: result: yes" >&5
19309echo "${ECHO_T}yes" >&6; }
19310  llvm_cv_win32_elmcb_pcstr="PCSTR"
19311
19312else
19313  echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316
19317  { echo "$as_me:$LINENO: result: no" >&5
19318echo "${ECHO_T}no" >&6; }
19319  llvm_cv_win32_elmcb_pcstr="PSTR"
19320
19321fi
19322
19323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19324
19325cat >>confdefs.h <<_ACEOF
19326#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19327_ACEOF
19328
19329fi
19330
19331
19332{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19333echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19334if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19335  echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337  ac_ext=cpp
19338ac_cpp='$CXXCPP $CPPFLAGS'
19339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343   cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h.  */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h.  */
19349#include <math.h>
19350int
19351main ()
19352{
19353float f; isnan(f);
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
19359if { (ac_try="$ac_compile"
19360case "(($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_compile") 2>conftest.er1
19366  ac_status=$?
19367  grep -v '^ *+' conftest.er1 >conftest.err
19368  rm -f conftest.er1
19369  cat conftest.err >&5
19370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371  (exit $ac_status); } &&
19372	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373  { (case "(($ac_try" in
19374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375  *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378  (eval "$ac_try") 2>&5
19379  ac_status=$?
19380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381  (exit $ac_status); }; } &&
19382	 { ac_try='test -s conftest.$ac_objext'
19383  { (case "(($ac_try" in
19384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385  *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388  (eval "$ac_try") 2>&5
19389  ac_status=$?
19390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391  (exit $ac_status); }; }; then
19392  ac_cv_func_isnan_in_math_h=yes
19393else
19394  echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397	ac_cv_func_isnan_in_math_h=no
19398fi
19399
19400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401  ac_ext=c
19402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407fi
19408{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19409echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19410
19411
19412if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19413
19414cat >>confdefs.h <<\_ACEOF
19415#define HAVE_ISNAN_IN_MATH_H 1
19416_ACEOF
19417
19418fi
19419
19420{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19421echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19422if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19423  echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425  ac_ext=cpp
19426ac_cpp='$CXXCPP $CPPFLAGS'
19427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430
19431   cat >conftest.$ac_ext <<_ACEOF
19432/* confdefs.h.  */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h.  */
19437#include <cmath>
19438int
19439main ()
19440{
19441float f; isnan(f);
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446rm -f conftest.$ac_objext
19447if { (ac_try="$ac_compile"
19448case "(($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_compile") 2>conftest.er1
19454  ac_status=$?
19455  grep -v '^ *+' conftest.er1 >conftest.err
19456  rm -f conftest.er1
19457  cat conftest.err >&5
19458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459  (exit $ac_status); } &&
19460	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19461  { (case "(($ac_try" in
19462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463  *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466  (eval "$ac_try") 2>&5
19467  ac_status=$?
19468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469  (exit $ac_status); }; } &&
19470	 { ac_try='test -s conftest.$ac_objext'
19471  { (case "(($ac_try" in
19472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473  *) ac_try_echo=$ac_try;;
19474esac
19475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476  (eval "$ac_try") 2>&5
19477  ac_status=$?
19478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479  (exit $ac_status); }; }; then
19480  ac_cv_func_isnan_in_cmath=yes
19481else
19482  echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485	ac_cv_func_isnan_in_cmath=no
19486fi
19487
19488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489  ac_ext=c
19490ac_cpp='$CPP $CPPFLAGS'
19491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493ac_compiler_gnu=$ac_cv_c_compiler_gnu
19494
19495fi
19496{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19497echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19498
19499if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19500
19501cat >>confdefs.h <<\_ACEOF
19502#define HAVE_ISNAN_IN_CMATH 1
19503_ACEOF
19504
19505fi
19506
19507{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19508echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19509if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19510  echo $ECHO_N "(cached) $ECHO_C" >&6
19511else
19512  ac_ext=cpp
19513ac_cpp='$CXXCPP $CPPFLAGS'
19514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517
19518   cat >conftest.$ac_ext <<_ACEOF
19519/* confdefs.h.  */
19520_ACEOF
19521cat confdefs.h >>conftest.$ac_ext
19522cat >>conftest.$ac_ext <<_ACEOF
19523/* end confdefs.h.  */
19524#include <cmath>
19525int
19526main ()
19527{
19528float f; std::isnan(f);
19529  ;
19530  return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (ac_try="$ac_compile"
19535case "(($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_compile") 2>conftest.er1
19541  ac_status=$?
19542  grep -v '^ *+' conftest.er1 >conftest.err
19543  rm -f conftest.er1
19544  cat conftest.err >&5
19545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546  (exit $ac_status); } &&
19547	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548  { (case "(($ac_try" in
19549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550  *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553  (eval "$ac_try") 2>&5
19554  ac_status=$?
19555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556  (exit $ac_status); }; } &&
19557	 { ac_try='test -s conftest.$ac_objext'
19558  { (case "(($ac_try" in
19559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560  *) ac_try_echo=$ac_try;;
19561esac
19562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563  (eval "$ac_try") 2>&5
19564  ac_status=$?
19565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566  (exit $ac_status); }; }; then
19567  ac_cv_func_std_isnan_in_cmath=yes
19568else
19569  echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572	ac_cv_func_std_isnan_in_cmath=no
19573fi
19574
19575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576  ac_ext=c
19577ac_cpp='$CPP $CPPFLAGS'
19578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582fi
19583{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19584echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19585
19586if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_STD_ISNAN_IN_CMATH 1
19590_ACEOF
19591
19592fi
19593
19594
19595{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19596echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19597if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19598  echo $ECHO_N "(cached) $ECHO_C" >&6
19599else
19600  ac_ext=cpp
19601ac_cpp='$CXXCPP $CPPFLAGS'
19602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19605
19606   cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h.  */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h.  */
19612#include <math.h>
19613int
19614main ()
19615{
19616float f; isinf(f);
19617  ;
19618  return 0;
19619}
19620_ACEOF
19621rm -f conftest.$ac_objext
19622if { (ac_try="$ac_compile"
19623case "(($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_compile") 2>conftest.er1
19629  ac_status=$?
19630  grep -v '^ *+' conftest.er1 >conftest.err
19631  rm -f conftest.er1
19632  cat conftest.err >&5
19633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634  (exit $ac_status); } &&
19635	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19636  { (case "(($ac_try" in
19637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638  *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641  (eval "$ac_try") 2>&5
19642  ac_status=$?
19643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644  (exit $ac_status); }; } &&
19645	 { ac_try='test -s conftest.$ac_objext'
19646  { (case "(($ac_try" in
19647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648  *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651  (eval "$ac_try") 2>&5
19652  ac_status=$?
19653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654  (exit $ac_status); }; }; then
19655  ac_cv_func_isinf_in_math_h=yes
19656else
19657  echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660	ac_cv_func_isinf_in_math_h=no
19661fi
19662
19663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664  ac_ext=c
19665ac_cpp='$CPP $CPPFLAGS'
19666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669
19670fi
19671{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19672echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19673
19674if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19675
19676cat >>confdefs.h <<\_ACEOF
19677#define HAVE_ISINF_IN_MATH_H 1
19678_ACEOF
19679
19680fi
19681
19682{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19683echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19684if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19685  echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687  ac_ext=cpp
19688ac_cpp='$CXXCPP $CPPFLAGS'
19689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692
19693   cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h.  */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
19698/* end confdefs.h.  */
19699#include <cmath>
19700int
19701main ()
19702{
19703float f; isinf(f);
19704  ;
19705  return 0;
19706}
19707_ACEOF
19708rm -f conftest.$ac_objext
19709if { (ac_try="$ac_compile"
19710case "(($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_compile") 2>conftest.er1
19716  ac_status=$?
19717  grep -v '^ *+' conftest.er1 >conftest.err
19718  rm -f conftest.er1
19719  cat conftest.err >&5
19720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721  (exit $ac_status); } &&
19722	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723  { (case "(($ac_try" in
19724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725  *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728  (eval "$ac_try") 2>&5
19729  ac_status=$?
19730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731  (exit $ac_status); }; } &&
19732	 { ac_try='test -s conftest.$ac_objext'
19733  { (case "(($ac_try" in
19734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735  *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738  (eval "$ac_try") 2>&5
19739  ac_status=$?
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); }; }; then
19742  ac_cv_func_isinf_in_cmath=yes
19743else
19744  echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747	ac_cv_func_isinf_in_cmath=no
19748fi
19749
19750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751  ac_ext=c
19752ac_cpp='$CPP $CPPFLAGS'
19753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756
19757fi
19758{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19759echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19760
19761if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19762
19763cat >>confdefs.h <<\_ACEOF
19764#define HAVE_ISINF_IN_CMATH 1
19765_ACEOF
19766
19767fi
19768
19769{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19770echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19771if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19772  echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774  ac_ext=cpp
19775ac_cpp='$CXXCPP $CPPFLAGS'
19776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779
19780   cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h.  */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h.  */
19786#include <cmath>
19787int
19788main ()
19789{
19790float f; std::isinf(f)}
19791  ;
19792  return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext
19796if { (ac_try="$ac_compile"
19797case "(($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_compile") 2>conftest.er1
19803  ac_status=$?
19804  grep -v '^ *+' conftest.er1 >conftest.err
19805  rm -f conftest.er1
19806  cat conftest.err >&5
19807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808  (exit $ac_status); } &&
19809	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810  { (case "(($ac_try" in
19811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812  *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815  (eval "$ac_try") 2>&5
19816  ac_status=$?
19817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818  (exit $ac_status); }; } &&
19819	 { ac_try='test -s conftest.$ac_objext'
19820  { (case "(($ac_try" in
19821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822  *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825  (eval "$ac_try") 2>&5
19826  ac_status=$?
19827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828  (exit $ac_status); }; }; then
19829  ac_cv_func_std_isinf_in_cmath=yes
19830else
19831  echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834	ac_cv_func_std_isinf_in_cmath=no
19835fi
19836
19837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838  ac_ext=c
19839ac_cpp='$CPP $CPPFLAGS'
19840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844fi
19845{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19846echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19847
19848if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19849
19850cat >>confdefs.h <<\_ACEOF
19851#define HAVE_STD_ISINF_IN_CMATH 1
19852_ACEOF
19853
19854fi
19855
19856{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19857echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19858if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19859  echo $ECHO_N "(cached) $ECHO_C" >&6
19860else
19861  ac_ext=cpp
19862ac_cpp='$CXXCPP $CPPFLAGS'
19863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
19867   cat >conftest.$ac_ext <<_ACEOF
19868/* confdefs.h.  */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
19872/* end confdefs.h.  */
19873#include <ieeefp.h>
19874int
19875main ()
19876{
19877float f; finite(f);
19878  ;
19879  return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext
19883if { (ac_try="$ac_compile"
19884case "(($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_compile") 2>conftest.er1
19890  ac_status=$?
19891  grep -v '^ *+' conftest.er1 >conftest.err
19892  rm -f conftest.er1
19893  cat conftest.err >&5
19894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895  (exit $ac_status); } &&
19896	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897  { (case "(($ac_try" in
19898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899  *) ac_try_echo=$ac_try;;
19900esac
19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902  (eval "$ac_try") 2>&5
19903  ac_status=$?
19904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905  (exit $ac_status); }; } &&
19906	 { ac_try='test -s conftest.$ac_objext'
19907  { (case "(($ac_try" in
19908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909  *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912  (eval "$ac_try") 2>&5
19913  ac_status=$?
19914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915  (exit $ac_status); }; }; then
19916  ac_cv_func_finite_in_ieeefp_h=yes
19917else
19918  echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921	ac_cv_func_finite_in_ieeefp_h=no
19922fi
19923
19924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925  ac_ext=c
19926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931fi
19932{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19933echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19934
19935if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19936
19937cat >>confdefs.h <<\_ACEOF
19938#define HAVE_FINITE_IN_IEEEFP_H 1
19939_ACEOF
19940
19941fi
19942
19943
19944
19945if test "$llvm_cv_platform_type" = "Unix" ; then
19946
19947
19948for ac_header in stdlib.h unistd.h
19949do
19950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955  echo $ECHO_N "(cached) $ECHO_C" >&6
19956fi
19957ac_res=`eval echo '${'$as_ac_Header'}'`
19958	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19959echo "${ECHO_T}$ac_res" >&6; }
19960else
19961  # Is the header compilable?
19962{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19964cat >conftest.$ac_ext <<_ACEOF
19965/* confdefs.h.  */
19966_ACEOF
19967cat confdefs.h >>conftest.$ac_ext
19968cat >>conftest.$ac_ext <<_ACEOF
19969/* end confdefs.h.  */
19970$ac_includes_default
19971#include <$ac_header>
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (ac_try="$ac_compile"
19975case "(($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_compile") 2>conftest.er1
19981  ac_status=$?
19982  grep -v '^ *+' conftest.er1 >conftest.err
19983  rm -f conftest.er1
19984  cat conftest.err >&5
19985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986  (exit $ac_status); } &&
19987	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988  { (case "(($ac_try" in
19989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990  *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993  (eval "$ac_try") 2>&5
19994  ac_status=$?
19995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996  (exit $ac_status); }; } &&
19997	 { ac_try='test -s conftest.$ac_objext'
19998  { (case "(($ac_try" in
19999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000  *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003  (eval "$ac_try") 2>&5
20004  ac_status=$?
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); }; }; then
20007  ac_header_compiler=yes
20008else
20009  echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012	ac_header_compiler=no
20013fi
20014
20015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20017echo "${ECHO_T}$ac_header_compiler" >&6; }
20018
20019# Is the header present?
20020{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20022cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h.  */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h.  */
20028#include <$ac_header>
20029_ACEOF
20030if { (ac_try="$ac_cpp conftest.$ac_ext"
20031case "(($ac_try" in
20032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033  *) ac_try_echo=$ac_try;;
20034esac
20035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20037  ac_status=$?
20038  grep -v '^ *+' conftest.er1 >conftest.err
20039  rm -f conftest.er1
20040  cat conftest.err >&5
20041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042  (exit $ac_status); } >/dev/null; then
20043  if test -s conftest.err; then
20044    ac_cpp_err=$ac_c_preproc_warn_flag
20045    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20046  else
20047    ac_cpp_err=
20048  fi
20049else
20050  ac_cpp_err=yes
20051fi
20052if test -z "$ac_cpp_err"; then
20053  ac_header_preproc=yes
20054else
20055  echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058  ac_header_preproc=no
20059fi
20060
20061rm -f conftest.err conftest.$ac_ext
20062{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063echo "${ECHO_T}$ac_header_preproc" >&6; }
20064
20065# So?  What about this header?
20066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20067  yes:no: )
20068    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20072    ac_header_preproc=yes
20073    ;;
20074  no:yes:* )
20075    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20077    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20078echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20079    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20081    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20082echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20083    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20085    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20087    ( cat <<\_ASBOX
20088## ------------------------------------ ##
20089## Report this to http://llvm.org/bugs/ ##
20090## ------------------------------------ ##
20091_ASBOX
20092     ) | sed "s/^/$as_me: WARNING:     /" >&2
20093    ;;
20094esac
20095{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098  echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100  eval "$as_ac_Header=\$ac_header_preproc"
20101fi
20102ac_res=`eval echo '${'$as_ac_Header'}'`
20103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20104echo "${ECHO_T}$ac_res" >&6; }
20105
20106fi
20107if test `eval echo '${'$as_ac_Header'}'` = yes; then
20108  cat >>confdefs.h <<_ACEOF
20109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110_ACEOF
20111
20112fi
20113
20114done
20115
20116
20117for ac_func in getpagesize
20118do
20119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20123  echo $ECHO_N "(cached) $ECHO_C" >&6
20124else
20125  cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h.  */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h.  */
20131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20132   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20133#define $ac_func innocuous_$ac_func
20134
20135/* System header to define __stub macros and hopefully few prototypes,
20136    which can conflict with char $ac_func (); below.
20137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20138    <limits.h> exists even on freestanding compilers.  */
20139
20140#ifdef __STDC__
20141# include <limits.h>
20142#else
20143# include <assert.h>
20144#endif
20145
20146#undef $ac_func
20147
20148/* Override any GCC internal prototype to avoid an error.
20149   Use char because int might match the return type of a GCC
20150   builtin and then its argument prototype would still apply.  */
20151#ifdef __cplusplus
20152extern "C"
20153#endif
20154char $ac_func ();
20155/* The GNU C library defines this for functions which it implements
20156    to always fail with ENOSYS.  Some functions are actually named
20157    something starting with __ and the normal name is an alias.  */
20158#if defined __stub_$ac_func || defined __stub___$ac_func
20159choke me
20160#endif
20161
20162int
20163main ()
20164{
20165return $ac_func ();
20166  ;
20167  return 0;
20168}
20169_ACEOF
20170rm -f conftest.$ac_objext conftest$ac_exeext
20171if { (ac_try="$ac_link"
20172case "(($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_link") 2>conftest.er1
20178  ac_status=$?
20179  grep -v '^ *+' conftest.er1 >conftest.err
20180  rm -f conftest.er1
20181  cat conftest.err >&5
20182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183  (exit $ac_status); } &&
20184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20185  { (case "(($ac_try" in
20186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187  *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190  (eval "$ac_try") 2>&5
20191  ac_status=$?
20192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193  (exit $ac_status); }; } &&
20194	 { ac_try='test -s conftest$ac_exeext'
20195  { (case "(($ac_try" in
20196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197  *) ac_try_echo=$ac_try;;
20198esac
20199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200  (eval "$ac_try") 2>&5
20201  ac_status=$?
20202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203  (exit $ac_status); }; }; then
20204  eval "$as_ac_var=yes"
20205else
20206  echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209	eval "$as_ac_var=no"
20210fi
20211
20212rm -f core conftest.err conftest.$ac_objext \
20213      conftest$ac_exeext conftest.$ac_ext
20214fi
20215ac_res=`eval echo '${'$as_ac_var'}'`
20216	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20217echo "${ECHO_T}$ac_res" >&6; }
20218if test `eval echo '${'$as_ac_var'}'` = yes; then
20219  cat >>confdefs.h <<_ACEOF
20220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20221_ACEOF
20222
20223fi
20224done
20225
20226{ echo "$as_me:$LINENO: checking for working mmap" >&5
20227echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20228if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20229  echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231  if test "$cross_compiling" = yes; then
20232  ac_cv_func_mmap_fixed_mapped=no
20233else
20234  cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h.  */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h.  */
20240$ac_includes_default
20241/* malloc might have been renamed as rpl_malloc. */
20242#undef malloc
20243
20244/* Thanks to Mike Haertel and Jim Avera for this test.
20245   Here is a matrix of mmap possibilities:
20246	mmap private not fixed
20247	mmap private fixed at somewhere currently unmapped
20248	mmap private fixed at somewhere already mapped
20249	mmap shared not fixed
20250	mmap shared fixed at somewhere currently unmapped
20251	mmap shared fixed at somewhere already mapped
20252   For private mappings, we should verify that changes cannot be read()
20253   back from the file, nor mmap's back from the file at a different
20254   address.  (There have been systems where private was not correctly
20255   implemented like the infamous i386 svr4.0, and systems where the
20256   VM page cache was not coherent with the file system buffer cache
20257   like early versions of FreeBSD and possibly contemporary NetBSD.)
20258   For shared mappings, we should conversely verify that changes get
20259   propagated back to all the places they're supposed to be.
20260
20261   Grep wants private fixed already mapped.
20262   The main things grep needs to know about mmap are:
20263   * does it exist and is it safe to write into the mmap'd area
20264   * how to use it (BSD variants)  */
20265
20266#include <fcntl.h>
20267#include <sys/mman.h>
20268
20269#if !STDC_HEADERS && !HAVE_STDLIB_H
20270char *malloc ();
20271#endif
20272
20273/* This mess was copied from the GNU getpagesize.h.  */
20274#if !HAVE_GETPAGESIZE
20275/* Assume that all systems that can run configure have sys/param.h.  */
20276# if !HAVE_SYS_PARAM_H
20277#  define HAVE_SYS_PARAM_H 1
20278# endif
20279
20280# ifdef _SC_PAGESIZE
20281#  define getpagesize() sysconf(_SC_PAGESIZE)
20282# else /* no _SC_PAGESIZE */
20283#  if HAVE_SYS_PARAM_H
20284#   include <sys/param.h>
20285#   ifdef EXEC_PAGESIZE
20286#    define getpagesize() EXEC_PAGESIZE
20287#   else /* no EXEC_PAGESIZE */
20288#    ifdef NBPG
20289#     define getpagesize() NBPG * CLSIZE
20290#     ifndef CLSIZE
20291#      define CLSIZE 1
20292#     endif /* no CLSIZE */
20293#    else /* no NBPG */
20294#     ifdef NBPC
20295#      define getpagesize() NBPC
20296#     else /* no NBPC */
20297#      ifdef PAGESIZE
20298#       define getpagesize() PAGESIZE
20299#      endif /* PAGESIZE */
20300#     endif /* no NBPC */
20301#    endif /* no NBPG */
20302#   endif /* no EXEC_PAGESIZE */
20303#  else /* no HAVE_SYS_PARAM_H */
20304#   define getpagesize() 8192	/* punt totally */
20305#  endif /* no HAVE_SYS_PARAM_H */
20306# endif /* no _SC_PAGESIZE */
20307
20308#endif /* no HAVE_GETPAGESIZE */
20309
20310int
20311main ()
20312{
20313  char *data, *data2, *data3;
20314  int i, pagesize;
20315  int fd;
20316
20317  pagesize = getpagesize ();
20318
20319  /* First, make a file with some known garbage in it. */
20320  data = (char *) malloc (pagesize);
20321  if (!data)
20322    return 1;
20323  for (i = 0; i < pagesize; ++i)
20324    *(data + i) = rand ();
20325  umask (0);
20326  fd = creat ("conftest.mmap", 0600);
20327  if (fd < 0)
20328    return 1;
20329  if (write (fd, data, pagesize) != pagesize)
20330    return 1;
20331  close (fd);
20332
20333  /* Next, try to mmap the file at a fixed address which already has
20334     something else allocated at it.  If we can, also make sure that
20335     we see the same garbage.  */
20336  fd = open ("conftest.mmap", O_RDWR);
20337  if (fd < 0)
20338    return 1;
20339  data2 = (char *) malloc (2 * pagesize);
20340  if (!data2)
20341    return 1;
20342  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20343  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20344		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20345    return 1;
20346  for (i = 0; i < pagesize; ++i)
20347    if (*(data + i) != *(data2 + i))
20348      return 1;
20349
20350  /* Finally, make sure that changes to the mapped area do not
20351     percolate back to the file as seen by read().  (This is a bug on
20352     some variants of i386 svr4.0.)  */
20353  for (i = 0; i < pagesize; ++i)
20354    *(data2 + i) = *(data2 + i) + 1;
20355  data3 = (char *) malloc (pagesize);
20356  if (!data3)
20357    return 1;
20358  if (read (fd, data3, pagesize) != pagesize)
20359    return 1;
20360  for (i = 0; i < pagesize; ++i)
20361    if (*(data + i) != *(data3 + i))
20362      return 1;
20363  close (fd);
20364  return 0;
20365}
20366_ACEOF
20367rm -f conftest$ac_exeext
20368if { (ac_try="$ac_link"
20369case "(($ac_try" in
20370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371  *) ac_try_echo=$ac_try;;
20372esac
20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374  (eval "$ac_link") 2>&5
20375  ac_status=$?
20376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378  { (case "(($ac_try" in
20379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380  *) ac_try_echo=$ac_try;;
20381esac
20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383  (eval "$ac_try") 2>&5
20384  ac_status=$?
20385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386  (exit $ac_status); }; }; then
20387  ac_cv_func_mmap_fixed_mapped=yes
20388else
20389  echo "$as_me: program exited with status $ac_status" >&5
20390echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393( exit $ac_status )
20394ac_cv_func_mmap_fixed_mapped=no
20395fi
20396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397fi
20398
20399
20400fi
20401{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20402echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20403if test $ac_cv_func_mmap_fixed_mapped = yes; then
20404
20405cat >>confdefs.h <<\_ACEOF
20406#define HAVE_MMAP 1
20407_ACEOF
20408
20409fi
20410rm -f conftest.mmap
20411
20412  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20413echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20414if test "${ac_cv_func_mmap_file+set}" = set; then
20415  echo $ECHO_N "(cached) $ECHO_C" >&6
20416else
20417   ac_ext=c
20418ac_cpp='$CPP $CPPFLAGS'
20419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
20423  if test "$cross_compiling" = yes; then
20424  ac_cv_func_mmap_file=no
20425else
20426  cat >conftest.$ac_ext <<_ACEOF
20427
20428    /* confdefs.h.  */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h.  */
20433
20434#include <sys/types.h>
20435#include <sys/mman.h>
20436#include <fcntl.h>
20437
20438int
20439main ()
20440{
20441
20442  int fd;
20443  fd = creat ("foo",0777);
20444  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20445  unlink ("foo");
20446  return (fd != (int) MAP_FAILED);
20447  ;
20448  return 0;
20449}
20450_ACEOF
20451rm -f conftest$ac_exeext
20452if { (ac_try="$ac_link"
20453case "(($ac_try" in
20454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455  *) ac_try_echo=$ac_try;;
20456esac
20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458  (eval "$ac_link") 2>&5
20459  ac_status=$?
20460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462  { (case "(($ac_try" in
20463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464  *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467  (eval "$ac_try") 2>&5
20468  ac_status=$?
20469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470  (exit $ac_status); }; }; then
20471  ac_cv_func_mmap_file=yes
20472else
20473  echo "$as_me: program exited with status $ac_status" >&5
20474echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477( exit $ac_status )
20478ac_cv_func_mmap_file=no
20479fi
20480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20481fi
20482
20483
20484  ac_ext=c
20485ac_cpp='$CPP $CPPFLAGS'
20486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488ac_compiler_gnu=$ac_cv_c_compiler_gnu
20489
20490
20491fi
20492{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20493echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20494if test "$ac_cv_func_mmap_file" = yes; then
20495
20496cat >>confdefs.h <<\_ACEOF
20497#define HAVE_MMAP_FILE
20498_ACEOF
20499
20500   MMAP_FILE=yes
20501
20502fi
20503
20504  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20505echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20506if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20507  echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509  if test "$llvm_cv_os_type" = "Interix" ; then
20510   ac_cv_need_dev_zero_for_mmap=yes
20511 else
20512   ac_cv_need_dev_zero_for_mmap=no
20513 fi
20514
20515fi
20516{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20517echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20518if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20519
20520cat >>confdefs.h <<\_ACEOF
20521#define NEED_DEV_ZERO_FOR_MMAP 1
20522_ACEOF
20523
20524fi
20525
20526  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20527  then
20528    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20529echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20530  fi
20531  if test "$ac_cv_func_mmap_file" = "no"
20532  then
20533    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20534echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20535  fi
20536fi
20537
20538{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20539echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20540ac_ext=cpp
20541ac_cpp='$CXXCPP $CPPFLAGS'
20542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20545
20546cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h.  */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h.  */
20552int main() {
20553        volatile unsigned long val = 1;
20554        __sync_synchronize();
20555        __sync_val_compare_and_swap(&val, 1, 0);
20556        __sync_add_and_fetch(&val, 1);
20557        __sync_sub_and_fetch(&val, 1);
20558        return 0;
20559      }
20560
20561_ACEOF
20562rm -f conftest.$ac_objext conftest$ac_exeext
20563if { (ac_try="$ac_link"
20564case "(($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_link") 2>conftest.er1
20570  ac_status=$?
20571  grep -v '^ *+' conftest.er1 >conftest.err
20572  rm -f conftest.er1
20573  cat conftest.err >&5
20574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575  (exit $ac_status); } &&
20576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577  { (case "(($ac_try" in
20578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579  *) ac_try_echo=$ac_try;;
20580esac
20581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582  (eval "$ac_try") 2>&5
20583  ac_status=$?
20584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585  (exit $ac_status); }; } &&
20586	 { ac_try='test -s conftest$ac_exeext'
20587  { (case "(($ac_try" in
20588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589  *) ac_try_echo=$ac_try;;
20590esac
20591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592  (eval "$ac_try") 2>&5
20593  ac_status=$?
20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595  (exit $ac_status); }; }; then
20596  ac_ext=c
20597ac_cpp='$CPP $CPPFLAGS'
20598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602  { echo "$as_me:$LINENO: result: yes" >&5
20603echo "${ECHO_T}yes" >&6; }
20604
20605cat >>confdefs.h <<\_ACEOF
20606#define LLVM_HAS_ATOMICS 1
20607_ACEOF
20608
20609else
20610  echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
20612
20613	{ echo "$as_me:$LINENO: result: no" >&5
20614echo "${ECHO_T}no" >&6; }
20615
20616cat >>confdefs.h <<\_ACEOF
20617#define LLVM_HAS_ATOMICS 0
20618_ACEOF
20619
20620  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20621echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20622fi
20623
20624rm -f core conftest.err conftest.$ac_objext \
20625      conftest$ac_exeext conftest.$ac_ext
20626
20627
20628if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20629  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20630echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20631if test "${llvm_cv_linux_mixed+set}" = set; then
20632  echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634   ac_ext=c
20635ac_cpp='$CPP $CPPFLAGS'
20636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
20640  cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h.  */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h.  */
20646#ifndef __x86_64__
20647       error: Not x86-64 even if uname says so!
20648      #endif
20649
20650int
20651main ()
20652{
20653
20654  ;
20655  return 0;
20656}
20657_ACEOF
20658rm -f conftest.$ac_objext
20659if { (ac_try="$ac_compile"
20660case "(($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_compile") 2>conftest.er1
20666  ac_status=$?
20667  grep -v '^ *+' conftest.er1 >conftest.err
20668  rm -f conftest.er1
20669  cat conftest.err >&5
20670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671  (exit $ac_status); } &&
20672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20673  { (case "(($ac_try" in
20674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675  *) ac_try_echo=$ac_try;;
20676esac
20677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678  (eval "$ac_try") 2>&5
20679  ac_status=$?
20680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681  (exit $ac_status); }; } &&
20682	 { ac_try='test -s conftest.$ac_objext'
20683  { (case "(($ac_try" in
20684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685  *) ac_try_echo=$ac_try;;
20686esac
20687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688  (eval "$ac_try") 2>&5
20689  ac_status=$?
20690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691  (exit $ac_status); }; }; then
20692  llvm_cv_linux_mixed=no
20693else
20694  echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697	llvm_cv_linux_mixed=yes
20698fi
20699
20700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701  ac_ext=c
20702ac_cpp='$CPP $CPPFLAGS'
20703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20705ac_compiler_gnu=$ac_cv_c_compiler_gnu
20706
20707
20708fi
20709{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20710echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20711
20712  if test "$llvm_cv_linux_mixed" = "yes"; then
20713    llvm_cv_target_arch="x86"
20714    ARCH="x86"
20715  fi
20716fi
20717
20718
20719for ac_func in __dso_handle
20720do
20721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20725  echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727  cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h.  */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h.  */
20733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20735#define $ac_func innocuous_$ac_func
20736
20737/* System header to define __stub macros and hopefully few prototypes,
20738    which can conflict with char $ac_func (); below.
20739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20740    <limits.h> exists even on freestanding compilers.  */
20741
20742#ifdef __STDC__
20743# include <limits.h>
20744#else
20745# include <assert.h>
20746#endif
20747
20748#undef $ac_func
20749
20750/* Override any GCC internal prototype to avoid an error.
20751   Use char because int might match the return type of a GCC
20752   builtin and then its argument prototype would still apply.  */
20753#ifdef __cplusplus
20754extern "C"
20755#endif
20756char $ac_func ();
20757/* The GNU C library defines this for functions which it implements
20758    to always fail with ENOSYS.  Some functions are actually named
20759    something starting with __ and the normal name is an alias.  */
20760#if defined __stub_$ac_func || defined __stub___$ac_func
20761choke me
20762#endif
20763
20764int
20765main ()
20766{
20767return $ac_func ();
20768  ;
20769  return 0;
20770}
20771_ACEOF
20772rm -f conftest.$ac_objext conftest$ac_exeext
20773if { (ac_try="$ac_link"
20774case "(($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_link") 2>conftest.er1
20780  ac_status=$?
20781  grep -v '^ *+' conftest.er1 >conftest.err
20782  rm -f conftest.er1
20783  cat conftest.err >&5
20784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785  (exit $ac_status); } &&
20786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787  { (case "(($ac_try" in
20788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789  *) ac_try_echo=$ac_try;;
20790esac
20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792  (eval "$ac_try") 2>&5
20793  ac_status=$?
20794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795  (exit $ac_status); }; } &&
20796	 { ac_try='test -s conftest$ac_exeext'
20797  { (case "(($ac_try" in
20798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799  *) ac_try_echo=$ac_try;;
20800esac
20801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802  (eval "$ac_try") 2>&5
20803  ac_status=$?
20804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805  (exit $ac_status); }; }; then
20806  eval "$as_ac_var=yes"
20807else
20808  echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
20811	eval "$as_ac_var=no"
20812fi
20813
20814rm -f core conftest.err conftest.$ac_objext \
20815      conftest$ac_exeext conftest.$ac_ext
20816fi
20817ac_res=`eval echo '${'$as_ac_var'}'`
20818	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20819echo "${ECHO_T}$ac_res" >&6; }
20820if test `eval echo '${'$as_ac_var'}'` = yes; then
20821  cat >>confdefs.h <<_ACEOF
20822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823_ACEOF
20824
20825fi
20826done
20827
20828
20829SHLIBEXT=$libltdl_cv_shlibext
20830
20831
20832SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20833
20834
20835# Translate the various configuration directories and other basic
20836# information into substitutions that will end up in Makefile.config.in
20837# that these configured values can be used by the makefiles
20838if test "${prefix}" = "NONE" ; then
20839  prefix="/usr/local"
20840fi
20841eval LLVM_PREFIX="${prefix}";
20842eval LLVM_BINDIR="${prefix}/bin";
20843eval LLVM_LIBDIR="${prefix}/lib";
20844eval LLVM_DATADIR="${prefix}/share/llvm";
20845eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20846eval LLVM_ETCDIR="${prefix}/etc/llvm";
20847eval LLVM_INCLUDEDIR="${prefix}/include";
20848eval LLVM_INFODIR="${prefix}/info";
20849eval LLVM_MANDIR="${prefix}/man";
20850LLVM_CONFIGTIME=`date`
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862# Place the various directores into the config.h file as #defines so that we
20863# can know about the installation paths within LLVM.
20864
20865cat >>confdefs.h <<_ACEOF
20866#define LLVM_PREFIX "$LLVM_PREFIX"
20867_ACEOF
20868
20869
20870cat >>confdefs.h <<_ACEOF
20871#define LLVM_BINDIR "$LLVM_BINDIR"
20872_ACEOF
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LLVM_LIBDIR "$LLVM_LIBDIR"
20877_ACEOF
20878
20879
20880cat >>confdefs.h <<_ACEOF
20881#define LLVM_DATADIR "$LLVM_DATADIR"
20882_ACEOF
20883
20884
20885cat >>confdefs.h <<_ACEOF
20886#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20887_ACEOF
20888
20889
20890cat >>confdefs.h <<_ACEOF
20891#define LLVM_ETCDIR "$LLVM_ETCDIR"
20892_ACEOF
20893
20894
20895cat >>confdefs.h <<_ACEOF
20896#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20897_ACEOF
20898
20899
20900cat >>confdefs.h <<_ACEOF
20901#define LLVM_INFODIR "$LLVM_INFODIR"
20902_ACEOF
20903
20904
20905cat >>confdefs.h <<_ACEOF
20906#define LLVM_MANDIR "$LLVM_MANDIR"
20907_ACEOF
20908
20909
20910cat >>confdefs.h <<_ACEOF
20911#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20912_ACEOF
20913
20914
20915cat >>confdefs.h <<_ACEOF
20916#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20917_ACEOF
20918
20919
20920# Determine which bindings to build.
20921if test "$BINDINGS_TO_BUILD" = auto ; then
20922  BINDINGS_TO_BUILD=""
20923  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20924    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20925  fi
20926fi
20927BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20928
20929
20930# This isn't really configurey, but it avoids having to repeat the list in
20931# other files.
20932ALL_BINDINGS=ocaml
20933
20934
20935# Do any work necessary to ensure that bindings have what they need.
20936binding_prereqs_failed=0
20937for a_binding in $BINDINGS_TO_BUILD ; do
20938  case "$a_binding" in
20939  ocaml)
20940    if test "x$OCAMLC" = x ; then
20941      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20942echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20943      binding_prereqs_failed=1
20944    fi
20945    if test "x$OCAMLDEP" = x ; then
20946      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20947echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20948      binding_prereqs_failed=1
20949    fi
20950    if test "x$OCAMLOPT" = x ; then
20951      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20952echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20953          fi
20954    if test "x$with_ocaml_libdir" != xauto ; then
20955      OCAML_LIBDIR=$with_ocaml_libdir
20956
20957    else
20958      ocaml_stdlib="`"$OCAMLC" -where`"
20959      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20960      then
20961        # ocaml stdlib is beneath our prefix; use stdlib
20962        OCAML_LIBDIR=$ocaml_stdlib
20963
20964      else
20965        # ocaml stdlib is outside our prefix; use libdir/ocaml
20966        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20967
20968      fi
20969    fi
20970    ;;
20971  esac
20972done
20973if test "$binding_prereqs_failed" = 1 ; then
20974  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20975echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20976   { (exit 1); exit 1; }; }
20977fi
20978
20979{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20980echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20981if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20982  echo $ECHO_N "(cached) $ECHO_C" >&6
20983else
20984   ac_ext=cpp
20985ac_cpp='$CXXCPP $CPPFLAGS'
20986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20989
20990  oldcxxflags="$CXXFLAGS"
20991  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20992  cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h.  */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h.  */
20998template <typename T> struct X { void __attribute__((noinline)) f() {} };
20999int
21000main ()
21001{
21002X<int>().f();
21003  ;
21004  return 0;
21005}
21006_ACEOF
21007rm -f conftest.$ac_objext
21008if { (ac_try="$ac_compile"
21009case "(($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_compile") 2>conftest.er1
21015  ac_status=$?
21016  grep -v '^ *+' conftest.er1 >conftest.err
21017  rm -f conftest.er1
21018  cat conftest.err >&5
21019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020  (exit $ac_status); } &&
21021	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21022  { (case "(($ac_try" in
21023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024  *) ac_try_echo=$ac_try;;
21025esac
21026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027  (eval "$ac_try") 2>&5
21028  ac_status=$?
21029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030  (exit $ac_status); }; } &&
21031	 { ac_try='test -s conftest.$ac_objext'
21032  { (case "(($ac_try" in
21033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034  *) ac_try_echo=$ac_try;;
21035esac
21036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037  (eval "$ac_try") 2>&5
21038  ac_status=$?
21039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040  (exit $ac_status); }; }; then
21041  llvm_cv_cxx_visibility_inlines_hidden=yes
21042else
21043  echo "$as_me: failed program was:" >&5
21044sed 's/^/| /' conftest.$ac_ext >&5
21045
21046	llvm_cv_cxx_visibility_inlines_hidden=no
21047fi
21048
21049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050  CXXFLAGS="$oldcxxflags"
21051  ac_ext=c
21052ac_cpp='$CPP $CPPFLAGS'
21053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055ac_compiler_gnu=$ac_cv_c_compiler_gnu
21056
21057
21058fi
21059{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21060echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21061if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21062  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21063
21064else
21065  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21066
21067fi
21068
21069
21070if test "$llvm_cv_link_use_r" = "yes" ; then
21071  RPATH="-Wl,-R"
21072else
21073  RPATH="-Wl,-rpath"
21074fi
21075
21076
21077if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21078  RDYNAMIC="-Wl,-export-dynamic"
21079else
21080  RDYNAMIC=""
21081fi
21082
21083
21084
21085ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21086
21087
21088
21089
21090
21091
21092ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21093
21094ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21095
21096ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21097
21098ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21099
21100ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21101
21102
21103ac_config_files="$ac_config_files Makefile.config"
21104
21105
21106ac_config_files="$ac_config_files llvm.spec"
21107
21108
21109ac_config_files="$ac_config_files docs/doxygen.cfg"
21110
21111if test -f ${srcdir}/tools/clang/README.txt; then
21112  ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21113
21114fi
21115
21116ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21117
21118
21119ac_config_commands="$ac_config_commands setup"
21120
21121ac_config_commands="$ac_config_commands Makefile"
21122
21123
21124ac_config_commands="$ac_config_commands Makefile.common"
21125
21126
21127ac_config_commands="$ac_config_commands examples/Makefile"
21128
21129
21130ac_config_commands="$ac_config_commands lib/Makefile"
21131
21132
21133ac_config_commands="$ac_config_commands runtime/Makefile"
21134
21135
21136ac_config_commands="$ac_config_commands test/Makefile"
21137
21138
21139ac_config_commands="$ac_config_commands test/Makefile.tests"
21140
21141
21142ac_config_commands="$ac_config_commands unittests/Makefile"
21143
21144
21145ac_config_commands="$ac_config_commands tools/Makefile"
21146
21147
21148ac_config_commands="$ac_config_commands utils/Makefile"
21149
21150
21151ac_config_commands="$ac_config_commands projects/Makefile"
21152
21153
21154ac_config_commands="$ac_config_commands bindings/Makefile"
21155
21156
21157ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21158
21159
21160
21161cat >confcache <<\_ACEOF
21162# This file is a shell script that caches the results of configure
21163# tests run on this system so they can be shared between configure
21164# scripts and configure runs, see configure's option --config-cache.
21165# It is not useful on other systems.  If it contains results you don't
21166# want to keep, you may remove or edit it.
21167#
21168# config.status only pays attention to the cache file if you give it
21169# the --recheck option to rerun configure.
21170#
21171# `ac_cv_env_foo' variables (set or unset) will be overridden when
21172# loading this file, other *unset* `ac_cv_foo' will be assigned the
21173# following values.
21174
21175_ACEOF
21176
21177# The following way of writing the cache mishandles newlines in values,
21178# but we know of no workaround that is simple, portable, and efficient.
21179# So, we kill variables containing newlines.
21180# Ultrix sh set writes to stderr and can't be redirected directly,
21181# and sets the high bit in the cache file unless we assign to the vars.
21182(
21183  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21184    eval ac_val=\$$ac_var
21185    case $ac_val in #(
21186    *${as_nl}*)
21187      case $ac_var in #(
21188      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21189echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21190      esac
21191      case $ac_var in #(
21192      _ | IFS | as_nl) ;; #(
21193      *) $as_unset $ac_var ;;
21194      esac ;;
21195    esac
21196  done
21197
21198  (set) 2>&1 |
21199    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21200    *${as_nl}ac_space=\ *)
21201      # `set' does not quote correctly, so add quotes (double-quote
21202      # substitution turns \\\\ into \\, and sed turns \\ into \).
21203      sed -n \
21204	"s/'/'\\\\''/g;
21205	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21206      ;; #(
21207    *)
21208      # `set' quotes correctly as required by POSIX, so do not add quotes.
21209      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21210      ;;
21211    esac |
21212    sort
21213) |
21214  sed '
21215     /^ac_cv_env_/b end
21216     t clear
21217     :clear
21218     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21219     t end
21220     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21221     :end' >>confcache
21222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21223  if test -w "$cache_file"; then
21224    test "x$cache_file" != "x/dev/null" &&
21225      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21226echo "$as_me: updating cache $cache_file" >&6;}
21227    cat confcache >$cache_file
21228  else
21229    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21230echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21231  fi
21232fi
21233rm -f confcache
21234
21235test "x$prefix" = xNONE && prefix=$ac_default_prefix
21236# Let make expand exec_prefix.
21237test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21238
21239DEFS=-DHAVE_CONFIG_H
21240
21241ac_libobjs=
21242ac_ltlibobjs=
21243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21244  # 1. Remove the extension, and $U if already installed.
21245  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21246  ac_i=`echo "$ac_i" | sed "$ac_script"`
21247  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21248  #    will be set to the directory where LIBOBJS objects are built.
21249  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21250  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21251done
21252LIBOBJS=$ac_libobjs
21253
21254LTLIBOBJS=$ac_ltlibobjs
21255
21256
21257if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21258  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&5
21260echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21261Usually this means the macro was only invoked conditionally." >&2;}
21262   { (exit 1); exit 1; }; }
21263fi
21264if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21265  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266Usually this means the macro was only invoked conditionally." >&5
21267echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21268Usually this means the macro was only invoked conditionally." >&2;}
21269   { (exit 1); exit 1; }; }
21270fi
21271
21272: ${CONFIG_STATUS=./config.status}
21273ac_clean_files_save=$ac_clean_files
21274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21276echo "$as_me: creating $CONFIG_STATUS" >&6;}
21277cat >$CONFIG_STATUS <<_ACEOF
21278#! $SHELL
21279# Generated by $as_me.
21280# Run this file to recreate the current configuration.
21281# Compiler output produced by configure, useful for debugging
21282# configure, is in config.log if it exists.
21283
21284debug=false
21285ac_cs_recheck=false
21286ac_cs_silent=false
21287SHELL=\${CONFIG_SHELL-$SHELL}
21288_ACEOF
21289
21290cat >>$CONFIG_STATUS <<\_ACEOF
21291## --------------------- ##
21292## M4sh Initialization.  ##
21293## --------------------- ##
21294
21295# Be Bourne compatible
21296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21297  emulate sh
21298  NULLCMD=:
21299  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21300  # is contrary to our usage.  Disable this feature.
21301  alias -g '${1+"$@"}'='"$@"'
21302  setopt NO_GLOB_SUBST
21303else
21304  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21305fi
21306BIN_SH=xpg4; export BIN_SH # for Tru64
21307DUALCASE=1; export DUALCASE # for MKS sh
21308
21309
21310# PATH needs CR
21311# Avoid depending upon Character Ranges.
21312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21315as_cr_digits='0123456789'
21316as_cr_alnum=$as_cr_Letters$as_cr_digits
21317
21318# The user is always right.
21319if test "${PATH_SEPARATOR+set}" != set; then
21320  echo "#! /bin/sh" >conf$$.sh
21321  echo  "exit 0"   >>conf$$.sh
21322  chmod +x conf$$.sh
21323  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21324    PATH_SEPARATOR=';'
21325  else
21326    PATH_SEPARATOR=:
21327  fi
21328  rm -f conf$$.sh
21329fi
21330
21331# Support unset when possible.
21332if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21333  as_unset=unset
21334else
21335  as_unset=false
21336fi
21337
21338
21339# IFS
21340# We need space, tab and new line, in precisely that order.  Quoting is
21341# there to prevent editors from complaining about space-tab.
21342# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21343# splitting by setting IFS to empty value.)
21344as_nl='
21345'
21346IFS=" ""	$as_nl"
21347
21348# Find who we are.  Look in the path if we contain no directory separator.
21349case $0 in
21350  *[\\/]* ) as_myself=$0 ;;
21351  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21352for as_dir in $PATH
21353do
21354  IFS=$as_save_IFS
21355  test -z "$as_dir" && as_dir=.
21356  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21357done
21358IFS=$as_save_IFS
21359
21360     ;;
21361esac
21362# We did not find ourselves, most probably we were run as `sh COMMAND'
21363# in which case we are not to be found in the path.
21364if test "x$as_myself" = x; then
21365  as_myself=$0
21366fi
21367if test ! -f "$as_myself"; then
21368  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21369  { (exit 1); exit 1; }
21370fi
21371
21372# Work around bugs in pre-3.0 UWIN ksh.
21373for as_var in ENV MAIL MAILPATH
21374do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21375done
21376PS1='$ '
21377PS2='> '
21378PS4='+ '
21379
21380# NLS nuisances.
21381for as_var in \
21382  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384  LC_TELEPHONE LC_TIME
21385do
21386  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387    eval $as_var=C; export $as_var
21388  else
21389    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21390  fi
21391done
21392
21393# Required to use basename.
21394if expr a : '\(a\)' >/dev/null 2>&1 &&
21395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21396  as_expr=expr
21397else
21398  as_expr=false
21399fi
21400
21401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21402  as_basename=basename
21403else
21404  as_basename=false
21405fi
21406
21407
21408# Name of the executable.
21409as_me=`$as_basename -- "$0" ||
21410$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21411	 X"$0" : 'X\(//\)$' \| \
21412	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21413echo X/"$0" |
21414    sed '/^.*\/\([^/][^/]*\)\/*$/{
21415	    s//\1/
21416	    q
21417	  }
21418	  /^X\/\(\/\/\)$/{
21419	    s//\1/
21420	    q
21421	  }
21422	  /^X\/\(\/\).*/{
21423	    s//\1/
21424	    q
21425	  }
21426	  s/.*/./; q'`
21427
21428# CDPATH.
21429$as_unset CDPATH
21430
21431
21432
21433  as_lineno_1=$LINENO
21434  as_lineno_2=$LINENO
21435  test "x$as_lineno_1" != "x$as_lineno_2" &&
21436  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21437
21438  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21439  # uniformly replaced by the line number.  The first 'sed' inserts a
21440  # line-number line after each line using $LINENO; the second 'sed'
21441  # does the real work.  The second script uses 'N' to pair each
21442  # line-number line with the line containing $LINENO, and appends
21443  # trailing '-' during substitution so that $LINENO is not a special
21444  # case at line end.
21445  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21446  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21447  # E. McMahon (1931-1989) for sed's syntax.  :-)
21448  sed -n '
21449    p
21450    /[$]LINENO/=
21451  ' <$as_myself |
21452    sed '
21453      s/[$]LINENO.*/&-/
21454      t lineno
21455      b
21456      :lineno
21457      N
21458      :loop
21459      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21460      t loop
21461      s/-\n.*//
21462    ' >$as_me.lineno &&
21463  chmod +x "$as_me.lineno" ||
21464    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21465   { (exit 1); exit 1; }; }
21466
21467  # Don't try to exec as it changes $[0], causing all sort of problems
21468  # (the dirname of $[0] is not the place where we might find the
21469  # original and so on.  Autoconf is especially sensitive to this).
21470  . "./$as_me.lineno"
21471  # Exit status is that of the last command.
21472  exit
21473}
21474
21475
21476if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21477  as_dirname=dirname
21478else
21479  as_dirname=false
21480fi
21481
21482ECHO_C= ECHO_N= ECHO_T=
21483case `echo -n x` in
21484-n*)
21485  case `echo 'x\c'` in
21486  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21487  *)   ECHO_C='\c';;
21488  esac;;
21489*)
21490  ECHO_N='-n';;
21491esac
21492
21493if expr a : '\(a\)' >/dev/null 2>&1 &&
21494   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21495  as_expr=expr
21496else
21497  as_expr=false
21498fi
21499
21500rm -f conf$$ conf$$.exe conf$$.file
21501if test -d conf$$.dir; then
21502  rm -f conf$$.dir/conf$$.file
21503else
21504  rm -f conf$$.dir
21505  mkdir conf$$.dir
21506fi
21507echo >conf$$.file
21508if ln -s conf$$.file conf$$ 2>/dev/null; then
21509  as_ln_s='ln -s'
21510  # ... but there are two gotchas:
21511  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21512  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21513  # In both cases, we have to default to `cp -p'.
21514  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21515    as_ln_s='cp -p'
21516elif ln conf$$.file conf$$ 2>/dev/null; then
21517  as_ln_s=ln
21518else
21519  as_ln_s='cp -p'
21520fi
21521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21522rmdir conf$$.dir 2>/dev/null
21523
21524if mkdir -p . 2>/dev/null; then
21525  as_mkdir_p=:
21526else
21527  test -d ./-p && rmdir ./-p
21528  as_mkdir_p=false
21529fi
21530
21531# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21532# systems may use methods other than mode bits to determine executability.
21533cat >conf$$.file <<_ASEOF
21534#! /bin/sh
21535exit 0
21536_ASEOF
21537chmod +x conf$$.file
21538if test -x conf$$.file >/dev/null 2>&1; then
21539  as_executable_p="test -x"
21540else
21541  as_executable_p=:
21542fi
21543rm -f conf$$.file
21544
21545# Sed expression to map a string onto a valid CPP name.
21546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21547
21548# Sed expression to map a string onto a valid variable name.
21549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21550
21551
21552exec 6>&1
21553
21554# Save the log message, to keep $[0] and so on meaningful, and to
21555# report actual input values of CONFIG_FILES etc. instead of their
21556# values after options handling.
21557ac_log="
21558This file was extended by LLVM $as_me 3.1svn, which was
21559generated by GNU Autoconf 2.60.  Invocation command line was
21560
21561  CONFIG_FILES    = $CONFIG_FILES
21562  CONFIG_HEADERS  = $CONFIG_HEADERS
21563  CONFIG_LINKS    = $CONFIG_LINKS
21564  CONFIG_COMMANDS = $CONFIG_COMMANDS
21565  $ $0 $@
21566
21567on `(hostname || uname -n) 2>/dev/null | sed 1q`
21568"
21569
21570_ACEOF
21571
21572cat >>$CONFIG_STATUS <<_ACEOF
21573# Files that config.status was made for.
21574config_files="$ac_config_files"
21575config_headers="$ac_config_headers"
21576config_commands="$ac_config_commands"
21577
21578_ACEOF
21579
21580cat >>$CONFIG_STATUS <<\_ACEOF
21581ac_cs_usage="\
21582\`$as_me' instantiates files from templates according to the
21583current configuration.
21584
21585Usage: $0 [OPTIONS] [FILE]...
21586
21587  -h, --help       print this help, then exit
21588  -V, --version    print version number, then exit
21589  -q, --quiet      do not print progress messages
21590  -d, --debug      don't remove temporary files
21591      --recheck    update $as_me by reconfiguring in the same conditions
21592  --file=FILE[:TEMPLATE]
21593		   instantiate the configuration file FILE
21594  --header=FILE[:TEMPLATE]
21595		   instantiate the configuration header FILE
21596
21597Configuration files:
21598$config_files
21599
21600Configuration headers:
21601$config_headers
21602
21603Configuration commands:
21604$config_commands
21605
21606Report bugs to <bug-autoconf@gnu.org>."
21607
21608_ACEOF
21609cat >>$CONFIG_STATUS <<_ACEOF
21610ac_cs_version="\\
21611LLVM config.status 3.1svn
21612configured by $0, generated by GNU Autoconf 2.60,
21613  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21614
21615Copyright (C) 2006 Free Software Foundation, Inc.
21616This config.status script is free software; the Free Software Foundation
21617gives unlimited permission to copy, distribute and modify it."
21618
21619ac_pwd='$ac_pwd'
21620srcdir='$srcdir'
21621INSTALL='$INSTALL'
21622_ACEOF
21623
21624cat >>$CONFIG_STATUS <<\_ACEOF
21625# If no file are specified by the user, then we need to provide default
21626# value.  By we need to know if files were specified by the user.
21627ac_need_defaults=:
21628while test $# != 0
21629do
21630  case $1 in
21631  --*=*)
21632    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21633    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21634    ac_shift=:
21635    ;;
21636  *)
21637    ac_option=$1
21638    ac_optarg=$2
21639    ac_shift=shift
21640    ;;
21641  esac
21642
21643  case $ac_option in
21644  # Handling of the options.
21645  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21646    ac_cs_recheck=: ;;
21647  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21648    echo "$ac_cs_version"; exit ;;
21649  --debug | --debu | --deb | --de | --d | -d )
21650    debug=: ;;
21651  --file | --fil | --fi | --f )
21652    $ac_shift
21653    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21654    ac_need_defaults=false;;
21655  --header | --heade | --head | --hea )
21656    $ac_shift
21657    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21658    ac_need_defaults=false;;
21659  --he | --h)
21660    # Conflict between --help and --header
21661    { echo "$as_me: error: ambiguous option: $1
21662Try \`$0 --help' for more information." >&2
21663   { (exit 1); exit 1; }; };;
21664  --help | --hel | -h )
21665    echo "$ac_cs_usage"; exit ;;
21666  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21667  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21668    ac_cs_silent=: ;;
21669
21670  # This is an error.
21671  -*) { echo "$as_me: error: unrecognized option: $1
21672Try \`$0 --help' for more information." >&2
21673   { (exit 1); exit 1; }; } ;;
21674
21675  *) ac_config_targets="$ac_config_targets $1"
21676     ac_need_defaults=false ;;
21677
21678  esac
21679  shift
21680done
21681
21682ac_configure_extra_args=
21683
21684if $ac_cs_silent; then
21685  exec 6>/dev/null
21686  ac_configure_extra_args="$ac_configure_extra_args --silent"
21687fi
21688
21689_ACEOF
21690cat >>$CONFIG_STATUS <<_ACEOF
21691if \$ac_cs_recheck; then
21692  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21693  CONFIG_SHELL=$SHELL
21694  export CONFIG_SHELL
21695  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21696fi
21697
21698_ACEOF
21699cat >>$CONFIG_STATUS <<\_ACEOF
21700exec 5>>config.log
21701{
21702  echo
21703  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21704## Running $as_me. ##
21705_ASBOX
21706  echo "$ac_log"
21707} >&5
21708
21709_ACEOF
21710cat >>$CONFIG_STATUS <<_ACEOF
21711#
21712# INIT-COMMANDS
21713#
21714llvm_src="${srcdir}"
21715
21716_ACEOF
21717
21718cat >>$CONFIG_STATUS <<\_ACEOF
21719
21720# Handling of arguments.
21721for ac_config_target in $ac_config_targets
21722do
21723  case $ac_config_target in
21724    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21725    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21726    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21727    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21728    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21729    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21730    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21731    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21732    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21733    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21734    "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21735    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21736    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21737    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21738    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21739    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21740    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21741    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21742    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21743    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21744    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21745    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21746    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21747    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21748    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21749    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21750
21751  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21752echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21753   { (exit 1); exit 1; }; };;
21754  esac
21755done
21756
21757
21758# If the user did not use the arguments to specify the items to instantiate,
21759# then the envvar interface is used.  Set only those that are not.
21760# We use the long form for the default assignment because of an extremely
21761# bizarre bug on SunOS 4.1.3.
21762if $ac_need_defaults; then
21763  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21764  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21765  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21766fi
21767
21768# Have a temporary directory for convenience.  Make it in the build tree
21769# simply because there is no reason against having it here, and in addition,
21770# creating and moving files from /tmp can sometimes cause problems.
21771# Hook for its removal unless debugging.
21772# Note that there is a small window in which the directory will not be cleaned:
21773# after its creation but before its name has been assigned to `$tmp'.
21774$debug ||
21775{
21776  tmp=
21777  trap 'exit_status=$?
21778  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21779' 0
21780  trap '{ (exit 1); exit 1; }' 1 2 13 15
21781}
21782# Create a (secure) tmp directory for tmp files.
21783
21784{
21785  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21786  test -n "$tmp" && test -d "$tmp"
21787}  ||
21788{
21789  tmp=./conf$$-$RANDOM
21790  (umask 077 && mkdir "$tmp")
21791} ||
21792{
21793   echo "$me: cannot create a temporary directory in ." >&2
21794   { (exit 1); exit 1; }
21795}
21796
21797#
21798# Set up the sed scripts for CONFIG_FILES section.
21799#
21800
21801# No need to generate the scripts if there are no CONFIG_FILES.
21802# This happens for instance when ./config.status config.h
21803if test -n "$CONFIG_FILES"; then
21804
21805_ACEOF
21806
21807
21808
21809ac_delim='%!_!# '
21810for ac_last_try in false false false false false :; do
21811  cat >conf$$subs.sed <<_ACEOF
21812SHELL!$SHELL$ac_delim
21813PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21814PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21815PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21816PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21817PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21818PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21819exec_prefix!$exec_prefix$ac_delim
21820prefix!$prefix$ac_delim
21821program_transform_name!$program_transform_name$ac_delim
21822bindir!$bindir$ac_delim
21823sbindir!$sbindir$ac_delim
21824libexecdir!$libexecdir$ac_delim
21825datarootdir!$datarootdir$ac_delim
21826datadir!$datadir$ac_delim
21827sysconfdir!$sysconfdir$ac_delim
21828sharedstatedir!$sharedstatedir$ac_delim
21829localstatedir!$localstatedir$ac_delim
21830includedir!$includedir$ac_delim
21831oldincludedir!$oldincludedir$ac_delim
21832docdir!$docdir$ac_delim
21833infodir!$infodir$ac_delim
21834htmldir!$htmldir$ac_delim
21835dvidir!$dvidir$ac_delim
21836pdfdir!$pdfdir$ac_delim
21837psdir!$psdir$ac_delim
21838libdir!$libdir$ac_delim
21839localedir!$localedir$ac_delim
21840mandir!$mandir$ac_delim
21841DEFS!$DEFS$ac_delim
21842ECHO_C!$ECHO_C$ac_delim
21843ECHO_N!$ECHO_N$ac_delim
21844ECHO_T!$ECHO_T$ac_delim
21845LIBS!$LIBS$ac_delim
21846build_alias!$build_alias$ac_delim
21847host_alias!$host_alias$ac_delim
21848target_alias!$target_alias$ac_delim
21849LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21850CC!$CC$ac_delim
21851CFLAGS!$CFLAGS$ac_delim
21852LDFLAGS!$LDFLAGS$ac_delim
21853CPPFLAGS!$CPPFLAGS$ac_delim
21854ac_ct_CC!$ac_ct_CC$ac_delim
21855EXEEXT!$EXEEXT$ac_delim
21856OBJEXT!$OBJEXT$ac_delim
21857CXX!$CXX$ac_delim
21858CXXFLAGS!$CXXFLAGS$ac_delim
21859ac_ct_CXX!$ac_ct_CXX$ac_delim
21860CPP!$CPP$ac_delim
21861subdirs!$subdirs$ac_delim
21862ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21863LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21864build!$build$ac_delim
21865build_cpu!$build_cpu$ac_delim
21866build_vendor!$build_vendor$ac_delim
21867build_os!$build_os$ac_delim
21868host!$host$ac_delim
21869host_cpu!$host_cpu$ac_delim
21870host_vendor!$host_vendor$ac_delim
21871host_os!$host_os$ac_delim
21872target!$target$ac_delim
21873target_cpu!$target_cpu$ac_delim
21874target_vendor!$target_vendor$ac_delim
21875target_os!$target_os$ac_delim
21876OS!$OS$ac_delim
21877HOST_OS!$HOST_OS$ac_delim
21878TARGET_OS!$TARGET_OS$ac_delim
21879LINKALL!$LINKALL$ac_delim
21880NOLINKALL!$NOLINKALL$ac_delim
21881LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21882LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21883ARCH!$ARCH$ac_delim
21884ENDIAN!$ENDIAN$ac_delim
21885GREP!$GREP$ac_delim
21886EGREP!$EGREP$ac_delim
21887LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21888BUILD_CC!$BUILD_CC$ac_delim
21889BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21890BUILD_CXX!$BUILD_CXX$ac_delim
21891CVSBUILD!$CVSBUILD$ac_delim
21892ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21893ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21894ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21895DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21896ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21897EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21898DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21899DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21900JIT!$JIT$ac_delim
21901TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21902ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21903ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21904LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21905ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21906ENABLE_PIC!$ENABLE_PIC$ac_delim
21907ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21908ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21909_ACEOF
21910
21911  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21912    break
21913  elif $ac_last_try; then
21914    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21915echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21916   { (exit 1); exit 1; }; }
21917  else
21918    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21919  fi
21920done
21921
21922ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21923if test -n "$ac_eof"; then
21924  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21925  ac_eof=`expr $ac_eof + 1`
21926fi
21927
21928cat >>$CONFIG_STATUS <<_ACEOF
21929cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21931_ACEOF
21932sed '
21933s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21934s/^/s,@/; s/!/@,|#_!!_#|/
21935:n
21936t n
21937s/'"$ac_delim"'$/,g/; t
21938s/$/\\/; p
21939N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21940' >>$CONFIG_STATUS <conf$$subs.sed
21941rm -f conf$$subs.sed
21942cat >>$CONFIG_STATUS <<_ACEOF
21943CEOF$ac_eof
21944_ACEOF
21945
21946
21947ac_delim='%!_!# '
21948for ac_last_try in false false false false false :; do
21949  cat >conf$$subs.sed <<_ACEOF
21950ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21951TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21952LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21953LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21954LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21955LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21956ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21957OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21958EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21959EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21960CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21961BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21962INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21963NM!$NM$ac_delim
21964ifGNUmake!$ifGNUmake$ac_delim
21965LN_S!$LN_S$ac_delim
21966CMP!$CMP$ac_delim
21967CP!$CP$ac_delim
21968DATE!$DATE$ac_delim
21969FIND!$FIND$ac_delim
21970MKDIR!$MKDIR$ac_delim
21971MV!$MV$ac_delim
21972RANLIB!$RANLIB$ac_delim
21973AR!$AR$ac_delim
21974RM!$RM$ac_delim
21975SED!$SED$ac_delim
21976TAR!$TAR$ac_delim
21977BINPWD!$BINPWD$ac_delim
21978GRAPHVIZ!$GRAPHVIZ$ac_delim
21979DOT!$DOT$ac_delim
21980FDP!$FDP$ac_delim
21981NEATO!$NEATO$ac_delim
21982TWOPI!$TWOPI$ac_delim
21983CIRCO!$CIRCO$ac_delim
21984GV!$GV$ac_delim
21985DOTTY!$DOTTY$ac_delim
21986XDOT_PY!$XDOT_PY$ac_delim
21987PERL!$PERL$ac_delim
21988HAVE_PERL!$HAVE_PERL$ac_delim
21989INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21990INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21991INSTALL_DATA!$INSTALL_DATA$ac_delim
21992BZIP2!$BZIP2$ac_delim
21993CAT!$CAT$ac_delim
21994DOXYGEN!$DOXYGEN$ac_delim
21995GROFF!$GROFF$ac_delim
21996GZIPBIN!$GZIPBIN$ac_delim
21997POD2HTML!$POD2HTML$ac_delim
21998POD2MAN!$POD2MAN$ac_delim
21999PDFROFF!$PDFROFF$ac_delim
22000RUNTEST!$RUNTEST$ac_delim
22001TCLSH!$TCLSH$ac_delim
22002ZIP!$ZIP$ac_delim
22003OCAMLC!$OCAMLC$ac_delim
22004OCAMLOPT!$OCAMLOPT$ac_delim
22005OCAMLDEP!$OCAMLDEP$ac_delim
22006OCAMLDOC!$OCAMLDOC$ac_delim
22007GAS!$GAS$ac_delim
22008HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22009INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22010INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22011CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22012CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22013LIBADD_DL!$LIBADD_DL$ac_delim
22014NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22015NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22016USE_UDIS86!$USE_UDIS86$ac_delim
22017USE_OPROFILE!$USE_OPROFILE$ac_delim
22018HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22019HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22020MMAP_FILE!$MMAP_FILE$ac_delim
22021SHLIBEXT!$SHLIBEXT$ac_delim
22022SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22023LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22024LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22025LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22026LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22027LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22028LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22029LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22030LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22031LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22032LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22033BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22034ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22035OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22036ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22037RPATH!$RPATH$ac_delim
22038RDYNAMIC!$RDYNAMIC$ac_delim
22039LIBOBJS!$LIBOBJS$ac_delim
22040LTLIBOBJS!$LTLIBOBJS$ac_delim
22041_ACEOF
22042
22043  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22044    break
22045  elif $ac_last_try; then
22046    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22047echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22048   { (exit 1); exit 1; }; }
22049  else
22050    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22051  fi
22052done
22053
22054ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22055if test -n "$ac_eof"; then
22056  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22057  ac_eof=`expr $ac_eof + 1`
22058fi
22059
22060cat >>$CONFIG_STATUS <<_ACEOF
22061cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22063_ACEOF
22064sed '
22065s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22066s/^/s,@/; s/!/@,|#_!!_#|/
22067:n
22068t n
22069s/'"$ac_delim"'$/,g/; t
22070s/$/\\/; p
22071N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22072' >>$CONFIG_STATUS <conf$$subs.sed
22073rm -f conf$$subs.sed
22074cat >>$CONFIG_STATUS <<_ACEOF
22075:end
22076s/|#_!!_#|//g
22077CEOF$ac_eof
22078_ACEOF
22079
22080
22081# VPATH may cause trouble with some makes, so we remove $(srcdir),
22082# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22083# trailing colons and then remove the whole line if VPATH becomes empty
22084# (actually we leave an empty line to preserve line numbers).
22085if test "x$srcdir" = x.; then
22086  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22087s/:*\$(srcdir):*/:/
22088s/:*\${srcdir}:*/:/
22089s/:*@srcdir@:*/:/
22090s/^\([^=]*=[	 ]*\):*/\1/
22091s/:*$//
22092s/^[^=]*=[	 ]*$//
22093}'
22094fi
22095
22096cat >>$CONFIG_STATUS <<\_ACEOF
22097fi # test -n "$CONFIG_FILES"
22098
22099
22100for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22101do
22102  case $ac_tag in
22103  :[FHLC]) ac_mode=$ac_tag; continue;;
22104  esac
22105  case $ac_mode$ac_tag in
22106  :[FHL]*:*);;
22107  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22108echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22109   { (exit 1); exit 1; }; };;
22110  :[FH]-) ac_tag=-:-;;
22111  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22112  esac
22113  ac_save_IFS=$IFS
22114  IFS=:
22115  set x $ac_tag
22116  IFS=$ac_save_IFS
22117  shift
22118  ac_file=$1
22119  shift
22120
22121  case $ac_mode in
22122  :L) ac_source=$1;;
22123  :[FH])
22124    ac_file_inputs=
22125    for ac_f
22126    do
22127      case $ac_f in
22128      -) ac_f="$tmp/stdin";;
22129      *) # Look for the file first in the build tree, then in the source tree
22130	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22131	 # because $ac_f cannot contain `:'.
22132	 test -f "$ac_f" ||
22133	   case $ac_f in
22134	   [\\/$]*) false;;
22135	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22136	   esac ||
22137	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22138echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22139   { (exit 1); exit 1; }; };;
22140      esac
22141      ac_file_inputs="$ac_file_inputs $ac_f"
22142    done
22143
22144    # Let's still pretend it is `configure' which instantiates (i.e., don't
22145    # use $as_me), people would be surprised to read:
22146    #    /* config.h.  Generated by config.status.  */
22147    configure_input="Generated from "`IFS=:
22148	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22149    if test x"$ac_file" != x-; then
22150      configure_input="$ac_file.  $configure_input"
22151      { echo "$as_me:$LINENO: creating $ac_file" >&5
22152echo "$as_me: creating $ac_file" >&6;}
22153    fi
22154
22155    case $ac_tag in
22156    *:-:* | *:-) cat >"$tmp/stdin";;
22157    esac
22158    ;;
22159  esac
22160
22161  ac_dir=`$as_dirname -- "$ac_file" ||
22162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163	 X"$ac_file" : 'X\(//\)[^/]' \| \
22164	 X"$ac_file" : 'X\(//\)$' \| \
22165	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22166echo X"$ac_file" |
22167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168	    s//\1/
22169	    q
22170	  }
22171	  /^X\(\/\/\)[^/].*/{
22172	    s//\1/
22173	    q
22174	  }
22175	  /^X\(\/\/\)$/{
22176	    s//\1/
22177	    q
22178	  }
22179	  /^X\(\/\).*/{
22180	    s//\1/
22181	    q
22182	  }
22183	  s/.*/./; q'`
22184  { as_dir="$ac_dir"
22185  case $as_dir in #(
22186  -*) as_dir=./$as_dir;;
22187  esac
22188  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22189    as_dirs=
22190    while :; do
22191      case $as_dir in #(
22192      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22193      *) as_qdir=$as_dir;;
22194      esac
22195      as_dirs="'$as_qdir' $as_dirs"
22196      as_dir=`$as_dirname -- "$as_dir" ||
22197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198	 X"$as_dir" : 'X\(//\)[^/]' \| \
22199	 X"$as_dir" : 'X\(//\)$' \| \
22200	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22201echo X"$as_dir" |
22202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22203	    s//\1/
22204	    q
22205	  }
22206	  /^X\(\/\/\)[^/].*/{
22207	    s//\1/
22208	    q
22209	  }
22210	  /^X\(\/\/\)$/{
22211	    s//\1/
22212	    q
22213	  }
22214	  /^X\(\/\).*/{
22215	    s//\1/
22216	    q
22217	  }
22218	  s/.*/./; q'`
22219      test -d "$as_dir" && break
22220    done
22221    test -z "$as_dirs" || eval "mkdir $as_dirs"
22222  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22223echo "$as_me: error: cannot create directory $as_dir" >&2;}
22224   { (exit 1); exit 1; }; }; }
22225  ac_builddir=.
22226
22227case "$ac_dir" in
22228.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22229*)
22230  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22231  # A ".." for each directory in $ac_dir_suffix.
22232  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22233  case $ac_top_builddir_sub in
22234  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22236  esac ;;
22237esac
22238ac_abs_top_builddir=$ac_pwd
22239ac_abs_builddir=$ac_pwd$ac_dir_suffix
22240# for backward compatibility:
22241ac_top_builddir=$ac_top_build_prefix
22242
22243case $srcdir in
22244  .)  # We are building in place.
22245    ac_srcdir=.
22246    ac_top_srcdir=$ac_top_builddir_sub
22247    ac_abs_top_srcdir=$ac_pwd ;;
22248  [\\/]* | ?:[\\/]* )  # Absolute name.
22249    ac_srcdir=$srcdir$ac_dir_suffix;
22250    ac_top_srcdir=$srcdir
22251    ac_abs_top_srcdir=$srcdir ;;
22252  *) # Relative name.
22253    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22254    ac_top_srcdir=$ac_top_build_prefix$srcdir
22255    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22256esac
22257ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22258
22259
22260  case $ac_mode in
22261  :F)
22262  #
22263  # CONFIG_FILE
22264  #
22265
22266  case $INSTALL in
22267  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22268  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22269  esac
22270_ACEOF
22271
22272cat >>$CONFIG_STATUS <<\_ACEOF
22273# If the template does not know about datarootdir, expand it.
22274# FIXME: This hack should be removed a few years after 2.60.
22275ac_datarootdir_hack=; ac_datarootdir_seen=
22276
22277case `sed -n '/datarootdir/ {
22278  p
22279  q
22280}
22281/@datadir@/p
22282/@docdir@/p
22283/@infodir@/p
22284/@localedir@/p
22285/@mandir@/p
22286' $ac_file_inputs` in
22287*datarootdir*) ac_datarootdir_seen=yes;;
22288*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22289  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22290echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22291_ACEOF
22292cat >>$CONFIG_STATUS <<_ACEOF
22293  ac_datarootdir_hack='
22294  s&@datadir@&$datadir&g
22295  s&@docdir@&$docdir&g
22296  s&@infodir@&$infodir&g
22297  s&@localedir@&$localedir&g
22298  s&@mandir@&$mandir&g
22299    s&\\\${datarootdir}&$datarootdir&g' ;;
22300esac
22301_ACEOF
22302
22303# Neutralize VPATH when `$srcdir' = `.'.
22304# Shell code in configure.ac might set extrasub.
22305# FIXME: do we really want to maintain this feature?
22306cat >>$CONFIG_STATUS <<_ACEOF
22307  sed "$ac_vpsub
22308$extrasub
22309_ACEOF
22310cat >>$CONFIG_STATUS <<\_ACEOF
22311:t
22312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22313s&@configure_input@&$configure_input&;t t
22314s&@top_builddir@&$ac_top_builddir_sub&;t t
22315s&@srcdir@&$ac_srcdir&;t t
22316s&@abs_srcdir@&$ac_abs_srcdir&;t t
22317s&@top_srcdir@&$ac_top_srcdir&;t t
22318s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22319s&@builddir@&$ac_builddir&;t t
22320s&@abs_builddir@&$ac_abs_builddir&;t t
22321s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22322s&@INSTALL@&$ac_INSTALL&;t t
22323$ac_datarootdir_hack
22324" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22325
22326test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22327  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22328  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22329  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330which seems to be undefined.  Please make sure it is defined." >&5
22331echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22332which seems to be undefined.  Please make sure it is defined." >&2;}
22333
22334  rm -f "$tmp/stdin"
22335  case $ac_file in
22336  -) cat "$tmp/out"; rm -f "$tmp/out";;
22337  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22338  esac
22339 ;;
22340  :H)
22341  #
22342  # CONFIG_HEADER
22343  #
22344_ACEOF
22345
22346# Transform confdefs.h into a sed script `conftest.defines', that
22347# substitutes the proper values into config.h.in to produce config.h.
22348rm -f conftest.defines conftest.tail
22349# First, append a space to every undef/define line, to ease matching.
22350echo 's/$/ /' >conftest.defines
22351# Then, protect against being on the right side of a sed subst, or in
22352# an unquoted here document, in config.status.  If some macros were
22353# called several times there might be several #defines for the same
22354# symbol, which is useless.  But do not sort them, since the last
22355# AC_DEFINE must be honored.
22356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22357# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22358# NAME is the cpp macro being defined, VALUE is the value it is being given.
22359# PARAMS is the parameter list in the macro definition--in most cases, it's
22360# just an empty string.
22361ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22362ac_dB='\\)[	 (].*,\\1define\\2'
22363ac_dC=' '
22364ac_dD=' ,'
22365
22366uniq confdefs.h |
22367  sed -n '
22368	t rset
22369	:rset
22370	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22371	t ok
22372	d
22373	:ok
22374	s/[\\&,]/\\&/g
22375	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22376	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22377  ' >>conftest.defines
22378
22379# Remove the space that was appended to ease matching.
22380# Then replace #undef with comments.  This is necessary, for
22381# example, in the case of _POSIX_SOURCE, which is predefined and required
22382# on some systems where configure will not decide to define it.
22383# (The regexp can be short, since the line contains either #define or #undef.)
22384echo 's/ $//
22385s,^[	 #]*u.*,/* & */,' >>conftest.defines
22386
22387# Break up conftest.defines:
22388ac_max_sed_lines=50
22389
22390# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22391# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22392# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22393# et cetera.
22394ac_in='$ac_file_inputs'
22395ac_out='"$tmp/out1"'
22396ac_nxt='"$tmp/out2"'
22397
22398while :
22399do
22400  # Write a here document:
22401    cat >>$CONFIG_STATUS <<_ACEOF
22402    # First, check the format of the line:
22403    cat >"\$tmp/defines.sed" <<\\CEOF
22404/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22405/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22406b
22407:def
22408_ACEOF
22409  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22410  echo 'CEOF
22411    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22412  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22413  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22414  grep . conftest.tail >/dev/null || break
22415  rm -f conftest.defines
22416  mv conftest.tail conftest.defines
22417done
22418rm -f conftest.defines conftest.tail
22419
22420echo "ac_result=$ac_in" >>$CONFIG_STATUS
22421cat >>$CONFIG_STATUS <<\_ACEOF
22422  if test x"$ac_file" != x-; then
22423    echo "/* $configure_input  */" >"$tmp/config.h"
22424    cat "$ac_result" >>"$tmp/config.h"
22425    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22426      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22427echo "$as_me: $ac_file is unchanged" >&6;}
22428    else
22429      rm -f $ac_file
22430      mv "$tmp/config.h" $ac_file
22431    fi
22432  else
22433    echo "/* $configure_input  */"
22434    cat "$ac_result"
22435  fi
22436  rm -f "$tmp/out12"
22437 ;;
22438
22439  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22440echo "$as_me: executing $ac_file commands" >&6;}
22441 ;;
22442  esac
22443
22444
22445  case $ac_file$ac_mode in
22446    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22447   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22448    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22449   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22450    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22451   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22452    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22453   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22454    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22455   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22456    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22457   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22458    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22459   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22460    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22461   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22462    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22463   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22464    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22465   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22466    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22467   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22468    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22469   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22470    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22471   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22472
22473  esac
22474done # for ac_tag
22475
22476
22477{ (exit 0); exit 0; }
22478_ACEOF
22479chmod +x $CONFIG_STATUS
22480ac_clean_files=$ac_clean_files_save
22481
22482
22483# configure is writing to config.log, and then calls config.status.
22484# config.status does its own redirection, appending to config.log.
22485# Unfortunately, on DOS this fails, as config.log is still kept open
22486# by configure, so config.status won't be able to write to it; its
22487# output is simply discarded.  So we exec the FD to /dev/null,
22488# effectively closing config.log, so it can be properly (re)opened and
22489# appended to by config.status.  When coming back to configure, we
22490# need to make the FD available again.
22491if test "$no_create" != yes; then
22492  ac_cs_success=:
22493  ac_config_status_args=
22494  test "$silent" = yes &&
22495    ac_config_status_args="$ac_config_status_args --quiet"
22496  exec 5>/dev/null
22497  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22498  exec 5>>config.log
22499  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500  # would make configure fail if this is the last instruction.
22501  $ac_cs_success || { (exit 1); exit 1; }
22502fi
22503
22504#
22505# CONFIG_SUBDIRS section.
22506#
22507if test "$no_recursion" != yes; then
22508
22509  # Remove --cache-file and --srcdir arguments so they do not pile up.
22510  ac_sub_configure_args=
22511  ac_prev=
22512  eval "set x $ac_configure_args"
22513  shift
22514  for ac_arg
22515  do
22516    if test -n "$ac_prev"; then
22517      ac_prev=
22518      continue
22519    fi
22520    case $ac_arg in
22521    -cache-file | --cache-file | --cache-fil | --cache-fi \
22522    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22523      ac_prev=cache_file ;;
22524    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22525    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22526    | --c=*)
22527      ;;
22528    --config-cache | -C)
22529      ;;
22530    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22531      ac_prev=srcdir ;;
22532    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22533      ;;
22534    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22535      ac_prev=prefix ;;
22536    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22537      ;;
22538    *)
22539      case $ac_arg in
22540      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22541      esac
22542      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22543    esac
22544  done
22545
22546  # Always prepend --prefix to ensure using the same prefix
22547  # in subdir configurations.
22548  ac_arg="--prefix=$prefix"
22549  case $ac_arg in
22550  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22551  esac
22552  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22553
22554  ac_popdir=`pwd`
22555  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22556
22557    # Do not complain, so a configure script can configure whichever
22558    # parts of a large source tree are present.
22559    test -d "$srcdir/$ac_dir" || continue
22560
22561    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22562    echo "$as_me:$LINENO: $ac_msg" >&5
22563    echo "$ac_msg" >&6
22564    { as_dir="$ac_dir"
22565  case $as_dir in #(
22566  -*) as_dir=./$as_dir;;
22567  esac
22568  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22569    as_dirs=
22570    while :; do
22571      case $as_dir in #(
22572      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22573      *) as_qdir=$as_dir;;
22574      esac
22575      as_dirs="'$as_qdir' $as_dirs"
22576      as_dir=`$as_dirname -- "$as_dir" ||
22577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578	 X"$as_dir" : 'X\(//\)[^/]' \| \
22579	 X"$as_dir" : 'X\(//\)$' \| \
22580	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22581echo X"$as_dir" |
22582    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22583	    s//\1/
22584	    q
22585	  }
22586	  /^X\(\/\/\)[^/].*/{
22587	    s//\1/
22588	    q
22589	  }
22590	  /^X\(\/\/\)$/{
22591	    s//\1/
22592	    q
22593	  }
22594	  /^X\(\/\).*/{
22595	    s//\1/
22596	    q
22597	  }
22598	  s/.*/./; q'`
22599      test -d "$as_dir" && break
22600    done
22601    test -z "$as_dirs" || eval "mkdir $as_dirs"
22602  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22603echo "$as_me: error: cannot create directory $as_dir" >&2;}
22604   { (exit 1); exit 1; }; }; }
22605    ac_builddir=.
22606
22607case "$ac_dir" in
22608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22609*)
22610  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22611  # A ".." for each directory in $ac_dir_suffix.
22612  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22613  case $ac_top_builddir_sub in
22614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22616  esac ;;
22617esac
22618ac_abs_top_builddir=$ac_pwd
22619ac_abs_builddir=$ac_pwd$ac_dir_suffix
22620# for backward compatibility:
22621ac_top_builddir=$ac_top_build_prefix
22622
22623case $srcdir in
22624  .)  # We are building in place.
22625    ac_srcdir=.
22626    ac_top_srcdir=$ac_top_builddir_sub
22627    ac_abs_top_srcdir=$ac_pwd ;;
22628  [\\/]* | ?:[\\/]* )  # Absolute name.
22629    ac_srcdir=$srcdir$ac_dir_suffix;
22630    ac_top_srcdir=$srcdir
22631    ac_abs_top_srcdir=$srcdir ;;
22632  *) # Relative name.
22633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22634    ac_top_srcdir=$ac_top_build_prefix$srcdir
22635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22636esac
22637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22638
22639
22640    cd "$ac_dir"
22641
22642    # Check for guested configure; otherwise get Cygnus style configure.
22643    if test -f "$ac_srcdir/configure.gnu"; then
22644      ac_sub_configure=$ac_srcdir/configure.gnu
22645    elif test -f "$ac_srcdir/configure"; then
22646      ac_sub_configure=$ac_srcdir/configure
22647    elif test -f "$ac_srcdir/configure.in"; then
22648      # This should be Cygnus configure.
22649      ac_sub_configure=$ac_aux_dir/configure
22650    else
22651      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22652echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22653      ac_sub_configure=
22654    fi
22655
22656    # The recursion is here.
22657    if test -n "$ac_sub_configure"; then
22658      # Make the cache file name correct relative to the subdirectory.
22659      case $cache_file in
22660      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22661      *) # Relative name.
22662	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22663      esac
22664
22665      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22666echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22667      # The eval makes quoting arguments work.
22668      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22669	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22670	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22671echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22672   { (exit 1); exit 1; }; }
22673    fi
22674
22675    cd "$ac_popdir"
22676  done
22677fi
22678
22679