configure revision 9b3cd4890d5757f72d4f31ac8588a76bcc97026b
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
3906case "$llvm_cv_target_arch" in
3907    x86)     LLVM_NATIVE_ARCH="X86" ;;
3908    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3909    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3910esac
3911
3912ARCH=$llvm_cv_target_arch
3913
3914
3915
3916
3917{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919if test "${ac_cv_path_GREP+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  # Extract the first word of "grep ggrep" to use in msg output
3923if test -z "$GREP"; then
3924set dummy grep ggrep; ac_prog_name=$2
3925if test "${ac_cv_path_GREP+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  ac_path_GREP_found=false
3929# Loop through the user's path and test for each of PROGNAME-LIST
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932do
3933  IFS=$as_save_IFS
3934  test -z "$as_dir" && as_dir=.
3935  for ac_prog in grep ggrep; do
3936  for ac_exec_ext in '' $ac_executable_extensions; do
3937    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939    # Check for GNU ac_path_GREP and select it if it is found.
3940  # Check for GNU $ac_path_GREP
3941case `"$ac_path_GREP" --version 2>&1` in
3942*GNU*)
3943  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944*)
3945  ac_count=0
3946  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3947  while :
3948  do
3949    cat "conftest.in" "conftest.in" >"conftest.tmp"
3950    mv "conftest.tmp" "conftest.in"
3951    cp "conftest.in" "conftest.nl"
3952    echo 'GREP' >> "conftest.nl"
3953    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955    ac_count=`expr $ac_count + 1`
3956    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957      # Best one so far, save it but keep looking for a better one
3958      ac_cv_path_GREP="$ac_path_GREP"
3959      ac_path_GREP_max=$ac_count
3960    fi
3961    # 10*(2^10) chars as input seems more than enough
3962    test $ac_count -gt 10 && break
3963  done
3964  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965esac
3966
3967
3968    $ac_path_GREP_found && break 3
3969  done
3970done
3971
3972done
3973IFS=$as_save_IFS
3974
3975
3976fi
3977
3978GREP="$ac_cv_path_GREP"
3979if test -z "$GREP"; then
3980  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982   { (exit 1); exit 1; }; }
3983fi
3984
3985else
3986  ac_cv_path_GREP=$GREP
3987fi
3988
3989
3990fi
3991{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
3995
3996{ echo "$as_me:$LINENO: checking for egrep" >&5
3997echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999  echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002   then ac_cv_path_EGREP="$GREP -E"
4003   else
4004     # Extract the first word of "egrep" to use in msg output
4005if test -z "$EGREP"; then
4006set dummy egrep; ac_prog_name=$2
4007if test "${ac_cv_path_EGREP+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  ac_path_EGREP_found=false
4011# Loop through the user's path and test for each of PROGNAME-LIST
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017  for ac_prog in egrep; do
4018  for ac_exec_ext in '' $ac_executable_extensions; do
4019    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021    # Check for GNU ac_path_EGREP and select it if it is found.
4022  # Check for GNU $ac_path_EGREP
4023case `"$ac_path_EGREP" --version 2>&1` in
4024*GNU*)
4025  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026*)
4027  ac_count=0
4028  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4029  while :
4030  do
4031    cat "conftest.in" "conftest.in" >"conftest.tmp"
4032    mv "conftest.tmp" "conftest.in"
4033    cp "conftest.in" "conftest.nl"
4034    echo 'EGREP' >> "conftest.nl"
4035    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037    ac_count=`expr $ac_count + 1`
4038    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039      # Best one so far, save it but keep looking for a better one
4040      ac_cv_path_EGREP="$ac_path_EGREP"
4041      ac_path_EGREP_max=$ac_count
4042    fi
4043    # 10*(2^10) chars as input seems more than enough
4044    test $ac_count -gt 10 && break
4045  done
4046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
4049
4050    $ac_path_EGREP_found && break 3
4051  done
4052done
4053
4054done
4055IFS=$as_save_IFS
4056
4057
4058fi
4059
4060EGREP="$ac_cv_path_EGREP"
4061if test -z "$EGREP"; then
4062  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064   { (exit 1); exit 1; }; }
4065fi
4066
4067else
4068  ac_cv_path_EGREP=$EGREP
4069fi
4070
4071
4072   fi
4073fi
4074{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4077
4078
4079{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081if test "${ac_cv_header_stdc+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
4095int
4096main ()
4097{
4098
4099  ;
4100  return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
4105case "(($ac_try" in
4106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107  *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110  (eval "$ac_compile") 2>conftest.er1
4111  ac_status=$?
4112  grep -v '^ *+' conftest.er1 >conftest.err
4113  rm -f conftest.er1
4114  cat conftest.err >&5
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); } &&
4117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118  { (case "(($ac_try" in
4119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120  *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123  (eval "$ac_try") 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; } &&
4127	 { ac_try='test -s conftest.$ac_objext'
4128  { (case "(($ac_try" in
4129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130  *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133  (eval "$ac_try") 2>&5
4134  ac_status=$?
4135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136  (exit $ac_status); }; }; then
4137  ac_cv_header_stdc=yes
4138else
4139  echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142	ac_cv_header_stdc=no
4143fi
4144
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h.  */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h.  */
4155#include <string.h>
4156
4157_ACEOF
4158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159  $EGREP "memchr" >/dev/null 2>&1; then
4160  :
4161else
4162  ac_cv_header_stdc=no
4163fi
4164rm -f conftest*
4165
4166fi
4167
4168if test $ac_cv_header_stdc = yes; then
4169  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170  cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h.  */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h.  */
4176#include <stdlib.h>
4177
4178_ACEOF
4179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180  $EGREP "free" >/dev/null 2>&1; then
4181  :
4182else
4183  ac_cv_header_stdc=no
4184fi
4185rm -f conftest*
4186
4187fi
4188
4189if test $ac_cv_header_stdc = yes; then
4190  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191  if test "$cross_compiling" = yes; then
4192  :
4193else
4194  cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h.  */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h.  */
4200#include <ctype.h>
4201#include <stdlib.h>
4202#if ((' ' & 0x0FF) == 0x020)
4203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205#else
4206# define ISLOWER(c) \
4207		   (('a' <= (c) && (c) <= 'i') \
4208		     || ('j' <= (c) && (c) <= 'r') \
4209		     || ('s' <= (c) && (c) <= 'z'))
4210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211#endif
4212
4213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214int
4215main ()
4216{
4217  int i;
4218  for (i = 0; i < 256; i++)
4219    if (XOR (islower (i), ISLOWER (i))
4220	|| toupper (i) != TOUPPER (i))
4221      return 2;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest$ac_exeext
4226if { (ac_try="$ac_link"
4227case "(($ac_try" in
4228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229  *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232  (eval "$ac_link") 2>&5
4233  ac_status=$?
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236  { (case "(($ac_try" in
4237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238  *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241  (eval "$ac_try") 2>&5
4242  ac_status=$?
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); }; }; then
4245  :
4246else
4247  echo "$as_me: program exited with status $ac_status" >&5
4248echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251( exit $ac_status )
4252ac_cv_header_stdc=no
4253fi
4254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255fi
4256
4257
4258fi
4259fi
4260{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4261echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4262if test $ac_cv_header_stdc = yes; then
4263
4264cat >>confdefs.h <<\_ACEOF
4265#define STDC_HEADERS 1
4266_ACEOF
4267
4268fi
4269
4270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4281		  inttypes.h stdint.h unistd.h
4282do
4283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287  echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289  cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295$ac_includes_default
4296
4297#include <$ac_header>
4298_ACEOF
4299rm -f conftest.$ac_objext
4300if { (ac_try="$ac_compile"
4301case "(($ac_try" in
4302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303  *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306  (eval "$ac_compile") 2>conftest.er1
4307  ac_status=$?
4308  grep -v '^ *+' conftest.er1 >conftest.err
4309  rm -f conftest.er1
4310  cat conftest.err >&5
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); } &&
4313	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4314  { (case "(($ac_try" in
4315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316  *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319  (eval "$ac_try") 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; } &&
4323	 { ac_try='test -s conftest.$ac_objext'
4324  { (case "(($ac_try" in
4325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326  *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329  (eval "$ac_try") 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); }; }; then
4333  eval "$as_ac_Header=yes"
4334else
4335  echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338	eval "$as_ac_Header=no"
4339fi
4340
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342fi
4343ac_res=`eval echo '${'$as_ac_Header'}'`
4344	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4345echo "${ECHO_T}$ac_res" >&6; }
4346if test `eval echo '${'$as_ac_Header'}'` = yes; then
4347  cat >>confdefs.h <<_ACEOF
4348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349_ACEOF
4350
4351fi
4352
4353done
4354
4355
4356{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4357echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4358if test "${ac_cv_c_bigendian+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  # See if sys/param.h defines the BYTE_ORDER macro.
4362cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h.  */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h.  */
4368#include <sys/types.h>
4369#include <sys/param.h>
4370
4371int
4372main ()
4373{
4374#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375 bogus endian macros
4376#endif
4377
4378  ;
4379  return 0;
4380}
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (ac_try="$ac_compile"
4384case "(($ac_try" in
4385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386  *) ac_try_echo=$ac_try;;
4387esac
4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389  (eval "$ac_compile") 2>conftest.er1
4390  ac_status=$?
4391  grep -v '^ *+' conftest.er1 >conftest.err
4392  rm -f conftest.er1
4393  cat conftest.err >&5
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } &&
4396	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397  { (case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402  (eval "$ac_try") 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; } &&
4406	 { ac_try='test -s conftest.$ac_objext'
4407  { (case "(($ac_try" in
4408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409  *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412  (eval "$ac_try") 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; }; then
4416  # It does; now see whether it defined to BIG_ENDIAN or not.
4417cat >conftest.$ac_ext <<_ACEOF
4418/* confdefs.h.  */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
4422/* end confdefs.h.  */
4423#include <sys/types.h>
4424#include <sys/param.h>
4425
4426int
4427main ()
4428{
4429#if BYTE_ORDER != BIG_ENDIAN
4430 not big endian
4431#endif
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437rm -f conftest.$ac_objext
4438if { (ac_try="$ac_compile"
4439case "(($ac_try" in
4440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441  *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444  (eval "$ac_compile") 2>conftest.er1
4445  ac_status=$?
4446  grep -v '^ *+' conftest.er1 >conftest.err
4447  rm -f conftest.er1
4448  cat conftest.err >&5
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); } &&
4451	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452  { (case "(($ac_try" in
4453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454  *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457  (eval "$ac_try") 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; } &&
4461	 { ac_try='test -s conftest.$ac_objext'
4462  { (case "(($ac_try" in
4463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464  *) ac_try_echo=$ac_try;;
4465esac
4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467  (eval "$ac_try") 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; }; then
4471  ac_cv_c_bigendian=yes
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476	ac_cv_c_bigendian=no
4477fi
4478
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480else
4481  echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484	# It does not; compile a test program.
4485if test "$cross_compiling" = yes; then
4486  # try to guess the endianness by grepping values into an object file
4487  ac_cv_c_bigendian=unknown
4488  cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4495short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4496void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4497short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4498short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4500int
4501main ()
4502{
4503 _ascii (); _ebcdic ();
4504  ;
4505  return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (ac_try="$ac_compile"
4510case "(($ac_try" in
4511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512  *) ac_try_echo=$ac_try;;
4513esac
4514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515  (eval "$ac_compile") 2>conftest.er1
4516  ac_status=$?
4517  grep -v '^ *+' conftest.er1 >conftest.err
4518  rm -f conftest.er1
4519  cat conftest.err >&5
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); } &&
4522	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523  { (case "(($ac_try" in
4524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525  *) ac_try_echo=$ac_try;;
4526esac
4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528  (eval "$ac_try") 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; } &&
4532	 { ac_try='test -s conftest.$ac_objext'
4533  { (case "(($ac_try" in
4534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535  *) ac_try_echo=$ac_try;;
4536esac
4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538  (eval "$ac_try") 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; }; then
4542  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4543  ac_cv_c_bigendian=yes
4544fi
4545if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546  if test "$ac_cv_c_bigendian" = unknown; then
4547    ac_cv_c_bigendian=no
4548  else
4549    # finding both strings is unlikely to happen, but who knows?
4550    ac_cv_c_bigendian=unknown
4551  fi
4552fi
4553else
4554  echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557
4558fi
4559
4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561else
4562  cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h.  */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h.  */
4568$ac_includes_default
4569int
4570main ()
4571{
4572
4573  /* Are we little or big endian?  From Harbison&Steele.  */
4574  union
4575  {
4576    long int l;
4577    char c[sizeof (long int)];
4578  } u;
4579  u.l = 1;
4580  return u.c[sizeof (long int) - 1] == 1;
4581
4582  ;
4583  return 0;
4584}
4585_ACEOF
4586rm -f conftest$ac_exeext
4587if { (ac_try="$ac_link"
4588case "(($ac_try" in
4589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590  *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593  (eval "$ac_link") 2>&5
4594  ac_status=$?
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4597  { (case "(($ac_try" in
4598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599  *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602  (eval "$ac_try") 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; }; then
4606  ac_cv_c_bigendian=no
4607else
4608  echo "$as_me: program exited with status $ac_status" >&5
4609echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612( exit $ac_status )
4613ac_cv_c_bigendian=yes
4614fi
4615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616fi
4617
4618
4619fi
4620
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4624echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4625case $ac_cv_c_bigendian in
4626  yes)
4627    ENDIAN=big
4628 ;;
4629  no)
4630    ENDIAN=little
4631 ;;
4632  *)
4633    { { echo "$as_me:$LINENO: error: unknown endianness
4634presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4635echo "$as_me: error: unknown endianness
4636presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4637   { (exit 1); exit 1; }; } ;;
4638esac
4639
4640
4641if test "$cross_compiling" = yes; then
4642  LLVM_CROSS_COMPILING=1
4643
4644
4645{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4646echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4647if test "${ac_cv_build_exeext+set}" = set; then
4648  echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4651  ac_cv_build_exeext=.exe
4652else
4653  ac_build_prefix=${build_alias}-
4654
4655  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4656set dummy ${ac_build_prefix}gcc; ac_word=$2
4657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660  echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662  if test -n "$BUILD_CC"; then
4663  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670  for ac_exec_ext in '' $ac_executable_extensions; do
4671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682BUILD_CC=$ac_cv_prog_BUILD_CC
4683if test -n "$BUILD_CC"; then
4684  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685echo "${ECHO_T}$BUILD_CC" >&6; }
4686else
4687  { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
4689fi
4690
4691
4692  if test -z "$BUILD_CC"; then
4693     # Extract the first word of "gcc", so it can be a program name with args.
4694set dummy gcc; ac_word=$2
4695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  if test -n "$BUILD_CC"; then
4701  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708  for ac_exec_ext in '' $ac_executable_extensions; do
4709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710    ac_cv_prog_BUILD_CC="gcc"
4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720BUILD_CC=$ac_cv_prog_BUILD_CC
4721if test -n "$BUILD_CC"; then
4722  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4723echo "${ECHO_T}$BUILD_CC" >&6; }
4724else
4725  { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727fi
4728
4729
4730     if test -z "$BUILD_CC"; then
4731       # Extract the first word of "cc", so it can be a program name with args.
4732set dummy cc; ac_word=$2
4733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4736  echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738  if test -n "$BUILD_CC"; then
4739  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4740else
4741  ac_prog_rejected=no
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_exec_ext in '' $ac_executable_extensions; do
4748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750       ac_prog_rejected=yes
4751       continue
4752     fi
4753    ac_cv_prog_BUILD_CC="cc"
4754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758done
4759IFS=$as_save_IFS
4760
4761if test $ac_prog_rejected = yes; then
4762  # We found a bogon in the path, so make sure we never use it.
4763  set dummy $ac_cv_prog_BUILD_CC
4764  shift
4765  if test $# != 0; then
4766    # We chose a different compiler from the bogus one.
4767    # However, it has the same basename, so the bogon will be chosen
4768    # first if we set BUILD_CC to just the basename; use the full file name.
4769    shift
4770    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4771  fi
4772fi
4773fi
4774fi
4775BUILD_CC=$ac_cv_prog_BUILD_CC
4776if test -n "$BUILD_CC"; then
4777  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4778echo "${ECHO_T}$BUILD_CC" >&6; }
4779else
4780  { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785     fi
4786  fi
4787  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4788echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4789   { (exit 1); exit 1; }; }
4790  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4791  rm -f conftest*
4792  echo 'int main () { return 0; }' > conftest.$ac_ext
4793  ac_cv_build_exeext=
4794  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4795  (eval $ac_build_link) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; then
4799    for file in conftest.*; do
4800      case $file in
4801      *.c | *.o | *.obj | *.dSYM) ;;
4802      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4803      esac
4804    done
4805  else
4806    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4807echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4808   { (exit 1); exit 1; }; }
4809  fi
4810  rm -f conftest*
4811  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4812fi
4813fi
4814
4815BUILD_EXEEXT=""
4816test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4817{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4818echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4819ac_build_exeext=$BUILD_EXEEXT
4820
4821  ac_build_prefix=${build_alias}-
4822  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4823set dummy ${ac_build_prefix}g++; ac_word=$2
4824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827  echo $ECHO_N "(cached) $ECHO_C" >&6
4828else
4829  if test -n "$BUILD_CXX"; then
4830  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835  IFS=$as_save_IFS
4836  test -z "$as_dir" && as_dir=.
4837  for ac_exec_ext in '' $ac_executable_extensions; do
4838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841    break 2
4842  fi
4843done
4844done
4845IFS=$as_save_IFS
4846
4847fi
4848fi
4849BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850if test -n "$BUILD_CXX"; then
4851  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852echo "${ECHO_T}$BUILD_CXX" >&6; }
4853else
4854  { echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6; }
4856fi
4857
4858
4859  if test -z "$BUILD_CXX"; then
4860     # Extract the first word of "g++", so it can be a program name with args.
4861set dummy g++; ac_word=$2
4862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865  echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867  if test -n "$BUILD_CXX"; then
4868  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875  for ac_exec_ext in '' $ac_executable_extensions; do
4876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877    ac_cv_prog_BUILD_CXX="g++"
4878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879    break 2
4880  fi
4881done
4882done
4883IFS=$as_save_IFS
4884
4885fi
4886fi
4887BUILD_CXX=$ac_cv_prog_BUILD_CXX
4888if test -n "$BUILD_CXX"; then
4889  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4890echo "${ECHO_T}$BUILD_CXX" >&6; }
4891else
4892  { echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6; }
4894fi
4895
4896
4897     if test -z "$BUILD_CXX"; then
4898       # Extract the first word of "c++", so it can be a program name with args.
4899set dummy c++; ac_word=$2
4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4903  echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905  if test -n "$BUILD_CXX"; then
4906  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4907else
4908  ac_prog_rejected=no
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914  for ac_exec_ext in '' $ac_executable_extensions; do
4915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4917       ac_prog_rejected=yes
4918       continue
4919     fi
4920    ac_cv_prog_BUILD_CXX="c++"
4921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925done
4926IFS=$as_save_IFS
4927
4928if test $ac_prog_rejected = yes; then
4929  # We found a bogon in the path, so make sure we never use it.
4930  set dummy $ac_cv_prog_BUILD_CXX
4931  shift
4932  if test $# != 0; then
4933    # We chose a different compiler from the bogus one.
4934    # However, it has the same basename, so the bogon will be chosen
4935    # first if we set BUILD_CXX to just the basename; use the full file name.
4936    shift
4937    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4938  fi
4939fi
4940fi
4941fi
4942BUILD_CXX=$ac_cv_prog_BUILD_CXX
4943if test -n "$BUILD_CXX"; then
4944  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4945echo "${ECHO_T}$BUILD_CXX" >&6; }
4946else
4947  { echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6; }
4949fi
4950
4951
4952     fi
4953  fi
4954else
4955  LLVM_CROSS_COMPILING=0
4956
4957fi
4958
4959if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4960  cvsbuild="yes"
4961  optimize="no"
4962  CVSBUILD=CVSBUILD=1
4963
4964else
4965  cvsbuild="no"
4966  optimize="yes"
4967fi
4968
4969
4970# Check whether --enable-libcpp was given.
4971if test "${enable_libcpp+set}" = set; then
4972  enableval=$enable_libcpp;
4973else
4974  enableval=default
4975fi
4976
4977case "$enableval" in
4978  yes) ENABLE_LIBCPP=1
4979 ;;
4980  no)  ENABLE_LIBCPP=0
4981 ;;
4982  default) ENABLE_LIBCPP=0
4983;;
4984  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4985echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4986   { (exit 1); exit 1; }; } ;;
4987esac
4988
4989# Check whether --enable-optimized was given.
4990if test "${enable_optimized+set}" = set; then
4991  enableval=$enable_optimized;
4992else
4993  enableval=$optimize
4994fi
4995
4996if test ${enableval} = "no" ; then
4997  ENABLE_OPTIMIZED=
4998
4999else
5000  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5001
5002fi
5003
5004# Check whether --enable-profiling was given.
5005if test "${enable_profiling+set}" = set; then
5006  enableval=$enable_profiling;
5007else
5008  enableval="no"
5009fi
5010
5011if test ${enableval} = "no" ; then
5012  ENABLE_PROFILING=
5013
5014else
5015  ENABLE_PROFILING=ENABLE_PROFILING=1
5016
5017fi
5018
5019# Check whether --enable-assertions was given.
5020if test "${enable_assertions+set}" = set; then
5021  enableval=$enable_assertions;
5022else
5023  enableval="yes"
5024fi
5025
5026if test ${enableval} = "yes" ; then
5027  DISABLE_ASSERTIONS=
5028
5029else
5030  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5031
5032fi
5033
5034# Check whether --enable-expensive-checks was given.
5035if test "${enable_expensive_checks+set}" = set; then
5036  enableval=$enable_expensive_checks;
5037else
5038  enableval="no"
5039fi
5040
5041if test ${enableval} = "yes" ; then
5042  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044  EXPENSIVE_CHECKS=yes
5045
5046else
5047  ENABLE_EXPENSIVE_CHECKS=
5048
5049  EXPENSIVE_CHECKS=no
5050
5051fi
5052
5053# Check whether --enable-debug-runtime was given.
5054if test "${enable_debug_runtime+set}" = set; then
5055  enableval=$enable_debug_runtime;
5056else
5057  enableval=no
5058fi
5059
5060if test ${enableval} = "no" ; then
5061  DEBUG_RUNTIME=
5062
5063else
5064  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066fi
5067
5068# Check whether --enable-debug-symbols was given.
5069if test "${enable_debug_symbols+set}" = set; then
5070  enableval=$enable_debug_symbols;
5071else
5072  enableval=no
5073fi
5074
5075if test ${enableval} = "no" ; then
5076  DEBUG_SYMBOLS=
5077
5078else
5079  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081fi
5082
5083# Check whether --enable-jit was given.
5084if test "${enable_jit+set}" = set; then
5085  enableval=$enable_jit;
5086else
5087  enableval=default
5088fi
5089
5090if test ${enableval} = "no"
5091then
5092  JIT=
5093
5094else
5095  case "$llvm_cv_target_arch" in
5096    x86)         TARGET_HAS_JIT=1
5097 ;;
5098    Sparc)       TARGET_HAS_JIT=0
5099 ;;
5100    PowerPC)     TARGET_HAS_JIT=1
5101 ;;
5102    x86_64)      TARGET_HAS_JIT=1
5103 ;;
5104    ARM)         TARGET_HAS_JIT=1
5105 ;;
5106    Mips)        TARGET_HAS_JIT=1
5107 ;;
5108    XCore)       TARGET_HAS_JIT=0
5109 ;;
5110    MSP430)      TARGET_HAS_JIT=0
5111 ;;
5112    Hexagon)     TARGET_HAS_JIT=0
5113 ;;
5114    MBlaze)      TARGET_HAS_JIT=0
5115 ;;
5116    PTX)         TARGET_HAS_JIT=0
5117 ;;
5118    *)           TARGET_HAS_JIT=0
5119 ;;
5120  esac
5121fi
5122
5123# Check whether --enable-docs was given.
5124if test "${enable_docs+set}" = set; then
5125  enableval=$enable_docs;
5126else
5127  enableval=default
5128fi
5129
5130case "$enableval" in
5131  yes) ENABLE_DOCS=1
5132 ;;
5133  no)  ENABLE_DOCS=0
5134 ;;
5135  default) ENABLE_DOCS=1
5136 ;;
5137  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139   { (exit 1); exit 1; }; } ;;
5140esac
5141
5142# Check whether --enable-doxygen was given.
5143if test "${enable_doxygen+set}" = set; then
5144  enableval=$enable_doxygen;
5145else
5146  enableval=default
5147fi
5148
5149case "$enableval" in
5150  yes) ENABLE_DOXYGEN=1
5151 ;;
5152  no)  ENABLE_DOXYGEN=0
5153 ;;
5154  default) ENABLE_DOXYGEN=0
5155 ;;
5156  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158   { (exit 1); exit 1; }; } ;;
5159esac
5160
5161# Check whether --enable-threads was given.
5162if test "${enable_threads+set}" = set; then
5163  enableval=$enable_threads;
5164else
5165  enableval=default
5166fi
5167
5168case "$enableval" in
5169  yes) LLVM_ENABLE_THREADS=1
5170 ;;
5171  no)  LLVM_ENABLE_THREADS=0
5172 ;;
5173  default) LLVM_ENABLE_THREADS=1
5174 ;;
5175  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177   { (exit 1); exit 1; }; } ;;
5178esac
5179
5180cat >>confdefs.h <<_ACEOF
5181#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5182_ACEOF
5183
5184
5185# Check whether --enable-pthreads was given.
5186if test "${enable_pthreads+set}" = set; then
5187  enableval=$enable_pthreads;
5188else
5189  enableval=default
5190fi
5191
5192case "$enableval" in
5193  yes) ENABLE_PTHREADS=1
5194 ;;
5195  no)  ENABLE_PTHREADS=0
5196 ;;
5197  default) ENABLE_PTHREADS=1
5198 ;;
5199  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201   { (exit 1); exit 1; }; } ;;
5202esac
5203
5204# Check whether --enable-pic was given.
5205if test "${enable_pic+set}" = set; then
5206  enableval=$enable_pic;
5207else
5208  enableval=default
5209fi
5210
5211case "$enableval" in
5212  yes) ENABLE_PIC=1
5213 ;;
5214  no)  ENABLE_PIC=0
5215 ;;
5216  default) ENABLE_PIC=1
5217 ;;
5218  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5220   { (exit 1); exit 1; }; } ;;
5221esac
5222
5223cat >>confdefs.h <<_ACEOF
5224#define ENABLE_PIC $ENABLE_PIC
5225_ACEOF
5226
5227
5228# Check whether --enable-shared was given.
5229if test "${enable_shared+set}" = set; then
5230  enableval=$enable_shared;
5231else
5232  enableval=default
5233fi
5234
5235case "$enableval" in
5236  yes) ENABLE_SHARED=1
5237 ;;
5238  no)  ENABLE_SHARED=0
5239 ;;
5240  default) ENABLE_SHARED=0
5241 ;;
5242  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5243echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5244   { (exit 1); exit 1; }; } ;;
5245esac
5246
5247# Check whether --enable-embed-stdcxx was given.
5248if test "${enable_embed_stdcxx+set}" = set; then
5249  enableval=$enable_embed_stdcxx;
5250else
5251  enableval=default
5252fi
5253
5254case "$enableval" in
5255  yes) ENABLE_EMBED_STDCXX=1
5256 ;;
5257  no)  ENABLE_EMBED_STDCXX=0
5258 ;;
5259  default) ENABLE_EMBED_STDCXX=0
5260 ;;
5261  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5262echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5263   { (exit 1); exit 1; }; } ;;
5264esac
5265
5266# Check whether --enable-timestamps was given.
5267if test "${enable_timestamps+set}" = set; then
5268  enableval=$enable_timestamps;
5269else
5270  enableval=default
5271fi
5272
5273case "$enableval" in
5274  yes) ENABLE_TIMESTAMPS=1
5275 ;;
5276  no)  ENABLE_TIMESTAMPS=0
5277 ;;
5278  default) ENABLE_TIMESTAMPS=1
5279 ;;
5280  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5281echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5282   { (exit 1); exit 1; }; } ;;
5283esac
5284
5285cat >>confdefs.h <<_ACEOF
5286#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5287_ACEOF
5288
5289
5290TARGETS_TO_BUILD=""
5291# Check whether --enable-targets was given.
5292if test "${enable_targets+set}" = set; then
5293  enableval=$enable_targets;
5294else
5295  enableval=all
5296fi
5297
5298if test "$enableval" = host-only ; then
5299  enableval=host
5300fi
5301case "$enableval" in
5302  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5303  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5304      case "$a_target" in
5305        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5306        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5308        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5309        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5310        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5311        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5313        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5315        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5316        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5318        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5319        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5320        host) case "$llvm_cv_target_arch" in
5321            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5324            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5325            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5326            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5329            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5330            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5331            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5332            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5334echo "$as_me: error: Can not set target to build" >&2;}
5335   { (exit 1); exit 1; }; } ;;
5336          esac ;;
5337        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5338echo "$as_me: error: Unrecognized target $a_target" >&2;}
5339   { (exit 1); exit 1; }; } ;;
5340      esac
5341  done
5342  ;;
5343esac
5344TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5345
5346
5347for a_target in $TARGETS_TO_BUILD; do
5348  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5349
5350cat >>confdefs.h <<_ACEOF
5351#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5352_ACEOF
5353
5354    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5355    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5356    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5357    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5358    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5359      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5360    fi
5361
5362cat >>confdefs.h <<_ACEOF
5363#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5364_ACEOF
5365
5366
5367cat >>confdefs.h <<_ACEOF
5368#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5369_ACEOF
5370
5371
5372cat >>confdefs.h <<_ACEOF
5373#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5374_ACEOF
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5379_ACEOF
5380
5381    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5382
5383cat >>confdefs.h <<_ACEOF
5384#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5385_ACEOF
5386
5387    fi
5388  fi
5389done
5390
5391LLVM_ENUM_TARGETS=""
5392LLVM_ENUM_ASM_PRINTERS=""
5393LLVM_ENUM_ASM_PARSERS=""
5394LLVM_ENUM_DISASSEMBLERS=""
5395for target_to_build in $TARGETS_TO_BUILD; do
5396  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5397  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5398    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5399  fi
5400  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5401    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5402  fi
5403  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5404    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5405  fi
5406done
5407
5408
5409
5410
5411
5412# Check whether --enable-cbe-printf-a was given.
5413if test "${enable_cbe_printf_a+set}" = set; then
5414  enableval=$enable_cbe_printf_a;
5415else
5416  enableval=default
5417fi
5418
5419case "$enableval" in
5420  yes) ENABLE_CBE_PRINTF_A=1
5421 ;;
5422  no)  ENABLE_CBE_PRINTF_A=0
5423 ;;
5424  default)  ENABLE_CBE_PRINTF_A=1
5425 ;;
5426  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5427echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5428   { (exit 1); exit 1; }; } ;;
5429esac
5430
5431cat >>confdefs.h <<_ACEOF
5432#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5433_ACEOF
5434
5435
5436
5437# Check whether --with-optimize-option was given.
5438if test "${with_optimize_option+set}" = set; then
5439  withval=$with_optimize_option;
5440else
5441  withval=default
5442fi
5443
5444{ echo "$as_me:$LINENO: checking optimization flags" >&5
5445echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5446case "$withval" in
5447  default)
5448    case "$llvm_cv_os_type" in
5449    FreeBSD) optimize_option=-O2 ;;
5450    MingW) optimize_option=-O2 ;;
5451    *)     optimize_option=-O3 ;;
5452    esac ;;
5453  *) optimize_option="$withval" ;;
5454esac
5455OPTIMIZE_OPTION=$optimize_option
5456
5457{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5458echo "${ECHO_T}$optimize_option" >&6; }
5459
5460
5461# Check whether --with-extra-options was given.
5462if test "${with_extra_options+set}" = set; then
5463  withval=$with_extra_options;
5464else
5465  withval=default
5466fi
5467
5468case "$withval" in
5469  default) EXTRA_OPTIONS= ;;
5470  *) EXTRA_OPTIONS=$withval ;;
5471esac
5472EXTRA_OPTIONS=$EXTRA_OPTIONS
5473
5474
5475
5476# Check whether --with-extra-ld-options was given.
5477if test "${with_extra_ld_options+set}" = set; then
5478  withval=$with_extra_ld_options;
5479else
5480  withval=default
5481fi
5482
5483case "$withval" in
5484  default) EXTRA_LD_OPTIONS= ;;
5485  *) EXTRA_LD_OPTIONS=$withval ;;
5486esac
5487EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488
5489
5490# Check whether --enable-bindings was given.
5491if test "${enable_bindings+set}" = set; then
5492  enableval=$enable_bindings;
5493else
5494  enableval=default
5495fi
5496
5497BINDINGS_TO_BUILD=""
5498case "$enableval" in
5499  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5500  all ) BINDINGS_TO_BUILD="ocaml" ;;
5501  none | no) BINDINGS_TO_BUILD="" ;;
5502  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5503      case "$a_binding" in
5504        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5505        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5506echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5507   { (exit 1); exit 1; }; } ;;
5508      esac
5509  done
5510  ;;
5511esac
5512
5513
5514# Check whether --with-ocaml-libdir was given.
5515if test "${with_ocaml_libdir+set}" = set; then
5516  withval=$with_ocaml_libdir;
5517else
5518  withval=auto
5519fi
5520
5521case "$withval" in
5522  auto) with_ocaml_libdir="$withval" ;;
5523  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5524  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5525echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5526   { (exit 1); exit 1; }; } ;;
5527esac
5528
5529
5530# Check whether --with-clang-srcdir was given.
5531if test "${with_clang_srcdir+set}" = set; then
5532  withval=$with_clang_srcdir;
5533else
5534  withval="-"
5535fi
5536
5537case "$withval" in
5538  -) clang_src_root="" ;;
5539  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5540  *) clang_src_root="$ac_pwd/$withval" ;;
5541esac
5542CLANG_SRC_ROOT=$clang_src_root
5543
5544
5545
5546# Check whether --with-clang-resource-dir was given.
5547if test "${with_clang_resource_dir+set}" = set; then
5548  withval=$with_clang_resource_dir;
5549else
5550  withval=""
5551fi
5552
5553
5554cat >>confdefs.h <<_ACEOF
5555#define CLANG_RESOURCE_DIR "$withval"
5556_ACEOF
5557
5558
5559
5560# Check whether --with-c-include-dirs was given.
5561if test "${with_c_include_dirs+set}" = set; then
5562  withval=$with_c_include_dirs;
5563else
5564  withval=""
5565fi
5566
5567
5568cat >>confdefs.h <<_ACEOF
5569#define C_INCLUDE_DIRS "$withval"
5570_ACEOF
5571
5572
5573
5574# Check whether --with-cxx-include-root was given.
5575if test "${with_cxx_include_root+set}" = set; then
5576  withval=$with_cxx_include_root;
5577else
5578  withval=""
5579fi
5580
5581
5582cat >>confdefs.h <<_ACEOF
5583#define CXX_INCLUDE_ROOT "$withval"
5584_ACEOF
5585
5586
5587
5588# Check whether --with-cxx-include-arch was given.
5589if test "${with_cxx_include_arch+set}" = set; then
5590  withval=$with_cxx_include_arch;
5591else
5592  withval=""
5593fi
5594
5595
5596cat >>confdefs.h <<_ACEOF
5597#define CXX_INCLUDE_ARCH "$withval"
5598_ACEOF
5599
5600
5601
5602# Check whether --with-cxx-include-32bit-dir was given.
5603if test "${with_cxx_include_32bit_dir+set}" = set; then
5604  withval=$with_cxx_include_32bit_dir;
5605else
5606  withval=""
5607fi
5608
5609
5610cat >>confdefs.h <<_ACEOF
5611#define CXX_INCLUDE_32BIT_DIR "$withval"
5612_ACEOF
5613
5614
5615
5616# Check whether --with-cxx-include-64bit-dir was given.
5617if test "${with_cxx_include_64bit_dir+set}" = set; then
5618  withval=$with_cxx_include_64bit_dir;
5619else
5620  withval=""
5621fi
5622
5623
5624cat >>confdefs.h <<_ACEOF
5625#define CXX_INCLUDE_64BIT_DIR "$withval"
5626_ACEOF
5627
5628
5629
5630# Check whether --with-binutils-include was given.
5631if test "${with_binutils_include+set}" = set; then
5632  withval=$with_binutils_include;
5633else
5634  withval=default
5635fi
5636
5637case "$withval" in
5638  default) WITH_BINUTILS_INCDIR=default ;;
5639  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5640  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5641echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5642   { (exit 1); exit 1; }; } ;;
5643esac
5644if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5645  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646
5647  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5648     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5649     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5650echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5651   { (exit 1); exit 1; }; };
5652  fi
5653fi
5654
5655
5656# Check whether --with-bug-report-url was given.
5657if test "${with_bug_report_url+set}" = set; then
5658  withval=$with_bug_report_url;
5659else
5660  withval="http://llvm.org/bugs/"
5661fi
5662
5663
5664cat >>confdefs.h <<_ACEOF
5665#define BUG_REPORT_URL "$withval"
5666_ACEOF
5667
5668
5669# Check whether --enable-libffi was given.
5670if test "${enable_libffi+set}" = set; then
5671  enableval=$enable_libffi; case "$enableval" in
5672    yes) llvm_cv_enable_libffi="yes" ;;
5673    no)  llvm_cv_enable_libffi="no"  ;;
5674    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5675echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5676   { (exit 1); exit 1; }; } ;;
5677  esac
5678else
5679  llvm_cv_enable_libffi=no
5680fi
5681
5682
5683
5684# Check whether --with-internal-prefix was given.
5685if test "${with_internal_prefix+set}" = set; then
5686  withval=$with_internal_prefix;
5687else
5688  withval=""
5689fi
5690
5691INTERNAL_PREFIX=$withval
5692
5693
5694
5695{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5696echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5697if test "${lt_cv_path_NM+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  if test -n "$NM"; then
5701  # Let the user override the test.
5702  lt_cv_path_NM="$NM"
5703else
5704  lt_nm_to_check="${ac_tool_prefix}nm"
5705  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5706    lt_nm_to_check="$lt_nm_to_check nm"
5707  fi
5708  for lt_tmp_nm in $lt_nm_to_check; do
5709    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5711      IFS="$lt_save_ifs"
5712      test -z "$ac_dir" && ac_dir=.
5713      tmp_nm="$ac_dir/$lt_tmp_nm"
5714      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5715	# Check to see if the nm accepts a BSD-compat flag.
5716	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5717	#   nm: unknown option "B" ignored
5718	# Tru64's nm complains that /dev/null is an invalid object file
5719	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5720	*/dev/null* | *'Invalid file or object type'*)
5721	  lt_cv_path_NM="$tmp_nm -B"
5722	  break
5723	  ;;
5724	*)
5725	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5726	  */dev/null*)
5727	    lt_cv_path_NM="$tmp_nm -p"
5728	    break
5729	    ;;
5730	  *)
5731	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5732	    continue # so that we can try to find one that supports BSD flags
5733	    ;;
5734	  esac
5735	  ;;
5736	esac
5737      fi
5738    done
5739    IFS="$lt_save_ifs"
5740  done
5741  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5742fi
5743fi
5744{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5745echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5746NM="$lt_cv_path_NM"
5747
5748
5749
5750{ echo "$as_me:$LINENO: checking for GNU make" >&5
5751echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752if test "${llvm_cv_gnu_make_command+set}" = set; then
5753  echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755  llvm_cv_gnu_make_command=''
5756 for a in "$MAKE" make gmake gnumake ; do
5757  if test -z "$a" ; then continue ; fi ;
5758  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5759  then
5760   llvm_cv_gnu_make_command=$a ;
5761   break;
5762  fi
5763 done
5764fi
5765{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5767 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5768   ifGNUmake='' ;
5769 else
5770   ifGNUmake='#' ;
5771   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772echo "${ECHO_T}\"Not found\"" >&6; };
5773 fi
5774
5775
5776{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5778LN_S=$as_ln_s
5779if test "$LN_S" = "ln -s"; then
5780  { echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6; }
5782else
5783  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784echo "${ECHO_T}no, using $LN_S" >&6; }
5785fi
5786
5787# Extract the first word of "cmp", so it can be a program name with args.
5788set dummy cmp; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_path_CMP+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  case $CMP in
5795  [\\/]* | ?:[\\/]*)
5796  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5797  ;;
5798  *)
5799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802  IFS=$as_save_IFS
5803  test -z "$as_dir" && as_dir=.
5804  for ac_exec_ext in '' $ac_executable_extensions; do
5805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808    break 2
5809  fi
5810done
5811done
5812IFS=$as_save_IFS
5813
5814  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5815  ;;
5816esac
5817fi
5818CMP=$ac_cv_path_CMP
5819if test -n "$CMP"; then
5820  { echo "$as_me:$LINENO: result: $CMP" >&5
5821echo "${ECHO_T}$CMP" >&6; }
5822else
5823  { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
5825fi
5826
5827
5828# Extract the first word of "cp", so it can be a program name with args.
5829set dummy cp; ac_word=$2
5830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832if test "${ac_cv_path_CP+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  case $CP in
5836  [\\/]* | ?:[\\/]*)
5837  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5838  ;;
5839  *)
5840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845  for ac_exec_ext in '' $ac_executable_extensions; do
5846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5856  ;;
5857esac
5858fi
5859CP=$ac_cv_path_CP
5860if test -n "$CP"; then
5861  { echo "$as_me:$LINENO: result: $CP" >&5
5862echo "${ECHO_T}$CP" >&6; }
5863else
5864  { echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6; }
5866fi
5867
5868
5869# Extract the first word of "date", so it can be a program name with args.
5870set dummy date; ac_word=$2
5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_path_DATE+set}" = set; then
5874  echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876  case $DATE in
5877  [\\/]* | ?:[\\/]*)
5878  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5879  ;;
5880  *)
5881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5897  ;;
5898esac
5899fi
5900DATE=$ac_cv_path_DATE
5901if test -n "$DATE"; then
5902  { echo "$as_me:$LINENO: result: $DATE" >&5
5903echo "${ECHO_T}$DATE" >&6; }
5904else
5905  { echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6; }
5907fi
5908
5909
5910# Extract the first word of "find", so it can be a program name with args.
5911set dummy find; ac_word=$2
5912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914if test "${ac_cv_path_FIND+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  case $FIND in
5918  [\\/]* | ?:[\\/]*)
5919  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5920  ;;
5921  *)
5922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927  for ac_exec_ext in '' $ac_executable_extensions; do
5928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934done
5935IFS=$as_save_IFS
5936
5937  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5938  ;;
5939esac
5940fi
5941FIND=$ac_cv_path_FIND
5942if test -n "$FIND"; then
5943  { echo "$as_me:$LINENO: result: $FIND" >&5
5944echo "${ECHO_T}$FIND" >&6; }
5945else
5946  { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951# Extract the first word of "grep", so it can be a program name with args.
5952set dummy grep; ac_word=$2
5953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955if test "${ac_cv_path_GREP+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  case $GREP in
5959  [\\/]* | ?:[\\/]*)
5960  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5961  ;;
5962  *)
5963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for ac_exec_ext in '' $ac_executable_extensions; do
5969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975done
5976IFS=$as_save_IFS
5977
5978  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5979  ;;
5980esac
5981fi
5982GREP=$ac_cv_path_GREP
5983if test -n "$GREP"; then
5984  { echo "$as_me:$LINENO: result: $GREP" >&5
5985echo "${ECHO_T}$GREP" >&6; }
5986else
5987  { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
5989fi
5990
5991
5992# Extract the first word of "mkdir", so it can be a program name with args.
5993set dummy mkdir; ac_word=$2
5994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996if test "${ac_cv_path_MKDIR+set}" = set; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  case $MKDIR in
6000  [\\/]* | ?:[\\/]*)
6001  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6002  ;;
6003  *)
6004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007  IFS=$as_save_IFS
6008  test -z "$as_dir" && as_dir=.
6009  for ac_exec_ext in '' $ac_executable_extensions; do
6010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013    break 2
6014  fi
6015done
6016done
6017IFS=$as_save_IFS
6018
6019  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6020  ;;
6021esac
6022fi
6023MKDIR=$ac_cv_path_MKDIR
6024if test -n "$MKDIR"; then
6025  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6026echo "${ECHO_T}$MKDIR" >&6; }
6027else
6028  { echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6; }
6030fi
6031
6032
6033# Extract the first word of "mv", so it can be a program name with args.
6034set dummy mv; ac_word=$2
6035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037if test "${ac_cv_path_MV+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  case $MV in
6041  [\\/]* | ?:[\\/]*)
6042  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6043  ;;
6044  *)
6045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050  for ac_exec_ext in '' $ac_executable_extensions; do
6051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057done
6058IFS=$as_save_IFS
6059
6060  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6061  ;;
6062esac
6063fi
6064MV=$ac_cv_path_MV
6065if test -n "$MV"; then
6066  { echo "$as_me:$LINENO: result: $MV" >&5
6067echo "${ECHO_T}$MV" >&6; }
6068else
6069  { echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6; }
6071fi
6072
6073
6074if test -n "$ac_tool_prefix"; then
6075  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079if test "${ac_cv_prog_RANLIB+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  if test -n "$RANLIB"; then
6083  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090  for ac_exec_ext in '' $ac_executable_extensions; do
6091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6092    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102RANLIB=$ac_cv_prog_RANLIB
6103if test -n "$RANLIB"; then
6104  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105echo "${ECHO_T}$RANLIB" >&6; }
6106else
6107  { echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6; }
6109fi
6110
6111
6112fi
6113if test -z "$ac_cv_prog_RANLIB"; then
6114  ac_ct_RANLIB=$RANLIB
6115  # Extract the first word of "ranlib", so it can be a program name with args.
6116set dummy ranlib; ac_word=$2
6117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  if test -n "$ac_ct_RANLIB"; then
6123  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128  IFS=$as_save_IFS
6129  test -z "$as_dir" && as_dir=.
6130  for ac_exec_ext in '' $ac_executable_extensions; do
6131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6132    ac_cv_prog_ac_ct_RANLIB="ranlib"
6133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134    break 2
6135  fi
6136done
6137done
6138IFS=$as_save_IFS
6139
6140fi
6141fi
6142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143if test -n "$ac_ct_RANLIB"; then
6144  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6146else
6147  { echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6; }
6149fi
6150
6151  if test "x$ac_ct_RANLIB" = x; then
6152    RANLIB=":"
6153  else
6154    case $cross_compiling:$ac_tool_warned in
6155yes:)
6156{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157whose name does not start with the host triplet.  If you think this
6158configuration is useful to you, please write to autoconf@gnu.org." >&5
6159echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160whose name does not start with the host triplet.  If you think this
6161configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6162ac_tool_warned=yes ;;
6163esac
6164    RANLIB=$ac_ct_RANLIB
6165  fi
6166else
6167  RANLIB="$ac_cv_prog_RANLIB"
6168fi
6169
6170if test -n "$ac_tool_prefix"; then
6171  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6172set dummy ${ac_tool_prefix}ar; ac_word=$2
6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_AR+set}" = set; then
6176  echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178  if test -n "$AR"; then
6179  ac_cv_prog_AR="$AR" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184  IFS=$as_save_IFS
6185  test -z "$as_dir" && as_dir=.
6186  for ac_exec_ext in '' $ac_executable_extensions; do
6187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188    ac_cv_prog_AR="${ac_tool_prefix}ar"
6189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190    break 2
6191  fi
6192done
6193done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198AR=$ac_cv_prog_AR
6199if test -n "$AR"; then
6200  { echo "$as_me:$LINENO: result: $AR" >&5
6201echo "${ECHO_T}$AR" >&6; }
6202else
6203  { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
6205fi
6206
6207
6208fi
6209if test -z "$ac_cv_prog_AR"; then
6210  ac_ct_AR=$AR
6211  # Extract the first word of "ar", so it can be a program name with args.
6212set dummy ar; ac_word=$2
6213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  if test -n "$ac_ct_AR"; then
6219  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226  for ac_exec_ext in '' $ac_executable_extensions; do
6227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228    ac_cv_prog_ac_ct_AR="ar"
6229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233done
6234IFS=$as_save_IFS
6235
6236fi
6237fi
6238ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239if test -n "$ac_ct_AR"; then
6240  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241echo "${ECHO_T}$ac_ct_AR" >&6; }
6242else
6243  { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
6245fi
6246
6247  if test "x$ac_ct_AR" = x; then
6248    AR="false"
6249  else
6250    case $cross_compiling:$ac_tool_warned in
6251yes:)
6252{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet.  If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&5
6255echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256whose name does not start with the host triplet.  If you think this
6257configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258ac_tool_warned=yes ;;
6259esac
6260    AR=$ac_ct_AR
6261  fi
6262else
6263  AR="$ac_cv_prog_AR"
6264fi
6265
6266# Extract the first word of "rm", so it can be a program name with args.
6267set dummy rm; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_path_RM+set}" = set; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273  case $RM in
6274  [\\/]* | ?:[\\/]*)
6275  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6276  ;;
6277  *)
6278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283  for ac_exec_ext in '' $ac_executable_extensions; do
6284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290done
6291IFS=$as_save_IFS
6292
6293  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6294  ;;
6295esac
6296fi
6297RM=$ac_cv_path_RM
6298if test -n "$RM"; then
6299  { echo "$as_me:$LINENO: result: $RM" >&5
6300echo "${ECHO_T}$RM" >&6; }
6301else
6302  { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
6304fi
6305
6306
6307# Extract the first word of "sed", so it can be a program name with args.
6308set dummy sed; ac_word=$2
6309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311if test "${ac_cv_path_SED+set}" = set; then
6312  echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314  case $SED in
6315  [\\/]* | ?:[\\/]*)
6316  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6317  ;;
6318  *)
6319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322  IFS=$as_save_IFS
6323  test -z "$as_dir" && as_dir=.
6324  for ac_exec_ext in '' $ac_executable_extensions; do
6325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328    break 2
6329  fi
6330done
6331done
6332IFS=$as_save_IFS
6333
6334  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6335  ;;
6336esac
6337fi
6338SED=$ac_cv_path_SED
6339if test -n "$SED"; then
6340  { echo "$as_me:$LINENO: result: $SED" >&5
6341echo "${ECHO_T}$SED" >&6; }
6342else
6343  { echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6; }
6345fi
6346
6347
6348# Extract the first word of "tar", so it can be a program name with args.
6349set dummy tar; ac_word=$2
6350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352if test "${ac_cv_path_TAR+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  case $TAR in
6356  [\\/]* | ?:[\\/]*)
6357  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6358  ;;
6359  *)
6360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365  for ac_exec_ext in '' $ac_executable_extensions; do
6366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372done
6373IFS=$as_save_IFS
6374
6375  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6376  ;;
6377esac
6378fi
6379TAR=$ac_cv_path_TAR
6380if test -n "$TAR"; then
6381  { echo "$as_me:$LINENO: result: $TAR" >&5
6382echo "${ECHO_T}$TAR" >&6; }
6383else
6384  { echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6; }
6386fi
6387
6388
6389# Extract the first word of "pwd", so it can be a program name with args.
6390set dummy pwd; ac_word=$2
6391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393if test "${ac_cv_path_BINPWD+set}" = set; then
6394  echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396  case $BINPWD in
6397  [\\/]* | ?:[\\/]*)
6398  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6399  ;;
6400  *)
6401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406  for ac_exec_ext in '' $ac_executable_extensions; do
6407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413done
6414IFS=$as_save_IFS
6415
6416  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6417  ;;
6418esac
6419fi
6420BINPWD=$ac_cv_path_BINPWD
6421if test -n "$BINPWD"; then
6422  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6423echo "${ECHO_T}$BINPWD" >&6; }
6424else
6425  { echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6; }
6427fi
6428
6429
6430
6431# Extract the first word of "Graphviz", so it can be a program name with args.
6432set dummy Graphviz; ac_word=$2
6433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6436  echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438  case $GRAPHVIZ in
6439  [\\/]* | ?:[\\/]*)
6440  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6441  ;;
6442  *)
6443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446  IFS=$as_save_IFS
6447  test -z "$as_dir" && as_dir=.
6448  for ac_exec_ext in '' $ac_executable_extensions; do
6449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452    break 2
6453  fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6459  ;;
6460esac
6461fi
6462GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6463if test -n "$GRAPHVIZ"; then
6464  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6465echo "${ECHO_T}$GRAPHVIZ" >&6; }
6466else
6467  { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
6469fi
6470
6471
6472if test "$GRAPHVIZ" != "echo Graphviz" ; then
6473
6474cat >>confdefs.h <<\_ACEOF
6475#define HAVE_GRAPHVIZ 1
6476_ACEOF
6477
6478    if test "$llvm_cv_os_type" = "MingW" ; then
6479    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6480  fi
6481
6482cat >>confdefs.h <<_ACEOF
6483#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6484_ACEOF
6485
6486fi
6487# Extract the first word of "dot", so it can be a program name with args.
6488set dummy dot; ac_word=$2
6489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_path_DOT+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  case $DOT in
6495  [\\/]* | ?:[\\/]*)
6496  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6497  ;;
6498  *)
6499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504  for ac_exec_ext in '' $ac_executable_extensions; do
6505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511done
6512IFS=$as_save_IFS
6513
6514  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6515  ;;
6516esac
6517fi
6518DOT=$ac_cv_path_DOT
6519if test -n "$DOT"; then
6520  { echo "$as_me:$LINENO: result: $DOT" >&5
6521echo "${ECHO_T}$DOT" >&6; }
6522else
6523  { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
6525fi
6526
6527
6528if test "$DOT" != "echo dot" ; then
6529
6530cat >>confdefs.h <<\_ACEOF
6531#define HAVE_DOT 1
6532_ACEOF
6533
6534    if test "$llvm_cv_os_type" = "MingW" ; then
6535    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6536  fi
6537
6538cat >>confdefs.h <<_ACEOF
6539#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6540_ACEOF
6541
6542fi
6543# Extract the first word of "fdp", so it can be a program name with args.
6544set dummy fdp; ac_word=$2
6545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547if test "${ac_cv_path_FDP+set}" = set; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550  case $FDP in
6551  [\\/]* | ?:[\\/]*)
6552  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6553  ;;
6554  *)
6555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560  for ac_exec_ext in '' $ac_executable_extensions; do
6561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567done
6568IFS=$as_save_IFS
6569
6570  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6571  ;;
6572esac
6573fi
6574FDP=$ac_cv_path_FDP
6575if test -n "$FDP"; then
6576  { echo "$as_me:$LINENO: result: $FDP" >&5
6577echo "${ECHO_T}$FDP" >&6; }
6578else
6579  { echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6; }
6581fi
6582
6583
6584if test "$FDP" != "echo fdp" ; then
6585
6586cat >>confdefs.h <<\_ACEOF
6587#define HAVE_FDP 1
6588_ACEOF
6589
6590    if test "$llvm_cv_os_type" = "MingW" ; then
6591    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592  fi
6593
6594cat >>confdefs.h <<_ACEOF
6595#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6596_ACEOF
6597
6598fi
6599# Extract the first word of "neato", so it can be a program name with args.
6600set dummy neato; ac_word=$2
6601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603if test "${ac_cv_path_NEATO+set}" = set; then
6604  echo $ECHO_N "(cached) $ECHO_C" >&6
6605else
6606  case $NEATO in
6607  [\\/]* | ?:[\\/]*)
6608  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6609  ;;
6610  *)
6611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616  for ac_exec_ext in '' $ac_executable_extensions; do
6617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623done
6624IFS=$as_save_IFS
6625
6626  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6627  ;;
6628esac
6629fi
6630NEATO=$ac_cv_path_NEATO
6631if test -n "$NEATO"; then
6632  { echo "$as_me:$LINENO: result: $NEATO" >&5
6633echo "${ECHO_T}$NEATO" >&6; }
6634else
6635  { echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6; }
6637fi
6638
6639
6640if test "$NEATO" != "echo neato" ; then
6641
6642cat >>confdefs.h <<\_ACEOF
6643#define HAVE_NEATO 1
6644_ACEOF
6645
6646    if test "$llvm_cv_os_type" = "MingW" ; then
6647    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6648  fi
6649
6650cat >>confdefs.h <<_ACEOF
6651#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6652_ACEOF
6653
6654fi
6655# Extract the first word of "twopi", so it can be a program name with args.
6656set dummy twopi; ac_word=$2
6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_TWOPI+set}" = set; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662  case $TWOPI in
6663  [\\/]* | ?:[\\/]*)
6664  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6665  ;;
6666  *)
6667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672  for ac_exec_ext in '' $ac_executable_extensions; do
6673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6683  ;;
6684esac
6685fi
6686TWOPI=$ac_cv_path_TWOPI
6687if test -n "$TWOPI"; then
6688  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6689echo "${ECHO_T}$TWOPI" >&6; }
6690else
6691  { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693fi
6694
6695
6696if test "$TWOPI" != "echo twopi" ; then
6697
6698cat >>confdefs.h <<\_ACEOF
6699#define HAVE_TWOPI 1
6700_ACEOF
6701
6702    if test "$llvm_cv_os_type" = "MingW" ; then
6703    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704  fi
6705
6706cat >>confdefs.h <<_ACEOF
6707#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6708_ACEOF
6709
6710fi
6711# Extract the first word of "circo", so it can be a program name with args.
6712set dummy circo; ac_word=$2
6713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715if test "${ac_cv_path_CIRCO+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  case $CIRCO in
6719  [\\/]* | ?:[\\/]*)
6720  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6721  ;;
6722  *)
6723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728  for ac_exec_ext in '' $ac_executable_extensions; do
6729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735done
6736IFS=$as_save_IFS
6737
6738  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6739  ;;
6740esac
6741fi
6742CIRCO=$ac_cv_path_CIRCO
6743if test -n "$CIRCO"; then
6744  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6745echo "${ECHO_T}$CIRCO" >&6; }
6746else
6747  { echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6; }
6749fi
6750
6751
6752if test "$CIRCO" != "echo circo" ; then
6753
6754cat >>confdefs.h <<\_ACEOF
6755#define HAVE_CIRCO 1
6756_ACEOF
6757
6758    if test "$llvm_cv_os_type" = "MingW" ; then
6759    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760  fi
6761
6762cat >>confdefs.h <<_ACEOF
6763#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6764_ACEOF
6765
6766fi
6767for ac_prog in gv gsview32
6768do
6769  # Extract the first word of "$ac_prog", so it can be a program name with args.
6770set dummy $ac_prog; ac_word=$2
6771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773if test "${ac_cv_path_GV+set}" = set; then
6774  echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776  case $GV in
6777  [\\/]* | ?:[\\/]*)
6778  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6779  ;;
6780  *)
6781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784  IFS=$as_save_IFS
6785  test -z "$as_dir" && as_dir=.
6786  for ac_exec_ext in '' $ac_executable_extensions; do
6787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790    break 2
6791  fi
6792done
6793done
6794IFS=$as_save_IFS
6795
6796  ;;
6797esac
6798fi
6799GV=$ac_cv_path_GV
6800if test -n "$GV"; then
6801  { echo "$as_me:$LINENO: result: $GV" >&5
6802echo "${ECHO_T}$GV" >&6; }
6803else
6804  { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809  test -n "$GV" && break
6810done
6811test -n "$GV" || GV="echo gv"
6812
6813if test "$GV" != "echo gv" ; then
6814
6815cat >>confdefs.h <<\_ACEOF
6816#define HAVE_GV 1
6817_ACEOF
6818
6819    if test "$llvm_cv_os_type" = "MingW" ; then
6820    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821  fi
6822
6823cat >>confdefs.h <<_ACEOF
6824#define LLVM_PATH_GV "$GV${EXEEXT}"
6825_ACEOF
6826
6827fi
6828# Extract the first word of "dotty", so it can be a program name with args.
6829set dummy dotty; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_DOTTY+set}" = set; then
6833  echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835  case $DOTTY in
6836  [\\/]* | ?:[\\/]*)
6837  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6838  ;;
6839  *)
6840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845  for ac_exec_ext in '' $ac_executable_extensions; do
6846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852done
6853IFS=$as_save_IFS
6854
6855  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6856  ;;
6857esac
6858fi
6859DOTTY=$ac_cv_path_DOTTY
6860if test -n "$DOTTY"; then
6861  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6862echo "${ECHO_T}$DOTTY" >&6; }
6863else
6864  { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
6866fi
6867
6868
6869if test "$DOTTY" != "echo dotty" ; then
6870
6871cat >>confdefs.h <<\_ACEOF
6872#define HAVE_DOTTY 1
6873_ACEOF
6874
6875    if test "$llvm_cv_os_type" = "MingW" ; then
6876    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877  fi
6878
6879cat >>confdefs.h <<_ACEOF
6880#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6881_ACEOF
6882
6883fi
6884# Extract the first word of "xdot.py", so it can be a program name with args.
6885set dummy xdot.py; ac_word=$2
6886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888if test "${ac_cv_path_XDOT_PY+set}" = set; then
6889  echo $ECHO_N "(cached) $ECHO_C" >&6
6890else
6891  case $XDOT_PY in
6892  [\\/]* | ?:[\\/]*)
6893  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6894  ;;
6895  *)
6896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899  IFS=$as_save_IFS
6900  test -z "$as_dir" && as_dir=.
6901  for ac_exec_ext in '' $ac_executable_extensions; do
6902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905    break 2
6906  fi
6907done
6908done
6909IFS=$as_save_IFS
6910
6911  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6912  ;;
6913esac
6914fi
6915XDOT_PY=$ac_cv_path_XDOT_PY
6916if test -n "$XDOT_PY"; then
6917  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6918echo "${ECHO_T}$XDOT_PY" >&6; }
6919else
6920  { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924
6925if test "$XDOT_PY" != "echo xdot.py" ; then
6926
6927cat >>confdefs.h <<\_ACEOF
6928#define HAVE_XDOT_PY 1
6929_ACEOF
6930
6931    if test "$llvm_cv_os_type" = "MingW" ; then
6932    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6933  fi
6934
6935cat >>confdefs.h <<_ACEOF
6936#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6937_ACEOF
6938
6939fi
6940
6941
6942# Extract the first word of "perl", so it can be a program name with args.
6943set dummy perl; ac_word=$2
6944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_path_PERL+set}" = set; then
6947  echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949  case $PERL in
6950  [\\/]* | ?:[\\/]*)
6951  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6952  ;;
6953  *)
6954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957  IFS=$as_save_IFS
6958  test -z "$as_dir" && as_dir=.
6959  for ac_exec_ext in '' $ac_executable_extensions; do
6960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963    break 2
6964  fi
6965done
6966done
6967IFS=$as_save_IFS
6968
6969  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6970  ;;
6971esac
6972fi
6973PERL=$ac_cv_path_PERL
6974if test -n "$PERL"; then
6975  { echo "$as_me:$LINENO: result: $PERL" >&5
6976echo "${ECHO_T}$PERL" >&6; }
6977else
6978  { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983if test "$PERL" != "none"; then
6984  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6985echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6986  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6987    { echo "$as_me:$LINENO: result: yes" >&5
6988echo "${ECHO_T}yes" >&6; }
6989  else
6990    PERL=none
6991    { echo "$as_me:$LINENO: result: not found" >&5
6992echo "${ECHO_T}not found" >&6; }
6993  fi
6994fi
6995
6996
6997if test x"$PERL" = xnone; then
6998   HAVE_PERL=0
6999
7000   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7001echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7002   { (exit 1); exit 1; }; }
7003else
7004   HAVE_PERL=1
7005
7006fi
7007
7008# Find a good install program.  We prefer a C program (faster),
7009# so one script is as good as another.  But avoid the broken or
7010# incompatible versions:
7011# SysV /etc/install, /usr/sbin/install
7012# SunOS /usr/etc/install
7013# IRIX /sbin/install
7014# AIX /bin/install
7015# AmigaOS /C/install, which installs bootblocks on floppy discs
7016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019# OS/2's system install, which has a completely different semantic
7020# ./install, which can be erroneously created by make from ./install.sh.
7021{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7023if test -z "$INSTALL"; then
7024if test "${ac_cv_path_install+set}" = set; then
7025  echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032  # Account for people who put trailing slashes in PATH elements.
7033case $as_dir/ in
7034  ./ | .// | /cC/* | \
7035  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7036  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7037  /usr/ucb/* ) ;;
7038  *)
7039    # OSF1 and SCO ODT 3.0 have their own names for install.
7040    # Don't use installbsd from OSF since it installs stuff as root
7041    # by default.
7042    for ac_prog in ginstall scoinst install; do
7043      for ac_exec_ext in '' $ac_executable_extensions; do
7044	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7045	  if test $ac_prog = install &&
7046	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047	    # AIX install.  It has an incompatible calling convention.
7048	    :
7049	  elif test $ac_prog = install &&
7050	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051	    # program-specific install script used by HP pwplus--don't use.
7052	    :
7053	  else
7054	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7055	    break 3
7056	  fi
7057	fi
7058      done
7059    done
7060    ;;
7061esac
7062done
7063IFS=$as_save_IFS
7064
7065
7066fi
7067  if test "${ac_cv_path_install+set}" = set; then
7068    INSTALL=$ac_cv_path_install
7069  else
7070    # As a last resort, use the slow shell script.  Don't cache a
7071    # value for INSTALL within a source directory, because that will
7072    # break other packages using the cache if that directory is
7073    # removed, or if the value is a relative name.
7074    INSTALL=$ac_install_sh
7075  fi
7076fi
7077{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7078echo "${ECHO_T}$INSTALL" >&6; }
7079
7080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081# It thinks the first close brace ends the variable substitution.
7082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7083
7084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7085
7086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7087
7088case "$INSTALL" in
7089 [\\/$]* | ?:[\\/]* ) ;;
7090 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7091esac
7092
7093# Extract the first word of "bzip2", so it can be a program name with args.
7094set dummy bzip2; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_BZIP2+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  case $BZIP2 in
7101  [\\/]* | ?:[\\/]*)
7102  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7103  ;;
7104  *)
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110  for ac_exec_ext in '' $ac_executable_extensions; do
7111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120  ;;
7121esac
7122fi
7123BZIP2=$ac_cv_path_BZIP2
7124if test -n "$BZIP2"; then
7125  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126echo "${ECHO_T}$BZIP2" >&6; }
7127else
7128  { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133# Extract the first word of "cat", so it can be a program name with args.
7134set dummy cat; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_CAT+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  case $CAT in
7141  [\\/]* | ?:[\\/]*)
7142  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7143  ;;
7144  *)
7145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160  ;;
7161esac
7162fi
7163CAT=$ac_cv_path_CAT
7164if test -n "$CAT"; then
7165  { echo "$as_me:$LINENO: result: $CAT" >&5
7166echo "${ECHO_T}$CAT" >&6; }
7167else
7168  { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
7170fi
7171
7172
7173# Extract the first word of "doxygen", so it can be a program name with args.
7174set dummy doxygen; ac_word=$2
7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180  case $DOXYGEN in
7181  [\\/]* | ?:[\\/]*)
7182  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7183  ;;
7184  *)
7185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190  for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200  ;;
7201esac
7202fi
7203DOXYGEN=$ac_cv_path_DOXYGEN
7204if test -n "$DOXYGEN"; then
7205  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206echo "${ECHO_T}$DOXYGEN" >&6; }
7207else
7208  { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
7210fi
7211
7212
7213# Extract the first word of "groff", so it can be a program name with args.
7214set dummy groff; ac_word=$2
7215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_path_GROFF+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  case $GROFF in
7221  [\\/]* | ?:[\\/]*)
7222  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7223  ;;
7224  *)
7225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230  for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237done
7238IFS=$as_save_IFS
7239
7240  ;;
7241esac
7242fi
7243GROFF=$ac_cv_path_GROFF
7244if test -n "$GROFF"; then
7245  { echo "$as_me:$LINENO: result: $GROFF" >&5
7246echo "${ECHO_T}$GROFF" >&6; }
7247else
7248  { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
7250fi
7251
7252
7253# Extract the first word of "gzip", so it can be a program name with args.
7254set dummy gzip; ac_word=$2
7255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257if test "${ac_cv_path_GZIPBIN+set}" = set; then
7258  echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260  case $GZIPBIN in
7261  [\\/]* | ?:[\\/]*)
7262  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7263  ;;
7264  *)
7265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270  for ac_exec_ext in '' $ac_executable_extensions; do
7271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277done
7278IFS=$as_save_IFS
7279
7280  ;;
7281esac
7282fi
7283GZIPBIN=$ac_cv_path_GZIPBIN
7284if test -n "$GZIPBIN"; then
7285  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286echo "${ECHO_T}$GZIPBIN" >&6; }
7287else
7288  { echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6; }
7290fi
7291
7292
7293# Extract the first word of "pod2html", so it can be a program name with args.
7294set dummy pod2html; ac_word=$2
7295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_path_POD2HTML+set}" = set; then
7298  echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300  case $POD2HTML in
7301  [\\/]* | ?:[\\/]*)
7302  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7303  ;;
7304  *)
7305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308  IFS=$as_save_IFS
7309  test -z "$as_dir" && as_dir=.
7310  for ac_exec_ext in '' $ac_executable_extensions; do
7311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314    break 2
7315  fi
7316done
7317done
7318IFS=$as_save_IFS
7319
7320  ;;
7321esac
7322fi
7323POD2HTML=$ac_cv_path_POD2HTML
7324if test -n "$POD2HTML"; then
7325  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7326echo "${ECHO_T}$POD2HTML" >&6; }
7327else
7328  { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
7330fi
7331
7332
7333# Extract the first word of "pod2man", so it can be a program name with args.
7334set dummy pod2man; ac_word=$2
7335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_POD2MAN+set}" = set; then
7338  echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340  case $POD2MAN in
7341  [\\/]* | ?:[\\/]*)
7342  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7343  ;;
7344  *)
7345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348  IFS=$as_save_IFS
7349  test -z "$as_dir" && as_dir=.
7350  for ac_exec_ext in '' $ac_executable_extensions; do
7351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354    break 2
7355  fi
7356done
7357done
7358IFS=$as_save_IFS
7359
7360  ;;
7361esac
7362fi
7363POD2MAN=$ac_cv_path_POD2MAN
7364if test -n "$POD2MAN"; then
7365  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7366echo "${ECHO_T}$POD2MAN" >&6; }
7367else
7368  { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
7373# Extract the first word of "pdfroff", so it can be a program name with args.
7374set dummy pdfroff; ac_word=$2
7375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377if test "${ac_cv_path_PDFROFF+set}" = set; then
7378  echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380  case $PDFROFF in
7381  [\\/]* | ?:[\\/]*)
7382  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7383  ;;
7384  *)
7385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388  IFS=$as_save_IFS
7389  test -z "$as_dir" && as_dir=.
7390  for ac_exec_ext in '' $ac_executable_extensions; do
7391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394    break 2
7395  fi
7396done
7397done
7398IFS=$as_save_IFS
7399
7400  ;;
7401esac
7402fi
7403PDFROFF=$ac_cv_path_PDFROFF
7404if test -n "$PDFROFF"; then
7405  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7406echo "${ECHO_T}$PDFROFF" >&6; }
7407else
7408  { echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6; }
7410fi
7411
7412
7413# Extract the first word of "runtest", so it can be a program name with args.
7414set dummy runtest; ac_word=$2
7415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417if test "${ac_cv_path_RUNTEST+set}" = set; then
7418  echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420  case $RUNTEST in
7421  [\\/]* | ?:[\\/]*)
7422  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7423  ;;
7424  *)
7425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  test -z "$as_dir" && as_dir=.
7430  for ac_exec_ext in '' $ac_executable_extensions; do
7431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434    break 2
7435  fi
7436done
7437done
7438IFS=$as_save_IFS
7439
7440  ;;
7441esac
7442fi
7443RUNTEST=$ac_cv_path_RUNTEST
7444if test -n "$RUNTEST"; then
7445  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7446echo "${ECHO_T}$RUNTEST" >&6; }
7447else
7448  { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
7450fi
7451
7452
7453
7454no_itcl=true
7455{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7456echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7457
7458# Check whether --with-tclinclude was given.
7459if test "${with_tclinclude+set}" = set; then
7460  withval=$with_tclinclude; with_tclinclude=${withval}
7461else
7462  with_tclinclude=''
7463fi
7464
7465if test "${ac_cv_path_tclsh+set}" = set; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468
7469if test x"${with_tclinclude}" != x ; then
7470  if test -f ${with_tclinclude}/tclsh ; then
7471    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7472  elif test -f ${with_tclinclude}/src/tclsh ; then
7473    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7474  else
7475    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7476echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7477   { (exit 1); exit 1; }; }
7478  fi
7479fi
7480fi
7481
7482
7483if test x"${ac_cv_path_tclsh}" = x ; then
7484  { echo "$as_me:$LINENO: result: none" >&5
7485echo "${ECHO_T}none" >&6; }
7486  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
7487do
7488  # Extract the first word of "$ac_prog", so it can be a program name with args.
7489set dummy $ac_prog; ac_word=$2
7490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_TCLSH+set}" = set; then
7493  echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495  case $TCLSH in
7496  [\\/]* | ?:[\\/]*)
7497  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7498  ;;
7499  *)
7500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503  IFS=$as_save_IFS
7504  test -z "$as_dir" && as_dir=.
7505  for ac_exec_ext in '' $ac_executable_extensions; do
7506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509    break 2
7510  fi
7511done
7512done
7513IFS=$as_save_IFS
7514
7515  ;;
7516esac
7517fi
7518TCLSH=$ac_cv_path_TCLSH
7519if test -n "$TCLSH"; then
7520  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7521echo "${ECHO_T}$TCLSH" >&6; }
7522else
7523  { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
7525fi
7526
7527
7528  test -n "$TCLSH" && break
7529done
7530
7531  if test x"${TCLSH}" = x ; then
7532    ac_cv_path_tclsh='';
7533  else
7534    ac_cv_path_tclsh="${TCLSH}";
7535  fi
7536else
7537  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7538echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7539  TCLSH="${ac_cv_path_tclsh}"
7540
7541fi
7542
7543# Extract the first word of "zip", so it can be a program name with args.
7544set dummy zip; ac_word=$2
7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_ZIP+set}" = set; then
7548  echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550  case $ZIP in
7551  [\\/]* | ?:[\\/]*)
7552  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553  ;;
7554  *)
7555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558  IFS=$as_save_IFS
7559  test -z "$as_dir" && as_dir=.
7560  for ac_exec_ext in '' $ac_executable_extensions; do
7561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564    break 2
7565  fi
7566done
7567done
7568IFS=$as_save_IFS
7569
7570  ;;
7571esac
7572fi
7573ZIP=$ac_cv_path_ZIP
7574if test -n "$ZIP"; then
7575  { echo "$as_me:$LINENO: result: $ZIP" >&5
7576echo "${ECHO_T}$ZIP" >&6; }
7577else
7578  { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
7580fi
7581
7582
7583for ac_prog in ocamlc
7584do
7585  # Extract the first word of "$ac_prog", so it can be a program name with args.
7586set dummy $ac_prog; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_OCAMLC+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  case $OCAMLC in
7593  [\\/]* | ?:[\\/]*)
7594  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595  ;;
7596  *)
7597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600  IFS=$as_save_IFS
7601  test -z "$as_dir" && as_dir=.
7602  for ac_exec_ext in '' $ac_executable_extensions; do
7603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606    break 2
7607  fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612  ;;
7613esac
7614fi
7615OCAMLC=$ac_cv_path_OCAMLC
7616if test -n "$OCAMLC"; then
7617  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618echo "${ECHO_T}$OCAMLC" >&6; }
7619else
7620  { echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6; }
7622fi
7623
7624
7625  test -n "$OCAMLC" && break
7626done
7627
7628for ac_prog in ocamlopt
7629do
7630  # Extract the first word of "$ac_prog", so it can be a program name with args.
7631set dummy $ac_prog; ac_word=$2
7632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  case $OCAMLOPT in
7638  [\\/]* | ?:[\\/]*)
7639  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640  ;;
7641  *)
7642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645  IFS=$as_save_IFS
7646  test -z "$as_dir" && as_dir=.
7647  for ac_exec_ext in '' $ac_executable_extensions; do
7648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651    break 2
7652  fi
7653done
7654done
7655IFS=$as_save_IFS
7656
7657  ;;
7658esac
7659fi
7660OCAMLOPT=$ac_cv_path_OCAMLOPT
7661if test -n "$OCAMLOPT"; then
7662  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663echo "${ECHO_T}$OCAMLOPT" >&6; }
7664else
7665  { echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6; }
7667fi
7668
7669
7670  test -n "$OCAMLOPT" && break
7671done
7672
7673for ac_prog in ocamldep
7674do
7675  # Extract the first word of "$ac_prog", so it can be a program name with args.
7676set dummy $ac_prog; ac_word=$2
7677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680  echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682  case $OCAMLDEP in
7683  [\\/]* | ?:[\\/]*)
7684  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685  ;;
7686  *)
7687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690  IFS=$as_save_IFS
7691  test -z "$as_dir" && as_dir=.
7692  for ac_exec_ext in '' $ac_executable_extensions; do
7693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696    break 2
7697  fi
7698done
7699done
7700IFS=$as_save_IFS
7701
7702  ;;
7703esac
7704fi
7705OCAMLDEP=$ac_cv_path_OCAMLDEP
7706if test -n "$OCAMLDEP"; then
7707  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708echo "${ECHO_T}$OCAMLDEP" >&6; }
7709else
7710  { echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6; }
7712fi
7713
7714
7715  test -n "$OCAMLDEP" && break
7716done
7717
7718for ac_prog in ocamldoc
7719do
7720  # Extract the first word of "$ac_prog", so it can be a program name with args.
7721set dummy $ac_prog; ac_word=$2
7722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725  echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727  case $OCAMLDOC in
7728  [\\/]* | ?:[\\/]*)
7729  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730  ;;
7731  *)
7732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737  for ac_exec_ext in '' $ac_executable_extensions; do
7738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744done
7745IFS=$as_save_IFS
7746
7747  ;;
7748esac
7749fi
7750OCAMLDOC=$ac_cv_path_OCAMLDOC
7751if test -n "$OCAMLDOC"; then
7752  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753echo "${ECHO_T}$OCAMLDOC" >&6; }
7754else
7755  { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
7757fi
7758
7759
7760  test -n "$OCAMLDOC" && break
7761done
7762
7763for ac_prog in gas as
7764do
7765  # Extract the first word of "$ac_prog", so it can be a program name with args.
7766set dummy $ac_prog; ac_word=$2
7767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769if test "${ac_cv_path_GAS+set}" = set; then
7770  echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772  case $GAS in
7773  [\\/]* | ?:[\\/]*)
7774  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775  ;;
7776  *)
7777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  test -z "$as_dir" && as_dir=.
7782  for ac_exec_ext in '' $ac_executable_extensions; do
7783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786    break 2
7787  fi
7788done
7789done
7790IFS=$as_save_IFS
7791
7792  ;;
7793esac
7794fi
7795GAS=$ac_cv_path_GAS
7796if test -n "$GAS"; then
7797  { echo "$as_me:$LINENO: result: $GAS" >&5
7798echo "${ECHO_T}$GAS" >&6; }
7799else
7800  { echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6; }
7802fi
7803
7804
7805  test -n "$GAS" && break
7806done
7807
7808
7809{ echo "$as_me:$LINENO: checking for linker version" >&5
7810echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811if test "${llvm_cv_link_version+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814
7815   version_string="$(ld -v 2>&1 | head -1)"
7816
7817   # Check for ld64.
7818   if (echo "$version_string" | grep -q "ld64"); then
7819     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7820   else
7821     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7822   fi
7823
7824fi
7825{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7827
7828cat >>confdefs.h <<_ACEOF
7829#define HOST_LINK_VERSION "$llvm_cv_link_version"
7830_ACEOF
7831
7832
7833
7834{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836if test "${llvm_cv_link_use_r+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839   ac_ext=c
7840ac_cpp='$CPP $CPPFLAGS'
7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845  oldcflags="$CFLAGS"
7846  CFLAGS="$CFLAGS -Wl,-R."
7847  cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h.  */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h.  */
7853
7854int
7855main ()
7856{
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext conftest$ac_exeext
7863if { (ac_try="$ac_link"
7864case "(($ac_try" in
7865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866  *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869  (eval "$ac_link") 2>conftest.er1
7870  ac_status=$?
7871  grep -v '^ *+' conftest.er1 >conftest.err
7872  rm -f conftest.er1
7873  cat conftest.err >&5
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); } &&
7876	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877  { (case "(($ac_try" in
7878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879  *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882  (eval "$ac_try") 2>&5
7883  ac_status=$?
7884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); }; } &&
7886	 { ac_try='test -s conftest$ac_exeext'
7887  { (case "(($ac_try" in
7888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889  *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892  (eval "$ac_try") 2>&5
7893  ac_status=$?
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); }; }; then
7896  llvm_cv_link_use_r=yes
7897else
7898  echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901	llvm_cv_link_use_r=no
7902fi
7903
7904rm -f core conftest.err conftest.$ac_objext \
7905      conftest$ac_exeext conftest.$ac_ext
7906  CFLAGS="$oldcflags"
7907  ac_ext=c
7908ac_cpp='$CPP $CPPFLAGS'
7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914fi
7915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917if test "$llvm_cv_link_use_r" = yes ; then
7918
7919cat >>confdefs.h <<\_ACEOF
7920#define HAVE_LINK_R 1
7921_ACEOF
7922
7923  fi
7924
7925
7926{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929  echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931   ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937  oldcflags="$CFLAGS"
7938  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939  cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h.  */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h.  */
7945
7946int
7947main ()
7948{
7949
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954rm -f conftest.$ac_objext conftest$ac_exeext
7955if { (ac_try="$ac_link"
7956case "(($ac_try" in
7957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958  *) ac_try_echo=$ac_try;;
7959esac
7960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961  (eval "$ac_link") 2>conftest.er1
7962  ac_status=$?
7963  grep -v '^ *+' conftest.er1 >conftest.err
7964  rm -f conftest.er1
7965  cat conftest.err >&5
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); } &&
7968	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969  { (case "(($ac_try" in
7970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971  *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974  (eval "$ac_try") 2>&5
7975  ac_status=$?
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); }; } &&
7978	 { ac_try='test -s conftest$ac_exeext'
7979  { (case "(($ac_try" in
7980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981  *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984  (eval "$ac_try") 2>&5
7985  ac_status=$?
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); }; }; then
7988  llvm_cv_link_use_export_dynamic=yes
7989else
7990  echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993	llvm_cv_link_use_export_dynamic=no
7994fi
7995
7996rm -f core conftest.err conftest.$ac_objext \
7997      conftest$ac_exeext conftest.$ac_ext
7998  CFLAGS="$oldcflags"
7999  ac_ext=c
8000ac_cpp='$CPP $CPPFLAGS'
8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005
8006fi
8007{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8010
8011cat >>confdefs.h <<\_ACEOF
8012#define HAVE_LINK_EXPORT_DYNAMIC 1
8013_ACEOF
8014
8015  fi
8016
8017
8018{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020if test "${llvm_cv_link_use_version_script+set}" = set; then
8021  echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023   ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029  oldcflags="$CFLAGS"
8030
8031  # The following code is from the autoconf manual,
8032  # "11.13: Limitations of Usual Tools".
8033  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034  # Use mktemp if possible; otherwise fall back on mkdir,
8035  # with $RANDOM to make collisions less likely.
8036  : ${TMPDIR=/tmp}
8037  {
8038    tmp=`
8039      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8040    ` &&
8041    test -n "$tmp" && test -d "$tmp"
8042  } || {
8043    tmp=$TMPDIR/foo$$-$RANDOM
8044    (umask 077 && mkdir "$tmp")
8045  } || exit $?
8046
8047  echo "{" > "$tmp/export.map"
8048  echo "  global: main;" >> "$tmp/export.map"
8049  echo "  local: *;" >> "$tmp/export.map"
8050  echo "};" >> "$tmp/export.map"
8051
8052  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053  cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059
8060int
8061main ()
8062{
8063
8064  ;
8065  return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext conftest$ac_exeext
8069if { (ac_try="$ac_link"
8070case "(($ac_try" in
8071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072  *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075  (eval "$ac_link") 2>conftest.er1
8076  ac_status=$?
8077  grep -v '^ *+' conftest.er1 >conftest.err
8078  rm -f conftest.er1
8079  cat conftest.err >&5
8080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081  (exit $ac_status); } &&
8082	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083  { (case "(($ac_try" in
8084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085  *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088  (eval "$ac_try") 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; } &&
8092	 { ac_try='test -s conftest$ac_exeext'
8093  { (case "(($ac_try" in
8094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095  *) ac_try_echo=$ac_try;;
8096esac
8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098  (eval "$ac_try") 2>&5
8099  ac_status=$?
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); }; }; then
8102  llvm_cv_link_use_version_script=yes
8103else
8104  echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107	llvm_cv_link_use_version_script=no
8108fi
8109
8110rm -f core conftest.err conftest.$ac_objext \
8111      conftest$ac_exeext conftest.$ac_ext
8112  rm "$tmp/export.map"
8113  rmdir "$tmp"
8114  CFLAGS="$oldcflags"
8115  ac_ext=c
8116ac_cpp='$CPP $CPPFLAGS'
8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122fi
8123{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125if test "$llvm_cv_link_use_version_script" = yes ; then
8126  HAVE_LINK_VERSION_SCRIPT=1
8127
8128  fi
8129
8130
8131
8132
8133{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135if test "${ac_cv_c_const+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144
8145int
8146main ()
8147{
8148/* FIXME: Include the comments suggested by Paul. */
8149#ifndef __cplusplus
8150  /* Ultrix mips cc rejects this.  */
8151  typedef int charset[2];
8152  const charset x;
8153  /* SunOS 4.1.1 cc rejects this.  */
8154  char const *const *ccp;
8155  char **p;
8156  /* NEC SVR4.0.2 mips cc rejects this.  */
8157  struct point {int x, y;};
8158  static struct point const zero = {0,0};
8159  /* AIX XL C 1.02.0.0 rejects this.
8160     It does not let you subtract one const X* pointer from another in
8161     an arm of an if-expression whose if-part is not a constant
8162     expression */
8163  const char *g = "string";
8164  ccp = &g + (g ? g-g : 0);
8165  /* HPUX 7.0 cc rejects these. */
8166  ++ccp;
8167  p = (char**) ccp;
8168  ccp = (char const *const *) p;
8169  { /* SCO 3.2v4 cc rejects this.  */
8170    char *t;
8171    char const *s = 0 ? (char *) 0 : (char const *) 0;
8172
8173    *t++ = 0;
8174    if (s) return 0;
8175  }
8176  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8177    int x[] = {25, 17};
8178    const int *foo = &x[0];
8179    ++foo;
8180  }
8181  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182    typedef const int *iptr;
8183    iptr p = 0;
8184    ++p;
8185  }
8186  { /* AIX XL C 1.02.0.0 rejects this saying
8187       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188    struct s { int j; const int *ap[3]; };
8189    struct s *b; b->j = 5;
8190  }
8191  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8192    const int foo = 10;
8193    if (!foo) return 0;
8194  }
8195  return !x[0] && !zero.x;
8196#endif
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (ac_try="$ac_compile"
8204case "(($ac_try" in
8205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206  *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209  (eval "$ac_compile") 2>conftest.er1
8210  ac_status=$?
8211  grep -v '^ *+' conftest.er1 >conftest.err
8212  rm -f conftest.er1
8213  cat conftest.err >&5
8214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215  (exit $ac_status); } &&
8216	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217  { (case "(($ac_try" in
8218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219  *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222  (eval "$ac_try") 2>&5
8223  ac_status=$?
8224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225  (exit $ac_status); }; } &&
8226	 { ac_try='test -s conftest.$ac_objext'
8227  { (case "(($ac_try" in
8228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229  *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232  (eval "$ac_try") 2>&5
8233  ac_status=$?
8234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235  (exit $ac_status); }; }; then
8236  ac_cv_c_const=yes
8237else
8238  echo "$as_me: failed program was:" >&5
8239sed 's/^/| /' conftest.$ac_ext >&5
8240
8241	ac_cv_c_const=no
8242fi
8243
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
8246{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248if test $ac_cv_c_const = no; then
8249
8250cat >>confdefs.h <<\_ACEOF
8251#define const
8252_ACEOF
8253
8254fi
8255
8256
8257
8258
8259
8260
8261ac_header_dirent=no
8262for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267  echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269  cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h.  */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h.  */
8275#include <sys/types.h>
8276#include <$ac_hdr>
8277
8278int
8279main ()
8280{
8281if ((DIR *) 0)
8282return 0;
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext
8288if { (ac_try="$ac_compile"
8289case "(($ac_try" in
8290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291  *) ac_try_echo=$ac_try;;
8292esac
8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294  (eval "$ac_compile") 2>conftest.er1
8295  ac_status=$?
8296  grep -v '^ *+' conftest.er1 >conftest.err
8297  rm -f conftest.er1
8298  cat conftest.err >&5
8299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300  (exit $ac_status); } &&
8301	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302  { (case "(($ac_try" in
8303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304  *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307  (eval "$ac_try") 2>&5
8308  ac_status=$?
8309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310  (exit $ac_status); }; } &&
8311	 { ac_try='test -s conftest.$ac_objext'
8312  { (case "(($ac_try" in
8313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314  *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317  (eval "$ac_try") 2>&5
8318  ac_status=$?
8319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320  (exit $ac_status); }; }; then
8321  eval "$as_ac_Header=yes"
8322else
8323  echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326	eval "$as_ac_Header=no"
8327fi
8328
8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330fi
8331ac_res=`eval echo '${'$as_ac_Header'}'`
8332	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8333echo "${ECHO_T}$ac_res" >&6; }
8334if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335  cat >>confdefs.h <<_ACEOF
8336#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8337_ACEOF
8338
8339ac_header_dirent=$ac_hdr; break
8340fi
8341
8342done
8343# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344if test $ac_header_dirent = dirent.h; then
8345  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347if test "${ac_cv_search_opendir+set}" = set; then
8348  echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350  ac_func_search_save_LIBS=$LIBS
8351cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h.  */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h.  */
8357
8358/* Override any GCC internal prototype to avoid an error.
8359   Use char because int might match the return type of a GCC
8360   builtin and then its argument prototype would still apply.  */
8361#ifdef __cplusplus
8362extern "C"
8363#endif
8364char opendir ();
8365int
8366main ()
8367{
8368return opendir ();
8369  ;
8370  return 0;
8371}
8372_ACEOF
8373for ac_lib in '' dir; do
8374  if test -z "$ac_lib"; then
8375    ac_res="none required"
8376  else
8377    ac_res=-l$ac_lib
8378    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8379  fi
8380  rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384  *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387  (eval "$ac_link") 2>conftest.er1
8388  ac_status=$?
8389  grep -v '^ *+' conftest.er1 >conftest.err
8390  rm -f conftest.er1
8391  cat conftest.err >&5
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); } &&
8394	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395  { (case "(($ac_try" in
8396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397  *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400  (eval "$ac_try") 2>&5
8401  ac_status=$?
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); }; } &&
8404	 { ac_try='test -s conftest$ac_exeext'
8405  { (case "(($ac_try" in
8406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407  *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410  (eval "$ac_try") 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; }; then
8414  ac_cv_search_opendir=$ac_res
8415else
8416  echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419
8420fi
8421
8422rm -f core conftest.err conftest.$ac_objext \
8423      conftest$ac_exeext
8424  if test "${ac_cv_search_opendir+set}" = set; then
8425  break
8426fi
8427done
8428if test "${ac_cv_search_opendir+set}" = set; then
8429  :
8430else
8431  ac_cv_search_opendir=no
8432fi
8433rm conftest.$ac_ext
8434LIBS=$ac_func_search_save_LIBS
8435fi
8436{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438ac_res=$ac_cv_search_opendir
8439if test "$ac_res" != no; then
8440  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8441
8442fi
8443
8444else
8445  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447if test "${ac_cv_search_opendir+set}" = set; then
8448  echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450  ac_func_search_save_LIBS=$LIBS
8451cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457
8458/* Override any GCC internal prototype to avoid an error.
8459   Use char because int might match the return type of a GCC
8460   builtin and then its argument prototype would still apply.  */
8461#ifdef __cplusplus
8462extern "C"
8463#endif
8464char opendir ();
8465int
8466main ()
8467{
8468return opendir ();
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473for ac_lib in '' x; do
8474  if test -z "$ac_lib"; then
8475    ac_res="none required"
8476  else
8477    ac_res=-l$ac_lib
8478    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8479  fi
8480  rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (ac_try="$ac_link"
8482case "(($ac_try" in
8483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484  *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487  (eval "$ac_link") 2>conftest.er1
8488  ac_status=$?
8489  grep -v '^ *+' conftest.er1 >conftest.err
8490  rm -f conftest.er1
8491  cat conftest.err >&5
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); } &&
8494	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495  { (case "(($ac_try" in
8496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497  *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500  (eval "$ac_try") 2>&5
8501  ac_status=$?
8502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503  (exit $ac_status); }; } &&
8504	 { ac_try='test -s conftest$ac_exeext'
8505  { (case "(($ac_try" in
8506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507  *) ac_try_echo=$ac_try;;
8508esac
8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510  (eval "$ac_try") 2>&5
8511  ac_status=$?
8512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); }; }; then
8514  ac_cv_search_opendir=$ac_res
8515else
8516  echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
8520fi
8521
8522rm -f core conftest.err conftest.$ac_objext \
8523      conftest$ac_exeext
8524  if test "${ac_cv_search_opendir+set}" = set; then
8525  break
8526fi
8527done
8528if test "${ac_cv_search_opendir+set}" = set; then
8529  :
8530else
8531  ac_cv_search_opendir=no
8532fi
8533rm conftest.$ac_ext
8534LIBS=$ac_func_search_save_LIBS
8535fi
8536{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538ac_res=$ac_cv_search_opendir
8539if test "$ac_res" != no; then
8540  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8541
8542fi
8543
8544fi
8545
8546
8547for ac_header in dlfcn.h
8548do
8549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554  echo $ECHO_N "(cached) $ECHO_C" >&6
8555fi
8556ac_res=`eval echo '${'$as_ac_Header'}'`
8557	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8558echo "${ECHO_T}$ac_res" >&6; }
8559else
8560  # Is the header compilable?
8561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h.  */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h.  */
8569$ac_includes_default
8570#include <$ac_header>
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (ac_try="$ac_compile"
8574case "(($ac_try" in
8575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576  *) ac_try_echo=$ac_try;;
8577esac
8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579  (eval "$ac_compile") 2>conftest.er1
8580  ac_status=$?
8581  grep -v '^ *+' conftest.er1 >conftest.err
8582  rm -f conftest.er1
8583  cat conftest.err >&5
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); } &&
8586	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587  { (case "(($ac_try" in
8588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589  *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592  (eval "$ac_try") 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; } &&
8596	 { ac_try='test -s conftest.$ac_objext'
8597  { (case "(($ac_try" in
8598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599  *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602  (eval "$ac_try") 2>&5
8603  ac_status=$?
8604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605  (exit $ac_status); }; }; then
8606  ac_header_compiler=yes
8607else
8608  echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611	ac_header_compiler=no
8612fi
8613
8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616echo "${ECHO_T}$ac_header_compiler" >&6; }
8617
8618# Is the header present?
8619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h.  */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h.  */
8627#include <$ac_header>
8628_ACEOF
8629if { (ac_try="$ac_cpp conftest.$ac_ext"
8630case "(($ac_try" in
8631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632  *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8636  ac_status=$?
8637  grep -v '^ *+' conftest.er1 >conftest.err
8638  rm -f conftest.er1
8639  cat conftest.err >&5
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); } >/dev/null; then
8642  if test -s conftest.err; then
8643    ac_cpp_err=$ac_c_preproc_warn_flag
8644    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8645  else
8646    ac_cpp_err=
8647  fi
8648else
8649  ac_cpp_err=yes
8650fi
8651if test -z "$ac_cpp_err"; then
8652  ac_header_preproc=yes
8653else
8654  echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657  ac_header_preproc=no
8658fi
8659
8660rm -f conftest.err conftest.$ac_ext
8661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662echo "${ECHO_T}$ac_header_preproc" >&6; }
8663
8664# So?  What about this header?
8665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8666  yes:no: )
8667    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671    ac_header_preproc=yes
8672    ;;
8673  no:yes:* )
8674    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8677echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8678    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8681echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8682    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8686    ( cat <<\_ASBOX
8687## ------------------------------------ ##
8688## Report this to http://llvm.org/bugs/ ##
8689## ------------------------------------ ##
8690_ASBOX
8691     ) | sed "s/^/$as_me: WARNING:     /" >&2
8692    ;;
8693esac
8694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697  echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699  eval "$as_ac_Header=\$ac_header_preproc"
8700fi
8701ac_res=`eval echo '${'$as_ac_Header'}'`
8702	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8703echo "${ECHO_T}$ac_res" >&6; }
8704
8705fi
8706if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707  cat >>confdefs.h <<_ACEOF
8708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709_ACEOF
8710
8711fi
8712
8713done
8714
8715# Check whether --enable-ltdl-install was given.
8716if test "${enable_ltdl_install+set}" = set; then
8717  enableval=$enable_ltdl_install;
8718fi
8719
8720
8721
8722
8723if test x"${enable_ltdl_install-no}" != xno; then
8724  INSTALL_LTDL_TRUE=
8725  INSTALL_LTDL_FALSE='#'
8726else
8727  INSTALL_LTDL_TRUE='#'
8728  INSTALL_LTDL_FALSE=
8729fi
8730
8731
8732
8733if test x"${enable_ltdl_convenience-no}" != xno; then
8734  CONVENIENCE_LTDL_TRUE=
8735  CONVENIENCE_LTDL_FALSE='#'
8736else
8737  CONVENIENCE_LTDL_TRUE='#'
8738  CONVENIENCE_LTDL_FALSE=
8739fi
8740
8741
8742{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8744library_names_spec=
8745libname_spec='lib$name'
8746soname_spec=
8747shrext_cmds=".so"
8748postinstall_cmds=
8749postuninstall_cmds=
8750finish_cmds=
8751finish_eval=
8752shlibpath_var=
8753shlibpath_overrides_runpath=unknown
8754version_type=none
8755dynamic_linker="$host_os ld.so"
8756sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757if test "$GCC" = yes; then
8758  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760    # if the path contains ";" then we assume it to be the separator
8761    # otherwise default to the standard path separator (i.e. ":") - it is
8762    # assumed that no part of a normal pathname contains ";" but that should
8763    # okay in the real world where ";" in dirpaths is itself problematic.
8764    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765  else
8766    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8767  fi
8768else
8769  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8770fi
8771need_lib_prefix=unknown
8772hardcode_into_libs=no
8773
8774# when you set need_version to no, make sure it does not cause -set_version
8775# flags to be left without arguments
8776need_version=unknown
8777
8778case $host_os in
8779aix3*)
8780  version_type=linux
8781  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782  shlibpath_var=LIBPATH
8783
8784  # AIX 3 has no versioning support, so we append a major version to the name.
8785  soname_spec='${libname}${release}${shared_ext}$major'
8786  ;;
8787
8788aix4* | aix5*)
8789  version_type=linux
8790  need_lib_prefix=no
8791  need_version=no
8792  hardcode_into_libs=yes
8793  if test "$host_cpu" = ia64; then
8794    # AIX 5 supports IA64
8795    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796    shlibpath_var=LD_LIBRARY_PATH
8797  else
8798    # With GCC up to 2.95.x, collect2 would create an import file
8799    # for dependence libraries.  The import file would start with
8800    # the line `#! .'.  This would cause the generated library to
8801    # depend on `.', always an invalid library.  This was fixed in
8802    # development snapshots of GCC prior to 3.0.
8803    case $host_os in
8804      aix4 | aix4.[01] | aix4.[01].*)
8805      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806	   echo ' yes '
8807	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8808	:
8809      else
8810	can_build_shared=no
8811      fi
8812      ;;
8813    esac
8814    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815    # soname into executable. Probably we can add versioning support to
8816    # collect2, so additional links can be useful in future.
8817    if test "$aix_use_runtimelinking" = yes; then
8818      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819      # instead of lib<name>.a to let people know that these are not
8820      # typical AIX shared libraries.
8821      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822    else
8823      # We preserve .a as extension for shared libraries through AIX4.2
8824      # and later when we are not doing run time linking.
8825      library_names_spec='${libname}${release}.a $libname.a'
8826      soname_spec='${libname}${release}${shared_ext}$major'
8827    fi
8828    shlibpath_var=LIBPATH
8829  fi
8830  ;;
8831
8832amigaos*)
8833  library_names_spec='$libname.ixlibrary $libname.a'
8834  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835  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'
8836  ;;
8837
8838beos*)
8839  library_names_spec='${libname}${shared_ext}'
8840  dynamic_linker="$host_os ld.so"
8841  shlibpath_var=LIBRARY_PATH
8842  ;;
8843
8844bsdi[45]*)
8845  version_type=linux
8846  need_version=no
8847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848  soname_spec='${libname}${release}${shared_ext}$major'
8849  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850  shlibpath_var=LD_LIBRARY_PATH
8851  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853  # the default ld.so.conf also contains /usr/contrib/lib and
8854  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855  # libtool to hard-code these into programs
8856  ;;
8857
8858cygwin* | mingw* | pw32*)
8859  version_type=windows
8860  shrext_cmds=".dll"
8861  need_version=no
8862  need_lib_prefix=no
8863
8864  case $GCC,$host_os in
8865  yes,cygwin* | yes,mingw* | yes,pw32*)
8866    library_names_spec='$libname.dll.a'
8867    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868    postinstall_cmds='base_file=`basename \${file}`~
8869      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870      dldir=$destdir/`dirname \$dlpath`~
8871      test -d \$dldir || mkdir -p \$dldir~
8872      $install_prog $dir/$dlname \$dldir/$dlname~
8873      chmod a+x \$dldir/$dlname'
8874    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875      dlpath=$dir/\$dldll~
8876       $rm \$dlpath'
8877    shlibpath_overrides_runpath=yes
8878
8879    case $host_os in
8880    cygwin*)
8881      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884      ;;
8885    mingw*)
8886      # MinGW DLLs use traditional 'lib' prefix
8887      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890        # It is most probably a Windows format PATH printed by
8891        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892        # path with ; separators, and with drive letters. We can handle the
8893        # drive letters (cygwin fileutils understands them), so leave them,
8894        # especially as we might pass files found there to a mingw objdump,
8895        # which wouldn't understand a cygwinified path. Ahh.
8896        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897      else
8898        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8899      fi
8900      ;;
8901    pw32*)
8902      # pw32 DLLs use 'pw' prefix rather than 'lib'
8903      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8904      ;;
8905    esac
8906    ;;
8907
8908  *)
8909    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910    ;;
8911  esac
8912  dynamic_linker='Win32 ld.exe'
8913  # FIXME: first we should search . and the directory the executable is in
8914  shlibpath_var=PATH
8915  ;;
8916
8917darwin* | rhapsody*)
8918  dynamic_linker="$host_os dyld"
8919  version_type=darwin
8920  need_lib_prefix=no
8921  need_version=no
8922  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923  soname_spec='${libname}${release}${major}$shared_ext'
8924  shlibpath_overrides_runpath=yes
8925  shlibpath_var=DYLD_LIBRARY_PATH
8926  shrext_cmds='.dylib'
8927  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928  if test "$GCC" = yes; then
8929    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"`
8930  else
8931    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8932  fi
8933  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934  ;;
8935
8936dgux*)
8937  version_type=linux
8938  need_lib_prefix=no
8939  need_version=no
8940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941  soname_spec='${libname}${release}${shared_ext}$major'
8942  shlibpath_var=LD_LIBRARY_PATH
8943  ;;
8944
8945freebsd1.*)
8946  dynamic_linker=no
8947  ;;
8948
8949kfreebsd*-gnu)
8950  version_type=linux
8951  need_lib_prefix=no
8952  need_version=no
8953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954  soname_spec='${libname}${release}${shared_ext}$major'
8955  shlibpath_var=LD_LIBRARY_PATH
8956  shlibpath_overrides_runpath=no
8957  hardcode_into_libs=yes
8958  dynamic_linker='GNU ld.so'
8959  ;;
8960
8961freebsd* | dragonfly*)
8962  # DragonFly does not have aout.  When/if they implement a new
8963  # versioning mechanism, adjust this.
8964  if test -x /usr/bin/objformat; then
8965    objformat=`/usr/bin/objformat`
8966  else
8967    case $host_os in
8968    freebsd[123].*) objformat=aout ;;
8969    *) objformat=elf ;;
8970    esac
8971  fi
8972  version_type=freebsd-$objformat
8973  case $version_type in
8974    freebsd-elf*)
8975      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8976      need_version=no
8977      need_lib_prefix=no
8978      ;;
8979    freebsd-*)
8980      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8981      need_version=yes
8982      ;;
8983  esac
8984  shlibpath_var=LD_LIBRARY_PATH
8985  case $host_os in
8986  freebsd2.*)
8987    shlibpath_overrides_runpath=yes
8988    ;;
8989  freebsd3.[01]* | freebsdelf3.[01]*)
8990    shlibpath_overrides_runpath=yes
8991    hardcode_into_libs=yes
8992    ;;
8993  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995    shlibpath_overrides_runpath=no
8996    hardcode_into_libs=yes
8997    ;;
8998  freebsd*) # from 4.6 on
8999    shlibpath_overrides_runpath=yes
9000    hardcode_into_libs=yes
9001    ;;
9002  esac
9003  ;;
9004
9005gnu*)
9006  version_type=linux
9007  need_lib_prefix=no
9008  need_version=no
9009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010  soname_spec='${libname}${release}${shared_ext}$major'
9011  shlibpath_var=LD_LIBRARY_PATH
9012  hardcode_into_libs=yes
9013  ;;
9014
9015hpux9* | hpux10* | hpux11*)
9016  # Give a soname corresponding to the major version so that dld.sl refuses to
9017  # link against other versions.
9018  version_type=sunos
9019  need_lib_prefix=no
9020  need_version=no
9021  case $host_cpu in
9022  ia64*)
9023    shrext_cmds='.so'
9024    hardcode_into_libs=yes
9025    dynamic_linker="$host_os dld.so"
9026    shlibpath_var=LD_LIBRARY_PATH
9027    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029    soname_spec='${libname}${release}${shared_ext}$major'
9030    if test "X$HPUX_IA64_MODE" = X32; then
9031      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9032    else
9033      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9034    fi
9035    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036    ;;
9037   hppa*64*)
9038     shrext_cmds='.sl'
9039     hardcode_into_libs=yes
9040     dynamic_linker="$host_os dld.sl"
9041     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044     soname_spec='${libname}${release}${shared_ext}$major'
9045     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047     ;;
9048   *)
9049    shrext_cmds='.sl'
9050    dynamic_linker="$host_os dld.sl"
9051    shlibpath_var=SHLIB_PATH
9052    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054    soname_spec='${libname}${release}${shared_ext}$major'
9055    ;;
9056  esac
9057  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058  postinstall_cmds='chmod 555 $lib'
9059  ;;
9060
9061interix3*)
9062  version_type=linux
9063  need_lib_prefix=no
9064  need_version=no
9065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066  soname_spec='${libname}${release}${shared_ext}$major'
9067  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068  shlibpath_var=LD_LIBRARY_PATH
9069  shlibpath_overrides_runpath=no
9070  hardcode_into_libs=yes
9071  ;;
9072
9073irix5* | irix6* | nonstopux*)
9074  case $host_os in
9075    nonstopux*) version_type=nonstopux ;;
9076    *)
9077	if test "$lt_cv_prog_gnu_ld" = yes; then
9078		version_type=linux
9079	else
9080		version_type=irix
9081	fi ;;
9082  esac
9083  need_lib_prefix=no
9084  need_version=no
9085  soname_spec='${libname}${release}${shared_ext}$major'
9086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9087  case $host_os in
9088  irix5* | nonstopux*)
9089    libsuff= shlibsuff=
9090    ;;
9091  *)
9092    case $LD in # libtool.m4 will add one of these switches to LD
9093    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094      libsuff= shlibsuff= libmagic=32-bit;;
9095    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096      libsuff=32 shlibsuff=N32 libmagic=N32;;
9097    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099    *) libsuff= shlibsuff= libmagic=never-match;;
9100    esac
9101    ;;
9102  esac
9103  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104  shlibpath_overrides_runpath=no
9105  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107  hardcode_into_libs=yes
9108  ;;
9109
9110# No shared lib support for Linux oldld, aout, or coff.
9111linux*oldld* | linux*aout* | linux*coff*)
9112  dynamic_linker=no
9113  ;;
9114
9115# This must be Linux ELF.
9116linux*)
9117  version_type=linux
9118  need_lib_prefix=no
9119  need_version=no
9120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121  soname_spec='${libname}${release}${shared_ext}$major'
9122  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123  shlibpath_var=LD_LIBRARY_PATH
9124  shlibpath_overrides_runpath=no
9125  # This implies no fast_install, which is unacceptable.
9126  # Some rework will be needed to allow for fast_install
9127  # before this can be enabled.
9128  hardcode_into_libs=yes
9129
9130  # Append ld.so.conf contents to the search path
9131  if test -f /etc/ld.so.conf; then
9132    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' ' '`
9133    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9134  fi
9135
9136  # We used to test for /lib/ld.so.1 and disable shared libraries on
9137  # powerpc, because MkLinux only supported shared libraries with the
9138  # GNU dynamic linker.  Since this was broken with cross compilers,
9139  # most powerpc-linux boxes support dynamic linking these days and
9140  # people can always --disable-shared, the test was removed, and we
9141  # assume the GNU/Linux dynamic linker is in use.
9142  dynamic_linker='GNU/Linux ld.so'
9143  ;;
9144
9145knetbsd*-gnu)
9146  version_type=linux
9147  need_lib_prefix=no
9148  need_version=no
9149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150  soname_spec='${libname}${release}${shared_ext}$major'
9151  shlibpath_var=LD_LIBRARY_PATH
9152  shlibpath_overrides_runpath=no
9153  hardcode_into_libs=yes
9154  dynamic_linker='GNU ld.so'
9155  ;;
9156
9157netbsd*)
9158  version_type=sunos
9159  need_lib_prefix=no
9160  need_version=no
9161  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164    dynamic_linker='NetBSD (a.out) ld.so'
9165  else
9166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167    soname_spec='${libname}${release}${shared_ext}$major'
9168    dynamic_linker='NetBSD ld.elf_so'
9169  fi
9170  shlibpath_var=LD_LIBRARY_PATH
9171  shlibpath_overrides_runpath=yes
9172  hardcode_into_libs=yes
9173  ;;
9174
9175newsos6)
9176  version_type=linux
9177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178  shlibpath_var=LD_LIBRARY_PATH
9179  shlibpath_overrides_runpath=yes
9180  ;;
9181
9182nto-qnx*)
9183  version_type=linux
9184  need_lib_prefix=no
9185  need_version=no
9186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187  soname_spec='${libname}${release}${shared_ext}$major'
9188  shlibpath_var=LD_LIBRARY_PATH
9189  shlibpath_overrides_runpath=yes
9190  ;;
9191
9192openbsd*)
9193  version_type=sunos
9194  sys_lib_dlsearch_path_spec="/usr/lib"
9195  need_lib_prefix=no
9196  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9197  case $host_os in
9198    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199    *)                         need_version=no  ;;
9200  esac
9201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203  shlibpath_var=LD_LIBRARY_PATH
9204  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9205    case $host_os in
9206      openbsd2.[89] | openbsd2.[89].*)
9207	shlibpath_overrides_runpath=no
9208	;;
9209      *)
9210	shlibpath_overrides_runpath=yes
9211	;;
9212      esac
9213  else
9214    shlibpath_overrides_runpath=yes
9215  fi
9216  ;;
9217
9218os2*)
9219  libname_spec='$name'
9220  shrext_cmds=".dll"
9221  need_lib_prefix=no
9222  library_names_spec='$libname${shared_ext} $libname.a'
9223  dynamic_linker='OS/2 ld.exe'
9224  shlibpath_var=LIBPATH
9225  ;;
9226
9227osf3* | osf4* | osf5*)
9228  version_type=osf
9229  need_lib_prefix=no
9230  need_version=no
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9236  ;;
9237
9238solaris*)
9239  version_type=linux
9240  need_lib_prefix=no
9241  need_version=no
9242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243  soname_spec='${libname}${release}${shared_ext}$major'
9244  shlibpath_var=LD_LIBRARY_PATH
9245  shlibpath_overrides_runpath=yes
9246  hardcode_into_libs=yes
9247  # ldd complains unless libraries are executable
9248  postinstall_cmds='chmod +x $lib'
9249  ;;
9250
9251sunos4*)
9252  version_type=sunos
9253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255  shlibpath_var=LD_LIBRARY_PATH
9256  shlibpath_overrides_runpath=yes
9257  if test "$with_gnu_ld" = yes; then
9258    need_lib_prefix=no
9259  fi
9260  need_version=yes
9261  ;;
9262
9263sysv4 | sysv4.3*)
9264  version_type=linux
9265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266  soname_spec='${libname}${release}${shared_ext}$major'
9267  shlibpath_var=LD_LIBRARY_PATH
9268  case $host_vendor in
9269    sni)
9270      shlibpath_overrides_runpath=no
9271      need_lib_prefix=no
9272      export_dynamic_flag_spec='${wl}-Blargedynsym'
9273      runpath_var=LD_RUN_PATH
9274      ;;
9275    siemens)
9276      need_lib_prefix=no
9277      ;;
9278    motorola)
9279      need_lib_prefix=no
9280      need_version=no
9281      shlibpath_overrides_runpath=no
9282      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9283      ;;
9284  esac
9285  ;;
9286
9287sysv4*MP*)
9288  if test -d /usr/nec ;then
9289    version_type=linux
9290    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291    soname_spec='$libname${shared_ext}.$major'
9292    shlibpath_var=LD_LIBRARY_PATH
9293  fi
9294  ;;
9295
9296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297  version_type=freebsd-elf
9298  need_lib_prefix=no
9299  need_version=no
9300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  shlibpath_var=LD_LIBRARY_PATH
9303  hardcode_into_libs=yes
9304  if test "$with_gnu_ld" = yes; then
9305    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306    shlibpath_overrides_runpath=no
9307  else
9308    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309    shlibpath_overrides_runpath=yes
9310    case $host_os in
9311      sco3.2v5*)
9312        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9313	;;
9314    esac
9315  fi
9316  sys_lib_dlsearch_path_spec='/usr/lib'
9317  ;;
9318
9319uts4*)
9320  version_type=linux
9321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322  soname_spec='${libname}${release}${shared_ext}$major'
9323  shlibpath_var=LD_LIBRARY_PATH
9324  ;;
9325
9326*)
9327  dynamic_linker=no
9328  ;;
9329esac
9330{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331echo "${ECHO_T}$dynamic_linker" >&6; }
9332test "$dynamic_linker" = no && can_build_shared=no
9333
9334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335if test "$GCC" = yes; then
9336  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9337fi
9338
9339
9340{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342if test "${libltdl_cv_shlibext+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345
9346module=yes
9347eval libltdl_cv_shlibext=$shrext_cmds
9348
9349fi
9350{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352if test -n "$libltdl_cv_shlibext"; then
9353
9354cat >>confdefs.h <<_ACEOF
9355#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9356_ACEOF
9357
9358fi
9359
9360
9361{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364  echo $ECHO_N "(cached) $ECHO_C" >&6
9365else
9366  libltdl_cv_shlibpath_var="$shlibpath_var"
9367fi
9368{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370if test -n "$libltdl_cv_shlibpath_var"; then
9371
9372cat >>confdefs.h <<_ACEOF
9373#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9374_ACEOF
9375
9376fi
9377
9378
9379{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9380echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381if test "${libltdl_cv_sys_search_path+set}" = set; then
9382  echo $ECHO_N "(cached) $ECHO_C" >&6
9383else
9384  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9385fi
9386{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388if test -n "$libltdl_cv_sys_search_path"; then
9389  sys_search_path=
9390  for dir in $libltdl_cv_sys_search_path; do
9391    if test -z "$sys_search_path"; then
9392      sys_search_path="$dir"
9393    else
9394      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9395    fi
9396  done
9397
9398cat >>confdefs.h <<_ACEOF
9399#define LTDL_SYSSEARCHPATH "$sys_search_path"
9400_ACEOF
9401
9402fi
9403
9404{ echo "$as_me:$LINENO: checking for objdir" >&5
9405echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406if test "${libltdl_cv_objdir+set}" = set; then
9407  echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409  libltdl_cv_objdir="$objdir"
9410  if test -n "$objdir"; then
9411    :
9412  else
9413    rm -f .libs 2>/dev/null
9414    mkdir .libs 2>/dev/null
9415    if test -d .libs; then
9416      libltdl_cv_objdir=.libs
9417    else
9418      # MS-DOS does not allow filenames that begin with a dot.
9419      libltdl_cv_objdir=_libs
9420    fi
9421  rmdir .libs 2>/dev/null
9422  fi
9423
9424fi
9425{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9427
9428cat >>confdefs.h <<_ACEOF
9429#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9430_ACEOF
9431
9432
9433
9434
9435
9436
9437# Check for command to grab the raw symbol name followed by C symbol from nm.
9438{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441  echo $ECHO_N "(cached) $ECHO_C" >&6
9442else
9443
9444# These are sane defaults that work on at least a few old systems.
9445# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9446
9447# Character class describing NM global symbol codes.
9448symcode='[BCDEGRST]'
9449
9450# Regexp to match symbols that can be accessed directly from C.
9451sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9452
9453# Transform an extracted symbol line into a proper C declaration
9454lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9455
9456# Transform an extracted symbol line into symbol name and symbol address
9457lt_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'"
9458
9459# Define system-specific variables.
9460case $host_os in
9461aix*)
9462  symcode='[BCDT]'
9463  ;;
9464cygwin* | mingw* | pw32*)
9465  symcode='[ABCDGISTW]'
9466  ;;
9467hpux*) # Its linker distinguishes data from code symbols
9468  if test "$host_cpu" = ia64; then
9469    symcode='[ABCDEGRST]'
9470  fi
9471  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472  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'"
9473  ;;
9474linux*)
9475  if test "$host_cpu" = ia64; then
9476    symcode='[ABCDGIRSTW]'
9477    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478    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'"
9479  fi
9480  ;;
9481irix* | nonstopux*)
9482  symcode='[BCDEGRST]'
9483  ;;
9484osf*)
9485  symcode='[BCDEGQRST]'
9486  ;;
9487solaris*)
9488  symcode='[BDRT]'
9489  ;;
9490sco3.2v5*)
9491  symcode='[DT]'
9492  ;;
9493sysv4.2uw2*)
9494  symcode='[DT]'
9495  ;;
9496sysv5* | sco5v6* | unixware* | OpenUNIX*)
9497  symcode='[ABDT]'
9498  ;;
9499sysv4)
9500  symcode='[DFNSTU]'
9501  ;;
9502esac
9503
9504# Handle CRLF in mingw tool chain
9505opt_cr=
9506case $build_os in
9507mingw*)
9508  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9509  ;;
9510esac
9511
9512# If we're using GNU nm, then use its standard symbol codes.
9513case `$NM -V 2>&1` in
9514*GNU* | *'with BFD'*)
9515  symcode='[ABCDGIRSTW]' ;;
9516esac
9517
9518# Try without a prefix undercore, then with it.
9519for ac_symprfx in "" "_"; do
9520
9521  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522  symxfrm="\\1 $ac_symprfx\\2 \\2"
9523
9524  # Write the raw and C identifiers.
9525  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9526
9527  # Check to see that the pipe works correctly.
9528  pipe_works=no
9529
9530  rm -f conftest*
9531  cat > conftest.$ac_ext <<EOF
9532#ifdef __cplusplus
9533extern "C" {
9534#endif
9535char nm_test_var;
9536void nm_test_func(){}
9537#ifdef __cplusplus
9538}
9539#endif
9540int main(){nm_test_var='a';nm_test_func();return(0);}
9541EOF
9542
9543  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544  (eval $ac_compile) 2>&5
9545  ac_status=$?
9546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547  (exit $ac_status); }; then
9548    # Now try to grab the symbols.
9549    nlist=conftest.nm
9550    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9552  ac_status=$?
9553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554  (exit $ac_status); } && test -s "$nlist"; then
9555      # Try sorting and uniquifying the output.
9556      if sort "$nlist" | uniq > "$nlist"T; then
9557	mv -f "$nlist"T "$nlist"
9558      else
9559	rm -f "$nlist"T
9560      fi
9561
9562      # Make sure that we snagged all the symbols we need.
9563      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565	  cat <<EOF > conftest.$ac_ext
9566#ifdef __cplusplus
9567extern "C" {
9568#endif
9569
9570EOF
9571	  # Now generate the symbol file.
9572	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9573
9574	  cat <<EOF >> conftest.$ac_ext
9575#if defined (__STDC__) && __STDC__
9576# define lt_ptr_t void *
9577#else
9578# define lt_ptr_t char *
9579# define const
9580#endif
9581
9582/* The mapping between symbol names and symbols. */
9583const struct {
9584  const char *name;
9585  lt_ptr_t address;
9586}
9587lt_preloaded_symbols[] =
9588{
9589EOF
9590	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591	  cat <<\EOF >> conftest.$ac_ext
9592  {0, (lt_ptr_t) 0}
9593};
9594
9595#ifdef __cplusplus
9596}
9597#endif
9598EOF
9599	  # Now try linking the two files.
9600	  mv conftest.$ac_objext conftstm.$ac_objext
9601	  lt_save_LIBS="$LIBS"
9602	  lt_save_CFLAGS="$CFLAGS"
9603	  LIBS="conftstm.$ac_objext"
9604	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606  (eval $ac_link) 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9610	    pipe_works=yes
9611	  fi
9612	  LIBS="$lt_save_LIBS"
9613	  CFLAGS="$lt_save_CFLAGS"
9614	else
9615	  echo "cannot find nm_test_func in $nlist" >&5
9616	fi
9617      else
9618	echo "cannot find nm_test_var in $nlist" >&5
9619      fi
9620    else
9621      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9622    fi
9623  else
9624    echo "$progname: failed program was:" >&5
9625    cat conftest.$ac_ext >&5
9626  fi
9627  rm -f conftest* conftst*
9628
9629  # Do not use the global_symbol_pipe unless it works.
9630  if test "$pipe_works" = yes; then
9631    break
9632  else
9633    lt_cv_sys_global_symbol_pipe=
9634  fi
9635done
9636
9637fi
9638
9639if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640  lt_cv_sys_global_symbol_to_cdecl=
9641fi
9642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643  { echo "$as_me:$LINENO: result: failed" >&5
9644echo "${ECHO_T}failed" >&6; }
9645else
9646  { echo "$as_me:$LINENO: result: ok" >&5
9647echo "${ECHO_T}ok" >&6; }
9648fi
9649
9650
9651{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654  echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657    libltdl_cv_preloaded_symbols=yes
9658  else
9659    libltdl_cv_preloaded_symbols=no
9660  fi
9661
9662fi
9663{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9666
9667cat >>confdefs.h <<\_ACEOF
9668#define HAVE_PRELOADED_SYMBOLS 1
9669_ACEOF
9670
9671fi
9672
9673LIBADD_DL=
9674
9675ac_ext=c
9676ac_cpp='$CPP $CPPFLAGS'
9677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679ac_compiler_gnu=$ac_cv_c_compiler_gnu
9680
9681
9682{ echo "$as_me:$LINENO: checking for shl_load" >&5
9683echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684if test "${ac_cv_func_shl_load+set}" = set; then
9685  echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687  cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h.  */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h.  */
9693/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9695#define shl_load innocuous_shl_load
9696
9697/* System header to define __stub macros and hopefully few prototypes,
9698    which can conflict with char shl_load (); below.
9699    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700    <limits.h> exists even on freestanding compilers.  */
9701
9702#ifdef __STDC__
9703# include <limits.h>
9704#else
9705# include <assert.h>
9706#endif
9707
9708#undef shl_load
9709
9710/* Override any GCC internal prototype to avoid an error.
9711   Use char because int might match the return type of a GCC
9712   builtin and then its argument prototype would still apply.  */
9713#ifdef __cplusplus
9714extern "C"
9715#endif
9716char shl_load ();
9717/* The GNU C library defines this for functions which it implements
9718    to always fail with ENOSYS.  Some functions are actually named
9719    something starting with __ and the normal name is an alias.  */
9720#if defined __stub_shl_load || defined __stub___shl_load
9721choke me
9722#endif
9723
9724int
9725main ()
9726{
9727return shl_load ();
9728  ;
9729  return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736  *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739  (eval "$ac_link") 2>conftest.er1
9740  ac_status=$?
9741  grep -v '^ *+' conftest.er1 >conftest.err
9742  rm -f conftest.er1
9743  cat conftest.err >&5
9744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745  (exit $ac_status); } &&
9746	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747  { (case "(($ac_try" in
9748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749  *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752  (eval "$ac_try") 2>&5
9753  ac_status=$?
9754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755  (exit $ac_status); }; } &&
9756	 { ac_try='test -s conftest$ac_exeext'
9757  { (case "(($ac_try" in
9758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759  *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762  (eval "$ac_try") 2>&5
9763  ac_status=$?
9764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765  (exit $ac_status); }; }; then
9766  ac_cv_func_shl_load=yes
9767else
9768  echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
9771	ac_cv_func_shl_load=no
9772fi
9773
9774rm -f core conftest.err conftest.$ac_objext \
9775      conftest$ac_exeext conftest.$ac_ext
9776fi
9777{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779if test $ac_cv_func_shl_load = yes; then
9780
9781cat >>confdefs.h <<\_ACEOF
9782#define HAVE_SHL_LOAD 1
9783_ACEOF
9784
9785else
9786  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789  echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791  ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldld  $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h.  */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h.  */
9799
9800/* Override any GCC internal prototype to avoid an error.
9801   Use char because int might match the return type of a GCC
9802   builtin and then its argument prototype would still apply.  */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806char shl_load ();
9807int
9808main ()
9809{
9810return shl_load ();
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819  *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822  (eval "$ac_link") 2>conftest.er1
9823  ac_status=$?
9824  grep -v '^ *+' conftest.er1 >conftest.err
9825  rm -f conftest.er1
9826  cat conftest.err >&5
9827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828  (exit $ac_status); } &&
9829	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830  { (case "(($ac_try" in
9831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832  *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835  (eval "$ac_try") 2>&5
9836  ac_status=$?
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); }; } &&
9839	 { ac_try='test -s conftest$ac_exeext'
9840  { (case "(($ac_try" in
9841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842  *) ac_try_echo=$ac_try;;
9843esac
9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845  (eval "$ac_try") 2>&5
9846  ac_status=$?
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); }; }; then
9849  ac_cv_lib_dld_shl_load=yes
9850else
9851  echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854	ac_cv_lib_dld_shl_load=no
9855fi
9856
9857rm -f core conftest.err conftest.$ac_objext \
9858      conftest$ac_exeext conftest.$ac_ext
9859LIBS=$ac_check_lib_save_LIBS
9860fi
9861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863if test $ac_cv_lib_dld_shl_load = yes; then
9864
9865cat >>confdefs.h <<\_ACEOF
9866#define HAVE_SHL_LOAD 1
9867_ACEOF
9868
9869	LIBADD_DL="$LIBADD_DL -ldld"
9870else
9871  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874  echo $ECHO_N "(cached) $ECHO_C" >&6
9875else
9876  ac_check_lib_save_LIBS=$LIBS
9877LIBS="-ldl  $LIBS"
9878cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h.  */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h.  */
9884
9885/* Override any GCC internal prototype to avoid an error.
9886   Use char because int might match the return type of a GCC
9887   builtin and then its argument prototype would still apply.  */
9888#ifdef __cplusplus
9889extern "C"
9890#endif
9891char dlopen ();
9892int
9893main ()
9894{
9895return dlopen ();
9896  ;
9897  return 0;
9898}
9899_ACEOF
9900rm -f conftest.$ac_objext conftest$ac_exeext
9901if { (ac_try="$ac_link"
9902case "(($ac_try" in
9903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904  *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907  (eval "$ac_link") 2>conftest.er1
9908  ac_status=$?
9909  grep -v '^ *+' conftest.er1 >conftest.err
9910  rm -f conftest.er1
9911  cat conftest.err >&5
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } &&
9914	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915  { (case "(($ac_try" in
9916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917  *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920  (eval "$ac_try") 2>&5
9921  ac_status=$?
9922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); }; } &&
9924	 { ac_try='test -s conftest$ac_exeext'
9925  { (case "(($ac_try" in
9926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927  *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930  (eval "$ac_try") 2>&5
9931  ac_status=$?
9932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); }; }; then
9934  ac_cv_lib_dl_dlopen=yes
9935else
9936  echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939	ac_cv_lib_dl_dlopen=no
9940fi
9941
9942rm -f core conftest.err conftest.$ac_objext \
9943      conftest$ac_exeext conftest.$ac_ext
9944LIBS=$ac_check_lib_save_LIBS
9945fi
9946{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948if test $ac_cv_lib_dl_dlopen = yes; then
9949
9950cat >>confdefs.h <<\_ACEOF
9951#define HAVE_LIBDL 1
9952_ACEOF
9953
9954	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9955else
9956  cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h.  */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h.  */
9962#if HAVE_DLFCN_H
9963#  include <dlfcn.h>
9964#endif
9965
9966int
9967main ()
9968{
9969dlopen(0, 0);
9970  ;
9971  return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978  *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981  (eval "$ac_link") 2>conftest.er1
9982  ac_status=$?
9983  grep -v '^ *+' conftest.er1 >conftest.err
9984  rm -f conftest.er1
9985  cat conftest.err >&5
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); } &&
9988	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989  { (case "(($ac_try" in
9990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991  *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994  (eval "$ac_try") 2>&5
9995  ac_status=$?
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); }; } &&
9998	 { ac_try='test -s conftest$ac_exeext'
9999  { (case "(($ac_try" in
10000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001  *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004  (eval "$ac_try") 2>&5
10005  ac_status=$?
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); }; }; then
10008
10009cat >>confdefs.h <<\_ACEOF
10010#define HAVE_LIBDL 1
10011_ACEOF
10012 libltdl_cv_func_dlopen="yes"
10013else
10014  echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020  echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022  ac_check_lib_save_LIBS=$LIBS
10023LIBS="-lsvld  $LIBS"
10024cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h.  */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h.  */
10030
10031/* Override any GCC internal prototype to avoid an error.
10032   Use char because int might match the return type of a GCC
10033   builtin and then its argument prototype would still apply.  */
10034#ifdef __cplusplus
10035extern "C"
10036#endif
10037char dlopen ();
10038int
10039main ()
10040{
10041return dlopen ();
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (ac_try="$ac_link"
10048case "(($ac_try" in
10049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050  *) ac_try_echo=$ac_try;;
10051esac
10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053  (eval "$ac_link") 2>conftest.er1
10054  ac_status=$?
10055  grep -v '^ *+' conftest.er1 >conftest.err
10056  rm -f conftest.er1
10057  cat conftest.err >&5
10058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059  (exit $ac_status); } &&
10060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061  { (case "(($ac_try" in
10062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063  *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066  (eval "$ac_try") 2>&5
10067  ac_status=$?
10068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069  (exit $ac_status); }; } &&
10070	 { ac_try='test -s conftest$ac_exeext'
10071  { (case "(($ac_try" in
10072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073  *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076  (eval "$ac_try") 2>&5
10077  ac_status=$?
10078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); }; }; then
10080  ac_cv_lib_svld_dlopen=yes
10081else
10082  echo "$as_me: failed program was:" >&5
10083sed 's/^/| /' conftest.$ac_ext >&5
10084
10085	ac_cv_lib_svld_dlopen=no
10086fi
10087
10088rm -f core conftest.err conftest.$ac_objext \
10089      conftest$ac_exeext conftest.$ac_ext
10090LIBS=$ac_check_lib_save_LIBS
10091fi
10092{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094if test $ac_cv_lib_svld_dlopen = yes; then
10095
10096cat >>confdefs.h <<\_ACEOF
10097#define HAVE_LIBDL 1
10098_ACEOF
10099
10100	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10101else
10102  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105  echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107  ac_check_lib_save_LIBS=$LIBS
10108LIBS="-ldld  $LIBS"
10109cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h.  */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h.  */
10115
10116/* Override any GCC internal prototype to avoid an error.
10117   Use char because int might match the return type of a GCC
10118   builtin and then its argument prototype would still apply.  */
10119#ifdef __cplusplus
10120extern "C"
10121#endif
10122char dld_link ();
10123int
10124main ()
10125{
10126return dld_link ();
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext conftest$ac_exeext
10132if { (ac_try="$ac_link"
10133case "(($ac_try" in
10134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135  *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138  (eval "$ac_link") 2>conftest.er1
10139  ac_status=$?
10140  grep -v '^ *+' conftest.er1 >conftest.err
10141  rm -f conftest.er1
10142  cat conftest.err >&5
10143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144  (exit $ac_status); } &&
10145	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146  { (case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_try") 2>&5
10152  ac_status=$?
10153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154  (exit $ac_status); }; } &&
10155	 { ac_try='test -s conftest$ac_exeext'
10156  { (case "(($ac_try" in
10157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158  *) ac_try_echo=$ac_try;;
10159esac
10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161  (eval "$ac_try") 2>&5
10162  ac_status=$?
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); }; }; then
10165  ac_cv_lib_dld_dld_link=yes
10166else
10167  echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170	ac_cv_lib_dld_dld_link=no
10171fi
10172
10173rm -f core conftest.err conftest.$ac_objext \
10174      conftest$ac_exeext conftest.$ac_ext
10175LIBS=$ac_check_lib_save_LIBS
10176fi
10177{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179if test $ac_cv_lib_dld_dld_link = yes; then
10180
10181cat >>confdefs.h <<\_ACEOF
10182#define HAVE_DLD 1
10183_ACEOF
10184
10185	 	LIBADD_DL="$LIBADD_DL -ldld"
10186else
10187  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190  echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192  cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h.  */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h.  */
10198/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10200#define _dyld_func_lookup innocuous__dyld_func_lookup
10201
10202/* System header to define __stub macros and hopefully few prototypes,
10203    which can conflict with char _dyld_func_lookup (); below.
10204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205    <limits.h> exists even on freestanding compilers.  */
10206
10207#ifdef __STDC__
10208# include <limits.h>
10209#else
10210# include <assert.h>
10211#endif
10212
10213#undef _dyld_func_lookup
10214
10215/* Override any GCC internal prototype to avoid an error.
10216   Use char because int might match the return type of a GCC
10217   builtin and then its argument prototype would still apply.  */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221char _dyld_func_lookup ();
10222/* The GNU C library defines this for functions which it implements
10223    to always fail with ENOSYS.  Some functions are actually named
10224    something starting with __ and the normal name is an alias.  */
10225#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10226choke me
10227#endif
10228
10229int
10230main ()
10231{
10232return _dyld_func_lookup ();
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext conftest$ac_exeext
10238if { (ac_try="$ac_link"
10239case "(($ac_try" in
10240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241  *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244  (eval "$ac_link") 2>conftest.er1
10245  ac_status=$?
10246  grep -v '^ *+' conftest.er1 >conftest.err
10247  rm -f conftest.er1
10248  cat conftest.err >&5
10249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250  (exit $ac_status); } &&
10251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252  { (case "(($ac_try" in
10253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254  *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257  (eval "$ac_try") 2>&5
10258  ac_status=$?
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); }; } &&
10261	 { ac_try='test -s conftest$ac_exeext'
10262  { (case "(($ac_try" in
10263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264  *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267  (eval "$ac_try") 2>&5
10268  ac_status=$?
10269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270  (exit $ac_status); }; }; then
10271  ac_cv_func__dyld_func_lookup=yes
10272else
10273  echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276	ac_cv_func__dyld_func_lookup=no
10277fi
10278
10279rm -f core conftest.err conftest.$ac_objext \
10280      conftest$ac_exeext conftest.$ac_ext
10281fi
10282{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284if test $ac_cv_func__dyld_func_lookup = yes; then
10285
10286cat >>confdefs.h <<\_ACEOF
10287#define HAVE_DYLD 1
10288_ACEOF
10289
10290fi
10291
10292
10293fi
10294
10295
10296fi
10297
10298
10299fi
10300
10301rm -f core conftest.err conftest.$ac_objext \
10302      conftest$ac_exeext conftest.$ac_ext
10303
10304fi
10305
10306
10307fi
10308
10309
10310fi
10311
10312
10313if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10314then
10315  lt_save_LIBS="$LIBS"
10316  LIBS="$LIBS $LIBADD_DL"
10317
10318for ac_func in dlerror
10319do
10320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324  echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326  cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334#define $ac_func innocuous_$ac_func
10335
10336/* System header to define __stub macros and hopefully few prototypes,
10337    which can conflict with char $ac_func (); below.
10338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339    <limits.h> exists even on freestanding compilers.  */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef $ac_func
10348
10349/* Override any GCC internal prototype to avoid an error.
10350   Use char because int might match the return type of a GCC
10351   builtin and then its argument prototype would still apply.  */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char $ac_func ();
10356/* The GNU C library defines this for functions which it implements
10357    to always fail with ENOSYS.  Some functions are actually named
10358    something starting with __ and the normal name is an alias.  */
10359#if defined __stub_$ac_func || defined __stub___$ac_func
10360choke me
10361#endif
10362
10363int
10364main ()
10365{
10366return $ac_func ();
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375  *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378  (eval "$ac_link") 2>conftest.er1
10379  ac_status=$?
10380  grep -v '^ *+' conftest.er1 >conftest.err
10381  rm -f conftest.er1
10382  cat conftest.err >&5
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); } &&
10385	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386  { (case "(($ac_try" in
10387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388  *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391  (eval "$ac_try") 2>&5
10392  ac_status=$?
10393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394  (exit $ac_status); }; } &&
10395	 { ac_try='test -s conftest$ac_exeext'
10396  { (case "(($ac_try" in
10397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398  *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401  (eval "$ac_try") 2>&5
10402  ac_status=$?
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); }; }; then
10405  eval "$as_ac_var=yes"
10406else
10407  echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410	eval "$as_ac_var=no"
10411fi
10412
10413rm -f core conftest.err conftest.$ac_objext \
10414      conftest$ac_exeext conftest.$ac_ext
10415fi
10416ac_res=`eval echo '${'$as_ac_var'}'`
10417	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10418echo "${ECHO_T}$ac_res" >&6; }
10419if test `eval echo '${'$as_ac_var'}'` = yes; then
10420  cat >>confdefs.h <<_ACEOF
10421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10422_ACEOF
10423
10424fi
10425done
10426
10427  LIBS="$lt_save_LIBS"
10428fi
10429ac_ext=c
10430ac_cpp='$CPP $CPPFLAGS'
10431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
10435
10436
10437{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440  echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442  ac_cv_sys_symbol_underscore=no
10443  cat > conftest.$ac_ext <<EOF
10444void nm_test_func(){}
10445int main(){nm_test_func;return 0;}
10446EOF
10447  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448  (eval $ac_compile) 2>&5
10449  ac_status=$?
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); }; then
10452    # Now try to grab the symbols.
10453    ac_nlist=conftest.nm
10454    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } && test -s "$ac_nlist"; then
10459      # See whether the symbols have a leading underscore.
10460      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461        ac_cv_sys_symbol_underscore=yes
10462      else
10463        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10464	  :
10465        else
10466	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10467        fi
10468      fi
10469    else
10470      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10471    fi
10472  else
10473    echo "configure: failed program was:" >&5
10474    cat conftest.c >&5
10475  fi
10476  rm -rf conftest*
10477
10478fi
10479{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10481
10482
10483if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484  if test x"$libltdl_cv_func_dlopen" = xyes ||
10485     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488if test "${libltdl_cv_need_uscore+set}" = set; then
10489  echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491  libltdl_cv_need_uscore=unknown
10492          save_LIBS="$LIBS"
10493          LIBS="$LIBS $LIBADD_DL"
10494	  if test "$cross_compiling" = yes; then :
10495  libltdl_cv_need_uscore=cross
10496else
10497  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498  lt_status=$lt_dlunknown
10499  cat > conftest.$ac_ext <<EOF
10500#line 10500 "configure"
10501#include "confdefs.h"
10502
10503#if HAVE_DLFCN_H
10504#include <dlfcn.h>
10505#endif
10506
10507#include <stdio.h>
10508
10509#ifdef RTLD_GLOBAL
10510#  define LT_DLGLOBAL		RTLD_GLOBAL
10511#else
10512#  ifdef DL_GLOBAL
10513#    define LT_DLGLOBAL		DL_GLOBAL
10514#  else
10515#    define LT_DLGLOBAL		0
10516#  endif
10517#endif
10518
10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520   find out it does not work in some platform. */
10521#ifndef LT_DLLAZY_OR_NOW
10522#  ifdef RTLD_LAZY
10523#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10524#  else
10525#    ifdef DL_LAZY
10526#      define LT_DLLAZY_OR_NOW		DL_LAZY
10527#    else
10528#      ifdef RTLD_NOW
10529#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10530#      else
10531#        ifdef DL_NOW
10532#          define LT_DLLAZY_OR_NOW	DL_NOW
10533#        else
10534#          define LT_DLLAZY_OR_NOW	0
10535#        endif
10536#      endif
10537#    endif
10538#  endif
10539#endif
10540
10541#ifdef __cplusplus
10542extern "C" void exit (int);
10543#endif
10544
10545void fnord() { int i=42;}
10546int main ()
10547{
10548  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549  int status = $lt_dlunknown;
10550
10551  if (self)
10552    {
10553      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10554      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555      /* dlclose (self); */
10556    }
10557  else
10558    puts (dlerror ());
10559
10560    exit (status);
10561}
10562EOF
10563  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568    (./conftest; exit; ) >&5 2>/dev/null
10569    lt_status=$?
10570    case x$lt_status in
10571      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573      x$lt_dlunknown|x*)  ;;
10574    esac
10575  else :
10576    # compilation failed
10577
10578  fi
10579fi
10580rm -fr conftest*
10581
10582	  LIBS="$save_LIBS"
10583
10584fi
10585{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10587  fi
10588fi
10589
10590if test x"$libltdl_cv_need_uscore" = xyes; then
10591
10592cat >>confdefs.h <<\_ACEOF
10593#define NEED_USCORE 1
10594_ACEOF
10595
10596fi
10597
10598
10599{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602  echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604  # PORTME does your system automatically load deplibs for dlopen?
10605  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606  # For now, we just catch OSes we know something about -- in the
10607  # future, we'll try test this programmatically.
10608  libltdl_cv_sys_dlopen_deplibs=unknown
10609  case "$host_os" in
10610  aix3*|aix4.1.*|aix4.2.*)
10611    # Unknown whether this is true for these versions of AIX, but
10612    # we want this `case' here to explicitly catch those versions.
10613    libltdl_cv_sys_dlopen_deplibs=unknown
10614    ;;
10615  aix[45]*)
10616    libltdl_cv_sys_dlopen_deplibs=yes
10617    ;;
10618  darwin*)
10619    # Assuming the user has installed a libdl from somewhere, this is true
10620    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621    libltdl_cv_sys_dlopen_deplibs=yes
10622    ;;
10623  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624    # GNU and its variants, using gnu ld.so (Glibc)
10625    libltdl_cv_sys_dlopen_deplibs=yes
10626    ;;
10627  hpux10*|hpux11*)
10628    libltdl_cv_sys_dlopen_deplibs=yes
10629    ;;
10630  interix*)
10631    libltdl_cv_sys_dlopen_deplibs=yes
10632    ;;
10633  irix[12345]*|irix6.[01]*)
10634    # Catch all versions of IRIX before 6.2, and indicate that we don't
10635    # know how it worked for any of those versions.
10636    libltdl_cv_sys_dlopen_deplibs=unknown
10637    ;;
10638  irix*)
10639    # The case above catches anything before 6.2, and it's known that
10640    # at 6.2 and later dlopen does load deplibs.
10641    libltdl_cv_sys_dlopen_deplibs=yes
10642    ;;
10643  netbsd*)
10644    libltdl_cv_sys_dlopen_deplibs=yes
10645    ;;
10646  openbsd*)
10647    libltdl_cv_sys_dlopen_deplibs=yes
10648    ;;
10649  osf[1234]*)
10650    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651    # it did *not* use an RPATH in a shared library to find objects the
10652    # library depends on, so we explicitly say `no'.
10653    libltdl_cv_sys_dlopen_deplibs=no
10654    ;;
10655  osf5.0|osf5.0a|osf5.1)
10656    # dlopen *does* load deplibs and with the right loader patch applied
10657    # it even uses RPATH in a shared library to search for shared objects
10658    # that the library depends on, but there's no easy way to know if that
10659    # patch is installed.  Since this is the case, all we can really
10660    # say is unknown -- it depends on the patch being installed.  If
10661    # it is, this changes to `yes'.  Without it, it would be `no'.
10662    libltdl_cv_sys_dlopen_deplibs=unknown
10663    ;;
10664  osf*)
10665    # the two cases above should catch all versions of osf <= 5.1.  Read
10666    # the comments above for what we know about them.
10667    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668    # is used to find them so we can finally say `yes'.
10669    libltdl_cv_sys_dlopen_deplibs=yes
10670    ;;
10671  solaris*)
10672    libltdl_cv_sys_dlopen_deplibs=yes
10673    ;;
10674  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675    libltdl_cv_sys_dlopen_deplibs=yes
10676    ;;
10677  esac
10678
10679fi
10680{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10683
10684cat >>confdefs.h <<\_ACEOF
10685#define LTDL_DLOPEN_DEPLIBS 1
10686_ACEOF
10687
10688fi
10689
10690
10691for ac_header in argz.h
10692do
10693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698  echo $ECHO_N "(cached) $ECHO_C" >&6
10699fi
10700ac_res=`eval echo '${'$as_ac_Header'}'`
10701	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10702echo "${ECHO_T}$ac_res" >&6; }
10703else
10704  # Is the header compilable?
10705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707cat >conftest.$ac_ext <<_ACEOF
10708/* confdefs.h.  */
10709_ACEOF
10710cat confdefs.h >>conftest.$ac_ext
10711cat >>conftest.$ac_ext <<_ACEOF
10712/* end confdefs.h.  */
10713$ac_includes_default
10714#include <$ac_header>
10715_ACEOF
10716rm -f conftest.$ac_objext
10717if { (ac_try="$ac_compile"
10718case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723  (eval "$ac_compile") 2>conftest.er1
10724  ac_status=$?
10725  grep -v '^ *+' conftest.er1 >conftest.err
10726  rm -f conftest.er1
10727  cat conftest.err >&5
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); } &&
10730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731  { (case "(($ac_try" in
10732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733  *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736  (eval "$ac_try") 2>&5
10737  ac_status=$?
10738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739  (exit $ac_status); }; } &&
10740	 { ac_try='test -s conftest.$ac_objext'
10741  { (case "(($ac_try" in
10742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743  *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746  (eval "$ac_try") 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); }; }; then
10750  ac_header_compiler=yes
10751else
10752  echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
10755	ac_header_compiler=no
10756fi
10757
10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760echo "${ECHO_T}$ac_header_compiler" >&6; }
10761
10762# Is the header present?
10763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h.  */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h.  */
10771#include <$ac_header>
10772_ACEOF
10773if { (ac_try="$ac_cpp conftest.$ac_ext"
10774case "(($ac_try" in
10775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776  *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780  ac_status=$?
10781  grep -v '^ *+' conftest.er1 >conftest.err
10782  rm -f conftest.er1
10783  cat conftest.err >&5
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); } >/dev/null; then
10786  if test -s conftest.err; then
10787    ac_cpp_err=$ac_c_preproc_warn_flag
10788    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789  else
10790    ac_cpp_err=
10791  fi
10792else
10793  ac_cpp_err=yes
10794fi
10795if test -z "$ac_cpp_err"; then
10796  ac_header_preproc=yes
10797else
10798  echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
10801  ac_header_preproc=no
10802fi
10803
10804rm -f conftest.err conftest.$ac_ext
10805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806echo "${ECHO_T}$ac_header_preproc" >&6; }
10807
10808# So?  What about this header?
10809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810  yes:no: )
10811    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815    ac_header_preproc=yes
10816    ;;
10817  no:yes:* )
10818    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10821echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10822    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10825echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10826    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10830    ( cat <<\_ASBOX
10831## ------------------------------------ ##
10832## Report this to http://llvm.org/bugs/ ##
10833## ------------------------------------ ##
10834_ASBOX
10835     ) | sed "s/^/$as_me: WARNING:     /" >&2
10836    ;;
10837esac
10838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841  echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843  eval "$as_ac_Header=\$ac_header_preproc"
10844fi
10845ac_res=`eval echo '${'$as_ac_Header'}'`
10846	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10847echo "${ECHO_T}$ac_res" >&6; }
10848
10849fi
10850if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851  cat >>confdefs.h <<_ACEOF
10852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853_ACEOF
10854
10855fi
10856
10857done
10858
10859
10860{ echo "$as_me:$LINENO: checking for error_t" >&5
10861echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862if test "${ac_cv_type_error_t+set}" = set; then
10863  echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865  cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h.  */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h.  */
10871#if HAVE_ARGZ_H
10872#  include <argz.h>
10873#endif
10874
10875typedef error_t ac__type_new_;
10876int
10877main ()
10878{
10879if ((ac__type_new_ *) 0)
10880  return 0;
10881if (sizeof (ac__type_new_))
10882  return 0;
10883  ;
10884  return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext
10888if { (ac_try="$ac_compile"
10889case "(($ac_try" in
10890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891  *) ac_try_echo=$ac_try;;
10892esac
10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894  (eval "$ac_compile") 2>conftest.er1
10895  ac_status=$?
10896  grep -v '^ *+' conftest.er1 >conftest.err
10897  rm -f conftest.er1
10898  cat conftest.err >&5
10899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900  (exit $ac_status); } &&
10901	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902  { (case "(($ac_try" in
10903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904  *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907  (eval "$ac_try") 2>&5
10908  ac_status=$?
10909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910  (exit $ac_status); }; } &&
10911	 { ac_try='test -s conftest.$ac_objext'
10912  { (case "(($ac_try" in
10913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914  *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917  (eval "$ac_try") 2>&5
10918  ac_status=$?
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); }; }; then
10921  ac_cv_type_error_t=yes
10922else
10923  echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
10926	ac_cv_type_error_t=no
10927fi
10928
10929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930fi
10931{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933if test $ac_cv_type_error_t = yes; then
10934
10935cat >>confdefs.h <<_ACEOF
10936#define HAVE_ERROR_T 1
10937_ACEOF
10938
10939
10940else
10941
10942cat >>confdefs.h <<\_ACEOF
10943#define error_t int
10944_ACEOF
10945
10946fi
10947
10948
10949
10950
10951
10952
10953
10954for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10955do
10956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960  echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962  cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h.  */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h.  */
10968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10970#define $ac_func innocuous_$ac_func
10971
10972/* System header to define __stub macros and hopefully few prototypes,
10973    which can conflict with char $ac_func (); below.
10974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975    <limits.h> exists even on freestanding compilers.  */
10976
10977#ifdef __STDC__
10978# include <limits.h>
10979#else
10980# include <assert.h>
10981#endif
10982
10983#undef $ac_func
10984
10985/* Override any GCC internal prototype to avoid an error.
10986   Use char because int might match the return type of a GCC
10987   builtin and then its argument prototype would still apply.  */
10988#ifdef __cplusplus
10989extern "C"
10990#endif
10991char $ac_func ();
10992/* The GNU C library defines this for functions which it implements
10993    to always fail with ENOSYS.  Some functions are actually named
10994    something starting with __ and the normal name is an alias.  */
10995#if defined __stub_$ac_func || defined __stub___$ac_func
10996choke me
10997#endif
10998
10999int
11000main ()
11001{
11002return $ac_func ();
11003  ;
11004  return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext conftest$ac_exeext
11008if { (ac_try="$ac_link"
11009case "(($ac_try" in
11010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011  *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014  (eval "$ac_link") 2>conftest.er1
11015  ac_status=$?
11016  grep -v '^ *+' conftest.er1 >conftest.err
11017  rm -f conftest.er1
11018  cat conftest.err >&5
11019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020  (exit $ac_status); } &&
11021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022  { (case "(($ac_try" in
11023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024  *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027  (eval "$ac_try") 2>&5
11028  ac_status=$?
11029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030  (exit $ac_status); }; } &&
11031	 { ac_try='test -s conftest$ac_exeext'
11032  { (case "(($ac_try" in
11033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034  *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037  (eval "$ac_try") 2>&5
11038  ac_status=$?
11039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040  (exit $ac_status); }; }; then
11041  eval "$as_ac_var=yes"
11042else
11043  echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046	eval "$as_ac_var=no"
11047fi
11048
11049rm -f core conftest.err conftest.$ac_objext \
11050      conftest$ac_exeext conftest.$ac_ext
11051fi
11052ac_res=`eval echo '${'$as_ac_var'}'`
11053	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11054echo "${ECHO_T}$ac_res" >&6; }
11055if test `eval echo '${'$as_ac_var'}'` = yes; then
11056  cat >>confdefs.h <<_ACEOF
11057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058_ACEOF
11059
11060fi
11061done
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11091		  stdio.h unistd.h
11092do
11093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098  echo $ECHO_N "(cached) $ECHO_C" >&6
11099fi
11100ac_res=`eval echo '${'$as_ac_Header'}'`
11101	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11102echo "${ECHO_T}$ac_res" >&6; }
11103else
11104  # Is the header compilable?
11105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h.  */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h.  */
11113$ac_includes_default
11114#include <$ac_header>
11115_ACEOF
11116rm -f conftest.$ac_objext
11117if { (ac_try="$ac_compile"
11118case "(($ac_try" in
11119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120  *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123  (eval "$ac_compile") 2>conftest.er1
11124  ac_status=$?
11125  grep -v '^ *+' conftest.er1 >conftest.err
11126  rm -f conftest.er1
11127  cat conftest.err >&5
11128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129  (exit $ac_status); } &&
11130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131  { (case "(($ac_try" in
11132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133  *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136  (eval "$ac_try") 2>&5
11137  ac_status=$?
11138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139  (exit $ac_status); }; } &&
11140	 { ac_try='test -s conftest.$ac_objext'
11141  { (case "(($ac_try" in
11142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143  *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146  (eval "$ac_try") 2>&5
11147  ac_status=$?
11148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149  (exit $ac_status); }; }; then
11150  ac_header_compiler=yes
11151else
11152  echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155	ac_header_compiler=no
11156fi
11157
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162# Is the header present?
11163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h.  */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h.  */
11171#include <$ac_header>
11172_ACEOF
11173if { (ac_try="$ac_cpp conftest.$ac_ext"
11174case "(($ac_try" in
11175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176  *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180  ac_status=$?
11181  grep -v '^ *+' conftest.er1 >conftest.err
11182  rm -f conftest.er1
11183  cat conftest.err >&5
11184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185  (exit $ac_status); } >/dev/null; then
11186  if test -s conftest.err; then
11187    ac_cpp_err=$ac_c_preproc_warn_flag
11188    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189  else
11190    ac_cpp_err=
11191  fi
11192else
11193  ac_cpp_err=yes
11194fi
11195if test -z "$ac_cpp_err"; then
11196  ac_header_preproc=yes
11197else
11198  echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
11201  ac_header_preproc=no
11202fi
11203
11204rm -f conftest.err conftest.$ac_ext
11205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208# So?  What about this header?
11209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210  yes:no: )
11211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215    ac_header_preproc=yes
11216    ;;
11217  no:yes:* )
11218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230    ( cat <<\_ASBOX
11231## ------------------------------------ ##
11232## Report this to http://llvm.org/bugs/ ##
11233## ------------------------------------ ##
11234_ASBOX
11235     ) | sed "s/^/$as_me: WARNING:     /" >&2
11236    ;;
11237esac
11238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241  echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243  eval "$as_ac_Header=\$ac_header_preproc"
11244fi
11245ac_res=`eval echo '${'$as_ac_Header'}'`
11246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11247echo "${ECHO_T}$ac_res" >&6; }
11248
11249fi
11250if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251  cat >>confdefs.h <<_ACEOF
11252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253_ACEOF
11254
11255fi
11256
11257done
11258
11259
11260
11261
11262
11263for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11264do
11265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270  echo $ECHO_N "(cached) $ECHO_C" >&6
11271fi
11272ac_res=`eval echo '${'$as_ac_Header'}'`
11273	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11274echo "${ECHO_T}$ac_res" >&6; }
11275else
11276  # Is the header compilable?
11277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h.  */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h.  */
11285$ac_includes_default
11286#include <$ac_header>
11287_ACEOF
11288rm -f conftest.$ac_objext
11289if { (ac_try="$ac_compile"
11290case "(($ac_try" in
11291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292  *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295  (eval "$ac_compile") 2>conftest.er1
11296  ac_status=$?
11297  grep -v '^ *+' conftest.er1 >conftest.err
11298  rm -f conftest.er1
11299  cat conftest.err >&5
11300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301  (exit $ac_status); } &&
11302	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303  { (case "(($ac_try" in
11304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305  *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308  (eval "$ac_try") 2>&5
11309  ac_status=$?
11310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); }; } &&
11312	 { ac_try='test -s conftest.$ac_objext'
11313  { (case "(($ac_try" in
11314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315  *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318  (eval "$ac_try") 2>&5
11319  ac_status=$?
11320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); }; }; then
11322  ac_header_compiler=yes
11323else
11324  echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327	ac_header_compiler=no
11328fi
11329
11330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332echo "${ECHO_T}$ac_header_compiler" >&6; }
11333
11334# Is the header present?
11335{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h.  */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h.  */
11343#include <$ac_header>
11344_ACEOF
11345if { (ac_try="$ac_cpp conftest.$ac_ext"
11346case "(($ac_try" in
11347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348  *) ac_try_echo=$ac_try;;
11349esac
11350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352  ac_status=$?
11353  grep -v '^ *+' conftest.er1 >conftest.err
11354  rm -f conftest.er1
11355  cat conftest.err >&5
11356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357  (exit $ac_status); } >/dev/null; then
11358  if test -s conftest.err; then
11359    ac_cpp_err=$ac_c_preproc_warn_flag
11360    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361  else
11362    ac_cpp_err=
11363  fi
11364else
11365  ac_cpp_err=yes
11366fi
11367if test -z "$ac_cpp_err"; then
11368  ac_header_preproc=yes
11369else
11370  echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373  ac_header_preproc=no
11374fi
11375
11376rm -f conftest.err conftest.$ac_ext
11377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378echo "${ECHO_T}$ac_header_preproc" >&6; }
11379
11380# So?  What about this header?
11381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382  yes:no: )
11383    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387    ac_header_preproc=yes
11388    ;;
11389  no:yes:* )
11390    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11393echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11394    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11397echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11398    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402    ( cat <<\_ASBOX
11403## ------------------------------------ ##
11404## Report this to http://llvm.org/bugs/ ##
11405## ------------------------------------ ##
11406_ASBOX
11407     ) | sed "s/^/$as_me: WARNING:     /" >&2
11408    ;;
11409esac
11410{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413  echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415  eval "$as_ac_Header=\$ac_header_preproc"
11416fi
11417ac_res=`eval echo '${'$as_ac_Header'}'`
11418	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
11420
11421fi
11422if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423  cat >>confdefs.h <<_ACEOF
11424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425_ACEOF
11426
11427fi
11428
11429done
11430
11431
11432
11433for ac_header in string.h strings.h
11434do
11435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440  echo $ECHO_N "(cached) $ECHO_C" >&6
11441fi
11442ac_res=`eval echo '${'$as_ac_Header'}'`
11443	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11444echo "${ECHO_T}$ac_res" >&6; }
11445else
11446  # Is the header compilable?
11447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h.  */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h.  */
11455$ac_includes_default
11456#include <$ac_header>
11457_ACEOF
11458rm -f conftest.$ac_objext
11459if { (ac_try="$ac_compile"
11460case "(($ac_try" in
11461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462  *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465  (eval "$ac_compile") 2>conftest.er1
11466  ac_status=$?
11467  grep -v '^ *+' conftest.er1 >conftest.err
11468  rm -f conftest.er1
11469  cat conftest.err >&5
11470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471  (exit $ac_status); } &&
11472	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473  { (case "(($ac_try" in
11474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475  *) ac_try_echo=$ac_try;;
11476esac
11477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478  (eval "$ac_try") 2>&5
11479  ac_status=$?
11480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481  (exit $ac_status); }; } &&
11482	 { ac_try='test -s conftest.$ac_objext'
11483  { (case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488  (eval "$ac_try") 2>&5
11489  ac_status=$?
11490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491  (exit $ac_status); }; }; then
11492  ac_header_compiler=yes
11493else
11494  echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497	ac_header_compiler=no
11498fi
11499
11500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502echo "${ECHO_T}$ac_header_compiler" >&6; }
11503
11504# Is the header present?
11505{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h.  */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h.  */
11513#include <$ac_header>
11514_ACEOF
11515if { (ac_try="$ac_cpp conftest.$ac_ext"
11516case "(($ac_try" in
11517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518  *) ac_try_echo=$ac_try;;
11519esac
11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522  ac_status=$?
11523  grep -v '^ *+' conftest.er1 >conftest.err
11524  rm -f conftest.er1
11525  cat conftest.err >&5
11526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527  (exit $ac_status); } >/dev/null; then
11528  if test -s conftest.err; then
11529    ac_cpp_err=$ac_c_preproc_warn_flag
11530    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531  else
11532    ac_cpp_err=
11533  fi
11534else
11535  ac_cpp_err=yes
11536fi
11537if test -z "$ac_cpp_err"; then
11538  ac_header_preproc=yes
11539else
11540  echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543  ac_header_preproc=no
11544fi
11545
11546rm -f conftest.err conftest.$ac_ext
11547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548echo "${ECHO_T}$ac_header_preproc" >&6; }
11549
11550# So?  What about this header?
11551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552  yes:no: )
11553    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557    ac_header_preproc=yes
11558    ;;
11559  no:yes:* )
11560    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11563echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11564    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11567echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572    ( cat <<\_ASBOX
11573## ------------------------------------ ##
11574## Report this to http://llvm.org/bugs/ ##
11575## ------------------------------------ ##
11576_ASBOX
11577     ) | sed "s/^/$as_me: WARNING:     /" >&2
11578    ;;
11579esac
11580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583  echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585  eval "$as_ac_Header=\$ac_header_preproc"
11586fi
11587ac_res=`eval echo '${'$as_ac_Header'}'`
11588	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11589echo "${ECHO_T}$ac_res" >&6; }
11590
11591fi
11592if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593  cat >>confdefs.h <<_ACEOF
11594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11595_ACEOF
11596 break
11597fi
11598
11599done
11600
11601
11602
11603
11604for ac_func in strchr index
11605do
11606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610  echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612  cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h.  */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h.  */
11618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11620#define $ac_func innocuous_$ac_func
11621
11622/* System header to define __stub macros and hopefully few prototypes,
11623    which can conflict with char $ac_func (); below.
11624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625    <limits.h> exists even on freestanding compilers.  */
11626
11627#ifdef __STDC__
11628# include <limits.h>
11629#else
11630# include <assert.h>
11631#endif
11632
11633#undef $ac_func
11634
11635/* Override any GCC internal prototype to avoid an error.
11636   Use char because int might match the return type of a GCC
11637   builtin and then its argument prototype would still apply.  */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641char $ac_func ();
11642/* The GNU C library defines this for functions which it implements
11643    to always fail with ENOSYS.  Some functions are actually named
11644    something starting with __ and the normal name is an alias.  */
11645#if defined __stub_$ac_func || defined __stub___$ac_func
11646choke me
11647#endif
11648
11649int
11650main ()
11651{
11652return $ac_func ();
11653  ;
11654  return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext conftest$ac_exeext
11658if { (ac_try="$ac_link"
11659case "(($ac_try" in
11660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661  *) ac_try_echo=$ac_try;;
11662esac
11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664  (eval "$ac_link") 2>conftest.er1
11665  ac_status=$?
11666  grep -v '^ *+' conftest.er1 >conftest.err
11667  rm -f conftest.er1
11668  cat conftest.err >&5
11669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670  (exit $ac_status); } &&
11671	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672  { (case "(($ac_try" in
11673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674  *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677  (eval "$ac_try") 2>&5
11678  ac_status=$?
11679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680  (exit $ac_status); }; } &&
11681	 { ac_try='test -s conftest$ac_exeext'
11682  { (case "(($ac_try" in
11683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684  *) ac_try_echo=$ac_try;;
11685esac
11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687  (eval "$ac_try") 2>&5
11688  ac_status=$?
11689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690  (exit $ac_status); }; }; then
11691  eval "$as_ac_var=yes"
11692else
11693  echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
11696	eval "$as_ac_var=no"
11697fi
11698
11699rm -f core conftest.err conftest.$ac_objext \
11700      conftest$ac_exeext conftest.$ac_ext
11701fi
11702ac_res=`eval echo '${'$as_ac_var'}'`
11703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11704echo "${ECHO_T}$ac_res" >&6; }
11705if test `eval echo '${'$as_ac_var'}'` = yes; then
11706  cat >>confdefs.h <<_ACEOF
11707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708_ACEOF
11709 break
11710fi
11711done
11712
11713
11714
11715for ac_func in strrchr rindex
11716do
11717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721  echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723  cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h.  */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h.  */
11729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11731#define $ac_func innocuous_$ac_func
11732
11733/* System header to define __stub macros and hopefully few prototypes,
11734    which can conflict with char $ac_func (); below.
11735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736    <limits.h> exists even on freestanding compilers.  */
11737
11738#ifdef __STDC__
11739# include <limits.h>
11740#else
11741# include <assert.h>
11742#endif
11743
11744#undef $ac_func
11745
11746/* Override any GCC internal prototype to avoid an error.
11747   Use char because int might match the return type of a GCC
11748   builtin and then its argument prototype would still apply.  */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char $ac_func ();
11753/* The GNU C library defines this for functions which it implements
11754    to always fail with ENOSYS.  Some functions are actually named
11755    something starting with __ and the normal name is an alias.  */
11756#if defined __stub_$ac_func || defined __stub___$ac_func
11757choke me
11758#endif
11759
11760int
11761main ()
11762{
11763return $ac_func ();
11764  ;
11765  return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext conftest$ac_exeext
11769if { (ac_try="$ac_link"
11770case "(($ac_try" in
11771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772  *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775  (eval "$ac_link") 2>conftest.er1
11776  ac_status=$?
11777  grep -v '^ *+' conftest.er1 >conftest.err
11778  rm -f conftest.er1
11779  cat conftest.err >&5
11780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781  (exit $ac_status); } &&
11782	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783  { (case "(($ac_try" in
11784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785  *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788  (eval "$ac_try") 2>&5
11789  ac_status=$?
11790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791  (exit $ac_status); }; } &&
11792	 { ac_try='test -s conftest$ac_exeext'
11793  { (case "(($ac_try" in
11794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795  *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798  (eval "$ac_try") 2>&5
11799  ac_status=$?
11800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801  (exit $ac_status); }; }; then
11802  eval "$as_ac_var=yes"
11803else
11804  echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807	eval "$as_ac_var=no"
11808fi
11809
11810rm -f core conftest.err conftest.$ac_objext \
11811      conftest$ac_exeext conftest.$ac_ext
11812fi
11813ac_res=`eval echo '${'$as_ac_var'}'`
11814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11815echo "${ECHO_T}$ac_res" >&6; }
11816if test `eval echo '${'$as_ac_var'}'` = yes; then
11817  cat >>confdefs.h <<_ACEOF
11818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819_ACEOF
11820 break
11821fi
11822done
11823
11824
11825
11826for ac_func in memcpy bcopy
11827do
11828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832  echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834  cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h.  */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h.  */
11840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11842#define $ac_func innocuous_$ac_func
11843
11844/* System header to define __stub macros and hopefully few prototypes,
11845    which can conflict with char $ac_func (); below.
11846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847    <limits.h> exists even on freestanding compilers.  */
11848
11849#ifdef __STDC__
11850# include <limits.h>
11851#else
11852# include <assert.h>
11853#endif
11854
11855#undef $ac_func
11856
11857/* Override any GCC internal prototype to avoid an error.
11858   Use char because int might match the return type of a GCC
11859   builtin and then its argument prototype would still apply.  */
11860#ifdef __cplusplus
11861extern "C"
11862#endif
11863char $ac_func ();
11864/* The GNU C library defines this for functions which it implements
11865    to always fail with ENOSYS.  Some functions are actually named
11866    something starting with __ and the normal name is an alias.  */
11867#if defined __stub_$ac_func || defined __stub___$ac_func
11868choke me
11869#endif
11870
11871int
11872main ()
11873{
11874return $ac_func ();
11875  ;
11876  return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (ac_try="$ac_link"
11881case "(($ac_try" in
11882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883  *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886  (eval "$ac_link") 2>conftest.er1
11887  ac_status=$?
11888  grep -v '^ *+' conftest.er1 >conftest.err
11889  rm -f conftest.er1
11890  cat conftest.err >&5
11891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892  (exit $ac_status); } &&
11893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894  { (case "(($ac_try" in
11895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896  *) ac_try_echo=$ac_try;;
11897esac
11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899  (eval "$ac_try") 2>&5
11900  ac_status=$?
11901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902  (exit $ac_status); }; } &&
11903	 { ac_try='test -s conftest$ac_exeext'
11904  { (case "(($ac_try" in
11905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906  *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909  (eval "$ac_try") 2>&5
11910  ac_status=$?
11911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912  (exit $ac_status); }; }; then
11913  eval "$as_ac_var=yes"
11914else
11915  echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918	eval "$as_ac_var=no"
11919fi
11920
11921rm -f core conftest.err conftest.$ac_objext \
11922      conftest$ac_exeext conftest.$ac_ext
11923fi
11924ac_res=`eval echo '${'$as_ac_var'}'`
11925	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11926echo "${ECHO_T}$ac_res" >&6; }
11927if test `eval echo '${'$as_ac_var'}'` = yes; then
11928  cat >>confdefs.h <<_ACEOF
11929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930_ACEOF
11931 break
11932fi
11933done
11934
11935
11936
11937for ac_func in memmove strcmp
11938do
11939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943  echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945  cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h.  */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h.  */
11951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11953#define $ac_func innocuous_$ac_func
11954
11955/* System header to define __stub macros and hopefully few prototypes,
11956    which can conflict with char $ac_func (); below.
11957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958    <limits.h> exists even on freestanding compilers.  */
11959
11960#ifdef __STDC__
11961# include <limits.h>
11962#else
11963# include <assert.h>
11964#endif
11965
11966#undef $ac_func
11967
11968/* Override any GCC internal prototype to avoid an error.
11969   Use char because int might match the return type of a GCC
11970   builtin and then its argument prototype would still apply.  */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char $ac_func ();
11975/* The GNU C library defines this for functions which it implements
11976    to always fail with ENOSYS.  Some functions are actually named
11977    something starting with __ and the normal name is an alias.  */
11978#if defined __stub_$ac_func || defined __stub___$ac_func
11979choke me
11980#endif
11981
11982int
11983main ()
11984{
11985return $ac_func ();
11986  ;
11987  return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (ac_try="$ac_link"
11992case "(($ac_try" in
11993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994  *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997  (eval "$ac_link") 2>conftest.er1
11998  ac_status=$?
11999  grep -v '^ *+' conftest.er1 >conftest.err
12000  rm -f conftest.er1
12001  cat conftest.err >&5
12002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003  (exit $ac_status); } &&
12004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005  { (case "(($ac_try" in
12006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007  *) ac_try_echo=$ac_try;;
12008esac
12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010  (eval "$ac_try") 2>&5
12011  ac_status=$?
12012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013  (exit $ac_status); }; } &&
12014	 { ac_try='test -s conftest$ac_exeext'
12015  { (case "(($ac_try" in
12016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017  *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020  (eval "$ac_try") 2>&5
12021  ac_status=$?
12022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); }; }; then
12024  eval "$as_ac_var=yes"
12025else
12026  echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029	eval "$as_ac_var=no"
12030fi
12031
12032rm -f core conftest.err conftest.$ac_objext \
12033      conftest$ac_exeext conftest.$ac_ext
12034fi
12035ac_res=`eval echo '${'$as_ac_var'}'`
12036	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12037echo "${ECHO_T}$ac_res" >&6; }
12038if test `eval echo '${'$as_ac_var'}'` = yes; then
12039  cat >>confdefs.h <<_ACEOF
12040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041_ACEOF
12042
12043fi
12044done
12045
12046
12047
12048
12049for ac_func in closedir opendir readdir
12050do
12051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055  echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057  cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h.  */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h.  */
12063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12065#define $ac_func innocuous_$ac_func
12066
12067/* System header to define __stub macros and hopefully few prototypes,
12068    which can conflict with char $ac_func (); below.
12069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070    <limits.h> exists even on freestanding compilers.  */
12071
12072#ifdef __STDC__
12073# include <limits.h>
12074#else
12075# include <assert.h>
12076#endif
12077
12078#undef $ac_func
12079
12080/* Override any GCC internal prototype to avoid an error.
12081   Use char because int might match the return type of a GCC
12082   builtin and then its argument prototype would still apply.  */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086char $ac_func ();
12087/* The GNU C library defines this for functions which it implements
12088    to always fail with ENOSYS.  Some functions are actually named
12089    something starting with __ and the normal name is an alias.  */
12090#if defined __stub_$ac_func || defined __stub___$ac_func
12091choke me
12092#endif
12093
12094int
12095main ()
12096{
12097return $ac_func ();
12098  ;
12099  return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext
12103if { (ac_try="$ac_link"
12104case "(($ac_try" in
12105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106  *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109  (eval "$ac_link") 2>conftest.er1
12110  ac_status=$?
12111  grep -v '^ *+' conftest.er1 >conftest.err
12112  rm -f conftest.er1
12113  cat conftest.err >&5
12114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115  (exit $ac_status); } &&
12116	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117  { (case "(($ac_try" in
12118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119  *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122  (eval "$ac_try") 2>&5
12123  ac_status=$?
12124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125  (exit $ac_status); }; } &&
12126	 { ac_try='test -s conftest$ac_exeext'
12127  { (case "(($ac_try" in
12128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129  *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132  (eval "$ac_try") 2>&5
12133  ac_status=$?
12134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135  (exit $ac_status); }; }; then
12136  eval "$as_ac_var=yes"
12137else
12138  echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141	eval "$as_ac_var=no"
12142fi
12143
12144rm -f core conftest.err conftest.$ac_objext \
12145      conftest$ac_exeext conftest.$ac_ext
12146fi
12147ac_res=`eval echo '${'$as_ac_var'}'`
12148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12149echo "${ECHO_T}$ac_res" >&6; }
12150if test `eval echo '${'$as_ac_var'}'` = yes; then
12151  cat >>confdefs.h <<_ACEOF
12152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153_ACEOF
12154
12155fi
12156done
12157
12158
12159
12160{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12161echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12162
12163ICC=no
12164IXX=no
12165case $CC in
12166  icc*|icpc*)
12167    ICC=yes
12168    IXX=yes
12169    ;;
12170   *)
12171    ;;
12172esac
12173
12174if test "$GCC" != "yes" && test "$ICC" != "yes"
12175then
12176  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177echo "$as_me: error: gcc|icc required but not found" >&2;}
12178   { (exit 1); exit 1; }; }
12179fi
12180
12181if test "$GXX" != "yes" && test "$IXX" != "yes"
12182then
12183  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185   { (exit 1); exit 1; }; }
12186fi
12187
12188if test "$GCC" = "yes"
12189then
12190  cat >conftest.$ac_ext <<_ACEOF
12191#if !defined(__GNUC__) || __GNUC__ < 3
12192#error Unsupported GCC version
12193#endif
12194
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (ac_try="$ac_compile"
12198case "(($ac_try" in
12199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200  *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203  (eval "$ac_compile") 2>conftest.er1
12204  ac_status=$?
12205  grep -v '^ *+' conftest.er1 >conftest.err
12206  rm -f conftest.er1
12207  cat conftest.err >&5
12208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209  (exit $ac_status); } &&
12210	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211  { (case "(($ac_try" in
12212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213  *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216  (eval "$ac_try") 2>&5
12217  ac_status=$?
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); }; } &&
12220	 { ac_try='test -s conftest.$ac_objext'
12221  { (case "(($ac_try" in
12222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223  *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226  (eval "$ac_try") 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; }; then
12230  :
12231else
12232  echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237   { (exit 1); exit 1; }; }
12238fi
12239
12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241fi
12242
12243if test -z "$llvm_cv_gnu_make_command"
12244then
12245  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246echo "$as_me: error: GNU Make required but not found" >&2;}
12247   { (exit 1); exit 1; }; }
12248fi
12249
12250{ echo "$as_me:$LINENO: result: ok" >&5
12251echo "${ECHO_T}ok" >&6; }
12252
12253{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12255NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12256
12257NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12258
12259{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12260echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12261
12262
12263
12264{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12265echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12266if test "${ac_cv_lib_m_sin+set}" = set; then
12267  echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269  ac_check_lib_save_LIBS=$LIBS
12270LIBS="-lm  $LIBS"
12271cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h.  */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h.  */
12277
12278/* Override any GCC internal prototype to avoid an error.
12279   Use char because int might match the return type of a GCC
12280   builtin and then its argument prototype would still apply.  */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284char sin ();
12285int
12286main ()
12287{
12288return sin ();
12289  ;
12290  return 0;
12291}
12292_ACEOF
12293rm -f conftest.$ac_objext conftest$ac_exeext
12294if { (ac_try="$ac_link"
12295case "(($ac_try" in
12296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297  *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300  (eval "$ac_link") 2>conftest.er1
12301  ac_status=$?
12302  grep -v '^ *+' conftest.er1 >conftest.err
12303  rm -f conftest.er1
12304  cat conftest.err >&5
12305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306  (exit $ac_status); } &&
12307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308  { (case "(($ac_try" in
12309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310  *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313  (eval "$ac_try") 2>&5
12314  ac_status=$?
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); }; } &&
12317	 { ac_try='test -s conftest$ac_exeext'
12318  { (case "(($ac_try" in
12319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320  *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323  (eval "$ac_try") 2>&5
12324  ac_status=$?
12325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326  (exit $ac_status); }; }; then
12327  ac_cv_lib_m_sin=yes
12328else
12329  echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332	ac_cv_lib_m_sin=no
12333fi
12334
12335rm -f core conftest.err conftest.$ac_objext \
12336      conftest$ac_exeext conftest.$ac_ext
12337LIBS=$ac_check_lib_save_LIBS
12338fi
12339{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12340echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12341if test $ac_cv_lib_m_sin = yes; then
12342  cat >>confdefs.h <<_ACEOF
12343#define HAVE_LIBM 1
12344_ACEOF
12345
12346  LIBS="-lm $LIBS"
12347
12348fi
12349
12350if test "$llvm_cv_os_type" = "MingW" ; then
12351
12352{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12353echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12354if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12355  echo $ECHO_N "(cached) $ECHO_C" >&6
12356else
12357  ac_check_lib_save_LIBS=$LIBS
12358LIBS="-limagehlp  $LIBS"
12359cat >conftest.$ac_ext <<_ACEOF
12360/* confdefs.h.  */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h.  */
12365
12366
12367int
12368main ()
12369{
12370return main ();
12371  ;
12372  return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext conftest$ac_exeext
12376if { (ac_try="$ac_link"
12377case "(($ac_try" in
12378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379  *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382  (eval "$ac_link") 2>conftest.er1
12383  ac_status=$?
12384  grep -v '^ *+' conftest.er1 >conftest.err
12385  rm -f conftest.er1
12386  cat conftest.err >&5
12387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388  (exit $ac_status); } &&
12389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12390  { (case "(($ac_try" in
12391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392  *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395  (eval "$ac_try") 2>&5
12396  ac_status=$?
12397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398  (exit $ac_status); }; } &&
12399	 { ac_try='test -s conftest$ac_exeext'
12400  { (case "(($ac_try" in
12401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402  *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405  (eval "$ac_try") 2>&5
12406  ac_status=$?
12407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408  (exit $ac_status); }; }; then
12409  ac_cv_lib_imagehlp_main=yes
12410else
12411  echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414	ac_cv_lib_imagehlp_main=no
12415fi
12416
12417rm -f core conftest.err conftest.$ac_objext \
12418      conftest$ac_exeext conftest.$ac_ext
12419LIBS=$ac_check_lib_save_LIBS
12420fi
12421{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12422echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12423if test $ac_cv_lib_imagehlp_main = yes; then
12424  cat >>confdefs.h <<_ACEOF
12425#define HAVE_LIBIMAGEHLP 1
12426_ACEOF
12427
12428  LIBS="-limagehlp $LIBS"
12429
12430fi
12431
12432
12433{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12434echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12435if test "${ac_cv_lib_psapi_main+set}" = set; then
12436  echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438  ac_check_lib_save_LIBS=$LIBS
12439LIBS="-lpsapi  $LIBS"
12440cat >conftest.$ac_ext <<_ACEOF
12441/* confdefs.h.  */
12442_ACEOF
12443cat confdefs.h >>conftest.$ac_ext
12444cat >>conftest.$ac_ext <<_ACEOF
12445/* end confdefs.h.  */
12446
12447
12448int
12449main ()
12450{
12451return main ();
12452  ;
12453  return 0;
12454}
12455_ACEOF
12456rm -f conftest.$ac_objext conftest$ac_exeext
12457if { (ac_try="$ac_link"
12458case "(($ac_try" in
12459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460  *) ac_try_echo=$ac_try;;
12461esac
12462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463  (eval "$ac_link") 2>conftest.er1
12464  ac_status=$?
12465  grep -v '^ *+' conftest.er1 >conftest.err
12466  rm -f conftest.er1
12467  cat conftest.err >&5
12468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469  (exit $ac_status); } &&
12470	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471  { (case "(($ac_try" in
12472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473  *) ac_try_echo=$ac_try;;
12474esac
12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476  (eval "$ac_try") 2>&5
12477  ac_status=$?
12478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479  (exit $ac_status); }; } &&
12480	 { ac_try='test -s conftest$ac_exeext'
12481  { (case "(($ac_try" in
12482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483  *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486  (eval "$ac_try") 2>&5
12487  ac_status=$?
12488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489  (exit $ac_status); }; }; then
12490  ac_cv_lib_psapi_main=yes
12491else
12492  echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495	ac_cv_lib_psapi_main=no
12496fi
12497
12498rm -f core conftest.err conftest.$ac_objext \
12499      conftest$ac_exeext conftest.$ac_ext
12500LIBS=$ac_check_lib_save_LIBS
12501fi
12502{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12503echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12504if test $ac_cv_lib_psapi_main = yes; then
12505  cat >>confdefs.h <<_ACEOF
12506#define HAVE_LIBPSAPI 1
12507_ACEOF
12508
12509  LIBS="-lpsapi $LIBS"
12510
12511fi
12512
12513fi
12514
12515{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12516echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12517if test "${ac_cv_search_dlopen+set}" = set; then
12518  echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520  ac_func_search_save_LIBS=$LIBS
12521cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h.  */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h.  */
12527
12528/* Override any GCC internal prototype to avoid an error.
12529   Use char because int might match the return type of a GCC
12530   builtin and then its argument prototype would still apply.  */
12531#ifdef __cplusplus
12532extern "C"
12533#endif
12534char dlopen ();
12535int
12536main ()
12537{
12538return dlopen ();
12539  ;
12540  return 0;
12541}
12542_ACEOF
12543for ac_lib in '' dl; do
12544  if test -z "$ac_lib"; then
12545    ac_res="none required"
12546  else
12547    ac_res=-l$ac_lib
12548    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12549  fi
12550  rm -f conftest.$ac_objext conftest$ac_exeext
12551if { (ac_try="$ac_link"
12552case "(($ac_try" in
12553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554  *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557  (eval "$ac_link") 2>conftest.er1
12558  ac_status=$?
12559  grep -v '^ *+' conftest.er1 >conftest.err
12560  rm -f conftest.er1
12561  cat conftest.err >&5
12562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563  (exit $ac_status); } &&
12564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565  { (case "(($ac_try" in
12566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567  *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570  (eval "$ac_try") 2>&5
12571  ac_status=$?
12572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573  (exit $ac_status); }; } &&
12574	 { ac_try='test -s conftest$ac_exeext'
12575  { (case "(($ac_try" in
12576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577  *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580  (eval "$ac_try") 2>&5
12581  ac_status=$?
12582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583  (exit $ac_status); }; }; then
12584  ac_cv_search_dlopen=$ac_res
12585else
12586  echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589
12590fi
12591
12592rm -f core conftest.err conftest.$ac_objext \
12593      conftest$ac_exeext
12594  if test "${ac_cv_search_dlopen+set}" = set; then
12595  break
12596fi
12597done
12598if test "${ac_cv_search_dlopen+set}" = set; then
12599  :
12600else
12601  ac_cv_search_dlopen=no
12602fi
12603rm conftest.$ac_ext
12604LIBS=$ac_func_search_save_LIBS
12605fi
12606{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12607echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12608ac_res=$ac_cv_search_dlopen
12609if test "$ac_res" != no; then
12610  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12611
12612cat >>confdefs.h <<\_ACEOF
12613#define HAVE_DLOPEN 1
12614_ACEOF
12615
12616else
12617  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12618echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12619fi
12620
12621
12622if test "$llvm_cv_enable_libffi" = "yes" ; then
12623  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12624echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12625if test "${ac_cv_search_ffi_call+set}" = set; then
12626  echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628  ac_func_search_save_LIBS=$LIBS
12629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h.  */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h.  */
12635
12636/* Override any GCC internal prototype to avoid an error.
12637   Use char because int might match the return type of a GCC
12638   builtin and then its argument prototype would still apply.  */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char ffi_call ();
12643int
12644main ()
12645{
12646return ffi_call ();
12647  ;
12648  return 0;
12649}
12650_ACEOF
12651for ac_lib in '' ffi; do
12652  if test -z "$ac_lib"; then
12653    ac_res="none required"
12654  else
12655    ac_res=-l$ac_lib
12656    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12657  fi
12658  rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662  *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665  (eval "$ac_link") 2>conftest.er1
12666  ac_status=$?
12667  grep -v '^ *+' conftest.er1 >conftest.err
12668  rm -f conftest.er1
12669  cat conftest.err >&5
12670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671  (exit $ac_status); } &&
12672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673  { (case "(($ac_try" in
12674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675  *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678  (eval "$ac_try") 2>&5
12679  ac_status=$?
12680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681  (exit $ac_status); }; } &&
12682	 { ac_try='test -s conftest$ac_exeext'
12683  { (case "(($ac_try" in
12684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685  *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688  (eval "$ac_try") 2>&5
12689  ac_status=$?
12690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691  (exit $ac_status); }; }; then
12692  ac_cv_search_ffi_call=$ac_res
12693else
12694  echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
12698fi
12699
12700rm -f core conftest.err conftest.$ac_objext \
12701      conftest$ac_exeext
12702  if test "${ac_cv_search_ffi_call+set}" = set; then
12703  break
12704fi
12705done
12706if test "${ac_cv_search_ffi_call+set}" = set; then
12707  :
12708else
12709  ac_cv_search_ffi_call=no
12710fi
12711rm conftest.$ac_ext
12712LIBS=$ac_func_search_save_LIBS
12713fi
12714{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12715echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12716ac_res=$ac_cv_search_ffi_call
12717if test "$ac_res" != no; then
12718  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12719
12720cat >>confdefs.h <<\_ACEOF
12721#define HAVE_FFI_CALL 1
12722_ACEOF
12723
12724else
12725  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12726echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12727   { (exit 1); exit 1; }; }
12728fi
12729
12730fi
12731
12732{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12733echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12734if test "${ac_cv_search_mallinfo+set}" = set; then
12735  echo $ECHO_N "(cached) $ECHO_C" >&6
12736else
12737  ac_func_search_save_LIBS=$LIBS
12738cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h.  */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h.  */
12744
12745/* Override any GCC internal prototype to avoid an error.
12746   Use char because int might match the return type of a GCC
12747   builtin and then its argument prototype would still apply.  */
12748#ifdef __cplusplus
12749extern "C"
12750#endif
12751char mallinfo ();
12752int
12753main ()
12754{
12755return mallinfo ();
12756  ;
12757  return 0;
12758}
12759_ACEOF
12760for ac_lib in '' malloc; do
12761  if test -z "$ac_lib"; then
12762    ac_res="none required"
12763  else
12764    ac_res=-l$ac_lib
12765    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12766  fi
12767  rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (ac_try="$ac_link"
12769case "(($ac_try" in
12770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771  *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774  (eval "$ac_link") 2>conftest.er1
12775  ac_status=$?
12776  grep -v '^ *+' conftest.er1 >conftest.err
12777  rm -f conftest.er1
12778  cat conftest.err >&5
12779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780  (exit $ac_status); } &&
12781	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782  { (case "(($ac_try" in
12783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784  *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787  (eval "$ac_try") 2>&5
12788  ac_status=$?
12789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790  (exit $ac_status); }; } &&
12791	 { ac_try='test -s conftest$ac_exeext'
12792  { (case "(($ac_try" in
12793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794  *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797  (eval "$ac_try") 2>&5
12798  ac_status=$?
12799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800  (exit $ac_status); }; }; then
12801  ac_cv_search_mallinfo=$ac_res
12802else
12803  echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806
12807fi
12808
12809rm -f core conftest.err conftest.$ac_objext \
12810      conftest$ac_exeext
12811  if test "${ac_cv_search_mallinfo+set}" = set; then
12812  break
12813fi
12814done
12815if test "${ac_cv_search_mallinfo+set}" = set; then
12816  :
12817else
12818  ac_cv_search_mallinfo=no
12819fi
12820rm conftest.$ac_ext
12821LIBS=$ac_func_search_save_LIBS
12822fi
12823{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12824echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12825ac_res=$ac_cv_search_mallinfo
12826if test "$ac_res" != no; then
12827  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12828
12829cat >>confdefs.h <<\_ACEOF
12830#define HAVE_MALLINFO 1
12831_ACEOF
12832
12833fi
12834
12835
12836if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12837
12838{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12839echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12840if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12841  echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843  ac_check_lib_save_LIBS=$LIBS
12844LIBS="-lpthread  $LIBS"
12845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h.  */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h.  */
12851
12852/* Override any GCC internal prototype to avoid an error.
12853   Use char because int might match the return type of a GCC
12854   builtin and then its argument prototype would still apply.  */
12855#ifdef __cplusplus
12856extern "C"
12857#endif
12858char pthread_mutex_init ();
12859int
12860main ()
12861{
12862return pthread_mutex_init ();
12863  ;
12864  return 0;
12865}
12866_ACEOF
12867rm -f conftest.$ac_objext conftest$ac_exeext
12868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871  *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874  (eval "$ac_link") 2>conftest.er1
12875  ac_status=$?
12876  grep -v '^ *+' conftest.er1 >conftest.err
12877  rm -f conftest.er1
12878  cat conftest.err >&5
12879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } &&
12881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882  { (case "(($ac_try" in
12883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884  *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887  (eval "$ac_try") 2>&5
12888  ac_status=$?
12889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890  (exit $ac_status); }; } &&
12891	 { ac_try='test -s conftest$ac_exeext'
12892  { (case "(($ac_try" in
12893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894  *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897  (eval "$ac_try") 2>&5
12898  ac_status=$?
12899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900  (exit $ac_status); }; }; then
12901  ac_cv_lib_pthread_pthread_mutex_init=yes
12902else
12903  echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906	ac_cv_lib_pthread_pthread_mutex_init=no
12907fi
12908
12909rm -f core conftest.err conftest.$ac_objext \
12910      conftest$ac_exeext conftest.$ac_ext
12911LIBS=$ac_check_lib_save_LIBS
12912fi
12913{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12914echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12915if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12916  cat >>confdefs.h <<_ACEOF
12917#define HAVE_LIBPTHREAD 1
12918_ACEOF
12919
12920  LIBS="-lpthread $LIBS"
12921
12922fi
12923
12924  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12925echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12926if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12927  echo $ECHO_N "(cached) $ECHO_C" >&6
12928else
12929  ac_func_search_save_LIBS=$LIBS
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h.  */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h.  */
12936
12937/* Override any GCC internal prototype to avoid an error.
12938   Use char because int might match the return type of a GCC
12939   builtin and then its argument prototype would still apply.  */
12940#ifdef __cplusplus
12941extern "C"
12942#endif
12943char pthread_mutex_lock ();
12944int
12945main ()
12946{
12947return pthread_mutex_lock ();
12948  ;
12949  return 0;
12950}
12951_ACEOF
12952for ac_lib in '' pthread; do
12953  if test -z "$ac_lib"; then
12954    ac_res="none required"
12955  else
12956    ac_res=-l$ac_lib
12957    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12958  fi
12959  rm -f conftest.$ac_objext conftest$ac_exeext
12960if { (ac_try="$ac_link"
12961case "(($ac_try" in
12962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963  *) ac_try_echo=$ac_try;;
12964esac
12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966  (eval "$ac_link") 2>conftest.er1
12967  ac_status=$?
12968  grep -v '^ *+' conftest.er1 >conftest.err
12969  rm -f conftest.er1
12970  cat conftest.err >&5
12971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972  (exit $ac_status); } &&
12973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974  { (case "(($ac_try" in
12975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976  *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979  (eval "$ac_try") 2>&5
12980  ac_status=$?
12981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982  (exit $ac_status); }; } &&
12983	 { ac_try='test -s conftest$ac_exeext'
12984  { (case "(($ac_try" in
12985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986  *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989  (eval "$ac_try") 2>&5
12990  ac_status=$?
12991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992  (exit $ac_status); }; }; then
12993  ac_cv_search_pthread_mutex_lock=$ac_res
12994else
12995  echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998
12999fi
13000
13001rm -f core conftest.err conftest.$ac_objext \
13002      conftest$ac_exeext
13003  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13004  break
13005fi
13006done
13007if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13008  :
13009else
13010  ac_cv_search_pthread_mutex_lock=no
13011fi
13012rm conftest.$ac_ext
13013LIBS=$ac_func_search_save_LIBS
13014fi
13015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13016echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13017ac_res=$ac_cv_search_pthread_mutex_lock
13018if test "$ac_res" != no; then
13019  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13020
13021cat >>confdefs.h <<\_ACEOF
13022#define HAVE_PTHREAD_MUTEX_LOCK 1
13023_ACEOF
13024
13025fi
13026
13027  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13028echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13029if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13030  echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032  ac_func_search_save_LIBS=$LIBS
13033cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h.  */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h.  */
13039
13040/* Override any GCC internal prototype to avoid an error.
13041   Use char because int might match the return type of a GCC
13042   builtin and then its argument prototype would still apply.  */
13043#ifdef __cplusplus
13044extern "C"
13045#endif
13046char pthread_rwlock_init ();
13047int
13048main ()
13049{
13050return pthread_rwlock_init ();
13051  ;
13052  return 0;
13053}
13054_ACEOF
13055for ac_lib in '' pthread; do
13056  if test -z "$ac_lib"; then
13057    ac_res="none required"
13058  else
13059    ac_res=-l$ac_lib
13060    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13061  fi
13062  rm -f conftest.$ac_objext conftest$ac_exeext
13063if { (ac_try="$ac_link"
13064case "(($ac_try" in
13065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066  *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069  (eval "$ac_link") 2>conftest.er1
13070  ac_status=$?
13071  grep -v '^ *+' conftest.er1 >conftest.err
13072  rm -f conftest.er1
13073  cat conftest.err >&5
13074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075  (exit $ac_status); } &&
13076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077  { (case "(($ac_try" in
13078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079  *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082  (eval "$ac_try") 2>&5
13083  ac_status=$?
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); }; } &&
13086	 { ac_try='test -s conftest$ac_exeext'
13087  { (case "(($ac_try" in
13088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089  *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092  (eval "$ac_try") 2>&5
13093  ac_status=$?
13094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095  (exit $ac_status); }; }; then
13096  ac_cv_search_pthread_rwlock_init=$ac_res
13097else
13098  echo "$as_me: failed program was:" >&5
13099sed 's/^/| /' conftest.$ac_ext >&5
13100
13101
13102fi
13103
13104rm -f core conftest.err conftest.$ac_objext \
13105      conftest$ac_exeext
13106  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13107  break
13108fi
13109done
13110if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13111  :
13112else
13113  ac_cv_search_pthread_rwlock_init=no
13114fi
13115rm conftest.$ac_ext
13116LIBS=$ac_func_search_save_LIBS
13117fi
13118{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13119echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13120ac_res=$ac_cv_search_pthread_rwlock_init
13121if test "$ac_res" != no; then
13122  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124cat >>confdefs.h <<\_ACEOF
13125#define HAVE_PTHREAD_RWLOCK_INIT 1
13126_ACEOF
13127
13128fi
13129
13130  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13131echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13132if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13133  echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135  ac_func_search_save_LIBS=$LIBS
13136cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h.  */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h.  */
13142
13143/* Override any GCC internal prototype to avoid an error.
13144   Use char because int might match the return type of a GCC
13145   builtin and then its argument prototype would still apply.  */
13146#ifdef __cplusplus
13147extern "C"
13148#endif
13149char pthread_getspecific ();
13150int
13151main ()
13152{
13153return pthread_getspecific ();
13154  ;
13155  return 0;
13156}
13157_ACEOF
13158for ac_lib in '' pthread; do
13159  if test -z "$ac_lib"; then
13160    ac_res="none required"
13161  else
13162    ac_res=-l$ac_lib
13163    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13164  fi
13165  rm -f conftest.$ac_objext conftest$ac_exeext
13166if { (ac_try="$ac_link"
13167case "(($ac_try" in
13168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169  *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172  (eval "$ac_link") 2>conftest.er1
13173  ac_status=$?
13174  grep -v '^ *+' conftest.er1 >conftest.err
13175  rm -f conftest.er1
13176  cat conftest.err >&5
13177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178  (exit $ac_status); } &&
13179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180  { (case "(($ac_try" in
13181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182  *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185  (eval "$ac_try") 2>&5
13186  ac_status=$?
13187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188  (exit $ac_status); }; } &&
13189	 { ac_try='test -s conftest$ac_exeext'
13190  { (case "(($ac_try" in
13191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192  *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195  (eval "$ac_try") 2>&5
13196  ac_status=$?
13197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198  (exit $ac_status); }; }; then
13199  ac_cv_search_pthread_getspecific=$ac_res
13200else
13201  echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
13204
13205fi
13206
13207rm -f core conftest.err conftest.$ac_objext \
13208      conftest$ac_exeext
13209  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13210  break
13211fi
13212done
13213if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13214  :
13215else
13216  ac_cv_search_pthread_getspecific=no
13217fi
13218rm conftest.$ac_ext
13219LIBS=$ac_func_search_save_LIBS
13220fi
13221{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13222echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13223ac_res=$ac_cv_search_pthread_getspecific
13224if test "$ac_res" != no; then
13225  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13226
13227cat >>confdefs.h <<\_ACEOF
13228#define HAVE_PTHREAD_GETSPECIFIC 1
13229_ACEOF
13230
13231fi
13232
13233fi
13234
13235
13236# Check whether --with-udis86 was given.
13237if test "${with_udis86+set}" = set; then
13238  withval=$with_udis86;
13239      USE_UDIS86=1
13240
13241      case "$withval" in
13242        /usr/lib|yes) ;;
13243        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13244      esac
13245
13246{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13247echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13248if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13249  echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251  ac_check_lib_save_LIBS=$LIBS
13252LIBS="-ludis86  $LIBS"
13253cat >conftest.$ac_ext <<_ACEOF
13254/* confdefs.h.  */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h.  */
13259
13260/* Override any GCC internal prototype to avoid an error.
13261   Use char because int might match the return type of a GCC
13262   builtin and then its argument prototype would still apply.  */
13263#ifdef __cplusplus
13264extern "C"
13265#endif
13266char ud_init ();
13267int
13268main ()
13269{
13270return ud_init ();
13271  ;
13272  return 0;
13273}
13274_ACEOF
13275rm -f conftest.$ac_objext conftest$ac_exeext
13276if { (ac_try="$ac_link"
13277case "(($ac_try" in
13278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279  *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282  (eval "$ac_link") 2>conftest.er1
13283  ac_status=$?
13284  grep -v '^ *+' conftest.er1 >conftest.err
13285  rm -f conftest.er1
13286  cat conftest.err >&5
13287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288  (exit $ac_status); } &&
13289	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290  { (case "(($ac_try" in
13291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292  *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295  (eval "$ac_try") 2>&5
13296  ac_status=$?
13297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298  (exit $ac_status); }; } &&
13299	 { ac_try='test -s conftest$ac_exeext'
13300  { (case "(($ac_try" in
13301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302  *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305  (eval "$ac_try") 2>&5
13306  ac_status=$?
13307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308  (exit $ac_status); }; }; then
13309  ac_cv_lib_udis86_ud_init=yes
13310else
13311  echo "$as_me: failed program was:" >&5
13312sed 's/^/| /' conftest.$ac_ext >&5
13313
13314	ac_cv_lib_udis86_ud_init=no
13315fi
13316
13317rm -f core conftest.err conftest.$ac_objext \
13318      conftest$ac_exeext conftest.$ac_ext
13319LIBS=$ac_check_lib_save_LIBS
13320fi
13321{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13322echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13323if test $ac_cv_lib_udis86_ud_init = yes; then
13324  cat >>confdefs.h <<_ACEOF
13325#define HAVE_LIBUDIS86 1
13326_ACEOF
13327
13328  LIBS="-ludis86 $LIBS"
13329
13330else
13331
13332        echo "Error! You need to have libudis86 around."
13333        exit -1
13334
13335fi
13336
13337
13338else
13339  USE_UDIS86=0
13340
13341fi
13342
13343
13344cat >>confdefs.h <<_ACEOF
13345#define USE_UDIS86 $USE_UDIS86
13346_ACEOF
13347
13348
13349
13350# Check whether --with-oprofile was given.
13351if test "${with_oprofile+set}" = set; then
13352  withval=$with_oprofile;
13353      USE_OPROFILE=1
13354
13355      case "$withval" in
13356        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13357        no) llvm_cv_oppath=
13358            USE_OPROFILE=0
13359 ;;
13360        *) llvm_cv_oppath="${withval}/lib/oprofile"
13361           CPPFLAGS="-I${withval}/include";;
13362      esac
13363      if test -n "$llvm_cv_oppath" ; then
13364        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13365                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13366echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13367if test "${ac_cv_search_bfd_init+set}" = set; then
13368  echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
13370  ac_func_search_save_LIBS=$LIBS
13371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h.  */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h.  */
13377
13378/* Override any GCC internal prototype to avoid an error.
13379   Use char because int might match the return type of a GCC
13380   builtin and then its argument prototype would still apply.  */
13381#ifdef __cplusplus
13382extern "C"
13383#endif
13384char bfd_init ();
13385int
13386main ()
13387{
13388return bfd_init ();
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393for ac_lib in '' bfd; do
13394  if test -z "$ac_lib"; then
13395    ac_res="none required"
13396  else
13397    ac_res=-l$ac_lib
13398    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13399  fi
13400  rm -f conftest.$ac_objext conftest$ac_exeext
13401if { (ac_try="$ac_link"
13402case "(($ac_try" in
13403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404  *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407  (eval "$ac_link") 2>conftest.er1
13408  ac_status=$?
13409  grep -v '^ *+' conftest.er1 >conftest.err
13410  rm -f conftest.er1
13411  cat conftest.err >&5
13412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413  (exit $ac_status); } &&
13414	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415  { (case "(($ac_try" in
13416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417  *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420  (eval "$ac_try") 2>&5
13421  ac_status=$?
13422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423  (exit $ac_status); }; } &&
13424	 { ac_try='test -s conftest$ac_exeext'
13425  { (case "(($ac_try" in
13426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427  *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430  (eval "$ac_try") 2>&5
13431  ac_status=$?
13432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433  (exit $ac_status); }; }; then
13434  ac_cv_search_bfd_init=$ac_res
13435else
13436  echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439
13440fi
13441
13442rm -f core conftest.err conftest.$ac_objext \
13443      conftest$ac_exeext
13444  if test "${ac_cv_search_bfd_init+set}" = set; then
13445  break
13446fi
13447done
13448if test "${ac_cv_search_bfd_init+set}" = set; then
13449  :
13450else
13451  ac_cv_search_bfd_init=no
13452fi
13453rm conftest.$ac_ext
13454LIBS=$ac_func_search_save_LIBS
13455fi
13456{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13457echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13458ac_res=$ac_cv_search_bfd_init
13459if test "$ac_res" != no; then
13460  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13461
13462fi
13463
13464        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13465echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13466if test "${ac_cv_search_op_open_agent+set}" = set; then
13467  echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
13469  ac_func_search_save_LIBS=$LIBS
13470cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h.  */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h.  */
13476
13477/* Override any GCC internal prototype to avoid an error.
13478   Use char because int might match the return type of a GCC
13479   builtin and then its argument prototype would still apply.  */
13480#ifdef __cplusplus
13481extern "C"
13482#endif
13483char op_open_agent ();
13484int
13485main ()
13486{
13487return op_open_agent ();
13488  ;
13489  return 0;
13490}
13491_ACEOF
13492for ac_lib in '' opagent; do
13493  if test -z "$ac_lib"; then
13494    ac_res="none required"
13495  else
13496    ac_res=-l$ac_lib
13497    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13498  fi
13499  rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (ac_try="$ac_link"
13501case "(($ac_try" in
13502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503  *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506  (eval "$ac_link") 2>conftest.er1
13507  ac_status=$?
13508  grep -v '^ *+' conftest.er1 >conftest.err
13509  rm -f conftest.er1
13510  cat conftest.err >&5
13511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512  (exit $ac_status); } &&
13513	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13514  { (case "(($ac_try" in
13515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516  *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519  (eval "$ac_try") 2>&5
13520  ac_status=$?
13521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522  (exit $ac_status); }; } &&
13523	 { ac_try='test -s conftest$ac_exeext'
13524  { (case "(($ac_try" in
13525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526  *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529  (eval "$ac_try") 2>&5
13530  ac_status=$?
13531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532  (exit $ac_status); }; }; then
13533  ac_cv_search_op_open_agent=$ac_res
13534else
13535  echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538
13539fi
13540
13541rm -f core conftest.err conftest.$ac_objext \
13542      conftest$ac_exeext
13543  if test "${ac_cv_search_op_open_agent+set}" = set; then
13544  break
13545fi
13546done
13547if test "${ac_cv_search_op_open_agent+set}" = set; then
13548  :
13549else
13550  ac_cv_search_op_open_agent=no
13551fi
13552rm conftest.$ac_ext
13553LIBS=$ac_func_search_save_LIBS
13554fi
13555{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13556echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13557ac_res=$ac_cv_search_op_open_agent
13558if test "$ac_res" != no; then
13559  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13560
13561else
13562
13563          echo "Error! You need to have libopagent around."
13564          exit -1
13565
13566fi
13567
13568        if test "${ac_cv_header_opagent_h+set}" = set; then
13569  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571if test "${ac_cv_header_opagent_h+set}" = set; then
13572  echo $ECHO_N "(cached) $ECHO_C" >&6
13573fi
13574{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576else
13577  # Is the header compilable?
13578{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13579echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13580cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h.  */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h.  */
13586$ac_includes_default
13587#include <opagent.h>
13588_ACEOF
13589rm -f conftest.$ac_objext
13590if { (ac_try="$ac_compile"
13591case "(($ac_try" in
13592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593  *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596  (eval "$ac_compile") 2>conftest.er1
13597  ac_status=$?
13598  grep -v '^ *+' conftest.er1 >conftest.err
13599  rm -f conftest.er1
13600  cat conftest.err >&5
13601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602  (exit $ac_status); } &&
13603	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604  { (case "(($ac_try" in
13605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606  *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609  (eval "$ac_try") 2>&5
13610  ac_status=$?
13611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612  (exit $ac_status); }; } &&
13613	 { ac_try='test -s conftest.$ac_objext'
13614  { (case "(($ac_try" in
13615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616  *) ac_try_echo=$ac_try;;
13617esac
13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619  (eval "$ac_try") 2>&5
13620  ac_status=$?
13621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622  (exit $ac_status); }; }; then
13623  ac_header_compiler=yes
13624else
13625  echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628	ac_header_compiler=no
13629fi
13630
13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633echo "${ECHO_T}$ac_header_compiler" >&6; }
13634
13635# Is the header present?
13636{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13637echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h.  */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h.  */
13644#include <opagent.h>
13645_ACEOF
13646if { (ac_try="$ac_cpp conftest.$ac_ext"
13647case "(($ac_try" in
13648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649  *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13653  ac_status=$?
13654  grep -v '^ *+' conftest.er1 >conftest.err
13655  rm -f conftest.er1
13656  cat conftest.err >&5
13657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658  (exit $ac_status); } >/dev/null; then
13659  if test -s conftest.err; then
13660    ac_cpp_err=$ac_c_preproc_warn_flag
13661    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13662  else
13663    ac_cpp_err=
13664  fi
13665else
13666  ac_cpp_err=yes
13667fi
13668if test -z "$ac_cpp_err"; then
13669  ac_header_preproc=yes
13670else
13671  echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674  ac_header_preproc=no
13675fi
13676
13677rm -f conftest.err conftest.$ac_ext
13678{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679echo "${ECHO_T}$ac_header_preproc" >&6; }
13680
13681# So?  What about this header?
13682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683  yes:no: )
13684    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13687echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13688    ac_header_preproc=yes
13689    ;;
13690  no:yes:* )
13691    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13692echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13693    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13694echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13695    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13696echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13697    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13698echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13699    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13700echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13701    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13702echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13703    ( cat <<\_ASBOX
13704## ------------------------------------ ##
13705## Report this to http://llvm.org/bugs/ ##
13706## ------------------------------------ ##
13707_ASBOX
13708     ) | sed "s/^/$as_me: WARNING:     /" >&2
13709    ;;
13710esac
13711{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13712echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13713if test "${ac_cv_header_opagent_h+set}" = set; then
13714  echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716  ac_cv_header_opagent_h=$ac_header_preproc
13717fi
13718{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13719echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13720
13721fi
13722if test $ac_cv_header_opagent_h = yes; then
13723  :
13724else
13725
13726          echo "Error! You need to have opagent.h around."
13727          exit -1
13728
13729fi
13730
13731
13732      fi
13733
13734else
13735
13736      USE_OPROFILE=0
13737
13738
13739fi
13740
13741
13742cat >>confdefs.h <<_ACEOF
13743#define USE_OPROFILE $USE_OPROFILE
13744_ACEOF
13745
13746
13747
13748
13749
13750
13751
13752
13753ac_header_dirent=no
13754for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13755  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13756{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13757echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13759  echo $ECHO_N "(cached) $ECHO_C" >&6
13760else
13761  cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h.  */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h.  */
13767#include <sys/types.h>
13768#include <$ac_hdr>
13769
13770int
13771main ()
13772{
13773if ((DIR *) 0)
13774return 0;
13775  ;
13776  return 0;
13777}
13778_ACEOF
13779rm -f conftest.$ac_objext
13780if { (ac_try="$ac_compile"
13781case "(($ac_try" in
13782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783  *) ac_try_echo=$ac_try;;
13784esac
13785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786  (eval "$ac_compile") 2>conftest.er1
13787  ac_status=$?
13788  grep -v '^ *+' conftest.er1 >conftest.err
13789  rm -f conftest.er1
13790  cat conftest.err >&5
13791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); } &&
13793	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794  { (case "(($ac_try" in
13795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796  *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799  (eval "$ac_try") 2>&5
13800  ac_status=$?
13801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802  (exit $ac_status); }; } &&
13803	 { ac_try='test -s conftest.$ac_objext'
13804  { (case "(($ac_try" in
13805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806  *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809  (eval "$ac_try") 2>&5
13810  ac_status=$?
13811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812  (exit $ac_status); }; }; then
13813  eval "$as_ac_Header=yes"
13814else
13815  echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818	eval "$as_ac_Header=no"
13819fi
13820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822fi
13823ac_res=`eval echo '${'$as_ac_Header'}'`
13824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13825echo "${ECHO_T}$ac_res" >&6; }
13826if test `eval echo '${'$as_ac_Header'}'` = yes; then
13827  cat >>confdefs.h <<_ACEOF
13828#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13829_ACEOF
13830
13831ac_header_dirent=$ac_hdr; break
13832fi
13833
13834done
13835# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13836if test $ac_header_dirent = dirent.h; then
13837  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839if test "${ac_cv_search_opendir+set}" = set; then
13840  echo $ECHO_N "(cached) $ECHO_C" >&6
13841else
13842  ac_func_search_save_LIBS=$LIBS
13843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h.  */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
13848/* end confdefs.h.  */
13849
13850/* Override any GCC internal prototype to avoid an error.
13851   Use char because int might match the return type of a GCC
13852   builtin and then its argument prototype would still apply.  */
13853#ifdef __cplusplus
13854extern "C"
13855#endif
13856char opendir ();
13857int
13858main ()
13859{
13860return opendir ();
13861  ;
13862  return 0;
13863}
13864_ACEOF
13865for ac_lib in '' dir; do
13866  if test -z "$ac_lib"; then
13867    ac_res="none required"
13868  else
13869    ac_res=-l$ac_lib
13870    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13871  fi
13872  rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (ac_try="$ac_link"
13874case "(($ac_try" in
13875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876  *) ac_try_echo=$ac_try;;
13877esac
13878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879  (eval "$ac_link") 2>conftest.er1
13880  ac_status=$?
13881  grep -v '^ *+' conftest.er1 >conftest.err
13882  rm -f conftest.er1
13883  cat conftest.err >&5
13884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885  (exit $ac_status); } &&
13886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887  { (case "(($ac_try" in
13888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889  *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892  (eval "$ac_try") 2>&5
13893  ac_status=$?
13894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895  (exit $ac_status); }; } &&
13896	 { ac_try='test -s conftest$ac_exeext'
13897  { (case "(($ac_try" in
13898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899  *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902  (eval "$ac_try") 2>&5
13903  ac_status=$?
13904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905  (exit $ac_status); }; }; then
13906  ac_cv_search_opendir=$ac_res
13907else
13908  echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
13912fi
13913
13914rm -f core conftest.err conftest.$ac_objext \
13915      conftest$ac_exeext
13916  if test "${ac_cv_search_opendir+set}" = set; then
13917  break
13918fi
13919done
13920if test "${ac_cv_search_opendir+set}" = set; then
13921  :
13922else
13923  ac_cv_search_opendir=no
13924fi
13925rm conftest.$ac_ext
13926LIBS=$ac_func_search_save_LIBS
13927fi
13928{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13930ac_res=$ac_cv_search_opendir
13931if test "$ac_res" != no; then
13932  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933
13934fi
13935
13936else
13937  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13938echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13939if test "${ac_cv_search_opendir+set}" = set; then
13940  echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942  ac_func_search_save_LIBS=$LIBS
13943cat >conftest.$ac_ext <<_ACEOF
13944/* confdefs.h.  */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h.  */
13949
13950/* Override any GCC internal prototype to avoid an error.
13951   Use char because int might match the return type of a GCC
13952   builtin and then its argument prototype would still apply.  */
13953#ifdef __cplusplus
13954extern "C"
13955#endif
13956char opendir ();
13957int
13958main ()
13959{
13960return opendir ();
13961  ;
13962  return 0;
13963}
13964_ACEOF
13965for ac_lib in '' x; do
13966  if test -z "$ac_lib"; then
13967    ac_res="none required"
13968  else
13969    ac_res=-l$ac_lib
13970    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13971  fi
13972  rm -f conftest.$ac_objext conftest$ac_exeext
13973if { (ac_try="$ac_link"
13974case "(($ac_try" in
13975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976  *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979  (eval "$ac_link") 2>conftest.er1
13980  ac_status=$?
13981  grep -v '^ *+' conftest.er1 >conftest.err
13982  rm -f conftest.er1
13983  cat conftest.err >&5
13984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985  (exit $ac_status); } &&
13986	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987  { (case "(($ac_try" in
13988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989  *) ac_try_echo=$ac_try;;
13990esac
13991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992  (eval "$ac_try") 2>&5
13993  ac_status=$?
13994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995  (exit $ac_status); }; } &&
13996	 { ac_try='test -s conftest$ac_exeext'
13997  { (case "(($ac_try" in
13998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999  *) ac_try_echo=$ac_try;;
14000esac
14001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002  (eval "$ac_try") 2>&5
14003  ac_status=$?
14004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005  (exit $ac_status); }; }; then
14006  ac_cv_search_opendir=$ac_res
14007else
14008  echo "$as_me: failed program was:" >&5
14009sed 's/^/| /' conftest.$ac_ext >&5
14010
14011
14012fi
14013
14014rm -f core conftest.err conftest.$ac_objext \
14015      conftest$ac_exeext
14016  if test "${ac_cv_search_opendir+set}" = set; then
14017  break
14018fi
14019done
14020if test "${ac_cv_search_opendir+set}" = set; then
14021  :
14022else
14023  ac_cv_search_opendir=no
14024fi
14025rm conftest.$ac_ext
14026LIBS=$ac_func_search_save_LIBS
14027fi
14028{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14029echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14030ac_res=$ac_cv_search_opendir
14031if test "$ac_res" != no; then
14032  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033
14034fi
14035
14036fi
14037
14038{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14039echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14040if test "${ac_cv_header_mmap_anon+set}" = set; then
14041  echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043   ac_ext=c
14044ac_cpp='$CPP $CPPFLAGS'
14045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047ac_compiler_gnu=$ac_cv_c_compiler_gnu
14048
14049  cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h.  */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h.  */
14055#include <sys/mman.h>
14056#include <unistd.h>
14057#include <fcntl.h>
14058int
14059main ()
14060{
14061mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14062  ;
14063  return 0;
14064}
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (ac_try="$ac_compile"
14068case "(($ac_try" in
14069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070  *) ac_try_echo=$ac_try;;
14071esac
14072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073  (eval "$ac_compile") 2>conftest.er1
14074  ac_status=$?
14075  grep -v '^ *+' conftest.er1 >conftest.err
14076  rm -f conftest.er1
14077  cat conftest.err >&5
14078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079  (exit $ac_status); } &&
14080	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081  { (case "(($ac_try" in
14082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083  *) ac_try_echo=$ac_try;;
14084esac
14085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086  (eval "$ac_try") 2>&5
14087  ac_status=$?
14088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089  (exit $ac_status); }; } &&
14090	 { ac_try='test -s conftest.$ac_objext'
14091  { (case "(($ac_try" in
14092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093  *) ac_try_echo=$ac_try;;
14094esac
14095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096  (eval "$ac_try") 2>&5
14097  ac_status=$?
14098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099  (exit $ac_status); }; }; then
14100  ac_cv_header_mmap_anon=yes
14101else
14102  echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
14105	ac_cv_header_mmap_anon=no
14106fi
14107
14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109  ac_ext=c
14110ac_cpp='$CPP $CPPFLAGS'
14111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113ac_compiler_gnu=$ac_cv_c_compiler_gnu
14114
14115
14116fi
14117{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14118echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14119if test "$ac_cv_header_mmap_anon" = yes; then
14120
14121cat >>confdefs.h <<\_ACEOF
14122#define HAVE_MMAP_ANONYMOUS 1
14123_ACEOF
14124
14125fi
14126
14127{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14128echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14129if test "${ac_cv_header_stat_broken+set}" = set; then
14130  echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132  cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h.  */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h.  */
14138#include <sys/types.h>
14139#include <sys/stat.h>
14140
14141#if defined S_ISBLK && defined S_IFDIR
14142# if S_ISBLK (S_IFDIR)
14143You lose.
14144# endif
14145#endif
14146
14147#if defined S_ISBLK && defined S_IFCHR
14148# if S_ISBLK (S_IFCHR)
14149You lose.
14150# endif
14151#endif
14152
14153#if defined S_ISLNK && defined S_IFREG
14154# if S_ISLNK (S_IFREG)
14155You lose.
14156# endif
14157#endif
14158
14159#if defined S_ISSOCK && defined S_IFREG
14160# if S_ISSOCK (S_IFREG)
14161You lose.
14162# endif
14163#endif
14164
14165_ACEOF
14166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14167  $EGREP "You lose" >/dev/null 2>&1; then
14168  ac_cv_header_stat_broken=yes
14169else
14170  ac_cv_header_stat_broken=no
14171fi
14172rm -f conftest*
14173
14174fi
14175{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14176echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14177if test $ac_cv_header_stat_broken = yes; then
14178
14179cat >>confdefs.h <<\_ACEOF
14180#define STAT_MACROS_BROKEN 1
14181_ACEOF
14182
14183fi
14184
14185{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14186echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14187if test "${ac_cv_header_sys_wait_h+set}" = set; then
14188  echo $ECHO_N "(cached) $ECHO_C" >&6
14189else
14190  cat >conftest.$ac_ext <<_ACEOF
14191/* confdefs.h.  */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h.  */
14196#include <sys/types.h>
14197#include <sys/wait.h>
14198#ifndef WEXITSTATUS
14199# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14200#endif
14201#ifndef WIFEXITED
14202# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14203#endif
14204
14205int
14206main ()
14207{
14208  int s;
14209  wait (&s);
14210  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14211  ;
14212  return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext
14216if { (ac_try="$ac_compile"
14217case "(($ac_try" in
14218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219  *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222  (eval "$ac_compile") 2>conftest.er1
14223  ac_status=$?
14224  grep -v '^ *+' conftest.er1 >conftest.err
14225  rm -f conftest.er1
14226  cat conftest.err >&5
14227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228  (exit $ac_status); } &&
14229	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230  { (case "(($ac_try" in
14231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232  *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235  (eval "$ac_try") 2>&5
14236  ac_status=$?
14237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238  (exit $ac_status); }; } &&
14239	 { ac_try='test -s conftest.$ac_objext'
14240  { (case "(($ac_try" in
14241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242  *) ac_try_echo=$ac_try;;
14243esac
14244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245  (eval "$ac_try") 2>&5
14246  ac_status=$?
14247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248  (exit $ac_status); }; }; then
14249  ac_cv_header_sys_wait_h=yes
14250else
14251  echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254	ac_cv_header_sys_wait_h=no
14255fi
14256
14257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258fi
14259{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14260echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14261if test $ac_cv_header_sys_wait_h = yes; then
14262
14263cat >>confdefs.h <<\_ACEOF
14264#define HAVE_SYS_WAIT_H 1
14265_ACEOF
14266
14267fi
14268
14269{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14270echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14271if test "${ac_cv_header_time+set}" = set; then
14272  echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274  cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h.  */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h.  */
14280#include <sys/types.h>
14281#include <sys/time.h>
14282#include <time.h>
14283
14284int
14285main ()
14286{
14287if ((struct tm *) 0)
14288return 0;
14289  ;
14290  return 0;
14291}
14292_ACEOF
14293rm -f conftest.$ac_objext
14294if { (ac_try="$ac_compile"
14295case "(($ac_try" in
14296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297  *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300  (eval "$ac_compile") 2>conftest.er1
14301  ac_status=$?
14302  grep -v '^ *+' conftest.er1 >conftest.err
14303  rm -f conftest.er1
14304  cat conftest.err >&5
14305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306  (exit $ac_status); } &&
14307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308  { (case "(($ac_try" in
14309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310  *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313  (eval "$ac_try") 2>&5
14314  ac_status=$?
14315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316  (exit $ac_status); }; } &&
14317	 { ac_try='test -s conftest.$ac_objext'
14318  { (case "(($ac_try" in
14319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320  *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323  (eval "$ac_try") 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); }; }; then
14327  ac_cv_header_time=yes
14328else
14329  echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332	ac_cv_header_time=no
14333fi
14334
14335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336fi
14337{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14338echo "${ECHO_T}$ac_cv_header_time" >&6; }
14339if test $ac_cv_header_time = yes; then
14340
14341cat >>confdefs.h <<\_ACEOF
14342#define TIME_WITH_SYS_TIME 1
14343_ACEOF
14344
14345fi
14346
14347
14348
14349
14350
14351
14352
14353
14354for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14355do
14356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14358  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361  echo $ECHO_N "(cached) $ECHO_C" >&6
14362fi
14363ac_res=`eval echo '${'$as_ac_Header'}'`
14364	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14365echo "${ECHO_T}$ac_res" >&6; }
14366else
14367  # Is the header compilable?
14368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14370cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h.  */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
14375/* end confdefs.h.  */
14376$ac_includes_default
14377#include <$ac_header>
14378_ACEOF
14379rm -f conftest.$ac_objext
14380if { (ac_try="$ac_compile"
14381case "(($ac_try" in
14382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383  *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386  (eval "$ac_compile") 2>conftest.er1
14387  ac_status=$?
14388  grep -v '^ *+' conftest.er1 >conftest.err
14389  rm -f conftest.er1
14390  cat conftest.err >&5
14391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392  (exit $ac_status); } &&
14393	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394  { (case "(($ac_try" in
14395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396  *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399  (eval "$ac_try") 2>&5
14400  ac_status=$?
14401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402  (exit $ac_status); }; } &&
14403	 { ac_try='test -s conftest.$ac_objext'
14404  { (case "(($ac_try" in
14405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406  *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409  (eval "$ac_try") 2>&5
14410  ac_status=$?
14411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412  (exit $ac_status); }; }; then
14413  ac_header_compiler=yes
14414else
14415  echo "$as_me: failed program was:" >&5
14416sed 's/^/| /' conftest.$ac_ext >&5
14417
14418	ac_header_compiler=no
14419fi
14420
14421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423echo "${ECHO_T}$ac_header_compiler" >&6; }
14424
14425# Is the header present?
14426{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h.  */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h.  */
14434#include <$ac_header>
14435_ACEOF
14436if { (ac_try="$ac_cpp conftest.$ac_ext"
14437case "(($ac_try" in
14438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439  *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443  ac_status=$?
14444  grep -v '^ *+' conftest.er1 >conftest.err
14445  rm -f conftest.er1
14446  cat conftest.err >&5
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); } >/dev/null; then
14449  if test -s conftest.err; then
14450    ac_cpp_err=$ac_c_preproc_warn_flag
14451    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14452  else
14453    ac_cpp_err=
14454  fi
14455else
14456  ac_cpp_err=yes
14457fi
14458if test -z "$ac_cpp_err"; then
14459  ac_header_preproc=yes
14460else
14461  echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464  ac_header_preproc=no
14465fi
14466
14467rm -f conftest.err conftest.$ac_ext
14468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14469echo "${ECHO_T}$ac_header_preproc" >&6; }
14470
14471# So?  What about this header?
14472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14473  yes:no: )
14474    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14478    ac_header_preproc=yes
14479    ;;
14480  no:yes:* )
14481    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14483    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14484echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14485    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14487    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14488echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14489    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14491    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14493    ( cat <<\_ASBOX
14494## ------------------------------------ ##
14495## Report this to http://llvm.org/bugs/ ##
14496## ------------------------------------ ##
14497_ASBOX
14498     ) | sed "s/^/$as_me: WARNING:     /" >&2
14499    ;;
14500esac
14501{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504  echo $ECHO_N "(cached) $ECHO_C" >&6
14505else
14506  eval "$as_ac_Header=\$ac_header_preproc"
14507fi
14508ac_res=`eval echo '${'$as_ac_Header'}'`
14509	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14510echo "${ECHO_T}$ac_res" >&6; }
14511
14512fi
14513if test `eval echo '${'$as_ac_Header'}'` = yes; then
14514  cat >>confdefs.h <<_ACEOF
14515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14516_ACEOF
14517
14518fi
14519
14520done
14521
14522
14523
14524
14525
14526
14527
14528for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14529do
14530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535  echo $ECHO_N "(cached) $ECHO_C" >&6
14536fi
14537ac_res=`eval echo '${'$as_ac_Header'}'`
14538	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14539echo "${ECHO_T}$ac_res" >&6; }
14540else
14541  # Is the header compilable?
14542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h.  */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h.  */
14550$ac_includes_default
14551#include <$ac_header>
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (ac_try="$ac_compile"
14555case "(($ac_try" in
14556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557  *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560  (eval "$ac_compile") 2>conftest.er1
14561  ac_status=$?
14562  grep -v '^ *+' conftest.er1 >conftest.err
14563  rm -f conftest.er1
14564  cat conftest.err >&5
14565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566  (exit $ac_status); } &&
14567	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568  { (case "(($ac_try" in
14569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570  *) ac_try_echo=$ac_try;;
14571esac
14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573  (eval "$ac_try") 2>&5
14574  ac_status=$?
14575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576  (exit $ac_status); }; } &&
14577	 { ac_try='test -s conftest.$ac_objext'
14578  { (case "(($ac_try" in
14579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580  *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583  (eval "$ac_try") 2>&5
14584  ac_status=$?
14585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586  (exit $ac_status); }; }; then
14587  ac_header_compiler=yes
14588else
14589  echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592	ac_header_compiler=no
14593fi
14594
14595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597echo "${ECHO_T}$ac_header_compiler" >&6; }
14598
14599# Is the header present?
14600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h.  */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h.  */
14608#include <$ac_header>
14609_ACEOF
14610if { (ac_try="$ac_cpp conftest.$ac_ext"
14611case "(($ac_try" in
14612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613  *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617  ac_status=$?
14618  grep -v '^ *+' conftest.er1 >conftest.err
14619  rm -f conftest.er1
14620  cat conftest.err >&5
14621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622  (exit $ac_status); } >/dev/null; then
14623  if test -s conftest.err; then
14624    ac_cpp_err=$ac_c_preproc_warn_flag
14625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14626  else
14627    ac_cpp_err=
14628  fi
14629else
14630  ac_cpp_err=yes
14631fi
14632if test -z "$ac_cpp_err"; then
14633  ac_header_preproc=yes
14634else
14635  echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638  ac_header_preproc=no
14639fi
14640
14641rm -f conftest.err conftest.$ac_ext
14642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643echo "${ECHO_T}$ac_header_preproc" >&6; }
14644
14645# So?  What about this header?
14646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647  yes:no: )
14648    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652    ac_header_preproc=yes
14653    ;;
14654  no:yes:* )
14655    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14658echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14659    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14662echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14667    ( cat <<\_ASBOX
14668## ------------------------------------ ##
14669## Report this to http://llvm.org/bugs/ ##
14670## ------------------------------------ ##
14671_ASBOX
14672     ) | sed "s/^/$as_me: WARNING:     /" >&2
14673    ;;
14674esac
14675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678  echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
14680  eval "$as_ac_Header=\$ac_header_preproc"
14681fi
14682ac_res=`eval echo '${'$as_ac_Header'}'`
14683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14684echo "${ECHO_T}$ac_res" >&6; }
14685
14686fi
14687if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688  cat >>confdefs.h <<_ACEOF
14689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14690_ACEOF
14691
14692fi
14693
14694done
14695
14696
14697
14698for ac_header in utime.h windows.h
14699do
14700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14702  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705  echo $ECHO_N "(cached) $ECHO_C" >&6
14706fi
14707ac_res=`eval echo '${'$as_ac_Header'}'`
14708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14709echo "${ECHO_T}$ac_res" >&6; }
14710else
14711  # Is the header compilable?
14712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14714cat >conftest.$ac_ext <<_ACEOF
14715/* confdefs.h.  */
14716_ACEOF
14717cat confdefs.h >>conftest.$ac_ext
14718cat >>conftest.$ac_ext <<_ACEOF
14719/* end confdefs.h.  */
14720$ac_includes_default
14721#include <$ac_header>
14722_ACEOF
14723rm -f conftest.$ac_objext
14724if { (ac_try="$ac_compile"
14725case "(($ac_try" in
14726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727  *) ac_try_echo=$ac_try;;
14728esac
14729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730  (eval "$ac_compile") 2>conftest.er1
14731  ac_status=$?
14732  grep -v '^ *+' conftest.er1 >conftest.err
14733  rm -f conftest.er1
14734  cat conftest.err >&5
14735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736  (exit $ac_status); } &&
14737	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738  { (case "(($ac_try" in
14739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740  *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743  (eval "$ac_try") 2>&5
14744  ac_status=$?
14745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746  (exit $ac_status); }; } &&
14747	 { ac_try='test -s conftest.$ac_objext'
14748  { (case "(($ac_try" in
14749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750  *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753  (eval "$ac_try") 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); }; }; then
14757  ac_header_compiler=yes
14758else
14759  echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762	ac_header_compiler=no
14763fi
14764
14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14767echo "${ECHO_T}$ac_header_compiler" >&6; }
14768
14769# Is the header present?
14770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14772cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h.  */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h.  */
14778#include <$ac_header>
14779_ACEOF
14780if { (ac_try="$ac_cpp conftest.$ac_ext"
14781case "(($ac_try" in
14782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783  *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14787  ac_status=$?
14788  grep -v '^ *+' conftest.er1 >conftest.err
14789  rm -f conftest.er1
14790  cat conftest.err >&5
14791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792  (exit $ac_status); } >/dev/null; then
14793  if test -s conftest.err; then
14794    ac_cpp_err=$ac_c_preproc_warn_flag
14795    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14796  else
14797    ac_cpp_err=
14798  fi
14799else
14800  ac_cpp_err=yes
14801fi
14802if test -z "$ac_cpp_err"; then
14803  ac_header_preproc=yes
14804else
14805  echo "$as_me: failed program was:" >&5
14806sed 's/^/| /' conftest.$ac_ext >&5
14807
14808  ac_header_preproc=no
14809fi
14810
14811rm -f conftest.err conftest.$ac_ext
14812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813echo "${ECHO_T}$ac_header_preproc" >&6; }
14814
14815# So?  What about this header?
14816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817  yes:no: )
14818    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822    ac_header_preproc=yes
14823    ;;
14824  no:yes:* )
14825    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14828echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14829    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14832echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14833    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837    ( cat <<\_ASBOX
14838## ------------------------------------ ##
14839## Report this to http://llvm.org/bugs/ ##
14840## ------------------------------------ ##
14841_ASBOX
14842     ) | sed "s/^/$as_me: WARNING:     /" >&2
14843    ;;
14844esac
14845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848  echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850  eval "$as_ac_Header=\$ac_header_preproc"
14851fi
14852ac_res=`eval echo '${'$as_ac_Header'}'`
14853	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14854echo "${ECHO_T}$ac_res" >&6; }
14855
14856fi
14857if test `eval echo '${'$as_ac_Header'}'` = yes; then
14858  cat >>confdefs.h <<_ACEOF
14859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14860_ACEOF
14861
14862fi
14863
14864done
14865
14866
14867
14868
14869
14870
14871for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14872do
14873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878  echo $ECHO_N "(cached) $ECHO_C" >&6
14879fi
14880ac_res=`eval echo '${'$as_ac_Header'}'`
14881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14882echo "${ECHO_T}$ac_res" >&6; }
14883else
14884  # Is the header compilable?
14885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887cat >conftest.$ac_ext <<_ACEOF
14888/* confdefs.h.  */
14889_ACEOF
14890cat confdefs.h >>conftest.$ac_ext
14891cat >>conftest.$ac_ext <<_ACEOF
14892/* end confdefs.h.  */
14893$ac_includes_default
14894#include <$ac_header>
14895_ACEOF
14896rm -f conftest.$ac_objext
14897if { (ac_try="$ac_compile"
14898case "(($ac_try" in
14899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900  *) ac_try_echo=$ac_try;;
14901esac
14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903  (eval "$ac_compile") 2>conftest.er1
14904  ac_status=$?
14905  grep -v '^ *+' conftest.er1 >conftest.err
14906  rm -f conftest.er1
14907  cat conftest.err >&5
14908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909  (exit $ac_status); } &&
14910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911  { (case "(($ac_try" in
14912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913  *) ac_try_echo=$ac_try;;
14914esac
14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916  (eval "$ac_try") 2>&5
14917  ac_status=$?
14918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919  (exit $ac_status); }; } &&
14920	 { ac_try='test -s conftest.$ac_objext'
14921  { (case "(($ac_try" in
14922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923  *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926  (eval "$ac_try") 2>&5
14927  ac_status=$?
14928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929  (exit $ac_status); }; }; then
14930  ac_header_compiler=yes
14931else
14932  echo "$as_me: failed program was:" >&5
14933sed 's/^/| /' conftest.$ac_ext >&5
14934
14935	ac_header_compiler=no
14936fi
14937
14938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940echo "${ECHO_T}$ac_header_compiler" >&6; }
14941
14942# Is the header present?
14943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h.  */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h.  */
14951#include <$ac_header>
14952_ACEOF
14953if { (ac_try="$ac_cpp conftest.$ac_ext"
14954case "(($ac_try" in
14955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956  *) ac_try_echo=$ac_try;;
14957esac
14958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14960  ac_status=$?
14961  grep -v '^ *+' conftest.er1 >conftest.err
14962  rm -f conftest.er1
14963  cat conftest.err >&5
14964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965  (exit $ac_status); } >/dev/null; then
14966  if test -s conftest.err; then
14967    ac_cpp_err=$ac_c_preproc_warn_flag
14968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14969  else
14970    ac_cpp_err=
14971  fi
14972else
14973  ac_cpp_err=yes
14974fi
14975if test -z "$ac_cpp_err"; then
14976  ac_header_preproc=yes
14977else
14978  echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981  ac_header_preproc=no
14982fi
14983
14984rm -f conftest.err conftest.$ac_ext
14985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986echo "${ECHO_T}$ac_header_preproc" >&6; }
14987
14988# So?  What about this header?
14989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14990  yes:no: )
14991    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995    ac_header_preproc=yes
14996    ;;
14997  no:yes:* )
14998    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15001echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15002    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15005echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15010    ( cat <<\_ASBOX
15011## ------------------------------------ ##
15012## Report this to http://llvm.org/bugs/ ##
15013## ------------------------------------ ##
15014_ASBOX
15015     ) | sed "s/^/$as_me: WARNING:     /" >&2
15016    ;;
15017esac
15018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021  echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023  eval "$as_ac_Header=\$ac_header_preproc"
15024fi
15025ac_res=`eval echo '${'$as_ac_Header'}'`
15026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15027echo "${ECHO_T}$ac_res" >&6; }
15028
15029fi
15030if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031  cat >>confdefs.h <<_ACEOF
15032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15033_ACEOF
15034
15035fi
15036
15037done
15038
15039
15040
15041
15042
15043for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15044do
15045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050  echo $ECHO_N "(cached) $ECHO_C" >&6
15051fi
15052ac_res=`eval echo '${'$as_ac_Header'}'`
15053	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15054echo "${ECHO_T}$ac_res" >&6; }
15055else
15056  # Is the header compilable?
15057{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h.  */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h.  */
15065$ac_includes_default
15066#include <$ac_header>
15067_ACEOF
15068rm -f conftest.$ac_objext
15069if { (ac_try="$ac_compile"
15070case "(($ac_try" in
15071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072  *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075  (eval "$ac_compile") 2>conftest.er1
15076  ac_status=$?
15077  grep -v '^ *+' conftest.er1 >conftest.err
15078  rm -f conftest.er1
15079  cat conftest.err >&5
15080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081  (exit $ac_status); } &&
15082	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083  { (case "(($ac_try" in
15084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085  *) ac_try_echo=$ac_try;;
15086esac
15087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088  (eval "$ac_try") 2>&5
15089  ac_status=$?
15090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091  (exit $ac_status); }; } &&
15092	 { ac_try='test -s conftest.$ac_objext'
15093  { (case "(($ac_try" in
15094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095  *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098  (eval "$ac_try") 2>&5
15099  ac_status=$?
15100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101  (exit $ac_status); }; }; then
15102  ac_header_compiler=yes
15103else
15104  echo "$as_me: failed program was:" >&5
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
15107	ac_header_compiler=no
15108fi
15109
15110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112echo "${ECHO_T}$ac_header_compiler" >&6; }
15113
15114# Is the header present?
15115{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117cat >conftest.$ac_ext <<_ACEOF
15118/* confdefs.h.  */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h.  */
15123#include <$ac_header>
15124_ACEOF
15125if { (ac_try="$ac_cpp conftest.$ac_ext"
15126case "(($ac_try" in
15127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128  *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132  ac_status=$?
15133  grep -v '^ *+' conftest.er1 >conftest.err
15134  rm -f conftest.er1
15135  cat conftest.err >&5
15136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137  (exit $ac_status); } >/dev/null; then
15138  if test -s conftest.err; then
15139    ac_cpp_err=$ac_c_preproc_warn_flag
15140    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15141  else
15142    ac_cpp_err=
15143  fi
15144else
15145  ac_cpp_err=yes
15146fi
15147if test -z "$ac_cpp_err"; then
15148  ac_header_preproc=yes
15149else
15150  echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153  ac_header_preproc=no
15154fi
15155
15156rm -f conftest.err conftest.$ac_ext
15157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158echo "${ECHO_T}$ac_header_preproc" >&6; }
15159
15160# So?  What about this header?
15161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15162  yes:no: )
15163    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167    ac_header_preproc=yes
15168    ;;
15169  no:yes:* )
15170    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15173echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15174    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15177echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15182    ( cat <<\_ASBOX
15183## ------------------------------------ ##
15184## Report this to http://llvm.org/bugs/ ##
15185## ------------------------------------ ##
15186_ASBOX
15187     ) | sed "s/^/$as_me: WARNING:     /" >&2
15188    ;;
15189esac
15190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193  echo $ECHO_N "(cached) $ECHO_C" >&6
15194else
15195  eval "$as_ac_Header=\$ac_header_preproc"
15196fi
15197ac_res=`eval echo '${'$as_ac_Header'}'`
15198	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15199echo "${ECHO_T}$ac_res" >&6; }
15200
15201fi
15202if test `eval echo '${'$as_ac_Header'}'` = yes; then
15203  cat >>confdefs.h <<_ACEOF
15204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15205_ACEOF
15206
15207fi
15208
15209done
15210
15211
15212for ac_header in valgrind/valgrind.h
15213do
15214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15216  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219  echo $ECHO_N "(cached) $ECHO_C" >&6
15220fi
15221ac_res=`eval echo '${'$as_ac_Header'}'`
15222	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15223echo "${ECHO_T}$ac_res" >&6; }
15224else
15225  # Is the header compilable?
15226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15228cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h.  */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h.  */
15234$ac_includes_default
15235#include <$ac_header>
15236_ACEOF
15237rm -f conftest.$ac_objext
15238if { (ac_try="$ac_compile"
15239case "(($ac_try" in
15240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241  *) ac_try_echo=$ac_try;;
15242esac
15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244  (eval "$ac_compile") 2>conftest.er1
15245  ac_status=$?
15246  grep -v '^ *+' conftest.er1 >conftest.err
15247  rm -f conftest.er1
15248  cat conftest.err >&5
15249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250  (exit $ac_status); } &&
15251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252  { (case "(($ac_try" in
15253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254  *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257  (eval "$ac_try") 2>&5
15258  ac_status=$?
15259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260  (exit $ac_status); }; } &&
15261	 { ac_try='test -s conftest.$ac_objext'
15262  { (case "(($ac_try" in
15263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264  *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267  (eval "$ac_try") 2>&5
15268  ac_status=$?
15269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270  (exit $ac_status); }; }; then
15271  ac_header_compiler=yes
15272else
15273  echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276	ac_header_compiler=no
15277fi
15278
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15281echo "${ECHO_T}$ac_header_compiler" >&6; }
15282
15283# Is the header present?
15284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15286cat >conftest.$ac_ext <<_ACEOF
15287/* confdefs.h.  */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h.  */
15292#include <$ac_header>
15293_ACEOF
15294if { (ac_try="$ac_cpp conftest.$ac_ext"
15295case "(($ac_try" in
15296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297  *) ac_try_echo=$ac_try;;
15298esac
15299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301  ac_status=$?
15302  grep -v '^ *+' conftest.er1 >conftest.err
15303  rm -f conftest.er1
15304  cat conftest.err >&5
15305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306  (exit $ac_status); } >/dev/null; then
15307  if test -s conftest.err; then
15308    ac_cpp_err=$ac_c_preproc_warn_flag
15309    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15310  else
15311    ac_cpp_err=
15312  fi
15313else
15314  ac_cpp_err=yes
15315fi
15316if test -z "$ac_cpp_err"; then
15317  ac_header_preproc=yes
15318else
15319  echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322  ac_header_preproc=no
15323fi
15324
15325rm -f conftest.err conftest.$ac_ext
15326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327echo "${ECHO_T}$ac_header_preproc" >&6; }
15328
15329# So?  What about this header?
15330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331  yes:no: )
15332    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336    ac_header_preproc=yes
15337    ;;
15338  no:yes:* )
15339    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15342echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15343    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15346echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15347    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351    ( cat <<\_ASBOX
15352## ------------------------------------ ##
15353## Report this to http://llvm.org/bugs/ ##
15354## ------------------------------------ ##
15355_ASBOX
15356     ) | sed "s/^/$as_me: WARNING:     /" >&2
15357    ;;
15358esac
15359{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362  echo $ECHO_N "(cached) $ECHO_C" >&6
15363else
15364  eval "$as_ac_Header=\$ac_header_preproc"
15365fi
15366ac_res=`eval echo '${'$as_ac_Header'}'`
15367	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15368echo "${ECHO_T}$ac_res" >&6; }
15369
15370fi
15371if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372  cat >>confdefs.h <<_ACEOF
15373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374_ACEOF
15375
15376fi
15377
15378done
15379
15380
15381for ac_header in fenv.h
15382do
15383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388  echo $ECHO_N "(cached) $ECHO_C" >&6
15389fi
15390ac_res=`eval echo '${'$as_ac_Header'}'`
15391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15392echo "${ECHO_T}$ac_res" >&6; }
15393else
15394  # Is the header compilable?
15395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15397cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h.  */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h.  */
15403$ac_includes_default
15404#include <$ac_header>
15405_ACEOF
15406rm -f conftest.$ac_objext
15407if { (ac_try="$ac_compile"
15408case "(($ac_try" in
15409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410  *) ac_try_echo=$ac_try;;
15411esac
15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413  (eval "$ac_compile") 2>conftest.er1
15414  ac_status=$?
15415  grep -v '^ *+' conftest.er1 >conftest.err
15416  rm -f conftest.er1
15417  cat conftest.err >&5
15418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419  (exit $ac_status); } &&
15420	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421  { (case "(($ac_try" in
15422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423  *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426  (eval "$ac_try") 2>&5
15427  ac_status=$?
15428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429  (exit $ac_status); }; } &&
15430	 { ac_try='test -s conftest.$ac_objext'
15431  { (case "(($ac_try" in
15432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433  *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436  (eval "$ac_try") 2>&5
15437  ac_status=$?
15438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439  (exit $ac_status); }; }; then
15440  ac_header_compiler=yes
15441else
15442  echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445	ac_header_compiler=no
15446fi
15447
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15450echo "${ECHO_T}$ac_header_compiler" >&6; }
15451
15452# Is the header present?
15453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15455cat >conftest.$ac_ext <<_ACEOF
15456/* confdefs.h.  */
15457_ACEOF
15458cat confdefs.h >>conftest.$ac_ext
15459cat >>conftest.$ac_ext <<_ACEOF
15460/* end confdefs.h.  */
15461#include <$ac_header>
15462_ACEOF
15463if { (ac_try="$ac_cpp conftest.$ac_ext"
15464case "(($ac_try" in
15465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466  *) ac_try_echo=$ac_try;;
15467esac
15468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15470  ac_status=$?
15471  grep -v '^ *+' conftest.er1 >conftest.err
15472  rm -f conftest.er1
15473  cat conftest.err >&5
15474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475  (exit $ac_status); } >/dev/null; then
15476  if test -s conftest.err; then
15477    ac_cpp_err=$ac_c_preproc_warn_flag
15478    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15479  else
15480    ac_cpp_err=
15481  fi
15482else
15483  ac_cpp_err=yes
15484fi
15485if test -z "$ac_cpp_err"; then
15486  ac_header_preproc=yes
15487else
15488  echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491  ac_header_preproc=no
15492fi
15493
15494rm -f conftest.err conftest.$ac_ext
15495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496echo "${ECHO_T}$ac_header_preproc" >&6; }
15497
15498# So?  What about this header?
15499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500  yes:no: )
15501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15505    ac_header_preproc=yes
15506    ;;
15507  no:yes:* )
15508    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15510    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15511echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15512    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15514    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15515echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15518    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15520    ( cat <<\_ASBOX
15521## ------------------------------------ ##
15522## Report this to http://llvm.org/bugs/ ##
15523## ------------------------------------ ##
15524_ASBOX
15525     ) | sed "s/^/$as_me: WARNING:     /" >&2
15526    ;;
15527esac
15528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531  echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533  eval "$as_ac_Header=\$ac_header_preproc"
15534fi
15535ac_res=`eval echo '${'$as_ac_Header'}'`
15536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15537echo "${ECHO_T}$ac_res" >&6; }
15538
15539fi
15540if test `eval echo '${'$as_ac_Header'}'` = yes; then
15541  cat >>confdefs.h <<_ACEOF
15542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543_ACEOF
15544
15545fi
15546
15547done
15548
15549if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15550
15551for ac_header in pthread.h
15552do
15553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15555  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558  echo $ECHO_N "(cached) $ECHO_C" >&6
15559fi
15560ac_res=`eval echo '${'$as_ac_Header'}'`
15561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15562echo "${ECHO_T}$ac_res" >&6; }
15563else
15564  # Is the header compilable?
15565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15567cat >conftest.$ac_ext <<_ACEOF
15568/* confdefs.h.  */
15569_ACEOF
15570cat confdefs.h >>conftest.$ac_ext
15571cat >>conftest.$ac_ext <<_ACEOF
15572/* end confdefs.h.  */
15573$ac_includes_default
15574#include <$ac_header>
15575_ACEOF
15576rm -f conftest.$ac_objext
15577if { (ac_try="$ac_compile"
15578case "(($ac_try" in
15579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580  *) ac_try_echo=$ac_try;;
15581esac
15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583  (eval "$ac_compile") 2>conftest.er1
15584  ac_status=$?
15585  grep -v '^ *+' conftest.er1 >conftest.err
15586  rm -f conftest.er1
15587  cat conftest.err >&5
15588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589  (exit $ac_status); } &&
15590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591  { (case "(($ac_try" in
15592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593  *) ac_try_echo=$ac_try;;
15594esac
15595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596  (eval "$ac_try") 2>&5
15597  ac_status=$?
15598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599  (exit $ac_status); }; } &&
15600	 { ac_try='test -s conftest.$ac_objext'
15601  { (case "(($ac_try" in
15602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603  *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606  (eval "$ac_try") 2>&5
15607  ac_status=$?
15608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609  (exit $ac_status); }; }; then
15610  ac_header_compiler=yes
15611else
15612  echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615	ac_header_compiler=no
15616fi
15617
15618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620echo "${ECHO_T}$ac_header_compiler" >&6; }
15621
15622# Is the header present?
15623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15625cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h.  */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h.  */
15631#include <$ac_header>
15632_ACEOF
15633if { (ac_try="$ac_cpp conftest.$ac_ext"
15634case "(($ac_try" in
15635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636  *) ac_try_echo=$ac_try;;
15637esac
15638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15640  ac_status=$?
15641  grep -v '^ *+' conftest.er1 >conftest.err
15642  rm -f conftest.er1
15643  cat conftest.err >&5
15644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645  (exit $ac_status); } >/dev/null; then
15646  if test -s conftest.err; then
15647    ac_cpp_err=$ac_c_preproc_warn_flag
15648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649  else
15650    ac_cpp_err=
15651  fi
15652else
15653  ac_cpp_err=yes
15654fi
15655if test -z "$ac_cpp_err"; then
15656  ac_header_preproc=yes
15657else
15658  echo "$as_me: failed program was:" >&5
15659sed 's/^/| /' conftest.$ac_ext >&5
15660
15661  ac_header_preproc=no
15662fi
15663
15664rm -f conftest.err conftest.$ac_ext
15665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666echo "${ECHO_T}$ac_header_preproc" >&6; }
15667
15668# So?  What about this header?
15669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15670  yes:no: )
15671    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15675    ac_header_preproc=yes
15676    ;;
15677  no:yes:* )
15678    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15680    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15681echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15682    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15684    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15685echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15688    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15690    ( cat <<\_ASBOX
15691## ------------------------------------ ##
15692## Report this to http://llvm.org/bugs/ ##
15693## ------------------------------------ ##
15694_ASBOX
15695     ) | sed "s/^/$as_me: WARNING:     /" >&2
15696    ;;
15697esac
15698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701  echo $ECHO_N "(cached) $ECHO_C" >&6
15702else
15703  eval "$as_ac_Header=\$ac_header_preproc"
15704fi
15705ac_res=`eval echo '${'$as_ac_Header'}'`
15706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15707echo "${ECHO_T}$ac_res" >&6; }
15708
15709fi
15710if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711  cat >>confdefs.h <<_ACEOF
15712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15713_ACEOF
15714 HAVE_PTHREAD=1
15715
15716else
15717  HAVE_PTHREAD=0
15718
15719fi
15720
15721done
15722
15723else
15724  HAVE_PTHREAD=0
15725
15726fi
15727
15728if test "$llvm_cv_enable_libffi" = "yes" ; then
15729
15730
15731for ac_header in ffi.h ffi/ffi.h
15732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738  echo $ECHO_N "(cached) $ECHO_C" >&6
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743else
15744  # Is the header compilable?
15745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h.  */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h.  */
15753$ac_includes_default
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760  *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763  (eval "$ac_compile") 2>conftest.er1
15764  ac_status=$?
15765  grep -v '^ *+' conftest.er1 >conftest.err
15766  rm -f conftest.er1
15767  cat conftest.err >&5
15768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769  (exit $ac_status); } &&
15770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771  { (case "(($ac_try" in
15772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773  *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776  (eval "$ac_try") 2>&5
15777  ac_status=$?
15778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779  (exit $ac_status); }; } &&
15780	 { ac_try='test -s conftest.$ac_objext'
15781  { (case "(($ac_try" in
15782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783  *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786  (eval "$ac_try") 2>&5
15787  ac_status=$?
15788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789  (exit $ac_status); }; }; then
15790  ac_header_compiler=yes
15791else
15792  echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795	ac_header_compiler=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802# Is the header present?
15803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h.  */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h.  */
15811#include <$ac_header>
15812_ACEOF
15813if { (ac_try="$ac_cpp conftest.$ac_ext"
15814case "(($ac_try" in
15815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816  *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820  ac_status=$?
15821  grep -v '^ *+' conftest.er1 >conftest.err
15822  rm -f conftest.er1
15823  cat conftest.err >&5
15824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825  (exit $ac_status); } >/dev/null; then
15826  if test -s conftest.err; then
15827    ac_cpp_err=$ac_c_preproc_warn_flag
15828    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829  else
15830    ac_cpp_err=
15831  fi
15832else
15833  ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836  ac_header_preproc=yes
15837else
15838  echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841  ac_header_preproc=no
15842fi
15843
15844rm -f conftest.err conftest.$ac_ext
15845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848# So?  What about this header?
15849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850  yes:no: )
15851    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855    ac_header_preproc=yes
15856    ;;
15857  no:yes:* )
15858    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15861echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15862    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15865echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870    ( cat <<\_ASBOX
15871## ------------------------------------ ##
15872## Report this to http://llvm.org/bugs/ ##
15873## ------------------------------------ ##
15874_ASBOX
15875     ) | sed "s/^/$as_me: WARNING:     /" >&2
15876    ;;
15877esac
15878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881  echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883  eval "$as_ac_Header=\$ac_header_preproc"
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891  cat >>confdefs.h <<_ACEOF
15892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893_ACEOF
15894
15895fi
15896
15897done
15898
15899fi
15900
15901
15902for ac_header in CrashReporterClient.h
15903do
15904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909  echo $ECHO_N "(cached) $ECHO_C" >&6
15910fi
15911ac_res=`eval echo '${'$as_ac_Header'}'`
15912	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15913echo "${ECHO_T}$ac_res" >&6; }
15914else
15915  # Is the header compilable?
15916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15918cat >conftest.$ac_ext <<_ACEOF
15919/* confdefs.h.  */
15920_ACEOF
15921cat confdefs.h >>conftest.$ac_ext
15922cat >>conftest.$ac_ext <<_ACEOF
15923/* end confdefs.h.  */
15924$ac_includes_default
15925#include <$ac_header>
15926_ACEOF
15927rm -f conftest.$ac_objext
15928if { (ac_try="$ac_compile"
15929case "(($ac_try" in
15930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931  *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934  (eval "$ac_compile") 2>conftest.er1
15935  ac_status=$?
15936  grep -v '^ *+' conftest.er1 >conftest.err
15937  rm -f conftest.er1
15938  cat conftest.err >&5
15939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940  (exit $ac_status); } &&
15941	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15942  { (case "(($ac_try" in
15943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944  *) ac_try_echo=$ac_try;;
15945esac
15946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947  (eval "$ac_try") 2>&5
15948  ac_status=$?
15949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950  (exit $ac_status); }; } &&
15951	 { ac_try='test -s conftest.$ac_objext'
15952  { (case "(($ac_try" in
15953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954  *) ac_try_echo=$ac_try;;
15955esac
15956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957  (eval "$ac_try") 2>&5
15958  ac_status=$?
15959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960  (exit $ac_status); }; }; then
15961  ac_header_compiler=yes
15962else
15963  echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966	ac_header_compiler=no
15967fi
15968
15969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15971echo "${ECHO_T}$ac_header_compiler" >&6; }
15972
15973# Is the header present?
15974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15976cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h.  */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h.  */
15982#include <$ac_header>
15983_ACEOF
15984if { (ac_try="$ac_cpp conftest.$ac_ext"
15985case "(($ac_try" in
15986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987  *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15991  ac_status=$?
15992  grep -v '^ *+' conftest.er1 >conftest.err
15993  rm -f conftest.er1
15994  cat conftest.err >&5
15995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996  (exit $ac_status); } >/dev/null; then
15997  if test -s conftest.err; then
15998    ac_cpp_err=$ac_c_preproc_warn_flag
15999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16000  else
16001    ac_cpp_err=
16002  fi
16003else
16004  ac_cpp_err=yes
16005fi
16006if test -z "$ac_cpp_err"; then
16007  ac_header_preproc=yes
16008else
16009  echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012  ac_header_preproc=no
16013fi
16014
16015rm -f conftest.err conftest.$ac_ext
16016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16017echo "${ECHO_T}$ac_header_preproc" >&6; }
16018
16019# So?  What about this header?
16020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021  yes:no: )
16022    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16026    ac_header_preproc=yes
16027    ;;
16028  no:yes:* )
16029    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16031    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16032echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16033    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16035    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16036echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16039    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16041    ( cat <<\_ASBOX
16042## ------------------------------------ ##
16043## Report this to http://llvm.org/bugs/ ##
16044## ------------------------------------ ##
16045_ASBOX
16046     ) | sed "s/^/$as_me: WARNING:     /" >&2
16047    ;;
16048esac
16049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052  echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054  eval "$as_ac_Header=\$ac_header_preproc"
16055fi
16056ac_res=`eval echo '${'$as_ac_Header'}'`
16057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16058echo "${ECHO_T}$ac_res" >&6; }
16059
16060fi
16061if test `eval echo '${'$as_ac_Header'}'` = yes; then
16062  cat >>confdefs.h <<_ACEOF
16063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16064_ACEOF
16065
16066fi
16067
16068done
16069
16070
16071{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16072echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h.  */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h.  */
16079extern const char *__crashreporter_info__;
16080      int main() {
16081        __crashreporter_info__ = "test";
16082        return 0;
16083      }
16084
16085_ACEOF
16086rm -f conftest.$ac_objext conftest$ac_exeext
16087if { (ac_try="$ac_link"
16088case "(($ac_try" in
16089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090  *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093  (eval "$ac_link") 2>conftest.er1
16094  ac_status=$?
16095  grep -v '^ *+' conftest.er1 >conftest.err
16096  rm -f conftest.er1
16097  cat conftest.err >&5
16098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099  (exit $ac_status); } &&
16100	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101  { (case "(($ac_try" in
16102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103  *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106  (eval "$ac_try") 2>&5
16107  ac_status=$?
16108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109  (exit $ac_status); }; } &&
16110	 { ac_try='test -s conftest$ac_exeext'
16111  { (case "(($ac_try" in
16112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113  *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116  (eval "$ac_try") 2>&5
16117  ac_status=$?
16118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119  (exit $ac_status); }; }; then
16120  { echo "$as_me:$LINENO: result: yes" >&5
16121echo "${ECHO_T}yes" >&6; }
16122
16123cat >>confdefs.h <<\_ACEOF
16124#define HAVE_CRASHREPORTER_INFO 1
16125_ACEOF
16126
16127else
16128  echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131	{ echo "$as_me:$LINENO: result: no" >&5
16132echo "${ECHO_T}no" >&6; }
16133
16134cat >>confdefs.h <<\_ACEOF
16135#define HAVE_CRASHREPORTER_INFO 0
16136_ACEOF
16137
16138fi
16139
16140rm -f core conftest.err conftest.$ac_objext \
16141      conftest$ac_exeext conftest.$ac_ext
16142
16143
16144
16145
16146  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16147echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16148if test "${ac_cv_huge_val_sanity+set}" = set; then
16149  echo $ECHO_N "(cached) $ECHO_C" >&6
16150else
16151
16152    ac_ext=cpp
16153ac_cpp='$CXXCPP $CPPFLAGS'
16154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16157
16158    ac_save_CXXFLAGS=$CXXFLAGS
16159    CXXFLAGS=-pedantic
16160    if test "$cross_compiling" = yes; then
16161  ac_cv_huge_val_sanity=yes
16162else
16163  cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h.  */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h.  */
16169#include <math.h>
16170int
16171main ()
16172{
16173double x = HUGE_VAL; return x != x;
16174  ;
16175  return 0;
16176}
16177_ACEOF
16178rm -f conftest$ac_exeext
16179if { (ac_try="$ac_link"
16180case "(($ac_try" in
16181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182  *) ac_try_echo=$ac_try;;
16183esac
16184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185  (eval "$ac_link") 2>&5
16186  ac_status=$?
16187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16189  { (case "(($ac_try" in
16190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191  *) ac_try_echo=$ac_try;;
16192esac
16193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194  (eval "$ac_try") 2>&5
16195  ac_status=$?
16196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197  (exit $ac_status); }; }; then
16198  ac_cv_huge_val_sanity=yes
16199else
16200  echo "$as_me: program exited with status $ac_status" >&5
16201echo "$as_me: failed program was:" >&5
16202sed 's/^/| /' conftest.$ac_ext >&5
16203
16204( exit $ac_status )
16205ac_cv_huge_val_sanity=no
16206fi
16207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16208fi
16209
16210
16211    CXXFLAGS=$ac_save_CXXFLAGS
16212    ac_ext=c
16213ac_cpp='$CPP $CPPFLAGS'
16214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216ac_compiler_gnu=$ac_cv_c_compiler_gnu
16217
16218
16219fi
16220{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16221echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16222  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16223
16224
16225{ echo "$as_me:$LINENO: checking for pid_t" >&5
16226echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16227if test "${ac_cv_type_pid_t+set}" = set; then
16228  echo $ECHO_N "(cached) $ECHO_C" >&6
16229else
16230  cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h.  */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h.  */
16236$ac_includes_default
16237typedef pid_t ac__type_new_;
16238int
16239main ()
16240{
16241if ((ac__type_new_ *) 0)
16242  return 0;
16243if (sizeof (ac__type_new_))
16244  return 0;
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (ac_try="$ac_compile"
16251case "(($ac_try" in
16252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253  *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256  (eval "$ac_compile") 2>conftest.er1
16257  ac_status=$?
16258  grep -v '^ *+' conftest.er1 >conftest.err
16259  rm -f conftest.er1
16260  cat conftest.err >&5
16261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262  (exit $ac_status); } &&
16263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264  { (case "(($ac_try" in
16265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266  *) ac_try_echo=$ac_try;;
16267esac
16268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269  (eval "$ac_try") 2>&5
16270  ac_status=$?
16271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272  (exit $ac_status); }; } &&
16273	 { ac_try='test -s conftest.$ac_objext'
16274  { (case "(($ac_try" in
16275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276  *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279  (eval "$ac_try") 2>&5
16280  ac_status=$?
16281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282  (exit $ac_status); }; }; then
16283  ac_cv_type_pid_t=yes
16284else
16285  echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288	ac_cv_type_pid_t=no
16289fi
16290
16291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292fi
16293{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16294echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16295if test $ac_cv_type_pid_t = yes; then
16296  :
16297else
16298
16299cat >>confdefs.h <<_ACEOF
16300#define pid_t int
16301_ACEOF
16302
16303fi
16304
16305{ echo "$as_me:$LINENO: checking for size_t" >&5
16306echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16307if test "${ac_cv_type_size_t+set}" = set; then
16308  echo $ECHO_N "(cached) $ECHO_C" >&6
16309else
16310  cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h.  */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h.  */
16316$ac_includes_default
16317typedef size_t ac__type_new_;
16318int
16319main ()
16320{
16321if ((ac__type_new_ *) 0)
16322  return 0;
16323if (sizeof (ac__type_new_))
16324  return 0;
16325  ;
16326  return 0;
16327}
16328_ACEOF
16329rm -f conftest.$ac_objext
16330if { (ac_try="$ac_compile"
16331case "(($ac_try" in
16332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333  *) ac_try_echo=$ac_try;;
16334esac
16335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336  (eval "$ac_compile") 2>conftest.er1
16337  ac_status=$?
16338  grep -v '^ *+' conftest.er1 >conftest.err
16339  rm -f conftest.er1
16340  cat conftest.err >&5
16341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342  (exit $ac_status); } &&
16343	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344  { (case "(($ac_try" in
16345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346  *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349  (eval "$ac_try") 2>&5
16350  ac_status=$?
16351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352  (exit $ac_status); }; } &&
16353	 { ac_try='test -s conftest.$ac_objext'
16354  { (case "(($ac_try" in
16355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356  *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359  (eval "$ac_try") 2>&5
16360  ac_status=$?
16361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362  (exit $ac_status); }; }; then
16363  ac_cv_type_size_t=yes
16364else
16365  echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368	ac_cv_type_size_t=no
16369fi
16370
16371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372fi
16373{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16374echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16375if test $ac_cv_type_size_t = yes; then
16376  :
16377else
16378
16379cat >>confdefs.h <<_ACEOF
16380#define size_t unsigned int
16381_ACEOF
16382
16383fi
16384
16385
16386cat >>confdefs.h <<_ACEOF
16387#define RETSIGTYPE void
16388_ACEOF
16389
16390{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16391echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16392if test "${ac_cv_struct_tm+set}" = set; then
16393  echo $ECHO_N "(cached) $ECHO_C" >&6
16394else
16395  cat >conftest.$ac_ext <<_ACEOF
16396/* confdefs.h.  */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h.  */
16401#include <sys/types.h>
16402#include <time.h>
16403
16404int
16405main ()
16406{
16407struct tm *tp; tp->tm_sec;
16408  ;
16409  return 0;
16410}
16411_ACEOF
16412rm -f conftest.$ac_objext
16413if { (ac_try="$ac_compile"
16414case "(($ac_try" in
16415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416  *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419  (eval "$ac_compile") 2>conftest.er1
16420  ac_status=$?
16421  grep -v '^ *+' conftest.er1 >conftest.err
16422  rm -f conftest.er1
16423  cat conftest.err >&5
16424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425  (exit $ac_status); } &&
16426	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16427  { (case "(($ac_try" in
16428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429  *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432  (eval "$ac_try") 2>&5
16433  ac_status=$?
16434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435  (exit $ac_status); }; } &&
16436	 { ac_try='test -s conftest.$ac_objext'
16437  { (case "(($ac_try" in
16438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439  *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442  (eval "$ac_try") 2>&5
16443  ac_status=$?
16444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445  (exit $ac_status); }; }; then
16446  ac_cv_struct_tm=time.h
16447else
16448  echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451	ac_cv_struct_tm=sys/time.h
16452fi
16453
16454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455fi
16456{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16457echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16458if test $ac_cv_struct_tm = sys/time.h; then
16459
16460cat >>confdefs.h <<\_ACEOF
16461#define TM_IN_SYS_TIME 1
16462_ACEOF
16463
16464fi
16465
16466{ echo "$as_me:$LINENO: checking for int64_t" >&5
16467echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16468if test "${ac_cv_type_int64_t+set}" = set; then
16469  echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471  cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h.  */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h.  */
16477$ac_includes_default
16478typedef int64_t ac__type_new_;
16479int
16480main ()
16481{
16482if ((ac__type_new_ *) 0)
16483  return 0;
16484if (sizeof (ac__type_new_))
16485  return 0;
16486  ;
16487  return 0;
16488}
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (ac_try="$ac_compile"
16492case "(($ac_try" in
16493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494  *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497  (eval "$ac_compile") 2>conftest.er1
16498  ac_status=$?
16499  grep -v '^ *+' conftest.er1 >conftest.err
16500  rm -f conftest.er1
16501  cat conftest.err >&5
16502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503  (exit $ac_status); } &&
16504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505  { (case "(($ac_try" in
16506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507  *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510  (eval "$ac_try") 2>&5
16511  ac_status=$?
16512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513  (exit $ac_status); }; } &&
16514	 { ac_try='test -s conftest.$ac_objext'
16515  { (case "(($ac_try" in
16516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517  *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520  (eval "$ac_try") 2>&5
16521  ac_status=$?
16522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523  (exit $ac_status); }; }; then
16524  ac_cv_type_int64_t=yes
16525else
16526  echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529	ac_cv_type_int64_t=no
16530fi
16531
16532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533fi
16534{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16535echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16536if test $ac_cv_type_int64_t = yes; then
16537
16538cat >>confdefs.h <<_ACEOF
16539#define HAVE_INT64_T 1
16540_ACEOF
16541
16542
16543else
16544  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16545echo "$as_me: error: Type int64_t required but not found" >&2;}
16546   { (exit 1); exit 1; }; }
16547fi
16548
16549{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16550echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16551if test "${ac_cv_type_uint64_t+set}" = set; then
16552  echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554  cat >conftest.$ac_ext <<_ACEOF
16555/* confdefs.h.  */
16556_ACEOF
16557cat confdefs.h >>conftest.$ac_ext
16558cat >>conftest.$ac_ext <<_ACEOF
16559/* end confdefs.h.  */
16560$ac_includes_default
16561typedef uint64_t ac__type_new_;
16562int
16563main ()
16564{
16565if ((ac__type_new_ *) 0)
16566  return 0;
16567if (sizeof (ac__type_new_))
16568  return 0;
16569  ;
16570  return 0;
16571}
16572_ACEOF
16573rm -f conftest.$ac_objext
16574if { (ac_try="$ac_compile"
16575case "(($ac_try" in
16576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577  *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580  (eval "$ac_compile") 2>conftest.er1
16581  ac_status=$?
16582  grep -v '^ *+' conftest.er1 >conftest.err
16583  rm -f conftest.er1
16584  cat conftest.err >&5
16585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586  (exit $ac_status); } &&
16587	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16588  { (case "(($ac_try" in
16589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590  *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593  (eval "$ac_try") 2>&5
16594  ac_status=$?
16595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596  (exit $ac_status); }; } &&
16597	 { ac_try='test -s conftest.$ac_objext'
16598  { (case "(($ac_try" in
16599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600  *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603  (eval "$ac_try") 2>&5
16604  ac_status=$?
16605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606  (exit $ac_status); }; }; then
16607  ac_cv_type_uint64_t=yes
16608else
16609  echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612	ac_cv_type_uint64_t=no
16613fi
16614
16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616fi
16617{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16618echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16619if test $ac_cv_type_uint64_t = yes; then
16620
16621cat >>confdefs.h <<_ACEOF
16622#define HAVE_UINT64_T 1
16623_ACEOF
16624
16625
16626else
16627  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16628echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16629if test "${ac_cv_type_u_int64_t+set}" = set; then
16630  echo $ECHO_N "(cached) $ECHO_C" >&6
16631else
16632  cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h.  */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h.  */
16638$ac_includes_default
16639typedef u_int64_t ac__type_new_;
16640int
16641main ()
16642{
16643if ((ac__type_new_ *) 0)
16644  return 0;
16645if (sizeof (ac__type_new_))
16646  return 0;
16647  ;
16648  return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (ac_try="$ac_compile"
16653case "(($ac_try" in
16654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655  *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658  (eval "$ac_compile") 2>conftest.er1
16659  ac_status=$?
16660  grep -v '^ *+' conftest.er1 >conftest.err
16661  rm -f conftest.er1
16662  cat conftest.err >&5
16663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664  (exit $ac_status); } &&
16665	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666  { (case "(($ac_try" in
16667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668  *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671  (eval "$ac_try") 2>&5
16672  ac_status=$?
16673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674  (exit $ac_status); }; } &&
16675	 { ac_try='test -s conftest.$ac_objext'
16676  { (case "(($ac_try" in
16677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678  *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681  (eval "$ac_try") 2>&5
16682  ac_status=$?
16683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684  (exit $ac_status); }; }; then
16685  ac_cv_type_u_int64_t=yes
16686else
16687  echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5
16689
16690	ac_cv_type_u_int64_t=no
16691fi
16692
16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694fi
16695{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16696echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16697if test $ac_cv_type_u_int64_t = yes; then
16698
16699cat >>confdefs.h <<_ACEOF
16700#define HAVE_U_INT64_T 1
16701_ACEOF
16702
16703
16704else
16705  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16706echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16707   { (exit 1); exit 1; }; }
16708fi
16709
16710fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16722do
16723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16727  echo $ECHO_N "(cached) $ECHO_C" >&6
16728else
16729  cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h.  */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h.  */
16735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16737#define $ac_func innocuous_$ac_func
16738
16739/* System header to define __stub macros and hopefully few prototypes,
16740    which can conflict with char $ac_func (); below.
16741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16742    <limits.h> exists even on freestanding compilers.  */
16743
16744#ifdef __STDC__
16745# include <limits.h>
16746#else
16747# include <assert.h>
16748#endif
16749
16750#undef $ac_func
16751
16752/* Override any GCC internal prototype to avoid an error.
16753   Use char because int might match the return type of a GCC
16754   builtin and then its argument prototype would still apply.  */
16755#ifdef __cplusplus
16756extern "C"
16757#endif
16758char $ac_func ();
16759/* The GNU C library defines this for functions which it implements
16760    to always fail with ENOSYS.  Some functions are actually named
16761    something starting with __ and the normal name is an alias.  */
16762#if defined __stub_$ac_func || defined __stub___$ac_func
16763choke me
16764#endif
16765
16766int
16767main ()
16768{
16769return $ac_func ();
16770  ;
16771  return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext conftest$ac_exeext
16775if { (ac_try="$ac_link"
16776case "(($ac_try" in
16777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778  *) ac_try_echo=$ac_try;;
16779esac
16780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781  (eval "$ac_link") 2>conftest.er1
16782  ac_status=$?
16783  grep -v '^ *+' conftest.er1 >conftest.err
16784  rm -f conftest.er1
16785  cat conftest.err >&5
16786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787  (exit $ac_status); } &&
16788	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789  { (case "(($ac_try" in
16790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791  *) ac_try_echo=$ac_try;;
16792esac
16793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794  (eval "$ac_try") 2>&5
16795  ac_status=$?
16796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797  (exit $ac_status); }; } &&
16798	 { ac_try='test -s conftest$ac_exeext'
16799  { (case "(($ac_try" in
16800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801  *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804  (eval "$ac_try") 2>&5
16805  ac_status=$?
16806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807  (exit $ac_status); }; }; then
16808  eval "$as_ac_var=yes"
16809else
16810  echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813	eval "$as_ac_var=no"
16814fi
16815
16816rm -f core conftest.err conftest.$ac_objext \
16817      conftest$ac_exeext conftest.$ac_ext
16818fi
16819ac_res=`eval echo '${'$as_ac_var'}'`
16820	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16821echo "${ECHO_T}$ac_res" >&6; }
16822if test `eval echo '${'$as_ac_var'}'` = yes; then
16823  cat >>confdefs.h <<_ACEOF
16824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16825_ACEOF
16826
16827fi
16828done
16829
16830
16831
16832
16833
16834for ac_func in powf fmodf strtof round
16835do
16836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840  echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842  cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h.  */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h.  */
16848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16850#define $ac_func innocuous_$ac_func
16851
16852/* System header to define __stub macros and hopefully few prototypes,
16853    which can conflict with char $ac_func (); below.
16854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855    <limits.h> exists even on freestanding compilers.  */
16856
16857#ifdef __STDC__
16858# include <limits.h>
16859#else
16860# include <assert.h>
16861#endif
16862
16863#undef $ac_func
16864
16865/* Override any GCC internal prototype to avoid an error.
16866   Use char because int might match the return type of a GCC
16867   builtin and then its argument prototype would still apply.  */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871char $ac_func ();
16872/* The GNU C library defines this for functions which it implements
16873    to always fail with ENOSYS.  Some functions are actually named
16874    something starting with __ and the normal name is an alias.  */
16875#if defined __stub_$ac_func || defined __stub___$ac_func
16876choke me
16877#endif
16878
16879int
16880main ()
16881{
16882return $ac_func ();
16883  ;
16884  return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
16888if { (ac_try="$ac_link"
16889case "(($ac_try" in
16890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891  *) ac_try_echo=$ac_try;;
16892esac
16893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894  (eval "$ac_link") 2>conftest.er1
16895  ac_status=$?
16896  grep -v '^ *+' conftest.er1 >conftest.err
16897  rm -f conftest.er1
16898  cat conftest.err >&5
16899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900  (exit $ac_status); } &&
16901	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902  { (case "(($ac_try" in
16903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904  *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907  (eval "$ac_try") 2>&5
16908  ac_status=$?
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); }; } &&
16911	 { ac_try='test -s conftest$ac_exeext'
16912  { (case "(($ac_try" in
16913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914  *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917  (eval "$ac_try") 2>&5
16918  ac_status=$?
16919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); }; }; then
16921  eval "$as_ac_var=yes"
16922else
16923  echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926	eval "$as_ac_var=no"
16927fi
16928
16929rm -f core conftest.err conftest.$ac_objext \
16930      conftest$ac_exeext conftest.$ac_ext
16931fi
16932ac_res=`eval echo '${'$as_ac_var'}'`
16933	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16934echo "${ECHO_T}$ac_res" >&6; }
16935if test `eval echo '${'$as_ac_var'}'` = yes; then
16936  cat >>confdefs.h <<_ACEOF
16937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938_ACEOF
16939
16940fi
16941done
16942
16943
16944
16945
16946
16947
16948for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16949do
16950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16954  echo $ECHO_N "(cached) $ECHO_C" >&6
16955else
16956  cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h.  */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h.  */
16962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16964#define $ac_func innocuous_$ac_func
16965
16966/* System header to define __stub macros and hopefully few prototypes,
16967    which can conflict with char $ac_func (); below.
16968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969    <limits.h> exists even on freestanding compilers.  */
16970
16971#ifdef __STDC__
16972# include <limits.h>
16973#else
16974# include <assert.h>
16975#endif
16976
16977#undef $ac_func
16978
16979/* Override any GCC internal prototype to avoid an error.
16980   Use char because int might match the return type of a GCC
16981   builtin and then its argument prototype would still apply.  */
16982#ifdef __cplusplus
16983extern "C"
16984#endif
16985char $ac_func ();
16986/* The GNU C library defines this for functions which it implements
16987    to always fail with ENOSYS.  Some functions are actually named
16988    something starting with __ and the normal name is an alias.  */
16989#if defined __stub_$ac_func || defined __stub___$ac_func
16990choke me
16991#endif
16992
16993int
16994main ()
16995{
16996return $ac_func ();
16997  ;
16998  return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext conftest$ac_exeext
17002if { (ac_try="$ac_link"
17003case "(($ac_try" in
17004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005  *) ac_try_echo=$ac_try;;
17006esac
17007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008  (eval "$ac_link") 2>conftest.er1
17009  ac_status=$?
17010  grep -v '^ *+' conftest.er1 >conftest.err
17011  rm -f conftest.er1
17012  cat conftest.err >&5
17013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014  (exit $ac_status); } &&
17015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016  { (case "(($ac_try" in
17017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018  *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021  (eval "$ac_try") 2>&5
17022  ac_status=$?
17023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024  (exit $ac_status); }; } &&
17025	 { ac_try='test -s conftest$ac_exeext'
17026  { (case "(($ac_try" in
17027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028  *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031  (eval "$ac_try") 2>&5
17032  ac_status=$?
17033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034  (exit $ac_status); }; }; then
17035  eval "$as_ac_var=yes"
17036else
17037  echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
17040	eval "$as_ac_var=no"
17041fi
17042
17043rm -f core conftest.err conftest.$ac_objext \
17044      conftest$ac_exeext conftest.$ac_ext
17045fi
17046ac_res=`eval echo '${'$as_ac_var'}'`
17047	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17048echo "${ECHO_T}$ac_res" >&6; }
17049if test `eval echo '${'$as_ac_var'}'` = yes; then
17050  cat >>confdefs.h <<_ACEOF
17051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17052_ACEOF
17053
17054fi
17055done
17056
17057
17058
17059
17060for ac_func in isatty mkdtemp mkstemp
17061do
17062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17066  echo $ECHO_N "(cached) $ECHO_C" >&6
17067else
17068  cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h.  */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h.  */
17074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17076#define $ac_func innocuous_$ac_func
17077
17078/* System header to define __stub macros and hopefully few prototypes,
17079    which can conflict with char $ac_func (); below.
17080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081    <limits.h> exists even on freestanding compilers.  */
17082
17083#ifdef __STDC__
17084# include <limits.h>
17085#else
17086# include <assert.h>
17087#endif
17088
17089#undef $ac_func
17090
17091/* Override any GCC internal prototype to avoid an error.
17092   Use char because int might match the return type of a GCC
17093   builtin and then its argument prototype would still apply.  */
17094#ifdef __cplusplus
17095extern "C"
17096#endif
17097char $ac_func ();
17098/* The GNU C library defines this for functions which it implements
17099    to always fail with ENOSYS.  Some functions are actually named
17100    something starting with __ and the normal name is an alias.  */
17101#if defined __stub_$ac_func || defined __stub___$ac_func
17102choke me
17103#endif
17104
17105int
17106main ()
17107{
17108return $ac_func ();
17109  ;
17110  return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117  *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120  (eval "$ac_link") 2>conftest.er1
17121  ac_status=$?
17122  grep -v '^ *+' conftest.er1 >conftest.err
17123  rm -f conftest.er1
17124  cat conftest.err >&5
17125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126  (exit $ac_status); } &&
17127	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128  { (case "(($ac_try" in
17129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130  *) ac_try_echo=$ac_try;;
17131esac
17132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133  (eval "$ac_try") 2>&5
17134  ac_status=$?
17135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136  (exit $ac_status); }; } &&
17137	 { ac_try='test -s conftest$ac_exeext'
17138  { (case "(($ac_try" in
17139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140  *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143  (eval "$ac_try") 2>&5
17144  ac_status=$?
17145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146  (exit $ac_status); }; }; then
17147  eval "$as_ac_var=yes"
17148else
17149  echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152	eval "$as_ac_var=no"
17153fi
17154
17155rm -f core conftest.err conftest.$ac_objext \
17156      conftest$ac_exeext conftest.$ac_ext
17157fi
17158ac_res=`eval echo '${'$as_ac_var'}'`
17159	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17160echo "${ECHO_T}$ac_res" >&6; }
17161if test `eval echo '${'$as_ac_var'}'` = yes; then
17162  cat >>confdefs.h <<_ACEOF
17163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17164_ACEOF
17165
17166fi
17167done
17168
17169
17170
17171
17172
17173
17174
17175
17176for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17177do
17178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182  echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184  cat >conftest.$ac_ext <<_ACEOF
17185/* confdefs.h.  */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h.  */
17190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17192#define $ac_func innocuous_$ac_func
17193
17194/* System header to define __stub macros and hopefully few prototypes,
17195    which can conflict with char $ac_func (); below.
17196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197    <limits.h> exists even on freestanding compilers.  */
17198
17199#ifdef __STDC__
17200# include <limits.h>
17201#else
17202# include <assert.h>
17203#endif
17204
17205#undef $ac_func
17206
17207/* Override any GCC internal prototype to avoid an error.
17208   Use char because int might match the return type of a GCC
17209   builtin and then its argument prototype would still apply.  */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char $ac_func ();
17214/* The GNU C library defines this for functions which it implements
17215    to always fail with ENOSYS.  Some functions are actually named
17216    something starting with __ and the normal name is an alias.  */
17217#if defined __stub_$ac_func || defined __stub___$ac_func
17218choke me
17219#endif
17220
17221int
17222main ()
17223{
17224return $ac_func ();
17225  ;
17226  return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
17230if { (ac_try="$ac_link"
17231case "(($ac_try" in
17232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233  *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236  (eval "$ac_link") 2>conftest.er1
17237  ac_status=$?
17238  grep -v '^ *+' conftest.er1 >conftest.err
17239  rm -f conftest.er1
17240  cat conftest.err >&5
17241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242  (exit $ac_status); } &&
17243	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244  { (case "(($ac_try" in
17245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246  *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249  (eval "$ac_try") 2>&5
17250  ac_status=$?
17251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252  (exit $ac_status); }; } &&
17253	 { ac_try='test -s conftest$ac_exeext'
17254  { (case "(($ac_try" in
17255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256  *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259  (eval "$ac_try") 2>&5
17260  ac_status=$?
17261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262  (exit $ac_status); }; }; then
17263  eval "$as_ac_var=yes"
17264else
17265  echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268	eval "$as_ac_var=no"
17269fi
17270
17271rm -f core conftest.err conftest.$ac_objext \
17272      conftest$ac_exeext conftest.$ac_ext
17273fi
17274ac_res=`eval echo '${'$as_ac_var'}'`
17275	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17276echo "${ECHO_T}$ac_res" >&6; }
17277if test `eval echo '${'$as_ac_var'}'` = yes; then
17278  cat >>confdefs.h <<_ACEOF
17279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280_ACEOF
17281
17282fi
17283done
17284
17285
17286
17287
17288for ac_func in strerror strerror_r setenv
17289do
17290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294  echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296  cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h.  */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h.  */
17302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17304#define $ac_func innocuous_$ac_func
17305
17306/* System header to define __stub macros and hopefully few prototypes,
17307    which can conflict with char $ac_func (); below.
17308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309    <limits.h> exists even on freestanding compilers.  */
17310
17311#ifdef __STDC__
17312# include <limits.h>
17313#else
17314# include <assert.h>
17315#endif
17316
17317#undef $ac_func
17318
17319/* Override any GCC internal prototype to avoid an error.
17320   Use char because int might match the return type of a GCC
17321   builtin and then its argument prototype would still apply.  */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char $ac_func ();
17326/* The GNU C library defines this for functions which it implements
17327    to always fail with ENOSYS.  Some functions are actually named
17328    something starting with __ and the normal name is an alias.  */
17329#if defined __stub_$ac_func || defined __stub___$ac_func
17330choke me
17331#endif
17332
17333int
17334main ()
17335{
17336return $ac_func ();
17337  ;
17338  return 0;
17339}
17340_ACEOF
17341rm -f conftest.$ac_objext conftest$ac_exeext
17342if { (ac_try="$ac_link"
17343case "(($ac_try" in
17344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345  *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348  (eval "$ac_link") 2>conftest.er1
17349  ac_status=$?
17350  grep -v '^ *+' conftest.er1 >conftest.err
17351  rm -f conftest.er1
17352  cat conftest.err >&5
17353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354  (exit $ac_status); } &&
17355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356  { (case "(($ac_try" in
17357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358  *) ac_try_echo=$ac_try;;
17359esac
17360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361  (eval "$ac_try") 2>&5
17362  ac_status=$?
17363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364  (exit $ac_status); }; } &&
17365	 { ac_try='test -s conftest$ac_exeext'
17366  { (case "(($ac_try" in
17367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368  *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371  (eval "$ac_try") 2>&5
17372  ac_status=$?
17373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374  (exit $ac_status); }; }; then
17375  eval "$as_ac_var=yes"
17376else
17377  echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380	eval "$as_ac_var=no"
17381fi
17382
17383rm -f core conftest.err conftest.$ac_objext \
17384      conftest$ac_exeext conftest.$ac_ext
17385fi
17386ac_res=`eval echo '${'$as_ac_var'}'`
17387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17388echo "${ECHO_T}$ac_res" >&6; }
17389if test `eval echo '${'$as_ac_var'}'` = yes; then
17390  cat >>confdefs.h <<_ACEOF
17391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392_ACEOF
17393
17394fi
17395done
17396
17397
17398
17399
17400
17401for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17402do
17403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17407  echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409  cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h.  */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h.  */
17415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17417#define $ac_func innocuous_$ac_func
17418
17419/* System header to define __stub macros and hopefully few prototypes,
17420    which can conflict with char $ac_func (); below.
17421    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422    <limits.h> exists even on freestanding compilers.  */
17423
17424#ifdef __STDC__
17425# include <limits.h>
17426#else
17427# include <assert.h>
17428#endif
17429
17430#undef $ac_func
17431
17432/* Override any GCC internal prototype to avoid an error.
17433   Use char because int might match the return type of a GCC
17434   builtin and then its argument prototype would still apply.  */
17435#ifdef __cplusplus
17436extern "C"
17437#endif
17438char $ac_func ();
17439/* The GNU C library defines this for functions which it implements
17440    to always fail with ENOSYS.  Some functions are actually named
17441    something starting with __ and the normal name is an alias.  */
17442#if defined __stub_$ac_func || defined __stub___$ac_func
17443choke me
17444#endif
17445
17446int
17447main ()
17448{
17449return $ac_func ();
17450  ;
17451  return 0;
17452}
17453_ACEOF
17454rm -f conftest.$ac_objext conftest$ac_exeext
17455if { (ac_try="$ac_link"
17456case "(($ac_try" in
17457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458  *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461  (eval "$ac_link") 2>conftest.er1
17462  ac_status=$?
17463  grep -v '^ *+' conftest.er1 >conftest.err
17464  rm -f conftest.er1
17465  cat conftest.err >&5
17466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467  (exit $ac_status); } &&
17468	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469  { (case "(($ac_try" in
17470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471  *) ac_try_echo=$ac_try;;
17472esac
17473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474  (eval "$ac_try") 2>&5
17475  ac_status=$?
17476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477  (exit $ac_status); }; } &&
17478	 { ac_try='test -s conftest$ac_exeext'
17479  { (case "(($ac_try" in
17480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481  *) ac_try_echo=$ac_try;;
17482esac
17483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484  (eval "$ac_try") 2>&5
17485  ac_status=$?
17486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487  (exit $ac_status); }; }; then
17488  eval "$as_ac_var=yes"
17489else
17490  echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493	eval "$as_ac_var=no"
17494fi
17495
17496rm -f core conftest.err conftest.$ac_objext \
17497      conftest$ac_exeext conftest.$ac_ext
17498fi
17499ac_res=`eval echo '${'$as_ac_var'}'`
17500	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17501echo "${ECHO_T}$ac_res" >&6; }
17502if test `eval echo '${'$as_ac_var'}'` = yes; then
17503  cat >>confdefs.h <<_ACEOF
17504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17505_ACEOF
17506
17507fi
17508done
17509
17510
17511
17512
17513
17514
17515for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17516do
17517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17521  echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523  cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h.  */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h.  */
17529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17531#define $ac_func innocuous_$ac_func
17532
17533/* System header to define __stub macros and hopefully few prototypes,
17534    which can conflict with char $ac_func (); below.
17535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536    <limits.h> exists even on freestanding compilers.  */
17537
17538#ifdef __STDC__
17539# include <limits.h>
17540#else
17541# include <assert.h>
17542#endif
17543
17544#undef $ac_func
17545
17546/* Override any GCC internal prototype to avoid an error.
17547   Use char because int might match the return type of a GCC
17548   builtin and then its argument prototype would still apply.  */
17549#ifdef __cplusplus
17550extern "C"
17551#endif
17552char $ac_func ();
17553/* The GNU C library defines this for functions which it implements
17554    to always fail with ENOSYS.  Some functions are actually named
17555    something starting with __ and the normal name is an alias.  */
17556#if defined __stub_$ac_func || defined __stub___$ac_func
17557choke me
17558#endif
17559
17560int
17561main ()
17562{
17563return $ac_func ();
17564  ;
17565  return 0;
17566}
17567_ACEOF
17568rm -f conftest.$ac_objext conftest$ac_exeext
17569if { (ac_try="$ac_link"
17570case "(($ac_try" in
17571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572  *) ac_try_echo=$ac_try;;
17573esac
17574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575  (eval "$ac_link") 2>conftest.er1
17576  ac_status=$?
17577  grep -v '^ *+' conftest.er1 >conftest.err
17578  rm -f conftest.er1
17579  cat conftest.err >&5
17580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581  (exit $ac_status); } &&
17582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583  { (case "(($ac_try" in
17584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585  *) ac_try_echo=$ac_try;;
17586esac
17587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588  (eval "$ac_try") 2>&5
17589  ac_status=$?
17590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591  (exit $ac_status); }; } &&
17592	 { ac_try='test -s conftest$ac_exeext'
17593  { (case "(($ac_try" in
17594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595  *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598  (eval "$ac_try") 2>&5
17599  ac_status=$?
17600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601  (exit $ac_status); }; }; then
17602  eval "$as_ac_var=yes"
17603else
17604  echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607	eval "$as_ac_var=no"
17608fi
17609
17610rm -f core conftest.err conftest.$ac_objext \
17611      conftest$ac_exeext conftest.$ac_ext
17612fi
17613ac_res=`eval echo '${'$as_ac_var'}'`
17614	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17615echo "${ECHO_T}$ac_res" >&6; }
17616if test `eval echo '${'$as_ac_var'}'` = yes; then
17617  cat >>confdefs.h <<_ACEOF
17618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17619_ACEOF
17620
17621fi
17622done
17623
17624{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17625echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17626if test "${llvm_cv_c_printf_a+set}" = set; then
17627  echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629  ac_ext=c
17630ac_cpp='$CPP $CPPFLAGS'
17631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633ac_compiler_gnu=$ac_cv_c_compiler_gnu
17634
17635 if test "$cross_compiling" = yes; then
17636  llvmac_cv_c_printf_a=no
17637else
17638  cat >conftest.$ac_ext <<_ACEOF
17639
17640  /* confdefs.h.  */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h.  */
17645
17646#include <stdio.h>
17647#include <stdlib.h>
17648
17649int
17650main ()
17651{
17652
17653volatile double A, B;
17654char Buffer[100];
17655A = 1;
17656A /= 10.0;
17657sprintf(Buffer, "%a", A);
17658B = atof(Buffer);
17659if (A != B)
17660  return (1);
17661if (A != 0x1.999999999999ap-4)
17662  return (1);
17663return (0);
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668rm -f conftest$ac_exeext
17669if { (ac_try="$ac_link"
17670case "(($ac_try" in
17671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672  *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675  (eval "$ac_link") 2>&5
17676  ac_status=$?
17677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679  { (case "(($ac_try" in
17680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681  *) ac_try_echo=$ac_try;;
17682esac
17683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684  (eval "$ac_try") 2>&5
17685  ac_status=$?
17686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687  (exit $ac_status); }; }; then
17688  llvm_cv_c_printf_a=yes
17689else
17690  echo "$as_me: program exited with status $ac_status" >&5
17691echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694( exit $ac_status )
17695llvmac_cv_c_printf_a=no
17696fi
17697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17698fi
17699
17700
17701 ac_ext=c
17702ac_cpp='$CPP $CPPFLAGS'
17703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706
17707fi
17708{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17709echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17710 if test "$llvm_cv_c_printf_a" = "yes"; then
17711
17712cat >>confdefs.h <<\_ACEOF
17713#define HAVE_PRINTF_A 1
17714_ACEOF
17715
17716 fi
17717
17718
17719{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17720echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17721if test "${ac_cv_func_rand48+set}" = set; then
17722  echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724  ac_ext=cpp
17725ac_cpp='$CXXCPP $CPPFLAGS'
17726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17729
17730   cat >conftest.$ac_ext <<_ACEOF
17731/* confdefs.h.  */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
17735/* end confdefs.h.  */
17736#include <stdlib.h>
17737int
17738main ()
17739{
17740srand48(0);lrand48();drand48();
17741  ;
17742  return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (ac_try="$ac_compile"
17747case "(($ac_try" in
17748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749  *) ac_try_echo=$ac_try;;
17750esac
17751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752  (eval "$ac_compile") 2>conftest.er1
17753  ac_status=$?
17754  grep -v '^ *+' conftest.er1 >conftest.err
17755  rm -f conftest.er1
17756  cat conftest.err >&5
17757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758  (exit $ac_status); } &&
17759	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17760  { (case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765  (eval "$ac_try") 2>&5
17766  ac_status=$?
17767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768  (exit $ac_status); }; } &&
17769	 { ac_try='test -s conftest.$ac_objext'
17770  { (case "(($ac_try" in
17771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772  *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775  (eval "$ac_try") 2>&5
17776  ac_status=$?
17777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778  (exit $ac_status); }; }; then
17779  ac_cv_func_rand48=yes
17780else
17781  echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784	ac_cv_func_rand48=no
17785fi
17786
17787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788  ac_ext=c
17789ac_cpp='$CPP $CPPFLAGS'
17790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793
17794fi
17795{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17796echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17797
17798if test "$ac_cv_func_rand48" = "yes" ; then
17799
17800cat >>confdefs.h <<\_ACEOF
17801#define HAVE_RAND48 1
17802_ACEOF
17803
17804fi
17805
17806
17807{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17808echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17809if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17810  echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812  cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h.  */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h.  */
17818$ac_includes_default
17819int
17820main ()
17821{
17822#ifndef strerror_s
17823  char *p = (char *) strerror_s;
17824  return !p;
17825#endif
17826
17827  ;
17828  return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext
17832if { (ac_try="$ac_compile"
17833case "(($ac_try" in
17834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835  *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838  (eval "$ac_compile") 2>conftest.er1
17839  ac_status=$?
17840  grep -v '^ *+' conftest.er1 >conftest.err
17841  rm -f conftest.er1
17842  cat conftest.err >&5
17843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844  (exit $ac_status); } &&
17845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846  { (case "(($ac_try" in
17847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848  *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851  (eval "$ac_try") 2>&5
17852  ac_status=$?
17853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854  (exit $ac_status); }; } &&
17855	 { ac_try='test -s conftest.$ac_objext'
17856  { (case "(($ac_try" in
17857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858  *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861  (eval "$ac_try") 2>&5
17862  ac_status=$?
17863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864  (exit $ac_status); }; }; then
17865  ac_cv_have_decl_strerror_s=yes
17866else
17867  echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870	ac_cv_have_decl_strerror_s=no
17871fi
17872
17873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874fi
17875{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17876echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17877if test $ac_cv_have_decl_strerror_s = yes; then
17878
17879cat >>confdefs.h <<_ACEOF
17880#define HAVE_DECL_STRERROR_S 1
17881_ACEOF
17882
17883
17884else
17885  cat >>confdefs.h <<_ACEOF
17886#define HAVE_DECL_STRERROR_S 0
17887_ACEOF
17888
17889
17890fi
17891
17892
17893
17894if test "$llvm_cv_os_type" = "MingW" ; then
17895  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17896echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17897if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17898  echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900  ac_check_lib_save_LIBS=$LIBS
17901LIBS="-lgcc  $LIBS"
17902cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h.  */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h.  */
17908
17909/* Override any GCC internal prototype to avoid an error.
17910   Use char because int might match the return type of a GCC
17911   builtin and then its argument prototype would still apply.  */
17912#ifdef __cplusplus
17913extern "C"
17914#endif
17915char _alloca ();
17916int
17917main ()
17918{
17919return _alloca ();
17920  ;
17921  return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext conftest$ac_exeext
17925if { (ac_try="$ac_link"
17926case "(($ac_try" in
17927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928  *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931  (eval "$ac_link") 2>conftest.er1
17932  ac_status=$?
17933  grep -v '^ *+' conftest.er1 >conftest.err
17934  rm -f conftest.er1
17935  cat conftest.err >&5
17936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937  (exit $ac_status); } &&
17938	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939  { (case "(($ac_try" in
17940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941  *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944  (eval "$ac_try") 2>&5
17945  ac_status=$?
17946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947  (exit $ac_status); }; } &&
17948	 { ac_try='test -s conftest$ac_exeext'
17949  { (case "(($ac_try" in
17950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951  *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954  (eval "$ac_try") 2>&5
17955  ac_status=$?
17956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957  (exit $ac_status); }; }; then
17958  ac_cv_lib_gcc__alloca=yes
17959else
17960  echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963	ac_cv_lib_gcc__alloca=no
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext \
17967      conftest$ac_exeext conftest.$ac_ext
17968LIBS=$ac_check_lib_save_LIBS
17969fi
17970{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17971echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17972if test $ac_cv_lib_gcc__alloca = yes; then
17973
17974cat >>confdefs.h <<\_ACEOF
17975#define HAVE__ALLOCA 1
17976_ACEOF
17977
17978fi
17979
17980  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17981echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17982if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17983  echo $ECHO_N "(cached) $ECHO_C" >&6
17984else
17985  ac_check_lib_save_LIBS=$LIBS
17986LIBS="-lgcc  $LIBS"
17987cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h.  */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h.  */
17993
17994/* Override any GCC internal prototype to avoid an error.
17995   Use char because int might match the return type of a GCC
17996   builtin and then its argument prototype would still apply.  */
17997#ifdef __cplusplus
17998extern "C"
17999#endif
18000char __alloca ();
18001int
18002main ()
18003{
18004return __alloca ();
18005  ;
18006  return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext conftest$ac_exeext
18010if { (ac_try="$ac_link"
18011case "(($ac_try" in
18012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013  *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016  (eval "$ac_link") 2>conftest.er1
18017  ac_status=$?
18018  grep -v '^ *+' conftest.er1 >conftest.err
18019  rm -f conftest.er1
18020  cat conftest.err >&5
18021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022  (exit $ac_status); } &&
18023	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024  { (case "(($ac_try" in
18025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026  *) ac_try_echo=$ac_try;;
18027esac
18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029  (eval "$ac_try") 2>&5
18030  ac_status=$?
18031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032  (exit $ac_status); }; } &&
18033	 { ac_try='test -s conftest$ac_exeext'
18034  { (case "(($ac_try" in
18035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036  *) ac_try_echo=$ac_try;;
18037esac
18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039  (eval "$ac_try") 2>&5
18040  ac_status=$?
18041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042  (exit $ac_status); }; }; then
18043  ac_cv_lib_gcc___alloca=yes
18044else
18045  echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048	ac_cv_lib_gcc___alloca=no
18049fi
18050
18051rm -f core conftest.err conftest.$ac_objext \
18052      conftest$ac_exeext conftest.$ac_ext
18053LIBS=$ac_check_lib_save_LIBS
18054fi
18055{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18056echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18057if test $ac_cv_lib_gcc___alloca = yes; then
18058
18059cat >>confdefs.h <<\_ACEOF
18060#define HAVE___ALLOCA 1
18061_ACEOF
18062
18063fi
18064
18065  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18066echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18067if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18068  echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070  ac_check_lib_save_LIBS=$LIBS
18071LIBS="-lgcc  $LIBS"
18072cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h.  */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h.  */
18078
18079/* Override any GCC internal prototype to avoid an error.
18080   Use char because int might match the return type of a GCC
18081   builtin and then its argument prototype would still apply.  */
18082#ifdef __cplusplus
18083extern "C"
18084#endif
18085char __chkstk ();
18086int
18087main ()
18088{
18089return __chkstk ();
18090  ;
18091  return 0;
18092}
18093_ACEOF
18094rm -f conftest.$ac_objext conftest$ac_exeext
18095if { (ac_try="$ac_link"
18096case "(($ac_try" in
18097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098  *) ac_try_echo=$ac_try;;
18099esac
18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101  (eval "$ac_link") 2>conftest.er1
18102  ac_status=$?
18103  grep -v '^ *+' conftest.er1 >conftest.err
18104  rm -f conftest.er1
18105  cat conftest.err >&5
18106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107  (exit $ac_status); } &&
18108	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109  { (case "(($ac_try" in
18110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111  *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114  (eval "$ac_try") 2>&5
18115  ac_status=$?
18116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); }; } &&
18118	 { ac_try='test -s conftest$ac_exeext'
18119  { (case "(($ac_try" in
18120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121  *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124  (eval "$ac_try") 2>&5
18125  ac_status=$?
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); }; }; then
18128  ac_cv_lib_gcc___chkstk=yes
18129else
18130  echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133	ac_cv_lib_gcc___chkstk=no
18134fi
18135
18136rm -f core conftest.err conftest.$ac_objext \
18137      conftest$ac_exeext conftest.$ac_ext
18138LIBS=$ac_check_lib_save_LIBS
18139fi
18140{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18141echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18142if test $ac_cv_lib_gcc___chkstk = yes; then
18143
18144cat >>confdefs.h <<\_ACEOF
18145#define HAVE___CHKSTK 1
18146_ACEOF
18147
18148fi
18149
18150  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18151echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18152if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18153  echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155  ac_check_lib_save_LIBS=$LIBS
18156LIBS="-lgcc  $LIBS"
18157cat >conftest.$ac_ext <<_ACEOF
18158/* confdefs.h.  */
18159_ACEOF
18160cat confdefs.h >>conftest.$ac_ext
18161cat >>conftest.$ac_ext <<_ACEOF
18162/* end confdefs.h.  */
18163
18164/* Override any GCC internal prototype to avoid an error.
18165   Use char because int might match the return type of a GCC
18166   builtin and then its argument prototype would still apply.  */
18167#ifdef __cplusplus
18168extern "C"
18169#endif
18170char ___chkstk ();
18171int
18172main ()
18173{
18174return ___chkstk ();
18175  ;
18176  return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext conftest$ac_exeext
18180if { (ac_try="$ac_link"
18181case "(($ac_try" in
18182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183  *) ac_try_echo=$ac_try;;
18184esac
18185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186  (eval "$ac_link") 2>conftest.er1
18187  ac_status=$?
18188  grep -v '^ *+' conftest.er1 >conftest.err
18189  rm -f conftest.er1
18190  cat conftest.err >&5
18191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192  (exit $ac_status); } &&
18193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194  { (case "(($ac_try" in
18195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196  *) ac_try_echo=$ac_try;;
18197esac
18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199  (eval "$ac_try") 2>&5
18200  ac_status=$?
18201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202  (exit $ac_status); }; } &&
18203	 { ac_try='test -s conftest$ac_exeext'
18204  { (case "(($ac_try" in
18205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206  *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209  (eval "$ac_try") 2>&5
18210  ac_status=$?
18211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212  (exit $ac_status); }; }; then
18213  ac_cv_lib_gcc____chkstk=yes
18214else
18215  echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218	ac_cv_lib_gcc____chkstk=no
18219fi
18220
18221rm -f core conftest.err conftest.$ac_objext \
18222      conftest$ac_exeext conftest.$ac_ext
18223LIBS=$ac_check_lib_save_LIBS
18224fi
18225{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18226echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18227if test $ac_cv_lib_gcc____chkstk = yes; then
18228
18229cat >>confdefs.h <<\_ACEOF
18230#define HAVE____CHKSTK 1
18231_ACEOF
18232
18233fi
18234
18235
18236  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18237echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18238if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18239  echo $ECHO_N "(cached) $ECHO_C" >&6
18240else
18241  ac_check_lib_save_LIBS=$LIBS
18242LIBS="-lgcc  $LIBS"
18243cat >conftest.$ac_ext <<_ACEOF
18244/* confdefs.h.  */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h.  */
18249
18250/* Override any GCC internal prototype to avoid an error.
18251   Use char because int might match the return type of a GCC
18252   builtin and then its argument prototype would still apply.  */
18253#ifdef __cplusplus
18254extern "C"
18255#endif
18256char __ashldi3 ();
18257int
18258main ()
18259{
18260return __ashldi3 ();
18261  ;
18262  return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext conftest$ac_exeext
18266if { (ac_try="$ac_link"
18267case "(($ac_try" in
18268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269  *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272  (eval "$ac_link") 2>conftest.er1
18273  ac_status=$?
18274  grep -v '^ *+' conftest.er1 >conftest.err
18275  rm -f conftest.er1
18276  cat conftest.err >&5
18277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278  (exit $ac_status); } &&
18279	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280  { (case "(($ac_try" in
18281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282  *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285  (eval "$ac_try") 2>&5
18286  ac_status=$?
18287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288  (exit $ac_status); }; } &&
18289	 { ac_try='test -s conftest$ac_exeext'
18290  { (case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295  (eval "$ac_try") 2>&5
18296  ac_status=$?
18297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298  (exit $ac_status); }; }; then
18299  ac_cv_lib_gcc___ashldi3=yes
18300else
18301  echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304	ac_cv_lib_gcc___ashldi3=no
18305fi
18306
18307rm -f core conftest.err conftest.$ac_objext \
18308      conftest$ac_exeext conftest.$ac_ext
18309LIBS=$ac_check_lib_save_LIBS
18310fi
18311{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18312echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18313if test $ac_cv_lib_gcc___ashldi3 = yes; then
18314
18315cat >>confdefs.h <<\_ACEOF
18316#define HAVE___ASHLDI3 1
18317_ACEOF
18318
18319fi
18320
18321  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18322echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18323if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18324  echo $ECHO_N "(cached) $ECHO_C" >&6
18325else
18326  ac_check_lib_save_LIBS=$LIBS
18327LIBS="-lgcc  $LIBS"
18328cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h.  */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h.  */
18334
18335/* Override any GCC internal prototype to avoid an error.
18336   Use char because int might match the return type of a GCC
18337   builtin and then its argument prototype would still apply.  */
18338#ifdef __cplusplus
18339extern "C"
18340#endif
18341char __ashrdi3 ();
18342int
18343main ()
18344{
18345return __ashrdi3 ();
18346  ;
18347  return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext conftest$ac_exeext
18351if { (ac_try="$ac_link"
18352case "(($ac_try" in
18353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354  *) ac_try_echo=$ac_try;;
18355esac
18356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357  (eval "$ac_link") 2>conftest.er1
18358  ac_status=$?
18359  grep -v '^ *+' conftest.er1 >conftest.err
18360  rm -f conftest.er1
18361  cat conftest.err >&5
18362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363  (exit $ac_status); } &&
18364	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365  { (case "(($ac_try" in
18366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367  *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370  (eval "$ac_try") 2>&5
18371  ac_status=$?
18372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373  (exit $ac_status); }; } &&
18374	 { ac_try='test -s conftest$ac_exeext'
18375  { (case "(($ac_try" in
18376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377  *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380  (eval "$ac_try") 2>&5
18381  ac_status=$?
18382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }; }; then
18384  ac_cv_lib_gcc___ashrdi3=yes
18385else
18386  echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389	ac_cv_lib_gcc___ashrdi3=no
18390fi
18391
18392rm -f core conftest.err conftest.$ac_objext \
18393      conftest$ac_exeext conftest.$ac_ext
18394LIBS=$ac_check_lib_save_LIBS
18395fi
18396{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18397echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18398if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18399
18400cat >>confdefs.h <<\_ACEOF
18401#define HAVE___ASHRDI3 1
18402_ACEOF
18403
18404fi
18405
18406  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18407echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18408if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18409  echo $ECHO_N "(cached) $ECHO_C" >&6
18410else
18411  ac_check_lib_save_LIBS=$LIBS
18412LIBS="-lgcc  $LIBS"
18413cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h.  */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h.  */
18419
18420/* Override any GCC internal prototype to avoid an error.
18421   Use char because int might match the return type of a GCC
18422   builtin and then its argument prototype would still apply.  */
18423#ifdef __cplusplus
18424extern "C"
18425#endif
18426char __divdi3 ();
18427int
18428main ()
18429{
18430return __divdi3 ();
18431  ;
18432  return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
18436if { (ac_try="$ac_link"
18437case "(($ac_try" in
18438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439  *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442  (eval "$ac_link") 2>conftest.er1
18443  ac_status=$?
18444  grep -v '^ *+' conftest.er1 >conftest.err
18445  rm -f conftest.er1
18446  cat conftest.err >&5
18447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448  (exit $ac_status); } &&
18449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450  { (case "(($ac_try" in
18451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452  *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455  (eval "$ac_try") 2>&5
18456  ac_status=$?
18457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458  (exit $ac_status); }; } &&
18459	 { ac_try='test -s conftest$ac_exeext'
18460  { (case "(($ac_try" in
18461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462  *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465  (eval "$ac_try") 2>&5
18466  ac_status=$?
18467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468  (exit $ac_status); }; }; then
18469  ac_cv_lib_gcc___divdi3=yes
18470else
18471  echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474	ac_cv_lib_gcc___divdi3=no
18475fi
18476
18477rm -f core conftest.err conftest.$ac_objext \
18478      conftest$ac_exeext conftest.$ac_ext
18479LIBS=$ac_check_lib_save_LIBS
18480fi
18481{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18482echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18483if test $ac_cv_lib_gcc___divdi3 = yes; then
18484
18485cat >>confdefs.h <<\_ACEOF
18486#define HAVE___DIVDI3 1
18487_ACEOF
18488
18489fi
18490
18491  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18492echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18493if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18494  echo $ECHO_N "(cached) $ECHO_C" >&6
18495else
18496  ac_check_lib_save_LIBS=$LIBS
18497LIBS="-lgcc  $LIBS"
18498cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h.  */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h.  */
18504
18505/* Override any GCC internal prototype to avoid an error.
18506   Use char because int might match the return type of a GCC
18507   builtin and then its argument prototype would still apply.  */
18508#ifdef __cplusplus
18509extern "C"
18510#endif
18511char __fixdfdi ();
18512int
18513main ()
18514{
18515return __fixdfdi ();
18516  ;
18517  return 0;
18518}
18519_ACEOF
18520rm -f conftest.$ac_objext conftest$ac_exeext
18521if { (ac_try="$ac_link"
18522case "(($ac_try" in
18523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524  *) ac_try_echo=$ac_try;;
18525esac
18526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527  (eval "$ac_link") 2>conftest.er1
18528  ac_status=$?
18529  grep -v '^ *+' conftest.er1 >conftest.err
18530  rm -f conftest.er1
18531  cat conftest.err >&5
18532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533  (exit $ac_status); } &&
18534	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535  { (case "(($ac_try" in
18536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537  *) ac_try_echo=$ac_try;;
18538esac
18539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540  (eval "$ac_try") 2>&5
18541  ac_status=$?
18542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543  (exit $ac_status); }; } &&
18544	 { ac_try='test -s conftest$ac_exeext'
18545  { (case "(($ac_try" in
18546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547  *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550  (eval "$ac_try") 2>&5
18551  ac_status=$?
18552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553  (exit $ac_status); }; }; then
18554  ac_cv_lib_gcc___fixdfdi=yes
18555else
18556  echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559	ac_cv_lib_gcc___fixdfdi=no
18560fi
18561
18562rm -f core conftest.err conftest.$ac_objext \
18563      conftest$ac_exeext conftest.$ac_ext
18564LIBS=$ac_check_lib_save_LIBS
18565fi
18566{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18567echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18568if test $ac_cv_lib_gcc___fixdfdi = yes; then
18569
18570cat >>confdefs.h <<\_ACEOF
18571#define HAVE___FIXDFDI 1
18572_ACEOF
18573
18574fi
18575
18576  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18577echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18578if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18579  echo $ECHO_N "(cached) $ECHO_C" >&6
18580else
18581  ac_check_lib_save_LIBS=$LIBS
18582LIBS="-lgcc  $LIBS"
18583cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h.  */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h.  */
18589
18590/* Override any GCC internal prototype to avoid an error.
18591   Use char because int might match the return type of a GCC
18592   builtin and then its argument prototype would still apply.  */
18593#ifdef __cplusplus
18594extern "C"
18595#endif
18596char __fixsfdi ();
18597int
18598main ()
18599{
18600return __fixsfdi ();
18601  ;
18602  return 0;
18603}
18604_ACEOF
18605rm -f conftest.$ac_objext conftest$ac_exeext
18606if { (ac_try="$ac_link"
18607case "(($ac_try" in
18608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609  *) ac_try_echo=$ac_try;;
18610esac
18611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612  (eval "$ac_link") 2>conftest.er1
18613  ac_status=$?
18614  grep -v '^ *+' conftest.er1 >conftest.err
18615  rm -f conftest.er1
18616  cat conftest.err >&5
18617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618  (exit $ac_status); } &&
18619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620  { (case "(($ac_try" in
18621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622  *) ac_try_echo=$ac_try;;
18623esac
18624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625  (eval "$ac_try") 2>&5
18626  ac_status=$?
18627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628  (exit $ac_status); }; } &&
18629	 { ac_try='test -s conftest$ac_exeext'
18630  { (case "(($ac_try" in
18631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632  *) ac_try_echo=$ac_try;;
18633esac
18634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635  (eval "$ac_try") 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); }; }; then
18639  ac_cv_lib_gcc___fixsfdi=yes
18640else
18641  echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644	ac_cv_lib_gcc___fixsfdi=no
18645fi
18646
18647rm -f core conftest.err conftest.$ac_objext \
18648      conftest$ac_exeext conftest.$ac_ext
18649LIBS=$ac_check_lib_save_LIBS
18650fi
18651{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18652echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18653if test $ac_cv_lib_gcc___fixsfdi = yes; then
18654
18655cat >>confdefs.h <<\_ACEOF
18656#define HAVE___FIXSFDI 1
18657_ACEOF
18658
18659fi
18660
18661  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18662echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18663if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18664  echo $ECHO_N "(cached) $ECHO_C" >&6
18665else
18666  ac_check_lib_save_LIBS=$LIBS
18667LIBS="-lgcc  $LIBS"
18668cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h.  */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h.  */
18674
18675/* Override any GCC internal prototype to avoid an error.
18676   Use char because int might match the return type of a GCC
18677   builtin and then its argument prototype would still apply.  */
18678#ifdef __cplusplus
18679extern "C"
18680#endif
18681char __floatdidf ();
18682int
18683main ()
18684{
18685return __floatdidf ();
18686  ;
18687  return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext conftest$ac_exeext
18691if { (ac_try="$ac_link"
18692case "(($ac_try" in
18693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694  *) ac_try_echo=$ac_try;;
18695esac
18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697  (eval "$ac_link") 2>conftest.er1
18698  ac_status=$?
18699  grep -v '^ *+' conftest.er1 >conftest.err
18700  rm -f conftest.er1
18701  cat conftest.err >&5
18702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703  (exit $ac_status); } &&
18704	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705  { (case "(($ac_try" in
18706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707  *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710  (eval "$ac_try") 2>&5
18711  ac_status=$?
18712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713  (exit $ac_status); }; } &&
18714	 { ac_try='test -s conftest$ac_exeext'
18715  { (case "(($ac_try" in
18716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717  *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720  (eval "$ac_try") 2>&5
18721  ac_status=$?
18722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723  (exit $ac_status); }; }; then
18724  ac_cv_lib_gcc___floatdidf=yes
18725else
18726  echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
18729	ac_cv_lib_gcc___floatdidf=no
18730fi
18731
18732rm -f core conftest.err conftest.$ac_objext \
18733      conftest$ac_exeext conftest.$ac_ext
18734LIBS=$ac_check_lib_save_LIBS
18735fi
18736{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18737echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18738if test $ac_cv_lib_gcc___floatdidf = yes; then
18739
18740cat >>confdefs.h <<\_ACEOF
18741#define HAVE___FLOATDIDF 1
18742_ACEOF
18743
18744fi
18745
18746  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18747echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18748if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18749  echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751  ac_check_lib_save_LIBS=$LIBS
18752LIBS="-lgcc  $LIBS"
18753cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h.  */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h.  */
18759
18760/* Override any GCC internal prototype to avoid an error.
18761   Use char because int might match the return type of a GCC
18762   builtin and then its argument prototype would still apply.  */
18763#ifdef __cplusplus
18764extern "C"
18765#endif
18766char __lshrdi3 ();
18767int
18768main ()
18769{
18770return __lshrdi3 ();
18771  ;
18772  return 0;
18773}
18774_ACEOF
18775rm -f conftest.$ac_objext conftest$ac_exeext
18776if { (ac_try="$ac_link"
18777case "(($ac_try" in
18778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779  *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782  (eval "$ac_link") 2>conftest.er1
18783  ac_status=$?
18784  grep -v '^ *+' conftest.er1 >conftest.err
18785  rm -f conftest.er1
18786  cat conftest.err >&5
18787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788  (exit $ac_status); } &&
18789	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790  { (case "(($ac_try" in
18791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792  *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795  (eval "$ac_try") 2>&5
18796  ac_status=$?
18797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798  (exit $ac_status); }; } &&
18799	 { ac_try='test -s conftest$ac_exeext'
18800  { (case "(($ac_try" in
18801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802  *) ac_try_echo=$ac_try;;
18803esac
18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805  (eval "$ac_try") 2>&5
18806  ac_status=$?
18807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808  (exit $ac_status); }; }; then
18809  ac_cv_lib_gcc___lshrdi3=yes
18810else
18811  echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814	ac_cv_lib_gcc___lshrdi3=no
18815fi
18816
18817rm -f core conftest.err conftest.$ac_objext \
18818      conftest$ac_exeext conftest.$ac_ext
18819LIBS=$ac_check_lib_save_LIBS
18820fi
18821{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18822echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18823if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18824
18825cat >>confdefs.h <<\_ACEOF
18826#define HAVE___LSHRDI3 1
18827_ACEOF
18828
18829fi
18830
18831  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18832echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18833if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18834  echo $ECHO_N "(cached) $ECHO_C" >&6
18835else
18836  ac_check_lib_save_LIBS=$LIBS
18837LIBS="-lgcc  $LIBS"
18838cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h.  */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h.  */
18844
18845/* Override any GCC internal prototype to avoid an error.
18846   Use char because int might match the return type of a GCC
18847   builtin and then its argument prototype would still apply.  */
18848#ifdef __cplusplus
18849extern "C"
18850#endif
18851char __moddi3 ();
18852int
18853main ()
18854{
18855return __moddi3 ();
18856  ;
18857  return 0;
18858}
18859_ACEOF
18860rm -f conftest.$ac_objext conftest$ac_exeext
18861if { (ac_try="$ac_link"
18862case "(($ac_try" in
18863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864  *) ac_try_echo=$ac_try;;
18865esac
18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867  (eval "$ac_link") 2>conftest.er1
18868  ac_status=$?
18869  grep -v '^ *+' conftest.er1 >conftest.err
18870  rm -f conftest.er1
18871  cat conftest.err >&5
18872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873  (exit $ac_status); } &&
18874	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875  { (case "(($ac_try" in
18876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877  *) ac_try_echo=$ac_try;;
18878esac
18879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880  (eval "$ac_try") 2>&5
18881  ac_status=$?
18882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883  (exit $ac_status); }; } &&
18884	 { ac_try='test -s conftest$ac_exeext'
18885  { (case "(($ac_try" in
18886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887  *) ac_try_echo=$ac_try;;
18888esac
18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890  (eval "$ac_try") 2>&5
18891  ac_status=$?
18892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893  (exit $ac_status); }; }; then
18894  ac_cv_lib_gcc___moddi3=yes
18895else
18896  echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
18899	ac_cv_lib_gcc___moddi3=no
18900fi
18901
18902rm -f core conftest.err conftest.$ac_objext \
18903      conftest$ac_exeext conftest.$ac_ext
18904LIBS=$ac_check_lib_save_LIBS
18905fi
18906{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18907echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18908if test $ac_cv_lib_gcc___moddi3 = yes; then
18909
18910cat >>confdefs.h <<\_ACEOF
18911#define HAVE___MODDI3 1
18912_ACEOF
18913
18914fi
18915
18916  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18917echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18918if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18919  echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921  ac_check_lib_save_LIBS=$LIBS
18922LIBS="-lgcc  $LIBS"
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h.  */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h.  */
18929
18930/* Override any GCC internal prototype to avoid an error.
18931   Use char because int might match the return type of a GCC
18932   builtin and then its argument prototype would still apply.  */
18933#ifdef __cplusplus
18934extern "C"
18935#endif
18936char __udivdi3 ();
18937int
18938main ()
18939{
18940return __udivdi3 ();
18941  ;
18942  return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext conftest$ac_exeext
18946if { (ac_try="$ac_link"
18947case "(($ac_try" in
18948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949  *) ac_try_echo=$ac_try;;
18950esac
18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952  (eval "$ac_link") 2>conftest.er1
18953  ac_status=$?
18954  grep -v '^ *+' conftest.er1 >conftest.err
18955  rm -f conftest.er1
18956  cat conftest.err >&5
18957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958  (exit $ac_status); } &&
18959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960  { (case "(($ac_try" in
18961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962  *) ac_try_echo=$ac_try;;
18963esac
18964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965  (eval "$ac_try") 2>&5
18966  ac_status=$?
18967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968  (exit $ac_status); }; } &&
18969	 { ac_try='test -s conftest$ac_exeext'
18970  { (case "(($ac_try" in
18971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972  *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975  (eval "$ac_try") 2>&5
18976  ac_status=$?
18977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978  (exit $ac_status); }; }; then
18979  ac_cv_lib_gcc___udivdi3=yes
18980else
18981  echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984	ac_cv_lib_gcc___udivdi3=no
18985fi
18986
18987rm -f core conftest.err conftest.$ac_objext \
18988      conftest$ac_exeext conftest.$ac_ext
18989LIBS=$ac_check_lib_save_LIBS
18990fi
18991{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18992echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18993if test $ac_cv_lib_gcc___udivdi3 = yes; then
18994
18995cat >>confdefs.h <<\_ACEOF
18996#define HAVE___UDIVDI3 1
18997_ACEOF
18998
18999fi
19000
19001  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19002echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19003if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19004  echo $ECHO_N "(cached) $ECHO_C" >&6
19005else
19006  ac_check_lib_save_LIBS=$LIBS
19007LIBS="-lgcc  $LIBS"
19008cat >conftest.$ac_ext <<_ACEOF
19009/* confdefs.h.  */
19010_ACEOF
19011cat confdefs.h >>conftest.$ac_ext
19012cat >>conftest.$ac_ext <<_ACEOF
19013/* end confdefs.h.  */
19014
19015/* Override any GCC internal prototype to avoid an error.
19016   Use char because int might match the return type of a GCC
19017   builtin and then its argument prototype would still apply.  */
19018#ifdef __cplusplus
19019extern "C"
19020#endif
19021char __umoddi3 ();
19022int
19023main ()
19024{
19025return __umoddi3 ();
19026  ;
19027  return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext conftest$ac_exeext
19031if { (ac_try="$ac_link"
19032case "(($ac_try" in
19033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034  *) ac_try_echo=$ac_try;;
19035esac
19036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037  (eval "$ac_link") 2>conftest.er1
19038  ac_status=$?
19039  grep -v '^ *+' conftest.er1 >conftest.err
19040  rm -f conftest.er1
19041  cat conftest.err >&5
19042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043  (exit $ac_status); } &&
19044	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045  { (case "(($ac_try" in
19046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047  *) ac_try_echo=$ac_try;;
19048esac
19049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050  (eval "$ac_try") 2>&5
19051  ac_status=$?
19052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053  (exit $ac_status); }; } &&
19054	 { ac_try='test -s conftest$ac_exeext'
19055  { (case "(($ac_try" in
19056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057  *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060  (eval "$ac_try") 2>&5
19061  ac_status=$?
19062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063  (exit $ac_status); }; }; then
19064  ac_cv_lib_gcc___umoddi3=yes
19065else
19066  echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069	ac_cv_lib_gcc___umoddi3=no
19070fi
19071
19072rm -f core conftest.err conftest.$ac_objext \
19073      conftest$ac_exeext conftest.$ac_ext
19074LIBS=$ac_check_lib_save_LIBS
19075fi
19076{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19077echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19078if test $ac_cv_lib_gcc___umoddi3 = yes; then
19079
19080cat >>confdefs.h <<\_ACEOF
19081#define HAVE___UMODDI3 1
19082_ACEOF
19083
19084fi
19085
19086
19087  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19088echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19089if test "${ac_cv_lib_gcc___main+set}" = set; then
19090  echo $ECHO_N "(cached) $ECHO_C" >&6
19091else
19092  ac_check_lib_save_LIBS=$LIBS
19093LIBS="-lgcc  $LIBS"
19094cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h.  */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h.  */
19100
19101/* Override any GCC internal prototype to avoid an error.
19102   Use char because int might match the return type of a GCC
19103   builtin and then its argument prototype would still apply.  */
19104#ifdef __cplusplus
19105extern "C"
19106#endif
19107char __main ();
19108int
19109main ()
19110{
19111return __main ();
19112  ;
19113  return 0;
19114}
19115_ACEOF
19116rm -f conftest.$ac_objext conftest$ac_exeext
19117if { (ac_try="$ac_link"
19118case "(($ac_try" in
19119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120  *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123  (eval "$ac_link") 2>conftest.er1
19124  ac_status=$?
19125  grep -v '^ *+' conftest.er1 >conftest.err
19126  rm -f conftest.er1
19127  cat conftest.err >&5
19128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129  (exit $ac_status); } &&
19130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131  { (case "(($ac_try" in
19132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133  *) ac_try_echo=$ac_try;;
19134esac
19135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136  (eval "$ac_try") 2>&5
19137  ac_status=$?
19138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139  (exit $ac_status); }; } &&
19140	 { ac_try='test -s conftest$ac_exeext'
19141  { (case "(($ac_try" in
19142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143  *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146  (eval "$ac_try") 2>&5
19147  ac_status=$?
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); }; }; then
19150  ac_cv_lib_gcc___main=yes
19151else
19152  echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155	ac_cv_lib_gcc___main=no
19156fi
19157
19158rm -f core conftest.err conftest.$ac_objext \
19159      conftest$ac_exeext conftest.$ac_ext
19160LIBS=$ac_check_lib_save_LIBS
19161fi
19162{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19163echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19164if test $ac_cv_lib_gcc___main = yes; then
19165
19166cat >>confdefs.h <<\_ACEOF
19167#define HAVE___MAIN 1
19168_ACEOF
19169
19170fi
19171
19172  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19173echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19174if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19175  echo $ECHO_N "(cached) $ECHO_C" >&6
19176else
19177  ac_check_lib_save_LIBS=$LIBS
19178LIBS="-lgcc  $LIBS"
19179cat >conftest.$ac_ext <<_ACEOF
19180/* confdefs.h.  */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h.  */
19185
19186/* Override any GCC internal prototype to avoid an error.
19187   Use char because int might match the return type of a GCC
19188   builtin and then its argument prototype would still apply.  */
19189#ifdef __cplusplus
19190extern "C"
19191#endif
19192char __cmpdi2 ();
19193int
19194main ()
19195{
19196return __cmpdi2 ();
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext conftest$ac_exeext
19202if { (ac_try="$ac_link"
19203case "(($ac_try" in
19204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205  *) ac_try_echo=$ac_try;;
19206esac
19207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208  (eval "$ac_link") 2>conftest.er1
19209  ac_status=$?
19210  grep -v '^ *+' conftest.er1 >conftest.err
19211  rm -f conftest.er1
19212  cat conftest.err >&5
19213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214  (exit $ac_status); } &&
19215	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216  { (case "(($ac_try" in
19217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218  *) ac_try_echo=$ac_try;;
19219esac
19220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221  (eval "$ac_try") 2>&5
19222  ac_status=$?
19223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224  (exit $ac_status); }; } &&
19225	 { ac_try='test -s conftest$ac_exeext'
19226  { (case "(($ac_try" in
19227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228  *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231  (eval "$ac_try") 2>&5
19232  ac_status=$?
19233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234  (exit $ac_status); }; }; then
19235  ac_cv_lib_gcc___cmpdi2=yes
19236else
19237  echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240	ac_cv_lib_gcc___cmpdi2=no
19241fi
19242
19243rm -f core conftest.err conftest.$ac_objext \
19244      conftest$ac_exeext conftest.$ac_ext
19245LIBS=$ac_check_lib_save_LIBS
19246fi
19247{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19248echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19249if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19250
19251cat >>confdefs.h <<\_ACEOF
19252#define HAVE___CMPDI2 1
19253_ACEOF
19254
19255fi
19256
19257fi
19258
19259if test "$llvm_cv_os_type" = "MingW" ; then
19260  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19261echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19262  cat >conftest.$ac_ext <<_ACEOF
19263#include <windows.h>
19264#include <imagehlp.h>
19265extern void foo(PENUMLOADED_MODULES_CALLBACK);
19266extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19267_ACEOF
19268rm -f conftest.$ac_objext
19269if { (ac_try="$ac_compile"
19270case "(($ac_try" in
19271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272  *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275  (eval "$ac_compile") 2>conftest.er1
19276  ac_status=$?
19277  grep -v '^ *+' conftest.er1 >conftest.err
19278  rm -f conftest.er1
19279  cat conftest.err >&5
19280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281  (exit $ac_status); } &&
19282	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283  { (case "(($ac_try" in
19284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285  *) ac_try_echo=$ac_try;;
19286esac
19287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288  (eval "$ac_try") 2>&5
19289  ac_status=$?
19290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291  (exit $ac_status); }; } &&
19292	 { ac_try='test -s conftest.$ac_objext'
19293  { (case "(($ac_try" in
19294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295  *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298  (eval "$ac_try") 2>&5
19299  ac_status=$?
19300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301  (exit $ac_status); }; }; then
19302
19303  { echo "$as_me:$LINENO: result: yes" >&5
19304echo "${ECHO_T}yes" >&6; }
19305  llvm_cv_win32_elmcb_pcstr="PCSTR"
19306
19307else
19308  echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311
19312  { echo "$as_me:$LINENO: result: no" >&5
19313echo "${ECHO_T}no" >&6; }
19314  llvm_cv_win32_elmcb_pcstr="PSTR"
19315
19316fi
19317
19318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319
19320cat >>confdefs.h <<_ACEOF
19321#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19322_ACEOF
19323
19324fi
19325
19326
19327{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19328echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19329if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19330  echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332  ac_ext=cpp
19333ac_cpp='$CXXCPP $CPPFLAGS'
19334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337
19338   cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h.  */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
19343/* end confdefs.h.  */
19344#include <math.h>
19345int
19346main ()
19347{
19348float f; isnan(f);
19349  ;
19350  return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (ac_try="$ac_compile"
19355case "(($ac_try" in
19356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357  *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360  (eval "$ac_compile") 2>conftest.er1
19361  ac_status=$?
19362  grep -v '^ *+' conftest.er1 >conftest.err
19363  rm -f conftest.er1
19364  cat conftest.err >&5
19365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366  (exit $ac_status); } &&
19367	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368  { (case "(($ac_try" in
19369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370  *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373  (eval "$ac_try") 2>&5
19374  ac_status=$?
19375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376  (exit $ac_status); }; } &&
19377	 { ac_try='test -s conftest.$ac_objext'
19378  { (case "(($ac_try" in
19379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380  *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383  (eval "$ac_try") 2>&5
19384  ac_status=$?
19385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386  (exit $ac_status); }; }; then
19387  ac_cv_func_isnan_in_math_h=yes
19388else
19389  echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392	ac_cv_func_isnan_in_math_h=no
19393fi
19394
19395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396  ac_ext=c
19397ac_cpp='$CPP $CPPFLAGS'
19398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402fi
19403{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19404echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19405
19406
19407if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19408
19409cat >>confdefs.h <<\_ACEOF
19410#define HAVE_ISNAN_IN_MATH_H 1
19411_ACEOF
19412
19413fi
19414
19415{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19416echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19417if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19418  echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420  ac_ext=cpp
19421ac_cpp='$CXXCPP $CPPFLAGS'
19422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425
19426   cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h.  */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h.  */
19432#include <cmath>
19433int
19434main ()
19435{
19436float f; isnan(f);
19437  ;
19438  return 0;
19439}
19440_ACEOF
19441rm -f conftest.$ac_objext
19442if { (ac_try="$ac_compile"
19443case "(($ac_try" in
19444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445  *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448  (eval "$ac_compile") 2>conftest.er1
19449  ac_status=$?
19450  grep -v '^ *+' conftest.er1 >conftest.err
19451  rm -f conftest.er1
19452  cat conftest.err >&5
19453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454  (exit $ac_status); } &&
19455	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19456  { (case "(($ac_try" in
19457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458  *) ac_try_echo=$ac_try;;
19459esac
19460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461  (eval "$ac_try") 2>&5
19462  ac_status=$?
19463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464  (exit $ac_status); }; } &&
19465	 { ac_try='test -s conftest.$ac_objext'
19466  { (case "(($ac_try" in
19467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468  *) ac_try_echo=$ac_try;;
19469esac
19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471  (eval "$ac_try") 2>&5
19472  ac_status=$?
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); }; }; then
19475  ac_cv_func_isnan_in_cmath=yes
19476else
19477  echo "$as_me: failed program was:" >&5
19478sed 's/^/| /' conftest.$ac_ext >&5
19479
19480	ac_cv_func_isnan_in_cmath=no
19481fi
19482
19483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484  ac_ext=c
19485ac_cpp='$CPP $CPPFLAGS'
19486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489
19490fi
19491{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19492echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19493
19494if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19495
19496cat >>confdefs.h <<\_ACEOF
19497#define HAVE_ISNAN_IN_CMATH 1
19498_ACEOF
19499
19500fi
19501
19502{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19503echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19504if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19505  echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507  ac_ext=cpp
19508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513   cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h.  */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h.  */
19519#include <cmath>
19520int
19521main ()
19522{
19523float f; std::isnan(f);
19524  ;
19525  return 0;
19526}
19527_ACEOF
19528rm -f conftest.$ac_objext
19529if { (ac_try="$ac_compile"
19530case "(($ac_try" in
19531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532  *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535  (eval "$ac_compile") 2>conftest.er1
19536  ac_status=$?
19537  grep -v '^ *+' conftest.er1 >conftest.err
19538  rm -f conftest.er1
19539  cat conftest.err >&5
19540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541  (exit $ac_status); } &&
19542	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543  { (case "(($ac_try" in
19544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545  *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548  (eval "$ac_try") 2>&5
19549  ac_status=$?
19550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551  (exit $ac_status); }; } &&
19552	 { ac_try='test -s conftest.$ac_objext'
19553  { (case "(($ac_try" in
19554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555  *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558  (eval "$ac_try") 2>&5
19559  ac_status=$?
19560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561  (exit $ac_status); }; }; then
19562  ac_cv_func_std_isnan_in_cmath=yes
19563else
19564  echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567	ac_cv_func_std_isnan_in_cmath=no
19568fi
19569
19570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571  ac_ext=c
19572ac_cpp='$CPP $CPPFLAGS'
19573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577fi
19578{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19579echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19580
19581if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19582
19583cat >>confdefs.h <<\_ACEOF
19584#define HAVE_STD_ISNAN_IN_CMATH 1
19585_ACEOF
19586
19587fi
19588
19589
19590{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19591echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19592if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19593  echo $ECHO_N "(cached) $ECHO_C" >&6
19594else
19595  ac_ext=cpp
19596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601   cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h.  */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
19606/* end confdefs.h.  */
19607#include <math.h>
19608int
19609main ()
19610{
19611float f; isinf(f);
19612  ;
19613  return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620  *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623  (eval "$ac_compile") 2>conftest.er1
19624  ac_status=$?
19625  grep -v '^ *+' conftest.er1 >conftest.err
19626  rm -f conftest.er1
19627  cat conftest.err >&5
19628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629  (exit $ac_status); } &&
19630	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631  { (case "(($ac_try" in
19632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633  *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636  (eval "$ac_try") 2>&5
19637  ac_status=$?
19638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639  (exit $ac_status); }; } &&
19640	 { ac_try='test -s conftest.$ac_objext'
19641  { (case "(($ac_try" in
19642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643  *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646  (eval "$ac_try") 2>&5
19647  ac_status=$?
19648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649  (exit $ac_status); }; }; then
19650  ac_cv_func_isinf_in_math_h=yes
19651else
19652  echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655	ac_cv_func_isinf_in_math_h=no
19656fi
19657
19658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659  ac_ext=c
19660ac_cpp='$CPP $CPPFLAGS'
19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665fi
19666{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19667echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19668
19669if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19670
19671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_ISINF_IN_MATH_H 1
19673_ACEOF
19674
19675fi
19676
19677{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19678echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19679if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19680  echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682  ac_ext=cpp
19683ac_cpp='$CXXCPP $CPPFLAGS'
19684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687
19688   cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h.  */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h.  */
19694#include <cmath>
19695int
19696main ()
19697{
19698float f; isinf(f);
19699  ;
19700  return 0;
19701}
19702_ACEOF
19703rm -f conftest.$ac_objext
19704if { (ac_try="$ac_compile"
19705case "(($ac_try" in
19706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707  *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710  (eval "$ac_compile") 2>conftest.er1
19711  ac_status=$?
19712  grep -v '^ *+' conftest.er1 >conftest.err
19713  rm -f conftest.er1
19714  cat conftest.err >&5
19715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716  (exit $ac_status); } &&
19717	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718  { (case "(($ac_try" in
19719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720  *) ac_try_echo=$ac_try;;
19721esac
19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723  (eval "$ac_try") 2>&5
19724  ac_status=$?
19725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726  (exit $ac_status); }; } &&
19727	 { ac_try='test -s conftest.$ac_objext'
19728  { (case "(($ac_try" in
19729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730  *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733  (eval "$ac_try") 2>&5
19734  ac_status=$?
19735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736  (exit $ac_status); }; }; then
19737  ac_cv_func_isinf_in_cmath=yes
19738else
19739  echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742	ac_cv_func_isinf_in_cmath=no
19743fi
19744
19745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746  ac_ext=c
19747ac_cpp='$CPP $CPPFLAGS'
19748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752fi
19753{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19754echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19755
19756if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19757
19758cat >>confdefs.h <<\_ACEOF
19759#define HAVE_ISINF_IN_CMATH 1
19760_ACEOF
19761
19762fi
19763
19764{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19765echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19766if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19767  echo $ECHO_N "(cached) $ECHO_C" >&6
19768else
19769  ac_ext=cpp
19770ac_cpp='$CXXCPP $CPPFLAGS'
19771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19774
19775   cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h.  */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h.  */
19781#include <cmath>
19782int
19783main ()
19784{
19785float f; std::isinf(f)}
19786  ;
19787  return 0;
19788}
19789_ACEOF
19790rm -f conftest.$ac_objext
19791if { (ac_try="$ac_compile"
19792case "(($ac_try" in
19793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794  *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797  (eval "$ac_compile") 2>conftest.er1
19798  ac_status=$?
19799  grep -v '^ *+' conftest.er1 >conftest.err
19800  rm -f conftest.er1
19801  cat conftest.err >&5
19802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803  (exit $ac_status); } &&
19804	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19805  { (case "(($ac_try" in
19806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807  *) ac_try_echo=$ac_try;;
19808esac
19809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810  (eval "$ac_try") 2>&5
19811  ac_status=$?
19812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813  (exit $ac_status); }; } &&
19814	 { ac_try='test -s conftest.$ac_objext'
19815  { (case "(($ac_try" in
19816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817  *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820  (eval "$ac_try") 2>&5
19821  ac_status=$?
19822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823  (exit $ac_status); }; }; then
19824  ac_cv_func_std_isinf_in_cmath=yes
19825else
19826  echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829	ac_cv_func_std_isinf_in_cmath=no
19830fi
19831
19832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833  ac_ext=c
19834ac_cpp='$CPP $CPPFLAGS'
19835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839fi
19840{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19841echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19842
19843if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19844
19845cat >>confdefs.h <<\_ACEOF
19846#define HAVE_STD_ISINF_IN_CMATH 1
19847_ACEOF
19848
19849fi
19850
19851{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19852echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19853if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19854  echo $ECHO_N "(cached) $ECHO_C" >&6
19855else
19856  ac_ext=cpp
19857ac_cpp='$CXXCPP $CPPFLAGS'
19858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19861
19862   cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h.  */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h.  */
19868#include <ieeefp.h>
19869int
19870main ()
19871{
19872float f; finite(f);
19873  ;
19874  return 0;
19875}
19876_ACEOF
19877rm -f conftest.$ac_objext
19878if { (ac_try="$ac_compile"
19879case "(($ac_try" in
19880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881  *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884  (eval "$ac_compile") 2>conftest.er1
19885  ac_status=$?
19886  grep -v '^ *+' conftest.er1 >conftest.err
19887  rm -f conftest.er1
19888  cat conftest.err >&5
19889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890  (exit $ac_status); } &&
19891	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19892  { (case "(($ac_try" in
19893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894  *) ac_try_echo=$ac_try;;
19895esac
19896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897  (eval "$ac_try") 2>&5
19898  ac_status=$?
19899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900  (exit $ac_status); }; } &&
19901	 { ac_try='test -s conftest.$ac_objext'
19902  { (case "(($ac_try" in
19903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904  *) ac_try_echo=$ac_try;;
19905esac
19906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907  (eval "$ac_try") 2>&5
19908  ac_status=$?
19909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910  (exit $ac_status); }; }; then
19911  ac_cv_func_finite_in_ieeefp_h=yes
19912else
19913  echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916	ac_cv_func_finite_in_ieeefp_h=no
19917fi
19918
19919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920  ac_ext=c
19921ac_cpp='$CPP $CPPFLAGS'
19922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926fi
19927{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19928echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19929
19930if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_FINITE_IN_IEEEFP_H 1
19934_ACEOF
19935
19936fi
19937
19938
19939
19940if test "$llvm_cv_platform_type" = "Unix" ; then
19941
19942
19943for ac_header in stdlib.h unistd.h
19944do
19945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950  echo $ECHO_N "(cached) $ECHO_C" >&6
19951fi
19952ac_res=`eval echo '${'$as_ac_Header'}'`
19953	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19954echo "${ECHO_T}$ac_res" >&6; }
19955else
19956  # Is the header compilable?
19957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h.  */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h.  */
19965$ac_includes_default
19966#include <$ac_header>
19967_ACEOF
19968rm -f conftest.$ac_objext
19969if { (ac_try="$ac_compile"
19970case "(($ac_try" in
19971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972  *) ac_try_echo=$ac_try;;
19973esac
19974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975  (eval "$ac_compile") 2>conftest.er1
19976  ac_status=$?
19977  grep -v '^ *+' conftest.er1 >conftest.err
19978  rm -f conftest.er1
19979  cat conftest.err >&5
19980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981  (exit $ac_status); } &&
19982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983  { (case "(($ac_try" in
19984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985  *) ac_try_echo=$ac_try;;
19986esac
19987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988  (eval "$ac_try") 2>&5
19989  ac_status=$?
19990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991  (exit $ac_status); }; } &&
19992	 { ac_try='test -s conftest.$ac_objext'
19993  { (case "(($ac_try" in
19994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995  *) ac_try_echo=$ac_try;;
19996esac
19997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998  (eval "$ac_try") 2>&5
19999  ac_status=$?
20000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001  (exit $ac_status); }; }; then
20002  ac_header_compiler=yes
20003else
20004  echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007	ac_header_compiler=no
20008fi
20009
20010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012echo "${ECHO_T}$ac_header_compiler" >&6; }
20013
20014# Is the header present?
20015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20017cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h.  */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h.  */
20023#include <$ac_header>
20024_ACEOF
20025if { (ac_try="$ac_cpp conftest.$ac_ext"
20026case "(($ac_try" in
20027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028  *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032  ac_status=$?
20033  grep -v '^ *+' conftest.er1 >conftest.err
20034  rm -f conftest.er1
20035  cat conftest.err >&5
20036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037  (exit $ac_status); } >/dev/null; then
20038  if test -s conftest.err; then
20039    ac_cpp_err=$ac_c_preproc_warn_flag
20040    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20041  else
20042    ac_cpp_err=
20043  fi
20044else
20045  ac_cpp_err=yes
20046fi
20047if test -z "$ac_cpp_err"; then
20048  ac_header_preproc=yes
20049else
20050  echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053  ac_header_preproc=no
20054fi
20055
20056rm -f conftest.err conftest.$ac_ext
20057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058echo "${ECHO_T}$ac_header_preproc" >&6; }
20059
20060# So?  What about this header?
20061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20062  yes:no: )
20063    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20067    ac_header_preproc=yes
20068    ;;
20069  no:yes:* )
20070    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20072    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20073echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20074    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20076    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20077echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20078    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20080    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20082    ( cat <<\_ASBOX
20083## ------------------------------------ ##
20084## Report this to http://llvm.org/bugs/ ##
20085## ------------------------------------ ##
20086_ASBOX
20087     ) | sed "s/^/$as_me: WARNING:     /" >&2
20088    ;;
20089esac
20090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093  echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095  eval "$as_ac_Header=\$ac_header_preproc"
20096fi
20097ac_res=`eval echo '${'$as_ac_Header'}'`
20098	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20099echo "${ECHO_T}$ac_res" >&6; }
20100
20101fi
20102if test `eval echo '${'$as_ac_Header'}'` = yes; then
20103  cat >>confdefs.h <<_ACEOF
20104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20105_ACEOF
20106
20107fi
20108
20109done
20110
20111
20112for ac_func in getpagesize
20113do
20114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20118  echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120  cat >conftest.$ac_ext <<_ACEOF
20121/* confdefs.h.  */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h.  */
20126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20127   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20128#define $ac_func innocuous_$ac_func
20129
20130/* System header to define __stub macros and hopefully few prototypes,
20131    which can conflict with char $ac_func (); below.
20132    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20133    <limits.h> exists even on freestanding compilers.  */
20134
20135#ifdef __STDC__
20136# include <limits.h>
20137#else
20138# include <assert.h>
20139#endif
20140
20141#undef $ac_func
20142
20143/* Override any GCC internal prototype to avoid an error.
20144   Use char because int might match the return type of a GCC
20145   builtin and then its argument prototype would still apply.  */
20146#ifdef __cplusplus
20147extern "C"
20148#endif
20149char $ac_func ();
20150/* The GNU C library defines this for functions which it implements
20151    to always fail with ENOSYS.  Some functions are actually named
20152    something starting with __ and the normal name is an alias.  */
20153#if defined __stub_$ac_func || defined __stub___$ac_func
20154choke me
20155#endif
20156
20157int
20158main ()
20159{
20160return $ac_func ();
20161  ;
20162  return 0;
20163}
20164_ACEOF
20165rm -f conftest.$ac_objext conftest$ac_exeext
20166if { (ac_try="$ac_link"
20167case "(($ac_try" in
20168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169  *) ac_try_echo=$ac_try;;
20170esac
20171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172  (eval "$ac_link") 2>conftest.er1
20173  ac_status=$?
20174  grep -v '^ *+' conftest.er1 >conftest.err
20175  rm -f conftest.er1
20176  cat conftest.err >&5
20177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178  (exit $ac_status); } &&
20179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20180  { (case "(($ac_try" in
20181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182  *) ac_try_echo=$ac_try;;
20183esac
20184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185  (eval "$ac_try") 2>&5
20186  ac_status=$?
20187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188  (exit $ac_status); }; } &&
20189	 { ac_try='test -s conftest$ac_exeext'
20190  { (case "(($ac_try" in
20191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192  *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195  (eval "$ac_try") 2>&5
20196  ac_status=$?
20197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198  (exit $ac_status); }; }; then
20199  eval "$as_ac_var=yes"
20200else
20201  echo "$as_me: failed program was:" >&5
20202sed 's/^/| /' conftest.$ac_ext >&5
20203
20204	eval "$as_ac_var=no"
20205fi
20206
20207rm -f core conftest.err conftest.$ac_objext \
20208      conftest$ac_exeext conftest.$ac_ext
20209fi
20210ac_res=`eval echo '${'$as_ac_var'}'`
20211	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20212echo "${ECHO_T}$ac_res" >&6; }
20213if test `eval echo '${'$as_ac_var'}'` = yes; then
20214  cat >>confdefs.h <<_ACEOF
20215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20216_ACEOF
20217
20218fi
20219done
20220
20221{ echo "$as_me:$LINENO: checking for working mmap" >&5
20222echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20223if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20224  echo $ECHO_N "(cached) $ECHO_C" >&6
20225else
20226  if test "$cross_compiling" = yes; then
20227  ac_cv_func_mmap_fixed_mapped=no
20228else
20229  cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h.  */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h.  */
20235$ac_includes_default
20236/* malloc might have been renamed as rpl_malloc. */
20237#undef malloc
20238
20239/* Thanks to Mike Haertel and Jim Avera for this test.
20240   Here is a matrix of mmap possibilities:
20241	mmap private not fixed
20242	mmap private fixed at somewhere currently unmapped
20243	mmap private fixed at somewhere already mapped
20244	mmap shared not fixed
20245	mmap shared fixed at somewhere currently unmapped
20246	mmap shared fixed at somewhere already mapped
20247   For private mappings, we should verify that changes cannot be read()
20248   back from the file, nor mmap's back from the file at a different
20249   address.  (There have been systems where private was not correctly
20250   implemented like the infamous i386 svr4.0, and systems where the
20251   VM page cache was not coherent with the file system buffer cache
20252   like early versions of FreeBSD and possibly contemporary NetBSD.)
20253   For shared mappings, we should conversely verify that changes get
20254   propagated back to all the places they're supposed to be.
20255
20256   Grep wants private fixed already mapped.
20257   The main things grep needs to know about mmap are:
20258   * does it exist and is it safe to write into the mmap'd area
20259   * how to use it (BSD variants)  */
20260
20261#include <fcntl.h>
20262#include <sys/mman.h>
20263
20264#if !STDC_HEADERS && !HAVE_STDLIB_H
20265char *malloc ();
20266#endif
20267
20268/* This mess was copied from the GNU getpagesize.h.  */
20269#if !HAVE_GETPAGESIZE
20270/* Assume that all systems that can run configure have sys/param.h.  */
20271# if !HAVE_SYS_PARAM_H
20272#  define HAVE_SYS_PARAM_H 1
20273# endif
20274
20275# ifdef _SC_PAGESIZE
20276#  define getpagesize() sysconf(_SC_PAGESIZE)
20277# else /* no _SC_PAGESIZE */
20278#  if HAVE_SYS_PARAM_H
20279#   include <sys/param.h>
20280#   ifdef EXEC_PAGESIZE
20281#    define getpagesize() EXEC_PAGESIZE
20282#   else /* no EXEC_PAGESIZE */
20283#    ifdef NBPG
20284#     define getpagesize() NBPG * CLSIZE
20285#     ifndef CLSIZE
20286#      define CLSIZE 1
20287#     endif /* no CLSIZE */
20288#    else /* no NBPG */
20289#     ifdef NBPC
20290#      define getpagesize() NBPC
20291#     else /* no NBPC */
20292#      ifdef PAGESIZE
20293#       define getpagesize() PAGESIZE
20294#      endif /* PAGESIZE */
20295#     endif /* no NBPC */
20296#    endif /* no NBPG */
20297#   endif /* no EXEC_PAGESIZE */
20298#  else /* no HAVE_SYS_PARAM_H */
20299#   define getpagesize() 8192	/* punt totally */
20300#  endif /* no HAVE_SYS_PARAM_H */
20301# endif /* no _SC_PAGESIZE */
20302
20303#endif /* no HAVE_GETPAGESIZE */
20304
20305int
20306main ()
20307{
20308  char *data, *data2, *data3;
20309  int i, pagesize;
20310  int fd;
20311
20312  pagesize = getpagesize ();
20313
20314  /* First, make a file with some known garbage in it. */
20315  data = (char *) malloc (pagesize);
20316  if (!data)
20317    return 1;
20318  for (i = 0; i < pagesize; ++i)
20319    *(data + i) = rand ();
20320  umask (0);
20321  fd = creat ("conftest.mmap", 0600);
20322  if (fd < 0)
20323    return 1;
20324  if (write (fd, data, pagesize) != pagesize)
20325    return 1;
20326  close (fd);
20327
20328  /* Next, try to mmap the file at a fixed address which already has
20329     something else allocated at it.  If we can, also make sure that
20330     we see the same garbage.  */
20331  fd = open ("conftest.mmap", O_RDWR);
20332  if (fd < 0)
20333    return 1;
20334  data2 = (char *) malloc (2 * pagesize);
20335  if (!data2)
20336    return 1;
20337  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20338  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20339		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20340    return 1;
20341  for (i = 0; i < pagesize; ++i)
20342    if (*(data + i) != *(data2 + i))
20343      return 1;
20344
20345  /* Finally, make sure that changes to the mapped area do not
20346     percolate back to the file as seen by read().  (This is a bug on
20347     some variants of i386 svr4.0.)  */
20348  for (i = 0; i < pagesize; ++i)
20349    *(data2 + i) = *(data2 + i) + 1;
20350  data3 = (char *) malloc (pagesize);
20351  if (!data3)
20352    return 1;
20353  if (read (fd, data3, pagesize) != pagesize)
20354    return 1;
20355  for (i = 0; i < pagesize; ++i)
20356    if (*(data + i) != *(data3 + i))
20357      return 1;
20358  close (fd);
20359  return 0;
20360}
20361_ACEOF
20362rm -f conftest$ac_exeext
20363if { (ac_try="$ac_link"
20364case "(($ac_try" in
20365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366  *) ac_try_echo=$ac_try;;
20367esac
20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369  (eval "$ac_link") 2>&5
20370  ac_status=$?
20371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373  { (case "(($ac_try" in
20374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375  *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378  (eval "$ac_try") 2>&5
20379  ac_status=$?
20380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381  (exit $ac_status); }; }; then
20382  ac_cv_func_mmap_fixed_mapped=yes
20383else
20384  echo "$as_me: program exited with status $ac_status" >&5
20385echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388( exit $ac_status )
20389ac_cv_func_mmap_fixed_mapped=no
20390fi
20391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20392fi
20393
20394
20395fi
20396{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20397echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20398if test $ac_cv_func_mmap_fixed_mapped = yes; then
20399
20400cat >>confdefs.h <<\_ACEOF
20401#define HAVE_MMAP 1
20402_ACEOF
20403
20404fi
20405rm -f conftest.mmap
20406
20407  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20408echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20409if test "${ac_cv_func_mmap_file+set}" = set; then
20410  echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412   ac_ext=c
20413ac_cpp='$CPP $CPPFLAGS'
20414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416ac_compiler_gnu=$ac_cv_c_compiler_gnu
20417
20418  if test "$cross_compiling" = yes; then
20419  ac_cv_func_mmap_file=no
20420else
20421  cat >conftest.$ac_ext <<_ACEOF
20422
20423    /* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428
20429#include <sys/types.h>
20430#include <sys/mman.h>
20431#include <fcntl.h>
20432
20433int
20434main ()
20435{
20436
20437  int fd;
20438  fd = creat ("foo",0777);
20439  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20440  unlink ("foo");
20441  return (fd != (int) MAP_FAILED);
20442  ;
20443  return 0;
20444}
20445_ACEOF
20446rm -f conftest$ac_exeext
20447if { (ac_try="$ac_link"
20448case "(($ac_try" in
20449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450  *) ac_try_echo=$ac_try;;
20451esac
20452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453  (eval "$ac_link") 2>&5
20454  ac_status=$?
20455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20457  { (case "(($ac_try" in
20458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459  *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462  (eval "$ac_try") 2>&5
20463  ac_status=$?
20464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); }; }; then
20466  ac_cv_func_mmap_file=yes
20467else
20468  echo "$as_me: program exited with status $ac_status" >&5
20469echo "$as_me: failed program was:" >&5
20470sed 's/^/| /' conftest.$ac_ext >&5
20471
20472( exit $ac_status )
20473ac_cv_func_mmap_file=no
20474fi
20475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476fi
20477
20478
20479  ac_ext=c
20480ac_cpp='$CPP $CPPFLAGS'
20481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20483ac_compiler_gnu=$ac_cv_c_compiler_gnu
20484
20485
20486fi
20487{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20488echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20489if test "$ac_cv_func_mmap_file" = yes; then
20490
20491cat >>confdefs.h <<\_ACEOF
20492#define HAVE_MMAP_FILE
20493_ACEOF
20494
20495   MMAP_FILE=yes
20496
20497fi
20498
20499  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20500echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20501if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20502  echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504  if test "$llvm_cv_os_type" = "Interix" ; then
20505   ac_cv_need_dev_zero_for_mmap=yes
20506 else
20507   ac_cv_need_dev_zero_for_mmap=no
20508 fi
20509
20510fi
20511{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20512echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20513if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20514
20515cat >>confdefs.h <<\_ACEOF
20516#define NEED_DEV_ZERO_FOR_MMAP 1
20517_ACEOF
20518
20519fi
20520
20521  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20522  then
20523    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20524echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20525  fi
20526  if test "$ac_cv_func_mmap_file" = "no"
20527  then
20528    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20529echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20530  fi
20531fi
20532
20533{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20534echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20535ac_ext=cpp
20536ac_cpp='$CXXCPP $CPPFLAGS'
20537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20540
20541cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h.  */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h.  */
20547int main() {
20548        volatile unsigned long val = 1;
20549        __sync_synchronize();
20550        __sync_val_compare_and_swap(&val, 1, 0);
20551        __sync_add_and_fetch(&val, 1);
20552        __sync_sub_and_fetch(&val, 1);
20553        return 0;
20554      }
20555
20556_ACEOF
20557rm -f conftest.$ac_objext conftest$ac_exeext
20558if { (ac_try="$ac_link"
20559case "(($ac_try" in
20560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561  *) ac_try_echo=$ac_try;;
20562esac
20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564  (eval "$ac_link") 2>conftest.er1
20565  ac_status=$?
20566  grep -v '^ *+' conftest.er1 >conftest.err
20567  rm -f conftest.er1
20568  cat conftest.err >&5
20569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570  (exit $ac_status); } &&
20571	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20572  { (case "(($ac_try" in
20573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574  *) ac_try_echo=$ac_try;;
20575esac
20576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577  (eval "$ac_try") 2>&5
20578  ac_status=$?
20579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580  (exit $ac_status); }; } &&
20581	 { ac_try='test -s conftest$ac_exeext'
20582  { (case "(($ac_try" in
20583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584  *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587  (eval "$ac_try") 2>&5
20588  ac_status=$?
20589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590  (exit $ac_status); }; }; then
20591  ac_ext=c
20592ac_cpp='$CPP $CPPFLAGS'
20593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
20597  { echo "$as_me:$LINENO: result: yes" >&5
20598echo "${ECHO_T}yes" >&6; }
20599
20600cat >>confdefs.h <<\_ACEOF
20601#define LLVM_HAS_ATOMICS 1
20602_ACEOF
20603
20604else
20605  echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608	{ echo "$as_me:$LINENO: result: no" >&5
20609echo "${ECHO_T}no" >&6; }
20610
20611cat >>confdefs.h <<\_ACEOF
20612#define LLVM_HAS_ATOMICS 0
20613_ACEOF
20614
20615  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20616echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20617fi
20618
20619rm -f core conftest.err conftest.$ac_objext \
20620      conftest$ac_exeext conftest.$ac_ext
20621
20622
20623if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20624  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20625echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20626if test "${llvm_cv_linux_mixed+set}" = set; then
20627  echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629   ac_ext=c
20630ac_cpp='$CPP $CPPFLAGS'
20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
20635  cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h.  */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h.  */
20641#ifndef __x86_64__
20642       error: Not x86-64 even if uname says so!
20643      #endif
20644
20645int
20646main ()
20647{
20648
20649  ;
20650  return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (ac_try="$ac_compile"
20655case "(($ac_try" in
20656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657  *) ac_try_echo=$ac_try;;
20658esac
20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660  (eval "$ac_compile") 2>conftest.er1
20661  ac_status=$?
20662  grep -v '^ *+' conftest.er1 >conftest.err
20663  rm -f conftest.er1
20664  cat conftest.err >&5
20665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666  (exit $ac_status); } &&
20667	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20668  { (case "(($ac_try" in
20669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670  *) ac_try_echo=$ac_try;;
20671esac
20672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673  (eval "$ac_try") 2>&5
20674  ac_status=$?
20675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676  (exit $ac_status); }; } &&
20677	 { ac_try='test -s conftest.$ac_objext'
20678  { (case "(($ac_try" in
20679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680  *) ac_try_echo=$ac_try;;
20681esac
20682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683  (eval "$ac_try") 2>&5
20684  ac_status=$?
20685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686  (exit $ac_status); }; }; then
20687  llvm_cv_linux_mixed=no
20688else
20689  echo "$as_me: failed program was:" >&5
20690sed 's/^/| /' conftest.$ac_ext >&5
20691
20692	llvm_cv_linux_mixed=yes
20693fi
20694
20695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696  ac_ext=c
20697ac_cpp='$CPP $CPPFLAGS'
20698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702
20703fi
20704{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20705echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20706
20707  if test "$llvm_cv_linux_mixed" = "yes"; then
20708    llvm_cv_target_arch="x86"
20709    ARCH="x86"
20710  fi
20711fi
20712
20713
20714for ac_func in __dso_handle
20715do
20716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20720  echo $ECHO_N "(cached) $ECHO_C" >&6
20721else
20722  cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h.  */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h.  */
20728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20730#define $ac_func innocuous_$ac_func
20731
20732/* System header to define __stub macros and hopefully few prototypes,
20733    which can conflict with char $ac_func (); below.
20734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735    <limits.h> exists even on freestanding compilers.  */
20736
20737#ifdef __STDC__
20738# include <limits.h>
20739#else
20740# include <assert.h>
20741#endif
20742
20743#undef $ac_func
20744
20745/* Override any GCC internal prototype to avoid an error.
20746   Use char because int might match the return type of a GCC
20747   builtin and then its argument prototype would still apply.  */
20748#ifdef __cplusplus
20749extern "C"
20750#endif
20751char $ac_func ();
20752/* The GNU C library defines this for functions which it implements
20753    to always fail with ENOSYS.  Some functions are actually named
20754    something starting with __ and the normal name is an alias.  */
20755#if defined __stub_$ac_func || defined __stub___$ac_func
20756choke me
20757#endif
20758
20759int
20760main ()
20761{
20762return $ac_func ();
20763  ;
20764  return 0;
20765}
20766_ACEOF
20767rm -f conftest.$ac_objext conftest$ac_exeext
20768if { (ac_try="$ac_link"
20769case "(($ac_try" in
20770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771  *) ac_try_echo=$ac_try;;
20772esac
20773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774  (eval "$ac_link") 2>conftest.er1
20775  ac_status=$?
20776  grep -v '^ *+' conftest.er1 >conftest.err
20777  rm -f conftest.er1
20778  cat conftest.err >&5
20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780  (exit $ac_status); } &&
20781	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782  { (case "(($ac_try" in
20783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784  *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787  (eval "$ac_try") 2>&5
20788  ac_status=$?
20789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790  (exit $ac_status); }; } &&
20791	 { ac_try='test -s conftest$ac_exeext'
20792  { (case "(($ac_try" in
20793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794  *) ac_try_echo=$ac_try;;
20795esac
20796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797  (eval "$ac_try") 2>&5
20798  ac_status=$?
20799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800  (exit $ac_status); }; }; then
20801  eval "$as_ac_var=yes"
20802else
20803  echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806	eval "$as_ac_var=no"
20807fi
20808
20809rm -f core conftest.err conftest.$ac_objext \
20810      conftest$ac_exeext conftest.$ac_ext
20811fi
20812ac_res=`eval echo '${'$as_ac_var'}'`
20813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20814echo "${ECHO_T}$ac_res" >&6; }
20815if test `eval echo '${'$as_ac_var'}'` = yes; then
20816  cat >>confdefs.h <<_ACEOF
20817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818_ACEOF
20819
20820fi
20821done
20822
20823
20824SHLIBEXT=$libltdl_cv_shlibext
20825
20826
20827SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20828
20829
20830if test "${prefix}" = "NONE" ; then
20831  prefix="/usr/local"
20832fi
20833eval LLVM_PREFIX="${prefix}";
20834eval LLVM_BINDIR="${prefix}/bin";
20835eval LLVM_LIBDIR="${prefix}/lib";
20836eval LLVM_DATADIR="${prefix}/share/llvm";
20837eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20838eval LLVM_ETCDIR="${prefix}/etc/llvm";
20839eval LLVM_INCLUDEDIR="${prefix}/include";
20840eval LLVM_INFODIR="${prefix}/info";
20841eval LLVM_MANDIR="${prefix}/man";
20842LLVM_CONFIGTIME=`date`
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855cat >>confdefs.h <<_ACEOF
20856#define LLVM_PREFIX "$LLVM_PREFIX"
20857_ACEOF
20858
20859
20860cat >>confdefs.h <<_ACEOF
20861#define LLVM_BINDIR "$LLVM_BINDIR"
20862_ACEOF
20863
20864
20865cat >>confdefs.h <<_ACEOF
20866#define LLVM_LIBDIR "$LLVM_LIBDIR"
20867_ACEOF
20868
20869
20870cat >>confdefs.h <<_ACEOF
20871#define LLVM_DATADIR "$LLVM_DATADIR"
20872_ACEOF
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20877_ACEOF
20878
20879
20880cat >>confdefs.h <<_ACEOF
20881#define LLVM_ETCDIR "$LLVM_ETCDIR"
20882_ACEOF
20883
20884
20885cat >>confdefs.h <<_ACEOF
20886#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20887_ACEOF
20888
20889
20890cat >>confdefs.h <<_ACEOF
20891#define LLVM_INFODIR "$LLVM_INFODIR"
20892_ACEOF
20893
20894
20895cat >>confdefs.h <<_ACEOF
20896#define LLVM_MANDIR "$LLVM_MANDIR"
20897_ACEOF
20898
20899
20900cat >>confdefs.h <<_ACEOF
20901#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20902_ACEOF
20903
20904
20905cat >>confdefs.h <<_ACEOF
20906#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20907_ACEOF
20908
20909
20910if test "$BINDINGS_TO_BUILD" = auto ; then
20911  BINDINGS_TO_BUILD=""
20912  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20913    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20914  fi
20915fi
20916BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20917
20918
20919ALL_BINDINGS=ocaml
20920
20921
20922binding_prereqs_failed=0
20923for a_binding in $BINDINGS_TO_BUILD ; do
20924  case "$a_binding" in
20925  ocaml)
20926    if test "x$OCAMLC" = x ; then
20927      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20928echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20929      binding_prereqs_failed=1
20930    fi
20931    if test "x$OCAMLDEP" = x ; then
20932      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20933echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20934      binding_prereqs_failed=1
20935    fi
20936    if test "x$OCAMLOPT" = x ; then
20937      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20938echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20939          fi
20940    if test "x$with_ocaml_libdir" != xauto ; then
20941      OCAML_LIBDIR=$with_ocaml_libdir
20942
20943    else
20944      ocaml_stdlib="`"$OCAMLC" -where`"
20945      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20946      then
20947        # ocaml stdlib is beneath our prefix; use stdlib
20948        OCAML_LIBDIR=$ocaml_stdlib
20949
20950      else
20951        # ocaml stdlib is outside our prefix; use libdir/ocaml
20952        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20953
20954      fi
20955    fi
20956    ;;
20957  esac
20958done
20959if test "$binding_prereqs_failed" = 1 ; then
20960  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20961echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20962   { (exit 1); exit 1; }; }
20963fi
20964
20965{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20966echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20967if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20968  echo $ECHO_N "(cached) $ECHO_C" >&6
20969else
20970   ac_ext=cpp
20971ac_cpp='$CXXCPP $CPPFLAGS'
20972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975
20976  oldcxxflags="$CXXFLAGS"
20977  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20978  cat >conftest.$ac_ext <<_ACEOF
20979/* confdefs.h.  */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h.  */
20984template <typename T> struct X { void __attribute__((noinline)) f() {} };
20985int
20986main ()
20987{
20988X<int>().f();
20989  ;
20990  return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (ac_try="$ac_compile"
20995case "(($ac_try" in
20996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997  *) ac_try_echo=$ac_try;;
20998esac
20999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000  (eval "$ac_compile") 2>conftest.er1
21001  ac_status=$?
21002  grep -v '^ *+' conftest.er1 >conftest.err
21003  rm -f conftest.er1
21004  cat conftest.err >&5
21005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006  (exit $ac_status); } &&
21007	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21008  { (case "(($ac_try" in
21009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010  *) ac_try_echo=$ac_try;;
21011esac
21012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013  (eval "$ac_try") 2>&5
21014  ac_status=$?
21015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016  (exit $ac_status); }; } &&
21017	 { ac_try='test -s conftest.$ac_objext'
21018  { (case "(($ac_try" in
21019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020  *) ac_try_echo=$ac_try;;
21021esac
21022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023  (eval "$ac_try") 2>&5
21024  ac_status=$?
21025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026  (exit $ac_status); }; }; then
21027  llvm_cv_cxx_visibility_inlines_hidden=yes
21028else
21029  echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032	llvm_cv_cxx_visibility_inlines_hidden=no
21033fi
21034
21035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036  CXXFLAGS="$oldcxxflags"
21037  ac_ext=c
21038ac_cpp='$CPP $CPPFLAGS'
21039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042
21043
21044fi
21045{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21046echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21047if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21048  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21049
21050else
21051  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21052
21053fi
21054
21055
21056if test "$llvm_cv_link_use_r" = "yes" ; then
21057  RPATH="-Wl,-R"
21058else
21059  RPATH="-Wl,-rpath"
21060fi
21061
21062
21063if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21064  RDYNAMIC="-Wl,-export-dynamic"
21065else
21066  RDYNAMIC=""
21067fi
21068
21069
21070
21071ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21072
21073
21074
21075
21076
21077
21078ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21079
21080ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21081
21082ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21083
21084ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21085
21086ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21087
21088
21089ac_config_files="$ac_config_files Makefile.config"
21090
21091
21092ac_config_files="$ac_config_files llvm.spec"
21093
21094
21095ac_config_files="$ac_config_files docs/doxygen.cfg"
21096
21097
21098if test ${clang_src_root} = ""; then
21099  clang_src_root="$srcdir/tools/clang"
21100fi
21101if test -f ${clang_src_root}/README.txt; then
21102  ac_config_headers="$ac_config_headers ${clang_src_root}/include/clang/Config/config.h"
21103
21104  ac_config_files="$ac_config_files ${clang_src_root}/docs/doxygen.cfg"
21105
21106fi
21107
21108ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21109
21110
21111ac_config_commands="$ac_config_commands setup"
21112
21113ac_config_commands="$ac_config_commands Makefile"
21114
21115
21116ac_config_commands="$ac_config_commands Makefile.common"
21117
21118
21119ac_config_commands="$ac_config_commands examples/Makefile"
21120
21121
21122ac_config_commands="$ac_config_commands lib/Makefile"
21123
21124
21125ac_config_commands="$ac_config_commands runtime/Makefile"
21126
21127
21128ac_config_commands="$ac_config_commands test/Makefile"
21129
21130
21131ac_config_commands="$ac_config_commands test/Makefile.tests"
21132
21133
21134ac_config_commands="$ac_config_commands unittests/Makefile"
21135
21136
21137ac_config_commands="$ac_config_commands tools/Makefile"
21138
21139
21140ac_config_commands="$ac_config_commands utils/Makefile"
21141
21142
21143ac_config_commands="$ac_config_commands projects/Makefile"
21144
21145
21146ac_config_commands="$ac_config_commands bindings/Makefile"
21147
21148
21149ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21150
21151
21152
21153cat >confcache <<\_ACEOF
21154# This file is a shell script that caches the results of configure
21155# tests run on this system so they can be shared between configure
21156# scripts and configure runs, see configure's option --config-cache.
21157# It is not useful on other systems.  If it contains results you don't
21158# want to keep, you may remove or edit it.
21159#
21160# config.status only pays attention to the cache file if you give it
21161# the --recheck option to rerun configure.
21162#
21163# `ac_cv_env_foo' variables (set or unset) will be overridden when
21164# loading this file, other *unset* `ac_cv_foo' will be assigned the
21165# following values.
21166
21167_ACEOF
21168
21169# The following way of writing the cache mishandles newlines in values,
21170# but we know of no workaround that is simple, portable, and efficient.
21171# So, we kill variables containing newlines.
21172# Ultrix sh set writes to stderr and can't be redirected directly,
21173# and sets the high bit in the cache file unless we assign to the vars.
21174(
21175  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21176    eval ac_val=\$$ac_var
21177    case $ac_val in #(
21178    *${as_nl}*)
21179      case $ac_var in #(
21180      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21181echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21182      esac
21183      case $ac_var in #(
21184      _ | IFS | as_nl) ;; #(
21185      *) $as_unset $ac_var ;;
21186      esac ;;
21187    esac
21188  done
21189
21190  (set) 2>&1 |
21191    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21192    *${as_nl}ac_space=\ *)
21193      # `set' does not quote correctly, so add quotes (double-quote
21194      # substitution turns \\\\ into \\, and sed turns \\ into \).
21195      sed -n \
21196	"s/'/'\\\\''/g;
21197	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21198      ;; #(
21199    *)
21200      # `set' quotes correctly as required by POSIX, so do not add quotes.
21201      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21202      ;;
21203    esac |
21204    sort
21205) |
21206  sed '
21207     /^ac_cv_env_/b end
21208     t clear
21209     :clear
21210     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21211     t end
21212     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21213     :end' >>confcache
21214if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21215  if test -w "$cache_file"; then
21216    test "x$cache_file" != "x/dev/null" &&
21217      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21218echo "$as_me: updating cache $cache_file" >&6;}
21219    cat confcache >$cache_file
21220  else
21221    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21222echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21223  fi
21224fi
21225rm -f confcache
21226
21227test "x$prefix" = xNONE && prefix=$ac_default_prefix
21228# Let make expand exec_prefix.
21229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21230
21231DEFS=-DHAVE_CONFIG_H
21232
21233ac_libobjs=
21234ac_ltlibobjs=
21235for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21236  # 1. Remove the extension, and $U if already installed.
21237  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21238  ac_i=`echo "$ac_i" | sed "$ac_script"`
21239  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21240  #    will be set to the directory where LIBOBJS objects are built.
21241  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21242  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21243done
21244LIBOBJS=$ac_libobjs
21245
21246LTLIBOBJS=$ac_ltlibobjs
21247
21248
21249if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21250  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21251Usually this means the macro was only invoked conditionally." >&5
21252echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21253Usually this means the macro was only invoked conditionally." >&2;}
21254   { (exit 1); exit 1; }; }
21255fi
21256if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21257  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258Usually this means the macro was only invoked conditionally." >&5
21259echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21260Usually this means the macro was only invoked conditionally." >&2;}
21261   { (exit 1); exit 1; }; }
21262fi
21263
21264: ${CONFIG_STATUS=./config.status}
21265ac_clean_files_save=$ac_clean_files
21266ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21267{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21268echo "$as_me: creating $CONFIG_STATUS" >&6;}
21269cat >$CONFIG_STATUS <<_ACEOF
21270#! $SHELL
21271# Generated by $as_me.
21272# Run this file to recreate the current configuration.
21273# Compiler output produced by configure, useful for debugging
21274# configure, is in config.log if it exists.
21275
21276debug=false
21277ac_cs_recheck=false
21278ac_cs_silent=false
21279SHELL=\${CONFIG_SHELL-$SHELL}
21280_ACEOF
21281
21282cat >>$CONFIG_STATUS <<\_ACEOF
21283## --------------------- ##
21284## M4sh Initialization.  ##
21285## --------------------- ##
21286
21287# Be Bourne compatible
21288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21289  emulate sh
21290  NULLCMD=:
21291  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21292  # is contrary to our usage.  Disable this feature.
21293  alias -g '${1+"$@"}'='"$@"'
21294  setopt NO_GLOB_SUBST
21295else
21296  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21297fi
21298BIN_SH=xpg4; export BIN_SH # for Tru64
21299DUALCASE=1; export DUALCASE # for MKS sh
21300
21301
21302# PATH needs CR
21303# Avoid depending upon Character Ranges.
21304as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21305as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21306as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21307as_cr_digits='0123456789'
21308as_cr_alnum=$as_cr_Letters$as_cr_digits
21309
21310# The user is always right.
21311if test "${PATH_SEPARATOR+set}" != set; then
21312  echo "#! /bin/sh" >conf$$.sh
21313  echo  "exit 0"   >>conf$$.sh
21314  chmod +x conf$$.sh
21315  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21316    PATH_SEPARATOR=';'
21317  else
21318    PATH_SEPARATOR=:
21319  fi
21320  rm -f conf$$.sh
21321fi
21322
21323# Support unset when possible.
21324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21325  as_unset=unset
21326else
21327  as_unset=false
21328fi
21329
21330
21331# IFS
21332# We need space, tab and new line, in precisely that order.  Quoting is
21333# there to prevent editors from complaining about space-tab.
21334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21335# splitting by setting IFS to empty value.)
21336as_nl='
21337'
21338IFS=" ""	$as_nl"
21339
21340# Find who we are.  Look in the path if we contain no directory separator.
21341case $0 in
21342  *[\\/]* ) as_myself=$0 ;;
21343  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21344for as_dir in $PATH
21345do
21346  IFS=$as_save_IFS
21347  test -z "$as_dir" && as_dir=.
21348  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21349done
21350IFS=$as_save_IFS
21351
21352     ;;
21353esac
21354# We did not find ourselves, most probably we were run as `sh COMMAND'
21355# in which case we are not to be found in the path.
21356if test "x$as_myself" = x; then
21357  as_myself=$0
21358fi
21359if test ! -f "$as_myself"; then
21360  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21361  { (exit 1); exit 1; }
21362fi
21363
21364# Work around bugs in pre-3.0 UWIN ksh.
21365for as_var in ENV MAIL MAILPATH
21366do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21367done
21368PS1='$ '
21369PS2='> '
21370PS4='+ '
21371
21372# NLS nuisances.
21373for as_var in \
21374  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21375  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21376  LC_TELEPHONE LC_TIME
21377do
21378  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21379    eval $as_var=C; export $as_var
21380  else
21381    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21382  fi
21383done
21384
21385# Required to use basename.
21386if expr a : '\(a\)' >/dev/null 2>&1 &&
21387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21388  as_expr=expr
21389else
21390  as_expr=false
21391fi
21392
21393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21394  as_basename=basename
21395else
21396  as_basename=false
21397fi
21398
21399
21400# Name of the executable.
21401as_me=`$as_basename -- "$0" ||
21402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21403	 X"$0" : 'X\(//\)$' \| \
21404	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21405echo X/"$0" |
21406    sed '/^.*\/\([^/][^/]*\)\/*$/{
21407	    s//\1/
21408	    q
21409	  }
21410	  /^X\/\(\/\/\)$/{
21411	    s//\1/
21412	    q
21413	  }
21414	  /^X\/\(\/\).*/{
21415	    s//\1/
21416	    q
21417	  }
21418	  s/.*/./; q'`
21419
21420# CDPATH.
21421$as_unset CDPATH
21422
21423
21424
21425  as_lineno_1=$LINENO
21426  as_lineno_2=$LINENO
21427  test "x$as_lineno_1" != "x$as_lineno_2" &&
21428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21429
21430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21431  # uniformly replaced by the line number.  The first 'sed' inserts a
21432  # line-number line after each line using $LINENO; the second 'sed'
21433  # does the real work.  The second script uses 'N' to pair each
21434  # line-number line with the line containing $LINENO, and appends
21435  # trailing '-' during substitution so that $LINENO is not a special
21436  # case at line end.
21437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21439  # E. McMahon (1931-1989) for sed's syntax.  :-)
21440  sed -n '
21441    p
21442    /[$]LINENO/=
21443  ' <$as_myself |
21444    sed '
21445      s/[$]LINENO.*/&-/
21446      t lineno
21447      b
21448      :lineno
21449      N
21450      :loop
21451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21452      t loop
21453      s/-\n.*//
21454    ' >$as_me.lineno &&
21455  chmod +x "$as_me.lineno" ||
21456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21457   { (exit 1); exit 1; }; }
21458
21459  # Don't try to exec as it changes $[0], causing all sort of problems
21460  # (the dirname of $[0] is not the place where we might find the
21461  # original and so on.  Autoconf is especially sensitive to this).
21462  . "./$as_me.lineno"
21463  # Exit status is that of the last command.
21464  exit
21465}
21466
21467
21468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21469  as_dirname=dirname
21470else
21471  as_dirname=false
21472fi
21473
21474ECHO_C= ECHO_N= ECHO_T=
21475case `echo -n x` in
21476-n*)
21477  case `echo 'x\c'` in
21478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21479  *)   ECHO_C='\c';;
21480  esac;;
21481*)
21482  ECHO_N='-n';;
21483esac
21484
21485if expr a : '\(a\)' >/dev/null 2>&1 &&
21486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21487  as_expr=expr
21488else
21489  as_expr=false
21490fi
21491
21492rm -f conf$$ conf$$.exe conf$$.file
21493if test -d conf$$.dir; then
21494  rm -f conf$$.dir/conf$$.file
21495else
21496  rm -f conf$$.dir
21497  mkdir conf$$.dir
21498fi
21499echo >conf$$.file
21500if ln -s conf$$.file conf$$ 2>/dev/null; then
21501  as_ln_s='ln -s'
21502  # ... but there are two gotchas:
21503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21505  # In both cases, we have to default to `cp -p'.
21506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21507    as_ln_s='cp -p'
21508elif ln conf$$.file conf$$ 2>/dev/null; then
21509  as_ln_s=ln
21510else
21511  as_ln_s='cp -p'
21512fi
21513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21514rmdir conf$$.dir 2>/dev/null
21515
21516if mkdir -p . 2>/dev/null; then
21517  as_mkdir_p=:
21518else
21519  test -d ./-p && rmdir ./-p
21520  as_mkdir_p=false
21521fi
21522
21523# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21524# systems may use methods other than mode bits to determine executability.
21525cat >conf$$.file <<_ASEOF
21526#! /bin/sh
21527exit 0
21528_ASEOF
21529chmod +x conf$$.file
21530if test -x conf$$.file >/dev/null 2>&1; then
21531  as_executable_p="test -x"
21532else
21533  as_executable_p=:
21534fi
21535rm -f conf$$.file
21536
21537# Sed expression to map a string onto a valid CPP name.
21538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21539
21540# Sed expression to map a string onto a valid variable name.
21541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21542
21543
21544exec 6>&1
21545
21546# Save the log message, to keep $[0] and so on meaningful, and to
21547# report actual input values of CONFIG_FILES etc. instead of their
21548# values after options handling.
21549ac_log="
21550This file was extended by LLVM $as_me 3.1svn, which was
21551generated by GNU Autoconf 2.60.  Invocation command line was
21552
21553  CONFIG_FILES    = $CONFIG_FILES
21554  CONFIG_HEADERS  = $CONFIG_HEADERS
21555  CONFIG_LINKS    = $CONFIG_LINKS
21556  CONFIG_COMMANDS = $CONFIG_COMMANDS
21557  $ $0 $@
21558
21559on `(hostname || uname -n) 2>/dev/null | sed 1q`
21560"
21561
21562_ACEOF
21563
21564cat >>$CONFIG_STATUS <<_ACEOF
21565# Files that config.status was made for.
21566config_files="$ac_config_files"
21567config_headers="$ac_config_headers"
21568config_commands="$ac_config_commands"
21569
21570_ACEOF
21571
21572cat >>$CONFIG_STATUS <<\_ACEOF
21573ac_cs_usage="\
21574\`$as_me' instantiates files from templates according to the
21575current configuration.
21576
21577Usage: $0 [OPTIONS] [FILE]...
21578
21579  -h, --help       print this help, then exit
21580  -V, --version    print version number, then exit
21581  -q, --quiet      do not print progress messages
21582  -d, --debug      don't remove temporary files
21583      --recheck    update $as_me by reconfiguring in the same conditions
21584  --file=FILE[:TEMPLATE]
21585		   instantiate the configuration file FILE
21586  --header=FILE[:TEMPLATE]
21587		   instantiate the configuration header FILE
21588
21589Configuration files:
21590$config_files
21591
21592Configuration headers:
21593$config_headers
21594
21595Configuration commands:
21596$config_commands
21597
21598Report bugs to <bug-autoconf@gnu.org>."
21599
21600_ACEOF
21601cat >>$CONFIG_STATUS <<_ACEOF
21602ac_cs_version="\\
21603LLVM config.status 3.1svn
21604configured by $0, generated by GNU Autoconf 2.60,
21605  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21606
21607Copyright (C) 2006 Free Software Foundation, Inc.
21608This config.status script is free software; the Free Software Foundation
21609gives unlimited permission to copy, distribute and modify it."
21610
21611ac_pwd='$ac_pwd'
21612srcdir='$srcdir'
21613INSTALL='$INSTALL'
21614_ACEOF
21615
21616cat >>$CONFIG_STATUS <<\_ACEOF
21617# If no file are specified by the user, then we need to provide default
21618# value.  By we need to know if files were specified by the user.
21619ac_need_defaults=:
21620while test $# != 0
21621do
21622  case $1 in
21623  --*=*)
21624    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21625    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21626    ac_shift=:
21627    ;;
21628  *)
21629    ac_option=$1
21630    ac_optarg=$2
21631    ac_shift=shift
21632    ;;
21633  esac
21634
21635  case $ac_option in
21636  # Handling of the options.
21637  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21638    ac_cs_recheck=: ;;
21639  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21640    echo "$ac_cs_version"; exit ;;
21641  --debug | --debu | --deb | --de | --d | -d )
21642    debug=: ;;
21643  --file | --fil | --fi | --f )
21644    $ac_shift
21645    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21646    ac_need_defaults=false;;
21647  --header | --heade | --head | --hea )
21648    $ac_shift
21649    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21650    ac_need_defaults=false;;
21651  --he | --h)
21652    # Conflict between --help and --header
21653    { echo "$as_me: error: ambiguous option: $1
21654Try \`$0 --help' for more information." >&2
21655   { (exit 1); exit 1; }; };;
21656  --help | --hel | -h )
21657    echo "$ac_cs_usage"; exit ;;
21658  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21659  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21660    ac_cs_silent=: ;;
21661
21662  # This is an error.
21663  -*) { echo "$as_me: error: unrecognized option: $1
21664Try \`$0 --help' for more information." >&2
21665   { (exit 1); exit 1; }; } ;;
21666
21667  *) ac_config_targets="$ac_config_targets $1"
21668     ac_need_defaults=false ;;
21669
21670  esac
21671  shift
21672done
21673
21674ac_configure_extra_args=
21675
21676if $ac_cs_silent; then
21677  exec 6>/dev/null
21678  ac_configure_extra_args="$ac_configure_extra_args --silent"
21679fi
21680
21681_ACEOF
21682cat >>$CONFIG_STATUS <<_ACEOF
21683if \$ac_cs_recheck; then
21684  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21685  CONFIG_SHELL=$SHELL
21686  export CONFIG_SHELL
21687  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21688fi
21689
21690_ACEOF
21691cat >>$CONFIG_STATUS <<\_ACEOF
21692exec 5>>config.log
21693{
21694  echo
21695  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21696## Running $as_me. ##
21697_ASBOX
21698  echo "$ac_log"
21699} >&5
21700
21701_ACEOF
21702cat >>$CONFIG_STATUS <<_ACEOF
21703#
21704# INIT-COMMANDS
21705#
21706llvm_src="${srcdir}"
21707
21708_ACEOF
21709
21710cat >>$CONFIG_STATUS <<\_ACEOF
21711
21712# Handling of arguments.
21713for ac_config_target in $ac_config_targets
21714do
21715  case $ac_config_target in
21716    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21717    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21718    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21719    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21720    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21721    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21722    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21723    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21724    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21725    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21726    "${clang_src_root}/include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ${clang_src_root}/include/clang/Config/config.h" ;;
21727    "${clang_src_root}/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES ${clang_src_root}/docs/doxygen.cfg" ;;
21728    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21729    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21730    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21731    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21732    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21733    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21734    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21735    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21736    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21737    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21738    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21739    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21740    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21741    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21742    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21743
21744  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746   { (exit 1); exit 1; }; };;
21747  esac
21748done
21749
21750
21751# If the user did not use the arguments to specify the items to instantiate,
21752# then the envvar interface is used.  Set only those that are not.
21753# We use the long form for the default assignment because of an extremely
21754# bizarre bug on SunOS 4.1.3.
21755if $ac_need_defaults; then
21756  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21758  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21759fi
21760
21761# Have a temporary directory for convenience.  Make it in the build tree
21762# simply because there is no reason against having it here, and in addition,
21763# creating and moving files from /tmp can sometimes cause problems.
21764# Hook for its removal unless debugging.
21765# Note that there is a small window in which the directory will not be cleaned:
21766# after its creation but before its name has been assigned to `$tmp'.
21767$debug ||
21768{
21769  tmp=
21770  trap 'exit_status=$?
21771  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21772' 0
21773  trap '{ (exit 1); exit 1; }' 1 2 13 15
21774}
21775# Create a (secure) tmp directory for tmp files.
21776
21777{
21778  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21779  test -n "$tmp" && test -d "$tmp"
21780}  ||
21781{
21782  tmp=./conf$$-$RANDOM
21783  (umask 077 && mkdir "$tmp")
21784} ||
21785{
21786   echo "$me: cannot create a temporary directory in ." >&2
21787   { (exit 1); exit 1; }
21788}
21789
21790#
21791# Set up the sed scripts for CONFIG_FILES section.
21792#
21793
21794# No need to generate the scripts if there are no CONFIG_FILES.
21795# This happens for instance when ./config.status config.h
21796if test -n "$CONFIG_FILES"; then
21797
21798_ACEOF
21799
21800
21801
21802ac_delim='%!_!# '
21803for ac_last_try in false false false false false :; do
21804  cat >conf$$subs.sed <<_ACEOF
21805SHELL!$SHELL$ac_delim
21806PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812exec_prefix!$exec_prefix$ac_delim
21813prefix!$prefix$ac_delim
21814program_transform_name!$program_transform_name$ac_delim
21815bindir!$bindir$ac_delim
21816sbindir!$sbindir$ac_delim
21817libexecdir!$libexecdir$ac_delim
21818datarootdir!$datarootdir$ac_delim
21819datadir!$datadir$ac_delim
21820sysconfdir!$sysconfdir$ac_delim
21821sharedstatedir!$sharedstatedir$ac_delim
21822localstatedir!$localstatedir$ac_delim
21823includedir!$includedir$ac_delim
21824oldincludedir!$oldincludedir$ac_delim
21825docdir!$docdir$ac_delim
21826infodir!$infodir$ac_delim
21827htmldir!$htmldir$ac_delim
21828dvidir!$dvidir$ac_delim
21829pdfdir!$pdfdir$ac_delim
21830psdir!$psdir$ac_delim
21831libdir!$libdir$ac_delim
21832localedir!$localedir$ac_delim
21833mandir!$mandir$ac_delim
21834DEFS!$DEFS$ac_delim
21835ECHO_C!$ECHO_C$ac_delim
21836ECHO_N!$ECHO_N$ac_delim
21837ECHO_T!$ECHO_T$ac_delim
21838LIBS!$LIBS$ac_delim
21839build_alias!$build_alias$ac_delim
21840host_alias!$host_alias$ac_delim
21841target_alias!$target_alias$ac_delim
21842LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21843CC!$CC$ac_delim
21844CFLAGS!$CFLAGS$ac_delim
21845LDFLAGS!$LDFLAGS$ac_delim
21846CPPFLAGS!$CPPFLAGS$ac_delim
21847ac_ct_CC!$ac_ct_CC$ac_delim
21848EXEEXT!$EXEEXT$ac_delim
21849OBJEXT!$OBJEXT$ac_delim
21850CXX!$CXX$ac_delim
21851CXXFLAGS!$CXXFLAGS$ac_delim
21852ac_ct_CXX!$ac_ct_CXX$ac_delim
21853CPP!$CPP$ac_delim
21854subdirs!$subdirs$ac_delim
21855ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21856LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21857build!$build$ac_delim
21858build_cpu!$build_cpu$ac_delim
21859build_vendor!$build_vendor$ac_delim
21860build_os!$build_os$ac_delim
21861host!$host$ac_delim
21862host_cpu!$host_cpu$ac_delim
21863host_vendor!$host_vendor$ac_delim
21864host_os!$host_os$ac_delim
21865target!$target$ac_delim
21866target_cpu!$target_cpu$ac_delim
21867target_vendor!$target_vendor$ac_delim
21868target_os!$target_os$ac_delim
21869OS!$OS$ac_delim
21870HOST_OS!$HOST_OS$ac_delim
21871TARGET_OS!$TARGET_OS$ac_delim
21872LINKALL!$LINKALL$ac_delim
21873NOLINKALL!$NOLINKALL$ac_delim
21874LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21875LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21876ARCH!$ARCH$ac_delim
21877ENDIAN!$ENDIAN$ac_delim
21878GREP!$GREP$ac_delim
21879EGREP!$EGREP$ac_delim
21880LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21881BUILD_CC!$BUILD_CC$ac_delim
21882BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21883BUILD_CXX!$BUILD_CXX$ac_delim
21884CVSBUILD!$CVSBUILD$ac_delim
21885ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21886ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21887ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21888DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21889ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21890EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21891DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21892DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21893JIT!$JIT$ac_delim
21894TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21895ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21896ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21897LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21898ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21899ENABLE_PIC!$ENABLE_PIC$ac_delim
21900ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21901ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21902_ACEOF
21903
21904  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21905    break
21906  elif $ac_last_try; then
21907    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909   { (exit 1); exit 1; }; }
21910  else
21911    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21912  fi
21913done
21914
21915ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916if test -n "$ac_eof"; then
21917  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918  ac_eof=`expr $ac_eof + 1`
21919fi
21920
21921cat >>$CONFIG_STATUS <<_ACEOF
21922cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21924_ACEOF
21925sed '
21926s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927s/^/s,@/; s/!/@,|#_!!_#|/
21928:n
21929t n
21930s/'"$ac_delim"'$/,g/; t
21931s/$/\\/; p
21932N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933' >>$CONFIG_STATUS <conf$$subs.sed
21934rm -f conf$$subs.sed
21935cat >>$CONFIG_STATUS <<_ACEOF
21936CEOF$ac_eof
21937_ACEOF
21938
21939
21940ac_delim='%!_!# '
21941for ac_last_try in false false false false false :; do
21942  cat >conf$$subs.sed <<_ACEOF
21943ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21944TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21945LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21946LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21947LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21948LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21949ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21950OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21951EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21952EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21953CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21954BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21955INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21956NM!$NM$ac_delim
21957ifGNUmake!$ifGNUmake$ac_delim
21958LN_S!$LN_S$ac_delim
21959CMP!$CMP$ac_delim
21960CP!$CP$ac_delim
21961DATE!$DATE$ac_delim
21962FIND!$FIND$ac_delim
21963MKDIR!$MKDIR$ac_delim
21964MV!$MV$ac_delim
21965RANLIB!$RANLIB$ac_delim
21966AR!$AR$ac_delim
21967RM!$RM$ac_delim
21968SED!$SED$ac_delim
21969TAR!$TAR$ac_delim
21970BINPWD!$BINPWD$ac_delim
21971GRAPHVIZ!$GRAPHVIZ$ac_delim
21972DOT!$DOT$ac_delim
21973FDP!$FDP$ac_delim
21974NEATO!$NEATO$ac_delim
21975TWOPI!$TWOPI$ac_delim
21976CIRCO!$CIRCO$ac_delim
21977GV!$GV$ac_delim
21978DOTTY!$DOTTY$ac_delim
21979XDOT_PY!$XDOT_PY$ac_delim
21980PERL!$PERL$ac_delim
21981HAVE_PERL!$HAVE_PERL$ac_delim
21982INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984INSTALL_DATA!$INSTALL_DATA$ac_delim
21985BZIP2!$BZIP2$ac_delim
21986CAT!$CAT$ac_delim
21987DOXYGEN!$DOXYGEN$ac_delim
21988GROFF!$GROFF$ac_delim
21989GZIPBIN!$GZIPBIN$ac_delim
21990POD2HTML!$POD2HTML$ac_delim
21991POD2MAN!$POD2MAN$ac_delim
21992PDFROFF!$PDFROFF$ac_delim
21993RUNTEST!$RUNTEST$ac_delim
21994TCLSH!$TCLSH$ac_delim
21995ZIP!$ZIP$ac_delim
21996OCAMLC!$OCAMLC$ac_delim
21997OCAMLOPT!$OCAMLOPT$ac_delim
21998OCAMLDEP!$OCAMLDEP$ac_delim
21999OCAMLDOC!$OCAMLDOC$ac_delim
22000GAS!$GAS$ac_delim
22001HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22002INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006LIBADD_DL!$LIBADD_DL$ac_delim
22007NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009USE_UDIS86!$USE_UDIS86$ac_delim
22010USE_OPROFILE!$USE_OPROFILE$ac_delim
22011HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22012HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22013MMAP_FILE!$MMAP_FILE$ac_delim
22014SHLIBEXT!$SHLIBEXT$ac_delim
22015SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22016LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22017LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22018LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22019LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22028OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030RPATH!$RPATH$ac_delim
22031RDYNAMIC!$RDYNAMIC$ac_delim
22032LIBOBJS!$LIBOBJS$ac_delim
22033LTLIBOBJS!$LTLIBOBJS$ac_delim
22034_ACEOF
22035
22036  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22037    break
22038  elif $ac_last_try; then
22039    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041   { (exit 1); exit 1; }; }
22042  else
22043    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044  fi
22045done
22046
22047ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048if test -n "$ac_eof"; then
22049  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050  ac_eof=`expr $ac_eof + 1`
22051fi
22052
22053cat >>$CONFIG_STATUS <<_ACEOF
22054cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056_ACEOF
22057sed '
22058s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059s/^/s,@/; s/!/@,|#_!!_#|/
22060:n
22061t n
22062s/'"$ac_delim"'$/,g/; t
22063s/$/\\/; p
22064N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065' >>$CONFIG_STATUS <conf$$subs.sed
22066rm -f conf$$subs.sed
22067cat >>$CONFIG_STATUS <<_ACEOF
22068:end
22069s/|#_!!_#|//g
22070CEOF$ac_eof
22071_ACEOF
22072
22073
22074# VPATH may cause trouble with some makes, so we remove $(srcdir),
22075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076# trailing colons and then remove the whole line if VPATH becomes empty
22077# (actually we leave an empty line to preserve line numbers).
22078if test "x$srcdir" = x.; then
22079  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22080s/:*\$(srcdir):*/:/
22081s/:*\${srcdir}:*/:/
22082s/:*@srcdir@:*/:/
22083s/^\([^=]*=[	 ]*\):*/\1/
22084s/:*$//
22085s/^[^=]*=[	 ]*$//
22086}'
22087fi
22088
22089cat >>$CONFIG_STATUS <<\_ACEOF
22090fi # test -n "$CONFIG_FILES"
22091
22092
22093for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22094do
22095  case $ac_tag in
22096  :[FHLC]) ac_mode=$ac_tag; continue;;
22097  esac
22098  case $ac_mode$ac_tag in
22099  :[FHL]*:*);;
22100  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102   { (exit 1); exit 1; }; };;
22103  :[FH]-) ac_tag=-:-;;
22104  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105  esac
22106  ac_save_IFS=$IFS
22107  IFS=:
22108  set x $ac_tag
22109  IFS=$ac_save_IFS
22110  shift
22111  ac_file=$1
22112  shift
22113
22114  case $ac_mode in
22115  :L) ac_source=$1;;
22116  :[FH])
22117    ac_file_inputs=
22118    for ac_f
22119    do
22120      case $ac_f in
22121      -) ac_f="$tmp/stdin";;
22122      *) # Look for the file first in the build tree, then in the source tree
22123	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22124	 # because $ac_f cannot contain `:'.
22125	 test -f "$ac_f" ||
22126	   case $ac_f in
22127	   [\\/$]*) false;;
22128	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129	   esac ||
22130	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132   { (exit 1); exit 1; }; };;
22133      esac
22134      ac_file_inputs="$ac_file_inputs $ac_f"
22135    done
22136
22137    # Let's still pretend it is `configure' which instantiates (i.e., don't
22138    # use $as_me), people would be surprised to read:
22139    #    /* config.h.  Generated by config.status.  */
22140    configure_input="Generated from "`IFS=:
22141	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22142    if test x"$ac_file" != x-; then
22143      configure_input="$ac_file.  $configure_input"
22144      { echo "$as_me:$LINENO: creating $ac_file" >&5
22145echo "$as_me: creating $ac_file" >&6;}
22146    fi
22147
22148    case $ac_tag in
22149    *:-:* | *:-) cat >"$tmp/stdin";;
22150    esac
22151    ;;
22152  esac
22153
22154  ac_dir=`$as_dirname -- "$ac_file" ||
22155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156	 X"$ac_file" : 'X\(//\)[^/]' \| \
22157	 X"$ac_file" : 'X\(//\)$' \| \
22158	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22159echo X"$ac_file" |
22160    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161	    s//\1/
22162	    q
22163	  }
22164	  /^X\(\/\/\)[^/].*/{
22165	    s//\1/
22166	    q
22167	  }
22168	  /^X\(\/\/\)$/{
22169	    s//\1/
22170	    q
22171	  }
22172	  /^X\(\/\).*/{
22173	    s//\1/
22174	    q
22175	  }
22176	  s/.*/./; q'`
22177  { as_dir="$ac_dir"
22178  case $as_dir in #(
22179  -*) as_dir=./$as_dir;;
22180  esac
22181  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182    as_dirs=
22183    while :; do
22184      case $as_dir in #(
22185      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186      *) as_qdir=$as_dir;;
22187      esac
22188      as_dirs="'$as_qdir' $as_dirs"
22189      as_dir=`$as_dirname -- "$as_dir" ||
22190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191	 X"$as_dir" : 'X\(//\)[^/]' \| \
22192	 X"$as_dir" : 'X\(//\)$' \| \
22193	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194echo X"$as_dir" |
22195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196	    s//\1/
22197	    q
22198	  }
22199	  /^X\(\/\/\)[^/].*/{
22200	    s//\1/
22201	    q
22202	  }
22203	  /^X\(\/\/\)$/{
22204	    s//\1/
22205	    q
22206	  }
22207	  /^X\(\/\).*/{
22208	    s//\1/
22209	    q
22210	  }
22211	  s/.*/./; q'`
22212      test -d "$as_dir" && break
22213    done
22214    test -z "$as_dirs" || eval "mkdir $as_dirs"
22215  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217   { (exit 1); exit 1; }; }; }
22218  ac_builddir=.
22219
22220case "$ac_dir" in
22221.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222*)
22223  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224  # A ".." for each directory in $ac_dir_suffix.
22225  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22226  case $ac_top_builddir_sub in
22227  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229  esac ;;
22230esac
22231ac_abs_top_builddir=$ac_pwd
22232ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233# for backward compatibility:
22234ac_top_builddir=$ac_top_build_prefix
22235
22236case $srcdir in
22237  .)  # We are building in place.
22238    ac_srcdir=.
22239    ac_top_srcdir=$ac_top_builddir_sub
22240    ac_abs_top_srcdir=$ac_pwd ;;
22241  [\\/]* | ?:[\\/]* )  # Absolute name.
22242    ac_srcdir=$srcdir$ac_dir_suffix;
22243    ac_top_srcdir=$srcdir
22244    ac_abs_top_srcdir=$srcdir ;;
22245  *) # Relative name.
22246    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247    ac_top_srcdir=$ac_top_build_prefix$srcdir
22248    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22249esac
22250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22251
22252
22253  case $ac_mode in
22254  :F)
22255  #
22256  # CONFIG_FILE
22257  #
22258
22259  case $INSTALL in
22260  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22261  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22262  esac
22263_ACEOF
22264
22265cat >>$CONFIG_STATUS <<\_ACEOF
22266# If the template does not know about datarootdir, expand it.
22267# FIXME: This hack should be removed a few years after 2.60.
22268ac_datarootdir_hack=; ac_datarootdir_seen=
22269
22270case `sed -n '/datarootdir/ {
22271  p
22272  q
22273}
22274/@datadir@/p
22275/@docdir@/p
22276/@infodir@/p
22277/@localedir@/p
22278/@mandir@/p
22279' $ac_file_inputs` in
22280*datarootdir*) ac_datarootdir_seen=yes;;
22281*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22284_ACEOF
22285cat >>$CONFIG_STATUS <<_ACEOF
22286  ac_datarootdir_hack='
22287  s&@datadir@&$datadir&g
22288  s&@docdir@&$docdir&g
22289  s&@infodir@&$infodir&g
22290  s&@localedir@&$localedir&g
22291  s&@mandir@&$mandir&g
22292    s&\\\${datarootdir}&$datarootdir&g' ;;
22293esac
22294_ACEOF
22295
22296# Neutralize VPATH when `$srcdir' = `.'.
22297# Shell code in configure.ac might set extrasub.
22298# FIXME: do we really want to maintain this feature?
22299cat >>$CONFIG_STATUS <<_ACEOF
22300  sed "$ac_vpsub
22301$extrasub
22302_ACEOF
22303cat >>$CONFIG_STATUS <<\_ACEOF
22304:t
22305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306s&@configure_input@&$configure_input&;t t
22307s&@top_builddir@&$ac_top_builddir_sub&;t t
22308s&@srcdir@&$ac_srcdir&;t t
22309s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310s&@top_srcdir@&$ac_top_srcdir&;t t
22311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312s&@builddir@&$ac_builddir&;t t
22313s&@abs_builddir@&$ac_abs_builddir&;t t
22314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315s&@INSTALL@&$ac_INSTALL&;t t
22316$ac_datarootdir_hack
22317" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22318
22319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323which seems to be undefined.  Please make sure it is defined." >&5
22324echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325which seems to be undefined.  Please make sure it is defined." >&2;}
22326
22327  rm -f "$tmp/stdin"
22328  case $ac_file in
22329  -) cat "$tmp/out"; rm -f "$tmp/out";;
22330  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331  esac
22332 ;;
22333  :H)
22334  #
22335  # CONFIG_HEADER
22336  #
22337_ACEOF
22338
22339# Transform confdefs.h into a sed script `conftest.defines', that
22340# substitutes the proper values into config.h.in to produce config.h.
22341rm -f conftest.defines conftest.tail
22342# First, append a space to every undef/define line, to ease matching.
22343echo 's/$/ /' >conftest.defines
22344# Then, protect against being on the right side of a sed subst, or in
22345# an unquoted here document, in config.status.  If some macros were
22346# called several times there might be several #defines for the same
22347# symbol, which is useless.  But do not sort them, since the last
22348# AC_DEFINE must be honored.
22349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351# NAME is the cpp macro being defined, VALUE is the value it is being given.
22352# PARAMS is the parameter list in the macro definition--in most cases, it's
22353# just an empty string.
22354ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22355ac_dB='\\)[	 (].*,\\1define\\2'
22356ac_dC=' '
22357ac_dD=' ,'
22358
22359uniq confdefs.h |
22360  sed -n '
22361	t rset
22362	:rset
22363	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22364	t ok
22365	d
22366	:ok
22367	s/[\\&,]/\\&/g
22368	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370  ' >>conftest.defines
22371
22372# Remove the space that was appended to ease matching.
22373# Then replace #undef with comments.  This is necessary, for
22374# example, in the case of _POSIX_SOURCE, which is predefined and required
22375# on some systems where configure will not decide to define it.
22376# (The regexp can be short, since the line contains either #define or #undef.)
22377echo 's/ $//
22378s,^[	 #]*u.*,/* & */,' >>conftest.defines
22379
22380# Break up conftest.defines:
22381ac_max_sed_lines=50
22382
22383# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22386# et cetera.
22387ac_in='$ac_file_inputs'
22388ac_out='"$tmp/out1"'
22389ac_nxt='"$tmp/out2"'
22390
22391while :
22392do
22393  # Write a here document:
22394    cat >>$CONFIG_STATUS <<_ACEOF
22395    # First, check the format of the line:
22396    cat >"\$tmp/defines.sed" <<\\CEOF
22397/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22398/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22399b
22400:def
22401_ACEOF
22402  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22403  echo 'CEOF
22404    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407  grep . conftest.tail >/dev/null || break
22408  rm -f conftest.defines
22409  mv conftest.tail conftest.defines
22410done
22411rm -f conftest.defines conftest.tail
22412
22413echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414cat >>$CONFIG_STATUS <<\_ACEOF
22415  if test x"$ac_file" != x-; then
22416    echo "/* $configure_input  */" >"$tmp/config.h"
22417    cat "$ac_result" >>"$tmp/config.h"
22418    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420echo "$as_me: $ac_file is unchanged" >&6;}
22421    else
22422      rm -f $ac_file
22423      mv "$tmp/config.h" $ac_file
22424    fi
22425  else
22426    echo "/* $configure_input  */"
22427    cat "$ac_result"
22428  fi
22429  rm -f "$tmp/out12"
22430 ;;
22431
22432  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22433echo "$as_me: executing $ac_file commands" >&6;}
22434 ;;
22435  esac
22436
22437
22438  case $ac_file$ac_mode in
22439    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22440   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22441    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22442   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22443    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22444   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22445    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22446   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22447    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22448   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22449    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22450   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22451    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22452   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22453    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22454   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22455    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22456   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22457    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22458   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22459    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22460   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22461    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22462   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22463    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22464   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22465
22466  esac
22467done # for ac_tag
22468
22469
22470{ (exit 0); exit 0; }
22471_ACEOF
22472chmod +x $CONFIG_STATUS
22473ac_clean_files=$ac_clean_files_save
22474
22475
22476# configure is writing to config.log, and then calls config.status.
22477# config.status does its own redirection, appending to config.log.
22478# Unfortunately, on DOS this fails, as config.log is still kept open
22479# by configure, so config.status won't be able to write to it; its
22480# output is simply discarded.  So we exec the FD to /dev/null,
22481# effectively closing config.log, so it can be properly (re)opened and
22482# appended to by config.status.  When coming back to configure, we
22483# need to make the FD available again.
22484if test "$no_create" != yes; then
22485  ac_cs_success=:
22486  ac_config_status_args=
22487  test "$silent" = yes &&
22488    ac_config_status_args="$ac_config_status_args --quiet"
22489  exec 5>/dev/null
22490  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22491  exec 5>>config.log
22492  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22493  # would make configure fail if this is the last instruction.
22494  $ac_cs_success || { (exit 1); exit 1; }
22495fi
22496
22497#
22498# CONFIG_SUBDIRS section.
22499#
22500if test "$no_recursion" != yes; then
22501
22502  # Remove --cache-file and --srcdir arguments so they do not pile up.
22503  ac_sub_configure_args=
22504  ac_prev=
22505  eval "set x $ac_configure_args"
22506  shift
22507  for ac_arg
22508  do
22509    if test -n "$ac_prev"; then
22510      ac_prev=
22511      continue
22512    fi
22513    case $ac_arg in
22514    -cache-file | --cache-file | --cache-fil | --cache-fi \
22515    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22516      ac_prev=cache_file ;;
22517    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22518    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22519    | --c=*)
22520      ;;
22521    --config-cache | -C)
22522      ;;
22523    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22524      ac_prev=srcdir ;;
22525    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22526      ;;
22527    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22528      ac_prev=prefix ;;
22529    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22530      ;;
22531    *)
22532      case $ac_arg in
22533      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22534      esac
22535      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22536    esac
22537  done
22538
22539  # Always prepend --prefix to ensure using the same prefix
22540  # in subdir configurations.
22541  ac_arg="--prefix=$prefix"
22542  case $ac_arg in
22543  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22544  esac
22545  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22546
22547  ac_popdir=`pwd`
22548  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22549
22550    # Do not complain, so a configure script can configure whichever
22551    # parts of a large source tree are present.
22552    test -d "$srcdir/$ac_dir" || continue
22553
22554    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22555    echo "$as_me:$LINENO: $ac_msg" >&5
22556    echo "$ac_msg" >&6
22557    { as_dir="$ac_dir"
22558  case $as_dir in #(
22559  -*) as_dir=./$as_dir;;
22560  esac
22561  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22562    as_dirs=
22563    while :; do
22564      case $as_dir in #(
22565      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22566      *) as_qdir=$as_dir;;
22567      esac
22568      as_dirs="'$as_qdir' $as_dirs"
22569      as_dir=`$as_dirname -- "$as_dir" ||
22570$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571	 X"$as_dir" : 'X\(//\)[^/]' \| \
22572	 X"$as_dir" : 'X\(//\)$' \| \
22573	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574echo X"$as_dir" |
22575    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22576	    s//\1/
22577	    q
22578	  }
22579	  /^X\(\/\/\)[^/].*/{
22580	    s//\1/
22581	    q
22582	  }
22583	  /^X\(\/\/\)$/{
22584	    s//\1/
22585	    q
22586	  }
22587	  /^X\(\/\).*/{
22588	    s//\1/
22589	    q
22590	  }
22591	  s/.*/./; q'`
22592      test -d "$as_dir" && break
22593    done
22594    test -z "$as_dirs" || eval "mkdir $as_dirs"
22595  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22596echo "$as_me: error: cannot create directory $as_dir" >&2;}
22597   { (exit 1); exit 1; }; }; }
22598    ac_builddir=.
22599
22600case "$ac_dir" in
22601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602*)
22603  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604  # A ".." for each directory in $ac_dir_suffix.
22605  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22606  case $ac_top_builddir_sub in
22607  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22609  esac ;;
22610esac
22611ac_abs_top_builddir=$ac_pwd
22612ac_abs_builddir=$ac_pwd$ac_dir_suffix
22613# for backward compatibility:
22614ac_top_builddir=$ac_top_build_prefix
22615
22616case $srcdir in
22617  .)  # We are building in place.
22618    ac_srcdir=.
22619    ac_top_srcdir=$ac_top_builddir_sub
22620    ac_abs_top_srcdir=$ac_pwd ;;
22621  [\\/]* | ?:[\\/]* )  # Absolute name.
22622    ac_srcdir=$srcdir$ac_dir_suffix;
22623    ac_top_srcdir=$srcdir
22624    ac_abs_top_srcdir=$srcdir ;;
22625  *) # Relative name.
22626    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22627    ac_top_srcdir=$ac_top_build_prefix$srcdir
22628    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22629esac
22630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22631
22632
22633    cd "$ac_dir"
22634
22635    # Check for guested configure; otherwise get Cygnus style configure.
22636    if test -f "$ac_srcdir/configure.gnu"; then
22637      ac_sub_configure=$ac_srcdir/configure.gnu
22638    elif test -f "$ac_srcdir/configure"; then
22639      ac_sub_configure=$ac_srcdir/configure
22640    elif test -f "$ac_srcdir/configure.in"; then
22641      # This should be Cygnus configure.
22642      ac_sub_configure=$ac_aux_dir/configure
22643    else
22644      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22645echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22646      ac_sub_configure=
22647    fi
22648
22649    # The recursion is here.
22650    if test -n "$ac_sub_configure"; then
22651      # Make the cache file name correct relative to the subdirectory.
22652      case $cache_file in
22653      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22654      *) # Relative name.
22655	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22656      esac
22657
22658      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22659echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22660      # The eval makes quoting arguments work.
22661      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22662	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22663	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22664echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22665   { (exit 1); exit 1; }; }
22666    fi
22667
22668    cd "$ac_popdir"
22669  done
22670fi
22671
22672