configure revision 39ed6789c537ab6ec3d9b5944761e87c215f4fab
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2010 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='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568ac_unique_file="lib/VMCore/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#if HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#if HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#if STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# if HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#if HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#if HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#if HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#if HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='SHELL
606PATH_SEPARATOR
607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
692ENABLE_SHARED
693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752HAVE_LINK_RETAIN_SYMBOLS_FILE
753INSTALL_LTDL_TRUE
754INSTALL_LTDL_FALSE
755CONVENIENCE_LTDL_TRUE
756CONVENIENCE_LTDL_FALSE
757LIBADD_DL
758LLVMGCCCOMMAND
759LLVMGXXCOMMAND
760LLVMGCC
761LLVMGXX
762LLVMCC_OPTION
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
770LLVMCC1
771LLVMCC1PLUS
772LLVMGCCDIR
773LLVMGCC_LANGS
774SHLIBEXT
775SHLIBPATH_VAR
776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
794ac_subst_files=''
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
802CPP
803CXX
804CXXFLAGS
805CCC'
806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
812projects/privbracket
813projects/llvm-stacker
814projects/llvm-reopt
815projects/llvm-java
816projects/llvm-tv
817projects/safecode
818projects/llvm-kernel'
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 2.8svn 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 2.8svn:";;
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-optimized      Compile with optimizations enabled (default is NO)
1394  --enable-profiling      Compile with profiling enabled (default is NO)
1395  --enable-assertions     Compile with assertion checks enabled (default is
1396                          YES)
1397  --enable-expensive-checks
1398                          Compile with expensive debug checks enabled (default
1399                          is NO)
1400  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1401                          NO)
1402  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1403                          optimization is on and YES if it's off)
1404  --enable-jit            Enable Just In Time Compiling (default is YES)
1405  --enable-doxygen        Build doxygen documentation (default is NO)
1406  --enable-threads        Use threads if available (default is YES)
1407  --enable-pic            Build LLVM with Position Independent Code (default
1408                          is YES)
1409  --enable-shared         Build a shared library and link tools against it
1410                          (default is NO)
1411  --enable-targets        Build specific host targets: all or
1412                          target1,target2,... Valid targets are: host, x86,
1413                          x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414                          pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415                          and cpp (default=all)
1416  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1417                          %a (default is YES)
1418  --enable-bindings       Build specific language bindings:
1419                          all,auto,none,{binding-name} (default=auto)
1420  --enable-libffi         Check for the presence of libffi (default is NO)
1421  --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1422                          Win32)
1423  --enable-llvmc-dynamic-plugins
1424                          Enable dynamic LLVMC plugins (default is YES)
1425  --enable-ltdl-install   install libltdl
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1431                          searches PATH)
1432  --with-llvmgcc          Specify location of llvm-gcc driver (default
1433                          searches PATH)
1434  --with-llvmgxx          Specify location of llvm-g++ driver (default
1435                          searches PATH)
1436  --with-clang            Specify location of clang compiler (default is
1437                          --with-built-clang)
1438  --with-built-clang      Use the compiled Clang as the LLVM compiler
1439                          (default=check)
1440  --with-optimize-option  Select the compiler options to use for optimized
1441                          builds
1442  --with-extra-options    Specify additional options to compile LLVM with
1443  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                          is stdlib)
1445  --with-c-include-dirs   Colon separated list of directories clang will
1446                          search for headers
1447  --with-cxx-include-root Directory with the libstdc++ headers.
1448  --with-cxx-include-arch Architecture of the libstdc++ headers.
1449  --with-cxx-include-32bit-dir
1450                          32 bit multilib dir.
1451  --with-cxx-include-64bit-dir
1452                          64 bit multilib directory.
1453  --with-binutils-include Specify path to binutils/include/ containing
1454                          plugin-api.h file for gold plugin.
1455  --with-tclinclude       directory where tcl headers are
1456  --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1457                          clang, or none; default=check)
1458  --with-udis86=<path>    Use udis86 external x86 disassembler library
1459  --with-oprofile=<prefix>
1460                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468              you have headers in a nonstandard directory <include dir>
1469  CPP         C preprocessor
1470  CXX         C++ compiler command
1471  CXXFLAGS    C++ compiler flags
1472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <llvmbugs@cs.uiuc.edu>.
1477_ACEOF
1478ac_status=$?
1479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482  # If there are subdirs, report their specific --help.
1483  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484    test -d "$ac_dir" || continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for guested configure.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537llvm configure 2.8svn
1538generated by GNU Autoconf 2.60
1539
1540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544
1545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546_ACEOF
1547  exit
1548fi
1549cat >config.log <<_ACEOF
1550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
1553It was created by llvm $as_me 2.8svn, which was
1554generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556  $ $0 $@
1557
1558_ACEOF
1559exec 5>>config.log
1560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588  IFS=$as_save_IFS
1589  test -z "$as_dir" && as_dir=.
1590  echo "PATH: $as_dir"
1591done
1592IFS=$as_save_IFS
1593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
1608# Strip out --silent because we don't want to record it for future runs.
1609# Also quote any args containing shell meta-characters.
1610# Make two passes to allow for proper duplicate-argument suppression.
1611ac_configure_args=
1612ac_configure_args0=
1613ac_configure_args1=
1614ac_must_keep_next=false
1615for ac_pass in 1 2
1616do
1617  for ac_arg
1618  do
1619    case $ac_arg in
1620    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622    | -silent | --silent | --silen | --sile | --sil)
1623      continue ;;
1624    *\'*)
1625      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626    esac
1627    case $ac_pass in
1628    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629    2)
1630      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631      if test $ac_must_keep_next = true; then
1632	ac_must_keep_next=false # Got value, back to normal.
1633      else
1634	case $ac_arg in
1635	  *=* | --config-cache | -C | -disable-* | --disable-* \
1636	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638	  | -with-* | --with-* | -without-* | --without-* | --x)
1639	    case "$ac_configure_args0 " in
1640	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641	    esac
1642	    ;;
1643	  -* ) ac_must_keep_next=true ;;
1644	esac
1645      fi
1646      ac_configure_args="$ac_configure_args '$ac_arg'"
1647      ;;
1648    esac
1649  done
1650done
1651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log.  We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
1657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659trap 'exit_status=$?
1660  # Save into config.log some information that might help in debugging.
1661  {
1662    echo
1663
1664    cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669    echo
1670    # The following way of writing the cache mishandles newlines in values,
1671(
1672  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673    eval ac_val=\$$ac_var
1674    case $ac_val in #(
1675    *${as_nl}*)
1676      case $ac_var in #(
1677      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679      esac
1680      case $ac_var in #(
1681      _ | IFS | as_nl) ;; #(
1682      *) $as_unset $ac_var ;;
1683      esac ;;
1684    esac
1685  done
1686  (set) 2>&1 |
1687    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688    *${as_nl}ac_space=\ *)
1689      sed -n \
1690	"s/'\''/'\''\\\\'\'''\''/g;
1691	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692      ;; #(
1693    *)
1694      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695      ;;
1696    esac |
1697    sort
1698)
1699    echo
1700
1701    cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706    echo
1707    for ac_var in $ac_subst_vars
1708    do
1709      eval ac_val=\$$ac_var
1710      case $ac_val in
1711      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712      esac
1713      echo "$ac_var='\''$ac_val'\''"
1714    done | sort
1715    echo
1716
1717    if test -n "$ac_subst_files"; then
1718      cat <<\_ASBOX
1719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
1722_ASBOX
1723      echo
1724      for ac_var in $ac_subst_files
1725      do
1726	eval ac_val=\$$ac_var
1727	case $ac_val in
1728	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729	esac
1730	echo "$ac_var='\''$ac_val'\''"
1731      done | sort
1732      echo
1733    fi
1734
1735    if test -s confdefs.h; then
1736      cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741      echo
1742      cat confdefs.h
1743      echo
1744    fi
1745    test "$ac_signal" != 0 &&
1746      echo "$as_me: caught signal $ac_signal"
1747    echo "$as_me: exit $exit_status"
1748  } >&5
1749  rm -f core *.core core.conftest.* &&
1750    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751    exit $exit_status
1752' 0
1753for ac_signal in 1 2 13 15; do
1754  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
1759rm -f -r conftest* confdefs.h
1760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
1765_ACEOF
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770_ACEOF
1771
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
1789# Prefer explicitly selected file to automatically selected ones.
1790if test -n "$CONFIG_SITE"; then
1791  set x "$CONFIG_SITE"
1792elif test "x$prefix" != xNONE; then
1793  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794else
1795  set x "$ac_default_prefix/share/config.site" \
1796	"$ac_default_prefix/etc/config.site"
1797fi
1798shift
1799for ac_site_file
1800do
1801  if test -r "$ac_site_file"; then
1802    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
1804    sed 's/^/| /' "$ac_site_file" >&5
1805    . "$ac_site_file"
1806  fi
1807done
1808
1809if test -r "$cache_file"; then
1810  # Some versions of bash will fail to source /dev/null (special
1811  # files actually), so we avoid doing that.
1812  if test -f "$cache_file"; then
1813    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
1815    case $cache_file in
1816      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817      *)                      . "./$cache_file";;
1818    esac
1819  fi
1820else
1821  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
1823  >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
1829for ac_var in $ac_precious_vars; do
1830  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831  eval ac_new_set=\$ac_env_${ac_var}_set
1832  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833  eval ac_new_val=\$ac_env_${ac_var}_value
1834  case $ac_old_set,$ac_new_set in
1835    set,)
1836      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838      ac_cache_corrupted=: ;;
1839    ,set)
1840      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842      ac_cache_corrupted=: ;;
1843    ,);;
1844    *)
1845      if test "x$ac_old_val" != "x$ac_new_val"; then
1846	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849echo "$as_me:   former value:  $ac_old_val" >&2;}
1850	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851echo "$as_me:   current value: $ac_new_val" >&2;}
1852	ac_cache_corrupted=:
1853      fi;;
1854  esac
1855  # Pass precious variables to config.status.
1856  if test "$ac_new_set" = set; then
1857    case $ac_new_val in
1858    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859    *) ac_arg=$ac_var=$ac_new_val ;;
1860    esac
1861    case " $ac_configure_args " in
1862      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864    esac
1865  fi
1866done
1867if $ac_cache_corrupted; then
1868  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872   { (exit 1); exit 1; }; }
1873fi
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1908
1909
1910
1911
1912
1913
1914
1915ac_aux_dir=
1916for ac_dir in autoconf "$srcdir"/autoconf; do
1917  if test -f "$ac_dir/install-sh"; then
1918    ac_aux_dir=$ac_dir
1919    ac_install_sh="$ac_aux_dir/install-sh -c"
1920    break
1921  elif test -f "$ac_dir/install.sh"; then
1922    ac_aux_dir=$ac_dir
1923    ac_install_sh="$ac_aux_dir/install.sh -c"
1924    break
1925  elif test -f "$ac_dir/shtool"; then
1926    ac_aux_dir=$ac_dir
1927    ac_install_sh="$ac_aux_dir/shtool install -c"
1928    break
1929  fi
1930done
1931if test -z "$ac_aux_dir"; then
1932  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934   { (exit 1); exit 1; }; }
1935fi
1936
1937# These three variables are undocumented and unsupported,
1938# and are intended to be withdrawn in a future Autoconf release.
1939# They can cause serious problems if a builder's source tree is in a directory
1940# whose full name contains unusual characters.
1941ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947if test ${srcdir} != "." ; then
1948  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951   { (exit 1); exit 1; }; }
1952  fi
1953fi
1954
1955
1956
1957if test -d ${srcdir}/projects/llvm-gcc ; then
1958  subdirs="$subdirs projects/llvm-gcc"
1959
1960fi
1961
1962if test -d ${srcdir}/projects/test-suite ; then
1963  subdirs="$subdirs projects/test-suite"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/llvm-test ; then
1968  subdirs="$subdirs projects/llvm-test"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/poolalloc ; then
1973  subdirs="$subdirs projects/poolalloc"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978  subdirs="$subdirs projects/llvm-poolalloc"
1979
1980fi
1981
1982for i in `ls ${srcdir}/projects`
1983do
1984  if test -d ${srcdir}/projects/${i} ; then
1985    case ${i} in
1986      CVS) ;;
1987      sample)       subdirs="$subdirs projects/sample"
1988    ;;
1989      privbracket)  subdirs="$subdirs projects/privbracket"
1990 ;;
1991      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992 ;;
1993      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1994;;
1995      llvm-java)    subdirs="$subdirs projects/llvm-java"
1996 ;;
1997      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1998   ;;
1999      safecode)     subdirs="$subdirs projects/safecode"
2000 ;;
2001      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2002 ;;
2003      llvm-gcc)       ;;
2004      test-suite)     ;;
2005      llvm-test)      ;;
2006      poolalloc)      ;;
2007      llvm-poolalloc) ;;
2008      *)
2009        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2011        ;;
2012    esac
2013  fi
2014done
2015
2016
2017# Make sure we can run config.sub.
2018$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021   { (exit 1); exit 1; }; }
2022
2023{ echo "$as_me:$LINENO: checking build system type" >&5
2024echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025if test "${ac_cv_build+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  ac_build_alias=$build_alias
2029test "x$ac_build_alias" = x &&
2030  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031test "x$ac_build_alias" = x &&
2032  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034   { (exit 1); exit 1; }; }
2035ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038   { (exit 1); exit 1; }; }
2039
2040fi
2041{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042echo "${ECHO_T}$ac_cv_build" >&6; }
2043case $ac_cv_build in
2044*-*-*) ;;
2045*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046echo "$as_me: error: invalid value of canonical build" >&2;}
2047   { (exit 1); exit 1; }; };;
2048esac
2049build=$ac_cv_build
2050ac_save_IFS=$IFS; IFS='-'
2051set x $ac_cv_build
2052shift
2053build_cpu=$1
2054build_vendor=$2
2055shift; shift
2056# Remember, the first character of IFS is used to create $*,
2057# except with old shells:
2058build_os=$*
2059IFS=$ac_save_IFS
2060case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061
2062
2063{ echo "$as_me:$LINENO: checking host system type" >&5
2064echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065if test "${ac_cv_host+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test "x$host_alias" = x; then
2069  ac_cv_host=$ac_cv_build
2070else
2071  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074   { (exit 1); exit 1; }; }
2075fi
2076
2077fi
2078{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079echo "${ECHO_T}$ac_cv_host" >&6; }
2080case $ac_cv_host in
2081*-*-*) ;;
2082*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083echo "$as_me: error: invalid value of canonical host" >&2;}
2084   { (exit 1); exit 1; }; };;
2085esac
2086host=$ac_cv_host
2087ac_save_IFS=$IFS; IFS='-'
2088set x $ac_cv_host
2089shift
2090host_cpu=$1
2091host_vendor=$2
2092shift; shift
2093# Remember, the first character of IFS is used to create $*,
2094# except with old shells:
2095host_os=$*
2096IFS=$ac_save_IFS
2097case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098
2099
2100{ echo "$as_me:$LINENO: checking target system type" >&5
2101echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102if test "${ac_cv_target+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  if test "x$target_alias" = x; then
2106  ac_cv_target=$ac_cv_host
2107else
2108  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111   { (exit 1); exit 1; }; }
2112fi
2113
2114fi
2115{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116echo "${ECHO_T}$ac_cv_target" >&6; }
2117case $ac_cv_target in
2118*-*-*) ;;
2119*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120echo "$as_me: error: invalid value of canonical target" >&2;}
2121   { (exit 1); exit 1; }; };;
2122esac
2123target=$ac_cv_target
2124ac_save_IFS=$IFS; IFS='-'
2125set x $ac_cv_target
2126shift
2127target_cpu=$1
2128target_vendor=$2
2129shift; shift
2130# Remember, the first character of IFS is used to create $*,
2131# except with old shells:
2132target_os=$*
2133IFS=$ac_save_IFS
2134case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135
2136
2137# The aliases save the names the user supplied, while $host etc.
2138# will get canonicalized.
2139test -n "$target_alias" &&
2140  test "$program_prefix$program_suffix$program_transform_name" = \
2141    NONENONEs,x,x, &&
2142  program_prefix=${target_alias}-
2143
2144{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146if test "${llvm_cv_os_type+set}" = set; then
2147  echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149  case $host in
2150  *-*-aix*)
2151    llvm_cv_link_all_option="-Wl,--whole-archive"
2152    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153    llvm_cv_os_type="AIX"
2154    llvm_cv_platform_type="Unix" ;;
2155  *-*-irix*)
2156    llvm_cv_link_all_option="-Wl,--whole-archive"
2157    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158    llvm_cv_os_type="IRIX"
2159    llvm_cv_platform_type="Unix" ;;
2160  *-*-cygwin*)
2161    llvm_cv_link_all_option="-Wl,--whole-archive"
2162    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163    llvm_cv_os_type="Cygwin"
2164    llvm_cv_platform_type="Unix" ;;
2165  *-*-darwin*)
2166    llvm_cv_link_all_option="-Wl,-all_load"
2167    llvm_cv_no_link_all_option="-Wl,-noall_load"
2168    llvm_cv_os_type="Darwin"
2169    llvm_cv_platform_type="Unix" ;;
2170  *-*-minix*)
2171    llvm_cv_link_all_option="-Wl,-all_load"
2172    llvm_cv_no_link_all_option="-Wl,-noall_load"
2173    llvm_cv_os_type="Minix"
2174    llvm_cv_platform_type="Unix" ;;
2175  *-*-freebsd*)
2176    llvm_cv_link_all_option="-Wl,--whole-archive"
2177    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178    llvm_cv_os_type="FreeBSD"
2179    llvm_cv_platform_type="Unix" ;;
2180  *-*-openbsd*)
2181    llvm_cv_link_all_option="-Wl,--whole-archive"
2182    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183    llvm_cv_os_type="OpenBSD"
2184    llvm_cv_platform_type="Unix" ;;
2185  *-*-netbsd*)
2186    llvm_cv_link_all_option="-Wl,--whole-archive"
2187    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188    llvm_cv_os_type="NetBSD"
2189    llvm_cv_platform_type="Unix" ;;
2190  *-*-dragonfly*)
2191    llvm_cv_link_all_option="-Wl,--whole-archive"
2192    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193    llvm_cv_os_type="DragonFly"
2194    llvm_cv_platform_type="Unix" ;;
2195  *-*-hpux*)
2196    llvm_cv_link_all_option="-Wl,--whole-archive"
2197    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198    llvm_cv_os_type="HP-UX"
2199    llvm_cv_platform_type="Unix" ;;
2200  *-*-interix*)
2201    llvm_cv_link_all_option="-Wl,--whole-archive"
2202    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203    llvm_cv_os_type="Interix"
2204    llvm_cv_platform_type="Unix" ;;
2205  *-*-linux*)
2206    llvm_cv_link_all_option="-Wl,--whole-archive"
2207    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208    llvm_cv_os_type="Linux"
2209    llvm_cv_platform_type="Unix" ;;
2210  *-*-solaris*)
2211    llvm_cv_link_all_option="-Wl,-z,allextract"
2212    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2213    llvm_cv_os_type="SunOS"
2214    llvm_cv_platform_type="Unix" ;;
2215  *-*-auroraux*)
2216    llvm_cv_link_all_option="-Wl,-z,allextract"
2217    llvm_cv_link_all_option="-Wl,-z,defaultextract"
2218    llvm_cv_os_type="AuroraUX"
2219    llvm_cv_platform_type="Unix" ;;
2220  *-*-win32*)
2221    llvm_cv_link_all_option="-Wl,--whole-archive"
2222    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223    llvm_cv_os_type="Win32"
2224    llvm_cv_platform_type="Win32" ;;
2225  *-*-mingw*)
2226    llvm_cv_link_all_option="-Wl,--whole-archive"
2227    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228    llvm_cv_os_type="MingW"
2229    llvm_cv_platform_type="Win32" ;;
2230  *-*-haiku*)
2231    llvm_cv_link_all_option="-Wl,--whole-archive"
2232    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233    llvm_cv_os_type="Haiku"
2234    llvm_cv_platform_type="Unix" ;;
2235  *-unknown-eabi*)
2236    llvm_cv_link_all_option="-Wl,--whole-archive"
2237    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238    llvm_cv_os_type="Freestanding"
2239    llvm_cv_platform_type="Unix" ;;
2240  *-unknown-elf*)
2241    llvm_cv_link_all_option="-Wl,--whole-archive"
2242    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243    llvm_cv_os_type="Freestanding"
2244    llvm_cv_platform_type="Unix" ;;
2245  *)
2246    llvm_cv_link_all_option=""
2247    llvm_cv_no_link_all_option=""
2248    llvm_cv_os_type="Unknown"
2249    llvm_cv_platform_type="Unknown" ;;
2250esac
2251fi
2252{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254
2255{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257if test "${llvm_cv_target_os_type+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  case $target in
2261  *-*-aix*)
2262    llvm_cv_target_os_type="AIX" ;;
2263  *-*-irix*)
2264    llvm_cv_target_os_type="IRIX" ;;
2265  *-*-cygwin*)
2266    llvm_cv_target_os_type="Cygwin" ;;
2267  *-*-darwin*)
2268    llvm_cv_target_os_type="Darwin" ;;
2269  *-*-minix*)
2270    llvm_cv_target_os_type="Minix" ;;
2271  *-*-freebsd*)
2272    llvm_cv_target_os_type="FreeBSD" ;;
2273  *-*-openbsd*)
2274    llvm_cv_target_os_type="OpenBSD" ;;
2275  *-*-netbsd*)
2276    llvm_cv_target_os_type="NetBSD" ;;
2277  *-*-dragonfly*)
2278    llvm_cv_target_os_type="DragonFly" ;;
2279  *-*-hpux*)
2280    llvm_cv_target_os_type="HP-UX" ;;
2281  *-*-interix*)
2282    llvm_cv_target_os_type="Interix" ;;
2283  *-*-linux*)
2284    llvm_cv_target_os_type="Linux" ;;
2285  *-*-solaris*)
2286    llvm_cv_target_os_type="SunOS" ;;
2287  *-*-auroraux*)
2288    llvm_cv_target_os_type="AuroraUX" ;;
2289  *-*-win32*)
2290    llvm_cv_target_os_type="Win32" ;;
2291  *-*-mingw*)
2292    llvm_cv_target_os_type="MingW" ;;
2293  *-*-haiku*)
2294    llvm_cv_target_os_type="Haiku" ;;
2295  *-unknown-eabi*)
2296    llvm_cv_target_os_type="Freestanding" ;;
2297  *)
2298    llvm_cv_target_os_type="Unknown" ;;
2299esac
2300fi
2301{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303
2304if test "$llvm_cv_os_type" = "Unknown" ; then
2305  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310OS=$llvm_cv_os_type
2311
2312HOST_OS=$llvm_cv_os_type
2313
2314TARGET_OS=$llvm_cv_target_os_type
2315
2316
2317LINKALL=$llvm_cv_link_all_option
2318
2319NOLINKALL=$llvm_cv_no_link_all_option
2320
2321
2322case $llvm_cv_platform_type in
2323  Unix)
2324
2325cat >>confdefs.h <<\_ACEOF
2326#define LLVM_ON_UNIX 1
2327_ACEOF
2328
2329    LLVM_ON_UNIX=1
2330
2331    LLVM_ON_WIN32=0
2332
2333    ;;
2334  Win32)
2335
2336cat >>confdefs.h <<\_ACEOF
2337#define LLVM_ON_WIN32 1
2338_ACEOF
2339
2340    LLVM_ON_UNIX=0
2341
2342    LLVM_ON_WIN32=1
2343
2344    ;;
2345esac
2346
2347{ echo "$as_me:$LINENO: checking target architecture" >&5
2348echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349if test "${llvm_cv_target_arch+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  case $target in
2353  i?86-*)                 llvm_cv_target_arch="x86" ;;
2354  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2355  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2356  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2357  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2358  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2359  mips-*)                 llvm_cv_target_arch="Mips" ;;
2360  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2361  xcore-*)                llvm_cv_target_arch="XCore" ;;
2362  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2363  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2364  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2365  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2366  *)                      llvm_cv_target_arch="Unknown" ;;
2367esac
2368fi
2369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372if test "$llvm_cv_target_arch" = "Unknown" ; then
2373  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375fi
2376
2377# Determine the LLVM native architecture for the target
2378case "$llvm_cv_target_arch" in
2379    x86)     LLVM_NATIVE_ARCH="X86" ;;
2380    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2381    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382esac
2383
2384ARCH=$llvm_cv_target_arch
2385
2386
2387ac_ext=c
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392if test -n "$ac_tool_prefix"; then
2393  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397if test "${ac_cv_prog_CC+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  if test -n "$CC"; then
2401  ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406  IFS=$as_save_IFS
2407  test -z "$as_dir" && as_dir=.
2408  for ac_exec_ext in '' $ac_executable_extensions; do
2409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412    break 2
2413  fi
2414done
2415done
2416IFS=$as_save_IFS
2417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
2422  { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
2424else
2425  { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
2427fi
2428
2429
2430fi
2431if test -z "$ac_cv_prog_CC"; then
2432  ac_ct_CC=$CC
2433  # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  if test -n "$ac_ct_CC"; then
2441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448  for ac_exec_ext in '' $ac_executable_extensions; do
2449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450    ac_cv_prog_ac_ct_CC="gcc"
2451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
2464else
2465  { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
2467fi
2468
2469  if test "x$ac_ct_CC" = x; then
2470    CC=""
2471  else
2472    case $cross_compiling:$ac_tool_warned in
2473yes:)
2474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet.  If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet.  If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480ac_tool_warned=yes ;;
2481esac
2482    CC=$ac_ct_CC
2483  fi
2484else
2485  CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
2489          if test -n "$ac_tool_prefix"; then
2490    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491set dummy ${ac_tool_prefix}cc; ac_word=$2
2492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494if test "${ac_cv_prog_CC+set}" = set; then
2495  echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497  if test -n "$CC"; then
2498  ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503  IFS=$as_save_IFS
2504  test -z "$as_dir" && as_dir=.
2505  for ac_exec_ext in '' $ac_executable_extensions; do
2506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507    ac_cv_prog_CC="${ac_tool_prefix}cc"
2508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509    break 2
2510  fi
2511done
2512done
2513IFS=$as_save_IFS
2514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
2519  { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
2521else
2522  { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
2524fi
2525
2526
2527  fi
2528fi
2529if test -z "$CC"; then
2530  # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535  echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537  if test -n "$CC"; then
2538  ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540  ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546  for ac_exec_ext in '' $ac_executable_extensions; do
2547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549       ac_prog_rejected=yes
2550       continue
2551     fi
2552    ac_cv_prog_CC="cc"
2553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554    break 2
2555  fi
2556done
2557done
2558IFS=$as_save_IFS
2559
2560if test $ac_prog_rejected = yes; then
2561  # We found a bogon in the path, so make sure we never use it.
2562  set dummy $ac_cv_prog_CC
2563  shift
2564  if test $# != 0; then
2565    # We chose a different compiler from the bogus one.
2566    # However, it has the same basename, so the bogon will be chosen
2567    # first if we set CC to just the basename; use the full file name.
2568    shift
2569    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570  fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576  { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
2578else
2579  { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$CC"; then
2586  if test -n "$ac_tool_prefix"; then
2587  for ac_prog in cl.exe
2588  do
2589    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594  echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596  if test -n "$CC"; then
2597  ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604  for ac_exec_ext in '' $ac_executable_extensions; do
2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618  { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
2620else
2621  { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
2623fi
2624
2625
2626    test -n "$CC" && break
2627  done
2628fi
2629if test -z "$CC"; then
2630  ac_ct_CC=$CC
2631  for ac_prog in cl.exe
2632do
2633  # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
2635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638  echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640  if test -n "$ac_ct_CC"; then
2641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648  for ac_exec_ext in '' $ac_executable_extensions; do
2649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650    ac_cv_prog_ac_ct_CC="$ac_prog"
2651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
2662  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
2664else
2665  { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
2667fi
2668
2669
2670  test -n "$ac_ct_CC" && break
2671done
2672
2673  if test "x$ac_ct_CC" = x; then
2674    CC=""
2675  else
2676    case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet.  If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet.  If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686    CC=$ac_ct_CC
2687  fi
2688fi
2689
2690fi
2691
2692
2693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697   { (exit 1); exit 1; }; }
2698
2699# Provide some information about the compiler.
2700echo "$as_me:$LINENO: checking for C compiler version" >&5
2701ac_compiler=`set X $ac_compile; echo $2`
2702{ (ac_try="$ac_compiler --version >&5"
2703case "(($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_compiler --version >&5") 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }
2712{ (ac_try="$ac_compiler -v >&5"
2713case "(($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_compiler -v >&5") 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }
2722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725  *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728  (eval "$ac_compiler -V >&5") 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }
2732
2733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739
2740int
2741main ()
2742{
2743
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
2749ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
2753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort.  b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions.  Remove them first so a
2764# subsequent execution test works.
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768  case $ac_file in
2769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771  esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { (ac_try="$ac_link_default"
2776case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781  (eval "$ac_link_default") 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; then
2785  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
2790for ac_file in $ac_files
2791do
2792  test -f "$ac_file" || continue
2793  case $ac_file in
2794    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795	;;
2796    [ab].out )
2797	# We found the default executable, but exeext='' is most
2798	# certainly right.
2799	break;;
2800    *.* )
2801        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802	then :; else
2803	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804	fi
2805	# We set ac_cv_exeext here because the later test for it is not
2806	# safe: cross compilers may not add the suffix if given an `-o'
2807	# argument, so we may need to know it at that point already.
2808	# Even if this section looks crufty: it has the advantage of
2809	# actually working.
2810	break;;
2811    * )
2812	break;;
2813  esac
2814done
2815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825   { (exit 77); exit 77; }; }
2826fi
2827
2828ac_exeext=$ac_cv_exeext
2829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
2831
2832# Check that the compiler produces executables we can run.  If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839  if { ac_try='./$ac_file'
2840  { (case "(($ac_try" in
2841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842  *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845  (eval "$ac_try") 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }; }; then
2849    cross_compiling=no
2850  else
2851    if test "$cross_compiling" = maybe; then
2852	cross_compiling=yes
2853    else
2854	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860   { (exit 1); exit 1; }; }
2861    fi
2862  fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868ac_clean_files=$ac_clean_files_save
2869# Check that the compiler produces executables we can run.  If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884  (eval "$ac_link") 2>&5
2885  ac_status=$?
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); }; then
2888  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
2892for ac_file in conftest.exe conftest conftest.*; do
2893  test -f "$ac_file" || continue
2894  case $ac_file in
2895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897	  break;;
2898    * ) break;;
2899  esac
2900done
2901else
2902  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906   { (exit 1); exit 1; }; }
2907fi
2908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
2916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943  (eval "$ac_compile") 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; then
2947  for ac_file in conftest.o conftest.obj conftest.*; do
2948  test -f "$ac_file" || continue;
2949  case $ac_file in
2950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952       break;;
2953  esac
2954done
2955else
2956  echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963   { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
2968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
2970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
2972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975  echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977  cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h.  */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h.  */
2983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988       choke me
2989#endif
2990
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999  *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002  (eval "$ac_compile") 2>conftest.er1
3003  ac_status=$?
3004  grep -v '^ *+' conftest.er1 >conftest.err
3005  rm -f conftest.er1
3006  cat conftest.err >&5
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); } &&
3009	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010  { (case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015  (eval "$ac_try") 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3029  ac_compiler_gnu=yes
3030else
3031  echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034	ac_compiler_gnu=no
3035fi
3036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040fi
3041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043GCC=`test $ac_compiler_gnu = yes && echo yes`
3044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
3046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048if test "${ac_cv_prog_cc_g+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  ac_save_c_werror_flag=$ac_c_werror_flag
3052   ac_c_werror_flag=yes
3053   ac_cv_prog_cc_g=no
3054   CFLAGS="-g"
3055   cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_compile") 2>conftest.er1
3078  ac_status=$?
3079  grep -v '^ *+' conftest.er1 >conftest.err
3080  rm -f conftest.er1
3081  cat conftest.err >&5
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3094	 { ac_try='test -s conftest.$ac_objext'
3095  { (case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100  (eval "$ac_try") 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; }; then
3104  ac_cv_prog_cc_g=yes
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109	CFLAGS=""
3110      cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h.  */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h.  */
3116
3117int
3118main ()
3119{
3120
3121  ;
3122  return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129  *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132  (eval "$ac_compile") 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140  { (case "(($ac_try" in
3141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142  *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145  (eval "$ac_try") 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; } &&
3149	 { ac_try='test -s conftest.$ac_objext'
3150  { (case "(($ac_try" in
3151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152  *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155  (eval "$ac_try") 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; }; then
3159  :
3160else
3161  echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164	ac_c_werror_flag=$ac_save_c_werror_flag
3165	 CFLAGS="-g"
3166	 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172
3173int
3174main ()
3175{
3176
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185  *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188  (eval "$ac_compile") 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } &&
3195	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196  { (case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201  (eval "$ac_try") 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; } &&
3205	 { ac_try='test -s conftest.$ac_objext'
3206  { (case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_try") 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; }; then
3215  ac_cv_prog_cc_g=yes
3216else
3217  echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
3221fi
3222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224fi
3225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230   ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234if test "$ac_test_CFLAGS" = set; then
3235  CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237  if test "$GCC" = yes; then
3238    CFLAGS="-g -O2"
3239  else
3240    CFLAGS="-g"
3241  fi
3242else
3243  if test "$GCC" = yes; then
3244    CFLAGS="-O2"
3245  else
3246    CFLAGS=
3247  fi
3248fi
3249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
3252  echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254  ac_cv_prog_cc_c89=no
3255ac_save_CC=$CC
3256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h.  */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h.  */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270     char **p;
3271     int i;
3272{
3273  return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277  char *s;
3278  va_list v;
3279  va_start (v,p);
3280  s = g (p, va_arg (v,int));
3281  va_end (v);
3282  return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286   function prototypes and stuff, but not '\xHH' hex character constants.
3287   These don't provoke an error unfortunately, instead are silently treated
3288   as 'x'.  The following induces an error, until -std is added to get
3289   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290   array size at least.  It's necessary to write '\x00'==0 to get something
3291   that's true only with -std.  */
3292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
3294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295   inside strings and character constants.  */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
3299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3309  ;
3310  return 0;
3311}
3312_ACEOF
3313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315do
3316  CC="$ac_save_CC $ac_arg"
3317  rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324  (eval "$ac_compile") 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332  { (case "(($ac_try" in
3333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334  *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337  (eval "$ac_try") 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; } &&
3341	 { ac_try='test -s conftest.$ac_objext'
3342  { (case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347  (eval "$ac_try") 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; }; then
3351  ac_cv_prog_cc_c89=$ac_arg
3352else
3353  echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext
3360  test "x$ac_cv_prog_cc_c89" != "xno" && break
3361done
3362rm -f conftest.$ac_ext
3363CC=$ac_save_CC
3364
3365fi
3366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368  x)
3369    { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
3371  xno)
3372    { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
3374  *)
3375    CC="$CC $ac_cv_prog_cc_c89"
3376    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378esac
3379
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397  CPP=
3398fi
3399if test -z "$CPP"; then
3400  if test "${ac_cv_prog_CPP+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403      # Double quotes because CPP needs to be expanded
3404    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405    do
3406      ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409  # Use a header file that comes with gcc, so configuring glibc
3410  # with a fresh cross-compiler works.
3411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412  # <limits.h> exists even on freestanding compilers.
3413  # On the NeXT, cc -E runs the code through the compiler's parser,
3414  # not just through cpp. "Syntax error" is here to catch this case.
3415  cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h.  */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h.  */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426		     Syntax error
3427_ACEOF
3428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435  ac_status=$?
3436  grep -v '^ *+' conftest.er1 >conftest.err
3437  rm -f conftest.er1
3438  cat conftest.err >&5
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); } >/dev/null; then
3441  if test -s conftest.err; then
3442    ac_cpp_err=$ac_c_preproc_warn_flag
3443    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444  else
3445    ac_cpp_err=
3446  fi
3447else
3448  ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451  :
3452else
3453  echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456  # Broken: fails on valid input.
3457continue
3458fi
3459
3460rm -f conftest.err conftest.$ac_ext
3461
3462  # OK, works on sane cases.  Now check whether nonexistent headers
3463  # can be detected and how.
3464  cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h.  */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h.  */
3470#include <ac_nonexistent.h>
3471_ACEOF
3472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475  *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } >/dev/null; then
3485  if test -s conftest.err; then
3486    ac_cpp_err=$ac_c_preproc_warn_flag
3487    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488  else
3489    ac_cpp_err=
3490  fi
3491else
3492  ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495  # Broken: success on invalid input.
3496continue
3497else
3498  echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501  # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
3505
3506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512  break
3513fi
3514
3515    done
3516    ac_cv_prog_CPP=$CPP
3517
3518fi
3519  CPP=$ac_cv_prog_CPP
3520else
3521  ac_cv_prog_CPP=$CPP
3522fi
3523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
3525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528  # Use a header file that comes with gcc, so configuring glibc
3529  # with a fresh cross-compiler works.
3530  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531  # <limits.h> exists even on freestanding compilers.
3532  # On the NeXT, cc -E runs the code through the compiler's parser,
3533  # not just through cpp. "Syntax error" is here to catch this case.
3534  cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h.  */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h.  */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545		     Syntax error
3546_ACEOF
3547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578
3579rm -f conftest.err conftest.$ac_ext
3580
3581  # OK, works on sane cases.  Now check whether nonexistent headers
3582  # can be detected and how.
3583  cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589#include <ac_nonexistent.h>
3590_ACEOF
3591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598  ac_status=$?
3599  grep -v '^ *+' conftest.er1 >conftest.err
3600  rm -f conftest.er1
3601  cat conftest.err >&5
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } >/dev/null; then
3604  if test -s conftest.err; then
3605    ac_cpp_err=$ac_c_preproc_warn_flag
3606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607  else
3608    ac_cpp_err=
3609  fi
3610else
3611  ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
3614  # Broken: success on invalid input.
3615continue
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620  # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
3624
3625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
3630if $ac_preproc_ok; then
3631  :
3632else
3633  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637   { (exit 1); exit 1; }; }
3638fi
3639
3640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649if test "${ac_cv_path_GREP+set}" = set; then
3650  echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652  # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  ac_path_GREP_found=false
3659# Loop through the user's path and test for each of PROGNAME-LIST
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662do
3663  IFS=$as_save_IFS
3664  test -z "$as_dir" && as_dir=.
3665  for ac_prog in grep ggrep; do
3666  for ac_exec_ext in '' $ac_executable_extensions; do
3667    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669    # Check for GNU ac_path_GREP and select it if it is found.
3670  # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675  ac_count=0
3676  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677  while :
3678  do
3679    cat "conftest.in" "conftest.in" >"conftest.tmp"
3680    mv "conftest.tmp" "conftest.in"
3681    cp "conftest.in" "conftest.nl"
3682    echo 'GREP' >> "conftest.nl"
3683    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685    ac_count=`expr $ac_count + 1`
3686    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687      # Best one so far, save it but keep looking for a better one
3688      ac_cv_path_GREP="$ac_path_GREP"
3689      ac_path_GREP_max=$ac_count
3690    fi
3691    # 10*(2^10) chars as input seems more than enough
3692    test $ac_count -gt 10 && break
3693  done
3694  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
3697
3698    $ac_path_GREP_found && break 3
3699  done
3700done
3701
3702done
3703IFS=$as_save_IFS
3704
3705
3706fi
3707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712   { (exit 1); exit 1; }; }
3713fi
3714
3715else
3716  ac_cv_path_GREP=$GREP
3717fi
3718
3719
3720fi
3721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3724
3725
3726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729  echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732   then ac_cv_path_EGREP="$GREP -E"
3733   else
3734     # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  ac_path_EGREP_found=false
3741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747  for ac_prog in egrep; do
3748  for ac_exec_ext in '' $ac_executable_extensions; do
3749    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751    # Check for GNU ac_path_EGREP and select it if it is found.
3752  # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757  ac_count=0
3758  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759  while :
3760  do
3761    cat "conftest.in" "conftest.in" >"conftest.tmp"
3762    mv "conftest.tmp" "conftest.in"
3763    cp "conftest.in" "conftest.nl"
3764    echo 'EGREP' >> "conftest.nl"
3765    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767    ac_count=`expr $ac_count + 1`
3768    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769      # Best one so far, save it but keep looking for a better one
3770      ac_cv_path_EGREP="$ac_path_EGREP"
3771      ac_path_EGREP_max=$ac_count
3772    fi
3773    # 10*(2^10) chars as input seems more than enough
3774    test $ac_count -gt 10 && break
3775  done
3776  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
3779
3780    $ac_path_EGREP_found && break 3
3781  done
3782done
3783
3784done
3785IFS=$as_save_IFS
3786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794   { (exit 1); exit 1; }; }
3795fi
3796
3797else
3798  ac_cv_path_EGREP=$EGREP
3799fi
3800
3801
3802   fi
3803fi
3804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3807
3808
3809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811if test "${ac_cv_header_stdc+set}" = set; then
3812  echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814  cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h.  */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h.  */
3820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
3825int
3826main ()
3827{
3828
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833rm -f conftest.$ac_objext
3834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840  (eval "$ac_compile") 2>conftest.er1
3841  ac_status=$?
3842  grep -v '^ *+' conftest.er1 >conftest.err
3843  rm -f conftest.er1
3844  cat conftest.err >&5
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); } &&
3847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848  { (case "(($ac_try" in
3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850  *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853  (eval "$ac_try") 2>&5
3854  ac_status=$?
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); }; } &&
3857	 { ac_try='test -s conftest.$ac_objext'
3858  { (case "(($ac_try" in
3859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860  *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863  (eval "$ac_try") 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; }; then
3867  ac_cv_header_stdc=yes
3868else
3869  echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872	ac_cv_header_stdc=no
3873fi
3874
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877if test $ac_cv_header_stdc = yes; then
3878  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879  cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h.  */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h.  */
3885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889  $EGREP "memchr" >/dev/null 2>&1; then
3890  :
3891else
3892  ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900  cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h.  */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h.  */
3906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910  $EGREP "free" >/dev/null 2>&1; then
3911  :
3912else
3913  ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921  if test "$cross_compiling" = yes; then
3922  :
3923else
3924  cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930#include <ctype.h>
3931#include <stdlib.h>
3932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
3936# define ISLOWER(c) \
3937		   (('a' <= (c) && (c) <= 'i') \
3938		     || ('j' <= (c) && (c) <= 'r') \
3939		     || ('s' <= (c) && (c) <= 'z'))
3940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947  int i;
3948  for (i = 0; i < 256; i++)
3949    if (XOR (islower (i), ISLOWER (i))
3950	|| toupper (i) != TOUPPER (i))
3951      return 2;
3952  return 0;
3953}
3954_ACEOF
3955rm -f conftest$ac_exeext
3956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959  *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962  (eval "$ac_link") 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966  { (case "(($ac_try" in
3967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968  *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971  (eval "$ac_try") 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; }; then
3975  :
3976else
3977  echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_header_stdc=no
3983fi
3984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985fi
3986
3987
3988fi
3989fi
3990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992if test $ac_cv_header_stdc = yes; then
3993
3994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
3997
3998fi
3999
4000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011		  inttypes.h stdint.h unistd.h
4012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h.  */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h.  */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036  (eval "$ac_compile") 2>conftest.er1
4037  ac_status=$?
4038  grep -v '^ *+' conftest.er1 >conftest.err
4039  rm -f conftest.er1
4040  cat conftest.err >&5
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); } &&
4043	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044  { (case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049  (eval "$ac_try") 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; } &&
4053	 { ac_try='test -s conftest.$ac_objext'
4054  { (case "(($ac_try" in
4055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056  *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059  (eval "$ac_try") 2>&5
4060  ac_status=$?
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); }; }; then
4063  eval "$as_ac_Header=yes"
4064else
4065  echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068	eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077  cat >>confdefs.h <<_ACEOF
4078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079_ACEOF
4080
4081fi
4082
4083done
4084
4085
4086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h.  */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h.  */
4098#include <sys/types.h>
4099#include <sys/param.h>
4100
4101int
4102main ()
4103{
4104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119  (eval "$ac_compile") 2>conftest.er1
4120  ac_status=$?
4121  grep -v '^ *+' conftest.er1 >conftest.err
4122  rm -f conftest.er1
4123  cat conftest.err >&5
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); } &&
4126	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127  { (case "(($ac_try" in
4128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129  *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132  (eval "$ac_try") 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; } &&
4136	 { ac_try='test -s conftest.$ac_objext'
4137  { (case "(($ac_try" in
4138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139  *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142  (eval "$ac_try") 2>&5
4143  ac_status=$?
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); }; }; then
4146  # It does; now see whether it defined to BIG_ENDIAN or not.
4147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153#include <sys/types.h>
4154#include <sys/param.h>
4155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161#endif
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171  *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174  (eval "$ac_compile") 2>conftest.er1
4175  ac_status=$?
4176  grep -v '^ *+' conftest.er1 >conftest.err
4177  rm -f conftest.er1
4178  cat conftest.err >&5
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); } &&
4181	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182  { (case "(($ac_try" in
4183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184  *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187  (eval "$ac_try") 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; } &&
4191	 { ac_try='test -s conftest.$ac_objext'
4192  { (case "(($ac_try" in
4193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194  *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197  (eval "$ac_try") 2>&5
4198  ac_status=$?
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); }; }; then
4201  ac_cv_c_bigendian=yes
4202else
4203  echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206	ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211  echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214	# It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216  # try to guess the endianness by grepping values into an object file
4217  ac_cv_c_bigendian=unknown
4218  cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h.  */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h.  */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230int
4231main ()
4232{
4233 _ascii (); _ebcdic ();
4234  ;
4235  return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245  (eval "$ac_compile") 2>conftest.er1
4246  ac_status=$?
4247  grep -v '^ *+' conftest.er1 >conftest.err
4248  rm -f conftest.er1
4249  cat conftest.err >&5
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); } &&
4252	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253  { (case "(($ac_try" in
4254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255  *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258  (eval "$ac_try") 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; } &&
4262	 { ac_try='test -s conftest.$ac_objext'
4263  { (case "(($ac_try" in
4264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265  *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268  (eval "$ac_try") 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }; }; then
4272  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273  ac_cv_c_bigendian=yes
4274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276  if test "$ac_cv_c_bigendian" = unknown; then
4277    ac_cv_c_bigendian=no
4278  else
4279    # finding both strings is unlikely to happen, but who knows?
4280    ac_cv_c_bigendian=unknown
4281  fi
4282fi
4283else
4284  echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287
4288fi
4289
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
4292  cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h.  */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h.  */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
4303  /* Are we little or big endian?  From Harbison&Steele.  */
4304  union
4305  {
4306    long int l;
4307    char c[sizeof (long int)];
4308  } u;
4309  u.l = 1;
4310  return u.c[sizeof (long int) - 1] == 1;
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320  *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323  (eval "$ac_link") 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327  { (case "(($ac_try" in
4328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329  *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332  (eval "$ac_try") 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  ac_cv_c_bigendian=no
4337else
4338  echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
4344fi
4345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346fi
4347
4348
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356  yes)
4357    ENDIAN=big
4358 ;;
4359  no)
4360    ENDIAN=little
4361 ;;
4362  *)
4363    { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367   { (exit 1); exit 1; }; } ;;
4368esac
4369
4370
4371if test "$cross_compiling" = yes; then
4372  LLVM_CROSS_COMPILING=1
4373
4374
4375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381  ac_cv_build_exeext=.exe
4382else
4383  ac_build_prefix=${build_alias}-
4384
4385  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
4387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392  if test -n "$BUILD_CC"; then
4393  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400  for ac_exec_ext in '' $ac_executable_extensions; do
4401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404    break 2
4405  fi
4406done
4407done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
4414  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
4416else
4417  { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
4419fi
4420
4421
4422  if test -z "$BUILD_CC"; then
4423     # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
4425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428  echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430  if test -n "$BUILD_CC"; then
4431  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436  IFS=$as_save_IFS
4437  test -z "$as_dir" && as_dir=.
4438  for ac_exec_ext in '' $ac_executable_extensions; do
4439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440    ac_cv_prog_BUILD_CC="gcc"
4441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442    break 2
4443  fi
4444done
4445done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
4452  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
4454else
4455  { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
4457fi
4458
4459
4460     if test -z "$BUILD_CC"; then
4461       # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
4463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466  echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468  if test -n "$BUILD_CC"; then
4469  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471  ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477  for ac_exec_ext in '' $ac_executable_extensions; do
4478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480       ac_prog_rejected=yes
4481       continue
4482     fi
4483    ac_cv_prog_BUILD_CC="cc"
4484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488done
4489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492  # We found a bogon in the path, so make sure we never use it.
4493  set dummy $ac_cv_prog_BUILD_CC
4494  shift
4495  if test $# != 0; then
4496    # We chose a different compiler from the bogus one.
4497    # However, it has the same basename, so the bogon will be chosen
4498    # first if we set BUILD_CC to just the basename; use the full file name.
4499    shift
4500    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501  fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
4507  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
4509else
4510  { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
4512fi
4513
4514
4515     fi
4516  fi
4517  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519   { (exit 1); exit 1; }; }
4520  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521  rm -f conftest*
4522  echo 'int main () { return 0; }' > conftest.$ac_ext
4523  ac_cv_build_exeext=
4524  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525  (eval $ac_build_link) 2>&5
4526  ac_status=$?
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); }; then
4529    for file in conftest.*; do
4530      case $file in
4531      *.c | *.o | *.obj | *.dSYM) ;;
4532      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533      esac
4534    done
4535  else
4536    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538   { (exit 1); exit 1; }; }
4539  fi
4540  rm -f conftest*
4541  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549ac_build_exeext=$BUILD_EXEEXT
4550
4551  ac_build_prefix=${build_alias}-
4552  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553set dummy ${ac_build_prefix}g++; ac_word=$2
4554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557  echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559  if test -n "$BUILD_CXX"; then
4560  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567  for ac_exec_ext in '' $ac_executable_extensions; do
4568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580if test -n "$BUILD_CXX"; then
4581  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582echo "${ECHO_T}$BUILD_CXX" >&6; }
4583else
4584  { echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; }
4586fi
4587
4588
4589  if test -z "$BUILD_CXX"; then
4590     # Extract the first word of "g++", so it can be a program name with args.
4591set dummy g++; ac_word=$2
4592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597  if test -n "$BUILD_CXX"; then
4598  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603  IFS=$as_save_IFS
4604  test -z "$as_dir" && as_dir=.
4605  for ac_exec_ext in '' $ac_executable_extensions; do
4606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607    ac_cv_prog_BUILD_CXX="g++"
4608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
4619  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
4621else
4622  { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
4624fi
4625
4626
4627     if test -z "$BUILD_CXX"; then
4628       # Extract the first word of "c++", so it can be a program name with args.
4629set dummy c++; ac_word=$2
4630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  if test -n "$BUILD_CXX"; then
4636  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638  ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644  for ac_exec_ext in '' $ac_executable_extensions; do
4645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647       ac_prog_rejected=yes
4648       continue
4649     fi
4650    ac_cv_prog_BUILD_CXX="c++"
4651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652    break 2
4653  fi
4654done
4655done
4656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659  # We found a bogon in the path, so make sure we never use it.
4660  set dummy $ac_cv_prog_BUILD_CXX
4661  shift
4662  if test $# != 0; then
4663    # We chose a different compiler from the bogus one.
4664    # However, it has the same basename, so the bogon will be chosen
4665    # first if we set BUILD_CXX to just the basename; use the full file name.
4666    shift
4667    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668  fi
4669fi
4670fi
4671fi
4672BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673if test -n "$BUILD_CXX"; then
4674  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675echo "${ECHO_T}$BUILD_CXX" >&6; }
4676else
4677  { echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6; }
4679fi
4680
4681
4682     fi
4683  fi
4684else
4685  LLVM_CROSS_COMPILING=0
4686
4687fi
4688
4689if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4690  cvsbuild="yes"
4691  optimize="no"
4692  CVSBUILD=CVSBUILD=1
4693
4694else
4695  cvsbuild="no"
4696  optimize="yes"
4697fi
4698
4699
4700# Check whether --enable-optimized was given.
4701if test "${enable_optimized+set}" = set; then
4702  enableval=$enable_optimized;
4703else
4704  enableval=$optimize
4705fi
4706
4707if test ${enableval} = "no" ; then
4708  ENABLE_OPTIMIZED=
4709
4710else
4711  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713fi
4714
4715# Check whether --enable-profiling was given.
4716if test "${enable_profiling+set}" = set; then
4717  enableval=$enable_profiling;
4718else
4719  enableval="no"
4720fi
4721
4722if test ${enableval} = "no" ; then
4723  ENABLE_PROFILING=
4724
4725else
4726  ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728fi
4729
4730# Check whether --enable-assertions was given.
4731if test "${enable_assertions+set}" = set; then
4732  enableval=$enable_assertions;
4733else
4734  enableval="yes"
4735fi
4736
4737if test ${enableval} = "yes" ; then
4738  DISABLE_ASSERTIONS=
4739
4740else
4741  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743fi
4744
4745# Check whether --enable-expensive-checks was given.
4746if test "${enable_expensive_checks+set}" = set; then
4747  enableval=$enable_expensive_checks;
4748else
4749  enableval="no"
4750fi
4751
4752if test ${enableval} = "yes" ; then
4753  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755  EXPENSIVE_CHECKS=yes
4756
4757else
4758  ENABLE_EXPENSIVE_CHECKS=
4759
4760  EXPENSIVE_CHECKS=no
4761
4762fi
4763
4764# Check whether --enable-debug-runtime was given.
4765if test "${enable_debug_runtime+set}" = set; then
4766  enableval=$enable_debug_runtime;
4767else
4768  enableval=no
4769fi
4770
4771if test ${enableval} = "no" ; then
4772  DEBUG_RUNTIME=
4773
4774else
4775  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777fi
4778
4779# Check whether --enable-debug-symbols was given.
4780if test "${enable_debug_symbols+set}" = set; then
4781  enableval=$enable_debug_symbols;
4782else
4783  enableval=no
4784fi
4785
4786if test ${enableval} = "no" ; then
4787  DEBUG_SYMBOLS=
4788
4789else
4790  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792fi
4793
4794# Check whether --enable-jit was given.
4795if test "${enable_jit+set}" = set; then
4796  enableval=$enable_jit;
4797else
4798  enableval=default
4799fi
4800
4801if test ${enableval} = "no"
4802then
4803  JIT=
4804
4805else
4806  case "$llvm_cv_target_arch" in
4807    x86)         TARGET_HAS_JIT=1
4808 ;;
4809    Sparc)       TARGET_HAS_JIT=0
4810 ;;
4811    PowerPC)     TARGET_HAS_JIT=1
4812 ;;
4813    x86_64)      TARGET_HAS_JIT=1
4814 ;;
4815    Alpha)       TARGET_HAS_JIT=1
4816 ;;
4817    ARM)         TARGET_HAS_JIT=1
4818 ;;
4819    Mips)        TARGET_HAS_JIT=0
4820 ;;
4821    PIC16)       TARGET_HAS_JIT=0
4822 ;;
4823    XCore)       TARGET_HAS_JIT=0
4824 ;;
4825    MSP430)      TARGET_HAS_JIT=0
4826 ;;
4827    SystemZ)     TARGET_HAS_JIT=0
4828 ;;
4829    Blackfin)    TARGET_HAS_JIT=0
4830 ;;
4831    MBlaze)      TARGET_HAS_JIT=0
4832 ;;
4833    *)           TARGET_HAS_JIT=0
4834 ;;
4835  esac
4836fi
4837
4838# Check whether --enable-doxygen was given.
4839if test "${enable_doxygen+set}" = set; then
4840  enableval=$enable_doxygen;
4841else
4842  enableval=default
4843fi
4844
4845case "$enableval" in
4846  yes) ENABLE_DOXYGEN=1
4847 ;;
4848  no)  ENABLE_DOXYGEN=0
4849 ;;
4850  default) ENABLE_DOXYGEN=0
4851 ;;
4852  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854   { (exit 1); exit 1; }; } ;;
4855esac
4856
4857# Check whether --enable-threads was given.
4858if test "${enable_threads+set}" = set; then
4859  enableval=$enable_threads;
4860else
4861  enableval=default
4862fi
4863
4864case "$enableval" in
4865  yes) ENABLE_THREADS=1
4866 ;;
4867  no)  ENABLE_THREADS=0
4868 ;;
4869  default) ENABLE_THREADS=1
4870 ;;
4871  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873   { (exit 1); exit 1; }; } ;;
4874esac
4875
4876cat >>confdefs.h <<_ACEOF
4877#define ENABLE_THREADS $ENABLE_THREADS
4878_ACEOF
4879
4880
4881# Check whether --enable-pic was given.
4882if test "${enable_pic+set}" = set; then
4883  enableval=$enable_pic;
4884else
4885  enableval=default
4886fi
4887
4888case "$enableval" in
4889  yes) ENABLE_PIC=1
4890 ;;
4891  no)  ENABLE_PIC=0
4892 ;;
4893  default) ENABLE_PIC=1
4894 ;;
4895  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897   { (exit 1); exit 1; }; } ;;
4898esac
4899
4900cat >>confdefs.h <<_ACEOF
4901#define ENABLE_PIC $ENABLE_PIC
4902_ACEOF
4903
4904
4905# Check whether --enable-shared was given.
4906if test "${enable_shared+set}" = set; then
4907  enableval=$enable_shared;
4908else
4909  enableval=default
4910fi
4911
4912case "$enableval" in
4913  yes) ENABLE_SHARED=1
4914 ;;
4915  no)  ENABLE_SHARED=0
4916 ;;
4917  default) ENABLE_SHARED=0
4918 ;;
4919  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921   { (exit 1); exit 1; }; } ;;
4922esac
4923
4924TARGETS_TO_BUILD=""
4925# Check whether --enable-targets was given.
4926if test "${enable_targets+set}" = set; then
4927  enableval=$enable_targets;
4928else
4929  enableval=all
4930fi
4931
4932if test "$enableval" = host-only ; then
4933  enableval=host
4934fi
4935case "$enableval" in
4936  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4937  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938      case "$a_target" in
4939        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947        pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953        msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4955        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4956        host) case "$llvm_cv_target_arch" in
4957            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961            Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4965            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966            PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4969            s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4970            Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4971            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972echo "$as_me: error: Can not set target to build" >&2;}
4973   { (exit 1); exit 1; }; } ;;
4974          esac ;;
4975        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977   { (exit 1); exit 1; }; } ;;
4978      esac
4979  done
4980  ;;
4981esac
4982TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4983
4984
4985# Determine whether we are building LLVM support for the native architecture.
4986# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987for a_target in $TARGETS_TO_BUILD; do
4988  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989    LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990
4991cat >>confdefs.h <<_ACEOF
4992#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4993_ACEOF
4994
4995  fi
4996done
4997
4998# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999# target feature def files.
5000LLVM_ENUM_TARGETS=""
5001LLVM_ENUM_ASM_PRINTERS=""
5002LLVM_ENUM_ASM_PARSERS=""
5003LLVM_ENUM_DISASSEMBLERS=""
5004for target_to_build in $TARGETS_TO_BUILD; do
5005  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008  fi
5009  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011  fi
5012  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5014  fi
5015done
5016
5017
5018
5019
5020
5021# Check whether --enable-cbe-printf-a was given.
5022if test "${enable_cbe_printf_a+set}" = set; then
5023  enableval=$enable_cbe_printf_a;
5024else
5025  enableval=default
5026fi
5027
5028case "$enableval" in
5029  yes) ENABLE_CBE_PRINTF_A=1
5030 ;;
5031  no)  ENABLE_CBE_PRINTF_A=0
5032 ;;
5033  default)  ENABLE_CBE_PRINTF_A=1
5034 ;;
5035  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037   { (exit 1); exit 1; }; } ;;
5038esac
5039
5040cat >>confdefs.h <<_ACEOF
5041#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5042_ACEOF
5043
5044
5045
5046# Check whether --with-llvmgccdir was given.
5047if test "${with_llvmgccdir+set}" = set; then
5048  withval=$with_llvmgccdir;
5049else
5050  withval=default
5051fi
5052
5053case "$withval" in
5054  default) WITH_LLVMGCCDIR=default ;;
5055  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5056  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058   { (exit 1); exit 1; }; } ;;
5059esac
5060
5061
5062# Check whether --with-llvmgcc was given.
5063if test "${with_llvmgcc+set}" = set; then
5064  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065      WITH_LLVMGCCDIR=""
5066fi
5067
5068
5069
5070# Check whether --with-llvmgxx was given.
5071if test "${with_llvmgxx+set}" = set; then
5072  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5073    WITH_LLVMGCCDIR=""
5074fi
5075
5076
5077if test -n "$LLVMGCC"; then
5078   LLVMGCCCOMMAND="$LLVMGCC"
5079fi
5080
5081if test -n "$LLVMGXX"; then
5082   LLVMGXXCOMMAND="$LLVMGXX"
5083fi
5084
5085if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088   { (exit 1); exit 1; }; };
5089fi
5090
5091if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094   { (exit 1); exit 1; }; };
5095fi
5096
5097
5098# Check whether --with-clang was given.
5099if test "${with_clang+set}" = set; then
5100  withval=$with_clang;
5101else
5102  with_clang=default
5103fi
5104
5105
5106
5107# Check whether --with-built-clang was given.
5108if test "${with_built_clang+set}" = set; then
5109  withval=$with_built_clang;
5110else
5111  with_built_clang=check
5112fi
5113
5114
5115{ echo "$as_me:$LINENO: checking clang compiler" >&5
5116echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5117WITH_CLANGPATH=""
5118WITH_BUILT_CLANG=0
5119if test "$with_clang" != "default"; then
5120   WITH_CLANGPATH="$with_clang"
5121   if ! test -x "$WITH_CLANGPATH"; then
5122     { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124   { (exit 1); exit 1; }; }
5125   fi
5126elif test "$with_built_clang" = "yes"; then
5127   WITH_BUILT_CLANG=1
5128elif test "$with_built_clang" = "no"; then
5129   WITH_BUILT_CLANG=0
5130else
5131   if test "$with_built_clang" != "check"; then
5132      { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134   { (exit 1); exit 1; }; }
5135   fi
5136
5137   if test -f ${srcdir}/tools/clang/README.txt; then
5138     WITH_BUILT_CLANG=1
5139   fi
5140fi
5141
5142if ! test -z "$WITH_CLANGPATH"; then
5143   { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145   WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5146elif test "$WITH_BUILT_CLANG" = "1"; then
5147   { echo "$as_me:$LINENO: result: built" >&5
5148echo "${ECHO_T}built" >&6; }
5149else
5150   { echo "$as_me:$LINENO: result: none" >&5
5151echo "${ECHO_T}none" >&6; }
5152fi
5153CLANGPATH=$WITH_CLANGPATH
5154
5155CLANGXXPATH=$WITH_CLANGXXPATH
5156
5157ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5158
5159
5160
5161# Check whether --with-optimize-option was given.
5162if test "${with_optimize_option+set}" = set; then
5163  withval=$with_optimize_option;
5164else
5165  withval=default
5166fi
5167
5168{ echo "$as_me:$LINENO: checking optimization flags" >&5
5169echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5170case "$withval" in
5171  default)
5172    case "$llvm_cv_os_type" in
5173    MingW) optimize_option=-O2 ;;
5174    *)     optimize_option=-O3 ;;
5175    esac ;;
5176  *) optimize_option="$withval" ;;
5177esac
5178OPTIMIZE_OPTION=$optimize_option
5179
5180{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5181echo "${ECHO_T}$optimize_option" >&6; }
5182
5183
5184# Check whether --with-extra-options was given.
5185if test "${with_extra_options+set}" = set; then
5186  withval=$with_extra_options;
5187else
5188  withval=default
5189fi
5190
5191case "$withval" in
5192  default) EXTRA_OPTIONS= ;;
5193  *) EXTRA_OPTIONS=$withval ;;
5194esac
5195EXTRA_OPTIONS=$EXTRA_OPTIONS
5196
5197
5198# Check whether --enable-bindings was given.
5199if test "${enable_bindings+set}" = set; then
5200  enableval=$enable_bindings;
5201else
5202  enableval=default
5203fi
5204
5205BINDINGS_TO_BUILD=""
5206case "$enableval" in
5207  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5208  all ) BINDINGS_TO_BUILD="ocaml" ;;
5209  none | no) BINDINGS_TO_BUILD="" ;;
5210  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5211      case "$a_binding" in
5212        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5213        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5214echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5215   { (exit 1); exit 1; }; } ;;
5216      esac
5217  done
5218  ;;
5219esac
5220
5221
5222# Check whether --with-ocaml-libdir was given.
5223if test "${with_ocaml_libdir+set}" = set; then
5224  withval=$with_ocaml_libdir;
5225else
5226  withval=auto
5227fi
5228
5229case "$withval" in
5230  auto) with_ocaml_libdir="$withval" ;;
5231  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5232  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5233echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5234   { (exit 1); exit 1; }; } ;;
5235esac
5236
5237
5238# Check whether --with-c-include-dirs was given.
5239if test "${with_c_include_dirs+set}" = set; then
5240  withval=$with_c_include_dirs;
5241else
5242  withval=""
5243fi
5244
5245
5246cat >>confdefs.h <<_ACEOF
5247#define C_INCLUDE_DIRS "$withval"
5248_ACEOF
5249
5250
5251
5252# Check whether --with-cxx-include-root was given.
5253if test "${with_cxx_include_root+set}" = set; then
5254  withval=$with_cxx_include_root;
5255else
5256  withval=""
5257fi
5258
5259
5260cat >>confdefs.h <<_ACEOF
5261#define CXX_INCLUDE_ROOT "$withval"
5262_ACEOF
5263
5264
5265
5266# Check whether --with-cxx-include-arch was given.
5267if test "${with_cxx_include_arch+set}" = set; then
5268  withval=$with_cxx_include_arch;
5269else
5270  withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define CXX_INCLUDE_ARCH "$withval"
5276_ACEOF
5277
5278
5279
5280# Check whether --with-cxx-include-32bit-dir was given.
5281if test "${with_cxx_include_32bit_dir+set}" = set; then
5282  withval=$with_cxx_include_32bit_dir;
5283else
5284  withval=""
5285fi
5286
5287
5288cat >>confdefs.h <<_ACEOF
5289#define CXX_INCLUDE_32BIT_DIR "$withval"
5290_ACEOF
5291
5292
5293
5294# Check whether --with-cxx-include-64bit-dir was given.
5295if test "${with_cxx_include_64bit_dir+set}" = set; then
5296  withval=$with_cxx_include_64bit_dir;
5297else
5298  withval=""
5299fi
5300
5301
5302cat >>confdefs.h <<_ACEOF
5303#define CXX_INCLUDE_64BIT_DIR "$withval"
5304_ACEOF
5305
5306
5307
5308# Check whether --with-binutils-include was given.
5309if test "${with_binutils_include+set}" = set; then
5310  withval=$with_binutils_include;
5311else
5312  withval=default
5313fi
5314
5315case "$withval" in
5316  default) WITH_BINUTILS_INCDIR=default ;;
5317  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5318  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5319echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5320   { (exit 1); exit 1; }; } ;;
5321esac
5322if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5323  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5324
5325  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5326     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5327     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5328echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5329   { (exit 1); exit 1; }; };
5330  fi
5331fi
5332
5333# Check whether --enable-libffi was given.
5334if test "${enable_libffi+set}" = set; then
5335  enableval=$enable_libffi; case "$enableval" in
5336    yes) llvm_cv_enable_libffi="yes" ;;
5337    no)  llvm_cv_enable_libffi="no"  ;;
5338    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5339echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5340   { (exit 1); exit 1; }; } ;;
5341  esac
5342else
5343  llvm_cv_enable_libffi=no
5344fi
5345
5346
5347if test "$llvm_cv_os_type" = "Win32" ; then
5348   llvmc_dynamic="yes"
5349else
5350   llvmc_dynamic="no"
5351fi
5352
5353# Check whether --enable-llvmc-dynamic was given.
5354if test "${enable_llvmc_dynamic+set}" = set; then
5355  enableval=$enable_llvmc_dynamic;
5356else
5357  enableval=$llvmc_dynamic
5358fi
5359
5360if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5361   ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5362
5363else
5364   ENABLE_LLVMC_DYNAMIC=
5365
5366fi
5367
5368# Check whether --enable-llvmc-dynamic-plugins was given.
5369if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5370  enableval=$enable_llvmc_dynamic_plugins;
5371else
5372  enableval=yes
5373fi
5374
5375if test ${enableval} = "yes" ; then
5376   ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5377
5378else
5379   ENABLE_LLVMC_DYNAMIC_PLUGINS=
5380
5381fi
5382
5383
5384ac_ext=c
5385ac_cpp='$CPP $CPPFLAGS'
5386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5390echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5391# On Suns, sometimes $CPP names a directory.
5392if test -n "$CPP" && test -d "$CPP"; then
5393  CPP=
5394fi
5395if test -z "$CPP"; then
5396  if test "${ac_cv_prog_CPP+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399      # Double quotes because CPP needs to be expanded
5400    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5401    do
5402      ac_preproc_ok=false
5403for ac_c_preproc_warn_flag in '' yes
5404do
5405  # Use a header file that comes with gcc, so configuring glibc
5406  # with a fresh cross-compiler works.
5407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408  # <limits.h> exists even on freestanding compilers.
5409  # On the NeXT, cc -E runs the code through the compiler's parser,
5410  # not just through cpp. "Syntax error" is here to catch this case.
5411  cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h.  */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h.  */
5417#ifdef __STDC__
5418# include <limits.h>
5419#else
5420# include <assert.h>
5421#endif
5422		     Syntax error
5423_ACEOF
5424if { (ac_try="$ac_cpp conftest.$ac_ext"
5425case "(($ac_try" in
5426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427  *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } >/dev/null; then
5437  if test -s conftest.err; then
5438    ac_cpp_err=$ac_c_preproc_warn_flag
5439    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5440  else
5441    ac_cpp_err=
5442  fi
5443else
5444  ac_cpp_err=yes
5445fi
5446if test -z "$ac_cpp_err"; then
5447  :
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452  # Broken: fails on valid input.
5453continue
5454fi
5455
5456rm -f conftest.err conftest.$ac_ext
5457
5458  # OK, works on sane cases.  Now check whether nonexistent headers
5459  # can be detected and how.
5460  cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h.  */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h.  */
5466#include <ac_nonexistent.h>
5467_ACEOF
5468if { (ac_try="$ac_cpp conftest.$ac_ext"
5469case "(($ac_try" in
5470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471  *) ac_try_echo=$ac_try;;
5472esac
5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } >/dev/null; then
5481  if test -s conftest.err; then
5482    ac_cpp_err=$ac_c_preproc_warn_flag
5483    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5484  else
5485    ac_cpp_err=
5486  fi
5487else
5488  ac_cpp_err=yes
5489fi
5490if test -z "$ac_cpp_err"; then
5491  # Broken: success on invalid input.
5492continue
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497  # Passes both tests.
5498ac_preproc_ok=:
5499break
5500fi
5501
5502rm -f conftest.err conftest.$ac_ext
5503
5504done
5505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506rm -f conftest.err conftest.$ac_ext
5507if $ac_preproc_ok; then
5508  break
5509fi
5510
5511    done
5512    ac_cv_prog_CPP=$CPP
5513
5514fi
5515  CPP=$ac_cv_prog_CPP
5516else
5517  ac_cv_prog_CPP=$CPP
5518fi
5519{ echo "$as_me:$LINENO: result: $CPP" >&5
5520echo "${ECHO_T}$CPP" >&6; }
5521ac_preproc_ok=false
5522for ac_c_preproc_warn_flag in '' yes
5523do
5524  # Use a header file that comes with gcc, so configuring glibc
5525  # with a fresh cross-compiler works.
5526  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527  # <limits.h> exists even on freestanding compilers.
5528  # On the NeXT, cc -E runs the code through the compiler's parser,
5529  # not just through cpp. "Syntax error" is here to catch this case.
5530  cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h.  */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h.  */
5536#ifdef __STDC__
5537# include <limits.h>
5538#else
5539# include <assert.h>
5540#endif
5541		     Syntax error
5542_ACEOF
5543if { (ac_try="$ac_cpp conftest.$ac_ext"
5544case "(($ac_try" in
5545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546  *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } >/dev/null; then
5556  if test -s conftest.err; then
5557    ac_cpp_err=$ac_c_preproc_warn_flag
5558    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559  else
5560    ac_cpp_err=
5561  fi
5562else
5563  ac_cpp_err=yes
5564fi
5565if test -z "$ac_cpp_err"; then
5566  :
5567else
5568  echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571  # Broken: fails on valid input.
5572continue
5573fi
5574
5575rm -f conftest.err conftest.$ac_ext
5576
5577  # OK, works on sane cases.  Now check whether nonexistent headers
5578  # can be detected and how.
5579  cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h.  */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h.  */
5585#include <ac_nonexistent.h>
5586_ACEOF
5587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590  *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594  ac_status=$?
5595  grep -v '^ *+' conftest.er1 >conftest.err
5596  rm -f conftest.er1
5597  cat conftest.err >&5
5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); } >/dev/null; then
5600  if test -s conftest.err; then
5601    ac_cpp_err=$ac_c_preproc_warn_flag
5602    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603  else
5604    ac_cpp_err=
5605  fi
5606else
5607  ac_cpp_err=yes
5608fi
5609if test -z "$ac_cpp_err"; then
5610  # Broken: success on invalid input.
5611continue
5612else
5613  echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
5616  # Passes both tests.
5617ac_preproc_ok=:
5618break
5619fi
5620
5621rm -f conftest.err conftest.$ac_ext
5622
5623done
5624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625rm -f conftest.err conftest.$ac_ext
5626if $ac_preproc_ok; then
5627  :
5628else
5629  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5630See \`config.log' for more details." >&5
5631echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5632See \`config.log' for more details." >&2;}
5633   { (exit 1); exit 1; }; }
5634fi
5635
5636ac_ext=c
5637ac_cpp='$CPP $CPPFLAGS'
5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647if test -n "$ac_tool_prefix"; then
5648  for ac_prog in gcc
5649  do
5650    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654if test "${ac_cv_prog_CC+set}" = set; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657  if test -n "$CC"; then
5658  ac_cv_prog_CC="$CC" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665  for ac_exec_ext in '' $ac_executable_extensions; do
5666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5667    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677CC=$ac_cv_prog_CC
5678if test -n "$CC"; then
5679  { echo "$as_me:$LINENO: result: $CC" >&5
5680echo "${ECHO_T}$CC" >&6; }
5681else
5682  { echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6; }
5684fi
5685
5686
5687    test -n "$CC" && break
5688  done
5689fi
5690if test -z "$CC"; then
5691  ac_ct_CC=$CC
5692  for ac_prog in gcc
5693do
5694  # Extract the first word of "$ac_prog", so it can be a program name with args.
5695set dummy $ac_prog; ac_word=$2
5696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  if test -n "$ac_ct_CC"; then
5702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707  IFS=$as_save_IFS
5708  test -z "$as_dir" && as_dir=.
5709  for ac_exec_ext in '' $ac_executable_extensions; do
5710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711    ac_cv_prog_ac_ct_CC="$ac_prog"
5712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713    break 2
5714  fi
5715done
5716done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
5721ac_ct_CC=$ac_cv_prog_ac_ct_CC
5722if test -n "$ac_ct_CC"; then
5723  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5724echo "${ECHO_T}$ac_ct_CC" >&6; }
5725else
5726  { echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6; }
5728fi
5729
5730
5731  test -n "$ac_ct_CC" && break
5732done
5733
5734  if test "x$ac_ct_CC" = x; then
5735    CC=""
5736  else
5737    case $cross_compiling:$ac_tool_warned in
5738yes:)
5739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740whose name does not start with the host triplet.  If you think this
5741configuration is useful to you, please write to autoconf@gnu.org." >&5
5742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743whose name does not start with the host triplet.  If you think this
5744configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745ac_tool_warned=yes ;;
5746esac
5747    CC=$ac_ct_CC
5748  fi
5749fi
5750
5751
5752test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5753See \`config.log' for more details." >&5
5754echo "$as_me: error: no acceptable C compiler found in \$PATH
5755See \`config.log' for more details." >&2;}
5756   { (exit 1); exit 1; }; }
5757
5758# Provide some information about the compiler.
5759echo "$as_me:$LINENO: checking for C compiler version" >&5
5760ac_compiler=`set X $ac_compile; echo $2`
5761{ (ac_try="$ac_compiler --version >&5"
5762case "(($ac_try" in
5763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764  *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767  (eval "$ac_compiler --version >&5") 2>&5
5768  ac_status=$?
5769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770  (exit $ac_status); }
5771{ (ac_try="$ac_compiler -v >&5"
5772case "(($ac_try" in
5773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774  *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777  (eval "$ac_compiler -v >&5") 2>&5
5778  ac_status=$?
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); }
5781{ (ac_try="$ac_compiler -V >&5"
5782case "(($ac_try" in
5783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784  *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787  (eval "$ac_compiler -V >&5") 2>&5
5788  ac_status=$?
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); }
5791
5792{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5793echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5794if test "${ac_cv_c_compiler_gnu+set}" = set; then
5795  echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797  cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h.  */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h.  */
5803
5804int
5805main ()
5806{
5807#ifndef __GNUC__
5808       choke me
5809#endif
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819  *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822  (eval "$ac_compile") 2>conftest.er1
5823  ac_status=$?
5824  grep -v '^ *+' conftest.er1 >conftest.err
5825  rm -f conftest.er1
5826  cat conftest.err >&5
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); } &&
5829	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830  { (case "(($ac_try" in
5831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832  *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835  (eval "$ac_try") 2>&5
5836  ac_status=$?
5837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838  (exit $ac_status); }; } &&
5839	 { ac_try='test -s conftest.$ac_objext'
5840  { (case "(($ac_try" in
5841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842  *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845  (eval "$ac_try") 2>&5
5846  ac_status=$?
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); }; }; then
5849  ac_compiler_gnu=yes
5850else
5851  echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854	ac_compiler_gnu=no
5855fi
5856
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858ac_cv_c_compiler_gnu=$ac_compiler_gnu
5859
5860fi
5861{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5863GCC=`test $ac_compiler_gnu = yes && echo yes`
5864ac_test_CFLAGS=${CFLAGS+set}
5865ac_save_CFLAGS=$CFLAGS
5866{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5868if test "${ac_cv_prog_cc_g+set}" = set; then
5869  echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871  ac_save_c_werror_flag=$ac_c_werror_flag
5872   ac_c_werror_flag=yes
5873   ac_cv_prog_cc_g=no
5874   CFLAGS="-g"
5875   cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h.  */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h.  */
5881
5882int
5883main ()
5884{
5885
5886  ;
5887  return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (ac_try="$ac_compile"
5892case "(($ac_try" in
5893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894  *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897  (eval "$ac_compile") 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5905  { (case "(($ac_try" in
5906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907  *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910  (eval "$ac_try") 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }; } &&
5914	 { ac_try='test -s conftest.$ac_objext'
5915  { (case "(($ac_try" in
5916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917  *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920  (eval "$ac_try") 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }; }; then
5924  ac_cv_prog_cc_g=yes
5925else
5926  echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929	CFLAGS=""
5930      cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h.  */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h.  */
5936
5937int
5938main ()
5939{
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949  *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952  (eval "$ac_compile") 2>conftest.er1
5953  ac_status=$?
5954  grep -v '^ *+' conftest.er1 >conftest.err
5955  rm -f conftest.er1
5956  cat conftest.err >&5
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); } &&
5959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960  { (case "(($ac_try" in
5961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962  *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965  (eval "$ac_try") 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; } &&
5969	 { ac_try='test -s conftest.$ac_objext'
5970  { (case "(($ac_try" in
5971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972  *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975  (eval "$ac_try") 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; }; then
5979  :
5980else
5981  echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984	ac_c_werror_flag=$ac_save_c_werror_flag
5985	 CFLAGS="-g"
5986	 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h.  */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h.  */
5992
5993int
5994main ()
5995{
5996
5997  ;
5998  return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005  *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008  (eval "$ac_compile") 2>conftest.er1
6009  ac_status=$?
6010  grep -v '^ *+' conftest.er1 >conftest.err
6011  rm -f conftest.er1
6012  cat conftest.err >&5
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); } &&
6015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016  { (case "(($ac_try" in
6017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018  *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021  (eval "$ac_try") 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }; } &&
6025	 { ac_try='test -s conftest.$ac_objext'
6026  { (case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031  (eval "$ac_try") 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  ac_cv_prog_cc_g=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050   ac_c_werror_flag=$ac_save_c_werror_flag
6051fi
6052{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6053echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6054if test "$ac_test_CFLAGS" = set; then
6055  CFLAGS=$ac_save_CFLAGS
6056elif test $ac_cv_prog_cc_g = yes; then
6057  if test "$GCC" = yes; then
6058    CFLAGS="-g -O2"
6059  else
6060    CFLAGS="-g"
6061  fi
6062else
6063  if test "$GCC" = yes; then
6064    CFLAGS="-O2"
6065  else
6066    CFLAGS=
6067  fi
6068fi
6069{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6070echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6071if test "${ac_cv_prog_cc_c89+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  ac_cv_prog_cc_c89=no
6075ac_save_CC=$CC
6076cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082#include <stdarg.h>
6083#include <stdio.h>
6084#include <sys/types.h>
6085#include <sys/stat.h>
6086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6087struct buf { int x; };
6088FILE * (*rcsopen) (struct buf *, struct stat *, int);
6089static char *e (p, i)
6090     char **p;
6091     int i;
6092{
6093  return p[i];
6094}
6095static char *f (char * (*g) (char **, int), char **p, ...)
6096{
6097  char *s;
6098  va_list v;
6099  va_start (v,p);
6100  s = g (p, va_arg (v,int));
6101  va_end (v);
6102  return s;
6103}
6104
6105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6106   function prototypes and stuff, but not '\xHH' hex character constants.
6107   These don't provoke an error unfortunately, instead are silently treated
6108   as 'x'.  The following induces an error, until -std is added to get
6109   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6110   array size at least.  It's necessary to write '\x00'==0 to get something
6111   that's true only with -std.  */
6112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6113
6114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6115   inside strings and character constants.  */
6116#define FOO(x) 'x'
6117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6118
6119int test (int i, double x);
6120struct s1 {int (*f) (int a);};
6121struct s2 {int (*f) (double a);};
6122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6123int argc;
6124char **argv;
6125int
6126main ()
6127{
6128return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6134	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6135do
6136  CC="$ac_save_CC $ac_arg"
6137  rm -f conftest.$ac_objext
6138if { (ac_try="$ac_compile"
6139case "(($ac_try" in
6140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141  *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144  (eval "$ac_compile") 2>conftest.er1
6145  ac_status=$?
6146  grep -v '^ *+' conftest.er1 >conftest.err
6147  rm -f conftest.er1
6148  cat conftest.err >&5
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); } &&
6151	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152  { (case "(($ac_try" in
6153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154  *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157  (eval "$ac_try") 2>&5
6158  ac_status=$?
6159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); }; } &&
6161	 { ac_try='test -s conftest.$ac_objext'
6162  { (case "(($ac_try" in
6163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164  *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167  (eval "$ac_try") 2>&5
6168  ac_status=$?
6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }; }; then
6171  ac_cv_prog_cc_c89=$ac_arg
6172else
6173  echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176
6177fi
6178
6179rm -f core conftest.err conftest.$ac_objext
6180  test "x$ac_cv_prog_cc_c89" != "xno" && break
6181done
6182rm -f conftest.$ac_ext
6183CC=$ac_save_CC
6184
6185fi
6186# AC_CACHE_VAL
6187case "x$ac_cv_prog_cc_c89" in
6188  x)
6189    { echo "$as_me:$LINENO: result: none needed" >&5
6190echo "${ECHO_T}none needed" >&6; } ;;
6191  xno)
6192    { echo "$as_me:$LINENO: result: unsupported" >&5
6193echo "${ECHO_T}unsupported" >&6; } ;;
6194  *)
6195    CC="$CC $ac_cv_prog_cc_c89"
6196    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6197echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6198esac
6199
6200
6201ac_ext=c
6202ac_cpp='$CPP $CPPFLAGS'
6203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207ac_ext=cpp
6208ac_cpp='$CXXCPP $CPPFLAGS'
6209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212if test -z "$CXX"; then
6213  if test -n "$CCC"; then
6214    CXX=$CCC
6215  else
6216    if test -n "$ac_tool_prefix"; then
6217  for ac_prog in g++
6218  do
6219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223if test "${ac_cv_prog_CXX+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  if test -n "$CXX"; then
6227  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234  for ac_exec_ext in '' $ac_executable_extensions; do
6235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246CXX=$ac_cv_prog_CXX
6247if test -n "$CXX"; then
6248  { echo "$as_me:$LINENO: result: $CXX" >&5
6249echo "${ECHO_T}$CXX" >&6; }
6250else
6251  { echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6; }
6253fi
6254
6255
6256    test -n "$CXX" && break
6257  done
6258fi
6259if test -z "$CXX"; then
6260  ac_ct_CXX=$CXX
6261  for ac_prog in g++
6262do
6263  # Extract the first word of "$ac_prog", so it can be a program name with args.
6264set dummy $ac_prog; ac_word=$2
6265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  if test -n "$ac_ct_CXX"; then
6271  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278  for ac_exec_ext in '' $ac_executable_extensions; do
6279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280    ac_cv_prog_ac_ct_CXX="$ac_prog"
6281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291if test -n "$ac_ct_CXX"; then
6292  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6293echo "${ECHO_T}$ac_ct_CXX" >&6; }
6294else
6295  { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
6297fi
6298
6299
6300  test -n "$ac_ct_CXX" && break
6301done
6302
6303  if test "x$ac_ct_CXX" = x; then
6304    CXX="g++"
6305  else
6306    case $cross_compiling:$ac_tool_warned in
6307yes:)
6308{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6309whose name does not start with the host triplet.  If you think this
6310configuration is useful to you, please write to autoconf@gnu.org." >&5
6311echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6312whose name does not start with the host triplet.  If you think this
6313configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316    CXX=$ac_ct_CXX
6317  fi
6318fi
6319
6320  fi
6321fi
6322# Provide some information about the compiler.
6323echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6324ac_compiler=`set X $ac_compile; echo $2`
6325{ (ac_try="$ac_compiler --version >&5"
6326case "(($ac_try" in
6327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328  *) ac_try_echo=$ac_try;;
6329esac
6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331  (eval "$ac_compiler --version >&5") 2>&5
6332  ac_status=$?
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); }
6335{ (ac_try="$ac_compiler -v >&5"
6336case "(($ac_try" in
6337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338  *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341  (eval "$ac_compiler -v >&5") 2>&5
6342  ac_status=$?
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); }
6345{ (ac_try="$ac_compiler -V >&5"
6346case "(($ac_try" in
6347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348  *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351  (eval "$ac_compiler -V >&5") 2>&5
6352  ac_status=$?
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); }
6355
6356{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6357echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6358if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  cat >conftest.$ac_ext <<_ACEOF
6362/* confdefs.h.  */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h.  */
6367
6368int
6369main ()
6370{
6371#ifndef __GNUC__
6372       choke me
6373#endif
6374
6375  ;
6376  return 0;
6377}
6378_ACEOF
6379rm -f conftest.$ac_objext
6380if { (ac_try="$ac_compile"
6381case "(($ac_try" in
6382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383  *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386  (eval "$ac_compile") 2>conftest.er1
6387  ac_status=$?
6388  grep -v '^ *+' conftest.er1 >conftest.err
6389  rm -f conftest.er1
6390  cat conftest.err >&5
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); } &&
6393	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394  { (case "(($ac_try" in
6395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396  *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399  (eval "$ac_try") 2>&5
6400  ac_status=$?
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); }; } &&
6403	 { ac_try='test -s conftest.$ac_objext'
6404  { (case "(($ac_try" in
6405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406  *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409  (eval "$ac_try") 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; }; then
6413  ac_compiler_gnu=yes
6414else
6415  echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418	ac_compiler_gnu=no
6419fi
6420
6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6423
6424fi
6425{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6426echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6427GXX=`test $ac_compiler_gnu = yes && echo yes`
6428ac_test_CXXFLAGS=${CXXFLAGS+set}
6429ac_save_CXXFLAGS=$CXXFLAGS
6430{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6431echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6432if test "${ac_cv_prog_cxx_g+set}" = set; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6436   ac_cxx_werror_flag=yes
6437   ac_cv_prog_cxx_g=no
6438   CXXFLAGS="-g"
6439   cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h.  */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h.  */
6445
6446int
6447main ()
6448{
6449
6450  ;
6451  return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (ac_try="$ac_compile"
6456case "(($ac_try" in
6457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458  *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461  (eval "$ac_compile") 2>conftest.er1
6462  ac_status=$?
6463  grep -v '^ *+' conftest.er1 >conftest.err
6464  rm -f conftest.er1
6465  cat conftest.err >&5
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); } &&
6468	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6469  { (case "(($ac_try" in
6470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471  *) ac_try_echo=$ac_try;;
6472esac
6473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474  (eval "$ac_try") 2>&5
6475  ac_status=$?
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); }; } &&
6478	 { ac_try='test -s conftest.$ac_objext'
6479  { (case "(($ac_try" in
6480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481  *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484  (eval "$ac_try") 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }; }; then
6488  ac_cv_prog_cxx_g=yes
6489else
6490  echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493	CXXFLAGS=""
6494      cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h.  */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h.  */
6500
6501int
6502main ()
6503{
6504
6505  ;
6506  return 0;
6507}
6508_ACEOF
6509rm -f conftest.$ac_objext
6510if { (ac_try="$ac_compile"
6511case "(($ac_try" in
6512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513  *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516  (eval "$ac_compile") 2>conftest.er1
6517  ac_status=$?
6518  grep -v '^ *+' conftest.er1 >conftest.err
6519  rm -f conftest.er1
6520  cat conftest.err >&5
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); } &&
6523	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6524  { (case "(($ac_try" in
6525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526  *) ac_try_echo=$ac_try;;
6527esac
6528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529  (eval "$ac_try") 2>&5
6530  ac_status=$?
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); }; } &&
6533	 { ac_try='test -s conftest.$ac_objext'
6534  { (case "(($ac_try" in
6535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536  *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539  (eval "$ac_try") 2>&5
6540  ac_status=$?
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); }; }; then
6543  :
6544else
6545  echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549	 CXXFLAGS="-g"
6550	 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556
6557int
6558main ()
6559{
6560
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext
6566if { (ac_try="$ac_compile"
6567case "(($ac_try" in
6568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569  *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572  (eval "$ac_compile") 2>conftest.er1
6573  ac_status=$?
6574  grep -v '^ *+' conftest.er1 >conftest.err
6575  rm -f conftest.er1
6576  cat conftest.err >&5
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } &&
6579	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580  { (case "(($ac_try" in
6581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582  *) ac_try_echo=$ac_try;;
6583esac
6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585  (eval "$ac_try") 2>&5
6586  ac_status=$?
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); }; } &&
6589	 { ac_try='test -s conftest.$ac_objext'
6590  { (case "(($ac_try" in
6591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592  *) ac_try_echo=$ac_try;;
6593esac
6594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595  (eval "$ac_try") 2>&5
6596  ac_status=$?
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); }; }; then
6599  ac_cv_prog_cxx_g=yes
6600else
6601  echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604
6605fi
6606
6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608fi
6609
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612
6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6615fi
6616{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6617echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6618if test "$ac_test_CXXFLAGS" = set; then
6619  CXXFLAGS=$ac_save_CXXFLAGS
6620elif test $ac_cv_prog_cxx_g = yes; then
6621  if test "$GXX" = yes; then
6622    CXXFLAGS="-g -O2"
6623  else
6624    CXXFLAGS="-g"
6625  fi
6626else
6627  if test "$GXX" = yes; then
6628    CXXFLAGS="-O2"
6629  else
6630    CXXFLAGS=
6631  fi
6632fi
6633ac_ext=c
6634ac_cpp='$CPP $CPPFLAGS'
6635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
6639
6640{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6642if test "${lt_cv_path_NM+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  if test -n "$NM"; then
6646  # Let the user override the test.
6647  lt_cv_path_NM="$NM"
6648else
6649  lt_nm_to_check="${ac_tool_prefix}nm"
6650  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6651    lt_nm_to_check="$lt_nm_to_check nm"
6652  fi
6653  for lt_tmp_nm in $lt_nm_to_check; do
6654    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6655    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6656      IFS="$lt_save_ifs"
6657      test -z "$ac_dir" && ac_dir=.
6658      tmp_nm="$ac_dir/$lt_tmp_nm"
6659      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6660	# Check to see if the nm accepts a BSD-compat flag.
6661	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6662	#   nm: unknown option "B" ignored
6663	# Tru64's nm complains that /dev/null is an invalid object file
6664	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6665	*/dev/null* | *'Invalid file or object type'*)
6666	  lt_cv_path_NM="$tmp_nm -B"
6667	  break
6668	  ;;
6669	*)
6670	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6671	  */dev/null*)
6672	    lt_cv_path_NM="$tmp_nm -p"
6673	    break
6674	    ;;
6675	  *)
6676	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6677	    continue # so that we can try to find one that supports BSD flags
6678	    ;;
6679	  esac
6680	  ;;
6681	esac
6682      fi
6683    done
6684    IFS="$lt_save_ifs"
6685  done
6686  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6687fi
6688fi
6689{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6690echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6691NM="$lt_cv_path_NM"
6692
6693
6694
6695{ echo "$as_me:$LINENO: checking for GNU make" >&5
6696echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6697if test "${llvm_cv_gnu_make_command+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  llvm_cv_gnu_make_command=''
6701 for a in "$MAKE" make gmake gnumake ; do
6702  if test -z "$a" ; then continue ; fi ;
6703  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6704  then
6705   llvm_cv_gnu_make_command=$a ;
6706   break;
6707  fi
6708 done
6709fi
6710{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6711echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6712 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6713   ifGNUmake='' ;
6714 else
6715   ifGNUmake='#' ;
6716   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6717echo "${ECHO_T}\"Not found\"" >&6; };
6718 fi
6719
6720
6721{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6722echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6723LN_S=$as_ln_s
6724if test "$LN_S" = "ln -s"; then
6725  { echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6; }
6727else
6728  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6729echo "${ECHO_T}no, using $LN_S" >&6; }
6730fi
6731
6732# Extract the first word of "cmp", so it can be a program name with args.
6733set dummy cmp; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_CMP+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  case $CMP in
6740  [\\/]* | ?:[\\/]*)
6741  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6742  ;;
6743  *)
6744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749  for ac_exec_ext in '' $ac_executable_extensions; do
6750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756done
6757IFS=$as_save_IFS
6758
6759  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6760  ;;
6761esac
6762fi
6763CMP=$ac_cv_path_CMP
6764if test -n "$CMP"; then
6765  { echo "$as_me:$LINENO: result: $CMP" >&5
6766echo "${ECHO_T}$CMP" >&6; }
6767else
6768  { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; }
6770fi
6771
6772
6773# Extract the first word of "cp", so it can be a program name with args.
6774set dummy cp; ac_word=$2
6775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777if test "${ac_cv_path_CP+set}" = set; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  case $CP in
6781  [\\/]* | ?:[\\/]*)
6782  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6783  ;;
6784  *)
6785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  test -z "$as_dir" && as_dir=.
6790  for ac_exec_ext in '' $ac_executable_extensions; do
6791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794    break 2
6795  fi
6796done
6797done
6798IFS=$as_save_IFS
6799
6800  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6801  ;;
6802esac
6803fi
6804CP=$ac_cv_path_CP
6805if test -n "$CP"; then
6806  { echo "$as_me:$LINENO: result: $CP" >&5
6807echo "${ECHO_T}$CP" >&6; }
6808else
6809  { echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6; }
6811fi
6812
6813
6814# Extract the first word of "date", so it can be a program name with args.
6815set dummy date; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_path_DATE+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  case $DATE in
6822  [\\/]* | ?:[\\/]*)
6823  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6824  ;;
6825  *)
6826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  test -z "$as_dir" && as_dir=.
6831  for ac_exec_ext in '' $ac_executable_extensions; do
6832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835    break 2
6836  fi
6837done
6838done
6839IFS=$as_save_IFS
6840
6841  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6842  ;;
6843esac
6844fi
6845DATE=$ac_cv_path_DATE
6846if test -n "$DATE"; then
6847  { echo "$as_me:$LINENO: result: $DATE" >&5
6848echo "${ECHO_T}$DATE" >&6; }
6849else
6850  { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
6852fi
6853
6854
6855# Extract the first word of "find", so it can be a program name with args.
6856set dummy find; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_FIND+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862  case $FIND in
6863  [\\/]* | ?:[\\/]*)
6864  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6865  ;;
6866  *)
6867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872  for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6883  ;;
6884esac
6885fi
6886FIND=$ac_cv_path_FIND
6887if test -n "$FIND"; then
6888  { echo "$as_me:$LINENO: result: $FIND" >&5
6889echo "${ECHO_T}$FIND" >&6; }
6890else
6891  { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896# Extract the first word of "grep", so it can be a program name with args.
6897set dummy grep; ac_word=$2
6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_GREP+set}" = set; then
6901  echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903  case $GREP in
6904  [\\/]* | ?:[\\/]*)
6905  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6906  ;;
6907  *)
6908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913  for ac_exec_ext in '' $ac_executable_extensions; do
6914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6924  ;;
6925esac
6926fi
6927GREP=$ac_cv_path_GREP
6928if test -n "$GREP"; then
6929  { echo "$as_me:$LINENO: result: $GREP" >&5
6930echo "${ECHO_T}$GREP" >&6; }
6931else
6932  { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936
6937# Extract the first word of "mkdir", so it can be a program name with args.
6938set dummy mkdir; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_MKDIR+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  case $MKDIR in
6945  [\\/]* | ?:[\\/]*)
6946  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6947  ;;
6948  *)
6949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952  IFS=$as_save_IFS
6953  test -z "$as_dir" && as_dir=.
6954  for ac_exec_ext in '' $ac_executable_extensions; do
6955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958    break 2
6959  fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6965  ;;
6966esac
6967fi
6968MKDIR=$ac_cv_path_MKDIR
6969if test -n "$MKDIR"; then
6970  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6971echo "${ECHO_T}$MKDIR" >&6; }
6972else
6973  { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978# Extract the first word of "mv", so it can be a program name with args.
6979set dummy mv; ac_word=$2
6980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_MV+set}" = set; then
6983  echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985  case $MV in
6986  [\\/]* | ?:[\\/]*)
6987  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6988  ;;
6989  *)
6990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995  for ac_exec_ext in '' $ac_executable_extensions; do
6996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002done
7003IFS=$as_save_IFS
7004
7005  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7006  ;;
7007esac
7008fi
7009MV=$ac_cv_path_MV
7010if test -n "$MV"; then
7011  { echo "$as_me:$LINENO: result: $MV" >&5
7012echo "${ECHO_T}$MV" >&6; }
7013else
7014  { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018
7019if test -n "$ac_tool_prefix"; then
7020  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024if test "${ac_cv_prog_RANLIB+set}" = set; then
7025  echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027  if test -n "$RANLIB"; then
7028  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035  for ac_exec_ext in '' $ac_executable_extensions; do
7036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7037    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047RANLIB=$ac_cv_prog_RANLIB
7048if test -n "$RANLIB"; then
7049  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7050echo "${ECHO_T}$RANLIB" >&6; }
7051else
7052  { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
7054fi
7055
7056
7057fi
7058if test -z "$ac_cv_prog_RANLIB"; then
7059  ac_ct_RANLIB=$RANLIB
7060  # Extract the first word of "ranlib", so it can be a program name with args.
7061set dummy ranlib; ac_word=$2
7062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  if test -n "$ac_ct_RANLIB"; then
7068  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075  for ac_exec_ext in '' $ac_executable_extensions; do
7076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077    ac_cv_prog_ac_ct_RANLIB="ranlib"
7078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088if test -n "$ac_ct_RANLIB"; then
7089  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7090echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7091else
7092  { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
7094fi
7095
7096  if test "x$ac_ct_RANLIB" = x; then
7097    RANLIB=":"
7098  else
7099    case $cross_compiling:$ac_tool_warned in
7100yes:)
7101{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102whose name does not start with the host triplet.  If you think this
7103configuration is useful to you, please write to autoconf@gnu.org." >&5
7104echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105whose name does not start with the host triplet.  If you think this
7106configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107ac_tool_warned=yes ;;
7108esac
7109    RANLIB=$ac_ct_RANLIB
7110  fi
7111else
7112  RANLIB="$ac_cv_prog_RANLIB"
7113fi
7114
7115if test -n "$ac_tool_prefix"; then
7116  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7117set dummy ${ac_tool_prefix}ar; ac_word=$2
7118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120if test "${ac_cv_prog_AR+set}" = set; then
7121  echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123  if test -n "$AR"; then
7124  ac_cv_prog_AR="$AR" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129  IFS=$as_save_IFS
7130  test -z "$as_dir" && as_dir=.
7131  for ac_exec_ext in '' $ac_executable_extensions; do
7132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133    ac_cv_prog_AR="${ac_tool_prefix}ar"
7134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135    break 2
7136  fi
7137done
7138done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143AR=$ac_cv_prog_AR
7144if test -n "$AR"; then
7145  { echo "$as_me:$LINENO: result: $AR" >&5
7146echo "${ECHO_T}$AR" >&6; }
7147else
7148  { echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6; }
7150fi
7151
7152
7153fi
7154if test -z "$ac_cv_prog_AR"; then
7155  ac_ct_AR=$AR
7156  # Extract the first word of "ar", so it can be a program name with args.
7157set dummy ar; ac_word=$2
7158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163  if test -n "$ac_ct_AR"; then
7164  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171  for ac_exec_ext in '' $ac_executable_extensions; do
7172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173    ac_cv_prog_ac_ct_AR="ar"
7174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175    break 2
7176  fi
7177done
7178done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184if test -n "$ac_ct_AR"; then
7185  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186echo "${ECHO_T}$ac_ct_AR" >&6; }
7187else
7188  { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
7190fi
7191
7192  if test "x$ac_ct_AR" = x; then
7193    AR="false"
7194  else
7195    case $cross_compiling:$ac_tool_warned in
7196yes:)
7197{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198whose name does not start with the host triplet.  If you think this
7199configuration is useful to you, please write to autoconf@gnu.org." >&5
7200echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201whose name does not start with the host triplet.  If you think this
7202configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203ac_tool_warned=yes ;;
7204esac
7205    AR=$ac_ct_AR
7206  fi
7207else
7208  AR="$ac_cv_prog_AR"
7209fi
7210
7211# Extract the first word of "rm", so it can be a program name with args.
7212set dummy rm; ac_word=$2
7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_RM+set}" = set; then
7216  echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218  case $RM in
7219  [\\/]* | ?:[\\/]*)
7220  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7221  ;;
7222  *)
7223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228  for ac_exec_ext in '' $ac_executable_extensions; do
7229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235done
7236IFS=$as_save_IFS
7237
7238  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7239  ;;
7240esac
7241fi
7242RM=$ac_cv_path_RM
7243if test -n "$RM"; then
7244  { echo "$as_me:$LINENO: result: $RM" >&5
7245echo "${ECHO_T}$RM" >&6; }
7246else
7247  { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
7249fi
7250
7251
7252# Extract the first word of "sed", so it can be a program name with args.
7253set dummy sed; ac_word=$2
7254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256if test "${ac_cv_path_SED+set}" = set; then
7257  echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259  case $SED in
7260  [\\/]* | ?:[\\/]*)
7261  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7262  ;;
7263  *)
7264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269  for ac_exec_ext in '' $ac_executable_extensions; do
7270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276done
7277IFS=$as_save_IFS
7278
7279  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7280  ;;
7281esac
7282fi
7283SED=$ac_cv_path_SED
7284if test -n "$SED"; then
7285  { echo "$as_me:$LINENO: result: $SED" >&5
7286echo "${ECHO_T}$SED" >&6; }
7287else
7288  { echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6; }
7290fi
7291
7292
7293# Extract the first word of "tar", so it can be a program name with args.
7294set dummy tar; 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_TAR+set}" = set; then
7298  echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300  case $TAR in
7301  [\\/]* | ?:[\\/]*)
7302  ac_cv_path_TAR="$TAR" # 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_TAR="$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  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7321  ;;
7322esac
7323fi
7324TAR=$ac_cv_path_TAR
7325if test -n "$TAR"; then
7326  { echo "$as_me:$LINENO: result: $TAR" >&5
7327echo "${ECHO_T}$TAR" >&6; }
7328else
7329  { echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6; }
7331fi
7332
7333
7334# Extract the first word of "pwd", so it can be a program name with args.
7335set dummy pwd; ac_word=$2
7336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338if test "${ac_cv_path_BINPWD+set}" = set; then
7339  echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341  case $BINPWD in
7342  [\\/]* | ?:[\\/]*)
7343  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7344  ;;
7345  *)
7346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351  for ac_exec_ext in '' $ac_executable_extensions; do
7352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355    break 2
7356  fi
7357done
7358done
7359IFS=$as_save_IFS
7360
7361  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7362  ;;
7363esac
7364fi
7365BINPWD=$ac_cv_path_BINPWD
7366if test -n "$BINPWD"; then
7367  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7368echo "${ECHO_T}$BINPWD" >&6; }
7369else
7370  { echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6; }
7372fi
7373
7374
7375
7376# Extract the first word of "Graphviz", so it can be a program name with args.
7377set dummy Graphviz; ac_word=$2
7378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383  case $GRAPHVIZ in
7384  [\\/]* | ?:[\\/]*)
7385  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7386  ;;
7387  *)
7388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393  for ac_exec_ext in '' $ac_executable_extensions; do
7394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400done
7401IFS=$as_save_IFS
7402
7403  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7404  ;;
7405esac
7406fi
7407GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7408if test -n "$GRAPHVIZ"; then
7409  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7410echo "${ECHO_T}$GRAPHVIZ" >&6; }
7411else
7412  { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
7414fi
7415
7416
7417if test "$GRAPHVIZ" != "echo Graphviz" ; then
7418
7419cat >>confdefs.h <<\_ACEOF
7420#define HAVE_GRAPHVIZ 1
7421_ACEOF
7422
7423    if test "$llvm_cv_os_type" = "MingW" ; then
7424    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425  fi
7426
7427cat >>confdefs.h <<_ACEOF
7428#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7429_ACEOF
7430
7431fi
7432# Extract the first word of "dot", so it can be a program name with args.
7433set dummy dot; ac_word=$2
7434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_DOT+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  case $DOT in
7440  [\\/]* | ?:[\\/]*)
7441  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7442  ;;
7443  *)
7444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449  for ac_exec_ext in '' $ac_executable_extensions; do
7450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456done
7457IFS=$as_save_IFS
7458
7459  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7460  ;;
7461esac
7462fi
7463DOT=$ac_cv_path_DOT
7464if test -n "$DOT"; then
7465  { echo "$as_me:$LINENO: result: $DOT" >&5
7466echo "${ECHO_T}$DOT" >&6; }
7467else
7468  { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
7470fi
7471
7472
7473if test "$DOT" != "echo dot" ; then
7474
7475cat >>confdefs.h <<\_ACEOF
7476#define HAVE_DOT 1
7477_ACEOF
7478
7479    if test "$llvm_cv_os_type" = "MingW" ; then
7480    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481  fi
7482
7483cat >>confdefs.h <<_ACEOF
7484#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7485_ACEOF
7486
7487fi
7488# Extract the first word of "fdp", so it can be a program name with args.
7489set dummy fdp; 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_FDP+set}" = set; then
7493  echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495  case $FDP in
7496  [\\/]* | ?:[\\/]*)
7497  ac_cv_path_FDP="$FDP" # 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_FDP="$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  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7516  ;;
7517esac
7518fi
7519FDP=$ac_cv_path_FDP
7520if test -n "$FDP"; then
7521  { echo "$as_me:$LINENO: result: $FDP" >&5
7522echo "${ECHO_T}$FDP" >&6; }
7523else
7524  { echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6; }
7526fi
7527
7528
7529if test "$FDP" != "echo fdp" ; then
7530
7531cat >>confdefs.h <<\_ACEOF
7532#define HAVE_FDP 1
7533_ACEOF
7534
7535    if test "$llvm_cv_os_type" = "MingW" ; then
7536    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537  fi
7538
7539cat >>confdefs.h <<_ACEOF
7540#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7541_ACEOF
7542
7543fi
7544# Extract the first word of "neato", so it can be a program name with args.
7545set dummy neato; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_NEATO+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  case $NEATO in
7552  [\\/]* | ?:[\\/]*)
7553  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7554  ;;
7555  *)
7556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559  IFS=$as_save_IFS
7560  test -z "$as_dir" && as_dir=.
7561  for ac_exec_ext in '' $ac_executable_extensions; do
7562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565    break 2
7566  fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7572  ;;
7573esac
7574fi
7575NEATO=$ac_cv_path_NEATO
7576if test -n "$NEATO"; then
7577  { echo "$as_me:$LINENO: result: $NEATO" >&5
7578echo "${ECHO_T}$NEATO" >&6; }
7579else
7580  { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
7582fi
7583
7584
7585if test "$NEATO" != "echo neato" ; then
7586
7587cat >>confdefs.h <<\_ACEOF
7588#define HAVE_NEATO 1
7589_ACEOF
7590
7591    if test "$llvm_cv_os_type" = "MingW" ; then
7592    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593  fi
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7597_ACEOF
7598
7599fi
7600# Extract the first word of "twopi", so it can be a program name with args.
7601set dummy twopi; ac_word=$2
7602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604if test "${ac_cv_path_TWOPI+set}" = set; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  case $TWOPI in
7608  [\\/]* | ?:[\\/]*)
7609  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7610  ;;
7611  *)
7612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617  for ac_exec_ext in '' $ac_executable_extensions; do
7618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7619    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624done
7625IFS=$as_save_IFS
7626
7627  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7628  ;;
7629esac
7630fi
7631TWOPI=$ac_cv_path_TWOPI
7632if test -n "$TWOPI"; then
7633  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7634echo "${ECHO_T}$TWOPI" >&6; }
7635else
7636  { echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6; }
7638fi
7639
7640
7641if test "$TWOPI" != "echo twopi" ; then
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define HAVE_TWOPI 1
7645_ACEOF
7646
7647    if test "$llvm_cv_os_type" = "MingW" ; then
7648    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7649  fi
7650
7651cat >>confdefs.h <<_ACEOF
7652#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7653_ACEOF
7654
7655fi
7656# Extract the first word of "circo", so it can be a program name with args.
7657set dummy circo; ac_word=$2
7658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660if test "${ac_cv_path_CIRCO+set}" = set; then
7661  echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663  case $CIRCO in
7664  [\\/]* | ?:[\\/]*)
7665  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7666  ;;
7667  *)
7668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671  IFS=$as_save_IFS
7672  test -z "$as_dir" && as_dir=.
7673  for ac_exec_ext in '' $ac_executable_extensions; do
7674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677    break 2
7678  fi
7679done
7680done
7681IFS=$as_save_IFS
7682
7683  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7684  ;;
7685esac
7686fi
7687CIRCO=$ac_cv_path_CIRCO
7688if test -n "$CIRCO"; then
7689  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7690echo "${ECHO_T}$CIRCO" >&6; }
7691else
7692  { echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6; }
7694fi
7695
7696
7697if test "$CIRCO" != "echo circo" ; then
7698
7699cat >>confdefs.h <<\_ACEOF
7700#define HAVE_CIRCO 1
7701_ACEOF
7702
7703    if test "$llvm_cv_os_type" = "MingW" ; then
7704    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7705  fi
7706
7707cat >>confdefs.h <<_ACEOF
7708#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7709_ACEOF
7710
7711fi
7712for ac_prog in gv gsview32
7713do
7714  # Extract the first word of "$ac_prog", so it can be a program name with args.
7715set dummy $ac_prog; ac_word=$2
7716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718if test "${ac_cv_path_GV+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  case $GV in
7722  [\\/]* | ?:[\\/]*)
7723  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7724  ;;
7725  *)
7726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729  IFS=$as_save_IFS
7730  test -z "$as_dir" && as_dir=.
7731  for ac_exec_ext in '' $ac_executable_extensions; do
7732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735    break 2
7736  fi
7737done
7738done
7739IFS=$as_save_IFS
7740
7741  ;;
7742esac
7743fi
7744GV=$ac_cv_path_GV
7745if test -n "$GV"; then
7746  { echo "$as_me:$LINENO: result: $GV" >&5
7747echo "${ECHO_T}$GV" >&6; }
7748else
7749  { echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6; }
7751fi
7752
7753
7754  test -n "$GV" && break
7755done
7756test -n "$GV" || GV="echo gv"
7757
7758if test "$GV" != "echo gv" ; then
7759
7760cat >>confdefs.h <<\_ACEOF
7761#define HAVE_GV 1
7762_ACEOF
7763
7764    if test "$llvm_cv_os_type" = "MingW" ; then
7765    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7766  fi
7767
7768cat >>confdefs.h <<_ACEOF
7769#define LLVM_PATH_GV "$GV${EXEEXT}"
7770_ACEOF
7771
7772fi
7773# Extract the first word of "dotty", so it can be a program name with args.
7774set dummy dotty; ac_word=$2
7775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_DOTTY+set}" = set; then
7778  echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780  case $DOTTY in
7781  [\\/]* | ?:[\\/]*)
7782  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7783  ;;
7784  *)
7785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788  IFS=$as_save_IFS
7789  test -z "$as_dir" && as_dir=.
7790  for ac_exec_ext in '' $ac_executable_extensions; do
7791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797done
7798IFS=$as_save_IFS
7799
7800  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7801  ;;
7802esac
7803fi
7804DOTTY=$ac_cv_path_DOTTY
7805if test -n "$DOTTY"; then
7806  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7807echo "${ECHO_T}$DOTTY" >&6; }
7808else
7809  { echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6; }
7811fi
7812
7813
7814if test "$DOTTY" != "echo dotty" ; then
7815
7816cat >>confdefs.h <<\_ACEOF
7817#define HAVE_DOTTY 1
7818_ACEOF
7819
7820    if test "$llvm_cv_os_type" = "MingW" ; then
7821    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7822  fi
7823
7824cat >>confdefs.h <<_ACEOF
7825#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7826_ACEOF
7827
7828fi
7829
7830
7831# Extract the first word of "perl", so it can be a program name with args.
7832set dummy perl; ac_word=$2
7833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835if test "${ac_cv_path_PERL+set}" = set; then
7836  echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838  case $PERL in
7839  [\\/]* | ?:[\\/]*)
7840  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7841  ;;
7842  *)
7843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848  for ac_exec_ext in '' $ac_executable_extensions; do
7849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855done
7856IFS=$as_save_IFS
7857
7858  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7859  ;;
7860esac
7861fi
7862PERL=$ac_cv_path_PERL
7863if test -n "$PERL"; then
7864  { echo "$as_me:$LINENO: result: $PERL" >&5
7865echo "${ECHO_T}$PERL" >&6; }
7866else
7867  { echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6; }
7869fi
7870
7871
7872if test "$PERL" != "none"; then
7873  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7874echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7875  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7876    { echo "$as_me:$LINENO: result: yes" >&5
7877echo "${ECHO_T}yes" >&6; }
7878  else
7879    PERL=none
7880    { echo "$as_me:$LINENO: result: not found" >&5
7881echo "${ECHO_T}not found" >&6; }
7882  fi
7883fi
7884
7885
7886if test x"$PERL" = xnone; then
7887   HAVE_PERL=0
7888
7889   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7890echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7891   { (exit 1); exit 1; }; }
7892else
7893   HAVE_PERL=1
7894
7895fi
7896
7897# Find a good install program.  We prefer a C program (faster),
7898# so one script is as good as another.  But avoid the broken or
7899# incompatible versions:
7900# SysV /etc/install, /usr/sbin/install
7901# SunOS /usr/etc/install
7902# IRIX /sbin/install
7903# AIX /bin/install
7904# AmigaOS /C/install, which installs bootblocks on floppy discs
7905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7908# OS/2's system install, which has a completely different semantic
7909# ./install, which can be erroneously created by make from ./install.sh.
7910{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7911echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7912if test -z "$INSTALL"; then
7913if test "${ac_cv_path_install+set}" = set; then
7914  echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  test -z "$as_dir" && as_dir=.
7921  # Account for people who put trailing slashes in PATH elements.
7922case $as_dir/ in
7923  ./ | .// | /cC/* | \
7924  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7925  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7926  /usr/ucb/* ) ;;
7927  *)
7928    # OSF1 and SCO ODT 3.0 have their own names for install.
7929    # Don't use installbsd from OSF since it installs stuff as root
7930    # by default.
7931    for ac_prog in ginstall scoinst install; do
7932      for ac_exec_ext in '' $ac_executable_extensions; do
7933	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7934	  if test $ac_prog = install &&
7935	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7936	    # AIX install.  It has an incompatible calling convention.
7937	    :
7938	  elif test $ac_prog = install &&
7939	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7940	    # program-specific install script used by HP pwplus--don't use.
7941	    :
7942	  else
7943	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7944	    break 3
7945	  fi
7946	fi
7947      done
7948    done
7949    ;;
7950esac
7951done
7952IFS=$as_save_IFS
7953
7954
7955fi
7956  if test "${ac_cv_path_install+set}" = set; then
7957    INSTALL=$ac_cv_path_install
7958  else
7959    # As a last resort, use the slow shell script.  Don't cache a
7960    # value for INSTALL within a source directory, because that will
7961    # break other packages using the cache if that directory is
7962    # removed, or if the value is a relative name.
7963    INSTALL=$ac_install_sh
7964  fi
7965fi
7966{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7967echo "${ECHO_T}$INSTALL" >&6; }
7968
7969# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7970# It thinks the first close brace ends the variable substitution.
7971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7972
7973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7974
7975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7976
7977
7978# Extract the first word of "bzip2", so it can be a program name with args.
7979set dummy bzip2; ac_word=$2
7980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982if test "${ac_cv_path_BZIP2+set}" = set; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985  case $BZIP2 in
7986  [\\/]* | ?:[\\/]*)
7987  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7988  ;;
7989  *)
7990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995  for ac_exec_ext in '' $ac_executable_extensions; do
7996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7997    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002done
8003IFS=$as_save_IFS
8004
8005  ;;
8006esac
8007fi
8008BZIP2=$ac_cv_path_BZIP2
8009if test -n "$BZIP2"; then
8010  { echo "$as_me:$LINENO: result: $BZIP2" >&5
8011echo "${ECHO_T}$BZIP2" >&6; }
8012else
8013  { echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6; }
8015fi
8016
8017
8018# Extract the first word of "doxygen", so it can be a program name with args.
8019set dummy doxygen; ac_word=$2
8020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022if test "${ac_cv_path_DOXYGEN+set}" = set; then
8023  echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025  case $DOXYGEN in
8026  [\\/]* | ?:[\\/]*)
8027  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8028  ;;
8029  *)
8030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  test -z "$as_dir" && as_dir=.
8035  for ac_exec_ext in '' $ac_executable_extensions; do
8036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8037    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042done
8043IFS=$as_save_IFS
8044
8045  ;;
8046esac
8047fi
8048DOXYGEN=$ac_cv_path_DOXYGEN
8049if test -n "$DOXYGEN"; then
8050  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8051echo "${ECHO_T}$DOXYGEN" >&6; }
8052else
8053  { echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6; }
8055fi
8056
8057
8058# Extract the first word of "groff", so it can be a program name with args.
8059set dummy groff; ac_word=$2
8060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8062if test "${ac_cv_path_GROFF+set}" = set; then
8063  echo $ECHO_N "(cached) $ECHO_C" >&6
8064else
8065  case $GROFF in
8066  [\\/]* | ?:[\\/]*)
8067  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8068  ;;
8069  *)
8070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073  IFS=$as_save_IFS
8074  test -z "$as_dir" && as_dir=.
8075  for ac_exec_ext in '' $ac_executable_extensions; do
8076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079    break 2
8080  fi
8081done
8082done
8083IFS=$as_save_IFS
8084
8085  ;;
8086esac
8087fi
8088GROFF=$ac_cv_path_GROFF
8089if test -n "$GROFF"; then
8090  { echo "$as_me:$LINENO: result: $GROFF" >&5
8091echo "${ECHO_T}$GROFF" >&6; }
8092else
8093  { echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6; }
8095fi
8096
8097
8098# Extract the first word of "gzip", so it can be a program name with args.
8099set dummy gzip; ac_word=$2
8100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8102if test "${ac_cv_path_GZIP+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  case $GZIP in
8106  [\\/]* | ?:[\\/]*)
8107  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8108  ;;
8109  *)
8110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113  IFS=$as_save_IFS
8114  test -z "$as_dir" && as_dir=.
8115  for ac_exec_ext in '' $ac_executable_extensions; do
8116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8117    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119    break 2
8120  fi
8121done
8122done
8123IFS=$as_save_IFS
8124
8125  ;;
8126esac
8127fi
8128GZIP=$ac_cv_path_GZIP
8129if test -n "$GZIP"; then
8130  { echo "$as_me:$LINENO: result: $GZIP" >&5
8131echo "${ECHO_T}$GZIP" >&6; }
8132else
8133  { echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6; }
8135fi
8136
8137
8138# Extract the first word of "pod2html", so it can be a program name with args.
8139set dummy pod2html; ac_word=$2
8140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142if test "${ac_cv_path_POD2HTML+set}" = set; then
8143  echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145  case $POD2HTML in
8146  [\\/]* | ?:[\\/]*)
8147  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8148  ;;
8149  *)
8150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155  for ac_exec_ext in '' $ac_executable_extensions; do
8156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163IFS=$as_save_IFS
8164
8165  ;;
8166esac
8167fi
8168POD2HTML=$ac_cv_path_POD2HTML
8169if test -n "$POD2HTML"; then
8170  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8171echo "${ECHO_T}$POD2HTML" >&6; }
8172else
8173  { echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6; }
8175fi
8176
8177
8178# Extract the first word of "pod2man", so it can be a program name with args.
8179set dummy pod2man; ac_word=$2
8180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_POD2MAN+set}" = set; then
8183  echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185  case $POD2MAN in
8186  [\\/]* | ?:[\\/]*)
8187  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8188  ;;
8189  *)
8190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195  for ac_exec_ext in '' $ac_executable_extensions; do
8196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202done
8203IFS=$as_save_IFS
8204
8205  ;;
8206esac
8207fi
8208POD2MAN=$ac_cv_path_POD2MAN
8209if test -n "$POD2MAN"; then
8210  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8211echo "${ECHO_T}$POD2MAN" >&6; }
8212else
8213  { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
8215fi
8216
8217
8218# Extract the first word of "runtest", so it can be a program name with args.
8219set dummy runtest; ac_word=$2
8220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222if test "${ac_cv_path_RUNTEST+set}" = set; then
8223  echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225  case $RUNTEST in
8226  [\\/]* | ?:[\\/]*)
8227  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8228  ;;
8229  *)
8230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235  for ac_exec_ext in '' $ac_executable_extensions; do
8236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242done
8243IFS=$as_save_IFS
8244
8245  ;;
8246esac
8247fi
8248RUNTEST=$ac_cv_path_RUNTEST
8249if test -n "$RUNTEST"; then
8250  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8251echo "${ECHO_T}$RUNTEST" >&6; }
8252else
8253  { echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6; }
8255fi
8256
8257
8258
8259no_itcl=true
8260{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8261echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8262
8263# Check whether --with-tclinclude was given.
8264if test "${with_tclinclude+set}" = set; then
8265  withval=$with_tclinclude; with_tclinclude=${withval}
8266else
8267  with_tclinclude=''
8268fi
8269
8270if test "${ac_cv_path_tclsh+set}" = set; then
8271  echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273
8274if test x"${with_tclinclude}" != x ; then
8275  if test -f ${with_tclinclude}/tclsh ; then
8276    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8277  elif test -f ${with_tclinclude}/src/tclsh ; then
8278    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8279  else
8280    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8281echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8282   { (exit 1); exit 1; }; }
8283  fi
8284fi
8285fi
8286
8287
8288if test x"${ac_cv_path_tclsh}" = x ; then
8289  { echo "$as_me:$LINENO: result: none" >&5
8290echo "${ECHO_T}none" >&6; }
8291  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
8292do
8293  # Extract the first word of "$ac_prog", so it can be a program name with args.
8294set dummy $ac_prog; ac_word=$2
8295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297if test "${ac_cv_path_TCLSH+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300  case $TCLSH in
8301  [\\/]* | ?:[\\/]*)
8302  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8303  ;;
8304  *)
8305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308  IFS=$as_save_IFS
8309  test -z "$as_dir" && as_dir=.
8310  for ac_exec_ext in '' $ac_executable_extensions; do
8311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8312    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314    break 2
8315  fi
8316done
8317done
8318IFS=$as_save_IFS
8319
8320  ;;
8321esac
8322fi
8323TCLSH=$ac_cv_path_TCLSH
8324if test -n "$TCLSH"; then
8325  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8326echo "${ECHO_T}$TCLSH" >&6; }
8327else
8328  { echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6; }
8330fi
8331
8332
8333  test -n "$TCLSH" && break
8334done
8335
8336  if test x"${TCLSH}" = x ; then
8337    ac_cv_path_tclsh='';
8338  else
8339    ac_cv_path_tclsh="${TCLSH}";
8340  fi
8341else
8342  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8343echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8344  TCLSH="${ac_cv_path_tclsh}"
8345
8346fi
8347
8348# Extract the first word of "zip", so it can be a program name with args.
8349set dummy zip; ac_word=$2
8350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352if test "${ac_cv_path_ZIP+set}" = set; then
8353  echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355  case $ZIP in
8356  [\\/]* | ?:[\\/]*)
8357  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8358  ;;
8359  *)
8360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363  IFS=$as_save_IFS
8364  test -z "$as_dir" && as_dir=.
8365  for ac_exec_ext in '' $ac_executable_extensions; do
8366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8367    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369    break 2
8370  fi
8371done
8372done
8373IFS=$as_save_IFS
8374
8375  ;;
8376esac
8377fi
8378ZIP=$ac_cv_path_ZIP
8379if test -n "$ZIP"; then
8380  { echo "$as_me:$LINENO: result: $ZIP" >&5
8381echo "${ECHO_T}$ZIP" >&6; }
8382else
8383  { echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6; }
8385fi
8386
8387
8388for ac_prog in ocamlc
8389do
8390  # Extract the first word of "$ac_prog", so it can be a program name with args.
8391set dummy $ac_prog; ac_word=$2
8392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394if test "${ac_cv_path_OCAMLC+set}" = set; then
8395  echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397  case $OCAMLC in
8398  [\\/]* | ?:[\\/]*)
8399  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8400  ;;
8401  *)
8402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405  IFS=$as_save_IFS
8406  test -z "$as_dir" && as_dir=.
8407  for ac_exec_ext in '' $ac_executable_extensions; do
8408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8409    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8411    break 2
8412  fi
8413done
8414done
8415IFS=$as_save_IFS
8416
8417  ;;
8418esac
8419fi
8420OCAMLC=$ac_cv_path_OCAMLC
8421if test -n "$OCAMLC"; then
8422  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8423echo "${ECHO_T}$OCAMLC" >&6; }
8424else
8425  { echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6; }
8427fi
8428
8429
8430  test -n "$OCAMLC" && break
8431done
8432
8433for ac_prog in ocamlopt
8434do
8435  # Extract the first word of "$ac_prog", so it can be a program name with args.
8436set dummy $ac_prog; ac_word=$2
8437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8440  echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442  case $OCAMLOPT in
8443  [\\/]* | ?:[\\/]*)
8444  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8445  ;;
8446  *)
8447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450  IFS=$as_save_IFS
8451  test -z "$as_dir" && as_dir=.
8452  for ac_exec_ext in '' $ac_executable_extensions; do
8453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8454    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456    break 2
8457  fi
8458done
8459done
8460IFS=$as_save_IFS
8461
8462  ;;
8463esac
8464fi
8465OCAMLOPT=$ac_cv_path_OCAMLOPT
8466if test -n "$OCAMLOPT"; then
8467  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8468echo "${ECHO_T}$OCAMLOPT" >&6; }
8469else
8470  { echo "$as_me:$LINENO: result: no" >&5
8471echo "${ECHO_T}no" >&6; }
8472fi
8473
8474
8475  test -n "$OCAMLOPT" && break
8476done
8477
8478for ac_prog in ocamldep
8479do
8480  # Extract the first word of "$ac_prog", so it can be a program name with args.
8481set dummy $ac_prog; ac_word=$2
8482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8484if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8485  echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487  case $OCAMLDEP in
8488  [\\/]* | ?:[\\/]*)
8489  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8490  ;;
8491  *)
8492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495  IFS=$as_save_IFS
8496  test -z "$as_dir" && as_dir=.
8497  for ac_exec_ext in '' $ac_executable_extensions; do
8498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8499    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501    break 2
8502  fi
8503done
8504done
8505IFS=$as_save_IFS
8506
8507  ;;
8508esac
8509fi
8510OCAMLDEP=$ac_cv_path_OCAMLDEP
8511if test -n "$OCAMLDEP"; then
8512  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8513echo "${ECHO_T}$OCAMLDEP" >&6; }
8514else
8515  { echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6; }
8517fi
8518
8519
8520  test -n "$OCAMLDEP" && break
8521done
8522
8523for ac_prog in ocamldoc
8524do
8525  # Extract the first word of "$ac_prog", so it can be a program name with args.
8526set dummy $ac_prog; ac_word=$2
8527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8529if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8530  echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532  case $OCAMLDOC in
8533  [\\/]* | ?:[\\/]*)
8534  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8535  ;;
8536  *)
8537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540  IFS=$as_save_IFS
8541  test -z "$as_dir" && as_dir=.
8542  for ac_exec_ext in '' $ac_executable_extensions; do
8543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8544    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546    break 2
8547  fi
8548done
8549done
8550IFS=$as_save_IFS
8551
8552  ;;
8553esac
8554fi
8555OCAMLDOC=$ac_cv_path_OCAMLDOC
8556if test -n "$OCAMLDOC"; then
8557  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8558echo "${ECHO_T}$OCAMLDOC" >&6; }
8559else
8560  { echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6; }
8562fi
8563
8564
8565  test -n "$OCAMLDOC" && break
8566done
8567
8568for ac_prog in gas as
8569do
8570  # Extract the first word of "$ac_prog", so it can be a program name with args.
8571set dummy $ac_prog; ac_word=$2
8572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8574if test "${ac_cv_path_GAS+set}" = set; then
8575  echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577  case $GAS in
8578  [\\/]* | ?:[\\/]*)
8579  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8580  ;;
8581  *)
8582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585  IFS=$as_save_IFS
8586  test -z "$as_dir" && as_dir=.
8587  for ac_exec_ext in '' $ac_executable_extensions; do
8588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8589    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591    break 2
8592  fi
8593done
8594done
8595IFS=$as_save_IFS
8596
8597  ;;
8598esac
8599fi
8600GAS=$ac_cv_path_GAS
8601if test -n "$GAS"; then
8602  { echo "$as_me:$LINENO: result: $GAS" >&5
8603echo "${ECHO_T}$GAS" >&6; }
8604else
8605  { echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6; }
8607fi
8608
8609
8610  test -n "$GAS" && break
8611done
8612
8613
8614{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8615echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8616if test "${llvm_cv_link_use_r+set}" = set; then
8617  echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
8619   ac_ext=c
8620ac_cpp='$CPP $CPPFLAGS'
8621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
8625  oldcflags="$CFLAGS"
8626  CFLAGS="$CFLAGS -Wl,-R."
8627  cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h.  */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h.  */
8633
8634int
8635main ()
8636{
8637
8638  ;
8639  return 0;
8640}
8641_ACEOF
8642rm -f conftest.$ac_objext conftest$ac_exeext
8643if { (ac_try="$ac_link"
8644case "(($ac_try" in
8645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646  *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649  (eval "$ac_link") 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } &&
8656	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8657  { (case "(($ac_try" in
8658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659  *) ac_try_echo=$ac_try;;
8660esac
8661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662  (eval "$ac_try") 2>&5
8663  ac_status=$?
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); }; } &&
8666	 { ac_try='test -s conftest$ac_exeext'
8667  { (case "(($ac_try" in
8668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669  *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672  (eval "$ac_try") 2>&5
8673  ac_status=$?
8674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675  (exit $ac_status); }; }; then
8676  llvm_cv_link_use_r=yes
8677else
8678  echo "$as_me: failed program was:" >&5
8679sed 's/^/| /' conftest.$ac_ext >&5
8680
8681	llvm_cv_link_use_r=no
8682fi
8683
8684rm -f core conftest.err conftest.$ac_objext \
8685      conftest$ac_exeext conftest.$ac_ext
8686  CFLAGS="$oldcflags"
8687  ac_ext=c
8688ac_cpp='$CPP $CPPFLAGS'
8689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692
8693
8694fi
8695{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8696echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8697if test "$llvm_cv_link_use_r" = yes ; then
8698
8699cat >>confdefs.h <<\_ACEOF
8700#define HAVE_LINK_R 1
8701_ACEOF
8702
8703  fi
8704
8705
8706{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8707echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8708if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8709  echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711   ac_ext=c
8712ac_cpp='$CPP $CPPFLAGS'
8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716
8717  oldcflags="$CFLAGS"
8718  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8719  cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h.  */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h.  */
8725
8726int
8727main ()
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734rm -f conftest.$ac_objext conftest$ac_exeext
8735if { (ac_try="$ac_link"
8736case "(($ac_try" in
8737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738  *) ac_try_echo=$ac_try;;
8739esac
8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741  (eval "$ac_link") 2>conftest.er1
8742  ac_status=$?
8743  grep -v '^ *+' conftest.er1 >conftest.err
8744  rm -f conftest.er1
8745  cat conftest.err >&5
8746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747  (exit $ac_status); } &&
8748	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8749  { (case "(($ac_try" in
8750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751  *) ac_try_echo=$ac_try;;
8752esac
8753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754  (eval "$ac_try") 2>&5
8755  ac_status=$?
8756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757  (exit $ac_status); }; } &&
8758	 { ac_try='test -s conftest$ac_exeext'
8759  { (case "(($ac_try" in
8760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761  *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764  (eval "$ac_try") 2>&5
8765  ac_status=$?
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); }; }; then
8768  llvm_cv_link_use_export_dynamic=yes
8769else
8770  echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773	llvm_cv_link_use_export_dynamic=no
8774fi
8775
8776rm -f core conftest.err conftest.$ac_objext \
8777      conftest$ac_exeext conftest.$ac_ext
8778  CFLAGS="$oldcflags"
8779  ac_ext=c
8780ac_cpp='$CPP $CPPFLAGS'
8781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
8785
8786fi
8787{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8788echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8789if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8790
8791cat >>confdefs.h <<\_ACEOF
8792#define HAVE_LINK_EXPORT_DYNAMIC 1
8793_ACEOF
8794
8795  fi
8796
8797
8798{ echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8799echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8800if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8801  echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803   ac_ext=c
8804ac_cpp='$CPP $CPPFLAGS'
8805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
8809  oldcflags="$CFLAGS"
8810
8811  # The following code is from the autoconf manual,
8812  # "11.13: Limitations of Usual Tools".
8813  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8814  # Use mktemp if possible; otherwise fall back on mkdir,
8815  # with $RANDOM to make collisions less likely.
8816  : ${TMPDIR=/tmp}
8817  {
8818    tmp=`
8819      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8820    ` &&
8821    test -n "$tmp" && test -d "$tmp"
8822  } || {
8823    tmp=$TMPDIR/foo$$-$RANDOM
8824    (umask 077 && mkdir "$tmp")
8825  } || exit $?
8826
8827  echo "main" > "$tmp/exports"
8828
8829  CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8830  cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h.  */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h.  */
8836
8837int
8838main ()
8839{
8840
8841  ;
8842  return 0;
8843}
8844_ACEOF
8845rm -f conftest.$ac_objext conftest$ac_exeext
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849  *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852  (eval "$ac_link") 2>conftest.er1
8853  ac_status=$?
8854  grep -v '^ *+' conftest.er1 >conftest.err
8855  rm -f conftest.er1
8856  cat conftest.err >&5
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); } &&
8859	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860  { (case "(($ac_try" in
8861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862  *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865  (eval "$ac_try") 2>&5
8866  ac_status=$?
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); }; } &&
8869	 { ac_try='test -s conftest$ac_exeext'
8870  { (case "(($ac_try" in
8871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872  *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875  (eval "$ac_try") 2>&5
8876  ac_status=$?
8877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878  (exit $ac_status); }; }; then
8879  llvm_cv_link_use_retain_symbols_file=yes
8880else
8881  echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884	llvm_cv_link_use_retain_symbols_file=no
8885fi
8886
8887rm -f core conftest.err conftest.$ac_objext \
8888      conftest$ac_exeext conftest.$ac_ext
8889  rm "$tmp/exports"
8890  rmdir "$tmp"
8891  CFLAGS="$oldcflags"
8892  ac_ext=c
8893ac_cpp='$CPP $CPPFLAGS'
8894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897
8898
8899fi
8900{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8901echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8902if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8903  HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8904
8905  fi
8906
8907
8908
8909
8910{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8911echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8912if test "${ac_cv_c_const+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h.  */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h.  */
8921
8922int
8923main ()
8924{
8925/* FIXME: Include the comments suggested by Paul. */
8926#ifndef __cplusplus
8927  /* Ultrix mips cc rejects this.  */
8928  typedef int charset[2];
8929  const charset x;
8930  /* SunOS 4.1.1 cc rejects this.  */
8931  char const *const *ccp;
8932  char **p;
8933  /* NEC SVR4.0.2 mips cc rejects this.  */
8934  struct point {int x, y;};
8935  static struct point const zero = {0,0};
8936  /* AIX XL C 1.02.0.0 rejects this.
8937     It does not let you subtract one const X* pointer from another in
8938     an arm of an if-expression whose if-part is not a constant
8939     expression */
8940  const char *g = "string";
8941  ccp = &g + (g ? g-g : 0);
8942  /* HPUX 7.0 cc rejects these. */
8943  ++ccp;
8944  p = (char**) ccp;
8945  ccp = (char const *const *) p;
8946  { /* SCO 3.2v4 cc rejects this.  */
8947    char *t;
8948    char const *s = 0 ? (char *) 0 : (char const *) 0;
8949
8950    *t++ = 0;
8951    if (s) return 0;
8952  }
8953  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8954    int x[] = {25, 17};
8955    const int *foo = &x[0];
8956    ++foo;
8957  }
8958  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8959    typedef const int *iptr;
8960    iptr p = 0;
8961    ++p;
8962  }
8963  { /* AIX XL C 1.02.0.0 rejects this saying
8964       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8965    struct s { int j; const int *ap[3]; };
8966    struct s *b; b->j = 5;
8967  }
8968  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8969    const int foo = 10;
8970    if (!foo) return 0;
8971  }
8972  return !x[0] && !zero.x;
8973#endif
8974
8975  ;
8976  return 0;
8977}
8978_ACEOF
8979rm -f conftest.$ac_objext
8980if { (ac_try="$ac_compile"
8981case "(($ac_try" in
8982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983  *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986  (eval "$ac_compile") 2>conftest.er1
8987  ac_status=$?
8988  grep -v '^ *+' conftest.er1 >conftest.err
8989  rm -f conftest.er1
8990  cat conftest.err >&5
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } &&
8993	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994  { (case "(($ac_try" in
8995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996  *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999  (eval "$ac_try") 2>&5
9000  ac_status=$?
9001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002  (exit $ac_status); }; } &&
9003	 { ac_try='test -s conftest.$ac_objext'
9004  { (case "(($ac_try" in
9005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006  *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009  (eval "$ac_try") 2>&5
9010  ac_status=$?
9011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012  (exit $ac_status); }; }; then
9013  ac_cv_c_const=yes
9014else
9015  echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
9018	ac_cv_c_const=no
9019fi
9020
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022fi
9023{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9024echo "${ECHO_T}$ac_cv_c_const" >&6; }
9025if test $ac_cv_c_const = no; then
9026
9027cat >>confdefs.h <<\_ACEOF
9028#define const
9029_ACEOF
9030
9031fi
9032
9033
9034
9035
9036
9037
9038ac_header_dirent=no
9039for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9040  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9041{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9042echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9044  echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046  cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h.  */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h.  */
9052#include <sys/types.h>
9053#include <$ac_hdr>
9054
9055int
9056main ()
9057{
9058if ((DIR *) 0)
9059return 0;
9060  ;
9061  return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext
9065if { (ac_try="$ac_compile"
9066case "(($ac_try" in
9067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068  *) ac_try_echo=$ac_try;;
9069esac
9070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071  (eval "$ac_compile") 2>conftest.er1
9072  ac_status=$?
9073  grep -v '^ *+' conftest.er1 >conftest.err
9074  rm -f conftest.er1
9075  cat conftest.err >&5
9076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); } &&
9078	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079  { (case "(($ac_try" in
9080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081  *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084  (eval "$ac_try") 2>&5
9085  ac_status=$?
9086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087  (exit $ac_status); }; } &&
9088	 { ac_try='test -s conftest.$ac_objext'
9089  { (case "(($ac_try" in
9090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091  *) ac_try_echo=$ac_try;;
9092esac
9093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094  (eval "$ac_try") 2>&5
9095  ac_status=$?
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); }; }; then
9098  eval "$as_ac_Header=yes"
9099else
9100  echo "$as_me: failed program was:" >&5
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
9103	eval "$as_ac_Header=no"
9104fi
9105
9106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107fi
9108ac_res=`eval echo '${'$as_ac_Header'}'`
9109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9110echo "${ECHO_T}$ac_res" >&6; }
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112  cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9114_ACEOF
9115
9116ac_header_dirent=$ac_hdr; break
9117fi
9118
9119done
9120# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9121if test $ac_header_dirent = dirent.h; then
9122  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9123echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9124if test "${ac_cv_search_opendir+set}" = set; then
9125  echo $ECHO_N "(cached) $ECHO_C" >&6
9126else
9127  ac_func_search_save_LIBS=$LIBS
9128cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h.  */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h.  */
9134
9135/* Override any GCC internal prototype to avoid an error.
9136   Use char because int might match the return type of a GCC
9137   builtin and then its argument prototype would still apply.  */
9138#ifdef __cplusplus
9139extern "C"
9140#endif
9141char opendir ();
9142int
9143main ()
9144{
9145return opendir ();
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150for ac_lib in '' dir; do
9151  if test -z "$ac_lib"; then
9152    ac_res="none required"
9153  else
9154    ac_res=-l$ac_lib
9155    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9156  fi
9157  rm -f conftest.$ac_objext conftest$ac_exeext
9158if { (ac_try="$ac_link"
9159case "(($ac_try" in
9160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161  *) ac_try_echo=$ac_try;;
9162esac
9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164  (eval "$ac_link") 2>conftest.er1
9165  ac_status=$?
9166  grep -v '^ *+' conftest.er1 >conftest.err
9167  rm -f conftest.er1
9168  cat conftest.err >&5
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); } &&
9171	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9172  { (case "(($ac_try" in
9173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174  *) ac_try_echo=$ac_try;;
9175esac
9176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177  (eval "$ac_try") 2>&5
9178  ac_status=$?
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); }; } &&
9181	 { ac_try='test -s conftest$ac_exeext'
9182  { (case "(($ac_try" in
9183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184  *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187  (eval "$ac_try") 2>&5
9188  ac_status=$?
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); }; }; then
9191  ac_cv_search_opendir=$ac_res
9192else
9193  echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196
9197fi
9198
9199rm -f core conftest.err conftest.$ac_objext \
9200      conftest$ac_exeext
9201  if test "${ac_cv_search_opendir+set}" = set; then
9202  break
9203fi
9204done
9205if test "${ac_cv_search_opendir+set}" = set; then
9206  :
9207else
9208  ac_cv_search_opendir=no
9209fi
9210rm conftest.$ac_ext
9211LIBS=$ac_func_search_save_LIBS
9212fi
9213{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9214echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9215ac_res=$ac_cv_search_opendir
9216if test "$ac_res" != no; then
9217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9218
9219fi
9220
9221else
9222  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9223echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9224if test "${ac_cv_search_opendir+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  ac_func_search_save_LIBS=$LIBS
9228cat >conftest.$ac_ext <<_ACEOF
9229/* confdefs.h.  */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
9233/* end confdefs.h.  */
9234
9235/* Override any GCC internal prototype to avoid an error.
9236   Use char because int might match the return type of a GCC
9237   builtin and then its argument prototype would still apply.  */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241char opendir ();
9242int
9243main ()
9244{
9245return opendir ();
9246  ;
9247  return 0;
9248}
9249_ACEOF
9250for ac_lib in '' x; do
9251  if test -z "$ac_lib"; then
9252    ac_res="none required"
9253  else
9254    ac_res=-l$ac_lib
9255    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9256  fi
9257  rm -f conftest.$ac_objext conftest$ac_exeext
9258if { (ac_try="$ac_link"
9259case "(($ac_try" in
9260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261  *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264  (eval "$ac_link") 2>conftest.er1
9265  ac_status=$?
9266  grep -v '^ *+' conftest.er1 >conftest.err
9267  rm -f conftest.er1
9268  cat conftest.err >&5
9269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270  (exit $ac_status); } &&
9271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272  { (case "(($ac_try" in
9273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274  *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277  (eval "$ac_try") 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; } &&
9281	 { ac_try='test -s conftest$ac_exeext'
9282  { (case "(($ac_try" in
9283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284  *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287  (eval "$ac_try") 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); }; }; then
9291  ac_cv_search_opendir=$ac_res
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297fi
9298
9299rm -f core conftest.err conftest.$ac_objext \
9300      conftest$ac_exeext
9301  if test "${ac_cv_search_opendir+set}" = set; then
9302  break
9303fi
9304done
9305if test "${ac_cv_search_opendir+set}" = set; then
9306  :
9307else
9308  ac_cv_search_opendir=no
9309fi
9310rm conftest.$ac_ext
9311LIBS=$ac_func_search_save_LIBS
9312fi
9313{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9314echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9315ac_res=$ac_cv_search_opendir
9316if test "$ac_res" != no; then
9317  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9318
9319fi
9320
9321fi
9322
9323
9324for ac_header in dlfcn.h
9325do
9326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331  echo $ECHO_N "(cached) $ECHO_C" >&6
9332fi
9333ac_res=`eval echo '${'$as_ac_Header'}'`
9334	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9335echo "${ECHO_T}$ac_res" >&6; }
9336else
9337  # Is the header compilable?
9338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h.  */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h.  */
9346$ac_includes_default
9347#include <$ac_header>
9348_ACEOF
9349rm -f conftest.$ac_objext
9350if { (ac_try="$ac_compile"
9351case "(($ac_try" in
9352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353  *) ac_try_echo=$ac_try;;
9354esac
9355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356  (eval "$ac_compile") 2>conftest.er1
9357  ac_status=$?
9358  grep -v '^ *+' conftest.er1 >conftest.err
9359  rm -f conftest.er1
9360  cat conftest.err >&5
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); } &&
9363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364  { (case "(($ac_try" in
9365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366  *) ac_try_echo=$ac_try;;
9367esac
9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369  (eval "$ac_try") 2>&5
9370  ac_status=$?
9371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372  (exit $ac_status); }; } &&
9373	 { ac_try='test -s conftest.$ac_objext'
9374  { (case "(($ac_try" in
9375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376  *) ac_try_echo=$ac_try;;
9377esac
9378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379  (eval "$ac_try") 2>&5
9380  ac_status=$?
9381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382  (exit $ac_status); }; }; then
9383  ac_header_compiler=yes
9384else
9385  echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388	ac_header_compiler=no
9389fi
9390
9391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393echo "${ECHO_T}$ac_header_compiler" >&6; }
9394
9395# Is the header present?
9396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h.  */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h.  */
9404#include <$ac_header>
9405_ACEOF
9406if { (ac_try="$ac_cpp conftest.$ac_ext"
9407case "(($ac_try" in
9408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409  *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9413  ac_status=$?
9414  grep -v '^ *+' conftest.er1 >conftest.err
9415  rm -f conftest.er1
9416  cat conftest.err >&5
9417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418  (exit $ac_status); } >/dev/null; then
9419  if test -s conftest.err; then
9420    ac_cpp_err=$ac_c_preproc_warn_flag
9421    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9422  else
9423    ac_cpp_err=
9424  fi
9425else
9426  ac_cpp_err=yes
9427fi
9428if test -z "$ac_cpp_err"; then
9429  ac_header_preproc=yes
9430else
9431  echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434  ac_header_preproc=no
9435fi
9436
9437rm -f conftest.err conftest.$ac_ext
9438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439echo "${ECHO_T}$ac_header_preproc" >&6; }
9440
9441# So?  What about this header?
9442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9443  yes:no: )
9444    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9448    ac_header_preproc=yes
9449    ;;
9450  no:yes:* )
9451    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9454echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9455    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9457    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9458echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9459    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9461    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9463    ( cat <<\_ASBOX
9464## ----------------------------------- ##
9465## Report this to llvmbugs@cs.uiuc.edu ##
9466## ----------------------------------- ##
9467_ASBOX
9468     ) | sed "s/^/$as_me: WARNING:     /" >&2
9469    ;;
9470esac
9471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474  echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476  eval "$as_ac_Header=\$ac_header_preproc"
9477fi
9478ac_res=`eval echo '${'$as_ac_Header'}'`
9479	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9480echo "${ECHO_T}$ac_res" >&6; }
9481
9482fi
9483if test `eval echo '${'$as_ac_Header'}'` = yes; then
9484  cat >>confdefs.h <<_ACEOF
9485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486_ACEOF
9487
9488fi
9489
9490done
9491
9492# Check whether --enable-ltdl-install was given.
9493if test "${enable_ltdl_install+set}" = set; then
9494  enableval=$enable_ltdl_install;
9495fi
9496
9497
9498
9499
9500if test x"${enable_ltdl_install-no}" != xno; then
9501  INSTALL_LTDL_TRUE=
9502  INSTALL_LTDL_FALSE='#'
9503else
9504  INSTALL_LTDL_TRUE='#'
9505  INSTALL_LTDL_FALSE=
9506fi
9507
9508
9509
9510if test x"${enable_ltdl_convenience-no}" != xno; then
9511  CONVENIENCE_LTDL_TRUE=
9512  CONVENIENCE_LTDL_FALSE='#'
9513else
9514  CONVENIENCE_LTDL_TRUE='#'
9515  CONVENIENCE_LTDL_FALSE=
9516fi
9517
9518
9519{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9520echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9521library_names_spec=
9522libname_spec='lib$name'
9523soname_spec=
9524shrext_cmds=".so"
9525postinstall_cmds=
9526postuninstall_cmds=
9527finish_cmds=
9528finish_eval=
9529shlibpath_var=
9530shlibpath_overrides_runpath=unknown
9531version_type=none
9532dynamic_linker="$host_os ld.so"
9533sys_lib_dlsearch_path_spec="/lib /usr/lib"
9534if test "$GCC" = yes; then
9535  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9536  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9537    # if the path contains ";" then we assume it to be the separator
9538    # otherwise default to the standard path separator (i.e. ":") - it is
9539    # assumed that no part of a normal pathname contains ";" but that should
9540    # okay in the real world where ";" in dirpaths is itself problematic.
9541    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9542  else
9543    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9544  fi
9545else
9546  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9547fi
9548need_lib_prefix=unknown
9549hardcode_into_libs=no
9550
9551# when you set need_version to no, make sure it does not cause -set_version
9552# flags to be left without arguments
9553need_version=unknown
9554
9555case $host_os in
9556aix3*)
9557  version_type=linux
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9559  shlibpath_var=LIBPATH
9560
9561  # AIX 3 has no versioning support, so we append a major version to the name.
9562  soname_spec='${libname}${release}${shared_ext}$major'
9563  ;;
9564
9565aix4* | aix5*)
9566  version_type=linux
9567  need_lib_prefix=no
9568  need_version=no
9569  hardcode_into_libs=yes
9570  if test "$host_cpu" = ia64; then
9571    # AIX 5 supports IA64
9572    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9573    shlibpath_var=LD_LIBRARY_PATH
9574  else
9575    # With GCC up to 2.95.x, collect2 would create an import file
9576    # for dependence libraries.  The import file would start with
9577    # the line `#! .'.  This would cause the generated library to
9578    # depend on `.', always an invalid library.  This was fixed in
9579    # development snapshots of GCC prior to 3.0.
9580    case $host_os in
9581      aix4 | aix4.[01] | aix4.[01].*)
9582      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9583	   echo ' yes '
9584	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9585	:
9586      else
9587	can_build_shared=no
9588      fi
9589      ;;
9590    esac
9591    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9592    # soname into executable. Probably we can add versioning support to
9593    # collect2, so additional links can be useful in future.
9594    if test "$aix_use_runtimelinking" = yes; then
9595      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9596      # instead of lib<name>.a to let people know that these are not
9597      # typical AIX shared libraries.
9598      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599    else
9600      # We preserve .a as extension for shared libraries through AIX4.2
9601      # and later when we are not doing run time linking.
9602      library_names_spec='${libname}${release}.a $libname.a'
9603      soname_spec='${libname}${release}${shared_ext}$major'
9604    fi
9605    shlibpath_var=LIBPATH
9606  fi
9607  ;;
9608
9609amigaos*)
9610  library_names_spec='$libname.ixlibrary $libname.a'
9611  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9612  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'
9613  ;;
9614
9615beos*)
9616  library_names_spec='${libname}${shared_ext}'
9617  dynamic_linker="$host_os ld.so"
9618  shlibpath_var=LIBRARY_PATH
9619  ;;
9620
9621bsdi[45]*)
9622  version_type=linux
9623  need_version=no
9624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625  soname_spec='${libname}${release}${shared_ext}$major'
9626  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9627  shlibpath_var=LD_LIBRARY_PATH
9628  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9629  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9630  # the default ld.so.conf also contains /usr/contrib/lib and
9631  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9632  # libtool to hard-code these into programs
9633  ;;
9634
9635cygwin* | mingw* | pw32*)
9636  version_type=windows
9637  shrext_cmds=".dll"
9638  need_version=no
9639  need_lib_prefix=no
9640
9641  case $GCC,$host_os in
9642  yes,cygwin* | yes,mingw* | yes,pw32*)
9643    library_names_spec='$libname.dll.a'
9644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9645    postinstall_cmds='base_file=`basename \${file}`~
9646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9647      dldir=$destdir/`dirname \$dlpath`~
9648      test -d \$dldir || mkdir -p \$dldir~
9649      $install_prog $dir/$dlname \$dldir/$dlname~
9650      chmod a+x \$dldir/$dlname'
9651    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9652      dlpath=$dir/\$dldll~
9653       $rm \$dlpath'
9654    shlibpath_overrides_runpath=yes
9655
9656    case $host_os in
9657    cygwin*)
9658      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9659      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9661      ;;
9662    mingw*)
9663      # MinGW DLLs use traditional 'lib' prefix
9664      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9666      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9667        # It is most probably a Windows format PATH printed by
9668        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9669        # path with ; separators, and with drive letters. We can handle the
9670        # drive letters (cygwin fileutils understands them), so leave them,
9671        # especially as we might pass files found there to a mingw objdump,
9672        # which wouldn't understand a cygwinified path. Ahh.
9673        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9674      else
9675        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9676      fi
9677      ;;
9678    pw32*)
9679      # pw32 DLLs use 'pw' prefix rather than 'lib'
9680      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9681      ;;
9682    esac
9683    ;;
9684
9685  *)
9686    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9687    ;;
9688  esac
9689  dynamic_linker='Win32 ld.exe'
9690  # FIXME: first we should search . and the directory the executable is in
9691  shlibpath_var=PATH
9692  ;;
9693
9694darwin* | rhapsody*)
9695  dynamic_linker="$host_os dyld"
9696  version_type=darwin
9697  need_lib_prefix=no
9698  need_version=no
9699  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9700  soname_spec='${libname}${release}${major}$shared_ext'
9701  shlibpath_overrides_runpath=yes
9702  shlibpath_var=DYLD_LIBRARY_PATH
9703  shrext_cmds='.dylib'
9704  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9705  if test "$GCC" = yes; then
9706    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"`
9707  else
9708    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9709  fi
9710  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9711  ;;
9712
9713dgux*)
9714  version_type=linux
9715  need_lib_prefix=no
9716  need_version=no
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  ;;
9721
9722freebsd1*)
9723  dynamic_linker=no
9724  ;;
9725
9726kfreebsd*-gnu)
9727  version_type=linux
9728  need_lib_prefix=no
9729  need_version=no
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  shlibpath_var=LD_LIBRARY_PATH
9733  shlibpath_overrides_runpath=no
9734  hardcode_into_libs=yes
9735  dynamic_linker='GNU ld.so'
9736  ;;
9737
9738freebsd* | dragonfly*)
9739  # DragonFly does not have aout.  When/if they implement a new
9740  # versioning mechanism, adjust this.
9741  if test -x /usr/bin/objformat; then
9742    objformat=`/usr/bin/objformat`
9743  else
9744    case $host_os in
9745    freebsd[123]*) objformat=aout ;;
9746    *) objformat=elf ;;
9747    esac
9748  fi
9749  version_type=freebsd-$objformat
9750  case $version_type in
9751    freebsd-elf*)
9752      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9753      need_version=no
9754      need_lib_prefix=no
9755      ;;
9756    freebsd-*)
9757      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9758      need_version=yes
9759      ;;
9760  esac
9761  shlibpath_var=LD_LIBRARY_PATH
9762  case $host_os in
9763  freebsd2*)
9764    shlibpath_overrides_runpath=yes
9765    ;;
9766  freebsd3.[01]* | freebsdelf3.[01]*)
9767    shlibpath_overrides_runpath=yes
9768    hardcode_into_libs=yes
9769    ;;
9770  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9771  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9772    shlibpath_overrides_runpath=no
9773    hardcode_into_libs=yes
9774    ;;
9775  freebsd*) # from 4.6 on
9776    shlibpath_overrides_runpath=yes
9777    hardcode_into_libs=yes
9778    ;;
9779  esac
9780  ;;
9781
9782gnu*)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  hardcode_into_libs=yes
9790  ;;
9791
9792hpux9* | hpux10* | hpux11*)
9793  # Give a soname corresponding to the major version so that dld.sl refuses to
9794  # link against other versions.
9795  version_type=sunos
9796  need_lib_prefix=no
9797  need_version=no
9798  case $host_cpu in
9799  ia64*)
9800    shrext_cmds='.so'
9801    hardcode_into_libs=yes
9802    dynamic_linker="$host_os dld.so"
9803    shlibpath_var=LD_LIBRARY_PATH
9804    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806    soname_spec='${libname}${release}${shared_ext}$major'
9807    if test "X$HPUX_IA64_MODE" = X32; then
9808      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9809    else
9810      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9811    fi
9812    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9813    ;;
9814   hppa*64*)
9815     shrext_cmds='.sl'
9816     hardcode_into_libs=yes
9817     dynamic_linker="$host_os dld.sl"
9818     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821     soname_spec='${libname}${release}${shared_ext}$major'
9822     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9824     ;;
9825   *)
9826    shrext_cmds='.sl'
9827    dynamic_linker="$host_os dld.sl"
9828    shlibpath_var=SHLIB_PATH
9829    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9830    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831    soname_spec='${libname}${release}${shared_ext}$major'
9832    ;;
9833  esac
9834  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9835  postinstall_cmds='chmod 555 $lib'
9836  ;;
9837
9838interix3*)
9839  version_type=linux
9840  need_lib_prefix=no
9841  need_version=no
9842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9843  soname_spec='${libname}${release}${shared_ext}$major'
9844  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9845  shlibpath_var=LD_LIBRARY_PATH
9846  shlibpath_overrides_runpath=no
9847  hardcode_into_libs=yes
9848  ;;
9849
9850irix5* | irix6* | nonstopux*)
9851  case $host_os in
9852    nonstopux*) version_type=nonstopux ;;
9853    *)
9854	if test "$lt_cv_prog_gnu_ld" = yes; then
9855		version_type=linux
9856	else
9857		version_type=irix
9858	fi ;;
9859  esac
9860  need_lib_prefix=no
9861  need_version=no
9862  soname_spec='${libname}${release}${shared_ext}$major'
9863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9864  case $host_os in
9865  irix5* | nonstopux*)
9866    libsuff= shlibsuff=
9867    ;;
9868  *)
9869    case $LD in # libtool.m4 will add one of these switches to LD
9870    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9871      libsuff= shlibsuff= libmagic=32-bit;;
9872    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9873      libsuff=32 shlibsuff=N32 libmagic=N32;;
9874    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9875      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9876    *) libsuff= shlibsuff= libmagic=never-match;;
9877    esac
9878    ;;
9879  esac
9880  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9881  shlibpath_overrides_runpath=no
9882  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9883  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9884  hardcode_into_libs=yes
9885  ;;
9886
9887# No shared lib support for Linux oldld, aout, or coff.
9888linux*oldld* | linux*aout* | linux*coff*)
9889  dynamic_linker=no
9890  ;;
9891
9892# This must be Linux ELF.
9893linux*)
9894  version_type=linux
9895  need_lib_prefix=no
9896  need_version=no
9897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898  soname_spec='${libname}${release}${shared_ext}$major'
9899  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9900  shlibpath_var=LD_LIBRARY_PATH
9901  shlibpath_overrides_runpath=no
9902  # This implies no fast_install, which is unacceptable.
9903  # Some rework will be needed to allow for fast_install
9904  # before this can be enabled.
9905  hardcode_into_libs=yes
9906
9907  # Append ld.so.conf contents to the search path
9908  if test -f /etc/ld.so.conf; then
9909    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' ' '`
9910    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9911  fi
9912
9913  # We used to test for /lib/ld.so.1 and disable shared libraries on
9914  # powerpc, because MkLinux only supported shared libraries with the
9915  # GNU dynamic linker.  Since this was broken with cross compilers,
9916  # most powerpc-linux boxes support dynamic linking these days and
9917  # people can always --disable-shared, the test was removed, and we
9918  # assume the GNU/Linux dynamic linker is in use.
9919  dynamic_linker='GNU/Linux ld.so'
9920  ;;
9921
9922knetbsd*-gnu)
9923  version_type=linux
9924  need_lib_prefix=no
9925  need_version=no
9926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927  soname_spec='${libname}${release}${shared_ext}$major'
9928  shlibpath_var=LD_LIBRARY_PATH
9929  shlibpath_overrides_runpath=no
9930  hardcode_into_libs=yes
9931  dynamic_linker='GNU ld.so'
9932  ;;
9933
9934netbsd*)
9935  version_type=sunos
9936  need_lib_prefix=no
9937  need_version=no
9938  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9940    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9941    dynamic_linker='NetBSD (a.out) ld.so'
9942  else
9943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944    soname_spec='${libname}${release}${shared_ext}$major'
9945    dynamic_linker='NetBSD ld.elf_so'
9946  fi
9947  shlibpath_var=LD_LIBRARY_PATH
9948  shlibpath_overrides_runpath=yes
9949  hardcode_into_libs=yes
9950  ;;
9951
9952newsos6)
9953  version_type=linux
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955  shlibpath_var=LD_LIBRARY_PATH
9956  shlibpath_overrides_runpath=yes
9957  ;;
9958
9959nto-qnx*)
9960  version_type=linux
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  shlibpath_var=LD_LIBRARY_PATH
9966  shlibpath_overrides_runpath=yes
9967  ;;
9968
9969openbsd*)
9970  version_type=sunos
9971  sys_lib_dlsearch_path_spec="/usr/lib"
9972  need_lib_prefix=no
9973  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9974  case $host_os in
9975    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9976    *)                         need_version=no  ;;
9977  esac
9978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9979  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9980  shlibpath_var=LD_LIBRARY_PATH
9981  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982    case $host_os in
9983      openbsd2.[89] | openbsd2.[89].*)
9984	shlibpath_overrides_runpath=no
9985	;;
9986      *)
9987	shlibpath_overrides_runpath=yes
9988	;;
9989      esac
9990  else
9991    shlibpath_overrides_runpath=yes
9992  fi
9993  ;;
9994
9995os2*)
9996  libname_spec='$name'
9997  shrext_cmds=".dll"
9998  need_lib_prefix=no
9999  library_names_spec='$libname${shared_ext} $libname.a'
10000  dynamic_linker='OS/2 ld.exe'
10001  shlibpath_var=LIBPATH
10002  ;;
10003
10004osf3* | osf4* | osf5*)
10005  version_type=osf
10006  need_lib_prefix=no
10007  need_version=no
10008  soname_spec='${libname}${release}${shared_ext}$major'
10009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010  shlibpath_var=LD_LIBRARY_PATH
10011  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10012  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10013  ;;
10014
10015solaris*)
10016  version_type=linux
10017  need_lib_prefix=no
10018  need_version=no
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020  soname_spec='${libname}${release}${shared_ext}$major'
10021  shlibpath_var=LD_LIBRARY_PATH
10022  shlibpath_overrides_runpath=yes
10023  hardcode_into_libs=yes
10024  # ldd complains unless libraries are executable
10025  postinstall_cmds='chmod +x $lib'
10026  ;;
10027
10028sunos4*)
10029  version_type=sunos
10030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10032  shlibpath_var=LD_LIBRARY_PATH
10033  shlibpath_overrides_runpath=yes
10034  if test "$with_gnu_ld" = yes; then
10035    need_lib_prefix=no
10036  fi
10037  need_version=yes
10038  ;;
10039
10040sysv4 | sysv4.3*)
10041  version_type=linux
10042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  case $host_vendor in
10046    sni)
10047      shlibpath_overrides_runpath=no
10048      need_lib_prefix=no
10049      export_dynamic_flag_spec='${wl}-Blargedynsym'
10050      runpath_var=LD_RUN_PATH
10051      ;;
10052    siemens)
10053      need_lib_prefix=no
10054      ;;
10055    motorola)
10056      need_lib_prefix=no
10057      need_version=no
10058      shlibpath_overrides_runpath=no
10059      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10060      ;;
10061  esac
10062  ;;
10063
10064sysv4*MP*)
10065  if test -d /usr/nec ;then
10066    version_type=linux
10067    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10068    soname_spec='$libname${shared_ext}.$major'
10069    shlibpath_var=LD_LIBRARY_PATH
10070  fi
10071  ;;
10072
10073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10074  version_type=freebsd-elf
10075  need_lib_prefix=no
10076  need_version=no
10077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078  soname_spec='${libname}${release}${shared_ext}$major'
10079  shlibpath_var=LD_LIBRARY_PATH
10080  hardcode_into_libs=yes
10081  if test "$with_gnu_ld" = yes; then
10082    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10083    shlibpath_overrides_runpath=no
10084  else
10085    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10086    shlibpath_overrides_runpath=yes
10087    case $host_os in
10088      sco3.2v5*)
10089        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10090	;;
10091    esac
10092  fi
10093  sys_lib_dlsearch_path_spec='/usr/lib'
10094  ;;
10095
10096uts4*)
10097  version_type=linux
10098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099  soname_spec='${libname}${release}${shared_ext}$major'
10100  shlibpath_var=LD_LIBRARY_PATH
10101  ;;
10102
10103*)
10104  dynamic_linker=no
10105  ;;
10106esac
10107{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10108echo "${ECHO_T}$dynamic_linker" >&6; }
10109test "$dynamic_linker" = no && can_build_shared=no
10110
10111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10112if test "$GCC" = yes; then
10113  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10114fi
10115
10116
10117{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10118echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10119if test "${libltdl_cv_shlibext+set}" = set; then
10120  echo $ECHO_N "(cached) $ECHO_C" >&6
10121else
10122
10123module=yes
10124eval libltdl_cv_shlibext=$shrext_cmds
10125
10126fi
10127{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10128echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10129if test -n "$libltdl_cv_shlibext"; then
10130
10131cat >>confdefs.h <<_ACEOF
10132#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10133_ACEOF
10134
10135fi
10136
10137
10138{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10139echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10140if test "${libltdl_cv_shlibpath_var+set}" = set; then
10141  echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143  libltdl_cv_shlibpath_var="$shlibpath_var"
10144fi
10145{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10146echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10147if test -n "$libltdl_cv_shlibpath_var"; then
10148
10149cat >>confdefs.h <<_ACEOF
10150#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10151_ACEOF
10152
10153fi
10154
10155
10156{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10157echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10158if test "${libltdl_cv_sys_search_path+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10162fi
10163{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10164echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10165if test -n "$libltdl_cv_sys_search_path"; then
10166  sys_search_path=
10167  for dir in $libltdl_cv_sys_search_path; do
10168    if test -z "$sys_search_path"; then
10169      sys_search_path="$dir"
10170    else
10171      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10172    fi
10173  done
10174
10175cat >>confdefs.h <<_ACEOF
10176#define LTDL_SYSSEARCHPATH "$sys_search_path"
10177_ACEOF
10178
10179fi
10180
10181{ echo "$as_me:$LINENO: checking for objdir" >&5
10182echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10183if test "${libltdl_cv_objdir+set}" = set; then
10184  echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186  libltdl_cv_objdir="$objdir"
10187  if test -n "$objdir"; then
10188    :
10189  else
10190    rm -f .libs 2>/dev/null
10191    mkdir .libs 2>/dev/null
10192    if test -d .libs; then
10193      libltdl_cv_objdir=.libs
10194    else
10195      # MS-DOS does not allow filenames that begin with a dot.
10196      libltdl_cv_objdir=_libs
10197    fi
10198  rmdir .libs 2>/dev/null
10199  fi
10200
10201fi
10202{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10203echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10204
10205cat >>confdefs.h <<_ACEOF
10206#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10207_ACEOF
10208
10209
10210
10211
10212
10213
10214# Check for command to grab the raw symbol name followed by C symbol from nm.
10215{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10216echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10217if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10218  echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220
10221# These are sane defaults that work on at least a few old systems.
10222# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10223
10224# Character class describing NM global symbol codes.
10225symcode='[BCDEGRST]'
10226
10227# Regexp to match symbols that can be accessed directly from C.
10228sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10229
10230# Transform an extracted symbol line into a proper C declaration
10231lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10232
10233# Transform an extracted symbol line into symbol name and symbol address
10234lt_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'"
10235
10236# Define system-specific variables.
10237case $host_os in
10238aix*)
10239  symcode='[BCDT]'
10240  ;;
10241cygwin* | mingw* | pw32*)
10242  symcode='[ABCDGISTW]'
10243  ;;
10244hpux*) # Its linker distinguishes data from code symbols
10245  if test "$host_cpu" = ia64; then
10246    symcode='[ABCDEGRST]'
10247  fi
10248  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10249  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'"
10250  ;;
10251linux*)
10252  if test "$host_cpu" = ia64; then
10253    symcode='[ABCDGIRSTW]'
10254    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10255    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'"
10256  fi
10257  ;;
10258irix* | nonstopux*)
10259  symcode='[BCDEGRST]'
10260  ;;
10261osf*)
10262  symcode='[BCDEGQRST]'
10263  ;;
10264solaris*)
10265  symcode='[BDRT]'
10266  ;;
10267sco3.2v5*)
10268  symcode='[DT]'
10269  ;;
10270sysv4.2uw2*)
10271  symcode='[DT]'
10272  ;;
10273sysv5* | sco5v6* | unixware* | OpenUNIX*)
10274  symcode='[ABDT]'
10275  ;;
10276sysv4)
10277  symcode='[DFNSTU]'
10278  ;;
10279esac
10280
10281# Handle CRLF in mingw tool chain
10282opt_cr=
10283case $build_os in
10284mingw*)
10285  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10286  ;;
10287esac
10288
10289# If we're using GNU nm, then use its standard symbol codes.
10290case `$NM -V 2>&1` in
10291*GNU* | *'with BFD'*)
10292  symcode='[ABCDGIRSTW]' ;;
10293esac
10294
10295# Try without a prefix undercore, then with it.
10296for ac_symprfx in "" "_"; do
10297
10298  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10299  symxfrm="\\1 $ac_symprfx\\2 \\2"
10300
10301  # Write the raw and C identifiers.
10302  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10303
10304  # Check to see that the pipe works correctly.
10305  pipe_works=no
10306
10307  rm -f conftest*
10308  cat > conftest.$ac_ext <<EOF
10309#ifdef __cplusplus
10310extern "C" {
10311#endif
10312char nm_test_var;
10313void nm_test_func(){}
10314#ifdef __cplusplus
10315}
10316#endif
10317int main(){nm_test_var='a';nm_test_func();return(0);}
10318EOF
10319
10320  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321  (eval $ac_compile) 2>&5
10322  ac_status=$?
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); }; then
10325    # Now try to grab the symbols.
10326    nlist=conftest.nm
10327    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10328  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); } && test -s "$nlist"; then
10332      # Try sorting and uniquifying the output.
10333      if sort "$nlist" | uniq > "$nlist"T; then
10334	mv -f "$nlist"T "$nlist"
10335      else
10336	rm -f "$nlist"T
10337      fi
10338
10339      # Make sure that we snagged all the symbols we need.
10340      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10341	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10342	  cat <<EOF > conftest.$ac_ext
10343#ifdef __cplusplus
10344extern "C" {
10345#endif
10346
10347EOF
10348	  # Now generate the symbol file.
10349	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10350
10351	  cat <<EOF >> conftest.$ac_ext
10352#if defined (__STDC__) && __STDC__
10353# define lt_ptr_t void *
10354#else
10355# define lt_ptr_t char *
10356# define const
10357#endif
10358
10359/* The mapping between symbol names and symbols. */
10360const struct {
10361  const char *name;
10362  lt_ptr_t address;
10363}
10364lt_preloaded_symbols[] =
10365{
10366EOF
10367	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10368	  cat <<\EOF >> conftest.$ac_ext
10369  {0, (lt_ptr_t) 0}
10370};
10371
10372#ifdef __cplusplus
10373}
10374#endif
10375EOF
10376	  # Now try linking the two files.
10377	  mv conftest.$ac_objext conftstm.$ac_objext
10378	  lt_save_LIBS="$LIBS"
10379	  lt_save_CFLAGS="$CFLAGS"
10380	  LIBS="conftstm.$ac_objext"
10381	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10382	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383  (eval $ac_link) 2>&5
10384  ac_status=$?
10385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10387	    pipe_works=yes
10388	  fi
10389	  LIBS="$lt_save_LIBS"
10390	  CFLAGS="$lt_save_CFLAGS"
10391	else
10392	  echo "cannot find nm_test_func in $nlist" >&5
10393	fi
10394      else
10395	echo "cannot find nm_test_var in $nlist" >&5
10396      fi
10397    else
10398      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10399    fi
10400  else
10401    echo "$progname: failed program was:" >&5
10402    cat conftest.$ac_ext >&5
10403  fi
10404  rm -f conftest* conftst*
10405
10406  # Do not use the global_symbol_pipe unless it works.
10407  if test "$pipe_works" = yes; then
10408    break
10409  else
10410    lt_cv_sys_global_symbol_pipe=
10411  fi
10412done
10413
10414fi
10415
10416if test -z "$lt_cv_sys_global_symbol_pipe"; then
10417  lt_cv_sys_global_symbol_to_cdecl=
10418fi
10419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10420  { echo "$as_me:$LINENO: result: failed" >&5
10421echo "${ECHO_T}failed" >&6; }
10422else
10423  { echo "$as_me:$LINENO: result: ok" >&5
10424echo "${ECHO_T}ok" >&6; }
10425fi
10426
10427
10428{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10429echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10430if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10431  echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10434    libltdl_cv_preloaded_symbols=yes
10435  else
10436    libltdl_cv_preloaded_symbols=no
10437  fi
10438
10439fi
10440{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10441echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10442if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10443
10444cat >>confdefs.h <<\_ACEOF
10445#define HAVE_PRELOADED_SYMBOLS 1
10446_ACEOF
10447
10448fi
10449
10450LIBADD_DL=
10451
10452ac_ext=c
10453ac_cpp='$CPP $CPPFLAGS'
10454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10456ac_compiler_gnu=$ac_cv_c_compiler_gnu
10457
10458
10459{ echo "$as_me:$LINENO: checking for shl_load" >&5
10460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10461if test "${ac_cv_func_shl_load+set}" = set; then
10462  echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464  cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h.  */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h.  */
10470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10472#define shl_load innocuous_shl_load
10473
10474/* System header to define __stub macros and hopefully few prototypes,
10475    which can conflict with char shl_load (); below.
10476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477    <limits.h> exists even on freestanding compilers.  */
10478
10479#ifdef __STDC__
10480# include <limits.h>
10481#else
10482# include <assert.h>
10483#endif
10484
10485#undef shl_load
10486
10487/* Override any GCC internal prototype to avoid an error.
10488   Use char because int might match the return type of a GCC
10489   builtin and then its argument prototype would still apply.  */
10490#ifdef __cplusplus
10491extern "C"
10492#endif
10493char shl_load ();
10494/* The GNU C library defines this for functions which it implements
10495    to always fail with ENOSYS.  Some functions are actually named
10496    something starting with __ and the normal name is an alias.  */
10497#if defined __stub_shl_load || defined __stub___shl_load
10498choke me
10499#endif
10500
10501int
10502main ()
10503{
10504return shl_load ();
10505  ;
10506  return 0;
10507}
10508_ACEOF
10509rm -f conftest.$ac_objext conftest$ac_exeext
10510if { (ac_try="$ac_link"
10511case "(($ac_try" in
10512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513  *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516  (eval "$ac_link") 2>conftest.er1
10517  ac_status=$?
10518  grep -v '^ *+' conftest.er1 >conftest.err
10519  rm -f conftest.er1
10520  cat conftest.err >&5
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); } &&
10523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524  { (case "(($ac_try" in
10525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526  *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529  (eval "$ac_try") 2>&5
10530  ac_status=$?
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); }; } &&
10533	 { ac_try='test -s conftest$ac_exeext'
10534  { (case "(($ac_try" in
10535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536  *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539  (eval "$ac_try") 2>&5
10540  ac_status=$?
10541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); }; }; then
10543  ac_cv_func_shl_load=yes
10544else
10545  echo "$as_me: failed program was:" >&5
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548	ac_cv_func_shl_load=no
10549fi
10550
10551rm -f core conftest.err conftest.$ac_objext \
10552      conftest$ac_exeext conftest.$ac_ext
10553fi
10554{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10555echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10556if test $ac_cv_func_shl_load = yes; then
10557
10558cat >>confdefs.h <<\_ACEOF
10559#define HAVE_SHL_LOAD 1
10560_ACEOF
10561
10562else
10563  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10564echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10565if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10566  echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568  ac_check_lib_save_LIBS=$LIBS
10569LIBS="-ldld  $LIBS"
10570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h.  */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h.  */
10576
10577/* Override any GCC internal prototype to avoid an error.
10578   Use char because int might match the return type of a GCC
10579   builtin and then its argument prototype would still apply.  */
10580#ifdef __cplusplus
10581extern "C"
10582#endif
10583char shl_load ();
10584int
10585main ()
10586{
10587return shl_load ();
10588  ;
10589  return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596  *) ac_try_echo=$ac_try;;
10597esac
10598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599  (eval "$ac_link") 2>conftest.er1
10600  ac_status=$?
10601  grep -v '^ *+' conftest.er1 >conftest.err
10602  rm -f conftest.er1
10603  cat conftest.err >&5
10604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605  (exit $ac_status); } &&
10606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607  { (case "(($ac_try" in
10608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609  *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612  (eval "$ac_try") 2>&5
10613  ac_status=$?
10614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615  (exit $ac_status); }; } &&
10616	 { ac_try='test -s conftest$ac_exeext'
10617  { (case "(($ac_try" in
10618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619  *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622  (eval "$ac_try") 2>&5
10623  ac_status=$?
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); }; }; then
10626  ac_cv_lib_dld_shl_load=yes
10627else
10628  echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631	ac_cv_lib_dld_shl_load=no
10632fi
10633
10634rm -f core conftest.err conftest.$ac_objext \
10635      conftest$ac_exeext conftest.$ac_ext
10636LIBS=$ac_check_lib_save_LIBS
10637fi
10638{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10639echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10640if test $ac_cv_lib_dld_shl_load = yes; then
10641
10642cat >>confdefs.h <<\_ACEOF
10643#define HAVE_SHL_LOAD 1
10644_ACEOF
10645
10646	LIBADD_DL="$LIBADD_DL -ldld"
10647else
10648  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651  echo $ECHO_N "(cached) $ECHO_C" >&6
10652else
10653  ac_check_lib_save_LIBS=$LIBS
10654LIBS="-ldl  $LIBS"
10655cat >conftest.$ac_ext <<_ACEOF
10656/* confdefs.h.  */
10657_ACEOF
10658cat confdefs.h >>conftest.$ac_ext
10659cat >>conftest.$ac_ext <<_ACEOF
10660/* end confdefs.h.  */
10661
10662/* Override any GCC internal prototype to avoid an error.
10663   Use char because int might match the return type of a GCC
10664   builtin and then its argument prototype would still apply.  */
10665#ifdef __cplusplus
10666extern "C"
10667#endif
10668char dlopen ();
10669int
10670main ()
10671{
10672return dlopen ();
10673  ;
10674  return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
10678if { (ac_try="$ac_link"
10679case "(($ac_try" in
10680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681  *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684  (eval "$ac_link") 2>conftest.er1
10685  ac_status=$?
10686  grep -v '^ *+' conftest.er1 >conftest.err
10687  rm -f conftest.er1
10688  cat conftest.err >&5
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); } &&
10691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692  { (case "(($ac_try" in
10693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694  *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697  (eval "$ac_try") 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; } &&
10701	 { ac_try='test -s conftest$ac_exeext'
10702  { (case "(($ac_try" in
10703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704  *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707  (eval "$ac_try") 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; }; then
10711  ac_cv_lib_dl_dlopen=yes
10712else
10713  echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716	ac_cv_lib_dl_dlopen=no
10717fi
10718
10719rm -f core conftest.err conftest.$ac_objext \
10720      conftest$ac_exeext conftest.$ac_ext
10721LIBS=$ac_check_lib_save_LIBS
10722fi
10723{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10725if test $ac_cv_lib_dl_dlopen = yes; then
10726
10727cat >>confdefs.h <<\_ACEOF
10728#define HAVE_LIBDL 1
10729_ACEOF
10730
10731	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10732else
10733  cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h.  */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h.  */
10739#if HAVE_DLFCN_H
10740#  include <dlfcn.h>
10741#endif
10742
10743int
10744main ()
10745{
10746dlopen(0, 0);
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751rm -f conftest.$ac_objext conftest$ac_exeext
10752if { (ac_try="$ac_link"
10753case "(($ac_try" in
10754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755  *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758  (eval "$ac_link") 2>conftest.er1
10759  ac_status=$?
10760  grep -v '^ *+' conftest.er1 >conftest.err
10761  rm -f conftest.er1
10762  cat conftest.err >&5
10763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764  (exit $ac_status); } &&
10765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766  { (case "(($ac_try" in
10767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768  *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771  (eval "$ac_try") 2>&5
10772  ac_status=$?
10773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774  (exit $ac_status); }; } &&
10775	 { ac_try='test -s conftest$ac_exeext'
10776  { (case "(($ac_try" in
10777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778  *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781  (eval "$ac_try") 2>&5
10782  ac_status=$?
10783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784  (exit $ac_status); }; }; then
10785
10786cat >>confdefs.h <<\_ACEOF
10787#define HAVE_LIBDL 1
10788_ACEOF
10789 libltdl_cv_func_dlopen="yes"
10790else
10791  echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10795echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10796if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10797  echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799  ac_check_lib_save_LIBS=$LIBS
10800LIBS="-lsvld  $LIBS"
10801cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h.  */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
10806/* end confdefs.h.  */
10807
10808/* Override any GCC internal prototype to avoid an error.
10809   Use char because int might match the return type of a GCC
10810   builtin and then its argument prototype would still apply.  */
10811#ifdef __cplusplus
10812extern "C"
10813#endif
10814char dlopen ();
10815int
10816main ()
10817{
10818return dlopen ();
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827  *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830  (eval "$ac_link") 2>conftest.er1
10831  ac_status=$?
10832  grep -v '^ *+' conftest.er1 >conftest.err
10833  rm -f conftest.er1
10834  cat conftest.err >&5
10835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836  (exit $ac_status); } &&
10837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838  { (case "(($ac_try" in
10839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840  *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843  (eval "$ac_try") 2>&5
10844  ac_status=$?
10845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846  (exit $ac_status); }; } &&
10847	 { ac_try='test -s conftest$ac_exeext'
10848  { (case "(($ac_try" in
10849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850  *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853  (eval "$ac_try") 2>&5
10854  ac_status=$?
10855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856  (exit $ac_status); }; }; then
10857  ac_cv_lib_svld_dlopen=yes
10858else
10859  echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862	ac_cv_lib_svld_dlopen=no
10863fi
10864
10865rm -f core conftest.err conftest.$ac_objext \
10866      conftest$ac_exeext conftest.$ac_ext
10867LIBS=$ac_check_lib_save_LIBS
10868fi
10869{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10870echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10871if test $ac_cv_lib_svld_dlopen = yes; then
10872
10873cat >>confdefs.h <<\_ACEOF
10874#define HAVE_LIBDL 1
10875_ACEOF
10876
10877	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10878else
10879  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10880echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10881if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10882  echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884  ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldld  $LIBS"
10886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h.  */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
10891/* end confdefs.h.  */
10892
10893/* Override any GCC internal prototype to avoid an error.
10894   Use char because int might match the return type of a GCC
10895   builtin and then its argument prototype would still apply.  */
10896#ifdef __cplusplus
10897extern "C"
10898#endif
10899char dld_link ();
10900int
10901main ()
10902{
10903return dld_link ();
10904  ;
10905  return 0;
10906}
10907_ACEOF
10908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (ac_try="$ac_link"
10910case "(($ac_try" in
10911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912  *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915  (eval "$ac_link") 2>conftest.er1
10916  ac_status=$?
10917  grep -v '^ *+' conftest.er1 >conftest.err
10918  rm -f conftest.er1
10919  cat conftest.err >&5
10920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921  (exit $ac_status); } &&
10922	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923  { (case "(($ac_try" in
10924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925  *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928  (eval "$ac_try") 2>&5
10929  ac_status=$?
10930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931  (exit $ac_status); }; } &&
10932	 { ac_try='test -s conftest$ac_exeext'
10933  { (case "(($ac_try" in
10934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935  *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938  (eval "$ac_try") 2>&5
10939  ac_status=$?
10940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941  (exit $ac_status); }; }; then
10942  ac_cv_lib_dld_dld_link=yes
10943else
10944  echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947	ac_cv_lib_dld_dld_link=no
10948fi
10949
10950rm -f core conftest.err conftest.$ac_objext \
10951      conftest$ac_exeext conftest.$ac_ext
10952LIBS=$ac_check_lib_save_LIBS
10953fi
10954{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10955echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10956if test $ac_cv_lib_dld_dld_link = yes; then
10957
10958cat >>confdefs.h <<\_ACEOF
10959#define HAVE_DLD 1
10960_ACEOF
10961
10962	 	LIBADD_DL="$LIBADD_DL -ldld"
10963else
10964  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10965echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10966if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10967  echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969  cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h.  */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h.  */
10975/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10976   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10977#define _dyld_func_lookup innocuous__dyld_func_lookup
10978
10979/* System header to define __stub macros and hopefully few prototypes,
10980    which can conflict with char _dyld_func_lookup (); below.
10981    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982    <limits.h> exists even on freestanding compilers.  */
10983
10984#ifdef __STDC__
10985# include <limits.h>
10986#else
10987# include <assert.h>
10988#endif
10989
10990#undef _dyld_func_lookup
10991
10992/* Override any GCC internal prototype to avoid an error.
10993   Use char because int might match the return type of a GCC
10994   builtin and then its argument prototype would still apply.  */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char _dyld_func_lookup ();
10999/* The GNU C library defines this for functions which it implements
11000    to always fail with ENOSYS.  Some functions are actually named
11001    something starting with __ and the normal name is an alias.  */
11002#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11003choke me
11004#endif
11005
11006int
11007main ()
11008{
11009return _dyld_func_lookup ();
11010  ;
11011  return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext conftest$ac_exeext
11015if { (ac_try="$ac_link"
11016case "(($ac_try" in
11017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018  *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021  (eval "$ac_link") 2>conftest.er1
11022  ac_status=$?
11023  grep -v '^ *+' conftest.er1 >conftest.err
11024  rm -f conftest.er1
11025  cat conftest.err >&5
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); } &&
11028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029  { (case "(($ac_try" in
11030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031  *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034  (eval "$ac_try") 2>&5
11035  ac_status=$?
11036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037  (exit $ac_status); }; } &&
11038	 { ac_try='test -s conftest$ac_exeext'
11039  { (case "(($ac_try" in
11040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041  *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044  (eval "$ac_try") 2>&5
11045  ac_status=$?
11046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047  (exit $ac_status); }; }; then
11048  ac_cv_func__dyld_func_lookup=yes
11049else
11050  echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053	ac_cv_func__dyld_func_lookup=no
11054fi
11055
11056rm -f core conftest.err conftest.$ac_objext \
11057      conftest$ac_exeext conftest.$ac_ext
11058fi
11059{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11060echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11061if test $ac_cv_func__dyld_func_lookup = yes; then
11062
11063cat >>confdefs.h <<\_ACEOF
11064#define HAVE_DYLD 1
11065_ACEOF
11066
11067fi
11068
11069
11070fi
11071
11072
11073fi
11074
11075
11076fi
11077
11078rm -f core conftest.err conftest.$ac_objext \
11079      conftest$ac_exeext conftest.$ac_ext
11080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089
11090if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11091then
11092  lt_save_LIBS="$LIBS"
11093  LIBS="$LIBS $LIBADD_DL"
11094
11095for ac_func in dlerror
11096do
11097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11101  echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103  cat >conftest.$ac_ext <<_ACEOF
11104/* confdefs.h.  */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h.  */
11109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11111#define $ac_func innocuous_$ac_func
11112
11113/* System header to define __stub macros and hopefully few prototypes,
11114    which can conflict with char $ac_func (); below.
11115    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116    <limits.h> exists even on freestanding compilers.  */
11117
11118#ifdef __STDC__
11119# include <limits.h>
11120#else
11121# include <assert.h>
11122#endif
11123
11124#undef $ac_func
11125
11126/* Override any GCC internal prototype to avoid an error.
11127   Use char because int might match the return type of a GCC
11128   builtin and then its argument prototype would still apply.  */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char $ac_func ();
11133/* The GNU C library defines this for functions which it implements
11134    to always fail with ENOSYS.  Some functions are actually named
11135    something starting with __ and the normal name is an alias.  */
11136#if defined __stub_$ac_func || defined __stub___$ac_func
11137choke me
11138#endif
11139
11140int
11141main ()
11142{
11143return $ac_func ();
11144  ;
11145  return 0;
11146}
11147_ACEOF
11148rm -f conftest.$ac_objext conftest$ac_exeext
11149if { (ac_try="$ac_link"
11150case "(($ac_try" in
11151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152  *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155  (eval "$ac_link") 2>conftest.er1
11156  ac_status=$?
11157  grep -v '^ *+' conftest.er1 >conftest.err
11158  rm -f conftest.er1
11159  cat conftest.err >&5
11160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161  (exit $ac_status); } &&
11162	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163  { (case "(($ac_try" in
11164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165  *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168  (eval "$ac_try") 2>&5
11169  ac_status=$?
11170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171  (exit $ac_status); }; } &&
11172	 { ac_try='test -s conftest$ac_exeext'
11173  { (case "(($ac_try" in
11174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175  *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178  (eval "$ac_try") 2>&5
11179  ac_status=$?
11180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181  (exit $ac_status); }; }; then
11182  eval "$as_ac_var=yes"
11183else
11184  echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187	eval "$as_ac_var=no"
11188fi
11189
11190rm -f core conftest.err conftest.$ac_objext \
11191      conftest$ac_exeext conftest.$ac_ext
11192fi
11193ac_res=`eval echo '${'$as_ac_var'}'`
11194	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11195echo "${ECHO_T}$ac_res" >&6; }
11196if test `eval echo '${'$as_ac_var'}'` = yes; then
11197  cat >>confdefs.h <<_ACEOF
11198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11199_ACEOF
11200
11201fi
11202done
11203
11204  LIBS="$lt_save_LIBS"
11205fi
11206ac_ext=c
11207ac_cpp='$CPP $CPPFLAGS'
11208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212
11213
11214{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11215echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11216if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11217  echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219  ac_cv_sys_symbol_underscore=no
11220  cat > conftest.$ac_ext <<EOF
11221void nm_test_func(){}
11222int main(){nm_test_func;return 0;}
11223EOF
11224  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225  (eval $ac_compile) 2>&5
11226  ac_status=$?
11227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228  (exit $ac_status); }; then
11229    # Now try to grab the symbols.
11230    ac_nlist=conftest.nm
11231    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11232  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11233  ac_status=$?
11234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235  (exit $ac_status); } && test -s "$ac_nlist"; then
11236      # See whether the symbols have a leading underscore.
11237      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11238        ac_cv_sys_symbol_underscore=yes
11239      else
11240        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11241	  :
11242        else
11243	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11244        fi
11245      fi
11246    else
11247      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11248    fi
11249  else
11250    echo "configure: failed program was:" >&5
11251    cat conftest.c >&5
11252  fi
11253  rm -rf conftest*
11254
11255fi
11256{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11257echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11258
11259
11260if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11261  if test x"$libltdl_cv_func_dlopen" = xyes ||
11262     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11263	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11264echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11265if test "${libltdl_cv_need_uscore+set}" = set; then
11266  echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268  libltdl_cv_need_uscore=unknown
11269          save_LIBS="$LIBS"
11270          LIBS="$LIBS $LIBADD_DL"
11271	  if test "$cross_compiling" = yes; then :
11272  libltdl_cv_need_uscore=cross
11273else
11274  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11275  lt_status=$lt_dlunknown
11276  cat > conftest.$ac_ext <<EOF
11277#line 11277 "configure"
11278#include "confdefs.h"
11279
11280#if HAVE_DLFCN_H
11281#include <dlfcn.h>
11282#endif
11283
11284#include <stdio.h>
11285
11286#ifdef RTLD_GLOBAL
11287#  define LT_DLGLOBAL		RTLD_GLOBAL
11288#else
11289#  ifdef DL_GLOBAL
11290#    define LT_DLGLOBAL		DL_GLOBAL
11291#  else
11292#    define LT_DLGLOBAL		0
11293#  endif
11294#endif
11295
11296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11297   find out it does not work in some platform. */
11298#ifndef LT_DLLAZY_OR_NOW
11299#  ifdef RTLD_LAZY
11300#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11301#  else
11302#    ifdef DL_LAZY
11303#      define LT_DLLAZY_OR_NOW		DL_LAZY
11304#    else
11305#      ifdef RTLD_NOW
11306#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11307#      else
11308#        ifdef DL_NOW
11309#          define LT_DLLAZY_OR_NOW	DL_NOW
11310#        else
11311#          define LT_DLLAZY_OR_NOW	0
11312#        endif
11313#      endif
11314#    endif
11315#  endif
11316#endif
11317
11318#ifdef __cplusplus
11319extern "C" void exit (int);
11320#endif
11321
11322void fnord() { int i=42;}
11323int main ()
11324{
11325  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11326  int status = $lt_dlunknown;
11327
11328  if (self)
11329    {
11330      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11331      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11332      /* dlclose (self); */
11333    }
11334  else
11335    puts (dlerror ());
11336
11337    exit (status);
11338}
11339EOF
11340  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341  (eval $ac_link) 2>&5
11342  ac_status=$?
11343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11345    (./conftest; exit; ) >&5 2>/dev/null
11346    lt_status=$?
11347    case x$lt_status in
11348      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11349      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11350      x$lt_dlunknown|x*)  ;;
11351    esac
11352  else :
11353    # compilation failed
11354
11355  fi
11356fi
11357rm -fr conftest*
11358
11359	  LIBS="$save_LIBS"
11360
11361fi
11362{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11363echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11364  fi
11365fi
11366
11367if test x"$libltdl_cv_need_uscore" = xyes; then
11368
11369cat >>confdefs.h <<\_ACEOF
11370#define NEED_USCORE 1
11371_ACEOF
11372
11373fi
11374
11375
11376{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11377echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11378if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11379  echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381  # PORTME does your system automatically load deplibs for dlopen?
11382  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11383  # For now, we just catch OSes we know something about -- in the
11384  # future, we'll try test this programmatically.
11385  libltdl_cv_sys_dlopen_deplibs=unknown
11386  case "$host_os" in
11387  aix3*|aix4.1.*|aix4.2.*)
11388    # Unknown whether this is true for these versions of AIX, but
11389    # we want this `case' here to explicitly catch those versions.
11390    libltdl_cv_sys_dlopen_deplibs=unknown
11391    ;;
11392  aix[45]*)
11393    libltdl_cv_sys_dlopen_deplibs=yes
11394    ;;
11395  darwin*)
11396    # Assuming the user has installed a libdl from somewhere, this is true
11397    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11398    libltdl_cv_sys_dlopen_deplibs=yes
11399    ;;
11400  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11401    # GNU and its variants, using gnu ld.so (Glibc)
11402    libltdl_cv_sys_dlopen_deplibs=yes
11403    ;;
11404  hpux10*|hpux11*)
11405    libltdl_cv_sys_dlopen_deplibs=yes
11406    ;;
11407  interix*)
11408    libltdl_cv_sys_dlopen_deplibs=yes
11409    ;;
11410  irix[12345]*|irix6.[01]*)
11411    # Catch all versions of IRIX before 6.2, and indicate that we don't
11412    # know how it worked for any of those versions.
11413    libltdl_cv_sys_dlopen_deplibs=unknown
11414    ;;
11415  irix*)
11416    # The case above catches anything before 6.2, and it's known that
11417    # at 6.2 and later dlopen does load deplibs.
11418    libltdl_cv_sys_dlopen_deplibs=yes
11419    ;;
11420  netbsd*)
11421    libltdl_cv_sys_dlopen_deplibs=yes
11422    ;;
11423  openbsd*)
11424    libltdl_cv_sys_dlopen_deplibs=yes
11425    ;;
11426  osf[1234]*)
11427    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11428    # it did *not* use an RPATH in a shared library to find objects the
11429    # library depends on, so we explictly say `no'.
11430    libltdl_cv_sys_dlopen_deplibs=no
11431    ;;
11432  osf5.0|osf5.0a|osf5.1)
11433    # dlopen *does* load deplibs and with the right loader patch applied
11434    # it even uses RPATH in a shared library to search for shared objects
11435    # that the library depends on, but there's no easy way to know if that
11436    # patch is installed.  Since this is the case, all we can really
11437    # say is unknown -- it depends on the patch being installed.  If
11438    # it is, this changes to `yes'.  Without it, it would be `no'.
11439    libltdl_cv_sys_dlopen_deplibs=unknown
11440    ;;
11441  osf*)
11442    # the two cases above should catch all versions of osf <= 5.1.  Read
11443    # the comments above for what we know about them.
11444    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11445    # is used to find them so we can finally say `yes'.
11446    libltdl_cv_sys_dlopen_deplibs=yes
11447    ;;
11448  solaris*)
11449    libltdl_cv_sys_dlopen_deplibs=yes
11450    ;;
11451  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11452    libltdl_cv_sys_dlopen_deplibs=yes
11453    ;;
11454  esac
11455
11456fi
11457{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11458echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11459if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11460
11461cat >>confdefs.h <<\_ACEOF
11462#define LTDL_DLOPEN_DEPLIBS 1
11463_ACEOF
11464
11465fi
11466
11467
11468for ac_header in argz.h
11469do
11470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475  echo $ECHO_N "(cached) $ECHO_C" >&6
11476fi
11477ac_res=`eval echo '${'$as_ac_Header'}'`
11478	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480else
11481  # Is the header compilable?
11482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h.  */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h.  */
11490$ac_includes_default
11491#include <$ac_header>
11492_ACEOF
11493rm -f conftest.$ac_objext
11494if { (ac_try="$ac_compile"
11495case "(($ac_try" in
11496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497  *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500  (eval "$ac_compile") 2>conftest.er1
11501  ac_status=$?
11502  grep -v '^ *+' conftest.er1 >conftest.err
11503  rm -f conftest.er1
11504  cat conftest.err >&5
11505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506  (exit $ac_status); } &&
11507	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508  { (case "(($ac_try" in
11509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510  *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513  (eval "$ac_try") 2>&5
11514  ac_status=$?
11515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516  (exit $ac_status); }; } &&
11517	 { ac_try='test -s conftest.$ac_objext'
11518  { (case "(($ac_try" in
11519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520  *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523  (eval "$ac_try") 2>&5
11524  ac_status=$?
11525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526  (exit $ac_status); }; }; then
11527  ac_header_compiler=yes
11528else
11529  echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532	ac_header_compiler=no
11533fi
11534
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537echo "${ECHO_T}$ac_header_compiler" >&6; }
11538
11539# Is the header present?
11540{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h.  */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h.  */
11548#include <$ac_header>
11549_ACEOF
11550if { (ac_try="$ac_cpp conftest.$ac_ext"
11551case "(($ac_try" in
11552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553  *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557  ac_status=$?
11558  grep -v '^ *+' conftest.er1 >conftest.err
11559  rm -f conftest.er1
11560  cat conftest.err >&5
11561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562  (exit $ac_status); } >/dev/null; then
11563  if test -s conftest.err; then
11564    ac_cpp_err=$ac_c_preproc_warn_flag
11565    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566  else
11567    ac_cpp_err=
11568  fi
11569else
11570  ac_cpp_err=yes
11571fi
11572if test -z "$ac_cpp_err"; then
11573  ac_header_preproc=yes
11574else
11575  echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578  ac_header_preproc=no
11579fi
11580
11581rm -f conftest.err conftest.$ac_ext
11582{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583echo "${ECHO_T}$ac_header_preproc" >&6; }
11584
11585# So?  What about this header?
11586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587  yes:no: )
11588    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592    ac_header_preproc=yes
11593    ;;
11594  no:yes:* )
11595    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11598echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11599    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11602echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11603    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607    ( cat <<\_ASBOX
11608## ----------------------------------- ##
11609## Report this to llvmbugs@cs.uiuc.edu ##
11610## ----------------------------------- ##
11611_ASBOX
11612     ) | sed "s/^/$as_me: WARNING:     /" >&2
11613    ;;
11614esac
11615{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618  echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620  eval "$as_ac_Header=\$ac_header_preproc"
11621fi
11622ac_res=`eval echo '${'$as_ac_Header'}'`
11623	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11624echo "${ECHO_T}$ac_res" >&6; }
11625
11626fi
11627if test `eval echo '${'$as_ac_Header'}'` = yes; then
11628  cat >>confdefs.h <<_ACEOF
11629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11630_ACEOF
11631
11632fi
11633
11634done
11635
11636
11637{ echo "$as_me:$LINENO: checking for error_t" >&5
11638echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11639if test "${ac_cv_type_error_t+set}" = set; then
11640  echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642  cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h.  */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h.  */
11648#if HAVE_ARGZ_H
11649#  include <argz.h>
11650#endif
11651
11652typedef error_t ac__type_new_;
11653int
11654main ()
11655{
11656if ((ac__type_new_ *) 0)
11657  return 0;
11658if (sizeof (ac__type_new_))
11659  return 0;
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext
11665if { (ac_try="$ac_compile"
11666case "(($ac_try" in
11667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668  *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671  (eval "$ac_compile") 2>conftest.er1
11672  ac_status=$?
11673  grep -v '^ *+' conftest.er1 >conftest.err
11674  rm -f conftest.er1
11675  cat conftest.err >&5
11676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677  (exit $ac_status); } &&
11678	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679  { (case "(($ac_try" in
11680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681  *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684  (eval "$ac_try") 2>&5
11685  ac_status=$?
11686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687  (exit $ac_status); }; } &&
11688	 { ac_try='test -s conftest.$ac_objext'
11689  { (case "(($ac_try" in
11690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691  *) ac_try_echo=$ac_try;;
11692esac
11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694  (eval "$ac_try") 2>&5
11695  ac_status=$?
11696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697  (exit $ac_status); }; }; then
11698  ac_cv_type_error_t=yes
11699else
11700  echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703	ac_cv_type_error_t=no
11704fi
11705
11706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707fi
11708{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11709echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11710if test $ac_cv_type_error_t = yes; then
11711
11712cat >>confdefs.h <<_ACEOF
11713#define HAVE_ERROR_T 1
11714_ACEOF
11715
11716
11717else
11718
11719cat >>confdefs.h <<\_ACEOF
11720#define error_t int
11721_ACEOF
11722
11723fi
11724
11725
11726
11727
11728
11729
11730
11731for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11732do
11733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737  echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739  cat >conftest.$ac_ext <<_ACEOF
11740/* confdefs.h.  */
11741_ACEOF
11742cat confdefs.h >>conftest.$ac_ext
11743cat >>conftest.$ac_ext <<_ACEOF
11744/* end confdefs.h.  */
11745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11747#define $ac_func innocuous_$ac_func
11748
11749/* System header to define __stub macros and hopefully few prototypes,
11750    which can conflict with char $ac_func (); below.
11751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752    <limits.h> exists even on freestanding compilers.  */
11753
11754#ifdef __STDC__
11755# include <limits.h>
11756#else
11757# include <assert.h>
11758#endif
11759
11760#undef $ac_func
11761
11762/* Override any GCC internal prototype to avoid an error.
11763   Use char because int might match the return type of a GCC
11764   builtin and then its argument prototype would still apply.  */
11765#ifdef __cplusplus
11766extern "C"
11767#endif
11768char $ac_func ();
11769/* The GNU C library defines this for functions which it implements
11770    to always fail with ENOSYS.  Some functions are actually named
11771    something starting with __ and the normal name is an alias.  */
11772#if defined __stub_$ac_func || defined __stub___$ac_func
11773choke me
11774#endif
11775
11776int
11777main ()
11778{
11779return $ac_func ();
11780  ;
11781  return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (ac_try="$ac_link"
11786case "(($ac_try" in
11787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788  *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791  (eval "$ac_link") 2>conftest.er1
11792  ac_status=$?
11793  grep -v '^ *+' conftest.er1 >conftest.err
11794  rm -f conftest.er1
11795  cat conftest.err >&5
11796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797  (exit $ac_status); } &&
11798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799  { (case "(($ac_try" in
11800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801  *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804  (eval "$ac_try") 2>&5
11805  ac_status=$?
11806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807  (exit $ac_status); }; } &&
11808	 { ac_try='test -s conftest$ac_exeext'
11809  { (case "(($ac_try" in
11810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811  *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814  (eval "$ac_try") 2>&5
11815  ac_status=$?
11816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817  (exit $ac_status); }; }; then
11818  eval "$as_ac_var=yes"
11819else
11820  echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823	eval "$as_ac_var=no"
11824fi
11825
11826rm -f core conftest.err conftest.$ac_objext \
11827      conftest$ac_exeext conftest.$ac_ext
11828fi
11829ac_res=`eval echo '${'$as_ac_var'}'`
11830	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11831echo "${ECHO_T}$ac_res" >&6; }
11832if test `eval echo '${'$as_ac_var'}'` = yes; then
11833  cat >>confdefs.h <<_ACEOF
11834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11835_ACEOF
11836
11837fi
11838done
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11868		  stdio.h unistd.h
11869do
11870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875  echo $ECHO_N "(cached) $ECHO_C" >&6
11876fi
11877ac_res=`eval echo '${'$as_ac_Header'}'`
11878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11879echo "${ECHO_T}$ac_res" >&6; }
11880else
11881  # Is the header compilable?
11882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11884cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h.  */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h.  */
11890$ac_includes_default
11891#include <$ac_header>
11892_ACEOF
11893rm -f conftest.$ac_objext
11894if { (ac_try="$ac_compile"
11895case "(($ac_try" in
11896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897  *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900  (eval "$ac_compile") 2>conftest.er1
11901  ac_status=$?
11902  grep -v '^ *+' conftest.er1 >conftest.err
11903  rm -f conftest.er1
11904  cat conftest.err >&5
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); } &&
11907	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908  { (case "(($ac_try" in
11909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910  *) ac_try_echo=$ac_try;;
11911esac
11912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913  (eval "$ac_try") 2>&5
11914  ac_status=$?
11915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916  (exit $ac_status); }; } &&
11917	 { ac_try='test -s conftest.$ac_objext'
11918  { (case "(($ac_try" in
11919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920  *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923  (eval "$ac_try") 2>&5
11924  ac_status=$?
11925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926  (exit $ac_status); }; }; then
11927  ac_header_compiler=yes
11928else
11929  echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932	ac_header_compiler=no
11933fi
11934
11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937echo "${ECHO_T}$ac_header_compiler" >&6; }
11938
11939# Is the header present?
11940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11942cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h.  */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h.  */
11948#include <$ac_header>
11949_ACEOF
11950if { (ac_try="$ac_cpp conftest.$ac_ext"
11951case "(($ac_try" in
11952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953  *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957  ac_status=$?
11958  grep -v '^ *+' conftest.er1 >conftest.err
11959  rm -f conftest.er1
11960  cat conftest.err >&5
11961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962  (exit $ac_status); } >/dev/null; then
11963  if test -s conftest.err; then
11964    ac_cpp_err=$ac_c_preproc_warn_flag
11965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966  else
11967    ac_cpp_err=
11968  fi
11969else
11970  ac_cpp_err=yes
11971fi
11972if test -z "$ac_cpp_err"; then
11973  ac_header_preproc=yes
11974else
11975  echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978  ac_header_preproc=no
11979fi
11980
11981rm -f conftest.err conftest.$ac_ext
11982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11983echo "${ECHO_T}$ac_header_preproc" >&6; }
11984
11985# So?  What about this header?
11986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987  yes:no: )
11988    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11992    ac_header_preproc=yes
11993    ;;
11994  no:yes:* )
11995    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11997    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11998echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11999    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12001    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12002echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12003    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12005    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007    ( cat <<\_ASBOX
12008## ----------------------------------- ##
12009## Report this to llvmbugs@cs.uiuc.edu ##
12010## ----------------------------------- ##
12011_ASBOX
12012     ) | sed "s/^/$as_me: WARNING:     /" >&2
12013    ;;
12014esac
12015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018  echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020  eval "$as_ac_Header=\$ac_header_preproc"
12021fi
12022ac_res=`eval echo '${'$as_ac_Header'}'`
12023	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12024echo "${ECHO_T}$ac_res" >&6; }
12025
12026fi
12027if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028  cat >>confdefs.h <<_ACEOF
12029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030_ACEOF
12031
12032fi
12033
12034done
12035
12036
12037
12038
12039
12040for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12041do
12042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12044  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047  echo $ECHO_N "(cached) $ECHO_C" >&6
12048fi
12049ac_res=`eval echo '${'$as_ac_Header'}'`
12050	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12051echo "${ECHO_T}$ac_res" >&6; }
12052else
12053  # Is the header compilable?
12054{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12056cat >conftest.$ac_ext <<_ACEOF
12057/* confdefs.h.  */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h.  */
12062$ac_includes_default
12063#include <$ac_header>
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (ac_try="$ac_compile"
12067case "(($ac_try" in
12068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069  *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072  (eval "$ac_compile") 2>conftest.er1
12073  ac_status=$?
12074  grep -v '^ *+' conftest.er1 >conftest.err
12075  rm -f conftest.er1
12076  cat conftest.err >&5
12077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078  (exit $ac_status); } &&
12079	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080  { (case "(($ac_try" in
12081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082  *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085  (eval "$ac_try") 2>&5
12086  ac_status=$?
12087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088  (exit $ac_status); }; } &&
12089	 { ac_try='test -s conftest.$ac_objext'
12090  { (case "(($ac_try" in
12091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092  *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095  (eval "$ac_try") 2>&5
12096  ac_status=$?
12097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098  (exit $ac_status); }; }; then
12099  ac_header_compiler=yes
12100else
12101  echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104	ac_header_compiler=no
12105fi
12106
12107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12109echo "${ECHO_T}$ac_header_compiler" >&6; }
12110
12111# Is the header present?
12112{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12114cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h.  */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h.  */
12120#include <$ac_header>
12121_ACEOF
12122if { (ac_try="$ac_cpp conftest.$ac_ext"
12123case "(($ac_try" in
12124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125  *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12129  ac_status=$?
12130  grep -v '^ *+' conftest.er1 >conftest.err
12131  rm -f conftest.er1
12132  cat conftest.err >&5
12133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134  (exit $ac_status); } >/dev/null; then
12135  if test -s conftest.err; then
12136    ac_cpp_err=$ac_c_preproc_warn_flag
12137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12138  else
12139    ac_cpp_err=
12140  fi
12141else
12142  ac_cpp_err=yes
12143fi
12144if test -z "$ac_cpp_err"; then
12145  ac_header_preproc=yes
12146else
12147  echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150  ac_header_preproc=no
12151fi
12152
12153rm -f conftest.err conftest.$ac_ext
12154{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12155echo "${ECHO_T}$ac_header_preproc" >&6; }
12156
12157# So?  What about this header?
12158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12159  yes:no: )
12160    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12162    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12164    ac_header_preproc=yes
12165    ;;
12166  no:yes:* )
12167    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12169    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12170echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12171    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12173    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12174echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12177    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12179    ( cat <<\_ASBOX
12180## ----------------------------------- ##
12181## Report this to llvmbugs@cs.uiuc.edu ##
12182## ----------------------------------- ##
12183_ASBOX
12184     ) | sed "s/^/$as_me: WARNING:     /" >&2
12185    ;;
12186esac
12187{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192  eval "$as_ac_Header=\$ac_header_preproc"
12193fi
12194ac_res=`eval echo '${'$as_ac_Header'}'`
12195	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12196echo "${ECHO_T}$ac_res" >&6; }
12197
12198fi
12199if test `eval echo '${'$as_ac_Header'}'` = yes; then
12200  cat >>confdefs.h <<_ACEOF
12201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12202_ACEOF
12203
12204fi
12205
12206done
12207
12208
12209
12210for ac_header in string.h strings.h
12211do
12212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217  echo $ECHO_N "(cached) $ECHO_C" >&6
12218fi
12219ac_res=`eval echo '${'$as_ac_Header'}'`
12220	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12221echo "${ECHO_T}$ac_res" >&6; }
12222else
12223  # Is the header compilable?
12224{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12226cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h.  */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h.  */
12232$ac_includes_default
12233#include <$ac_header>
12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (ac_try="$ac_compile"
12237case "(($ac_try" in
12238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239  *) ac_try_echo=$ac_try;;
12240esac
12241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242  (eval "$ac_compile") 2>conftest.er1
12243  ac_status=$?
12244  grep -v '^ *+' conftest.er1 >conftest.err
12245  rm -f conftest.er1
12246  cat conftest.err >&5
12247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248  (exit $ac_status); } &&
12249	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250  { (case "(($ac_try" in
12251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252  *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255  (eval "$ac_try") 2>&5
12256  ac_status=$?
12257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258  (exit $ac_status); }; } &&
12259	 { ac_try='test -s conftest.$ac_objext'
12260  { (case "(($ac_try" in
12261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262  *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265  (eval "$ac_try") 2>&5
12266  ac_status=$?
12267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268  (exit $ac_status); }; }; then
12269  ac_header_compiler=yes
12270else
12271  echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274	ac_header_compiler=no
12275fi
12276
12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279echo "${ECHO_T}$ac_header_compiler" >&6; }
12280
12281# Is the header present?
12282{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12284cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h.  */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h.  */
12290#include <$ac_header>
12291_ACEOF
12292if { (ac_try="$ac_cpp conftest.$ac_ext"
12293case "(($ac_try" in
12294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295  *) ac_try_echo=$ac_try;;
12296esac
12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12299  ac_status=$?
12300  grep -v '^ *+' conftest.er1 >conftest.err
12301  rm -f conftest.er1
12302  cat conftest.err >&5
12303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304  (exit $ac_status); } >/dev/null; then
12305  if test -s conftest.err; then
12306    ac_cpp_err=$ac_c_preproc_warn_flag
12307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12308  else
12309    ac_cpp_err=
12310  fi
12311else
12312  ac_cpp_err=yes
12313fi
12314if test -z "$ac_cpp_err"; then
12315  ac_header_preproc=yes
12316else
12317  echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320  ac_header_preproc=no
12321fi
12322
12323rm -f conftest.err conftest.$ac_ext
12324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12325echo "${ECHO_T}$ac_header_preproc" >&6; }
12326
12327# So?  What about this header?
12328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12329  yes:no: )
12330    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12332    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12334    ac_header_preproc=yes
12335    ;;
12336  no:yes:* )
12337    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12339    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12340echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12341    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12343    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12344echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12347    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12349    ( cat <<\_ASBOX
12350## ----------------------------------- ##
12351## Report this to llvmbugs@cs.uiuc.edu ##
12352## ----------------------------------- ##
12353_ASBOX
12354     ) | sed "s/^/$as_me: WARNING:     /" >&2
12355    ;;
12356esac
12357{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360  echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362  eval "$as_ac_Header=\$ac_header_preproc"
12363fi
12364ac_res=`eval echo '${'$as_ac_Header'}'`
12365	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12366echo "${ECHO_T}$ac_res" >&6; }
12367
12368fi
12369if test `eval echo '${'$as_ac_Header'}'` = yes; then
12370  cat >>confdefs.h <<_ACEOF
12371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12372_ACEOF
12373 break
12374fi
12375
12376done
12377
12378
12379
12380
12381for ac_func in strchr index
12382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387  echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389  cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h.  */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h.  */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12397#define $ac_func innocuous_$ac_func
12398
12399/* System header to define __stub macros and hopefully few prototypes,
12400    which can conflict with char $ac_func (); below.
12401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402    <limits.h> exists even on freestanding compilers.  */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
12412/* Override any GCC internal prototype to avoid an error.
12413   Use char because int might match the return type of a GCC
12414   builtin and then its argument prototype would still apply.  */
12415#ifdef __cplusplus
12416extern "C"
12417#endif
12418char $ac_func ();
12419/* The GNU C library defines this for functions which it implements
12420    to always fail with ENOSYS.  Some functions are actually named
12421    something starting with __ and the normal name is an alias.  */
12422#if defined __stub_$ac_func || defined __stub___$ac_func
12423choke me
12424#endif
12425
12426int
12427main ()
12428{
12429return $ac_func ();
12430  ;
12431  return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438  *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441  (eval "$ac_link") 2>conftest.er1
12442  ac_status=$?
12443  grep -v '^ *+' conftest.er1 >conftest.err
12444  rm -f conftest.er1
12445  cat conftest.err >&5
12446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447  (exit $ac_status); } &&
12448	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449  { (case "(($ac_try" in
12450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451  *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454  (eval "$ac_try") 2>&5
12455  ac_status=$?
12456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457  (exit $ac_status); }; } &&
12458	 { ac_try='test -s conftest$ac_exeext'
12459  { (case "(($ac_try" in
12460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461  *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464  (eval "$ac_try") 2>&5
12465  ac_status=$?
12466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467  (exit $ac_status); }; }; then
12468  eval "$as_ac_var=yes"
12469else
12470  echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473	eval "$as_ac_var=no"
12474fi
12475
12476rm -f core conftest.err conftest.$ac_objext \
12477      conftest$ac_exeext conftest.$ac_ext
12478fi
12479ac_res=`eval echo '${'$as_ac_var'}'`
12480	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
12482if test `eval echo '${'$as_ac_var'}'` = yes; then
12483  cat >>confdefs.h <<_ACEOF
12484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485_ACEOF
12486 break
12487fi
12488done
12489
12490
12491
12492for ac_func in strrchr rindex
12493do
12494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498  echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500  cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h.  */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h.  */
12506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12508#define $ac_func innocuous_$ac_func
12509
12510/* System header to define __stub macros and hopefully few prototypes,
12511    which can conflict with char $ac_func (); below.
12512    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513    <limits.h> exists even on freestanding compilers.  */
12514
12515#ifdef __STDC__
12516# include <limits.h>
12517#else
12518# include <assert.h>
12519#endif
12520
12521#undef $ac_func
12522
12523/* Override any GCC internal prototype to avoid an error.
12524   Use char because int might match the return type of a GCC
12525   builtin and then its argument prototype would still apply.  */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529char $ac_func ();
12530/* The GNU C library defines this for functions which it implements
12531    to always fail with ENOSYS.  Some functions are actually named
12532    something starting with __ and the normal name is an alias.  */
12533#if defined __stub_$ac_func || defined __stub___$ac_func
12534choke me
12535#endif
12536
12537int
12538main ()
12539{
12540return $ac_func ();
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549  *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552  (eval "$ac_link") 2>conftest.er1
12553  ac_status=$?
12554  grep -v '^ *+' conftest.er1 >conftest.err
12555  rm -f conftest.er1
12556  cat conftest.err >&5
12557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558  (exit $ac_status); } &&
12559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560  { (case "(($ac_try" in
12561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562  *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565  (eval "$ac_try") 2>&5
12566  ac_status=$?
12567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568  (exit $ac_status); }; } &&
12569	 { ac_try='test -s conftest$ac_exeext'
12570  { (case "(($ac_try" in
12571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572  *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575  (eval "$ac_try") 2>&5
12576  ac_status=$?
12577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578  (exit $ac_status); }; }; then
12579  eval "$as_ac_var=yes"
12580else
12581  echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584	eval "$as_ac_var=no"
12585fi
12586
12587rm -f core conftest.err conftest.$ac_objext \
12588      conftest$ac_exeext conftest.$ac_ext
12589fi
12590ac_res=`eval echo '${'$as_ac_var'}'`
12591	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12592echo "${ECHO_T}$ac_res" >&6; }
12593if test `eval echo '${'$as_ac_var'}'` = yes; then
12594  cat >>confdefs.h <<_ACEOF
12595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596_ACEOF
12597 break
12598fi
12599done
12600
12601
12602
12603for ac_func in memcpy bcopy
12604do
12605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609  echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611  cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h.  */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h.  */
12617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12619#define $ac_func innocuous_$ac_func
12620
12621/* System header to define __stub macros and hopefully few prototypes,
12622    which can conflict with char $ac_func (); below.
12623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624    <limits.h> exists even on freestanding compilers.  */
12625
12626#ifdef __STDC__
12627# include <limits.h>
12628#else
12629# include <assert.h>
12630#endif
12631
12632#undef $ac_func
12633
12634/* Override any GCC internal prototype to avoid an error.
12635   Use char because int might match the return type of a GCC
12636   builtin and then its argument prototype would still apply.  */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char $ac_func ();
12641/* The GNU C library defines this for functions which it implements
12642    to always fail with ENOSYS.  Some functions are actually named
12643    something starting with __ and the normal name is an alias.  */
12644#if defined __stub_$ac_func || defined __stub___$ac_func
12645choke me
12646#endif
12647
12648int
12649main ()
12650{
12651return $ac_func ();
12652  ;
12653  return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (ac_try="$ac_link"
12658case "(($ac_try" in
12659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660  *) ac_try_echo=$ac_try;;
12661esac
12662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663  (eval "$ac_link") 2>conftest.er1
12664  ac_status=$?
12665  grep -v '^ *+' conftest.er1 >conftest.err
12666  rm -f conftest.er1
12667  cat conftest.err >&5
12668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669  (exit $ac_status); } &&
12670	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671  { (case "(($ac_try" in
12672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673  *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676  (eval "$ac_try") 2>&5
12677  ac_status=$?
12678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679  (exit $ac_status); }; } &&
12680	 { ac_try='test -s conftest$ac_exeext'
12681  { (case "(($ac_try" in
12682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683  *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686  (eval "$ac_try") 2>&5
12687  ac_status=$?
12688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689  (exit $ac_status); }; }; then
12690  eval "$as_ac_var=yes"
12691else
12692  echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695	eval "$as_ac_var=no"
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext \
12699      conftest$ac_exeext conftest.$ac_ext
12700fi
12701ac_res=`eval echo '${'$as_ac_var'}'`
12702	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12703echo "${ECHO_T}$ac_res" >&6; }
12704if test `eval echo '${'$as_ac_var'}'` = yes; then
12705  cat >>confdefs.h <<_ACEOF
12706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707_ACEOF
12708 break
12709fi
12710done
12711
12712
12713
12714for ac_func in memmove strcmp
12715do
12716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12720  echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722  cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h.  */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h.  */
12728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12730#define $ac_func innocuous_$ac_func
12731
12732/* System header to define __stub macros and hopefully few prototypes,
12733    which can conflict with char $ac_func (); below.
12734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735    <limits.h> exists even on freestanding compilers.  */
12736
12737#ifdef __STDC__
12738# include <limits.h>
12739#else
12740# include <assert.h>
12741#endif
12742
12743#undef $ac_func
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 $ac_func ();
12752/* The GNU C library defines this for functions which it implements
12753    to always fail with ENOSYS.  Some functions are actually named
12754    something starting with __ and the normal name is an alias.  */
12755#if defined __stub_$ac_func || defined __stub___$ac_func
12756choke me
12757#endif
12758
12759int
12760main ()
12761{
12762return $ac_func ();
12763  ;
12764  return 0;
12765}
12766_ACEOF
12767rm -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  eval "$as_ac_var=yes"
12802else
12803  echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806	eval "$as_ac_var=no"
12807fi
12808
12809rm -f core conftest.err conftest.$ac_objext \
12810      conftest$ac_exeext conftest.$ac_ext
12811fi
12812ac_res=`eval echo '${'$as_ac_var'}'`
12813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12814echo "${ECHO_T}$ac_res" >&6; }
12815if test `eval echo '${'$as_ac_var'}'` = yes; then
12816  cat >>confdefs.h <<_ACEOF
12817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12818_ACEOF
12819
12820fi
12821done
12822
12823
12824
12825
12826for ac_func in closedir opendir readdir
12827do
12828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12832  echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834  cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h.  */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h.  */
12840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12842#define $ac_func innocuous_$ac_func
12843
12844/* System header to define __stub macros and hopefully few prototypes,
12845    which can conflict with char $ac_func (); below.
12846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12847    <limits.h> exists even on freestanding compilers.  */
12848
12849#ifdef __STDC__
12850# include <limits.h>
12851#else
12852# include <assert.h>
12853#endif
12854
12855#undef $ac_func
12856
12857/* Override any GCC internal prototype to avoid an error.
12858   Use char because int might match the return type of a GCC
12859   builtin and then its argument prototype would still apply.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char $ac_func ();
12864/* The GNU C library defines this for functions which it implements
12865    to always fail with ENOSYS.  Some functions are actually named
12866    something starting with __ and the normal name is an alias.  */
12867#if defined __stub_$ac_func || defined __stub___$ac_func
12868choke me
12869#endif
12870
12871int
12872main ()
12873{
12874return $ac_func ();
12875  ;
12876  return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext conftest$ac_exeext
12880if { (ac_try="$ac_link"
12881case "(($ac_try" in
12882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883  *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886  (eval "$ac_link") 2>conftest.er1
12887  ac_status=$?
12888  grep -v '^ *+' conftest.er1 >conftest.err
12889  rm -f conftest.er1
12890  cat conftest.err >&5
12891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892  (exit $ac_status); } &&
12893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894  { (case "(($ac_try" in
12895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896  *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899  (eval "$ac_try") 2>&5
12900  ac_status=$?
12901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902  (exit $ac_status); }; } &&
12903	 { ac_try='test -s conftest$ac_exeext'
12904  { (case "(($ac_try" in
12905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906  *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909  (eval "$ac_try") 2>&5
12910  ac_status=$?
12911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912  (exit $ac_status); }; }; then
12913  eval "$as_ac_var=yes"
12914else
12915  echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918	eval "$as_ac_var=no"
12919fi
12920
12921rm -f core conftest.err conftest.$ac_objext \
12922      conftest$ac_exeext conftest.$ac_ext
12923fi
12924ac_res=`eval echo '${'$as_ac_var'}'`
12925	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12926echo "${ECHO_T}$ac_res" >&6; }
12927if test `eval echo '${'$as_ac_var'}'` = yes; then
12928  cat >>confdefs.h <<_ACEOF
12929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930_ACEOF
12931
12932fi
12933done
12934
12935
12936
12937if test "$WITH_LLVMGCCDIR" = "default" ; then
12938  LLVMGCC="llvm-gcc${EXEEXT}"
12939  LLVMGXX="llvm-g++${EXEEXT}"
12940  LLVMGCCCOMMAND="$LLVMGCC"
12941  LLVMGXXCOMMAND="$LLVMGXX"
12942  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12943
12944  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12945
12946  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12947set dummy $LLVMGCC; ac_word=$2
12948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12950if test "${ac_cv_path_LLVMGCC+set}" = set; then
12951  echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953  case $LLVMGCC in
12954  [\\/]* | ?:[\\/]*)
12955  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12956  ;;
12957  *)
12958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961  IFS=$as_save_IFS
12962  test -z "$as_dir" && as_dir=.
12963  for ac_exec_ext in '' $ac_executable_extensions; do
12964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12965    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967    break 2
12968  fi
12969done
12970done
12971IFS=$as_save_IFS
12972
12973  ;;
12974esac
12975fi
12976LLVMGCC=$ac_cv_path_LLVMGCC
12977if test -n "$LLVMGCC"; then
12978  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12979echo "${ECHO_T}$LLVMGCC" >&6; }
12980else
12981  { echo "$as_me:$LINENO: result: no" >&5
12982echo "${ECHO_T}no" >&6; }
12983fi
12984
12985
12986  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12987set dummy $LLVMGXX; ac_word=$2
12988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12990if test "${ac_cv_path_LLVMGXX+set}" = set; then
12991  echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993  case $LLVMGXX in
12994  [\\/]* | ?:[\\/]*)
12995  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12996  ;;
12997  *)
12998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999for as_dir in $PATH
13000do
13001  IFS=$as_save_IFS
13002  test -z "$as_dir" && as_dir=.
13003  for ac_exec_ext in '' $ac_executable_extensions; do
13004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13005    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007    break 2
13008  fi
13009done
13010done
13011IFS=$as_save_IFS
13012
13013  ;;
13014esac
13015fi
13016LLVMGXX=$ac_cv_path_LLVMGXX
13017if test -n "$LLVMGXX"; then
13018  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13019echo "${ECHO_T}$LLVMGXX" >&6; }
13020else
13021  { echo "$as_me:$LINENO: result: no" >&5
13022echo "${ECHO_T}no" >&6; }
13023fi
13024
13025
13026else
13027  if test -z "$LLVMGCC"; then
13028    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13029    LLVMGCCCOMMAND="$LLVMGCC"
13030  fi
13031  if test -z "$LLVMGXX"; then
13032    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13033    LLVMGXXCOMMAND="$LLVMGXX"
13034  fi
13035
13036  LLVMGCC=$LLVMGCC
13037
13038  LLVMGXX=$LLVMGXX
13039
13040  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13041
13042  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13043
13044fi
13045
13046
13047# Check whether --with-llvmcc was given.
13048if test "${with_llvmcc+set}" = set; then
13049  withval=$with_llvmcc;
13050else
13051  with_llvmcc=check
13052fi
13053
13054{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13055echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13056if test "$with_llvmcc" != "check"; then
13057   if (test "$with_llvmcc" != "llvm-gcc" &&
13058       test "$with_llvmcc" != "clang" &&
13059       test "$with_llvmcc" != "none"); then
13060      { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13061echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13062   { (exit 1); exit 1; }; }
13063   fi
13064   WITH_LLVMCC="$with_llvmcc"
13065elif test -n "$LLVMGCC"; then
13066   WITH_LLVMCC=llvm-gcc
13067elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13068   WITH_LLVMCC=clang
13069else
13070   WITH_LLVMCC=none
13071fi
13072{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13073echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13074LLVMCC_OPTION=$WITH_LLVMCC
13075
13076
13077{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13078echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13079
13080ICC=no
13081IXX=no
13082case $CC in
13083  icc*|icpc*)
13084    ICC=yes
13085    IXX=yes
13086    ;;
13087   *)
13088    ;;
13089esac
13090
13091if test "$GCC" != "yes" && test "$ICC" != "yes"
13092then
13093  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13094echo "$as_me: error: gcc|icc required but not found" >&2;}
13095   { (exit 1); exit 1; }; }
13096fi
13097
13098if test "$GXX" != "yes" && test "$IXX" != "yes"
13099then
13100  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13101echo "$as_me: error: g++|icc required but not found" >&2;}
13102   { (exit 1); exit 1; }; }
13103fi
13104
13105if test "$GCC" = "yes"
13106then
13107  cat >conftest.$ac_ext <<_ACEOF
13108#if !defined(__GNUC__) || __GNUC__ < 3
13109#error Unsupported GCC version
13110#endif
13111
13112_ACEOF
13113rm -f conftest.$ac_objext
13114if { (ac_try="$ac_compile"
13115case "(($ac_try" in
13116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117  *) ac_try_echo=$ac_try;;
13118esac
13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120  (eval "$ac_compile") 2>conftest.er1
13121  ac_status=$?
13122  grep -v '^ *+' conftest.er1 >conftest.err
13123  rm -f conftest.er1
13124  cat conftest.err >&5
13125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126  (exit $ac_status); } &&
13127	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128  { (case "(($ac_try" in
13129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130  *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133  (eval "$ac_try") 2>&5
13134  ac_status=$?
13135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136  (exit $ac_status); }; } &&
13137	 { ac_try='test -s conftest.$ac_objext'
13138  { (case "(($ac_try" in
13139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140  *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143  (eval "$ac_try") 2>&5
13144  ac_status=$?
13145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146  (exit $ac_status); }; }; then
13147  :
13148else
13149  echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13153echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13154   { (exit 1); exit 1; }; }
13155fi
13156
13157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158fi
13159
13160if test -z "$llvm_cv_gnu_make_command"
13161then
13162  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13163echo "$as_me: error: GNU Make required but not found" >&2;}
13164   { (exit 1); exit 1; }; }
13165fi
13166
13167{ echo "$as_me:$LINENO: result: ok" >&5
13168echo "${ECHO_T}ok" >&6; }
13169
13170{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13171echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13172NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13173
13174NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13175
13176{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13177echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13178
13179
13180
13181{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13182echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13183if test "${ac_cv_lib_m_sin+set}" = set; then
13184  echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186  ac_check_lib_save_LIBS=$LIBS
13187LIBS="-lm  $LIBS"
13188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h.  */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h.  */
13194
13195/* Override any GCC internal prototype to avoid an error.
13196   Use char because int might match the return type of a GCC
13197   builtin and then its argument prototype would still apply.  */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201char sin ();
13202int
13203main ()
13204{
13205return sin ();
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210rm -f conftest.$ac_objext conftest$ac_exeext
13211if { (ac_try="$ac_link"
13212case "(($ac_try" in
13213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214  *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217  (eval "$ac_link") 2>conftest.er1
13218  ac_status=$?
13219  grep -v '^ *+' conftest.er1 >conftest.err
13220  rm -f conftest.er1
13221  cat conftest.err >&5
13222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223  (exit $ac_status); } &&
13224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13225  { (case "(($ac_try" in
13226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227  *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230  (eval "$ac_try") 2>&5
13231  ac_status=$?
13232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233  (exit $ac_status); }; } &&
13234	 { ac_try='test -s conftest$ac_exeext'
13235  { (case "(($ac_try" in
13236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237  *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240  (eval "$ac_try") 2>&5
13241  ac_status=$?
13242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243  (exit $ac_status); }; }; then
13244  ac_cv_lib_m_sin=yes
13245else
13246  echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249	ac_cv_lib_m_sin=no
13250fi
13251
13252rm -f core conftest.err conftest.$ac_objext \
13253      conftest$ac_exeext conftest.$ac_ext
13254LIBS=$ac_check_lib_save_LIBS
13255fi
13256{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13257echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13258if test $ac_cv_lib_m_sin = yes; then
13259  cat >>confdefs.h <<_ACEOF
13260#define HAVE_LIBM 1
13261_ACEOF
13262
13263  LIBS="-lm $LIBS"
13264
13265fi
13266
13267if test "$llvm_cv_os_type" = "MingW" ; then
13268
13269{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13270echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13271if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13272  echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274  ac_check_lib_save_LIBS=$LIBS
13275LIBS="-limagehlp  $LIBS"
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h.  */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h.  */
13282
13283
13284int
13285main ()
13286{
13287return main ();
13288  ;
13289  return 0;
13290}
13291_ACEOF
13292rm -f conftest.$ac_objext conftest$ac_exeext
13293if { (ac_try="$ac_link"
13294case "(($ac_try" in
13295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296  *) ac_try_echo=$ac_try;;
13297esac
13298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299  (eval "$ac_link") 2>conftest.er1
13300  ac_status=$?
13301  grep -v '^ *+' conftest.er1 >conftest.err
13302  rm -f conftest.er1
13303  cat conftest.err >&5
13304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305  (exit $ac_status); } &&
13306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13307  { (case "(($ac_try" in
13308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309  *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312  (eval "$ac_try") 2>&5
13313  ac_status=$?
13314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315  (exit $ac_status); }; } &&
13316	 { ac_try='test -s conftest$ac_exeext'
13317  { (case "(($ac_try" in
13318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319  *) ac_try_echo=$ac_try;;
13320esac
13321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322  (eval "$ac_try") 2>&5
13323  ac_status=$?
13324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325  (exit $ac_status); }; }; then
13326  ac_cv_lib_imagehlp_main=yes
13327else
13328  echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331	ac_cv_lib_imagehlp_main=no
13332fi
13333
13334rm -f core conftest.err conftest.$ac_objext \
13335      conftest$ac_exeext conftest.$ac_ext
13336LIBS=$ac_check_lib_save_LIBS
13337fi
13338{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13339echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13340if test $ac_cv_lib_imagehlp_main = yes; then
13341  cat >>confdefs.h <<_ACEOF
13342#define HAVE_LIBIMAGEHLP 1
13343_ACEOF
13344
13345  LIBS="-limagehlp $LIBS"
13346
13347fi
13348
13349
13350{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13351echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13352if test "${ac_cv_lib_psapi_main+set}" = set; then
13353  echo $ECHO_N "(cached) $ECHO_C" >&6
13354else
13355  ac_check_lib_save_LIBS=$LIBS
13356LIBS="-lpsapi  $LIBS"
13357cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h.  */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h.  */
13363
13364
13365int
13366main ()
13367{
13368return main ();
13369  ;
13370  return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext conftest$ac_exeext
13374if { (ac_try="$ac_link"
13375case "(($ac_try" in
13376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377  *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380  (eval "$ac_link") 2>conftest.er1
13381  ac_status=$?
13382  grep -v '^ *+' conftest.er1 >conftest.err
13383  rm -f conftest.er1
13384  cat conftest.err >&5
13385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386  (exit $ac_status); } &&
13387	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388  { (case "(($ac_try" in
13389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390  *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393  (eval "$ac_try") 2>&5
13394  ac_status=$?
13395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396  (exit $ac_status); }; } &&
13397	 { ac_try='test -s conftest$ac_exeext'
13398  { (case "(($ac_try" in
13399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400  *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403  (eval "$ac_try") 2>&5
13404  ac_status=$?
13405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406  (exit $ac_status); }; }; then
13407  ac_cv_lib_psapi_main=yes
13408else
13409  echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412	ac_cv_lib_psapi_main=no
13413fi
13414
13415rm -f core conftest.err conftest.$ac_objext \
13416      conftest$ac_exeext conftest.$ac_ext
13417LIBS=$ac_check_lib_save_LIBS
13418fi
13419{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13420echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13421if test $ac_cv_lib_psapi_main = yes; then
13422  cat >>confdefs.h <<_ACEOF
13423#define HAVE_LIBPSAPI 1
13424_ACEOF
13425
13426  LIBS="-lpsapi $LIBS"
13427
13428fi
13429
13430fi
13431
13432{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13433echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13434if test "${ac_cv_search_dlopen+set}" = set; then
13435  echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437  ac_func_search_save_LIBS=$LIBS
13438cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h.  */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h.  */
13444
13445/* Override any GCC internal prototype to avoid an error.
13446   Use char because int might match the return type of a GCC
13447   builtin and then its argument prototype would still apply.  */
13448#ifdef __cplusplus
13449extern "C"
13450#endif
13451char dlopen ();
13452int
13453main ()
13454{
13455return dlopen ();
13456  ;
13457  return 0;
13458}
13459_ACEOF
13460for ac_lib in '' dl; do
13461  if test -z "$ac_lib"; then
13462    ac_res="none required"
13463  else
13464    ac_res=-l$ac_lib
13465    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13466  fi
13467  rm -f conftest.$ac_objext conftest$ac_exeext
13468if { (ac_try="$ac_link"
13469case "(($ac_try" in
13470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471  *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474  (eval "$ac_link") 2>conftest.er1
13475  ac_status=$?
13476  grep -v '^ *+' conftest.er1 >conftest.err
13477  rm -f conftest.er1
13478  cat conftest.err >&5
13479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480  (exit $ac_status); } &&
13481	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482  { (case "(($ac_try" in
13483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484  *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487  (eval "$ac_try") 2>&5
13488  ac_status=$?
13489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490  (exit $ac_status); }; } &&
13491	 { ac_try='test -s conftest$ac_exeext'
13492  { (case "(($ac_try" in
13493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494  *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497  (eval "$ac_try") 2>&5
13498  ac_status=$?
13499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500  (exit $ac_status); }; }; then
13501  ac_cv_search_dlopen=$ac_res
13502else
13503  echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506
13507fi
13508
13509rm -f core conftest.err conftest.$ac_objext \
13510      conftest$ac_exeext
13511  if test "${ac_cv_search_dlopen+set}" = set; then
13512  break
13513fi
13514done
13515if test "${ac_cv_search_dlopen+set}" = set; then
13516  :
13517else
13518  ac_cv_search_dlopen=no
13519fi
13520rm conftest.$ac_ext
13521LIBS=$ac_func_search_save_LIBS
13522fi
13523{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13524echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13525ac_res=$ac_cv_search_dlopen
13526if test "$ac_res" != no; then
13527  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13528
13529cat >>confdefs.h <<\_ACEOF
13530#define HAVE_DLOPEN 1
13531_ACEOF
13532
13533else
13534  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13535echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13536fi
13537
13538
13539if test "$llvm_cv_enable_libffi" = "yes" ; then
13540  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13541echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13542if test "${ac_cv_search_ffi_call+set}" = set; then
13543  echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545  ac_func_search_save_LIBS=$LIBS
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h.  */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h.  */
13552
13553/* Override any GCC internal prototype to avoid an error.
13554   Use char because int might match the return type of a GCC
13555   builtin and then its argument prototype would still apply.  */
13556#ifdef __cplusplus
13557extern "C"
13558#endif
13559char ffi_call ();
13560int
13561main ()
13562{
13563return ffi_call ();
13564  ;
13565  return 0;
13566}
13567_ACEOF
13568for ac_lib in '' ffi; do
13569  if test -z "$ac_lib"; then
13570    ac_res="none required"
13571  else
13572    ac_res=-l$ac_lib
13573    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13574  fi
13575  rm -f conftest.$ac_objext conftest$ac_exeext
13576if { (ac_try="$ac_link"
13577case "(($ac_try" in
13578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579  *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582  (eval "$ac_link") 2>conftest.er1
13583  ac_status=$?
13584  grep -v '^ *+' conftest.er1 >conftest.err
13585  rm -f conftest.er1
13586  cat conftest.err >&5
13587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588  (exit $ac_status); } &&
13589	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590  { (case "(($ac_try" in
13591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592  *) ac_try_echo=$ac_try;;
13593esac
13594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595  (eval "$ac_try") 2>&5
13596  ac_status=$?
13597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598  (exit $ac_status); }; } &&
13599	 { ac_try='test -s conftest$ac_exeext'
13600  { (case "(($ac_try" in
13601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602  *) ac_try_echo=$ac_try;;
13603esac
13604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605  (eval "$ac_try") 2>&5
13606  ac_status=$?
13607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608  (exit $ac_status); }; }; then
13609  ac_cv_search_ffi_call=$ac_res
13610else
13611  echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614
13615fi
13616
13617rm -f core conftest.err conftest.$ac_objext \
13618      conftest$ac_exeext
13619  if test "${ac_cv_search_ffi_call+set}" = set; then
13620  break
13621fi
13622done
13623if test "${ac_cv_search_ffi_call+set}" = set; then
13624  :
13625else
13626  ac_cv_search_ffi_call=no
13627fi
13628rm conftest.$ac_ext
13629LIBS=$ac_func_search_save_LIBS
13630fi
13631{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13632echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13633ac_res=$ac_cv_search_ffi_call
13634if test "$ac_res" != no; then
13635  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13636
13637cat >>confdefs.h <<\_ACEOF
13638#define HAVE_FFI_CALL 1
13639_ACEOF
13640
13641else
13642  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13643echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13644   { (exit 1); exit 1; }; }
13645fi
13646
13647fi
13648
13649{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13650echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13651if test "${ac_cv_search_mallinfo+set}" = set; then
13652  echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654  ac_func_search_save_LIBS=$LIBS
13655cat >conftest.$ac_ext <<_ACEOF
13656/* confdefs.h.  */
13657_ACEOF
13658cat confdefs.h >>conftest.$ac_ext
13659cat >>conftest.$ac_ext <<_ACEOF
13660/* end confdefs.h.  */
13661
13662/* Override any GCC internal prototype to avoid an error.
13663   Use char because int might match the return type of a GCC
13664   builtin and then its argument prototype would still apply.  */
13665#ifdef __cplusplus
13666extern "C"
13667#endif
13668char mallinfo ();
13669int
13670main ()
13671{
13672return mallinfo ();
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677for ac_lib in '' malloc; do
13678  if test -z "$ac_lib"; then
13679    ac_res="none required"
13680  else
13681    ac_res=-l$ac_lib
13682    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13683  fi
13684  rm -f conftest.$ac_objext conftest$ac_exeext
13685if { (ac_try="$ac_link"
13686case "(($ac_try" in
13687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688  *) ac_try_echo=$ac_try;;
13689esac
13690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691  (eval "$ac_link") 2>conftest.er1
13692  ac_status=$?
13693  grep -v '^ *+' conftest.er1 >conftest.err
13694  rm -f conftest.er1
13695  cat conftest.err >&5
13696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697  (exit $ac_status); } &&
13698	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699  { (case "(($ac_try" in
13700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701  *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704  (eval "$ac_try") 2>&5
13705  ac_status=$?
13706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707  (exit $ac_status); }; } &&
13708	 { ac_try='test -s conftest$ac_exeext'
13709  { (case "(($ac_try" in
13710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711  *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714  (eval "$ac_try") 2>&5
13715  ac_status=$?
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); }; }; then
13718  ac_cv_search_mallinfo=$ac_res
13719else
13720  echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723
13724fi
13725
13726rm -f core conftest.err conftest.$ac_objext \
13727      conftest$ac_exeext
13728  if test "${ac_cv_search_mallinfo+set}" = set; then
13729  break
13730fi
13731done
13732if test "${ac_cv_search_mallinfo+set}" = set; then
13733  :
13734else
13735  ac_cv_search_mallinfo=no
13736fi
13737rm conftest.$ac_ext
13738LIBS=$ac_func_search_save_LIBS
13739fi
13740{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13741echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13742ac_res=$ac_cv_search_mallinfo
13743if test "$ac_res" != no; then
13744  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13745
13746cat >>confdefs.h <<\_ACEOF
13747#define HAVE_MALLINFO 1
13748_ACEOF
13749
13750fi
13751
13752
13753if test "$ENABLE_THREADS" -eq 1 ; then
13754
13755{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13756echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13757if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13758  echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760  ac_check_lib_save_LIBS=$LIBS
13761LIBS="-lpthread  $LIBS"
13762cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h.  */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h.  */
13768
13769/* Override any GCC internal prototype to avoid an error.
13770   Use char because int might match the return type of a GCC
13771   builtin and then its argument prototype would still apply.  */
13772#ifdef __cplusplus
13773extern "C"
13774#endif
13775char pthread_mutex_init ();
13776int
13777main ()
13778{
13779return pthread_mutex_init ();
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (ac_try="$ac_link"
13786case "(($ac_try" in
13787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788  *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791  (eval "$ac_link") 2>conftest.er1
13792  ac_status=$?
13793  grep -v '^ *+' conftest.er1 >conftest.err
13794  rm -f conftest.er1
13795  cat conftest.err >&5
13796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797  (exit $ac_status); } &&
13798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799  { (case "(($ac_try" in
13800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801  *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804  (eval "$ac_try") 2>&5
13805  ac_status=$?
13806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807  (exit $ac_status); }; } &&
13808	 { ac_try='test -s conftest$ac_exeext'
13809  { (case "(($ac_try" in
13810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811  *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814  (eval "$ac_try") 2>&5
13815  ac_status=$?
13816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817  (exit $ac_status); }; }; then
13818  ac_cv_lib_pthread_pthread_mutex_init=yes
13819else
13820  echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823	ac_cv_lib_pthread_pthread_mutex_init=no
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext \
13827      conftest$ac_exeext conftest.$ac_ext
13828LIBS=$ac_check_lib_save_LIBS
13829fi
13830{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13831echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13832if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13833  cat >>confdefs.h <<_ACEOF
13834#define HAVE_LIBPTHREAD 1
13835_ACEOF
13836
13837  LIBS="-lpthread $LIBS"
13838
13839fi
13840
13841  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13842echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13843if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13844  echo $ECHO_N "(cached) $ECHO_C" >&6
13845else
13846  ac_func_search_save_LIBS=$LIBS
13847cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h.  */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h.  */
13853
13854/* Override any GCC internal prototype to avoid an error.
13855   Use char because int might match the return type of a GCC
13856   builtin and then its argument prototype would still apply.  */
13857#ifdef __cplusplus
13858extern "C"
13859#endif
13860char pthread_mutex_lock ();
13861int
13862main ()
13863{
13864return pthread_mutex_lock ();
13865  ;
13866  return 0;
13867}
13868_ACEOF
13869for ac_lib in '' pthread; do
13870  if test -z "$ac_lib"; then
13871    ac_res="none required"
13872  else
13873    ac_res=-l$ac_lib
13874    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13875  fi
13876  rm -f conftest.$ac_objext conftest$ac_exeext
13877if { (ac_try="$ac_link"
13878case "(($ac_try" in
13879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880  *) ac_try_echo=$ac_try;;
13881esac
13882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883  (eval "$ac_link") 2>conftest.er1
13884  ac_status=$?
13885  grep -v '^ *+' conftest.er1 >conftest.err
13886  rm -f conftest.er1
13887  cat conftest.err >&5
13888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889  (exit $ac_status); } &&
13890	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891  { (case "(($ac_try" in
13892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893  *) ac_try_echo=$ac_try;;
13894esac
13895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896  (eval "$ac_try") 2>&5
13897  ac_status=$?
13898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); }; } &&
13900	 { ac_try='test -s conftest$ac_exeext'
13901  { (case "(($ac_try" in
13902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903  *) ac_try_echo=$ac_try;;
13904esac
13905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906  (eval "$ac_try") 2>&5
13907  ac_status=$?
13908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909  (exit $ac_status); }; }; then
13910  ac_cv_search_pthread_mutex_lock=$ac_res
13911else
13912  echo "$as_me: failed program was:" >&5
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
13915
13916fi
13917
13918rm -f core conftest.err conftest.$ac_objext \
13919      conftest$ac_exeext
13920  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13921  break
13922fi
13923done
13924if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13925  :
13926else
13927  ac_cv_search_pthread_mutex_lock=no
13928fi
13929rm conftest.$ac_ext
13930LIBS=$ac_func_search_save_LIBS
13931fi
13932{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13933echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13934ac_res=$ac_cv_search_pthread_mutex_lock
13935if test "$ac_res" != no; then
13936  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13937
13938cat >>confdefs.h <<\_ACEOF
13939#define HAVE_PTHREAD_MUTEX_LOCK 1
13940_ACEOF
13941
13942fi
13943
13944  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13945echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13946if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13947  echo $ECHO_N "(cached) $ECHO_C" >&6
13948else
13949  ac_func_search_save_LIBS=$LIBS
13950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h.  */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h.  */
13956
13957/* Override any GCC internal prototype to avoid an error.
13958   Use char because int might match the return type of a GCC
13959   builtin and then its argument prototype would still apply.  */
13960#ifdef __cplusplus
13961extern "C"
13962#endif
13963char pthread_rwlock_init ();
13964int
13965main ()
13966{
13967return pthread_rwlock_init ();
13968  ;
13969  return 0;
13970}
13971_ACEOF
13972for ac_lib in '' pthread; do
13973  if test -z "$ac_lib"; then
13974    ac_res="none required"
13975  else
13976    ac_res=-l$ac_lib
13977    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13978  fi
13979  rm -f conftest.$ac_objext conftest$ac_exeext
13980if { (ac_try="$ac_link"
13981case "(($ac_try" in
13982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983  *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986  (eval "$ac_link") 2>conftest.er1
13987  ac_status=$?
13988  grep -v '^ *+' conftest.er1 >conftest.err
13989  rm -f conftest.er1
13990  cat conftest.err >&5
13991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992  (exit $ac_status); } &&
13993	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994  { (case "(($ac_try" in
13995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996  *) ac_try_echo=$ac_try;;
13997esac
13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999  (eval "$ac_try") 2>&5
14000  ac_status=$?
14001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002  (exit $ac_status); }; } &&
14003	 { ac_try='test -s conftest$ac_exeext'
14004  { (case "(($ac_try" in
14005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006  *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009  (eval "$ac_try") 2>&5
14010  ac_status=$?
14011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012  (exit $ac_status); }; }; then
14013  ac_cv_search_pthread_rwlock_init=$ac_res
14014else
14015  echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018
14019fi
14020
14021rm -f core conftest.err conftest.$ac_objext \
14022      conftest$ac_exeext
14023  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14024  break
14025fi
14026done
14027if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14028  :
14029else
14030  ac_cv_search_pthread_rwlock_init=no
14031fi
14032rm conftest.$ac_ext
14033LIBS=$ac_func_search_save_LIBS
14034fi
14035{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14036echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14037ac_res=$ac_cv_search_pthread_rwlock_init
14038if test "$ac_res" != no; then
14039  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14040
14041cat >>confdefs.h <<\_ACEOF
14042#define HAVE_PTHREAD_RWLOCK_INIT 1
14043_ACEOF
14044
14045fi
14046
14047  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14048echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14049if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14050  echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052  ac_func_search_save_LIBS=$LIBS
14053cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h.  */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h.  */
14059
14060/* Override any GCC internal prototype to avoid an error.
14061   Use char because int might match the return type of a GCC
14062   builtin and then its argument prototype would still apply.  */
14063#ifdef __cplusplus
14064extern "C"
14065#endif
14066char pthread_getspecific ();
14067int
14068main ()
14069{
14070return pthread_getspecific ();
14071  ;
14072  return 0;
14073}
14074_ACEOF
14075for ac_lib in '' pthread; do
14076  if test -z "$ac_lib"; then
14077    ac_res="none required"
14078  else
14079    ac_res=-l$ac_lib
14080    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14081  fi
14082  rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (ac_try="$ac_link"
14084case "(($ac_try" in
14085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086  *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089  (eval "$ac_link") 2>conftest.er1
14090  ac_status=$?
14091  grep -v '^ *+' conftest.er1 >conftest.err
14092  rm -f conftest.er1
14093  cat conftest.err >&5
14094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095  (exit $ac_status); } &&
14096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097  { (case "(($ac_try" in
14098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099  *) ac_try_echo=$ac_try;;
14100esac
14101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102  (eval "$ac_try") 2>&5
14103  ac_status=$?
14104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105  (exit $ac_status); }; } &&
14106	 { ac_try='test -s conftest$ac_exeext'
14107  { (case "(($ac_try" in
14108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109  *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112  (eval "$ac_try") 2>&5
14113  ac_status=$?
14114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115  (exit $ac_status); }; }; then
14116  ac_cv_search_pthread_getspecific=$ac_res
14117else
14118  echo "$as_me: failed program was:" >&5
14119sed 's/^/| /' conftest.$ac_ext >&5
14120
14121
14122fi
14123
14124rm -f core conftest.err conftest.$ac_objext \
14125      conftest$ac_exeext
14126  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14127  break
14128fi
14129done
14130if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14131  :
14132else
14133  ac_cv_search_pthread_getspecific=no
14134fi
14135rm conftest.$ac_ext
14136LIBS=$ac_func_search_save_LIBS
14137fi
14138{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14139echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14140ac_res=$ac_cv_search_pthread_getspecific
14141if test "$ac_res" != no; then
14142  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14143
14144cat >>confdefs.h <<\_ACEOF
14145#define HAVE_PTHREAD_GETSPECIFIC 1
14146_ACEOF
14147
14148fi
14149
14150fi
14151
14152
14153# Check whether --with-udis86 was given.
14154if test "${with_udis86+set}" = set; then
14155  withval=$with_udis86;
14156      USE_UDIS86=1
14157
14158      case "$withval" in
14159        /usr/lib|yes) ;;
14160        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14161      esac
14162
14163{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14164echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14165if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14166  echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168  ac_check_lib_save_LIBS=$LIBS
14169LIBS="-ludis86  $LIBS"
14170cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h.  */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
14175/* end confdefs.h.  */
14176
14177/* Override any GCC internal prototype to avoid an error.
14178   Use char because int might match the return type of a GCC
14179   builtin and then its argument prototype would still apply.  */
14180#ifdef __cplusplus
14181extern "C"
14182#endif
14183char ud_init ();
14184int
14185main ()
14186{
14187return ud_init ();
14188  ;
14189  return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext conftest$ac_exeext
14193if { (ac_try="$ac_link"
14194case "(($ac_try" in
14195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196  *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199  (eval "$ac_link") 2>conftest.er1
14200  ac_status=$?
14201  grep -v '^ *+' conftest.er1 >conftest.err
14202  rm -f conftest.er1
14203  cat conftest.err >&5
14204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205  (exit $ac_status); } &&
14206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207  { (case "(($ac_try" in
14208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209  *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212  (eval "$ac_try") 2>&5
14213  ac_status=$?
14214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); }; } &&
14216	 { ac_try='test -s conftest$ac_exeext'
14217  { (case "(($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_try") 2>&5
14223  ac_status=$?
14224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225  (exit $ac_status); }; }; then
14226  ac_cv_lib_udis86_ud_init=yes
14227else
14228  echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231	ac_cv_lib_udis86_ud_init=no
14232fi
14233
14234rm -f core conftest.err conftest.$ac_objext \
14235      conftest$ac_exeext conftest.$ac_ext
14236LIBS=$ac_check_lib_save_LIBS
14237fi
14238{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14239echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14240if test $ac_cv_lib_udis86_ud_init = yes; then
14241  cat >>confdefs.h <<_ACEOF
14242#define HAVE_LIBUDIS86 1
14243_ACEOF
14244
14245  LIBS="-ludis86 $LIBS"
14246
14247else
14248
14249        echo "Error! You need to have libudis86 around."
14250        exit -1
14251
14252fi
14253
14254
14255else
14256  USE_UDIS86=0
14257
14258fi
14259
14260
14261cat >>confdefs.h <<_ACEOF
14262#define USE_UDIS86 $USE_UDIS86
14263_ACEOF
14264
14265
14266
14267# Check whether --with-oprofile was given.
14268if test "${with_oprofile+set}" = set; then
14269  withval=$with_oprofile;
14270      USE_OPROFILE=1
14271
14272      case "$withval" in
14273        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14274        no) llvm_cv_oppath=
14275            USE_OPROFILE=0
14276 ;;
14277        *) llvm_cv_oppath="${withval}/lib/oprofile"
14278           CPPFLAGS="-I${withval}/include";;
14279      esac
14280      if test -n "$llvm_cv_oppath" ; then
14281        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14282                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14283echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14284if test "${ac_cv_search_bfd_init+set}" = set; then
14285  echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287  ac_func_search_save_LIBS=$LIBS
14288cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h.  */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h.  */
14294
14295/* Override any GCC internal prototype to avoid an error.
14296   Use char because int might match the return type of a GCC
14297   builtin and then its argument prototype would still apply.  */
14298#ifdef __cplusplus
14299extern "C"
14300#endif
14301char bfd_init ();
14302int
14303main ()
14304{
14305return bfd_init ();
14306  ;
14307  return 0;
14308}
14309_ACEOF
14310for ac_lib in '' bfd; do
14311  if test -z "$ac_lib"; then
14312    ac_res="none required"
14313  else
14314    ac_res=-l$ac_lib
14315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14316  fi
14317  rm -f conftest.$ac_objext conftest$ac_exeext
14318if { (ac_try="$ac_link"
14319case "(($ac_try" in
14320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321  *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324  (eval "$ac_link") 2>conftest.er1
14325  ac_status=$?
14326  grep -v '^ *+' conftest.er1 >conftest.err
14327  rm -f conftest.er1
14328  cat conftest.err >&5
14329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330  (exit $ac_status); } &&
14331	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332  { (case "(($ac_try" in
14333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334  *) ac_try_echo=$ac_try;;
14335esac
14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337  (eval "$ac_try") 2>&5
14338  ac_status=$?
14339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340  (exit $ac_status); }; } &&
14341	 { ac_try='test -s conftest$ac_exeext'
14342  { (case "(($ac_try" in
14343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344  *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347  (eval "$ac_try") 2>&5
14348  ac_status=$?
14349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350  (exit $ac_status); }; }; then
14351  ac_cv_search_bfd_init=$ac_res
14352else
14353  echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5
14355
14356
14357fi
14358
14359rm -f core conftest.err conftest.$ac_objext \
14360      conftest$ac_exeext
14361  if test "${ac_cv_search_bfd_init+set}" = set; then
14362  break
14363fi
14364done
14365if test "${ac_cv_search_bfd_init+set}" = set; then
14366  :
14367else
14368  ac_cv_search_bfd_init=no
14369fi
14370rm conftest.$ac_ext
14371LIBS=$ac_func_search_save_LIBS
14372fi
14373{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14374echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14375ac_res=$ac_cv_search_bfd_init
14376if test "$ac_res" != no; then
14377  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378
14379fi
14380
14381        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14382echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14383if test "${ac_cv_search_op_open_agent+set}" = set; then
14384  echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386  ac_func_search_save_LIBS=$LIBS
14387cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h.  */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h.  */
14393
14394/* Override any GCC internal prototype to avoid an error.
14395   Use char because int might match the return type of a GCC
14396   builtin and then its argument prototype would still apply.  */
14397#ifdef __cplusplus
14398extern "C"
14399#endif
14400char op_open_agent ();
14401int
14402main ()
14403{
14404return op_open_agent ();
14405  ;
14406  return 0;
14407}
14408_ACEOF
14409for ac_lib in '' opagent; do
14410  if test -z "$ac_lib"; then
14411    ac_res="none required"
14412  else
14413    ac_res=-l$ac_lib
14414    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14415  fi
14416  rm -f conftest.$ac_objext conftest$ac_exeext
14417if { (ac_try="$ac_link"
14418case "(($ac_try" in
14419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420  *) ac_try_echo=$ac_try;;
14421esac
14422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423  (eval "$ac_link") 2>conftest.er1
14424  ac_status=$?
14425  grep -v '^ *+' conftest.er1 >conftest.err
14426  rm -f conftest.er1
14427  cat conftest.err >&5
14428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429  (exit $ac_status); } &&
14430	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431  { (case "(($ac_try" in
14432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433  *) ac_try_echo=$ac_try;;
14434esac
14435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436  (eval "$ac_try") 2>&5
14437  ac_status=$?
14438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439  (exit $ac_status); }; } &&
14440	 { ac_try='test -s conftest$ac_exeext'
14441  { (case "(($ac_try" in
14442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443  *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446  (eval "$ac_try") 2>&5
14447  ac_status=$?
14448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449  (exit $ac_status); }; }; then
14450  ac_cv_search_op_open_agent=$ac_res
14451else
14452  echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455
14456fi
14457
14458rm -f core conftest.err conftest.$ac_objext \
14459      conftest$ac_exeext
14460  if test "${ac_cv_search_op_open_agent+set}" = set; then
14461  break
14462fi
14463done
14464if test "${ac_cv_search_op_open_agent+set}" = set; then
14465  :
14466else
14467  ac_cv_search_op_open_agent=no
14468fi
14469rm conftest.$ac_ext
14470LIBS=$ac_func_search_save_LIBS
14471fi
14472{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14473echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14474ac_res=$ac_cv_search_op_open_agent
14475if test "$ac_res" != no; then
14476  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14477
14478else
14479
14480          echo "Error! You need to have libopagent around."
14481          exit -1
14482
14483fi
14484
14485        if test "${ac_cv_header_opagent_h+set}" = set; then
14486  { echo "$as_me:$LINENO: checking for opagent.h" >&5
14487echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488if test "${ac_cv_header_opagent_h+set}" = set; then
14489  echo $ECHO_N "(cached) $ECHO_C" >&6
14490fi
14491{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14492echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14493else
14494  # Is the header compilable?
14495{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14496echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14497cat >conftest.$ac_ext <<_ACEOF
14498/* confdefs.h.  */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h.  */
14503$ac_includes_default
14504#include <opagent.h>
14505_ACEOF
14506rm -f conftest.$ac_objext
14507if { (ac_try="$ac_compile"
14508case "(($ac_try" in
14509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510  *) ac_try_echo=$ac_try;;
14511esac
14512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513  (eval "$ac_compile") 2>conftest.er1
14514  ac_status=$?
14515  grep -v '^ *+' conftest.er1 >conftest.err
14516  rm -f conftest.er1
14517  cat conftest.err >&5
14518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519  (exit $ac_status); } &&
14520	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521  { (case "(($ac_try" in
14522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523  *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526  (eval "$ac_try") 2>&5
14527  ac_status=$?
14528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529  (exit $ac_status); }; } &&
14530	 { ac_try='test -s conftest.$ac_objext'
14531  { (case "(($ac_try" in
14532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533  *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536  (eval "$ac_try") 2>&5
14537  ac_status=$?
14538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539  (exit $ac_status); }; }; then
14540  ac_header_compiler=yes
14541else
14542  echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
14545	ac_header_compiler=no
14546fi
14547
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550echo "${ECHO_T}$ac_header_compiler" >&6; }
14551
14552# Is the header present?
14553{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14554echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14555cat >conftest.$ac_ext <<_ACEOF
14556/* confdefs.h.  */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h.  */
14561#include <opagent.h>
14562_ACEOF
14563if { (ac_try="$ac_cpp conftest.$ac_ext"
14564case "(($ac_try" in
14565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566  *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14570  ac_status=$?
14571  grep -v '^ *+' conftest.er1 >conftest.err
14572  rm -f conftest.er1
14573  cat conftest.err >&5
14574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575  (exit $ac_status); } >/dev/null; then
14576  if test -s conftest.err; then
14577    ac_cpp_err=$ac_c_preproc_warn_flag
14578    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14579  else
14580    ac_cpp_err=
14581  fi
14582else
14583  ac_cpp_err=yes
14584fi
14585if test -z "$ac_cpp_err"; then
14586  ac_header_preproc=yes
14587else
14588  echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
14591  ac_header_preproc=no
14592fi
14593
14594rm -f conftest.err conftest.$ac_ext
14595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596echo "${ECHO_T}$ac_header_preproc" >&6; }
14597
14598# So?  What about this header?
14599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600  yes:no: )
14601    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14602echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14604echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14605    ac_header_preproc=yes
14606    ;;
14607  no:yes:* )
14608    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14609echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14610    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14611echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14612    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14613echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14614    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14615echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14616    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14617echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14618    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14619echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14620    ( cat <<\_ASBOX
14621## ----------------------------------- ##
14622## Report this to llvmbugs@cs.uiuc.edu ##
14623## ----------------------------------- ##
14624_ASBOX
14625     ) | sed "s/^/$as_me: WARNING:     /" >&2
14626    ;;
14627esac
14628{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14629echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14630if test "${ac_cv_header_opagent_h+set}" = set; then
14631  echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633  ac_cv_header_opagent_h=$ac_header_preproc
14634fi
14635{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14636echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14637
14638fi
14639if test $ac_cv_header_opagent_h = yes; then
14640  :
14641else
14642
14643          echo "Error! You need to have opagent.h around."
14644          exit -1
14645
14646fi
14647
14648
14649      fi
14650
14651else
14652
14653      USE_OPROFILE=0
14654
14655
14656fi
14657
14658
14659cat >>confdefs.h <<_ACEOF
14660#define USE_OPROFILE $USE_OPROFILE
14661_ACEOF
14662
14663
14664
14665
14666
14667
14668
14669
14670ac_header_dirent=no
14671for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14672  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14673{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14674echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676  echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678  cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h.  */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h.  */
14684#include <sys/types.h>
14685#include <$ac_hdr>
14686
14687int
14688main ()
14689{
14690if ((DIR *) 0)
14691return 0;
14692  ;
14693  return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext
14697if { (ac_try="$ac_compile"
14698case "(($ac_try" in
14699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700  *) ac_try_echo=$ac_try;;
14701esac
14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703  (eval "$ac_compile") 2>conftest.er1
14704  ac_status=$?
14705  grep -v '^ *+' conftest.er1 >conftest.err
14706  rm -f conftest.er1
14707  cat conftest.err >&5
14708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709  (exit $ac_status); } &&
14710	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14711  { (case "(($ac_try" in
14712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713  *) ac_try_echo=$ac_try;;
14714esac
14715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716  (eval "$ac_try") 2>&5
14717  ac_status=$?
14718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719  (exit $ac_status); }; } &&
14720	 { ac_try='test -s conftest.$ac_objext'
14721  { (case "(($ac_try" in
14722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723  *) ac_try_echo=$ac_try;;
14724esac
14725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726  (eval "$ac_try") 2>&5
14727  ac_status=$?
14728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729  (exit $ac_status); }; }; then
14730  eval "$as_ac_Header=yes"
14731else
14732  echo "$as_me: failed program was:" >&5
14733sed 's/^/| /' conftest.$ac_ext >&5
14734
14735	eval "$as_ac_Header=no"
14736fi
14737
14738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739fi
14740ac_res=`eval echo '${'$as_ac_Header'}'`
14741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14742echo "${ECHO_T}$ac_res" >&6; }
14743if test `eval echo '${'$as_ac_Header'}'` = yes; then
14744  cat >>confdefs.h <<_ACEOF
14745#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14746_ACEOF
14747
14748ac_header_dirent=$ac_hdr; break
14749fi
14750
14751done
14752# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14753if test $ac_header_dirent = dirent.h; then
14754  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14755echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14756if test "${ac_cv_search_opendir+set}" = set; then
14757  echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
14759  ac_func_search_save_LIBS=$LIBS
14760cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h.  */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h.  */
14766
14767/* Override any GCC internal prototype to avoid an error.
14768   Use char because int might match the return type of a GCC
14769   builtin and then its argument prototype would still apply.  */
14770#ifdef __cplusplus
14771extern "C"
14772#endif
14773char opendir ();
14774int
14775main ()
14776{
14777return opendir ();
14778  ;
14779  return 0;
14780}
14781_ACEOF
14782for ac_lib in '' dir; do
14783  if test -z "$ac_lib"; then
14784    ac_res="none required"
14785  else
14786    ac_res=-l$ac_lib
14787    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14788  fi
14789  rm -f conftest.$ac_objext conftest$ac_exeext
14790if { (ac_try="$ac_link"
14791case "(($ac_try" in
14792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793  *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796  (eval "$ac_link") 2>conftest.er1
14797  ac_status=$?
14798  grep -v '^ *+' conftest.er1 >conftest.err
14799  rm -f conftest.er1
14800  cat conftest.err >&5
14801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802  (exit $ac_status); } &&
14803	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804  { (case "(($ac_try" in
14805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806  *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809  (eval "$ac_try") 2>&5
14810  ac_status=$?
14811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812  (exit $ac_status); }; } &&
14813	 { ac_try='test -s conftest$ac_exeext'
14814  { (case "(($ac_try" in
14815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816  *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819  (eval "$ac_try") 2>&5
14820  ac_status=$?
14821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822  (exit $ac_status); }; }; then
14823  ac_cv_search_opendir=$ac_res
14824else
14825  echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828
14829fi
14830
14831rm -f core conftest.err conftest.$ac_objext \
14832      conftest$ac_exeext
14833  if test "${ac_cv_search_opendir+set}" = set; then
14834  break
14835fi
14836done
14837if test "${ac_cv_search_opendir+set}" = set; then
14838  :
14839else
14840  ac_cv_search_opendir=no
14841fi
14842rm conftest.$ac_ext
14843LIBS=$ac_func_search_save_LIBS
14844fi
14845{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14846echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14847ac_res=$ac_cv_search_opendir
14848if test "$ac_res" != no; then
14849  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14850
14851fi
14852
14853else
14854  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14855echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14856if test "${ac_cv_search_opendir+set}" = set; then
14857  echo $ECHO_N "(cached) $ECHO_C" >&6
14858else
14859  ac_func_search_save_LIBS=$LIBS
14860cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h.  */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h.  */
14866
14867/* Override any GCC internal prototype to avoid an error.
14868   Use char because int might match the return type of a GCC
14869   builtin and then its argument prototype would still apply.  */
14870#ifdef __cplusplus
14871extern "C"
14872#endif
14873char opendir ();
14874int
14875main ()
14876{
14877return opendir ();
14878  ;
14879  return 0;
14880}
14881_ACEOF
14882for ac_lib in '' x; do
14883  if test -z "$ac_lib"; then
14884    ac_res="none required"
14885  else
14886    ac_res=-l$ac_lib
14887    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14888  fi
14889  rm -f conftest.$ac_objext conftest$ac_exeext
14890if { (ac_try="$ac_link"
14891case "(($ac_try" in
14892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893  *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896  (eval "$ac_link") 2>conftest.er1
14897  ac_status=$?
14898  grep -v '^ *+' conftest.er1 >conftest.err
14899  rm -f conftest.er1
14900  cat conftest.err >&5
14901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902  (exit $ac_status); } &&
14903	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904  { (case "(($ac_try" in
14905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906  *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909  (eval "$ac_try") 2>&5
14910  ac_status=$?
14911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912  (exit $ac_status); }; } &&
14913	 { ac_try='test -s conftest$ac_exeext'
14914  { (case "(($ac_try" in
14915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916  *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919  (eval "$ac_try") 2>&5
14920  ac_status=$?
14921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922  (exit $ac_status); }; }; then
14923  ac_cv_search_opendir=$ac_res
14924else
14925  echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928
14929fi
14930
14931rm -f core conftest.err conftest.$ac_objext \
14932      conftest$ac_exeext
14933  if test "${ac_cv_search_opendir+set}" = set; then
14934  break
14935fi
14936done
14937if test "${ac_cv_search_opendir+set}" = set; then
14938  :
14939else
14940  ac_cv_search_opendir=no
14941fi
14942rm conftest.$ac_ext
14943LIBS=$ac_func_search_save_LIBS
14944fi
14945{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14946echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14947ac_res=$ac_cv_search_opendir
14948if test "$ac_res" != no; then
14949  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14950
14951fi
14952
14953fi
14954
14955{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14956echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14957if test "${ac_cv_header_mmap_anon+set}" = set; then
14958  echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960   ac_ext=c
14961ac_cpp='$CPP $CPPFLAGS'
14962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14964ac_compiler_gnu=$ac_cv_c_compiler_gnu
14965
14966  cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h.  */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h.  */
14972#include <sys/mman.h>
14973#include <unistd.h>
14974#include <fcntl.h>
14975int
14976main ()
14977{
14978mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14979  ;
14980  return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987  *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990  (eval "$ac_compile") 2>conftest.er1
14991  ac_status=$?
14992  grep -v '^ *+' conftest.er1 >conftest.err
14993  rm -f conftest.er1
14994  cat conftest.err >&5
14995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996  (exit $ac_status); } &&
14997	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998  { (case "(($ac_try" in
14999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000  *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003  (eval "$ac_try") 2>&5
15004  ac_status=$?
15005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006  (exit $ac_status); }; } &&
15007	 { ac_try='test -s conftest.$ac_objext'
15008  { (case "(($ac_try" in
15009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010  *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013  (eval "$ac_try") 2>&5
15014  ac_status=$?
15015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016  (exit $ac_status); }; }; then
15017  ac_cv_header_mmap_anon=yes
15018else
15019  echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022	ac_cv_header_mmap_anon=no
15023fi
15024
15025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026  ac_ext=c
15027ac_cpp='$CPP $CPPFLAGS'
15028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030ac_compiler_gnu=$ac_cv_c_compiler_gnu
15031
15032
15033fi
15034{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15035echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15036if test "$ac_cv_header_mmap_anon" = yes; then
15037
15038cat >>confdefs.h <<\_ACEOF
15039#define HAVE_MMAP_ANONYMOUS 1
15040_ACEOF
15041
15042fi
15043
15044{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15045echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15046if test "${ac_cv_header_stat_broken+set}" = set; then
15047  echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
15049  cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h.  */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h.  */
15055#include <sys/types.h>
15056#include <sys/stat.h>
15057
15058#if defined S_ISBLK && defined S_IFDIR
15059# if S_ISBLK (S_IFDIR)
15060You lose.
15061# endif
15062#endif
15063
15064#if defined S_ISBLK && defined S_IFCHR
15065# if S_ISBLK (S_IFCHR)
15066You lose.
15067# endif
15068#endif
15069
15070#if defined S_ISLNK && defined S_IFREG
15071# if S_ISLNK (S_IFREG)
15072You lose.
15073# endif
15074#endif
15075
15076#if defined S_ISSOCK && defined S_IFREG
15077# if S_ISSOCK (S_IFREG)
15078You lose.
15079# endif
15080#endif
15081
15082_ACEOF
15083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15084  $EGREP "You lose" >/dev/null 2>&1; then
15085  ac_cv_header_stat_broken=yes
15086else
15087  ac_cv_header_stat_broken=no
15088fi
15089rm -f conftest*
15090
15091fi
15092{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15093echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15094if test $ac_cv_header_stat_broken = yes; then
15095
15096cat >>confdefs.h <<\_ACEOF
15097#define STAT_MACROS_BROKEN 1
15098_ACEOF
15099
15100fi
15101
15102{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15103echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15104if test "${ac_cv_header_stdc+set}" = set; then
15105  echo $ECHO_N "(cached) $ECHO_C" >&6
15106else
15107  cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h.  */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h.  */
15113#include <stdlib.h>
15114#include <stdarg.h>
15115#include <string.h>
15116#include <float.h>
15117
15118int
15119main ()
15120{
15121
15122  ;
15123  return 0;
15124}
15125_ACEOF
15126rm -f conftest.$ac_objext
15127if { (ac_try="$ac_compile"
15128case "(($ac_try" in
15129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130  *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133  (eval "$ac_compile") 2>conftest.er1
15134  ac_status=$?
15135  grep -v '^ *+' conftest.er1 >conftest.err
15136  rm -f conftest.er1
15137  cat conftest.err >&5
15138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139  (exit $ac_status); } &&
15140	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141  { (case "(($ac_try" in
15142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143  *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146  (eval "$ac_try") 2>&5
15147  ac_status=$?
15148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149  (exit $ac_status); }; } &&
15150	 { ac_try='test -s conftest.$ac_objext'
15151  { (case "(($ac_try" in
15152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153  *) ac_try_echo=$ac_try;;
15154esac
15155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156  (eval "$ac_try") 2>&5
15157  ac_status=$?
15158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159  (exit $ac_status); }; }; then
15160  ac_cv_header_stdc=yes
15161else
15162  echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165	ac_cv_header_stdc=no
15166fi
15167
15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169
15170if test $ac_cv_header_stdc = yes; then
15171  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15172  cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h.  */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h.  */
15178#include <string.h>
15179
15180_ACEOF
15181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15182  $EGREP "memchr" >/dev/null 2>&1; then
15183  :
15184else
15185  ac_cv_header_stdc=no
15186fi
15187rm -f conftest*
15188
15189fi
15190
15191if test $ac_cv_header_stdc = yes; then
15192  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15193  cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h.  */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h.  */
15199#include <stdlib.h>
15200
15201_ACEOF
15202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203  $EGREP "free" >/dev/null 2>&1; then
15204  :
15205else
15206  ac_cv_header_stdc=no
15207fi
15208rm -f conftest*
15209
15210fi
15211
15212if test $ac_cv_header_stdc = yes; then
15213  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15214  if test "$cross_compiling" = yes; then
15215  :
15216else
15217  cat >conftest.$ac_ext <<_ACEOF
15218/* confdefs.h.  */
15219_ACEOF
15220cat confdefs.h >>conftest.$ac_ext
15221cat >>conftest.$ac_ext <<_ACEOF
15222/* end confdefs.h.  */
15223#include <ctype.h>
15224#include <stdlib.h>
15225#if ((' ' & 0x0FF) == 0x020)
15226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15228#else
15229# define ISLOWER(c) \
15230		   (('a' <= (c) && (c) <= 'i') \
15231		     || ('j' <= (c) && (c) <= 'r') \
15232		     || ('s' <= (c) && (c) <= 'z'))
15233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15234#endif
15235
15236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15237int
15238main ()
15239{
15240  int i;
15241  for (i = 0; i < 256; i++)
15242    if (XOR (islower (i), ISLOWER (i))
15243	|| toupper (i) != TOUPPER (i))
15244      return 2;
15245  return 0;
15246}
15247_ACEOF
15248rm -f conftest$ac_exeext
15249if { (ac_try="$ac_link"
15250case "(($ac_try" in
15251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252  *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255  (eval "$ac_link") 2>&5
15256  ac_status=$?
15257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15259  { (case "(($ac_try" in
15260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261  *) ac_try_echo=$ac_try;;
15262esac
15263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264  (eval "$ac_try") 2>&5
15265  ac_status=$?
15266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267  (exit $ac_status); }; }; then
15268  :
15269else
15270  echo "$as_me: program exited with status $ac_status" >&5
15271echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274( exit $ac_status )
15275ac_cv_header_stdc=no
15276fi
15277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15278fi
15279
15280
15281fi
15282fi
15283{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15284echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15285if test $ac_cv_header_stdc = yes; then
15286
15287cat >>confdefs.h <<\_ACEOF
15288#define STDC_HEADERS 1
15289_ACEOF
15290
15291fi
15292
15293{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15294echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15295if test "${ac_cv_header_sys_wait_h+set}" = set; then
15296  echo $ECHO_N "(cached) $ECHO_C" >&6
15297else
15298  cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h.  */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h.  */
15304#include <sys/types.h>
15305#include <sys/wait.h>
15306#ifndef WEXITSTATUS
15307# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15308#endif
15309#ifndef WIFEXITED
15310# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15311#endif
15312
15313int
15314main ()
15315{
15316  int s;
15317  wait (&s);
15318  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext
15324if { (ac_try="$ac_compile"
15325case "(($ac_try" in
15326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327  *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330  (eval "$ac_compile") 2>conftest.er1
15331  ac_status=$?
15332  grep -v '^ *+' conftest.er1 >conftest.err
15333  rm -f conftest.er1
15334  cat conftest.err >&5
15335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); } &&
15337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338  { (case "(($ac_try" in
15339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340  *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343  (eval "$ac_try") 2>&5
15344  ac_status=$?
15345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); }; } &&
15347	 { ac_try='test -s conftest.$ac_objext'
15348  { (case "(($ac_try" in
15349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350  *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353  (eval "$ac_try") 2>&5
15354  ac_status=$?
15355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356  (exit $ac_status); }; }; then
15357  ac_cv_header_sys_wait_h=yes
15358else
15359  echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362	ac_cv_header_sys_wait_h=no
15363fi
15364
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15368echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15369if test $ac_cv_header_sys_wait_h = yes; then
15370
15371cat >>confdefs.h <<\_ACEOF
15372#define HAVE_SYS_WAIT_H 1
15373_ACEOF
15374
15375fi
15376
15377{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15378echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15379if test "${ac_cv_header_time+set}" = set; then
15380  echo $ECHO_N "(cached) $ECHO_C" >&6
15381else
15382  cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h.  */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h.  */
15388#include <sys/types.h>
15389#include <sys/time.h>
15390#include <time.h>
15391
15392int
15393main ()
15394{
15395if ((struct tm *) 0)
15396return 0;
15397  ;
15398  return 0;
15399}
15400_ACEOF
15401rm -f conftest.$ac_objext
15402if { (ac_try="$ac_compile"
15403case "(($ac_try" in
15404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405  *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408  (eval "$ac_compile") 2>conftest.er1
15409  ac_status=$?
15410  grep -v '^ *+' conftest.er1 >conftest.err
15411  rm -f conftest.er1
15412  cat conftest.err >&5
15413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414  (exit $ac_status); } &&
15415	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416  { (case "(($ac_try" in
15417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418  *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421  (eval "$ac_try") 2>&5
15422  ac_status=$?
15423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424  (exit $ac_status); }; } &&
15425	 { ac_try='test -s conftest.$ac_objext'
15426  { (case "(($ac_try" in
15427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428  *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431  (eval "$ac_try") 2>&5
15432  ac_status=$?
15433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434  (exit $ac_status); }; }; then
15435  ac_cv_header_time=yes
15436else
15437  echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440	ac_cv_header_time=no
15441fi
15442
15443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444fi
15445{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15446echo "${ECHO_T}$ac_cv_header_time" >&6; }
15447if test $ac_cv_header_time = yes; then
15448
15449cat >>confdefs.h <<\_ACEOF
15450#define TIME_WITH_SYS_TIME 1
15451_ACEOF
15452
15453fi
15454
15455
15456
15457
15458
15459
15460
15461
15462for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15463do
15464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469  echo $ECHO_N "(cached) $ECHO_C" >&6
15470fi
15471ac_res=`eval echo '${'$as_ac_Header'}'`
15472	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15473echo "${ECHO_T}$ac_res" >&6; }
15474else
15475  # Is the header compilable?
15476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h.  */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h.  */
15484$ac_includes_default
15485#include <$ac_header>
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (ac_try="$ac_compile"
15489case "(($ac_try" in
15490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491  *) ac_try_echo=$ac_try;;
15492esac
15493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494  (eval "$ac_compile") 2>conftest.er1
15495  ac_status=$?
15496  grep -v '^ *+' conftest.er1 >conftest.err
15497  rm -f conftest.er1
15498  cat conftest.err >&5
15499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500  (exit $ac_status); } &&
15501	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502  { (case "(($ac_try" in
15503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504  *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507  (eval "$ac_try") 2>&5
15508  ac_status=$?
15509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510  (exit $ac_status); }; } &&
15511	 { ac_try='test -s conftest.$ac_objext'
15512  { (case "(($ac_try" in
15513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514  *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517  (eval "$ac_try") 2>&5
15518  ac_status=$?
15519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520  (exit $ac_status); }; }; then
15521  ac_header_compiler=yes
15522else
15523  echo "$as_me: failed program was:" >&5
15524sed 's/^/| /' conftest.$ac_ext >&5
15525
15526	ac_header_compiler=no
15527fi
15528
15529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531echo "${ECHO_T}$ac_header_compiler" >&6; }
15532
15533# Is the header present?
15534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h.  */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h.  */
15542#include <$ac_header>
15543_ACEOF
15544if { (ac_try="$ac_cpp conftest.$ac_ext"
15545case "(($ac_try" in
15546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547  *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15551  ac_status=$?
15552  grep -v '^ *+' conftest.er1 >conftest.err
15553  rm -f conftest.er1
15554  cat conftest.err >&5
15555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556  (exit $ac_status); } >/dev/null; then
15557  if test -s conftest.err; then
15558    ac_cpp_err=$ac_c_preproc_warn_flag
15559    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15560  else
15561    ac_cpp_err=
15562  fi
15563else
15564  ac_cpp_err=yes
15565fi
15566if test -z "$ac_cpp_err"; then
15567  ac_header_preproc=yes
15568else
15569  echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572  ac_header_preproc=no
15573fi
15574
15575rm -f conftest.err conftest.$ac_ext
15576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577echo "${ECHO_T}$ac_header_preproc" >&6; }
15578
15579# So?  What about this header?
15580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581  yes:no: )
15582    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586    ac_header_preproc=yes
15587    ;;
15588  no:yes:* )
15589    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15592echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15593    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15596echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15597    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601    ( cat <<\_ASBOX
15602## ----------------------------------- ##
15603## Report this to llvmbugs@cs.uiuc.edu ##
15604## ----------------------------------- ##
15605_ASBOX
15606     ) | sed "s/^/$as_me: WARNING:     /" >&2
15607    ;;
15608esac
15609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612  echo $ECHO_N "(cached) $ECHO_C" >&6
15613else
15614  eval "$as_ac_Header=\$ac_header_preproc"
15615fi
15616ac_res=`eval echo '${'$as_ac_Header'}'`
15617	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15618echo "${ECHO_T}$ac_res" >&6; }
15619
15620fi
15621if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622  cat >>confdefs.h <<_ACEOF
15623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624_ACEOF
15625
15626fi
15627
15628done
15629
15630
15631
15632
15633
15634
15635
15636for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15637do
15638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643  echo $ECHO_N "(cached) $ECHO_C" >&6
15644fi
15645ac_res=`eval echo '${'$as_ac_Header'}'`
15646	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15647echo "${ECHO_T}$ac_res" >&6; }
15648else
15649  # Is the header compilable?
15650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15652cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h.  */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h.  */
15658$ac_includes_default
15659#include <$ac_header>
15660_ACEOF
15661rm -f conftest.$ac_objext
15662if { (ac_try="$ac_compile"
15663case "(($ac_try" in
15664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665  *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668  (eval "$ac_compile") 2>conftest.er1
15669  ac_status=$?
15670  grep -v '^ *+' conftest.er1 >conftest.err
15671  rm -f conftest.er1
15672  cat conftest.err >&5
15673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674  (exit $ac_status); } &&
15675	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676  { (case "(($ac_try" in
15677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678  *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681  (eval "$ac_try") 2>&5
15682  ac_status=$?
15683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684  (exit $ac_status); }; } &&
15685	 { ac_try='test -s conftest.$ac_objext'
15686  { (case "(($ac_try" in
15687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688  *) ac_try_echo=$ac_try;;
15689esac
15690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691  (eval "$ac_try") 2>&5
15692  ac_status=$?
15693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694  (exit $ac_status); }; }; then
15695  ac_header_compiler=yes
15696else
15697  echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700	ac_header_compiler=no
15701fi
15702
15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15705echo "${ECHO_T}$ac_header_compiler" >&6; }
15706
15707# Is the header present?
15708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15710cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h.  */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
15715/* end confdefs.h.  */
15716#include <$ac_header>
15717_ACEOF
15718if { (ac_try="$ac_cpp conftest.$ac_ext"
15719case "(($ac_try" in
15720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721  *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15725  ac_status=$?
15726  grep -v '^ *+' conftest.er1 >conftest.err
15727  rm -f conftest.er1
15728  cat conftest.err >&5
15729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730  (exit $ac_status); } >/dev/null; then
15731  if test -s conftest.err; then
15732    ac_cpp_err=$ac_c_preproc_warn_flag
15733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734  else
15735    ac_cpp_err=
15736  fi
15737else
15738  ac_cpp_err=yes
15739fi
15740if test -z "$ac_cpp_err"; then
15741  ac_header_preproc=yes
15742else
15743  echo "$as_me: failed program was:" >&5
15744sed 's/^/| /' conftest.$ac_ext >&5
15745
15746  ac_header_preproc=no
15747fi
15748
15749rm -f conftest.err conftest.$ac_ext
15750{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751echo "${ECHO_T}$ac_header_preproc" >&6; }
15752
15753# So?  What about this header?
15754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15755  yes:no: )
15756    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15760    ac_header_preproc=yes
15761    ;;
15762  no:yes:* )
15763    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15765    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15766echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15767    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15769    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15770echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15773    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15775    ( cat <<\_ASBOX
15776## ----------------------------------- ##
15777## Report this to llvmbugs@cs.uiuc.edu ##
15778## ----------------------------------- ##
15779_ASBOX
15780     ) | sed "s/^/$as_me: WARNING:     /" >&2
15781    ;;
15782esac
15783{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786  echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
15788  eval "$as_ac_Header=\$ac_header_preproc"
15789fi
15790ac_res=`eval echo '${'$as_ac_Header'}'`
15791	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15792echo "${ECHO_T}$ac_res" >&6; }
15793
15794fi
15795if test `eval echo '${'$as_ac_Header'}'` = yes; then
15796  cat >>confdefs.h <<_ACEOF
15797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15798_ACEOF
15799
15800fi
15801
15802done
15803
15804
15805
15806for ac_header in utime.h windows.h
15807do
15808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813  echo $ECHO_N "(cached) $ECHO_C" >&6
15814fi
15815ac_res=`eval echo '${'$as_ac_Header'}'`
15816	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15817echo "${ECHO_T}$ac_res" >&6; }
15818else
15819  # Is the header compilable?
15820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h.  */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h.  */
15828$ac_includes_default
15829#include <$ac_header>
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (ac_try="$ac_compile"
15833case "(($ac_try" in
15834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835  *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838  (eval "$ac_compile") 2>conftest.er1
15839  ac_status=$?
15840  grep -v '^ *+' conftest.er1 >conftest.err
15841  rm -f conftest.er1
15842  cat conftest.err >&5
15843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844  (exit $ac_status); } &&
15845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846  { (case "(($ac_try" in
15847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848  *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851  (eval "$ac_try") 2>&5
15852  ac_status=$?
15853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854  (exit $ac_status); }; } &&
15855	 { ac_try='test -s conftest.$ac_objext'
15856  { (case "(($ac_try" in
15857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858  *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861  (eval "$ac_try") 2>&5
15862  ac_status=$?
15863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864  (exit $ac_status); }; }; then
15865  ac_header_compiler=yes
15866else
15867  echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870	ac_header_compiler=no
15871fi
15872
15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15875echo "${ECHO_T}$ac_header_compiler" >&6; }
15876
15877# Is the header present?
15878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15880cat >conftest.$ac_ext <<_ACEOF
15881/* confdefs.h.  */
15882_ACEOF
15883cat confdefs.h >>conftest.$ac_ext
15884cat >>conftest.$ac_ext <<_ACEOF
15885/* end confdefs.h.  */
15886#include <$ac_header>
15887_ACEOF
15888if { (ac_try="$ac_cpp conftest.$ac_ext"
15889case "(($ac_try" in
15890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891  *) ac_try_echo=$ac_try;;
15892esac
15893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15895  ac_status=$?
15896  grep -v '^ *+' conftest.er1 >conftest.err
15897  rm -f conftest.er1
15898  cat conftest.err >&5
15899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900  (exit $ac_status); } >/dev/null; then
15901  if test -s conftest.err; then
15902    ac_cpp_err=$ac_c_preproc_warn_flag
15903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904  else
15905    ac_cpp_err=
15906  fi
15907else
15908  ac_cpp_err=yes
15909fi
15910if test -z "$ac_cpp_err"; then
15911  ac_header_preproc=yes
15912else
15913  echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916  ac_header_preproc=no
15917fi
15918
15919rm -f conftest.err conftest.$ac_ext
15920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15921echo "${ECHO_T}$ac_header_preproc" >&6; }
15922
15923# So?  What about this header?
15924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925  yes:no: )
15926    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15928    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15930    ac_header_preproc=yes
15931    ;;
15932  no:yes:* )
15933    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15935    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15936echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15937    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15939    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15940echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15941    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15943    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15945    ( cat <<\_ASBOX
15946## ----------------------------------- ##
15947## Report this to llvmbugs@cs.uiuc.edu ##
15948## ----------------------------------- ##
15949_ASBOX
15950     ) | sed "s/^/$as_me: WARNING:     /" >&2
15951    ;;
15952esac
15953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956  echo $ECHO_N "(cached) $ECHO_C" >&6
15957else
15958  eval "$as_ac_Header=\$ac_header_preproc"
15959fi
15960ac_res=`eval echo '${'$as_ac_Header'}'`
15961	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15962echo "${ECHO_T}$ac_res" >&6; }
15963
15964fi
15965if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966  cat >>confdefs.h <<_ACEOF
15967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968_ACEOF
15969
15970fi
15971
15972done
15973
15974
15975
15976
15977
15978for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15979do
15980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985  echo $ECHO_N "(cached) $ECHO_C" >&6
15986fi
15987ac_res=`eval echo '${'$as_ac_Header'}'`
15988	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15989echo "${ECHO_T}$ac_res" >&6; }
15990else
15991  # Is the header compilable?
15992{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15994cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h.  */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h.  */
16000$ac_includes_default
16001#include <$ac_header>
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (ac_try="$ac_compile"
16005case "(($ac_try" in
16006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007  *) ac_try_echo=$ac_try;;
16008esac
16009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010  (eval "$ac_compile") 2>conftest.er1
16011  ac_status=$?
16012  grep -v '^ *+' conftest.er1 >conftest.err
16013  rm -f conftest.er1
16014  cat conftest.err >&5
16015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016  (exit $ac_status); } &&
16017	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16018  { (case "(($ac_try" in
16019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020  *) ac_try_echo=$ac_try;;
16021esac
16022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023  (eval "$ac_try") 2>&5
16024  ac_status=$?
16025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026  (exit $ac_status); }; } &&
16027	 { ac_try='test -s conftest.$ac_objext'
16028  { (case "(($ac_try" in
16029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030  *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033  (eval "$ac_try") 2>&5
16034  ac_status=$?
16035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036  (exit $ac_status); }; }; then
16037  ac_header_compiler=yes
16038else
16039  echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042	ac_header_compiler=no
16043fi
16044
16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16047echo "${ECHO_T}$ac_header_compiler" >&6; }
16048
16049# Is the header present?
16050{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16052cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h.  */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h.  */
16058#include <$ac_header>
16059_ACEOF
16060if { (ac_try="$ac_cpp conftest.$ac_ext"
16061case "(($ac_try" in
16062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063  *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16067  ac_status=$?
16068  grep -v '^ *+' conftest.er1 >conftest.err
16069  rm -f conftest.er1
16070  cat conftest.err >&5
16071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072  (exit $ac_status); } >/dev/null; then
16073  if test -s conftest.err; then
16074    ac_cpp_err=$ac_c_preproc_warn_flag
16075    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16076  else
16077    ac_cpp_err=
16078  fi
16079else
16080  ac_cpp_err=yes
16081fi
16082if test -z "$ac_cpp_err"; then
16083  ac_header_preproc=yes
16084else
16085  echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088  ac_header_preproc=no
16089fi
16090
16091rm -f conftest.err conftest.$ac_ext
16092{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16093echo "${ECHO_T}$ac_header_preproc" >&6; }
16094
16095# So?  What about this header?
16096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16097  yes:no: )
16098    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16102    ac_header_preproc=yes
16103    ;;
16104  no:yes:* )
16105    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16107    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16108echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16109    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16111    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16112echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16113    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16115    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16117    ( cat <<\_ASBOX
16118## ----------------------------------- ##
16119## Report this to llvmbugs@cs.uiuc.edu ##
16120## ----------------------------------- ##
16121_ASBOX
16122     ) | sed "s/^/$as_me: WARNING:     /" >&2
16123    ;;
16124esac
16125{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  eval "$as_ac_Header=\$ac_header_preproc"
16131fi
16132ac_res=`eval echo '${'$as_ac_Header'}'`
16133	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16134echo "${ECHO_T}$ac_res" >&6; }
16135
16136fi
16137if test `eval echo '${'$as_ac_Header'}'` = yes; then
16138  cat >>confdefs.h <<_ACEOF
16139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16140_ACEOF
16141
16142fi
16143
16144done
16145
16146
16147
16148
16149
16150for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16151do
16152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157  echo $ECHO_N "(cached) $ECHO_C" >&6
16158fi
16159ac_res=`eval echo '${'$as_ac_Header'}'`
16160	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16161echo "${ECHO_T}$ac_res" >&6; }
16162else
16163  # Is the header compilable?
16164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h.  */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h.  */
16172$ac_includes_default
16173#include <$ac_header>
16174_ACEOF
16175rm -f conftest.$ac_objext
16176if { (ac_try="$ac_compile"
16177case "(($ac_try" in
16178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179  *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182  (eval "$ac_compile") 2>conftest.er1
16183  ac_status=$?
16184  grep -v '^ *+' conftest.er1 >conftest.err
16185  rm -f conftest.er1
16186  cat conftest.err >&5
16187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188  (exit $ac_status); } &&
16189	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16190  { (case "(($ac_try" in
16191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192  *) ac_try_echo=$ac_try;;
16193esac
16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195  (eval "$ac_try") 2>&5
16196  ac_status=$?
16197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198  (exit $ac_status); }; } &&
16199	 { ac_try='test -s conftest.$ac_objext'
16200  { (case "(($ac_try" in
16201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202  *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205  (eval "$ac_try") 2>&5
16206  ac_status=$?
16207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208  (exit $ac_status); }; }; then
16209  ac_header_compiler=yes
16210else
16211  echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214	ac_header_compiler=no
16215fi
16216
16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219echo "${ECHO_T}$ac_header_compiler" >&6; }
16220
16221# Is the header present?
16222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16224cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h.  */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h.  */
16230#include <$ac_header>
16231_ACEOF
16232if { (ac_try="$ac_cpp conftest.$ac_ext"
16233case "(($ac_try" in
16234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235  *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16239  ac_status=$?
16240  grep -v '^ *+' conftest.er1 >conftest.err
16241  rm -f conftest.er1
16242  cat conftest.err >&5
16243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244  (exit $ac_status); } >/dev/null; then
16245  if test -s conftest.err; then
16246    ac_cpp_err=$ac_c_preproc_warn_flag
16247    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16248  else
16249    ac_cpp_err=
16250  fi
16251else
16252  ac_cpp_err=yes
16253fi
16254if test -z "$ac_cpp_err"; then
16255  ac_header_preproc=yes
16256else
16257  echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260  ac_header_preproc=no
16261fi
16262
16263rm -f conftest.err conftest.$ac_ext
16264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16265echo "${ECHO_T}$ac_header_preproc" >&6; }
16266
16267# So?  What about this header?
16268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269  yes:no: )
16270    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16272    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16274    ac_header_preproc=yes
16275    ;;
16276  no:yes:* )
16277    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16279    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16280echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16281    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16283    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16284echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16285    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16287    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16289    ( cat <<\_ASBOX
16290## ----------------------------------- ##
16291## Report this to llvmbugs@cs.uiuc.edu ##
16292## ----------------------------------- ##
16293_ASBOX
16294     ) | sed "s/^/$as_me: WARNING:     /" >&2
16295    ;;
16296esac
16297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300  echo $ECHO_N "(cached) $ECHO_C" >&6
16301else
16302  eval "$as_ac_Header=\$ac_header_preproc"
16303fi
16304ac_res=`eval echo '${'$as_ac_Header'}'`
16305	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16306echo "${ECHO_T}$ac_res" >&6; }
16307
16308fi
16309if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310  cat >>confdefs.h <<_ACEOF
16311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16312_ACEOF
16313
16314fi
16315
16316done
16317
16318
16319for ac_header in valgrind/valgrind.h
16320do
16321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326  echo $ECHO_N "(cached) $ECHO_C" >&6
16327fi
16328ac_res=`eval echo '${'$as_ac_Header'}'`
16329	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16330echo "${ECHO_T}$ac_res" >&6; }
16331else
16332  # Is the header compilable?
16333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16335cat >conftest.$ac_ext <<_ACEOF
16336/* confdefs.h.  */
16337_ACEOF
16338cat confdefs.h >>conftest.$ac_ext
16339cat >>conftest.$ac_ext <<_ACEOF
16340/* end confdefs.h.  */
16341$ac_includes_default
16342#include <$ac_header>
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (ac_try="$ac_compile"
16346case "(($ac_try" in
16347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348  *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351  (eval "$ac_compile") 2>conftest.er1
16352  ac_status=$?
16353  grep -v '^ *+' conftest.er1 >conftest.err
16354  rm -f conftest.er1
16355  cat conftest.err >&5
16356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357  (exit $ac_status); } &&
16358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359  { (case "(($ac_try" in
16360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361  *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364  (eval "$ac_try") 2>&5
16365  ac_status=$?
16366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367  (exit $ac_status); }; } &&
16368	 { ac_try='test -s conftest.$ac_objext'
16369  { (case "(($ac_try" in
16370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371  *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374  (eval "$ac_try") 2>&5
16375  ac_status=$?
16376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377  (exit $ac_status); }; }; then
16378  ac_header_compiler=yes
16379else
16380  echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383	ac_header_compiler=no
16384fi
16385
16386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388echo "${ECHO_T}$ac_header_compiler" >&6; }
16389
16390# Is the header present?
16391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h.  */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h.  */
16399#include <$ac_header>
16400_ACEOF
16401if { (ac_try="$ac_cpp conftest.$ac_ext"
16402case "(($ac_try" in
16403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404  *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408  ac_status=$?
16409  grep -v '^ *+' conftest.er1 >conftest.err
16410  rm -f conftest.er1
16411  cat conftest.err >&5
16412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413  (exit $ac_status); } >/dev/null; then
16414  if test -s conftest.err; then
16415    ac_cpp_err=$ac_c_preproc_warn_flag
16416    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417  else
16418    ac_cpp_err=
16419  fi
16420else
16421  ac_cpp_err=yes
16422fi
16423if test -z "$ac_cpp_err"; then
16424  ac_header_preproc=yes
16425else
16426  echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429  ac_header_preproc=no
16430fi
16431
16432rm -f conftest.err conftest.$ac_ext
16433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16434echo "${ECHO_T}$ac_header_preproc" >&6; }
16435
16436# So?  What about this header?
16437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438  yes:no: )
16439    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16443    ac_header_preproc=yes
16444    ;;
16445  no:yes:* )
16446    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16448    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16449echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16450    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16452    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16453echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16454    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16456    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458    ( cat <<\_ASBOX
16459## ----------------------------------- ##
16460## Report this to llvmbugs@cs.uiuc.edu ##
16461## ----------------------------------- ##
16462_ASBOX
16463     ) | sed "s/^/$as_me: WARNING:     /" >&2
16464    ;;
16465esac
16466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469  echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471  eval "$as_ac_Header=\$ac_header_preproc"
16472fi
16473ac_res=`eval echo '${'$as_ac_Header'}'`
16474	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16475echo "${ECHO_T}$ac_res" >&6; }
16476
16477fi
16478if test `eval echo '${'$as_ac_Header'}'` = yes; then
16479  cat >>confdefs.h <<_ACEOF
16480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16481_ACEOF
16482
16483fi
16484
16485done
16486
16487if test "$ENABLE_THREADS" -eq 1 ; then
16488
16489for ac_header in pthread.h
16490do
16491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496  echo $ECHO_N "(cached) $ECHO_C" >&6
16497fi
16498ac_res=`eval echo '${'$as_ac_Header'}'`
16499	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16500echo "${ECHO_T}$ac_res" >&6; }
16501else
16502  # Is the header compilable?
16503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h.  */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h.  */
16511$ac_includes_default
16512#include <$ac_header>
16513_ACEOF
16514rm -f conftest.$ac_objext
16515if { (ac_try="$ac_compile"
16516case "(($ac_try" in
16517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518  *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521  (eval "$ac_compile") 2>conftest.er1
16522  ac_status=$?
16523  grep -v '^ *+' conftest.er1 >conftest.err
16524  rm -f conftest.er1
16525  cat conftest.err >&5
16526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527  (exit $ac_status); } &&
16528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529  { (case "(($ac_try" in
16530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531  *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534  (eval "$ac_try") 2>&5
16535  ac_status=$?
16536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537  (exit $ac_status); }; } &&
16538	 { ac_try='test -s conftest.$ac_objext'
16539  { (case "(($ac_try" in
16540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541  *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544  (eval "$ac_try") 2>&5
16545  ac_status=$?
16546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547  (exit $ac_status); }; }; then
16548  ac_header_compiler=yes
16549else
16550  echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553	ac_header_compiler=no
16554fi
16555
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558echo "${ECHO_T}$ac_header_compiler" >&6; }
16559
16560# Is the header present?
16561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h.  */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h.  */
16569#include <$ac_header>
16570_ACEOF
16571if { (ac_try="$ac_cpp conftest.$ac_ext"
16572case "(($ac_try" in
16573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574  *) ac_try_echo=$ac_try;;
16575esac
16576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578  ac_status=$?
16579  grep -v '^ *+' conftest.er1 >conftest.err
16580  rm -f conftest.er1
16581  cat conftest.err >&5
16582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583  (exit $ac_status); } >/dev/null; then
16584  if test -s conftest.err; then
16585    ac_cpp_err=$ac_c_preproc_warn_flag
16586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16587  else
16588    ac_cpp_err=
16589  fi
16590else
16591  ac_cpp_err=yes
16592fi
16593if test -z "$ac_cpp_err"; then
16594  ac_header_preproc=yes
16595else
16596  echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599  ac_header_preproc=no
16600fi
16601
16602rm -f conftest.err conftest.$ac_ext
16603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604echo "${ECHO_T}$ac_header_preproc" >&6; }
16605
16606# So?  What about this header?
16607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608  yes:no: )
16609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613    ac_header_preproc=yes
16614    ;;
16615  no:yes:* )
16616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16628    ( cat <<\_ASBOX
16629## ----------------------------------- ##
16630## Report this to llvmbugs@cs.uiuc.edu ##
16631## ----------------------------------- ##
16632_ASBOX
16633     ) | sed "s/^/$as_me: WARNING:     /" >&2
16634    ;;
16635esac
16636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639  echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641  eval "$as_ac_Header=\$ac_header_preproc"
16642fi
16643ac_res=`eval echo '${'$as_ac_Header'}'`
16644	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16645echo "${ECHO_T}$ac_res" >&6; }
16646
16647fi
16648if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649  cat >>confdefs.h <<_ACEOF
16650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16651_ACEOF
16652 HAVE_PTHREAD=1
16653
16654else
16655  HAVE_PTHREAD=0
16656
16657fi
16658
16659done
16660
16661else
16662  HAVE_PTHREAD=0
16663
16664fi
16665
16666if test "$llvm_cv_enable_libffi" = "yes" ; then
16667
16668
16669for ac_header in ffi.h ffi/ffi.h
16670do
16671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16673  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16676  echo $ECHO_N "(cached) $ECHO_C" >&6
16677fi
16678ac_res=`eval echo '${'$as_ac_Header'}'`
16679	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16680echo "${ECHO_T}$ac_res" >&6; }
16681else
16682  # Is the header compilable?
16683{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16685cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h.  */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h.  */
16691$ac_includes_default
16692#include <$ac_header>
16693_ACEOF
16694rm -f conftest.$ac_objext
16695if { (ac_try="$ac_compile"
16696case "(($ac_try" in
16697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698  *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701  (eval "$ac_compile") 2>conftest.er1
16702  ac_status=$?
16703  grep -v '^ *+' conftest.er1 >conftest.err
16704  rm -f conftest.er1
16705  cat conftest.err >&5
16706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707  (exit $ac_status); } &&
16708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709  { (case "(($ac_try" in
16710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711  *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714  (eval "$ac_try") 2>&5
16715  ac_status=$?
16716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717  (exit $ac_status); }; } &&
16718	 { ac_try='test -s conftest.$ac_objext'
16719  { (case "(($ac_try" in
16720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721  *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724  (eval "$ac_try") 2>&5
16725  ac_status=$?
16726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727  (exit $ac_status); }; }; then
16728  ac_header_compiler=yes
16729else
16730  echo "$as_me: failed program was:" >&5
16731sed 's/^/| /' conftest.$ac_ext >&5
16732
16733	ac_header_compiler=no
16734fi
16735
16736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16738echo "${ECHO_T}$ac_header_compiler" >&6; }
16739
16740# Is the header present?
16741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16743cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h.  */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h.  */
16749#include <$ac_header>
16750_ACEOF
16751if { (ac_try="$ac_cpp conftest.$ac_ext"
16752case "(($ac_try" in
16753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754  *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16758  ac_status=$?
16759  grep -v '^ *+' conftest.er1 >conftest.err
16760  rm -f conftest.er1
16761  cat conftest.err >&5
16762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); } >/dev/null; then
16764  if test -s conftest.err; then
16765    ac_cpp_err=$ac_c_preproc_warn_flag
16766    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16767  else
16768    ac_cpp_err=
16769  fi
16770else
16771  ac_cpp_err=yes
16772fi
16773if test -z "$ac_cpp_err"; then
16774  ac_header_preproc=yes
16775else
16776  echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779  ac_header_preproc=no
16780fi
16781
16782rm -f conftest.err conftest.$ac_ext
16783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784echo "${ECHO_T}$ac_header_preproc" >&6; }
16785
16786# So?  What about this header?
16787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16788  yes:no: )
16789    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793    ac_header_preproc=yes
16794    ;;
16795  no:yes:* )
16796    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16799echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16800    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16803echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16808    ( cat <<\_ASBOX
16809## ----------------------------------- ##
16810## Report this to llvmbugs@cs.uiuc.edu ##
16811## ----------------------------------- ##
16812_ASBOX
16813     ) | sed "s/^/$as_me: WARNING:     /" >&2
16814    ;;
16815esac
16816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16819  echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821  eval "$as_ac_Header=\$ac_header_preproc"
16822fi
16823ac_res=`eval echo '${'$as_ac_Header'}'`
16824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16825echo "${ECHO_T}$ac_res" >&6; }
16826
16827fi
16828if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829  cat >>confdefs.h <<_ACEOF
16830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16831_ACEOF
16832
16833fi
16834
16835done
16836
16837fi
16838
16839
16840
16841
16842  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16843echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16844if test "${ac_cv_huge_val_sanity+set}" = set; then
16845  echo $ECHO_N "(cached) $ECHO_C" >&6
16846else
16847
16848    ac_ext=cpp
16849ac_cpp='$CXXCPP $CPPFLAGS'
16850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16853
16854    ac_save_CXXFLAGS=$CXXFLAGS
16855    CXXFLAGS=-pedantic
16856    if test "$cross_compiling" = yes; then
16857  ac_cv_huge_val_sanity=yes
16858else
16859  cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h.  */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h.  */
16865#include <math.h>
16866int
16867main ()
16868{
16869double x = HUGE_VAL; return x != x;
16870  ;
16871  return 0;
16872}
16873_ACEOF
16874rm -f conftest$ac_exeext
16875if { (ac_try="$ac_link"
16876case "(($ac_try" in
16877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878  *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881  (eval "$ac_link") 2>&5
16882  ac_status=$?
16883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885  { (case "(($ac_try" in
16886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887  *) ac_try_echo=$ac_try;;
16888esac
16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890  (eval "$ac_try") 2>&5
16891  ac_status=$?
16892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893  (exit $ac_status); }; }; then
16894  ac_cv_huge_val_sanity=yes
16895else
16896  echo "$as_me: program exited with status $ac_status" >&5
16897echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900( exit $ac_status )
16901ac_cv_huge_val_sanity=no
16902fi
16903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16904fi
16905
16906
16907    CXXFLAGS=$ac_save_CXXFLAGS
16908    ac_ext=c
16909ac_cpp='$CPP $CPPFLAGS'
16910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16912ac_compiler_gnu=$ac_cv_c_compiler_gnu
16913
16914
16915fi
16916{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16917echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16918  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16919
16920
16921{ echo "$as_me:$LINENO: checking for pid_t" >&5
16922echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16923if test "${ac_cv_type_pid_t+set}" = set; then
16924  echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926  cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h.  */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h.  */
16932$ac_includes_default
16933typedef pid_t ac__type_new_;
16934int
16935main ()
16936{
16937if ((ac__type_new_ *) 0)
16938  return 0;
16939if (sizeof (ac__type_new_))
16940  return 0;
16941  ;
16942  return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (ac_try="$ac_compile"
16947case "(($ac_try" in
16948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949  *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952  (eval "$ac_compile") 2>conftest.er1
16953  ac_status=$?
16954  grep -v '^ *+' conftest.er1 >conftest.err
16955  rm -f conftest.er1
16956  cat conftest.err >&5
16957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958  (exit $ac_status); } &&
16959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960  { (case "(($ac_try" in
16961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962  *) ac_try_echo=$ac_try;;
16963esac
16964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965  (eval "$ac_try") 2>&5
16966  ac_status=$?
16967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968  (exit $ac_status); }; } &&
16969	 { ac_try='test -s conftest.$ac_objext'
16970  { (case "(($ac_try" in
16971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972  *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975  (eval "$ac_try") 2>&5
16976  ac_status=$?
16977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978  (exit $ac_status); }; }; then
16979  ac_cv_type_pid_t=yes
16980else
16981  echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984	ac_cv_type_pid_t=no
16985fi
16986
16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988fi
16989{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16990echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16991if test $ac_cv_type_pid_t = yes; then
16992  :
16993else
16994
16995cat >>confdefs.h <<_ACEOF
16996#define pid_t int
16997_ACEOF
16998
16999fi
17000
17001{ echo "$as_me:$LINENO: checking for size_t" >&5
17002echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17003if test "${ac_cv_type_size_t+set}" = set; then
17004  echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006  cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h.  */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h.  */
17012$ac_includes_default
17013typedef size_t ac__type_new_;
17014int
17015main ()
17016{
17017if ((ac__type_new_ *) 0)
17018  return 0;
17019if (sizeof (ac__type_new_))
17020  return 0;
17021  ;
17022  return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (ac_try="$ac_compile"
17027case "(($ac_try" in
17028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029  *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032  (eval "$ac_compile") 2>conftest.er1
17033  ac_status=$?
17034  grep -v '^ *+' conftest.er1 >conftest.err
17035  rm -f conftest.er1
17036  cat conftest.err >&5
17037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038  (exit $ac_status); } &&
17039	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040  { (case "(($ac_try" in
17041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042  *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045  (eval "$ac_try") 2>&5
17046  ac_status=$?
17047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048  (exit $ac_status); }; } &&
17049	 { ac_try='test -s conftest.$ac_objext'
17050  { (case "(($ac_try" in
17051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052  *) ac_try_echo=$ac_try;;
17053esac
17054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055  (eval "$ac_try") 2>&5
17056  ac_status=$?
17057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058  (exit $ac_status); }; }; then
17059  ac_cv_type_size_t=yes
17060else
17061  echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064	ac_cv_type_size_t=no
17065fi
17066
17067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068fi
17069{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17070echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17071if test $ac_cv_type_size_t = yes; then
17072  :
17073else
17074
17075cat >>confdefs.h <<_ACEOF
17076#define size_t unsigned int
17077_ACEOF
17078
17079fi
17080
17081
17082cat >>confdefs.h <<_ACEOF
17083#define RETSIGTYPE void
17084_ACEOF
17085
17086{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17087echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17088if test "${ac_cv_struct_tm+set}" = set; then
17089  echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
17091  cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h.  */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h.  */
17097#include <sys/types.h>
17098#include <time.h>
17099
17100int
17101main ()
17102{
17103struct tm *tp; tp->tm_sec;
17104  ;
17105  return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (ac_try="$ac_compile"
17110case "(($ac_try" in
17111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112  *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115  (eval "$ac_compile") 2>conftest.er1
17116  ac_status=$?
17117  grep -v '^ *+' conftest.er1 >conftest.err
17118  rm -f conftest.er1
17119  cat conftest.err >&5
17120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121  (exit $ac_status); } &&
17122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123  { (case "(($ac_try" in
17124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125  *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128  (eval "$ac_try") 2>&5
17129  ac_status=$?
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); }; } &&
17132	 { ac_try='test -s conftest.$ac_objext'
17133  { (case "(($ac_try" in
17134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135  *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138  (eval "$ac_try") 2>&5
17139  ac_status=$?
17140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141  (exit $ac_status); }; }; then
17142  ac_cv_struct_tm=time.h
17143else
17144  echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147	ac_cv_struct_tm=sys/time.h
17148fi
17149
17150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151fi
17152{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17153echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17154if test $ac_cv_struct_tm = sys/time.h; then
17155
17156cat >>confdefs.h <<\_ACEOF
17157#define TM_IN_SYS_TIME 1
17158_ACEOF
17159
17160fi
17161
17162{ echo "$as_me:$LINENO: checking for int64_t" >&5
17163echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17164if test "${ac_cv_type_int64_t+set}" = set; then
17165  echo $ECHO_N "(cached) $ECHO_C" >&6
17166else
17167  cat >conftest.$ac_ext <<_ACEOF
17168/* confdefs.h.  */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h.  */
17173$ac_includes_default
17174typedef int64_t ac__type_new_;
17175int
17176main ()
17177{
17178if ((ac__type_new_ *) 0)
17179  return 0;
17180if (sizeof (ac__type_new_))
17181  return 0;
17182  ;
17183  return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (ac_try="$ac_compile"
17188case "(($ac_try" in
17189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190  *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193  (eval "$ac_compile") 2>conftest.er1
17194  ac_status=$?
17195  grep -v '^ *+' conftest.er1 >conftest.err
17196  rm -f conftest.er1
17197  cat conftest.err >&5
17198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199  (exit $ac_status); } &&
17200	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201  { (case "(($ac_try" in
17202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203  *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206  (eval "$ac_try") 2>&5
17207  ac_status=$?
17208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209  (exit $ac_status); }; } &&
17210	 { ac_try='test -s conftest.$ac_objext'
17211  { (case "(($ac_try" in
17212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213  *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216  (eval "$ac_try") 2>&5
17217  ac_status=$?
17218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219  (exit $ac_status); }; }; then
17220  ac_cv_type_int64_t=yes
17221else
17222  echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225	ac_cv_type_int64_t=no
17226fi
17227
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17231echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17232if test $ac_cv_type_int64_t = yes; then
17233
17234cat >>confdefs.h <<_ACEOF
17235#define HAVE_INT64_T 1
17236_ACEOF
17237
17238
17239else
17240  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17241echo "$as_me: error: Type int64_t required but not found" >&2;}
17242   { (exit 1); exit 1; }; }
17243fi
17244
17245{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17246echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17247if test "${ac_cv_type_uint64_t+set}" = set; then
17248  echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250  cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h.  */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h.  */
17256$ac_includes_default
17257typedef uint64_t ac__type_new_;
17258int
17259main ()
17260{
17261if ((ac__type_new_ *) 0)
17262  return 0;
17263if (sizeof (ac__type_new_))
17264  return 0;
17265  ;
17266  return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (ac_try="$ac_compile"
17271case "(($ac_try" in
17272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273  *) ac_try_echo=$ac_try;;
17274esac
17275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276  (eval "$ac_compile") 2>conftest.er1
17277  ac_status=$?
17278  grep -v '^ *+' conftest.er1 >conftest.err
17279  rm -f conftest.er1
17280  cat conftest.err >&5
17281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282  (exit $ac_status); } &&
17283	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284  { (case "(($ac_try" in
17285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286  *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289  (eval "$ac_try") 2>&5
17290  ac_status=$?
17291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292  (exit $ac_status); }; } &&
17293	 { ac_try='test -s conftest.$ac_objext'
17294  { (case "(($ac_try" in
17295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296  *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299  (eval "$ac_try") 2>&5
17300  ac_status=$?
17301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302  (exit $ac_status); }; }; then
17303  ac_cv_type_uint64_t=yes
17304else
17305  echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308	ac_cv_type_uint64_t=no
17309fi
17310
17311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312fi
17313{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17314echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17315if test $ac_cv_type_uint64_t = yes; then
17316
17317cat >>confdefs.h <<_ACEOF
17318#define HAVE_UINT64_T 1
17319_ACEOF
17320
17321
17322else
17323  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17324echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17325if test "${ac_cv_type_u_int64_t+set}" = set; then
17326  echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328  cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h.  */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h.  */
17334$ac_includes_default
17335typedef u_int64_t ac__type_new_;
17336int
17337main ()
17338{
17339if ((ac__type_new_ *) 0)
17340  return 0;
17341if (sizeof (ac__type_new_))
17342  return 0;
17343  ;
17344  return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext
17348if { (ac_try="$ac_compile"
17349case "(($ac_try" in
17350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351  *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354  (eval "$ac_compile") 2>conftest.er1
17355  ac_status=$?
17356  grep -v '^ *+' conftest.er1 >conftest.err
17357  rm -f conftest.er1
17358  cat conftest.err >&5
17359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360  (exit $ac_status); } &&
17361	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362  { (case "(($ac_try" in
17363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364  *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367  (eval "$ac_try") 2>&5
17368  ac_status=$?
17369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370  (exit $ac_status); }; } &&
17371	 { ac_try='test -s conftest.$ac_objext'
17372  { (case "(($ac_try" in
17373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374  *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377  (eval "$ac_try") 2>&5
17378  ac_status=$?
17379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380  (exit $ac_status); }; }; then
17381  ac_cv_type_u_int64_t=yes
17382else
17383  echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386	ac_cv_type_u_int64_t=no
17387fi
17388
17389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390fi
17391{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17392echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17393if test $ac_cv_type_u_int64_t = yes; then
17394
17395cat >>confdefs.h <<_ACEOF
17396#define HAVE_U_INT64_T 1
17397_ACEOF
17398
17399
17400else
17401  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17402echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17403   { (exit 1); exit 1; }; }
17404fi
17405
17406fi
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17418do
17419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17423  echo $ECHO_N "(cached) $ECHO_C" >&6
17424else
17425  cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h.  */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h.  */
17431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17433#define $ac_func innocuous_$ac_func
17434
17435/* System header to define __stub macros and hopefully few prototypes,
17436    which can conflict with char $ac_func (); below.
17437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438    <limits.h> exists even on freestanding compilers.  */
17439
17440#ifdef __STDC__
17441# include <limits.h>
17442#else
17443# include <assert.h>
17444#endif
17445
17446#undef $ac_func
17447
17448/* Override any GCC internal prototype to avoid an error.
17449   Use char because int might match the return type of a GCC
17450   builtin and then its argument prototype would still apply.  */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454char $ac_func ();
17455/* The GNU C library defines this for functions which it implements
17456    to always fail with ENOSYS.  Some functions are actually named
17457    something starting with __ and the normal name is an alias.  */
17458#if defined __stub_$ac_func || defined __stub___$ac_func
17459choke me
17460#endif
17461
17462int
17463main ()
17464{
17465return $ac_func ();
17466  ;
17467  return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext conftest$ac_exeext
17471if { (ac_try="$ac_link"
17472case "(($ac_try" in
17473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474  *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477  (eval "$ac_link") 2>conftest.er1
17478  ac_status=$?
17479  grep -v '^ *+' conftest.er1 >conftest.err
17480  rm -f conftest.er1
17481  cat conftest.err >&5
17482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483  (exit $ac_status); } &&
17484	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17485  { (case "(($ac_try" in
17486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487  *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490  (eval "$ac_try") 2>&5
17491  ac_status=$?
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); }; } &&
17494	 { ac_try='test -s conftest$ac_exeext'
17495  { (case "(($ac_try" in
17496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497  *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500  (eval "$ac_try") 2>&5
17501  ac_status=$?
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); }; }; then
17504  eval "$as_ac_var=yes"
17505else
17506  echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509	eval "$as_ac_var=no"
17510fi
17511
17512rm -f core conftest.err conftest.$ac_objext \
17513      conftest$ac_exeext conftest.$ac_ext
17514fi
17515ac_res=`eval echo '${'$as_ac_var'}'`
17516	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17517echo "${ECHO_T}$ac_res" >&6; }
17518if test `eval echo '${'$as_ac_var'}'` = yes; then
17519  cat >>confdefs.h <<_ACEOF
17520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17521_ACEOF
17522
17523fi
17524done
17525
17526
17527
17528
17529
17530for ac_func in powf fmodf strtof round
17531do
17532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17536  echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538  cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h.  */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h.  */
17544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17546#define $ac_func innocuous_$ac_func
17547
17548/* System header to define __stub macros and hopefully few prototypes,
17549    which can conflict with char $ac_func (); below.
17550    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551    <limits.h> exists even on freestanding compilers.  */
17552
17553#ifdef __STDC__
17554# include <limits.h>
17555#else
17556# include <assert.h>
17557#endif
17558
17559#undef $ac_func
17560
17561/* Override any GCC internal prototype to avoid an error.
17562   Use char because int might match the return type of a GCC
17563   builtin and then its argument prototype would still apply.  */
17564#ifdef __cplusplus
17565extern "C"
17566#endif
17567char $ac_func ();
17568/* The GNU C library defines this for functions which it implements
17569    to always fail with ENOSYS.  Some functions are actually named
17570    something starting with __ and the normal name is an alias.  */
17571#if defined __stub_$ac_func || defined __stub___$ac_func
17572choke me
17573#endif
17574
17575int
17576main ()
17577{
17578return $ac_func ();
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (ac_try="$ac_link"
17585case "(($ac_try" in
17586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587  *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590  (eval "$ac_link") 2>conftest.er1
17591  ac_status=$?
17592  grep -v '^ *+' conftest.er1 >conftest.err
17593  rm -f conftest.er1
17594  cat conftest.err >&5
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); } &&
17597	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598  { (case "(($ac_try" in
17599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600  *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603  (eval "$ac_try") 2>&5
17604  ac_status=$?
17605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606  (exit $ac_status); }; } &&
17607	 { ac_try='test -s conftest$ac_exeext'
17608  { (case "(($ac_try" in
17609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610  *) ac_try_echo=$ac_try;;
17611esac
17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613  (eval "$ac_try") 2>&5
17614  ac_status=$?
17615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616  (exit $ac_status); }; }; then
17617  eval "$as_ac_var=yes"
17618else
17619  echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622	eval "$as_ac_var=no"
17623fi
17624
17625rm -f core conftest.err conftest.$ac_objext \
17626      conftest$ac_exeext conftest.$ac_ext
17627fi
17628ac_res=`eval echo '${'$as_ac_var'}'`
17629	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17630echo "${ECHO_T}$ac_res" >&6; }
17631if test `eval echo '${'$as_ac_var'}'` = yes; then
17632  cat >>confdefs.h <<_ACEOF
17633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17634_ACEOF
17635
17636fi
17637done
17638
17639
17640
17641
17642
17643
17644for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17645do
17646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17649if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17650  echo $ECHO_N "(cached) $ECHO_C" >&6
17651else
17652  cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h.  */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h.  */
17658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17659   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17660#define $ac_func innocuous_$ac_func
17661
17662/* System header to define __stub macros and hopefully few prototypes,
17663    which can conflict with char $ac_func (); below.
17664    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17665    <limits.h> exists even on freestanding compilers.  */
17666
17667#ifdef __STDC__
17668# include <limits.h>
17669#else
17670# include <assert.h>
17671#endif
17672
17673#undef $ac_func
17674
17675/* Override any GCC internal prototype to avoid an error.
17676   Use char because int might match the return type of a GCC
17677   builtin and then its argument prototype would still apply.  */
17678#ifdef __cplusplus
17679extern "C"
17680#endif
17681char $ac_func ();
17682/* The GNU C library defines this for functions which it implements
17683    to always fail with ENOSYS.  Some functions are actually named
17684    something starting with __ and the normal name is an alias.  */
17685#if defined __stub_$ac_func || defined __stub___$ac_func
17686choke me
17687#endif
17688
17689int
17690main ()
17691{
17692return $ac_func ();
17693  ;
17694  return 0;
17695}
17696_ACEOF
17697rm -f conftest.$ac_objext conftest$ac_exeext
17698if { (ac_try="$ac_link"
17699case "(($ac_try" in
17700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701  *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704  (eval "$ac_link") 2>conftest.er1
17705  ac_status=$?
17706  grep -v '^ *+' conftest.er1 >conftest.err
17707  rm -f conftest.er1
17708  cat conftest.err >&5
17709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710  (exit $ac_status); } &&
17711	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712  { (case "(($ac_try" in
17713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714  *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717  (eval "$ac_try") 2>&5
17718  ac_status=$?
17719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720  (exit $ac_status); }; } &&
17721	 { ac_try='test -s conftest$ac_exeext'
17722  { (case "(($ac_try" in
17723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724  *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727  (eval "$ac_try") 2>&5
17728  ac_status=$?
17729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730  (exit $ac_status); }; }; then
17731  eval "$as_ac_var=yes"
17732else
17733  echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736	eval "$as_ac_var=no"
17737fi
17738
17739rm -f core conftest.err conftest.$ac_objext \
17740      conftest$ac_exeext conftest.$ac_ext
17741fi
17742ac_res=`eval echo '${'$as_ac_var'}'`
17743	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17744echo "${ECHO_T}$ac_res" >&6; }
17745if test `eval echo '${'$as_ac_var'}'` = yes; then
17746  cat >>confdefs.h <<_ACEOF
17747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17748_ACEOF
17749
17750fi
17751done
17752
17753
17754
17755
17756for ac_func in isatty mkdtemp mkstemp
17757do
17758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17762  echo $ECHO_N "(cached) $ECHO_C" >&6
17763else
17764  cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h.  */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h.  */
17770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17772#define $ac_func innocuous_$ac_func
17773
17774/* System header to define __stub macros and hopefully few prototypes,
17775    which can conflict with char $ac_func (); below.
17776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777    <limits.h> exists even on freestanding compilers.  */
17778
17779#ifdef __STDC__
17780# include <limits.h>
17781#else
17782# include <assert.h>
17783#endif
17784
17785#undef $ac_func
17786
17787/* Override any GCC internal prototype to avoid an error.
17788   Use char because int might match the return type of a GCC
17789   builtin and then its argument prototype would still apply.  */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793char $ac_func ();
17794/* The GNU C library defines this for functions which it implements
17795    to always fail with ENOSYS.  Some functions are actually named
17796    something starting with __ and the normal name is an alias.  */
17797#if defined __stub_$ac_func || defined __stub___$ac_func
17798choke me
17799#endif
17800
17801int
17802main ()
17803{
17804return $ac_func ();
17805  ;
17806  return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (ac_try="$ac_link"
17811case "(($ac_try" in
17812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813  *) ac_try_echo=$ac_try;;
17814esac
17815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816  (eval "$ac_link") 2>conftest.er1
17817  ac_status=$?
17818  grep -v '^ *+' conftest.er1 >conftest.err
17819  rm -f conftest.er1
17820  cat conftest.err >&5
17821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); } &&
17823	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824  { (case "(($ac_try" in
17825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826  *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829  (eval "$ac_try") 2>&5
17830  ac_status=$?
17831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832  (exit $ac_status); }; } &&
17833	 { ac_try='test -s conftest$ac_exeext'
17834  { (case "(($ac_try" in
17835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836  *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839  (eval "$ac_try") 2>&5
17840  ac_status=$?
17841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842  (exit $ac_status); }; }; then
17843  eval "$as_ac_var=yes"
17844else
17845  echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848	eval "$as_ac_var=no"
17849fi
17850
17851rm -f core conftest.err conftest.$ac_objext \
17852      conftest$ac_exeext conftest.$ac_ext
17853fi
17854ac_res=`eval echo '${'$as_ac_var'}'`
17855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17856echo "${ECHO_T}$ac_res" >&6; }
17857if test `eval echo '${'$as_ac_var'}'` = yes; then
17858  cat >>confdefs.h <<_ACEOF
17859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17860_ACEOF
17861
17862fi
17863done
17864
17865
17866
17867
17868
17869
17870
17871for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17872do
17873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17874{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17877  echo $ECHO_N "(cached) $ECHO_C" >&6
17878else
17879  cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h.  */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h.  */
17885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17887#define $ac_func innocuous_$ac_func
17888
17889/* System header to define __stub macros and hopefully few prototypes,
17890    which can conflict with char $ac_func (); below.
17891    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892    <limits.h> exists even on freestanding compilers.  */
17893
17894#ifdef __STDC__
17895# include <limits.h>
17896#else
17897# include <assert.h>
17898#endif
17899
17900#undef $ac_func
17901
17902/* Override any GCC internal prototype to avoid an error.
17903   Use char because int might match the return type of a GCC
17904   builtin and then its argument prototype would still apply.  */
17905#ifdef __cplusplus
17906extern "C"
17907#endif
17908char $ac_func ();
17909/* The GNU C library defines this for functions which it implements
17910    to always fail with ENOSYS.  Some functions are actually named
17911    something starting with __ and the normal name is an alias.  */
17912#if defined __stub_$ac_func || defined __stub___$ac_func
17913choke me
17914#endif
17915
17916int
17917main ()
17918{
17919return $ac_func ();
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  eval "$as_ac_var=yes"
17959else
17960  echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963	eval "$as_ac_var=no"
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext \
17967      conftest$ac_exeext conftest.$ac_ext
17968fi
17969ac_res=`eval echo '${'$as_ac_var'}'`
17970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17971echo "${ECHO_T}$ac_res" >&6; }
17972if test `eval echo '${'$as_ac_var'}'` = yes; then
17973  cat >>confdefs.h <<_ACEOF
17974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17975_ACEOF
17976
17977fi
17978done
17979
17980
17981
17982
17983
17984for ac_func in strerror strerror_r strerror_s setenv
17985do
17986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17990  echo $ECHO_N "(cached) $ECHO_C" >&6
17991else
17992  cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h.  */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h.  */
17998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18000#define $ac_func innocuous_$ac_func
18001
18002/* System header to define __stub macros and hopefully few prototypes,
18003    which can conflict with char $ac_func (); below.
18004    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005    <limits.h> exists even on freestanding compilers.  */
18006
18007#ifdef __STDC__
18008# include <limits.h>
18009#else
18010# include <assert.h>
18011#endif
18012
18013#undef $ac_func
18014
18015/* Override any GCC internal prototype to avoid an error.
18016   Use char because int might match the return type of a GCC
18017   builtin and then its argument prototype would still apply.  */
18018#ifdef __cplusplus
18019extern "C"
18020#endif
18021char $ac_func ();
18022/* The GNU C library defines this for functions which it implements
18023    to always fail with ENOSYS.  Some functions are actually named
18024    something starting with __ and the normal name is an alias.  */
18025#if defined __stub_$ac_func || defined __stub___$ac_func
18026choke me
18027#endif
18028
18029int
18030main ()
18031{
18032return $ac_func ();
18033  ;
18034  return 0;
18035}
18036_ACEOF
18037rm -f conftest.$ac_objext conftest$ac_exeext
18038if { (ac_try="$ac_link"
18039case "(($ac_try" in
18040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041  *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044  (eval "$ac_link") 2>conftest.er1
18045  ac_status=$?
18046  grep -v '^ *+' conftest.er1 >conftest.err
18047  rm -f conftest.er1
18048  cat conftest.err >&5
18049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050  (exit $ac_status); } &&
18051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18052  { (case "(($ac_try" in
18053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054  *) ac_try_echo=$ac_try;;
18055esac
18056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057  (eval "$ac_try") 2>&5
18058  ac_status=$?
18059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060  (exit $ac_status); }; } &&
18061	 { ac_try='test -s conftest$ac_exeext'
18062  { (case "(($ac_try" in
18063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064  *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067  (eval "$ac_try") 2>&5
18068  ac_status=$?
18069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070  (exit $ac_status); }; }; then
18071  eval "$as_ac_var=yes"
18072else
18073  echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
18075
18076	eval "$as_ac_var=no"
18077fi
18078
18079rm -f core conftest.err conftest.$ac_objext \
18080      conftest$ac_exeext conftest.$ac_ext
18081fi
18082ac_res=`eval echo '${'$as_ac_var'}'`
18083	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18084echo "${ECHO_T}$ac_res" >&6; }
18085if test `eval echo '${'$as_ac_var'}'` = yes; then
18086  cat >>confdefs.h <<_ACEOF
18087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18088_ACEOF
18089
18090fi
18091done
18092
18093
18094
18095
18096
18097for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18098do
18099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18103  echo $ECHO_N "(cached) $ECHO_C" >&6
18104else
18105  cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h.  */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h.  */
18111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18112   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18113#define $ac_func innocuous_$ac_func
18114
18115/* System header to define __stub macros and hopefully few prototypes,
18116    which can conflict with char $ac_func (); below.
18117    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118    <limits.h> exists even on freestanding compilers.  */
18119
18120#ifdef __STDC__
18121# include <limits.h>
18122#else
18123# include <assert.h>
18124#endif
18125
18126#undef $ac_func
18127
18128/* Override any GCC internal prototype to avoid an error.
18129   Use char because int might match the return type of a GCC
18130   builtin and then its argument prototype would still apply.  */
18131#ifdef __cplusplus
18132extern "C"
18133#endif
18134char $ac_func ();
18135/* The GNU C library defines this for functions which it implements
18136    to always fail with ENOSYS.  Some functions are actually named
18137    something starting with __ and the normal name is an alias.  */
18138#if defined __stub_$ac_func || defined __stub___$ac_func
18139choke me
18140#endif
18141
18142int
18143main ()
18144{
18145return $ac_func ();
18146  ;
18147  return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext conftest$ac_exeext
18151if { (ac_try="$ac_link"
18152case "(($ac_try" in
18153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154  *) ac_try_echo=$ac_try;;
18155esac
18156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157  (eval "$ac_link") 2>conftest.er1
18158  ac_status=$?
18159  grep -v '^ *+' conftest.er1 >conftest.err
18160  rm -f conftest.er1
18161  cat conftest.err >&5
18162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163  (exit $ac_status); } &&
18164	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165  { (case "(($ac_try" in
18166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167  *) ac_try_echo=$ac_try;;
18168esac
18169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170  (eval "$ac_try") 2>&5
18171  ac_status=$?
18172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173  (exit $ac_status); }; } &&
18174	 { ac_try='test -s conftest$ac_exeext'
18175  { (case "(($ac_try" in
18176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177  *) ac_try_echo=$ac_try;;
18178esac
18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180  (eval "$ac_try") 2>&5
18181  ac_status=$?
18182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183  (exit $ac_status); }; }; then
18184  eval "$as_ac_var=yes"
18185else
18186  echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189	eval "$as_ac_var=no"
18190fi
18191
18192rm -f core conftest.err conftest.$ac_objext \
18193      conftest$ac_exeext conftest.$ac_ext
18194fi
18195ac_res=`eval echo '${'$as_ac_var'}'`
18196	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18197echo "${ECHO_T}$ac_res" >&6; }
18198if test `eval echo '${'$as_ac_var'}'` = yes; then
18199  cat >>confdefs.h <<_ACEOF
18200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18201_ACEOF
18202
18203fi
18204done
18205
18206
18207
18208
18209
18210for ac_func in setjmp longjmp sigsetjmp siglongjmp
18211do
18212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216  echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218  cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h.  */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h.  */
18224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18226#define $ac_func innocuous_$ac_func
18227
18228/* System header to define __stub macros and hopefully few prototypes,
18229    which can conflict with char $ac_func (); below.
18230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231    <limits.h> exists even on freestanding compilers.  */
18232
18233#ifdef __STDC__
18234# include <limits.h>
18235#else
18236# include <assert.h>
18237#endif
18238
18239#undef $ac_func
18240
18241/* Override any GCC internal prototype to avoid an error.
18242   Use char because int might match the return type of a GCC
18243   builtin and then its argument prototype would still apply.  */
18244#ifdef __cplusplus
18245extern "C"
18246#endif
18247char $ac_func ();
18248/* The GNU C library defines this for functions which it implements
18249    to always fail with ENOSYS.  Some functions are actually named
18250    something starting with __ and the normal name is an alias.  */
18251#if defined __stub_$ac_func || defined __stub___$ac_func
18252choke me
18253#endif
18254
18255int
18256main ()
18257{
18258return $ac_func ();
18259  ;
18260  return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext conftest$ac_exeext
18264if { (ac_try="$ac_link"
18265case "(($ac_try" in
18266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267  *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270  (eval "$ac_link") 2>conftest.er1
18271  ac_status=$?
18272  grep -v '^ *+' conftest.er1 >conftest.err
18273  rm -f conftest.er1
18274  cat conftest.err >&5
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); } &&
18277	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278  { (case "(($ac_try" in
18279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280  *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283  (eval "$ac_try") 2>&5
18284  ac_status=$?
18285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286  (exit $ac_status); }; } &&
18287	 { ac_try='test -s conftest$ac_exeext'
18288  { (case "(($ac_try" in
18289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290  *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293  (eval "$ac_try") 2>&5
18294  ac_status=$?
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); }; }; then
18297  eval "$as_ac_var=yes"
18298else
18299  echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302	eval "$as_ac_var=no"
18303fi
18304
18305rm -f core conftest.err conftest.$ac_objext \
18306      conftest$ac_exeext conftest.$ac_ext
18307fi
18308ac_res=`eval echo '${'$as_ac_var'}'`
18309	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18310echo "${ECHO_T}$ac_res" >&6; }
18311if test `eval echo '${'$as_ac_var'}'` = yes; then
18312  cat >>confdefs.h <<_ACEOF
18313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18314_ACEOF
18315
18316fi
18317done
18318
18319{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18320echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18321if test "${llvm_cv_c_printf_a+set}" = set; then
18322  echo $ECHO_N "(cached) $ECHO_C" >&6
18323else
18324  ac_ext=c
18325ac_cpp='$CPP $CPPFLAGS'
18326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328ac_compiler_gnu=$ac_cv_c_compiler_gnu
18329
18330 if test "$cross_compiling" = yes; then
18331  llvmac_cv_c_printf_a=no
18332else
18333  cat >conftest.$ac_ext <<_ACEOF
18334
18335  /* confdefs.h.  */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h.  */
18340
18341#include <stdio.h>
18342#include <stdlib.h>
18343
18344int
18345main ()
18346{
18347
18348volatile double A, B;
18349char Buffer[100];
18350A = 1;
18351A /= 10.0;
18352sprintf(Buffer, "%a", A);
18353B = atof(Buffer);
18354if (A != B)
18355  return (1);
18356if (A != 0x1.999999999999ap-4)
18357  return (1);
18358return (0);
18359  ;
18360  return 0;
18361}
18362_ACEOF
18363rm -f conftest$ac_exeext
18364if { (ac_try="$ac_link"
18365case "(($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_link") 2>&5
18371  ac_status=$?
18372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18374  { (case "(($ac_try" in
18375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376  *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379  (eval "$ac_try") 2>&5
18380  ac_status=$?
18381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382  (exit $ac_status); }; }; then
18383  llvm_cv_c_printf_a=yes
18384else
18385  echo "$as_me: program exited with status $ac_status" >&5
18386echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389( exit $ac_status )
18390llvmac_cv_c_printf_a=no
18391fi
18392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18393fi
18394
18395
18396 ac_ext=c
18397ac_cpp='$CPP $CPPFLAGS'
18398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401
18402fi
18403{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18404echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18405 if test "$llvm_cv_c_printf_a" = "yes"; then
18406
18407cat >>confdefs.h <<\_ACEOF
18408#define HAVE_PRINTF_A 1
18409_ACEOF
18410
18411 fi
18412
18413
18414{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18415echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18416if test "${ac_cv_func_rand48+set}" = set; then
18417  echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419  ac_ext=cpp
18420ac_cpp='$CXXCPP $CPPFLAGS'
18421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18424
18425   cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h.  */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h.  */
18431#include <stdlib.h>
18432int
18433main ()
18434{
18435srand48(0);lrand48();drand48();
18436  ;
18437  return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext
18441if { (ac_try="$ac_compile"
18442case "(($ac_try" in
18443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444  *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447  (eval "$ac_compile") 2>conftest.er1
18448  ac_status=$?
18449  grep -v '^ *+' conftest.er1 >conftest.err
18450  rm -f conftest.er1
18451  cat conftest.err >&5
18452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); } &&
18454	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455  { (case "(($ac_try" in
18456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457  *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460  (eval "$ac_try") 2>&5
18461  ac_status=$?
18462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); }; } &&
18464	 { ac_try='test -s conftest.$ac_objext'
18465  { (case "(($ac_try" in
18466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467  *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470  (eval "$ac_try") 2>&5
18471  ac_status=$?
18472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473  (exit $ac_status); }; }; then
18474  ac_cv_func_rand48=yes
18475else
18476  echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479	ac_cv_func_rand48=no
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483  ac_ext=c
18484ac_cpp='$CPP $CPPFLAGS'
18485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489fi
18490{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18491echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18492
18493if test "$ac_cv_func_rand48" = "yes" ; then
18494
18495cat >>confdefs.h <<\_ACEOF
18496#define HAVE_RAND48 1
18497_ACEOF
18498
18499fi
18500
18501
18502
18503{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18504echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18505if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18506  echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508  ac_ext=cpp
18509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514   cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h.  */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h.  */
18520#include <math.h>
18521int
18522main ()
18523{
18524float f; isnan(f);
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529rm -f conftest.$ac_objext
18530if { (ac_try="$ac_compile"
18531case "(($ac_try" in
18532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533  *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536  (eval "$ac_compile") 2>conftest.er1
18537  ac_status=$?
18538  grep -v '^ *+' conftest.er1 >conftest.err
18539  rm -f conftest.er1
18540  cat conftest.err >&5
18541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542  (exit $ac_status); } &&
18543	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18544  { (case "(($ac_try" in
18545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546  *) ac_try_echo=$ac_try;;
18547esac
18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549  (eval "$ac_try") 2>&5
18550  ac_status=$?
18551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552  (exit $ac_status); }; } &&
18553	 { ac_try='test -s conftest.$ac_objext'
18554  { (case "(($ac_try" in
18555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556  *) ac_try_echo=$ac_try;;
18557esac
18558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559  (eval "$ac_try") 2>&5
18560  ac_status=$?
18561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562  (exit $ac_status); }; }; then
18563  ac_cv_func_isnan_in_math_h=yes
18564else
18565  echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568	ac_cv_func_isnan_in_math_h=no
18569fi
18570
18571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572  ac_ext=c
18573ac_cpp='$CPP $CPPFLAGS'
18574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578fi
18579{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18580echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18581
18582
18583if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18584
18585cat >>confdefs.h <<\_ACEOF
18586#define HAVE_ISNAN_IN_MATH_H 1
18587_ACEOF
18588
18589fi
18590
18591{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18592echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18593if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18594  echo $ECHO_N "(cached) $ECHO_C" >&6
18595else
18596  ac_ext=cpp
18597ac_cpp='$CXXCPP $CPPFLAGS'
18598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18601
18602   cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h.  */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h.  */
18608#include <cmath>
18609int
18610main ()
18611{
18612float f; isnan(f);
18613  ;
18614  return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext
18618if { (ac_try="$ac_compile"
18619case "(($ac_try" in
18620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621  *) ac_try_echo=$ac_try;;
18622esac
18623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624  (eval "$ac_compile") 2>conftest.er1
18625  ac_status=$?
18626  grep -v '^ *+' conftest.er1 >conftest.err
18627  rm -f conftest.er1
18628  cat conftest.err >&5
18629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630  (exit $ac_status); } &&
18631	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632  { (case "(($ac_try" in
18633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634  *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637  (eval "$ac_try") 2>&5
18638  ac_status=$?
18639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640  (exit $ac_status); }; } &&
18641	 { ac_try='test -s conftest.$ac_objext'
18642  { (case "(($ac_try" in
18643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644  *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647  (eval "$ac_try") 2>&5
18648  ac_status=$?
18649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650  (exit $ac_status); }; }; then
18651  ac_cv_func_isnan_in_cmath=yes
18652else
18653  echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656	ac_cv_func_isnan_in_cmath=no
18657fi
18658
18659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660  ac_ext=c
18661ac_cpp='$CPP $CPPFLAGS'
18662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665
18666fi
18667{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18668echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18669
18670if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18671
18672cat >>confdefs.h <<\_ACEOF
18673#define HAVE_ISNAN_IN_CMATH 1
18674_ACEOF
18675
18676fi
18677
18678{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18679echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18680if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18681  echo $ECHO_N "(cached) $ECHO_C" >&6
18682else
18683  ac_ext=cpp
18684ac_cpp='$CXXCPP $CPPFLAGS'
18685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18688
18689   cat >conftest.$ac_ext <<_ACEOF
18690/* confdefs.h.  */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h.  */
18695#include <cmath>
18696int
18697main ()
18698{
18699float f; std::isnan(f);
18700  ;
18701  return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext
18705if { (ac_try="$ac_compile"
18706case "(($ac_try" in
18707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708  *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711  (eval "$ac_compile") 2>conftest.er1
18712  ac_status=$?
18713  grep -v '^ *+' conftest.er1 >conftest.err
18714  rm -f conftest.er1
18715  cat conftest.err >&5
18716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717  (exit $ac_status); } &&
18718	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18719  { (case "(($ac_try" in
18720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721  *) ac_try_echo=$ac_try;;
18722esac
18723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724  (eval "$ac_try") 2>&5
18725  ac_status=$?
18726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727  (exit $ac_status); }; } &&
18728	 { ac_try='test -s conftest.$ac_objext'
18729  { (case "(($ac_try" in
18730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731  *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734  (eval "$ac_try") 2>&5
18735  ac_status=$?
18736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737  (exit $ac_status); }; }; then
18738  ac_cv_func_std_isnan_in_cmath=yes
18739else
18740  echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743	ac_cv_func_std_isnan_in_cmath=no
18744fi
18745
18746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747  ac_ext=c
18748ac_cpp='$CPP $CPPFLAGS'
18749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751ac_compiler_gnu=$ac_cv_c_compiler_gnu
18752
18753fi
18754{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18755echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18756
18757if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18758
18759cat >>confdefs.h <<\_ACEOF
18760#define HAVE_STD_ISNAN_IN_CMATH 1
18761_ACEOF
18762
18763fi
18764
18765
18766{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18767echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18768if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18769  echo $ECHO_N "(cached) $ECHO_C" >&6
18770else
18771  ac_ext=cpp
18772ac_cpp='$CXXCPP $CPPFLAGS'
18773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776
18777   cat >conftest.$ac_ext <<_ACEOF
18778/* confdefs.h.  */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
18782/* end confdefs.h.  */
18783#include <math.h>
18784int
18785main ()
18786{
18787float f; isinf(f);
18788  ;
18789  return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext
18793if { (ac_try="$ac_compile"
18794case "(($ac_try" in
18795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796  *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799  (eval "$ac_compile") 2>conftest.er1
18800  ac_status=$?
18801  grep -v '^ *+' conftest.er1 >conftest.err
18802  rm -f conftest.er1
18803  cat conftest.err >&5
18804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805  (exit $ac_status); } &&
18806	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807  { (case "(($ac_try" in
18808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809  *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812  (eval "$ac_try") 2>&5
18813  ac_status=$?
18814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815  (exit $ac_status); }; } &&
18816	 { ac_try='test -s conftest.$ac_objext'
18817  { (case "(($ac_try" in
18818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819  *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822  (eval "$ac_try") 2>&5
18823  ac_status=$?
18824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825  (exit $ac_status); }; }; then
18826  ac_cv_func_isinf_in_math_h=yes
18827else
18828  echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831	ac_cv_func_isinf_in_math_h=no
18832fi
18833
18834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835  ac_ext=c
18836ac_cpp='$CPP $CPPFLAGS'
18837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18839ac_compiler_gnu=$ac_cv_c_compiler_gnu
18840
18841fi
18842{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18843echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18844
18845if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18846
18847cat >>confdefs.h <<\_ACEOF
18848#define HAVE_ISINF_IN_MATH_H 1
18849_ACEOF
18850
18851fi
18852
18853{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18854echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18855if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18856  echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858  ac_ext=cpp
18859ac_cpp='$CXXCPP $CPPFLAGS'
18860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18863
18864   cat >conftest.$ac_ext <<_ACEOF
18865/* confdefs.h.  */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h.  */
18870#include <cmath>
18871int
18872main ()
18873{
18874float f; isinf(f);
18875  ;
18876  return 0;
18877}
18878_ACEOF
18879rm -f conftest.$ac_objext
18880if { (ac_try="$ac_compile"
18881case "(($ac_try" in
18882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883  *) ac_try_echo=$ac_try;;
18884esac
18885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886  (eval "$ac_compile") 2>conftest.er1
18887  ac_status=$?
18888  grep -v '^ *+' conftest.er1 >conftest.err
18889  rm -f conftest.er1
18890  cat conftest.err >&5
18891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892  (exit $ac_status); } &&
18893	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18894  { (case "(($ac_try" in
18895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896  *) ac_try_echo=$ac_try;;
18897esac
18898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899  (eval "$ac_try") 2>&5
18900  ac_status=$?
18901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902  (exit $ac_status); }; } &&
18903	 { ac_try='test -s conftest.$ac_objext'
18904  { (case "(($ac_try" in
18905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906  *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909  (eval "$ac_try") 2>&5
18910  ac_status=$?
18911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912  (exit $ac_status); }; }; then
18913  ac_cv_func_isinf_in_cmath=yes
18914else
18915  echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
18918	ac_cv_func_isinf_in_cmath=no
18919fi
18920
18921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922  ac_ext=c
18923ac_cpp='$CPP $CPPFLAGS'
18924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927
18928fi
18929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18930echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18931
18932if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18933
18934cat >>confdefs.h <<\_ACEOF
18935#define HAVE_ISINF_IN_CMATH 1
18936_ACEOF
18937
18938fi
18939
18940{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18941echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18942if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18943  echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945  ac_ext=cpp
18946ac_cpp='$CXXCPP $CPPFLAGS'
18947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18950
18951   cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h.  */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h.  */
18957#include <cmath>
18958int
18959main ()
18960{
18961float f; std::isinf(f)}
18962  ;
18963  return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext
18967if { (ac_try="$ac_compile"
18968case "(($ac_try" in
18969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970  *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973  (eval "$ac_compile") 2>conftest.er1
18974  ac_status=$?
18975  grep -v '^ *+' conftest.er1 >conftest.err
18976  rm -f conftest.er1
18977  cat conftest.err >&5
18978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979  (exit $ac_status); } &&
18980	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18981  { (case "(($ac_try" in
18982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983  *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986  (eval "$ac_try") 2>&5
18987  ac_status=$?
18988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989  (exit $ac_status); }; } &&
18990	 { ac_try='test -s conftest.$ac_objext'
18991  { (case "(($ac_try" in
18992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993  *) ac_try_echo=$ac_try;;
18994esac
18995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996  (eval "$ac_try") 2>&5
18997  ac_status=$?
18998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999  (exit $ac_status); }; }; then
19000  ac_cv_func_std_isinf_in_cmath=yes
19001else
19002  echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005	ac_cv_func_std_isinf_in_cmath=no
19006fi
19007
19008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009  ac_ext=c
19010ac_cpp='$CPP $CPPFLAGS'
19011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013ac_compiler_gnu=$ac_cv_c_compiler_gnu
19014
19015fi
19016{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19017echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19018
19019if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19020
19021cat >>confdefs.h <<\_ACEOF
19022#define HAVE_STD_ISINF_IN_CMATH 1
19023_ACEOF
19024
19025fi
19026
19027{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19028echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19029if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19030  echo $ECHO_N "(cached) $ECHO_C" >&6
19031else
19032  ac_ext=cpp
19033ac_cpp='$CXXCPP $CPPFLAGS'
19034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19037
19038   cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h.  */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h.  */
19044#include <ieeefp.h>
19045int
19046main ()
19047{
19048float f; finite(f);
19049  ;
19050  return 0;
19051}
19052_ACEOF
19053rm -f conftest.$ac_objext
19054if { (ac_try="$ac_compile"
19055case "(($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_compile") 2>conftest.er1
19061  ac_status=$?
19062  grep -v '^ *+' conftest.er1 >conftest.err
19063  rm -f conftest.er1
19064  cat conftest.err >&5
19065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066  (exit $ac_status); } &&
19067	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068  { (case "(($ac_try" in
19069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070  *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073  (eval "$ac_try") 2>&5
19074  ac_status=$?
19075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076  (exit $ac_status); }; } &&
19077	 { ac_try='test -s conftest.$ac_objext'
19078  { (case "(($ac_try" in
19079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080  *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083  (eval "$ac_try") 2>&5
19084  ac_status=$?
19085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086  (exit $ac_status); }; }; then
19087  ac_cv_func_finite_in_ieeefp_h=yes
19088else
19089  echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092	ac_cv_func_finite_in_ieeefp_h=no
19093fi
19094
19095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096  ac_ext=c
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102fi
19103{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19104echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19105
19106if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19107
19108cat >>confdefs.h <<\_ACEOF
19109#define HAVE_FINITE_IN_IEEEFP_H 1
19110_ACEOF
19111
19112fi
19113
19114
19115
19116if test "$llvm_cv_platform_type" = "Unix" ; then
19117
19118
19119for ac_header in stdlib.h unistd.h
19120do
19121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19123  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19126  echo $ECHO_N "(cached) $ECHO_C" >&6
19127fi
19128ac_res=`eval echo '${'$as_ac_Header'}'`
19129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19130echo "${ECHO_T}$ac_res" >&6; }
19131else
19132  # Is the header compilable?
19133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19135cat >conftest.$ac_ext <<_ACEOF
19136/* confdefs.h.  */
19137_ACEOF
19138cat confdefs.h >>conftest.$ac_ext
19139cat >>conftest.$ac_ext <<_ACEOF
19140/* end confdefs.h.  */
19141$ac_includes_default
19142#include <$ac_header>
19143_ACEOF
19144rm -f conftest.$ac_objext
19145if { (ac_try="$ac_compile"
19146case "(($ac_try" in
19147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148  *) ac_try_echo=$ac_try;;
19149esac
19150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151  (eval "$ac_compile") 2>conftest.er1
19152  ac_status=$?
19153  grep -v '^ *+' conftest.er1 >conftest.err
19154  rm -f conftest.er1
19155  cat conftest.err >&5
19156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157  (exit $ac_status); } &&
19158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19159  { (case "(($ac_try" in
19160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161  *) ac_try_echo=$ac_try;;
19162esac
19163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164  (eval "$ac_try") 2>&5
19165  ac_status=$?
19166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167  (exit $ac_status); }; } &&
19168	 { ac_try='test -s conftest.$ac_objext'
19169  { (case "(($ac_try" in
19170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171  *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174  (eval "$ac_try") 2>&5
19175  ac_status=$?
19176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177  (exit $ac_status); }; }; then
19178  ac_header_compiler=yes
19179else
19180  echo "$as_me: failed program was:" >&5
19181sed 's/^/| /' conftest.$ac_ext >&5
19182
19183	ac_header_compiler=no
19184fi
19185
19186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19188echo "${ECHO_T}$ac_header_compiler" >&6; }
19189
19190# Is the header present?
19191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19193cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h.  */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h.  */
19199#include <$ac_header>
19200_ACEOF
19201if { (ac_try="$ac_cpp conftest.$ac_ext"
19202case "(($ac_try" in
19203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204  *) ac_try_echo=$ac_try;;
19205esac
19206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19208  ac_status=$?
19209  grep -v '^ *+' conftest.er1 >conftest.err
19210  rm -f conftest.er1
19211  cat conftest.err >&5
19212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213  (exit $ac_status); } >/dev/null; then
19214  if test -s conftest.err; then
19215    ac_cpp_err=$ac_c_preproc_warn_flag
19216    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19217  else
19218    ac_cpp_err=
19219  fi
19220else
19221  ac_cpp_err=yes
19222fi
19223if test -z "$ac_cpp_err"; then
19224  ac_header_preproc=yes
19225else
19226  echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229  ac_header_preproc=no
19230fi
19231
19232rm -f conftest.err conftest.$ac_ext
19233{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19234echo "${ECHO_T}$ac_header_preproc" >&6; }
19235
19236# So?  What about this header?
19237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19238  yes:no: )
19239    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19243    ac_header_preproc=yes
19244    ;;
19245  no:yes:* )
19246    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19248    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19249echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19250    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19252    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19253echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19256    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19258    ( cat <<\_ASBOX
19259## ----------------------------------- ##
19260## Report this to llvmbugs@cs.uiuc.edu ##
19261## ----------------------------------- ##
19262_ASBOX
19263     ) | sed "s/^/$as_me: WARNING:     /" >&2
19264    ;;
19265esac
19266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19269  echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271  eval "$as_ac_Header=\$ac_header_preproc"
19272fi
19273ac_res=`eval echo '${'$as_ac_Header'}'`
19274	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19275echo "${ECHO_T}$ac_res" >&6; }
19276
19277fi
19278if test `eval echo '${'$as_ac_Header'}'` = yes; then
19279  cat >>confdefs.h <<_ACEOF
19280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19281_ACEOF
19282
19283fi
19284
19285done
19286
19287
19288for ac_func in getpagesize
19289do
19290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19294  echo $ECHO_N "(cached) $ECHO_C" >&6
19295else
19296  cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h.  */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h.  */
19302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19304#define $ac_func innocuous_$ac_func
19305
19306/* System header to define __stub macros and hopefully few prototypes,
19307    which can conflict with char $ac_func (); below.
19308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309    <limits.h> exists even on freestanding compilers.  */
19310
19311#ifdef __STDC__
19312# include <limits.h>
19313#else
19314# include <assert.h>
19315#endif
19316
19317#undef $ac_func
19318
19319/* Override any GCC internal prototype to avoid an error.
19320   Use char because int might match the return type of a GCC
19321   builtin and then its argument prototype would still apply.  */
19322#ifdef __cplusplus
19323extern "C"
19324#endif
19325char $ac_func ();
19326/* The GNU C library defines this for functions which it implements
19327    to always fail with ENOSYS.  Some functions are actually named
19328    something starting with __ and the normal name is an alias.  */
19329#if defined __stub_$ac_func || defined __stub___$ac_func
19330choke me
19331#endif
19332
19333int
19334main ()
19335{
19336return $ac_func ();
19337  ;
19338  return 0;
19339}
19340_ACEOF
19341rm -f conftest.$ac_objext conftest$ac_exeext
19342if { (ac_try="$ac_link"
19343case "(($ac_try" in
19344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345  *) ac_try_echo=$ac_try;;
19346esac
19347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348  (eval "$ac_link") 2>conftest.er1
19349  ac_status=$?
19350  grep -v '^ *+' conftest.er1 >conftest.err
19351  rm -f conftest.er1
19352  cat conftest.err >&5
19353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354  (exit $ac_status); } &&
19355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356  { (case "(($ac_try" in
19357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358  *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361  (eval "$ac_try") 2>&5
19362  ac_status=$?
19363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364  (exit $ac_status); }; } &&
19365	 { ac_try='test -s conftest$ac_exeext'
19366  { (case "(($ac_try" in
19367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368  *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371  (eval "$ac_try") 2>&5
19372  ac_status=$?
19373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374  (exit $ac_status); }; }; then
19375  eval "$as_ac_var=yes"
19376else
19377  echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380	eval "$as_ac_var=no"
19381fi
19382
19383rm -f core conftest.err conftest.$ac_objext \
19384      conftest$ac_exeext conftest.$ac_ext
19385fi
19386ac_res=`eval echo '${'$as_ac_var'}'`
19387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19388echo "${ECHO_T}$ac_res" >&6; }
19389if test `eval echo '${'$as_ac_var'}'` = yes; then
19390  cat >>confdefs.h <<_ACEOF
19391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19392_ACEOF
19393
19394fi
19395done
19396
19397{ echo "$as_me:$LINENO: checking for working mmap" >&5
19398echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19399if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19400  echo $ECHO_N "(cached) $ECHO_C" >&6
19401else
19402  if test "$cross_compiling" = yes; then
19403  ac_cv_func_mmap_fixed_mapped=no
19404else
19405  cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h.  */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h.  */
19411$ac_includes_default
19412/* malloc might have been renamed as rpl_malloc. */
19413#undef malloc
19414
19415/* Thanks to Mike Haertel and Jim Avera for this test.
19416   Here is a matrix of mmap possibilities:
19417	mmap private not fixed
19418	mmap private fixed at somewhere currently unmapped
19419	mmap private fixed at somewhere already mapped
19420	mmap shared not fixed
19421	mmap shared fixed at somewhere currently unmapped
19422	mmap shared fixed at somewhere already mapped
19423   For private mappings, we should verify that changes cannot be read()
19424   back from the file, nor mmap's back from the file at a different
19425   address.  (There have been systems where private was not correctly
19426   implemented like the infamous i386 svr4.0, and systems where the
19427   VM page cache was not coherent with the file system buffer cache
19428   like early versions of FreeBSD and possibly contemporary NetBSD.)
19429   For shared mappings, we should conversely verify that changes get
19430   propagated back to all the places they're supposed to be.
19431
19432   Grep wants private fixed already mapped.
19433   The main things grep needs to know about mmap are:
19434   * does it exist and is it safe to write into the mmap'd area
19435   * how to use it (BSD variants)  */
19436
19437#include <fcntl.h>
19438#include <sys/mman.h>
19439
19440#if !STDC_HEADERS && !HAVE_STDLIB_H
19441char *malloc ();
19442#endif
19443
19444/* This mess was copied from the GNU getpagesize.h.  */
19445#if !HAVE_GETPAGESIZE
19446/* Assume that all systems that can run configure have sys/param.h.  */
19447# if !HAVE_SYS_PARAM_H
19448#  define HAVE_SYS_PARAM_H 1
19449# endif
19450
19451# ifdef _SC_PAGESIZE
19452#  define getpagesize() sysconf(_SC_PAGESIZE)
19453# else /* no _SC_PAGESIZE */
19454#  if HAVE_SYS_PARAM_H
19455#   include <sys/param.h>
19456#   ifdef EXEC_PAGESIZE
19457#    define getpagesize() EXEC_PAGESIZE
19458#   else /* no EXEC_PAGESIZE */
19459#    ifdef NBPG
19460#     define getpagesize() NBPG * CLSIZE
19461#     ifndef CLSIZE
19462#      define CLSIZE 1
19463#     endif /* no CLSIZE */
19464#    else /* no NBPG */
19465#     ifdef NBPC
19466#      define getpagesize() NBPC
19467#     else /* no NBPC */
19468#      ifdef PAGESIZE
19469#       define getpagesize() PAGESIZE
19470#      endif /* PAGESIZE */
19471#     endif /* no NBPC */
19472#    endif /* no NBPG */
19473#   endif /* no EXEC_PAGESIZE */
19474#  else /* no HAVE_SYS_PARAM_H */
19475#   define getpagesize() 8192	/* punt totally */
19476#  endif /* no HAVE_SYS_PARAM_H */
19477# endif /* no _SC_PAGESIZE */
19478
19479#endif /* no HAVE_GETPAGESIZE */
19480
19481int
19482main ()
19483{
19484  char *data, *data2, *data3;
19485  int i, pagesize;
19486  int fd;
19487
19488  pagesize = getpagesize ();
19489
19490  /* First, make a file with some known garbage in it. */
19491  data = (char *) malloc (pagesize);
19492  if (!data)
19493    return 1;
19494  for (i = 0; i < pagesize; ++i)
19495    *(data + i) = rand ();
19496  umask (0);
19497  fd = creat ("conftest.mmap", 0600);
19498  if (fd < 0)
19499    return 1;
19500  if (write (fd, data, pagesize) != pagesize)
19501    return 1;
19502  close (fd);
19503
19504  /* Next, try to mmap the file at a fixed address which already has
19505     something else allocated at it.  If we can, also make sure that
19506     we see the same garbage.  */
19507  fd = open ("conftest.mmap", O_RDWR);
19508  if (fd < 0)
19509    return 1;
19510  data2 = (char *) malloc (2 * pagesize);
19511  if (!data2)
19512    return 1;
19513  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19514  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19515		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
19516    return 1;
19517  for (i = 0; i < pagesize; ++i)
19518    if (*(data + i) != *(data2 + i))
19519      return 1;
19520
19521  /* Finally, make sure that changes to the mapped area do not
19522     percolate back to the file as seen by read().  (This is a bug on
19523     some variants of i386 svr4.0.)  */
19524  for (i = 0; i < pagesize; ++i)
19525    *(data2 + i) = *(data2 + i) + 1;
19526  data3 = (char *) malloc (pagesize);
19527  if (!data3)
19528    return 1;
19529  if (read (fd, data3, pagesize) != pagesize)
19530    return 1;
19531  for (i = 0; i < pagesize; ++i)
19532    if (*(data + i) != *(data3 + i))
19533      return 1;
19534  close (fd);
19535  return 0;
19536}
19537_ACEOF
19538rm -f conftest$ac_exeext
19539if { (ac_try="$ac_link"
19540case "(($ac_try" in
19541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542  *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545  (eval "$ac_link") 2>&5
19546  ac_status=$?
19547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549  { (case "(($ac_try" in
19550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551  *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554  (eval "$ac_try") 2>&5
19555  ac_status=$?
19556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557  (exit $ac_status); }; }; then
19558  ac_cv_func_mmap_fixed_mapped=yes
19559else
19560  echo "$as_me: program exited with status $ac_status" >&5
19561echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564( exit $ac_status )
19565ac_cv_func_mmap_fixed_mapped=no
19566fi
19567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19568fi
19569
19570
19571fi
19572{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19573echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19574if test $ac_cv_func_mmap_fixed_mapped = yes; then
19575
19576cat >>confdefs.h <<\_ACEOF
19577#define HAVE_MMAP 1
19578_ACEOF
19579
19580fi
19581rm -f conftest.mmap
19582
19583  { echo "$as_me:$LINENO: checking for mmap of files" >&5
19584echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19585if test "${ac_cv_func_mmap_file+set}" = set; then
19586  echo $ECHO_N "(cached) $ECHO_C" >&6
19587else
19588   ac_ext=c
19589ac_cpp='$CPP $CPPFLAGS'
19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_c_compiler_gnu
19593
19594  if test "$cross_compiling" = yes; then
19595  ac_cv_func_mmap_file=no
19596else
19597  cat >conftest.$ac_ext <<_ACEOF
19598
19599    /* confdefs.h.  */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h.  */
19604
19605#include <sys/types.h>
19606#include <sys/mman.h>
19607#include <fcntl.h>
19608
19609int
19610main ()
19611{
19612
19613  int fd;
19614  fd = creat ("foo",0777);
19615  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19616  unlink ("foo");
19617  return (fd != (int) MAP_FAILED);
19618  ;
19619  return 0;
19620}
19621_ACEOF
19622rm -f conftest$ac_exeext
19623if { (ac_try="$ac_link"
19624case "(($ac_try" in
19625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626  *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629  (eval "$ac_link") 2>&5
19630  ac_status=$?
19631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19633  { (case "(($ac_try" in
19634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635  *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638  (eval "$ac_try") 2>&5
19639  ac_status=$?
19640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641  (exit $ac_status); }; }; then
19642  ac_cv_func_mmap_file=yes
19643else
19644  echo "$as_me: program exited with status $ac_status" >&5
19645echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648( exit $ac_status )
19649ac_cv_func_mmap_file=no
19650fi
19651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19652fi
19653
19654
19655  ac_ext=c
19656ac_cpp='$CPP $CPPFLAGS'
19657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659ac_compiler_gnu=$ac_cv_c_compiler_gnu
19660
19661
19662fi
19663{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19664echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19665if test "$ac_cv_func_mmap_file" = yes; then
19666
19667cat >>confdefs.h <<\_ACEOF
19668#define HAVE_MMAP_FILE
19669_ACEOF
19670
19671   MMAP_FILE=yes
19672
19673fi
19674
19675  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19676echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19677if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19678  echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680  if test "$llvm_cv_os_type" = "Interix" ; then
19681   ac_cv_need_dev_zero_for_mmap=yes
19682 else
19683   ac_cv_need_dev_zero_for_mmap=no
19684 fi
19685
19686fi
19687{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19688echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19689if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19690
19691cat >>confdefs.h <<\_ACEOF
19692#define NEED_DEV_ZERO_FOR_MMAP 1
19693_ACEOF
19694
19695fi
19696
19697  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19698  then
19699    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19700echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19701  fi
19702  if test "$ac_cv_func_mmap_file" = "no"
19703  then
19704    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19705echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19706  fi
19707fi
19708
19709{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19710echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19711cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h.  */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h.  */
19717int main() {
19718        volatile unsigned long val = 1;
19719        __sync_synchronize();
19720        __sync_val_compare_and_swap(&val, 1, 0);
19721        __sync_add_and_fetch(&val, 1);
19722        __sync_sub_and_fetch(&val, 1);
19723        return 0;
19724      }
19725
19726_ACEOF
19727rm -f conftest.$ac_objext conftest$ac_exeext
19728if { (ac_try="$ac_link"
19729case "(($ac_try" in
19730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731  *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734  (eval "$ac_link") 2>conftest.er1
19735  ac_status=$?
19736  grep -v '^ *+' conftest.er1 >conftest.err
19737  rm -f conftest.er1
19738  cat conftest.err >&5
19739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740  (exit $ac_status); } &&
19741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19742  { (case "(($ac_try" in
19743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744  *) ac_try_echo=$ac_try;;
19745esac
19746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747  (eval "$ac_try") 2>&5
19748  ac_status=$?
19749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750  (exit $ac_status); }; } &&
19751	 { ac_try='test -s conftest$ac_exeext'
19752  { (case "(($ac_try" in
19753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754  *) ac_try_echo=$ac_try;;
19755esac
19756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757  (eval "$ac_try") 2>&5
19758  ac_status=$?
19759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760  (exit $ac_status); }; }; then
19761  { echo "$as_me:$LINENO: result: yes" >&5
19762echo "${ECHO_T}yes" >&6; }
19763
19764cat >>confdefs.h <<\_ACEOF
19765#define LLVM_MULTITHREADED 1
19766_ACEOF
19767
19768else
19769  echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
19771
19772	{ echo "$as_me:$LINENO: result: no" >&5
19773echo "${ECHO_T}no" >&6; }
19774
19775cat >>confdefs.h <<\_ACEOF
19776#define LLVM_MULTITHREADED 0
19777_ACEOF
19778
19779  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19780echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19781fi
19782
19783rm -f core conftest.err conftest.$ac_objext \
19784      conftest$ac_exeext conftest.$ac_ext
19785
19786
19787
19788if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19789  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19790echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19791if test "${llvm_cv_linux_mixed+set}" = set; then
19792  echo $ECHO_N "(cached) $ECHO_C" >&6
19793else
19794   ac_ext=c
19795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
19800  cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h.  */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h.  */
19806#ifndef __x86_64__
19807       error: Not x86-64 even if uname says so!
19808      #endif
19809
19810int
19811main ()
19812{
19813
19814  ;
19815  return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822  *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825  (eval "$ac_compile") 2>conftest.er1
19826  ac_status=$?
19827  grep -v '^ *+' conftest.er1 >conftest.err
19828  rm -f conftest.er1
19829  cat conftest.err >&5
19830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831  (exit $ac_status); } &&
19832	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833  { (case "(($ac_try" in
19834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835  *) ac_try_echo=$ac_try;;
19836esac
19837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838  (eval "$ac_try") 2>&5
19839  ac_status=$?
19840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841  (exit $ac_status); }; } &&
19842	 { ac_try='test -s conftest.$ac_objext'
19843  { (case "(($ac_try" in
19844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845  *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848  (eval "$ac_try") 2>&5
19849  ac_status=$?
19850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851  (exit $ac_status); }; }; then
19852  llvm_cv_linux_mixed=no
19853else
19854  echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857	llvm_cv_linux_mixed=yes
19858fi
19859
19860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861  ac_ext=c
19862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867
19868fi
19869{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19870echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19871
19872  if test "$llvm_cv_linux_mixed" = "yes"; then
19873    llvm_cv_target_arch="x86"
19874    ARCH="x86"
19875  fi
19876fi
19877
19878
19879for ac_func in __dso_handle
19880do
19881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19885  echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887  cat >conftest.$ac_ext <<_ACEOF
19888/* confdefs.h.  */
19889_ACEOF
19890cat confdefs.h >>conftest.$ac_ext
19891cat >>conftest.$ac_ext <<_ACEOF
19892/* end confdefs.h.  */
19893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19895#define $ac_func innocuous_$ac_func
19896
19897/* System header to define __stub macros and hopefully few prototypes,
19898    which can conflict with char $ac_func (); below.
19899    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900    <limits.h> exists even on freestanding compilers.  */
19901
19902#ifdef __STDC__
19903# include <limits.h>
19904#else
19905# include <assert.h>
19906#endif
19907
19908#undef $ac_func
19909
19910/* Override any GCC internal prototype to avoid an error.
19911   Use char because int might match the return type of a GCC
19912   builtin and then its argument prototype would still apply.  */
19913#ifdef __cplusplus
19914extern "C"
19915#endif
19916char $ac_func ();
19917/* The GNU C library defines this for functions which it implements
19918    to always fail with ENOSYS.  Some functions are actually named
19919    something starting with __ and the normal name is an alias.  */
19920#if defined __stub_$ac_func || defined __stub___$ac_func
19921choke me
19922#endif
19923
19924int
19925main ()
19926{
19927return $ac_func ();
19928  ;
19929  return 0;
19930}
19931_ACEOF
19932rm -f conftest.$ac_objext conftest$ac_exeext
19933if { (ac_try="$ac_link"
19934case "(($ac_try" in
19935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936  *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939  (eval "$ac_link") 2>conftest.er1
19940  ac_status=$?
19941  grep -v '^ *+' conftest.er1 >conftest.err
19942  rm -f conftest.er1
19943  cat conftest.err >&5
19944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945  (exit $ac_status); } &&
19946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19947  { (case "(($ac_try" in
19948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949  *) ac_try_echo=$ac_try;;
19950esac
19951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952  (eval "$ac_try") 2>&5
19953  ac_status=$?
19954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955  (exit $ac_status); }; } &&
19956	 { ac_try='test -s conftest$ac_exeext'
19957  { (case "(($ac_try" in
19958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959  *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962  (eval "$ac_try") 2>&5
19963  ac_status=$?
19964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965  (exit $ac_status); }; }; then
19966  eval "$as_ac_var=yes"
19967else
19968  echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971	eval "$as_ac_var=no"
19972fi
19973
19974rm -f core conftest.err conftest.$ac_objext \
19975      conftest$ac_exeext conftest.$ac_ext
19976fi
19977ac_res=`eval echo '${'$as_ac_var'}'`
19978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19979echo "${ECHO_T}$ac_res" >&6; }
19980if test `eval echo '${'$as_ac_var'}'` = yes; then
19981  cat >>confdefs.h <<_ACEOF
19982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19983_ACEOF
19984
19985fi
19986done
19987
19988
19989{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19990echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19991if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19992  echo $ECHO_N "(cached) $ECHO_C" >&6
19993else
19994  llvm_cv_llvmgcc_sanity="no"
19995if test -x "$LLVMGCC" ; then
19996  cp /dev/null conftest.c
19997  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19998      grep 'target datalayout =' > /dev/null 2>&1
19999  if test $? -eq 0 ; then
20000    llvm_cv_llvmgcc_sanity="yes"
20001  fi
20002  rm conftest.c
20003fi
20004fi
20005{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20006echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20007
20008if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20009  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20010echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20011  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20012  LLVMCC1=$llvmcc1path
20013
20014  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20015  LLVMCC1PLUS=$llvmcc1pluspath
20016
20017  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20018  LLVMGCCDIR=$llvmgccdir
20019
20020  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20021  LLVMGCC_LANGS=$llvmgcclangs
20022
20023  { echo "$as_me:$LINENO: result: ok" >&5
20024echo "${ECHO_T}ok" >&6; }
20025fi
20026
20027SHLIBEXT=$libltdl_cv_shlibext
20028
20029
20030SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20031
20032
20033# Translate the various configuration directories and other basic
20034# information into substitutions that will end up in Makefile.config.in
20035# that these configured values can be used by the makefiles
20036if test "${prefix}" = "NONE" ; then
20037  prefix="/usr/local"
20038fi
20039eval LLVM_PREFIX="${prefix}";
20040eval LLVM_BINDIR="${prefix}/bin";
20041eval LLVM_LIBDIR="${prefix}/lib";
20042eval LLVM_DATADIR="${prefix}/share/llvm";
20043eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20044eval LLVM_ETCDIR="${prefix}/etc/llvm";
20045eval LLVM_INCLUDEDIR="${prefix}/include";
20046eval LLVM_INFODIR="${prefix}/info";
20047eval LLVM_MANDIR="${prefix}/man";
20048LLVM_CONFIGTIME=`date`
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060# Place the various directores into the config.h file as #defines so that we
20061# can know about the installation paths within LLVM.
20062
20063cat >>confdefs.h <<_ACEOF
20064#define LLVM_PREFIX "$LLVM_PREFIX"
20065_ACEOF
20066
20067
20068cat >>confdefs.h <<_ACEOF
20069#define LLVM_BINDIR "$LLVM_BINDIR"
20070_ACEOF
20071
20072
20073cat >>confdefs.h <<_ACEOF
20074#define LLVM_LIBDIR "$LLVM_LIBDIR"
20075_ACEOF
20076
20077
20078cat >>confdefs.h <<_ACEOF
20079#define LLVM_DATADIR "$LLVM_DATADIR"
20080_ACEOF
20081
20082
20083cat >>confdefs.h <<_ACEOF
20084#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20085_ACEOF
20086
20087
20088cat >>confdefs.h <<_ACEOF
20089#define LLVM_ETCDIR "$LLVM_ETCDIR"
20090_ACEOF
20091
20092
20093cat >>confdefs.h <<_ACEOF
20094#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20095_ACEOF
20096
20097
20098cat >>confdefs.h <<_ACEOF
20099#define LLVM_INFODIR "$LLVM_INFODIR"
20100_ACEOF
20101
20102
20103cat >>confdefs.h <<_ACEOF
20104#define LLVM_MANDIR "$LLVM_MANDIR"
20105_ACEOF
20106
20107
20108cat >>confdefs.h <<_ACEOF
20109#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20110_ACEOF
20111
20112
20113cat >>confdefs.h <<_ACEOF
20114#define LLVM_HOSTTRIPLE "$host"
20115_ACEOF
20116
20117
20118# Determine which bindings to build.
20119if test "$BINDINGS_TO_BUILD" = auto ; then
20120  BINDINGS_TO_BUILD=""
20121  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20122    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20123  fi
20124fi
20125BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20126
20127
20128# This isn't really configurey, but it avoids having to repeat the list in
20129# other files.
20130ALL_BINDINGS=ocaml
20131
20132
20133# Do any work necessary to ensure that bindings have what they need.
20134binding_prereqs_failed=0
20135for a_binding in $BINDINGS_TO_BUILD ; do
20136  case "$a_binding" in
20137  ocaml)
20138    if test "x$OCAMLC" = x ; then
20139      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20140echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20141      binding_prereqs_failed=1
20142    fi
20143    if test "x$OCAMLDEP" = x ; then
20144      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20145echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20146      binding_prereqs_failed=1
20147    fi
20148    if test "x$OCAMLOPT" = x ; then
20149      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20150echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20151          fi
20152    if test "x$with_ocaml_libdir" != xauto ; then
20153      OCAML_LIBDIR=$with_ocaml_libdir
20154
20155    else
20156      ocaml_stdlib="`"$OCAMLC" -where`"
20157      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20158      then
20159        # ocaml stdlib is beneath our prefix; use stdlib
20160        OCAML_LIBDIR=$ocaml_stdlib
20161
20162      else
20163        # ocaml stdlib is outside our prefix; use libdir/ocaml
20164        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20165
20166      fi
20167    fi
20168    ;;
20169  esac
20170done
20171if test "$binding_prereqs_failed" = 1 ; then
20172  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20173echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20174   { (exit 1); exit 1; }; }
20175fi
20176
20177{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20178echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20179if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20180  echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182   ac_ext=cpp
20183ac_cpp='$CXXCPP $CPPFLAGS'
20184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20187
20188  oldcxxflags="$CXXFLAGS"
20189  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20190  cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h.  */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h.  */
20196
20197int
20198main ()
20199{
20200
20201  ;
20202  return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (ac_try="$ac_compile"
20207case "(($ac_try" in
20208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209  *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212  (eval "$ac_compile") 2>conftest.er1
20213  ac_status=$?
20214  grep -v '^ *+' conftest.er1 >conftest.err
20215  rm -f conftest.er1
20216  cat conftest.err >&5
20217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218  (exit $ac_status); } &&
20219	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20220  { (case "(($ac_try" in
20221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222  *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225  (eval "$ac_try") 2>&5
20226  ac_status=$?
20227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228  (exit $ac_status); }; } &&
20229	 { ac_try='test -s conftest.$ac_objext'
20230  { (case "(($ac_try" in
20231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232  *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235  (eval "$ac_try") 2>&5
20236  ac_status=$?
20237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238  (exit $ac_status); }; }; then
20239  llvm_cv_cxx_visibility_inlines_hidden=yes
20240else
20241  echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244	llvm_cv_cxx_visibility_inlines_hidden=no
20245fi
20246
20247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248  CXXFLAGS="$oldcxxflags"
20249  ac_ext=c
20250ac_cpp='$CPP $CPPFLAGS'
20251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20253ac_compiler_gnu=$ac_cv_c_compiler_gnu
20254
20255
20256fi
20257{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20258echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20259if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20260  ENABLE_VISIBILITY_INLINES_HIDDEN=1
20261
20262else
20263  ENABLE_VISIBILITY_INLINES_HIDDEN=0
20264
20265fi
20266
20267
20268if test "$llvm_cv_link_use_r" = "yes" ; then
20269  RPATH="-Wl,-R"
20270else
20271  RPATH="-Wl,-rpath"
20272fi
20273
20274
20275if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20276  RDYNAMIC="-Wl,-export-dynamic"
20277else
20278  RDYNAMIC=""
20279fi
20280
20281
20282
20283ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20284
20285ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20286
20287ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20288
20289ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20290
20291ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20292
20293ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20294
20295
20296ac_config_files="$ac_config_files Makefile.config"
20297
20298
20299ac_config_files="$ac_config_files llvm.spec"
20300
20301
20302ac_config_files="$ac_config_files docs/doxygen.cfg"
20303
20304
20305ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20306
20307
20308ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20309
20310
20311ac_config_commands="$ac_config_commands setup"
20312
20313ac_config_commands="$ac_config_commands Makefile"
20314
20315
20316ac_config_commands="$ac_config_commands Makefile.common"
20317
20318
20319ac_config_commands="$ac_config_commands examples/Makefile"
20320
20321
20322ac_config_commands="$ac_config_commands lib/Makefile"
20323
20324
20325ac_config_commands="$ac_config_commands runtime/Makefile"
20326
20327
20328ac_config_commands="$ac_config_commands test/Makefile"
20329
20330
20331ac_config_commands="$ac_config_commands test/Makefile.tests"
20332
20333
20334ac_config_commands="$ac_config_commands unittests/Makefile"
20335
20336
20337ac_config_commands="$ac_config_commands tools/Makefile"
20338
20339
20340ac_config_commands="$ac_config_commands utils/Makefile"
20341
20342
20343ac_config_commands="$ac_config_commands projects/Makefile"
20344
20345
20346ac_config_commands="$ac_config_commands bindings/Makefile"
20347
20348
20349ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20350
20351
20352
20353cat >confcache <<\_ACEOF
20354# This file is a shell script that caches the results of configure
20355# tests run on this system so they can be shared between configure
20356# scripts and configure runs, see configure's option --config-cache.
20357# It is not useful on other systems.  If it contains results you don't
20358# want to keep, you may remove or edit it.
20359#
20360# config.status only pays attention to the cache file if you give it
20361# the --recheck option to rerun configure.
20362#
20363# `ac_cv_env_foo' variables (set or unset) will be overridden when
20364# loading this file, other *unset* `ac_cv_foo' will be assigned the
20365# following values.
20366
20367_ACEOF
20368
20369# The following way of writing the cache mishandles newlines in values,
20370# but we know of no workaround that is simple, portable, and efficient.
20371# So, we kill variables containing newlines.
20372# Ultrix sh set writes to stderr and can't be redirected directly,
20373# and sets the high bit in the cache file unless we assign to the vars.
20374(
20375  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20376    eval ac_val=\$$ac_var
20377    case $ac_val in #(
20378    *${as_nl}*)
20379      case $ac_var in #(
20380      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20381echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20382      esac
20383      case $ac_var in #(
20384      _ | IFS | as_nl) ;; #(
20385      *) $as_unset $ac_var ;;
20386      esac ;;
20387    esac
20388  done
20389
20390  (set) 2>&1 |
20391    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392    *${as_nl}ac_space=\ *)
20393      # `set' does not quote correctly, so add quotes (double-quote
20394      # substitution turns \\\\ into \\, and sed turns \\ into \).
20395      sed -n \
20396	"s/'/'\\\\''/g;
20397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20398      ;; #(
20399    *)
20400      # `set' quotes correctly as required by POSIX, so do not add quotes.
20401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20402      ;;
20403    esac |
20404    sort
20405) |
20406  sed '
20407     /^ac_cv_env_/b end
20408     t clear
20409     :clear
20410     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20411     t end
20412     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20413     :end' >>confcache
20414if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415  if test -w "$cache_file"; then
20416    test "x$cache_file" != "x/dev/null" &&
20417      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20418echo "$as_me: updating cache $cache_file" >&6;}
20419    cat confcache >$cache_file
20420  else
20421    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20422echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20423  fi
20424fi
20425rm -f confcache
20426
20427test "x$prefix" = xNONE && prefix=$ac_default_prefix
20428# Let make expand exec_prefix.
20429test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20430
20431DEFS=-DHAVE_CONFIG_H
20432
20433ac_libobjs=
20434ac_ltlibobjs=
20435for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20436  # 1. Remove the extension, and $U if already installed.
20437  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20438  ac_i=`echo "$ac_i" | sed "$ac_script"`
20439  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20440  #    will be set to the directory where LIBOBJS objects are built.
20441  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20442  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20443done
20444LIBOBJS=$ac_libobjs
20445
20446LTLIBOBJS=$ac_ltlibobjs
20447
20448
20449if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20450  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20451Usually this means the macro was only invoked conditionally." >&5
20452echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20453Usually this means the macro was only invoked conditionally." >&2;}
20454   { (exit 1); exit 1; }; }
20455fi
20456if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20457  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20458Usually this means the macro was only invoked conditionally." >&5
20459echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20460Usually this means the macro was only invoked conditionally." >&2;}
20461   { (exit 1); exit 1; }; }
20462fi
20463
20464: ${CONFIG_STATUS=./config.status}
20465ac_clean_files_save=$ac_clean_files
20466ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20467{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20468echo "$as_me: creating $CONFIG_STATUS" >&6;}
20469cat >$CONFIG_STATUS <<_ACEOF
20470#! $SHELL
20471# Generated by $as_me.
20472# Run this file to recreate the current configuration.
20473# Compiler output produced by configure, useful for debugging
20474# configure, is in config.log if it exists.
20475
20476debug=false
20477ac_cs_recheck=false
20478ac_cs_silent=false
20479SHELL=\${CONFIG_SHELL-$SHELL}
20480_ACEOF
20481
20482cat >>$CONFIG_STATUS <<\_ACEOF
20483## --------------------- ##
20484## M4sh Initialization.  ##
20485## --------------------- ##
20486
20487# Be Bourne compatible
20488if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20489  emulate sh
20490  NULLCMD=:
20491  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20492  # is contrary to our usage.  Disable this feature.
20493  alias -g '${1+"$@"}'='"$@"'
20494  setopt NO_GLOB_SUBST
20495else
20496  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20497fi
20498BIN_SH=xpg4; export BIN_SH # for Tru64
20499DUALCASE=1; export DUALCASE # for MKS sh
20500
20501
20502# PATH needs CR
20503# Avoid depending upon Character Ranges.
20504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20507as_cr_digits='0123456789'
20508as_cr_alnum=$as_cr_Letters$as_cr_digits
20509
20510# The user is always right.
20511if test "${PATH_SEPARATOR+set}" != set; then
20512  echo "#! /bin/sh" >conf$$.sh
20513  echo  "exit 0"   >>conf$$.sh
20514  chmod +x conf$$.sh
20515  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20516    PATH_SEPARATOR=';'
20517  else
20518    PATH_SEPARATOR=:
20519  fi
20520  rm -f conf$$.sh
20521fi
20522
20523# Support unset when possible.
20524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20525  as_unset=unset
20526else
20527  as_unset=false
20528fi
20529
20530
20531# IFS
20532# We need space, tab and new line, in precisely that order.  Quoting is
20533# there to prevent editors from complaining about space-tab.
20534# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20535# splitting by setting IFS to empty value.)
20536as_nl='
20537'
20538IFS=" ""	$as_nl"
20539
20540# Find who we are.  Look in the path if we contain no directory separator.
20541case $0 in
20542  *[\\/]* ) as_myself=$0 ;;
20543  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544for as_dir in $PATH
20545do
20546  IFS=$as_save_IFS
20547  test -z "$as_dir" && as_dir=.
20548  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20549done
20550IFS=$as_save_IFS
20551
20552     ;;
20553esac
20554# We did not find ourselves, most probably we were run as `sh COMMAND'
20555# in which case we are not to be found in the path.
20556if test "x$as_myself" = x; then
20557  as_myself=$0
20558fi
20559if test ! -f "$as_myself"; then
20560  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561  { (exit 1); exit 1; }
20562fi
20563
20564# Work around bugs in pre-3.0 UWIN ksh.
20565for as_var in ENV MAIL MAILPATH
20566do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20567done
20568PS1='$ '
20569PS2='> '
20570PS4='+ '
20571
20572# NLS nuisances.
20573for as_var in \
20574  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20575  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20576  LC_TELEPHONE LC_TIME
20577do
20578  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20579    eval $as_var=C; export $as_var
20580  else
20581    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20582  fi
20583done
20584
20585# Required to use basename.
20586if expr a : '\(a\)' >/dev/null 2>&1 &&
20587   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20588  as_expr=expr
20589else
20590  as_expr=false
20591fi
20592
20593if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20594  as_basename=basename
20595else
20596  as_basename=false
20597fi
20598
20599
20600# Name of the executable.
20601as_me=`$as_basename -- "$0" ||
20602$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20603	 X"$0" : 'X\(//\)$' \| \
20604	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20605echo X/"$0" |
20606    sed '/^.*\/\([^/][^/]*\)\/*$/{
20607	    s//\1/
20608	    q
20609	  }
20610	  /^X\/\(\/\/\)$/{
20611	    s//\1/
20612	    q
20613	  }
20614	  /^X\/\(\/\).*/{
20615	    s//\1/
20616	    q
20617	  }
20618	  s/.*/./; q'`
20619
20620# CDPATH.
20621$as_unset CDPATH
20622
20623
20624
20625  as_lineno_1=$LINENO
20626  as_lineno_2=$LINENO
20627  test "x$as_lineno_1" != "x$as_lineno_2" &&
20628  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20629
20630  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20631  # uniformly replaced by the line number.  The first 'sed' inserts a
20632  # line-number line after each line using $LINENO; the second 'sed'
20633  # does the real work.  The second script uses 'N' to pair each
20634  # line-number line with the line containing $LINENO, and appends
20635  # trailing '-' during substitution so that $LINENO is not a special
20636  # case at line end.
20637  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20638  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20639  # E. McMahon (1931-1989) for sed's syntax.  :-)
20640  sed -n '
20641    p
20642    /[$]LINENO/=
20643  ' <$as_myself |
20644    sed '
20645      s/[$]LINENO.*/&-/
20646      t lineno
20647      b
20648      :lineno
20649      N
20650      :loop
20651      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20652      t loop
20653      s/-\n.*//
20654    ' >$as_me.lineno &&
20655  chmod +x "$as_me.lineno" ||
20656    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20657   { (exit 1); exit 1; }; }
20658
20659  # Don't try to exec as it changes $[0], causing all sort of problems
20660  # (the dirname of $[0] is not the place where we might find the
20661  # original and so on.  Autoconf is especially sensitive to this).
20662  . "./$as_me.lineno"
20663  # Exit status is that of the last command.
20664  exit
20665}
20666
20667
20668if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20669  as_dirname=dirname
20670else
20671  as_dirname=false
20672fi
20673
20674ECHO_C= ECHO_N= ECHO_T=
20675case `echo -n x` in
20676-n*)
20677  case `echo 'x\c'` in
20678  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20679  *)   ECHO_C='\c';;
20680  esac;;
20681*)
20682  ECHO_N='-n';;
20683esac
20684
20685if expr a : '\(a\)' >/dev/null 2>&1 &&
20686   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20687  as_expr=expr
20688else
20689  as_expr=false
20690fi
20691
20692rm -f conf$$ conf$$.exe conf$$.file
20693if test -d conf$$.dir; then
20694  rm -f conf$$.dir/conf$$.file
20695else
20696  rm -f conf$$.dir
20697  mkdir conf$$.dir
20698fi
20699echo >conf$$.file
20700if ln -s conf$$.file conf$$ 2>/dev/null; then
20701  as_ln_s='ln -s'
20702  # ... but there are two gotchas:
20703  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20704  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20705  # In both cases, we have to default to `cp -p'.
20706  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20707    as_ln_s='cp -p'
20708elif ln conf$$.file conf$$ 2>/dev/null; then
20709  as_ln_s=ln
20710else
20711  as_ln_s='cp -p'
20712fi
20713rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20714rmdir conf$$.dir 2>/dev/null
20715
20716if mkdir -p . 2>/dev/null; then
20717  as_mkdir_p=:
20718else
20719  test -d ./-p && rmdir ./-p
20720  as_mkdir_p=false
20721fi
20722
20723# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20724# systems may use methods other than mode bits to determine executability.
20725cat >conf$$.file <<_ASEOF
20726#! /bin/sh
20727exit 0
20728_ASEOF
20729chmod +x conf$$.file
20730if test -x conf$$.file >/dev/null 2>&1; then
20731  as_executable_p="test -x"
20732else
20733  as_executable_p=:
20734fi
20735rm -f conf$$.file
20736
20737# Sed expression to map a string onto a valid CPP name.
20738as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20739
20740# Sed expression to map a string onto a valid variable name.
20741as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20742
20743
20744exec 6>&1
20745
20746# Save the log message, to keep $[0] and so on meaningful, and to
20747# report actual input values of CONFIG_FILES etc. instead of their
20748# values after options handling.
20749ac_log="
20750This file was extended by llvm $as_me 2.8svn, which was
20751generated by GNU Autoconf 2.60.  Invocation command line was
20752
20753  CONFIG_FILES    = $CONFIG_FILES
20754  CONFIG_HEADERS  = $CONFIG_HEADERS
20755  CONFIG_LINKS    = $CONFIG_LINKS
20756  CONFIG_COMMANDS = $CONFIG_COMMANDS
20757  $ $0 $@
20758
20759on `(hostname || uname -n) 2>/dev/null | sed 1q`
20760"
20761
20762_ACEOF
20763
20764cat >>$CONFIG_STATUS <<_ACEOF
20765# Files that config.status was made for.
20766config_files="$ac_config_files"
20767config_headers="$ac_config_headers"
20768config_commands="$ac_config_commands"
20769
20770_ACEOF
20771
20772cat >>$CONFIG_STATUS <<\_ACEOF
20773ac_cs_usage="\
20774\`$as_me' instantiates files from templates according to the
20775current configuration.
20776
20777Usage: $0 [OPTIONS] [FILE]...
20778
20779  -h, --help       print this help, then exit
20780  -V, --version    print version number, then exit
20781  -q, --quiet      do not print progress messages
20782  -d, --debug      don't remove temporary files
20783      --recheck    update $as_me by reconfiguring in the same conditions
20784  --file=FILE[:TEMPLATE]
20785		   instantiate the configuration file FILE
20786  --header=FILE[:TEMPLATE]
20787		   instantiate the configuration header FILE
20788
20789Configuration files:
20790$config_files
20791
20792Configuration headers:
20793$config_headers
20794
20795Configuration commands:
20796$config_commands
20797
20798Report bugs to <bug-autoconf@gnu.org>."
20799
20800_ACEOF
20801cat >>$CONFIG_STATUS <<_ACEOF
20802ac_cs_version="\\
20803llvm config.status 2.8svn
20804configured by $0, generated by GNU Autoconf 2.60,
20805  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20806
20807Copyright (C) 2006 Free Software Foundation, Inc.
20808This config.status script is free software; the Free Software Foundation
20809gives unlimited permission to copy, distribute and modify it."
20810
20811ac_pwd='$ac_pwd'
20812srcdir='$srcdir'
20813INSTALL='$INSTALL'
20814_ACEOF
20815
20816cat >>$CONFIG_STATUS <<\_ACEOF
20817# If no file are specified by the user, then we need to provide default
20818# value.  By we need to know if files were specified by the user.
20819ac_need_defaults=:
20820while test $# != 0
20821do
20822  case $1 in
20823  --*=*)
20824    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20825    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20826    ac_shift=:
20827    ;;
20828  *)
20829    ac_option=$1
20830    ac_optarg=$2
20831    ac_shift=shift
20832    ;;
20833  esac
20834
20835  case $ac_option in
20836  # Handling of the options.
20837  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20838    ac_cs_recheck=: ;;
20839  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20840    echo "$ac_cs_version"; exit ;;
20841  --debug | --debu | --deb | --de | --d | -d )
20842    debug=: ;;
20843  --file | --fil | --fi | --f )
20844    $ac_shift
20845    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20846    ac_need_defaults=false;;
20847  --header | --heade | --head | --hea )
20848    $ac_shift
20849    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20850    ac_need_defaults=false;;
20851  --he | --h)
20852    # Conflict between --help and --header
20853    { echo "$as_me: error: ambiguous option: $1
20854Try \`$0 --help' for more information." >&2
20855   { (exit 1); exit 1; }; };;
20856  --help | --hel | -h )
20857    echo "$ac_cs_usage"; exit ;;
20858  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20859  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20860    ac_cs_silent=: ;;
20861
20862  # This is an error.
20863  -*) { echo "$as_me: error: unrecognized option: $1
20864Try \`$0 --help' for more information." >&2
20865   { (exit 1); exit 1; }; } ;;
20866
20867  *) ac_config_targets="$ac_config_targets $1"
20868     ac_need_defaults=false ;;
20869
20870  esac
20871  shift
20872done
20873
20874ac_configure_extra_args=
20875
20876if $ac_cs_silent; then
20877  exec 6>/dev/null
20878  ac_configure_extra_args="$ac_configure_extra_args --silent"
20879fi
20880
20881_ACEOF
20882cat >>$CONFIG_STATUS <<_ACEOF
20883if \$ac_cs_recheck; then
20884  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20885  CONFIG_SHELL=$SHELL
20886  export CONFIG_SHELL
20887  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20888fi
20889
20890_ACEOF
20891cat >>$CONFIG_STATUS <<\_ACEOF
20892exec 5>>config.log
20893{
20894  echo
20895  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20896## Running $as_me. ##
20897_ASBOX
20898  echo "$ac_log"
20899} >&5
20900
20901_ACEOF
20902cat >>$CONFIG_STATUS <<_ACEOF
20903#
20904# INIT-COMMANDS
20905#
20906llvm_src="${srcdir}"
20907
20908_ACEOF
20909
20910cat >>$CONFIG_STATUS <<\_ACEOF
20911
20912# Handling of arguments.
20913for ac_config_target in $ac_config_targets
20914do
20915  case $ac_config_target in
20916    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20917    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20918    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20919    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20920    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20921    "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20922    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20923    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20924    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20925    "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20926    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20927    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20928    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20929    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20930    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20931    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20932    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20933    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20934    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20935    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20936    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20937    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20938    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20939    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20940    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20941
20942  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20943echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20944   { (exit 1); exit 1; }; };;
20945  esac
20946done
20947
20948
20949# If the user did not use the arguments to specify the items to instantiate,
20950# then the envvar interface is used.  Set only those that are not.
20951# We use the long form for the default assignment because of an extremely
20952# bizarre bug on SunOS 4.1.3.
20953if $ac_need_defaults; then
20954  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20955  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20956  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20957fi
20958
20959# Have a temporary directory for convenience.  Make it in the build tree
20960# simply because there is no reason against having it here, and in addition,
20961# creating and moving files from /tmp can sometimes cause problems.
20962# Hook for its removal unless debugging.
20963# Note that there is a small window in which the directory will not be cleaned:
20964# after its creation but before its name has been assigned to `$tmp'.
20965$debug ||
20966{
20967  tmp=
20968  trap 'exit_status=$?
20969  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20970' 0
20971  trap '{ (exit 1); exit 1; }' 1 2 13 15
20972}
20973# Create a (secure) tmp directory for tmp files.
20974
20975{
20976  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20977  test -n "$tmp" && test -d "$tmp"
20978}  ||
20979{
20980  tmp=./conf$$-$RANDOM
20981  (umask 077 && mkdir "$tmp")
20982} ||
20983{
20984   echo "$me: cannot create a temporary directory in ." >&2
20985   { (exit 1); exit 1; }
20986}
20987
20988#
20989# Set up the sed scripts for CONFIG_FILES section.
20990#
20991
20992# No need to generate the scripts if there are no CONFIG_FILES.
20993# This happens for instance when ./config.status config.h
20994if test -n "$CONFIG_FILES"; then
20995
20996_ACEOF
20997
20998
20999
21000ac_delim='%!_!# '
21001for ac_last_try in false false false false false :; do
21002  cat >conf$$subs.sed <<_ACEOF
21003SHELL!$SHELL$ac_delim
21004PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21005PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21006PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21007PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21008PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21009PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21010exec_prefix!$exec_prefix$ac_delim
21011prefix!$prefix$ac_delim
21012program_transform_name!$program_transform_name$ac_delim
21013bindir!$bindir$ac_delim
21014sbindir!$sbindir$ac_delim
21015libexecdir!$libexecdir$ac_delim
21016datarootdir!$datarootdir$ac_delim
21017datadir!$datadir$ac_delim
21018sysconfdir!$sysconfdir$ac_delim
21019sharedstatedir!$sharedstatedir$ac_delim
21020localstatedir!$localstatedir$ac_delim
21021includedir!$includedir$ac_delim
21022oldincludedir!$oldincludedir$ac_delim
21023docdir!$docdir$ac_delim
21024infodir!$infodir$ac_delim
21025htmldir!$htmldir$ac_delim
21026dvidir!$dvidir$ac_delim
21027pdfdir!$pdfdir$ac_delim
21028psdir!$psdir$ac_delim
21029libdir!$libdir$ac_delim
21030localedir!$localedir$ac_delim
21031mandir!$mandir$ac_delim
21032DEFS!$DEFS$ac_delim
21033ECHO_C!$ECHO_C$ac_delim
21034ECHO_N!$ECHO_N$ac_delim
21035ECHO_T!$ECHO_T$ac_delim
21036LIBS!$LIBS$ac_delim
21037build_alias!$build_alias$ac_delim
21038host_alias!$host_alias$ac_delim
21039target_alias!$target_alias$ac_delim
21040LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21041subdirs!$subdirs$ac_delim
21042build!$build$ac_delim
21043build_cpu!$build_cpu$ac_delim
21044build_vendor!$build_vendor$ac_delim
21045build_os!$build_os$ac_delim
21046host!$host$ac_delim
21047host_cpu!$host_cpu$ac_delim
21048host_vendor!$host_vendor$ac_delim
21049host_os!$host_os$ac_delim
21050target!$target$ac_delim
21051target_cpu!$target_cpu$ac_delim
21052target_vendor!$target_vendor$ac_delim
21053target_os!$target_os$ac_delim
21054OS!$OS$ac_delim
21055HOST_OS!$HOST_OS$ac_delim
21056TARGET_OS!$TARGET_OS$ac_delim
21057LINKALL!$LINKALL$ac_delim
21058NOLINKALL!$NOLINKALL$ac_delim
21059LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21060LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21061ARCH!$ARCH$ac_delim
21062ENDIAN!$ENDIAN$ac_delim
21063CC!$CC$ac_delim
21064CFLAGS!$CFLAGS$ac_delim
21065LDFLAGS!$LDFLAGS$ac_delim
21066CPPFLAGS!$CPPFLAGS$ac_delim
21067ac_ct_CC!$ac_ct_CC$ac_delim
21068EXEEXT!$EXEEXT$ac_delim
21069OBJEXT!$OBJEXT$ac_delim
21070CPP!$CPP$ac_delim
21071GREP!$GREP$ac_delim
21072EGREP!$EGREP$ac_delim
21073LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21074BUILD_CC!$BUILD_CC$ac_delim
21075BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21076BUILD_CXX!$BUILD_CXX$ac_delim
21077CVSBUILD!$CVSBUILD$ac_delim
21078ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21079ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21080DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21081ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21082EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21083DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21084DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21085JIT!$JIT$ac_delim
21086TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21087ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21088ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21089ENABLE_PIC!$ENABLE_PIC$ac_delim
21090ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21091TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21092LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21093LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21094LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21095LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21096ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21097CLANGPATH!$CLANGPATH$ac_delim
21098CLANGXXPATH!$CLANGXXPATH$ac_delim
21099ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21100_ACEOF
21101
21102  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21103    break
21104  elif $ac_last_try; then
21105    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21106echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21107   { (exit 1); exit 1; }; }
21108  else
21109    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21110  fi
21111done
21112
21113ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21114if test -n "$ac_eof"; then
21115  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21116  ac_eof=`expr $ac_eof + 1`
21117fi
21118
21119cat >>$CONFIG_STATUS <<_ACEOF
21120cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21122_ACEOF
21123sed '
21124s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21125s/^/s,@/; s/!/@,|#_!!_#|/
21126:n
21127t n
21128s/'"$ac_delim"'$/,g/; t
21129s/$/\\/; p
21130N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21131' >>$CONFIG_STATUS <conf$$subs.sed
21132rm -f conf$$subs.sed
21133cat >>$CONFIG_STATUS <<_ACEOF
21134CEOF$ac_eof
21135_ACEOF
21136
21137
21138ac_delim='%!_!# '
21139for ac_last_try in false false false false false :; do
21140  cat >conf$$subs.sed <<_ACEOF
21141OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21142EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21143BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21144ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21145ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21146CXX!$CXX$ac_delim
21147CXXFLAGS!$CXXFLAGS$ac_delim
21148ac_ct_CXX!$ac_ct_CXX$ac_delim
21149NM!$NM$ac_delim
21150ifGNUmake!$ifGNUmake$ac_delim
21151LN_S!$LN_S$ac_delim
21152CMP!$CMP$ac_delim
21153CP!$CP$ac_delim
21154DATE!$DATE$ac_delim
21155FIND!$FIND$ac_delim
21156MKDIR!$MKDIR$ac_delim
21157MV!$MV$ac_delim
21158RANLIB!$RANLIB$ac_delim
21159AR!$AR$ac_delim
21160RM!$RM$ac_delim
21161SED!$SED$ac_delim
21162TAR!$TAR$ac_delim
21163BINPWD!$BINPWD$ac_delim
21164GRAPHVIZ!$GRAPHVIZ$ac_delim
21165DOT!$DOT$ac_delim
21166FDP!$FDP$ac_delim
21167NEATO!$NEATO$ac_delim
21168TWOPI!$TWOPI$ac_delim
21169CIRCO!$CIRCO$ac_delim
21170GV!$GV$ac_delim
21171DOTTY!$DOTTY$ac_delim
21172PERL!$PERL$ac_delim
21173HAVE_PERL!$HAVE_PERL$ac_delim
21174INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21175INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21176INSTALL_DATA!$INSTALL_DATA$ac_delim
21177BZIP2!$BZIP2$ac_delim
21178DOXYGEN!$DOXYGEN$ac_delim
21179GROFF!$GROFF$ac_delim
21180GZIP!$GZIP$ac_delim
21181POD2HTML!$POD2HTML$ac_delim
21182POD2MAN!$POD2MAN$ac_delim
21183RUNTEST!$RUNTEST$ac_delim
21184TCLSH!$TCLSH$ac_delim
21185ZIP!$ZIP$ac_delim
21186OCAMLC!$OCAMLC$ac_delim
21187OCAMLOPT!$OCAMLOPT$ac_delim
21188OCAMLDEP!$OCAMLDEP$ac_delim
21189OCAMLDOC!$OCAMLDOC$ac_delim
21190GAS!$GAS$ac_delim
21191HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21192INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21193INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21194CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21195CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21196LIBADD_DL!$LIBADD_DL$ac_delim
21197LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21198LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21199LLVMGCC!$LLVMGCC$ac_delim
21200LLVMGXX!$LLVMGXX$ac_delim
21201LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21202NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21203NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21204USE_UDIS86!$USE_UDIS86$ac_delim
21205USE_OPROFILE!$USE_OPROFILE$ac_delim
21206HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21207HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21208MMAP_FILE!$MMAP_FILE$ac_delim
21209LLVMCC1!$LLVMCC1$ac_delim
21210LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21211LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21212LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21213SHLIBEXT!$SHLIBEXT$ac_delim
21214SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21215LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21216LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21217LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21218LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21219LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21220LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21221LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21222LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21223LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21224LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21225BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21226ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21227OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21228ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21229RPATH!$RPATH$ac_delim
21230RDYNAMIC!$RDYNAMIC$ac_delim
21231LIBOBJS!$LIBOBJS$ac_delim
21232LTLIBOBJS!$LTLIBOBJS$ac_delim
21233_ACEOF
21234
21235  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
21236    break
21237  elif $ac_last_try; then
21238    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21239echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21240   { (exit 1); exit 1; }; }
21241  else
21242    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21243  fi
21244done
21245
21246ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21247if test -n "$ac_eof"; then
21248  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21249  ac_eof=`expr $ac_eof + 1`
21250fi
21251
21252cat >>$CONFIG_STATUS <<_ACEOF
21253cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21255_ACEOF
21256sed '
21257s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21258s/^/s,@/; s/!/@,|#_!!_#|/
21259:n
21260t n
21261s/'"$ac_delim"'$/,g/; t
21262s/$/\\/; p
21263N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21264' >>$CONFIG_STATUS <conf$$subs.sed
21265rm -f conf$$subs.sed
21266cat >>$CONFIG_STATUS <<_ACEOF
21267:end
21268s/|#_!!_#|//g
21269CEOF$ac_eof
21270_ACEOF
21271
21272
21273# VPATH may cause trouble with some makes, so we remove $(srcdir),
21274# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21275# trailing colons and then remove the whole line if VPATH becomes empty
21276# (actually we leave an empty line to preserve line numbers).
21277if test "x$srcdir" = x.; then
21278  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21279s/:*\$(srcdir):*/:/
21280s/:*\${srcdir}:*/:/
21281s/:*@srcdir@:*/:/
21282s/^\([^=]*=[	 ]*\):*/\1/
21283s/:*$//
21284s/^[^=]*=[	 ]*$//
21285}'
21286fi
21287
21288cat >>$CONFIG_STATUS <<\_ACEOF
21289fi # test -n "$CONFIG_FILES"
21290
21291
21292for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21293do
21294  case $ac_tag in
21295  :[FHLC]) ac_mode=$ac_tag; continue;;
21296  esac
21297  case $ac_mode$ac_tag in
21298  :[FHL]*:*);;
21299  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21300echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21301   { (exit 1); exit 1; }; };;
21302  :[FH]-) ac_tag=-:-;;
21303  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21304  esac
21305  ac_save_IFS=$IFS
21306  IFS=:
21307  set x $ac_tag
21308  IFS=$ac_save_IFS
21309  shift
21310  ac_file=$1
21311  shift
21312
21313  case $ac_mode in
21314  :L) ac_source=$1;;
21315  :[FH])
21316    ac_file_inputs=
21317    for ac_f
21318    do
21319      case $ac_f in
21320      -) ac_f="$tmp/stdin";;
21321      *) # Look for the file first in the build tree, then in the source tree
21322	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21323	 # because $ac_f cannot contain `:'.
21324	 test -f "$ac_f" ||
21325	   case $ac_f in
21326	   [\\/$]*) false;;
21327	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21328	   esac ||
21329	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21330echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21331   { (exit 1); exit 1; }; };;
21332      esac
21333      ac_file_inputs="$ac_file_inputs $ac_f"
21334    done
21335
21336    # Let's still pretend it is `configure' which instantiates (i.e., don't
21337    # use $as_me), people would be surprised to read:
21338    #    /* config.h.  Generated by config.status.  */
21339    configure_input="Generated from "`IFS=:
21340	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21341    if test x"$ac_file" != x-; then
21342      configure_input="$ac_file.  $configure_input"
21343      { echo "$as_me:$LINENO: creating $ac_file" >&5
21344echo "$as_me: creating $ac_file" >&6;}
21345    fi
21346
21347    case $ac_tag in
21348    *:-:* | *:-) cat >"$tmp/stdin";;
21349    esac
21350    ;;
21351  esac
21352
21353  ac_dir=`$as_dirname -- "$ac_file" ||
21354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21355	 X"$ac_file" : 'X\(//\)[^/]' \| \
21356	 X"$ac_file" : 'X\(//\)$' \| \
21357	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21358echo X"$ac_file" |
21359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21360	    s//\1/
21361	    q
21362	  }
21363	  /^X\(\/\/\)[^/].*/{
21364	    s//\1/
21365	    q
21366	  }
21367	  /^X\(\/\/\)$/{
21368	    s//\1/
21369	    q
21370	  }
21371	  /^X\(\/\).*/{
21372	    s//\1/
21373	    q
21374	  }
21375	  s/.*/./; q'`
21376  { as_dir="$ac_dir"
21377  case $as_dir in #(
21378  -*) as_dir=./$as_dir;;
21379  esac
21380  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21381    as_dirs=
21382    while :; do
21383      case $as_dir in #(
21384      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21385      *) as_qdir=$as_dir;;
21386      esac
21387      as_dirs="'$as_qdir' $as_dirs"
21388      as_dir=`$as_dirname -- "$as_dir" ||
21389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390	 X"$as_dir" : 'X\(//\)[^/]' \| \
21391	 X"$as_dir" : 'X\(//\)$' \| \
21392	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21393echo X"$as_dir" |
21394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21395	    s//\1/
21396	    q
21397	  }
21398	  /^X\(\/\/\)[^/].*/{
21399	    s//\1/
21400	    q
21401	  }
21402	  /^X\(\/\/\)$/{
21403	    s//\1/
21404	    q
21405	  }
21406	  /^X\(\/\).*/{
21407	    s//\1/
21408	    q
21409	  }
21410	  s/.*/./; q'`
21411      test -d "$as_dir" && break
21412    done
21413    test -z "$as_dirs" || eval "mkdir $as_dirs"
21414  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21415echo "$as_me: error: cannot create directory $as_dir" >&2;}
21416   { (exit 1); exit 1; }; }; }
21417  ac_builddir=.
21418
21419case "$ac_dir" in
21420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21421*)
21422  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21423  # A ".." for each directory in $ac_dir_suffix.
21424  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21425  case $ac_top_builddir_sub in
21426  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21427  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21428  esac ;;
21429esac
21430ac_abs_top_builddir=$ac_pwd
21431ac_abs_builddir=$ac_pwd$ac_dir_suffix
21432# for backward compatibility:
21433ac_top_builddir=$ac_top_build_prefix
21434
21435case $srcdir in
21436  .)  # We are building in place.
21437    ac_srcdir=.
21438    ac_top_srcdir=$ac_top_builddir_sub
21439    ac_abs_top_srcdir=$ac_pwd ;;
21440  [\\/]* | ?:[\\/]* )  # Absolute name.
21441    ac_srcdir=$srcdir$ac_dir_suffix;
21442    ac_top_srcdir=$srcdir
21443    ac_abs_top_srcdir=$srcdir ;;
21444  *) # Relative name.
21445    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21446    ac_top_srcdir=$ac_top_build_prefix$srcdir
21447    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21448esac
21449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21450
21451
21452  case $ac_mode in
21453  :F)
21454  #
21455  # CONFIG_FILE
21456  #
21457
21458  case $INSTALL in
21459  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21460  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21461  esac
21462_ACEOF
21463
21464cat >>$CONFIG_STATUS <<\_ACEOF
21465# If the template does not know about datarootdir, expand it.
21466# FIXME: This hack should be removed a few years after 2.60.
21467ac_datarootdir_hack=; ac_datarootdir_seen=
21468
21469case `sed -n '/datarootdir/ {
21470  p
21471  q
21472}
21473/@datadir@/p
21474/@docdir@/p
21475/@infodir@/p
21476/@localedir@/p
21477/@mandir@/p
21478' $ac_file_inputs` in
21479*datarootdir*) ac_datarootdir_seen=yes;;
21480*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21481  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21482echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21483_ACEOF
21484cat >>$CONFIG_STATUS <<_ACEOF
21485  ac_datarootdir_hack='
21486  s&@datadir@&$datadir&g
21487  s&@docdir@&$docdir&g
21488  s&@infodir@&$infodir&g
21489  s&@localedir@&$localedir&g
21490  s&@mandir@&$mandir&g
21491    s&\\\${datarootdir}&$datarootdir&g' ;;
21492esac
21493_ACEOF
21494
21495# Neutralize VPATH when `$srcdir' = `.'.
21496# Shell code in configure.ac might set extrasub.
21497# FIXME: do we really want to maintain this feature?
21498cat >>$CONFIG_STATUS <<_ACEOF
21499  sed "$ac_vpsub
21500$extrasub
21501_ACEOF
21502cat >>$CONFIG_STATUS <<\_ACEOF
21503:t
21504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21505s&@configure_input@&$configure_input&;t t
21506s&@top_builddir@&$ac_top_builddir_sub&;t t
21507s&@srcdir@&$ac_srcdir&;t t
21508s&@abs_srcdir@&$ac_abs_srcdir&;t t
21509s&@top_srcdir@&$ac_top_srcdir&;t t
21510s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21511s&@builddir@&$ac_builddir&;t t
21512s&@abs_builddir@&$ac_abs_builddir&;t t
21513s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21514s&@INSTALL@&$ac_INSTALL&;t t
21515$ac_datarootdir_hack
21516" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21517
21518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21519  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21520  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21521  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21522which seems to be undefined.  Please make sure it is defined." >&5
21523echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21524which seems to be undefined.  Please make sure it is defined." >&2;}
21525
21526  rm -f "$tmp/stdin"
21527  case $ac_file in
21528  -) cat "$tmp/out"; rm -f "$tmp/out";;
21529  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21530  esac
21531 ;;
21532  :H)
21533  #
21534  # CONFIG_HEADER
21535  #
21536_ACEOF
21537
21538# Transform confdefs.h into a sed script `conftest.defines', that
21539# substitutes the proper values into config.h.in to produce config.h.
21540rm -f conftest.defines conftest.tail
21541# First, append a space to every undef/define line, to ease matching.
21542echo 's/$/ /' >conftest.defines
21543# Then, protect against being on the right side of a sed subst, or in
21544# an unquoted here document, in config.status.  If some macros were
21545# called several times there might be several #defines for the same
21546# symbol, which is useless.  But do not sort them, since the last
21547# AC_DEFINE must be honored.
21548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21549# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21550# NAME is the cpp macro being defined, VALUE is the value it is being given.
21551# PARAMS is the parameter list in the macro definition--in most cases, it's
21552# just an empty string.
21553ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21554ac_dB='\\)[	 (].*,\\1define\\2'
21555ac_dC=' '
21556ac_dD=' ,'
21557
21558uniq confdefs.h |
21559  sed -n '
21560	t rset
21561	:rset
21562	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21563	t ok
21564	d
21565	:ok
21566	s/[\\&,]/\\&/g
21567	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21568	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21569  ' >>conftest.defines
21570
21571# Remove the space that was appended to ease matching.
21572# Then replace #undef with comments.  This is necessary, for
21573# example, in the case of _POSIX_SOURCE, which is predefined and required
21574# on some systems where configure will not decide to define it.
21575# (The regexp can be short, since the line contains either #define or #undef.)
21576echo 's/ $//
21577s,^[	 #]*u.*,/* & */,' >>conftest.defines
21578
21579# Break up conftest.defines:
21580ac_max_sed_lines=50
21581
21582# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21583# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21584# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21585# et cetera.
21586ac_in='$ac_file_inputs'
21587ac_out='"$tmp/out1"'
21588ac_nxt='"$tmp/out2"'
21589
21590while :
21591do
21592  # Write a here document:
21593    cat >>$CONFIG_STATUS <<_ACEOF
21594    # First, check the format of the line:
21595    cat >"\$tmp/defines.sed" <<\\CEOF
21596/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21597/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21598b
21599:def
21600_ACEOF
21601  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21602  echo 'CEOF
21603    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21604  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21605  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21606  grep . conftest.tail >/dev/null || break
21607  rm -f conftest.defines
21608  mv conftest.tail conftest.defines
21609done
21610rm -f conftest.defines conftest.tail
21611
21612echo "ac_result=$ac_in" >>$CONFIG_STATUS
21613cat >>$CONFIG_STATUS <<\_ACEOF
21614  if test x"$ac_file" != x-; then
21615    echo "/* $configure_input  */" >"$tmp/config.h"
21616    cat "$ac_result" >>"$tmp/config.h"
21617    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21618      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21619echo "$as_me: $ac_file is unchanged" >&6;}
21620    else
21621      rm -f $ac_file
21622      mv "$tmp/config.h" $ac_file
21623    fi
21624  else
21625    echo "/* $configure_input  */"
21626    cat "$ac_result"
21627  fi
21628  rm -f "$tmp/out12"
21629 ;;
21630
21631  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21632echo "$as_me: executing $ac_file commands" >&6;}
21633 ;;
21634  esac
21635
21636
21637  case $ac_file$ac_mode in
21638    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21639   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21640    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21641   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21642    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21643   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21644    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21645   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21646    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21647   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21648    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21649   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21650    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21651   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21652    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21653   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21654    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21655   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21656    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21657   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21658    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21659   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21660    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21661   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21662    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21663   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21664
21665  esac
21666done # for ac_tag
21667
21668
21669{ (exit 0); exit 0; }
21670_ACEOF
21671chmod +x $CONFIG_STATUS
21672ac_clean_files=$ac_clean_files_save
21673
21674
21675# configure is writing to config.log, and then calls config.status.
21676# config.status does its own redirection, appending to config.log.
21677# Unfortunately, on DOS this fails, as config.log is still kept open
21678# by configure, so config.status won't be able to write to it; its
21679# output is simply discarded.  So we exec the FD to /dev/null,
21680# effectively closing config.log, so it can be properly (re)opened and
21681# appended to by config.status.  When coming back to configure, we
21682# need to make the FD available again.
21683if test "$no_create" != yes; then
21684  ac_cs_success=:
21685  ac_config_status_args=
21686  test "$silent" = yes &&
21687    ac_config_status_args="$ac_config_status_args --quiet"
21688  exec 5>/dev/null
21689  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21690  exec 5>>config.log
21691  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21692  # would make configure fail if this is the last instruction.
21693  $ac_cs_success || { (exit 1); exit 1; }
21694fi
21695
21696#
21697# CONFIG_SUBDIRS section.
21698#
21699if test "$no_recursion" != yes; then
21700
21701  # Remove --cache-file and --srcdir arguments so they do not pile up.
21702  ac_sub_configure_args=
21703  ac_prev=
21704  eval "set x $ac_configure_args"
21705  shift
21706  for ac_arg
21707  do
21708    if test -n "$ac_prev"; then
21709      ac_prev=
21710      continue
21711    fi
21712    case $ac_arg in
21713    -cache-file | --cache-file | --cache-fil | --cache-fi \
21714    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21715      ac_prev=cache_file ;;
21716    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21717    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21718    | --c=*)
21719      ;;
21720    --config-cache | -C)
21721      ;;
21722    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21723      ac_prev=srcdir ;;
21724    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21725      ;;
21726    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21727      ac_prev=prefix ;;
21728    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21729      ;;
21730    *)
21731      case $ac_arg in
21732      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21733      esac
21734      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21735    esac
21736  done
21737
21738  # Always prepend --prefix to ensure using the same prefix
21739  # in subdir configurations.
21740  ac_arg="--prefix=$prefix"
21741  case $ac_arg in
21742  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21743  esac
21744  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21745
21746  ac_popdir=`pwd`
21747  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21748
21749    # Do not complain, so a configure script can configure whichever
21750    # parts of a large source tree are present.
21751    test -d "$srcdir/$ac_dir" || continue
21752
21753    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21754    echo "$as_me:$LINENO: $ac_msg" >&5
21755    echo "$ac_msg" >&6
21756    { as_dir="$ac_dir"
21757  case $as_dir in #(
21758  -*) as_dir=./$as_dir;;
21759  esac
21760  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21761    as_dirs=
21762    while :; do
21763      case $as_dir in #(
21764      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21765      *) as_qdir=$as_dir;;
21766      esac
21767      as_dirs="'$as_qdir' $as_dirs"
21768      as_dir=`$as_dirname -- "$as_dir" ||
21769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770	 X"$as_dir" : 'X\(//\)[^/]' \| \
21771	 X"$as_dir" : 'X\(//\)$' \| \
21772	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21773echo X"$as_dir" |
21774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775	    s//\1/
21776	    q
21777	  }
21778	  /^X\(\/\/\)[^/].*/{
21779	    s//\1/
21780	    q
21781	  }
21782	  /^X\(\/\/\)$/{
21783	    s//\1/
21784	    q
21785	  }
21786	  /^X\(\/\).*/{
21787	    s//\1/
21788	    q
21789	  }
21790	  s/.*/./; q'`
21791      test -d "$as_dir" && break
21792    done
21793    test -z "$as_dirs" || eval "mkdir $as_dirs"
21794  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21795echo "$as_me: error: cannot create directory $as_dir" >&2;}
21796   { (exit 1); exit 1; }; }; }
21797    ac_builddir=.
21798
21799case "$ac_dir" in
21800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21801*)
21802  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21803  # A ".." for each directory in $ac_dir_suffix.
21804  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21805  case $ac_top_builddir_sub in
21806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21808  esac ;;
21809esac
21810ac_abs_top_builddir=$ac_pwd
21811ac_abs_builddir=$ac_pwd$ac_dir_suffix
21812# for backward compatibility:
21813ac_top_builddir=$ac_top_build_prefix
21814
21815case $srcdir in
21816  .)  # We are building in place.
21817    ac_srcdir=.
21818    ac_top_srcdir=$ac_top_builddir_sub
21819    ac_abs_top_srcdir=$ac_pwd ;;
21820  [\\/]* | ?:[\\/]* )  # Absolute name.
21821    ac_srcdir=$srcdir$ac_dir_suffix;
21822    ac_top_srcdir=$srcdir
21823    ac_abs_top_srcdir=$srcdir ;;
21824  *) # Relative name.
21825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21826    ac_top_srcdir=$ac_top_build_prefix$srcdir
21827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21828esac
21829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21830
21831
21832    cd "$ac_dir"
21833
21834    # Check for guested configure; otherwise get Cygnus style configure.
21835    if test -f "$ac_srcdir/configure.gnu"; then
21836      ac_sub_configure=$ac_srcdir/configure.gnu
21837    elif test -f "$ac_srcdir/configure"; then
21838      ac_sub_configure=$ac_srcdir/configure
21839    elif test -f "$ac_srcdir/configure.in"; then
21840      # This should be Cygnus configure.
21841      ac_sub_configure=$ac_aux_dir/configure
21842    else
21843      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21844echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21845      ac_sub_configure=
21846    fi
21847
21848    # The recursion is here.
21849    if test -n "$ac_sub_configure"; then
21850      # Make the cache file name correct relative to the subdirectory.
21851      case $cache_file in
21852      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21853      *) # Relative name.
21854	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21855      esac
21856
21857      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21858echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21859      # The eval makes quoting arguments work.
21860      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21861	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21862	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21863echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21864   { (exit 1); exit 1; }; }
21865    fi
21866
21867    cd "$ac_popdir"
21868  done
21869fi
21870
21871