configure revision 33177f591a46e2a476fe8ab49f7055532b48fd40
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4#
5# Report bugs to <bugs@yourdomain>.
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## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539exec 7<&0 </dev/null 6>&1
540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
550ac_clean_files=
551ac_config_libobj_dir=.
552LIBOBJS=
553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765COVERED_SWITCH_DEFAULT
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771SHLIBEXT
772SHLIBPATH_VAR
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
791ac_subst_files=''
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802CPP'
803ac_subdirs_all='tools/polly'
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *)	ac_optarg=yes ;;
865  esac
866
867  # Accept the important Cygnus configure options, so we can diagnose typos.
868
869  case $ac_dashdash$ac_option in
870  --)
871    ac_dashdash=yes ;;
872
873  -bindir | --bindir | --bindi | --bind | --bin | --bi)
874    ac_prev=bindir ;;
875  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876    bindir=$ac_optarg ;;
877
878  -build | --build | --buil | --bui | --bu)
879    ac_prev=build_alias ;;
880  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881    build_alias=$ac_optarg ;;
882
883  -cache-file | --cache-file | --cache-fil | --cache-fi \
884  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885    ac_prev=cache_file ;;
886  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888    cache_file=$ac_optarg ;;
889
890  --config-cache | -C)
891    cache_file=config.cache ;;
892
893  -datadir | --datadir | --datadi | --datad)
894    ac_prev=datadir ;;
895  -datadir=* | --datadir=* | --datadi=* | --datad=*)
896    datadir=$ac_optarg ;;
897
898  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899  | --dataroo | --dataro | --datar)
900    ac_prev=datarootdir ;;
901  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903    datarootdir=$ac_optarg ;;
904
905  -disable-* | --disable-*)
906    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910   { (exit 1); exit 1; }; }
911    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912    eval enable_$ac_feature=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929   { (exit 1); exit 1; }; }
930    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931    eval enable_$ac_feature=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077    ac_prev=sbindir ;;
1078  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079  | --sbi=* | --sb=*)
1080    sbindir=$ac_optarg ;;
1081
1082  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084  | --sharedst | --shareds | --shared | --share | --shar \
1085  | --sha | --sh)
1086    ac_prev=sharedstatedir ;;
1087  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090  | --sha=* | --sh=*)
1091    sharedstatedir=$ac_optarg ;;
1092
1093  -site | --site | --sit)
1094    ac_prev=site ;;
1095  -site=* | --site=* | --sit=*)
1096    site=$ac_optarg ;;
1097
1098  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099    ac_prev=srcdir ;;
1100  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101    srcdir=$ac_optarg ;;
1102
1103  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104  | --syscon | --sysco | --sysc | --sys | --sy)
1105    ac_prev=sysconfdir ;;
1106  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108    sysconfdir=$ac_optarg ;;
1109
1110  -target | --target | --targe | --targ | --tar | --ta | --t)
1111    ac_prev=target_alias ;;
1112  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113    target_alias=$ac_optarg ;;
1114
1115  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116    verbose=yes ;;
1117
1118  -version | --version | --versio | --versi | --vers | -V)
1119    ac_init_version=: ;;
1120
1121  -with-* | --with-*)
1122    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125      { echo "$as_me: error: invalid package name: $ac_package" >&2
1126   { (exit 1); exit 1; }; }
1127    ac_package=`echo $ac_package| sed 's/-/_/g'`
1128    eval with_$ac_package=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134      { echo "$as_me: error: invalid package name: $ac_package" >&2
1135   { (exit 1); exit 1; }; }
1136    ac_package=`echo $ac_package | sed 's/-/_/g'`
1137    eval with_$ac_package=no ;;
1138
1139  --x)
1140    # Obsolete; use --with-x.
1141    with_x=yes ;;
1142
1143  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144  | --x-incl | --x-inc | --x-in | --x-i)
1145    ac_prev=x_includes ;;
1146  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148    x_includes=$ac_optarg ;;
1149
1150  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152    ac_prev=x_libraries ;;
1153  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155    x_libraries=$ac_optarg ;;
1156
1157  -*) { echo "$as_me: error: unrecognized option: $ac_option
1158Try \`$0 --help' for more information." >&2
1159   { (exit 1); exit 1; }; }
1160    ;;
1161
1162  *=*)
1163    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167   { (exit 1); exit 1; }; }
1168    eval $ac_envvar=\$ac_optarg
1169    export $ac_envvar ;;
1170
1171  *)
1172    # FIXME: should be removed in autoconf 3.0.
1173    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177    ;;
1178
1179  esac
1180done
1181
1182if test -n "$ac_prev"; then
1183  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184  { echo "$as_me: error: missing argument to $ac_option" >&2
1185   { (exit 1); exit 1; }; }
1186fi
1187
1188# Be sure to have absolute directory names.
1189for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190		datadir sysconfdir sharedstatedir localstatedir includedir \
1191		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192		libdir localedir mandir
1193do
1194  eval ac_val=\$$ac_var
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200   { (exit 1); exit 1; }; }
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215    If a cross compiler is detected then cross compile mode will be used." >&2
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  { echo "$as_me: error: Working directory cannot be determined" >&2
1231   { (exit 1); exit 1; }; }
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233  { echo "$as_me: error: pwd does not report name of working directory" >&2
1234   { (exit 1); exit 1; }; }
1235
1236
1237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239  ac_srcdir_defaulted=yes
1240  # Try the directory containing this script, then the parent directory.
1241  ac_confdir=`$as_dirname -- "$0" ||
1242$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243	 X"$0" : 'X\(//\)[^/]' \| \
1244	 X"$0" : 'X\(//\)$' \| \
1245	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246echo X"$0" |
1247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)[^/].*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\/\)$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\).*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  s/.*/./; q'`
1264  srcdir=$ac_confdir
1265  if test ! -r "$srcdir/$ac_unique_file"; then
1266    srcdir=..
1267  fi
1268else
1269  ac_srcdir_defaulted=no
1270fi
1271if test ! -r "$srcdir/$ac_unique_file"; then
1272  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274   { (exit 1); exit 1; }; }
1275fi
1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279   { (exit 1); exit 1; }; }
1280	pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283  srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_env_${ac_var}_value=\$${ac_var}
1294  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
1297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302  # Omit some internal or obsolete options to make the list less imposing.
1303  # This message is too long to be a string in the A/UX 3.1 sh.
1304  cat <<_ACEOF
1305\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315  -h, --help              display this help and exit
1316      --help=short        display options specific to this package
1317      --help=recursive    display the short help of all the included packages
1318  -V, --version           display version information and exit
1319  -q, --quiet, --silent   do not print \`checking...' messages
1320      --cache-file=FILE   cache test results in FILE [disabled]
1321  -C, --config-cache      alias for \`--cache-file=config.cache'
1322  -n, --no-create         do not create output files
1323      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325Installation directories:
1326  --prefix=PREFIX         install architecture-independent files in PREFIX
1327			  [$ac_default_prefix]
1328  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329			  [PREFIX]
1330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339  --bindir=DIR           user executables [EPREFIX/bin]
1340  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1341  --libexecdir=DIR       program executables [EPREFIX/libexec]
1342  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345  --libdir=DIR           object code libraries [EPREFIX/lib]
1346  --includedir=DIR       C header files [PREFIX/include]
1347  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1349  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1350  --infodir=DIR          info documentation [DATAROOTDIR/info]
1351  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1352  --mandir=DIR           man documentation [DATAROOTDIR/man]
1353  --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1354  --htmldir=DIR          html documentation [DOCDIR]
1355  --dvidir=DIR           dvi documentation [DOCDIR]
1356  --pdfdir=DIR           pdf documentation [DOCDIR]
1357  --psdir=DIR            ps documentation [DOCDIR]
1358_ACEOF
1359
1360  cat <<\_ACEOF
1361
1362System types:
1363  --build=BUILD     configure for building on BUILD [guessed]
1364  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365  --target=TARGET   configure for building compilers for TARGET [HOST]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370  case $ac_init_help in
1371     short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372   esac
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-polly          Use polly if available (default is YES)
1379  --enable-optimized      Compile with optimizations enabled (default is NO)
1380  --enable-profiling      Compile with profiling enabled (default is NO)
1381  --enable-assertions     Compile with assertion checks enabled (default is
1382                          YES)
1383  --enable-expensive-checks
1384                          Compile with expensive debug checks enabled (default
1385                          is NO)
1386  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1387                          NO)
1388  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1389                          optimization is on and YES if it's off)
1390  --enable-jit            Enable Just In Time Compiling (default is YES)
1391  --enable-docs           Build documents (default is YES)
1392  --enable-doxygen        Build doxygen documentation (default is NO)
1393  --enable-threads        Use threads if available (default is YES)
1394  --enable-pthreads       Use pthreads if available (default is YES)
1395  --enable-pic            Build LLVM with Position Independent Code (default
1396                          is YES)
1397  --enable-shared         Build a shared library and link tools against it
1398                          (default is NO)
1399  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1400                          Win32 DLL (default is YES)
1401  --enable-timestamps     Enable embedding timestamp information in build
1402                          (default is YES)
1403  --enable-targets        Build specific host targets: all or
1404                          target1,target2,... Valid targets are: host, x86,
1405                          x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1406                          xcore, msp430, ptx, cbe, and cpp (default=all)
1407  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1408                          %a (default is YES)
1409  --enable-bindings       Build specific language bindings:
1410                          all,auto,none,{binding-name} (default=auto)
1411  --enable-libffi         Check for the presence of libffi (default is NO)
1412  --enable-ltdl-install   install libltdl
1413
1414Optional Packages:
1415  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417  --with-llvmsrc          Location of LLVM Source Code
1418  --with-llvmobj          Location of LLVM Object Code
1419  --with-optimize-option  Select the compiler options to use for optimized
1420                          builds
1421  --with-extra-options    Specify additional options to compile LLVM with
1422  --with-extra-ld-options Specify additional options to link LLVM with
1423  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1424                          is stdlib)
1425  --with-clang-resource-dir
1426                          Relative directory from the Clang binary for
1427                          resource files
1428  --with-c-include-dirs   Colon separated list of directories clang will
1429                          search for headers
1430  --with-gcc-toolchain    Directory where gcc is installed.
1431  --with-binutils-include Specify path to binutils/include/ containing
1432                          plugin-api.h file for gold plugin.
1433  --with-bug-report-url   Specify the URL where bug reports should be
1434                          submitted (default=http://llvm.org/bugs/)
1435  --with-tclinclude       directory where tcl headers are
1436  --with-udis86=<path>    Use udis86 external x86 disassembler library
1437  --with-oprofile=<prefix>
1438                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  CXX         C++ compiler command
1448  CXXFLAGS    C++ compiler flags
1449  CPP         C preprocessor
1450
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
1454Report bugs to <bugs@yourdomain>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460  # If there are subdirs, report their specific --help.
1461  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462    test -d "$ac_dir" || continue
1463    ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469  # A ".." for each directory in $ac_dir_suffix.
1470  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471  case $ac_top_builddir_sub in
1472  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474  esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482  .)  # We are building in place.
1483    ac_srcdir=.
1484    ac_top_srcdir=$ac_top_builddir_sub
1485    ac_abs_top_srcdir=$ac_pwd ;;
1486  [\\/]* | ?:[\\/]* )  # Absolute name.
1487    ac_srcdir=$srcdir$ac_dir_suffix;
1488    ac_top_srcdir=$srcdir
1489    ac_abs_top_srcdir=$srcdir ;;
1490  *) # Relative name.
1491    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492    ac_top_srcdir=$ac_top_build_prefix$srcdir
1493    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497    cd "$ac_dir" || { ac_status=$?; continue; }
1498    # Check for guested configure.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515[SAMPLE] configure [x.xx]
1516generated by GNU Autoconf 2.60
1517
1518Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15192002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523  exit
1524fi
1525cat >config.log <<_ACEOF
1526This file contains any messages produced by compilers while
1527running configure, to aid debugging if configure makes a mistake.
1528
1529It was created by [SAMPLE] $as_me [x.xx], which was
1530generated by GNU Autoconf 2.60.  Invocation command line was
1531
1532  $ $0 $@
1533
1534_ACEOF
1535exec 5>>config.log
1536{
1537cat <<_ASUNAME
1538## --------- ##
1539## Platform. ##
1540## --------- ##
1541
1542hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546uname -v = `(uname -v) 2>/dev/null || echo unknown`
1547
1548/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1550
1551/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1552/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1553/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1555/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1556/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1557/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1558
1559_ASUNAME
1560
1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564  IFS=$as_save_IFS
1565  test -z "$as_dir" && as_dir=.
1566  echo "PATH: $as_dir"
1567done
1568IFS=$as_save_IFS
1569
1570} >&5
1571
1572cat >&5 <<_ACEOF
1573
1574
1575## ----------- ##
1576## Core tests. ##
1577## ----------- ##
1578
1579_ACEOF
1580
1581
1582# Keep a trace of the command line.
1583# Strip out --no-create and --no-recursion so they do not pile up.
1584# Strip out --silent because we don't want to record it for future runs.
1585# Also quote any args containing shell meta-characters.
1586# Make two passes to allow for proper duplicate-argument suppression.
1587ac_configure_args=
1588ac_configure_args0=
1589ac_configure_args1=
1590ac_must_keep_next=false
1591for ac_pass in 1 2
1592do
1593  for ac_arg
1594  do
1595    case $ac_arg in
1596    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598    | -silent | --silent | --silen | --sile | --sil)
1599      continue ;;
1600    *\'*)
1601      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602    esac
1603    case $ac_pass in
1604    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1605    2)
1606      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607      if test $ac_must_keep_next = true; then
1608	ac_must_keep_next=false # Got value, back to normal.
1609      else
1610	case $ac_arg in
1611	  *=* | --config-cache | -C | -disable-* | --disable-* \
1612	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614	  | -with-* | --with-* | -without-* | --without-* | --x)
1615	    case "$ac_configure_args0 " in
1616	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617	    esac
1618	    ;;
1619	  -* ) ac_must_keep_next=true ;;
1620	esac
1621      fi
1622      ac_configure_args="$ac_configure_args '$ac_arg'"
1623      ;;
1624    esac
1625  done
1626done
1627$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1629
1630# When interrupted or exit'd, cleanup temporary files, and complete
1631# config.log.  We remove comments because anyway the quotes in there
1632# would cause problems or look ugly.
1633# WARNING: Use '\'' to represent an apostrophe within the trap.
1634# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635trap 'exit_status=$?
1636  # Save into config.log some information that might help in debugging.
1637  {
1638    echo
1639
1640    cat <<\_ASBOX
1641## ---------------- ##
1642## Cache variables. ##
1643## ---------------- ##
1644_ASBOX
1645    echo
1646    # The following way of writing the cache mishandles newlines in values,
1647(
1648  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649    eval ac_val=\$$ac_var
1650    case $ac_val in #(
1651    *${as_nl}*)
1652      case $ac_var in #(
1653      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655      esac
1656      case $ac_var in #(
1657      _ | IFS | as_nl) ;; #(
1658      *) $as_unset $ac_var ;;
1659      esac ;;
1660    esac
1661  done
1662  (set) 2>&1 |
1663    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664    *${as_nl}ac_space=\ *)
1665      sed -n \
1666	"s/'\''/'\''\\\\'\'''\''/g;
1667	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668      ;; #(
1669    *)
1670      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1671      ;;
1672    esac |
1673    sort
1674)
1675    echo
1676
1677    cat <<\_ASBOX
1678## ----------------- ##
1679## Output variables. ##
1680## ----------------- ##
1681_ASBOX
1682    echo
1683    for ac_var in $ac_subst_vars
1684    do
1685      eval ac_val=\$$ac_var
1686      case $ac_val in
1687      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688      esac
1689      echo "$ac_var='\''$ac_val'\''"
1690    done | sort
1691    echo
1692
1693    if test -n "$ac_subst_files"; then
1694      cat <<\_ASBOX
1695## ------------------- ##
1696## File substitutions. ##
1697## ------------------- ##
1698_ASBOX
1699      echo
1700      for ac_var in $ac_subst_files
1701      do
1702	eval ac_val=\$$ac_var
1703	case $ac_val in
1704	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705	esac
1706	echo "$ac_var='\''$ac_val'\''"
1707      done | sort
1708      echo
1709    fi
1710
1711    if test -s confdefs.h; then
1712      cat <<\_ASBOX
1713## ----------- ##
1714## confdefs.h. ##
1715## ----------- ##
1716_ASBOX
1717      echo
1718      cat confdefs.h
1719      echo
1720    fi
1721    test "$ac_signal" != 0 &&
1722      echo "$as_me: caught signal $ac_signal"
1723    echo "$as_me: exit $exit_status"
1724  } >&5
1725  rm -f core *.core core.conftest.* &&
1726    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727    exit $exit_status
1728' 0
1729for ac_signal in 1 2 13 15; do
1730  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731done
1732ac_signal=0
1733
1734# confdefs.h avoids OS command line length limits that DEFS can exceed.
1735rm -f -r conftest* confdefs.h
1736
1737# Predefined preprocessor variables.
1738
1739cat >>confdefs.h <<_ACEOF
1740#define PACKAGE_NAME "$PACKAGE_NAME"
1741_ACEOF
1742
1743
1744cat >>confdefs.h <<_ACEOF
1745#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_VERSION "$PACKAGE_VERSION"
1751_ACEOF
1752
1753
1754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_STRING "$PACKAGE_STRING"
1756_ACEOF
1757
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761_ACEOF
1762
1763
1764# Let the site file select an alternate cache file if it wants to.
1765# Prefer explicitly selected file to automatically selected ones.
1766if test -n "$CONFIG_SITE"; then
1767  set x "$CONFIG_SITE"
1768elif test "x$prefix" != xNONE; then
1769  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770else
1771  set x "$ac_default_prefix/share/config.site" \
1772	"$ac_default_prefix/etc/config.site"
1773fi
1774shift
1775for ac_site_file
1776do
1777  if test -r "$ac_site_file"; then
1778    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779echo "$as_me: loading site script $ac_site_file" >&6;}
1780    sed 's/^/| /' "$ac_site_file" >&5
1781    . "$ac_site_file"
1782  fi
1783done
1784
1785if test -r "$cache_file"; then
1786  # Some versions of bash will fail to source /dev/null (special
1787  # files actually), so we avoid doing that.
1788  if test -f "$cache_file"; then
1789    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790echo "$as_me: loading cache $cache_file" >&6;}
1791    case $cache_file in
1792      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793      *)                      . "./$cache_file";;
1794    esac
1795  fi
1796else
1797  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798echo "$as_me: creating cache $cache_file" >&6;}
1799  >$cache_file
1800fi
1801
1802# Check that the precious variables saved in the cache have kept the same
1803# value.
1804ac_cache_corrupted=false
1805for ac_var in $ac_precious_vars; do
1806  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807  eval ac_new_set=\$ac_env_${ac_var}_set
1808  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809  eval ac_new_val=\$ac_env_${ac_var}_value
1810  case $ac_old_set,$ac_new_set in
1811    set,)
1812      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814      ac_cache_corrupted=: ;;
1815    ,set)
1816      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818      ac_cache_corrupted=: ;;
1819    ,);;
1820    *)
1821      if test "x$ac_old_val" != "x$ac_new_val"; then
1822	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1825echo "$as_me:   former value:  $ac_old_val" >&2;}
1826	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1827echo "$as_me:   current value: $ac_new_val" >&2;}
1828	ac_cache_corrupted=:
1829      fi;;
1830  esac
1831  # Pass precious variables to config.status.
1832  if test "$ac_new_set" = set; then
1833    case $ac_new_val in
1834    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835    *) ac_arg=$ac_var=$ac_new_val ;;
1836    esac
1837    case " $ac_configure_args " in
1838      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1839      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840    esac
1841  fi
1842done
1843if $ac_cache_corrupted; then
1844  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848   { (exit 1); exit 1; }; }
1849fi
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875ac_ext=c
1876ac_cpp='$CPP $CPPFLAGS'
1877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880
1881
1882
1883LLVM_SRC_ROOT="../.."
1884LLVM_OBJ_ROOT="../.."
1885
1886LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1887LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1888
1889
1890# Check whether --with-llvmsrc was given.
1891if test "${with_llvmsrc+set}" = set; then
1892  withval=$with_llvmsrc; llvm_src="$withval"
1893else
1894  llvm_src="$LLVM_ABS_SRC_ROOT"
1895fi
1896
1897  LLVM_SRC=$llvm_src
1898
1899
1900# Check whether --with-llvmobj was given.
1901if test "${with_llvmobj+set}" = set; then
1902  withval=$with_llvmobj; llvm_obj="$withval"
1903else
1904  llvm_obj="$LLVM_ABS_OBJ_ROOT"
1905fi
1906
1907  LLVM_OBJ=$llvm_obj
1908
1909  ac_config_commands="$ac_config_commands setup"
1910
1911
1912
1913{ echo "$as_me:$LINENO: checking llvm-config" >&5
1914echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1915llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1916if ! test -f "$llvm_config_path" ; then
1917   llvm_config_path="no"
1918fi
1919{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1920echo "${ECHO_T}$llvm_config_path" >&6; }
1921
1922{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1923echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1924if test "$llvm_config_path" != no ; then
1925  llvm_package_version=`$llvm_config_path --version`
1926else
1927  llvm_package_version="unknown";
1928fi
1929{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1930echo "${ECHO_T}$llvm_package_version" >&6; }
1931LLVM_VERSION=$llvm_package_version
1932
1933
1934
1935
1936ac_aux_dir=
1937for ac_dir in autoconf "$srcdir"/autoconf; do
1938  if test -f "$ac_dir/install-sh"; then
1939    ac_aux_dir=$ac_dir
1940    ac_install_sh="$ac_aux_dir/install-sh -c"
1941    break
1942  elif test -f "$ac_dir/install.sh"; then
1943    ac_aux_dir=$ac_dir
1944    ac_install_sh="$ac_aux_dir/install.sh -c"
1945    break
1946  elif test -f "$ac_dir/shtool"; then
1947    ac_aux_dir=$ac_dir
1948    ac_install_sh="$ac_aux_dir/shtool install -c"
1949    break
1950  fi
1951done
1952if test -z "$ac_aux_dir"; then
1953  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955   { (exit 1); exit 1; }; }
1956fi
1957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968
1969ac_ext=c
1970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974if test -n "$ac_tool_prefix"; then
1975  for ac_prog in clang llvm-gcc gcc
1976  do
1977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981if test "${ac_cv_prog_CC+set}" = set; then
1982  echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984  if test -n "$CC"; then
1985  ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992  for ac_exec_ext in '' $ac_executable_extensions; do
1993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000IFS=$as_save_IFS
2001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
2006  { echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6; }
2008else
2009  { echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6; }
2011fi
2012
2013
2014    test -n "$CC" && break
2015  done
2016fi
2017if test -z "$CC"; then
2018  ac_ct_CC=$CC
2019  for ac_prog in clang llvm-gcc gcc
2020do
2021  # Extract the first word of "$ac_prog", so it can be a program name with args.
2022set dummy $ac_prog; ac_word=$2
2023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  if test -n "$ac_ct_CC"; then
2029  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  for ac_exec_ext in '' $ac_executable_extensions; do
2037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038    ac_cv_prog_ac_ct_CC="$ac_prog"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044IFS=$as_save_IFS
2045
2046fi
2047fi
2048ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049if test -n "$ac_ct_CC"; then
2050  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051echo "${ECHO_T}$ac_ct_CC" >&6; }
2052else
2053  { echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6; }
2055fi
2056
2057
2058  test -n "$ac_ct_CC" && break
2059done
2060
2061  if test "x$ac_ct_CC" = x; then
2062    CC=""
2063  else
2064    case $cross_compiling:$ac_tool_warned in
2065yes:)
2066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet.  If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&5
2069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070whose name does not start with the host triplet.  If you think this
2071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072ac_tool_warned=yes ;;
2073esac
2074    CC=$ac_ct_CC
2075  fi
2076fi
2077
2078
2079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&2;}
2083   { (exit 1); exit 1; }; }
2084
2085# Provide some information about the compiler.
2086echo "$as_me:$LINENO: checking for C compiler version" >&5
2087ac_compiler=`set X $ac_compile; echo $2`
2088{ (ac_try="$ac_compiler --version >&5"
2089case "(($ac_try" in
2090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091  *) ac_try_echo=$ac_try;;
2092esac
2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094  (eval "$ac_compiler --version >&5") 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }
2098{ (ac_try="$ac_compiler -v >&5"
2099case "(($ac_try" in
2100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101  *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104  (eval "$ac_compiler -v >&5") 2>&5
2105  ac_status=$?
2106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107  (exit $ac_status); }
2108{ (ac_try="$ac_compiler -V >&5"
2109case "(($ac_try" in
2110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111  *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114  (eval "$ac_compiler -V >&5") 2>&5
2115  ac_status=$?
2116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117  (exit $ac_status); }
2118
2119cat >conftest.$ac_ext <<_ACEOF
2120/* confdefs.h.  */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
2124/* end confdefs.h.  */
2125
2126int
2127main ()
2128{
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134ac_clean_files_save=$ac_clean_files
2135ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136# Try to create an executable without -o first, disregard a.out.
2137# It will help us diagnose broken compilers, and finding out an intuition
2138# of exeext.
2139{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142#
2143# List of possible output files, starting from the most likely.
2144# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145# only as a last resort.  b.out is created by i960 compilers.
2146ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147#
2148# The IRIX 6 linker writes into existing files which may not be
2149# executable, retaining their permissions.  Remove them first so a
2150# subsequent execution test works.
2151ac_rmfiles=
2152for ac_file in $ac_files
2153do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157  esac
2158done
2159rm -f $ac_rmfiles
2160
2161if { (ac_try="$ac_link_default"
2162case "(($ac_try" in
2163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164  *) ac_try_echo=$ac_try;;
2165esac
2166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167  (eval "$ac_link_default") 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; then
2171  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2174# so that the user can short-circuit this test for compilers unknown to
2175# Autoconf.
2176for ac_file in $ac_files
2177do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181	;;
2182    [ab].out )
2183	# We found the default executable, but exeext='' is most
2184	# certainly right.
2185	break;;
2186    *.* )
2187        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188	then :; else
2189	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190	fi
2191	# We set ac_cv_exeext here because the later test for it is not
2192	# safe: cross compilers may not add the suffix if given an `-o'
2193	# argument, so we may need to know it at that point already.
2194	# Even if this section looks crufty: it has the advantage of
2195	# actually working.
2196	break;;
2197    * )
2198	break;;
2199  esac
2200done
2201test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
2203else
2204  echo "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: C compiler cannot create executables
2210See \`config.log' for more details." >&2;}
2211   { (exit 77); exit 77; }; }
2212fi
2213
2214ac_exeext=$ac_cv_exeext
2215{ echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6; }
2217
2218# Check that the compiler produces executables we can run.  If not, either
2219# the compiler is broken, or we cross compile.
2220{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223# If not cross compiling, check that we can run a simple program.
2224if test "$cross_compiling" != yes; then
2225  if { ac_try='./$ac_file'
2226  { (case "(($ac_try" in
2227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228  *) ac_try_echo=$ac_try;;
2229esac
2230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231  (eval "$ac_try") 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235    cross_compiling=no
2236  else
2237    if test "$cross_compiling" = maybe; then
2238	cross_compiling=yes
2239    else
2240	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&5
2243echo "$as_me: error: cannot run C compiled programs.
2244If you meant to cross compile, use \`--host'.
2245See \`config.log' for more details." >&2;}
2246   { (exit 1); exit 1; }; }
2247    fi
2248  fi
2249fi
2250{ echo "$as_me:$LINENO: result: yes" >&5
2251echo "${ECHO_T}yes" >&6; }
2252
2253rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254ac_clean_files=$ac_clean_files_save
2255# Check that the compiler produces executables we can run.  If not, either
2256# the compiler is broken, or we cross compile.
2257{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264if { (ac_try="$ac_link"
2265case "(($ac_try" in
2266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267  *) ac_try_echo=$ac_try;;
2268esac
2269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270  (eval "$ac_link") 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; then
2274  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276# work properly (i.e., refer to `conftest.exe'), while it won't with
2277# `rm'.
2278for ac_file in conftest.exe conftest conftest.*; do
2279  test -f "$ac_file" || continue
2280  case $ac_file in
2281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283	  break;;
2284    * ) break;;
2285  esac
2286done
2287else
2288  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&2;}
2292   { (exit 1); exit 1; }; }
2293fi
2294
2295rm -f conftest$ac_cv_exeext
2296{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298
2299rm -f conftest.$ac_ext
2300EXEEXT=$ac_cv_exeext
2301ac_exeext=$EXEEXT
2302{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304if test "${ac_cv_objext+set}" = set; then
2305  echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307  cat >conftest.$ac_ext <<_ACEOF
2308/* confdefs.h.  */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
2312/* end confdefs.h.  */
2313
2314int
2315main ()
2316{
2317
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322rm -f conftest.o conftest.obj
2323if { (ac_try="$ac_compile"
2324case "(($ac_try" in
2325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326  *) ac_try_echo=$ac_try;;
2327esac
2328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329  (eval "$ac_compile") 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  for ac_file in conftest.o conftest.obj conftest.*; do
2334  test -f "$ac_file" || continue;
2335  case $ac_file in
2336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338       break;;
2339  esac
2340done
2341else
2342  echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&2;}
2349   { (exit 1); exit 1; }; }
2350fi
2351
2352rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353fi
2354{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355echo "${ECHO_T}$ac_cv_objext" >&6; }
2356OBJEXT=$ac_cv_objext
2357ac_objext=$OBJEXT
2358{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369
2370int
2371main ()
2372{
2373#ifndef __GNUC__
2374       choke me
2375#endif
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (ac_try="$ac_compile"
2383case "(($ac_try" in
2384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385  *) ac_try_echo=$ac_try;;
2386esac
2387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388  (eval "$ac_compile") 2>conftest.er1
2389  ac_status=$?
2390  grep -v '^ *+' conftest.er1 >conftest.err
2391  rm -f conftest.er1
2392  cat conftest.err >&5
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); } &&
2395	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396  { (case "(($ac_try" in
2397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398  *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401  (eval "$ac_try") 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405	 { ac_try='test -s conftest.$ac_objext'
2406  { (case "(($ac_try" in
2407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408  *) ac_try_echo=$ac_try;;
2409esac
2410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411  (eval "$ac_try") 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415  ac_compiler_gnu=yes
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420	ac_compiler_gnu=no
2421fi
2422
2423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426fi
2427{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429GCC=`test $ac_compiler_gnu = yes && echo yes`
2430ac_test_CFLAGS=${CFLAGS+set}
2431ac_save_CFLAGS=$CFLAGS
2432{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434if test "${ac_cv_prog_cc_g+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  ac_save_c_werror_flag=$ac_c_werror_flag
2438   ac_c_werror_flag=yes
2439   ac_cv_prog_cc_g=no
2440   CFLAGS="-g"
2441   cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456rm -f conftest.$ac_objext
2457if { (ac_try="$ac_compile"
2458case "(($ac_try" in
2459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460  *) ac_try_echo=$ac_try;;
2461esac
2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463  (eval "$ac_compile") 2>conftest.er1
2464  ac_status=$?
2465  grep -v '^ *+' conftest.er1 >conftest.err
2466  rm -f conftest.er1
2467  cat conftest.err >&5
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); } &&
2470	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471  { (case "(($ac_try" in
2472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473  *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476  (eval "$ac_try") 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480	 { ac_try='test -s conftest.$ac_objext'
2481  { (case "(($ac_try" in
2482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483  *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486  (eval "$ac_try") 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; }; then
2490  ac_cv_prog_cc_g=yes
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495	CFLAGS=""
2496      cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502
2503int
2504main ()
2505{
2506
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (ac_try="$ac_compile"
2513case "(($ac_try" in
2514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515  *) ac_try_echo=$ac_try;;
2516esac
2517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518  (eval "$ac_compile") 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526  { (case "(($ac_try" in
2527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528  *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531  (eval "$ac_try") 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535	 { ac_try='test -s conftest.$ac_objext'
2536  { (case "(($ac_try" in
2537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538  *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541  (eval "$ac_try") 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; }; then
2545  :
2546else
2547  echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550	ac_c_werror_flag=$ac_save_c_werror_flag
2551	 CFLAGS="-g"
2552	 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h.  */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h.  */
2558
2559int
2560main ()
2561{
2562
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (ac_try="$ac_compile"
2569case "(($ac_try" in
2570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571  *) ac_try_echo=$ac_try;;
2572esac
2573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574  (eval "$ac_compile") 2>conftest.er1
2575  ac_status=$?
2576  grep -v '^ *+' conftest.er1 >conftest.err
2577  rm -f conftest.er1
2578  cat conftest.err >&5
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); } &&
2581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582  { (case "(($ac_try" in
2583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584  *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587  (eval "$ac_try") 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591	 { ac_try='test -s conftest.$ac_objext'
2592  { (case "(($ac_try" in
2593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594  *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597  (eval "$ac_try") 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  ac_cv_prog_cc_g=yes
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
2607fi
2608
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613fi
2614
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616   ac_c_werror_flag=$ac_save_c_werror_flag
2617fi
2618{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620if test "$ac_test_CFLAGS" = set; then
2621  CFLAGS=$ac_save_CFLAGS
2622elif test $ac_cv_prog_cc_g = yes; then
2623  if test "$GCC" = yes; then
2624    CFLAGS="-g -O2"
2625  else
2626    CFLAGS="-g"
2627  fi
2628else
2629  if test "$GCC" = yes; then
2630    CFLAGS="-O2"
2631  else
2632    CFLAGS=
2633  fi
2634fi
2635{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_cc_c89+set}" = set; then
2638  echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640  ac_cv_prog_cc_c89=no
2641ac_save_CC=$CC
2642cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h.  */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h.  */
2648#include <stdarg.h>
2649#include <stdio.h>
2650#include <sys/types.h>
2651#include <sys/stat.h>
2652/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2653struct buf { int x; };
2654FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655static char *e (p, i)
2656     char **p;
2657     int i;
2658{
2659  return p[i];
2660}
2661static char *f (char * (*g) (char **, int), char **p, ...)
2662{
2663  char *s;
2664  va_list v;
2665  va_start (v,p);
2666  s = g (p, va_arg (v,int));
2667  va_end (v);
2668  return s;
2669}
2670
2671/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2672   function prototypes and stuff, but not '\xHH' hex character constants.
2673   These don't provoke an error unfortunately, instead are silently treated
2674   as 'x'.  The following induces an error, until -std is added to get
2675   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2676   array size at least.  It's necessary to write '\x00'==0 to get something
2677   that's true only with -std.  */
2678int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
2680/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681   inside strings and character constants.  */
2682#define FOO(x) 'x'
2683int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
2685int test (int i, double x);
2686struct s1 {int (*f) (int a);};
2687struct s2 {int (*f) (double a);};
2688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689int argc;
2690char **argv;
2691int
2692main ()
2693{
2694return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701do
2702  CC="$ac_save_CC $ac_arg"
2703  rm -f conftest.$ac_objext
2704if { (ac_try="$ac_compile"
2705case "(($ac_try" in
2706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707  *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710  (eval "$ac_compile") 2>conftest.er1
2711  ac_status=$?
2712  grep -v '^ *+' conftest.er1 >conftest.err
2713  rm -f conftest.er1
2714  cat conftest.err >&5
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); } &&
2717	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718  { (case "(($ac_try" in
2719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720  *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723  (eval "$ac_try") 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727	 { ac_try='test -s conftest.$ac_objext'
2728  { (case "(($ac_try" in
2729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730  *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733  (eval "$ac_try") 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; }; then
2737  ac_cv_prog_cc_c89=$ac_arg
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
2743fi
2744
2745rm -f core conftest.err conftest.$ac_objext
2746  test "x$ac_cv_prog_cc_c89" != "xno" && break
2747done
2748rm -f conftest.$ac_ext
2749CC=$ac_save_CC
2750
2751fi
2752# AC_CACHE_VAL
2753case "x$ac_cv_prog_cc_c89" in
2754  x)
2755    { echo "$as_me:$LINENO: result: none needed" >&5
2756echo "${ECHO_T}none needed" >&6; } ;;
2757  xno)
2758    { echo "$as_me:$LINENO: result: unsupported" >&5
2759echo "${ECHO_T}unsupported" >&6; } ;;
2760  *)
2761    CC="$CC $ac_cv_prog_cc_c89"
2762    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764esac
2765
2766
2767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773ac_ext=cpp
2774ac_cpp='$CXXCPP $CPPFLAGS'
2775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778if test -z "$CXX"; then
2779  if test -n "$CCC"; then
2780    CXX=$CCC
2781  else
2782    if test -n "$ac_tool_prefix"; then
2783  for ac_prog in clang++ llvm-g++ g++
2784  do
2785    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789if test "${ac_cv_prog_CXX+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  if test -n "$CXX"; then
2793  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800  for ac_exec_ext in '' $ac_executable_extensions; do
2801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CXX=$ac_cv_prog_CXX
2813if test -n "$CXX"; then
2814  { echo "$as_me:$LINENO: result: $CXX" >&5
2815echo "${ECHO_T}$CXX" >&6; }
2816else
2817  { echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6; }
2819fi
2820
2821
2822    test -n "$CXX" && break
2823  done
2824fi
2825if test -z "$CXX"; then
2826  ac_ct_CXX=$CXX
2827  for ac_prog in clang++ llvm-g++ g++
2828do
2829  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834  echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836  if test -n "$ac_ct_CXX"; then
2837  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844  for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    ac_cv_prog_ac_ct_CXX="$ac_prog"
2847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857if test -n "$ac_ct_CXX"; then
2858  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860else
2861  { echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6; }
2863fi
2864
2865
2866  test -n "$ac_ct_CXX" && break
2867done
2868
2869  if test "x$ac_ct_CXX" = x; then
2870    CXX="g++"
2871  else
2872    case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet.  If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&5
2877echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878whose name does not start with the host triplet.  If you think this
2879configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880ac_tool_warned=yes ;;
2881esac
2882    CXX=$ac_ct_CXX
2883  fi
2884fi
2885
2886  fi
2887fi
2888# Provide some information about the compiler.
2889echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890ac_compiler=`set X $ac_compile; echo $2`
2891{ (ac_try="$ac_compiler --version >&5"
2892case "(($ac_try" in
2893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894  *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897  (eval "$ac_compiler --version >&5") 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }
2901{ (ac_try="$ac_compiler -v >&5"
2902case "(($ac_try" in
2903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904  *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907  (eval "$ac_compiler -v >&5") 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); }
2911{ (ac_try="$ac_compiler -V >&5"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917  (eval "$ac_compiler -V >&5") 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }
2921
2922{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925  echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927  cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933
2934int
2935main ()
2936{
2937#ifndef __GNUC__
2938       choke me
2939#endif
2940
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext
2946if { (ac_try="$ac_compile"
2947case "(($ac_try" in
2948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949  *) ac_try_echo=$ac_try;;
2950esac
2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952  (eval "$ac_compile") 2>conftest.er1
2953  ac_status=$?
2954  grep -v '^ *+' conftest.er1 >conftest.err
2955  rm -f conftest.er1
2956  cat conftest.err >&5
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); } &&
2959	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960  { (case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965  (eval "$ac_try") 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969	 { ac_try='test -s conftest.$ac_objext'
2970  { (case "(($ac_try" in
2971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972  *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975  (eval "$ac_try") 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  ac_compiler_gnu=yes
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984	ac_compiler_gnu=no
2985fi
2986
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990fi
2991{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993GXX=`test $ac_compiler_gnu = yes && echo yes`
2994ac_test_CXXFLAGS=${CXXFLAGS+set}
2995ac_save_CXXFLAGS=$CXXFLAGS
2996{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998if test "${ac_cv_prog_cxx_g+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002   ac_cxx_werror_flag=yes
3003   ac_cv_prog_cxx_g=no
3004   CXXFLAGS="-g"
3005   cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_compile") 2>conftest.er1
3028  ac_status=$?
3029  grep -v '^ *+' conftest.er1 >conftest.err
3030  rm -f conftest.er1
3031  cat conftest.err >&5
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); } &&
3034	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035  { (case "(($ac_try" in
3036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037  *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040  (eval "$ac_try") 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; } &&
3044	 { ac_try='test -s conftest.$ac_objext'
3045  { (case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050  (eval "$ac_try") 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; }; then
3054  ac_cv_prog_cxx_g=yes
3055else
3056  echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059	CXXFLAGS=""
3060      cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h.  */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h.  */
3066
3067int
3068main ()
3069{
3070
3071  ;
3072  return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082  (eval "$ac_compile") 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090  { (case "(($ac_try" in
3091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092  *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095  (eval "$ac_try") 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; } &&
3099	 { ac_try='test -s conftest.$ac_objext'
3100  { (case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105  (eval "$ac_try") 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; }; then
3109  :
3110else
3111  echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115	 CXXFLAGS="-g"
3116	 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122
3123int
3124main ()
3125{
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138  (eval "$ac_compile") 2>conftest.er1
3139  ac_status=$?
3140  grep -v '^ *+' conftest.er1 >conftest.err
3141  rm -f conftest.er1
3142  cat conftest.err >&5
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); } &&
3145	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146  { (case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151  (eval "$ac_try") 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }; } &&
3155	 { ac_try='test -s conftest.$ac_objext'
3156  { (case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_try") 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; }; then
3165  ac_cv_prog_cxx_g=yes
3166else
3167  echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181fi
3182{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184if test "$ac_test_CXXFLAGS" = set; then
3185  CXXFLAGS=$ac_save_CXXFLAGS
3186elif test $ac_cv_prog_cxx_g = yes; then
3187  if test "$GXX" = yes; then
3188    CXXFLAGS="-g -O2"
3189  else
3190    CXXFLAGS="-g"
3191  fi
3192else
3193  if test "$GXX" = yes; then
3194    CXXFLAGS="-O2"
3195  else
3196    CXXFLAGS=
3197  fi
3198fi
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212# On Suns, sometimes $CPP names a directory.
3213if test -n "$CPP" && test -d "$CPP"; then
3214  CPP=
3215fi
3216if test -z "$CPP"; then
3217  if test "${ac_cv_prog_CPP+set}" = set; then
3218  echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220      # Double quotes because CPP needs to be expanded
3221    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222    do
3223      ac_preproc_ok=false
3224for ac_c_preproc_warn_flag in '' yes
3225do
3226  # Use a header file that comes with gcc, so configuring glibc
3227  # with a fresh cross-compiler works.
3228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229  # <limits.h> exists even on freestanding compilers.
3230  # On the NeXT, cc -E runs the code through the compiler's parser,
3231  # not just through cpp. "Syntax error" is here to catch this case.
3232  cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h.  */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h.  */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243		     Syntax error
3244_ACEOF
3245if { (ac_try="$ac_cpp conftest.$ac_ext"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252  ac_status=$?
3253  grep -v '^ *+' conftest.er1 >conftest.err
3254  rm -f conftest.er1
3255  cat conftest.err >&5
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); } >/dev/null; then
3258  if test -s conftest.err; then
3259    ac_cpp_err=$ac_c_preproc_warn_flag
3260    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261  else
3262    ac_cpp_err=
3263  fi
3264else
3265  ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268  :
3269else
3270  echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273  # Broken: fails on valid input.
3274continue
3275fi
3276
3277rm -f conftest.err conftest.$ac_ext
3278
3279  # OK, works on sane cases.  Now check whether nonexistent headers
3280  # can be detected and how.
3281  cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h.  */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h.  */
3287#include <ac_nonexistent.h>
3288_ACEOF
3289if { (ac_try="$ac_cpp conftest.$ac_ext"
3290case "(($ac_try" in
3291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292  *) ac_try_echo=$ac_try;;
3293esac
3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296  ac_status=$?
3297  grep -v '^ *+' conftest.er1 >conftest.err
3298  rm -f conftest.er1
3299  cat conftest.err >&5
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); } >/dev/null; then
3302  if test -s conftest.err; then
3303    ac_cpp_err=$ac_c_preproc_warn_flag
3304    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305  else
3306    ac_cpp_err=
3307  fi
3308else
3309  ac_cpp_err=yes
3310fi
3311if test -z "$ac_cpp_err"; then
3312  # Broken: success on invalid input.
3313continue
3314else
3315  echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318  # Passes both tests.
3319ac_preproc_ok=:
3320break
3321fi
3322
3323rm -f conftest.err conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.err conftest.$ac_ext
3328if $ac_preproc_ok; then
3329  break
3330fi
3331
3332    done
3333    ac_cv_prog_CPP=$CPP
3334
3335fi
3336  CPP=$ac_cv_prog_CPP
3337else
3338  ac_cv_prog_CPP=$CPP
3339fi
3340{ echo "$as_me:$LINENO: result: $CPP" >&5
3341echo "${ECHO_T}$CPP" >&6; }
3342ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345  # Use a header file that comes with gcc, so configuring glibc
3346  # with a fresh cross-compiler works.
3347  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348  # <limits.h> exists even on freestanding compilers.
3349  # On the NeXT, cc -E runs the code through the compiler's parser,
3350  # not just through cpp. "Syntax error" is here to catch this case.
3351  cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h.  */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h.  */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362		     Syntax error
3363_ACEOF
3364if { (ac_try="$ac_cpp conftest.$ac_ext"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371  ac_status=$?
3372  grep -v '^ *+' conftest.er1 >conftest.err
3373  rm -f conftest.er1
3374  cat conftest.err >&5
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); } >/dev/null; then
3377  if test -s conftest.err; then
3378    ac_cpp_err=$ac_c_preproc_warn_flag
3379    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380  else
3381    ac_cpp_err=
3382  fi
3383else
3384  ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387  :
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392  # Broken: fails on valid input.
3393continue
3394fi
3395
3396rm -f conftest.err conftest.$ac_ext
3397
3398  # OK, works on sane cases.  Now check whether nonexistent headers
3399  # can be detected and how.
3400  cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h.  */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h.  */
3406#include <ac_nonexistent.h>
3407_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } >/dev/null; then
3421  if test -s conftest.err; then
3422    ac_cpp_err=$ac_c_preproc_warn_flag
3423    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424  else
3425    ac_cpp_err=
3426  fi
3427else
3428  ac_cpp_err=yes
3429fi
3430if test -z "$ac_cpp_err"; then
3431  # Broken: success on invalid input.
3432continue
3433else
3434  echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437  # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
3441
3442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then
3448  :
3449else
3450  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&5
3452echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&2;}
3454   { (exit 1); exit 1; }; }
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465
3466# Check whether --enable-polly was given.
3467if test "${enable_polly+set}" = set; then
3468  enableval=$enable_polly;
3469else
3470  enableval=default
3471fi
3472
3473case "$enableval" in
3474  yes) ENABLE_POLLY=1
3475 ;;
3476  no)  ENABLE_POLLY=0
3477 ;;
3478  default) ENABLE_POLLY=1
3479 ;;
3480  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3481echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3482   { (exit 1); exit 1; }; } ;;
3483esac
3484
3485
3486if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3487  LLVM_HAS_POLLY=1
3488
3489  subdirs="$subdirs tools/polly"
3490
3491fi
3492
3493
3494# Make sure we can run config.sub.
3495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3496  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3497echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3498   { (exit 1); exit 1; }; }
3499
3500{ echo "$as_me:$LINENO: checking build system type" >&5
3501echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3502if test "${ac_cv_build+set}" = set; then
3503  echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505  ac_build_alias=$build_alias
3506test "x$ac_build_alias" = x &&
3507  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508test "x$ac_build_alias" = x &&
3509  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3510echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3511   { (exit 1); exit 1; }; }
3512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3514echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3515   { (exit 1); exit 1; }; }
3516
3517fi
3518{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3519echo "${ECHO_T}$ac_cv_build" >&6; }
3520case $ac_cv_build in
3521*-*-*) ;;
3522*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3523echo "$as_me: error: invalid value of canonical build" >&2;}
3524   { (exit 1); exit 1; }; };;
3525esac
3526build=$ac_cv_build
3527ac_save_IFS=$IFS; IFS='-'
3528set x $ac_cv_build
3529shift
3530build_cpu=$1
3531build_vendor=$2
3532shift; shift
3533# Remember, the first character of IFS is used to create $*,
3534# except with old shells:
3535build_os=$*
3536IFS=$ac_save_IFS
3537case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3538
3539
3540{ echo "$as_me:$LINENO: checking host system type" >&5
3541echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542if test "${ac_cv_host+set}" = set; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  if test "x$host_alias" = x; then
3546  ac_cv_host=$ac_cv_build
3547else
3548  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551   { (exit 1); exit 1; }; }
3552fi
3553
3554fi
3555{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3556echo "${ECHO_T}$ac_cv_host" >&6; }
3557case $ac_cv_host in
3558*-*-*) ;;
3559*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3560echo "$as_me: error: invalid value of canonical host" >&2;}
3561   { (exit 1); exit 1; }; };;
3562esac
3563host=$ac_cv_host
3564ac_save_IFS=$IFS; IFS='-'
3565set x $ac_cv_host
3566shift
3567host_cpu=$1
3568host_vendor=$2
3569shift; shift
3570# Remember, the first character of IFS is used to create $*,
3571# except with old shells:
3572host_os=$*
3573IFS=$ac_save_IFS
3574case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3575
3576
3577{ echo "$as_me:$LINENO: checking target system type" >&5
3578echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3579if test "${ac_cv_target+set}" = set; then
3580  echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582  if test "x$target_alias" = x; then
3583  ac_cv_target=$ac_cv_host
3584else
3585  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3586    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3587echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3588   { (exit 1); exit 1; }; }
3589fi
3590
3591fi
3592{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3593echo "${ECHO_T}$ac_cv_target" >&6; }
3594case $ac_cv_target in
3595*-*-*) ;;
3596*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3597echo "$as_me: error: invalid value of canonical target" >&2;}
3598   { (exit 1); exit 1; }; };;
3599esac
3600target=$ac_cv_target
3601ac_save_IFS=$IFS; IFS='-'
3602set x $ac_cv_target
3603shift
3604target_cpu=$1
3605target_vendor=$2
3606shift; shift
3607# Remember, the first character of IFS is used to create $*,
3608# except with old shells:
3609target_os=$*
3610IFS=$ac_save_IFS
3611case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3612
3613
3614# The aliases save the names the user supplied, while $host etc.
3615# will get canonicalized.
3616test -n "$target_alias" &&
3617  test "$program_prefix$program_suffix$program_transform_name" = \
3618    NONENONEs,x,x, &&
3619  program_prefix=${target_alias}-
3620
3621{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3622echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3623if test "${llvm_cv_os_type+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  case $host in
3627  *-*-aix*)
3628    llvm_cv_link_all_option="-Wl,--whole-archive"
3629    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630    llvm_cv_os_type="AIX"
3631    llvm_cv_platform_type="Unix" ;;
3632  *-*-irix*)
3633    llvm_cv_link_all_option="-Wl,--whole-archive"
3634    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635    llvm_cv_os_type="IRIX"
3636    llvm_cv_platform_type="Unix" ;;
3637  *-*-cygwin*)
3638    llvm_cv_link_all_option="-Wl,--whole-archive"
3639    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640    llvm_cv_os_type="Cygwin"
3641    llvm_cv_platform_type="Unix" ;;
3642  *-*-darwin*)
3643    llvm_cv_link_all_option="-Wl,-all_load"
3644    llvm_cv_no_link_all_option="-Wl,-noall_load"
3645    llvm_cv_os_type="Darwin"
3646    llvm_cv_platform_type="Unix" ;;
3647  *-*-minix*)
3648    llvm_cv_link_all_option="-Wl,-all_load"
3649    llvm_cv_no_link_all_option="-Wl,-noall_load"
3650    llvm_cv_os_type="Minix"
3651    llvm_cv_platform_type="Unix" ;;
3652  *-*-freebsd*)
3653    llvm_cv_link_all_option="-Wl,--whole-archive"
3654    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655    llvm_cv_os_type="FreeBSD"
3656    llvm_cv_platform_type="Unix" ;;
3657  *-*-openbsd*)
3658    llvm_cv_link_all_option="-Wl,--whole-archive"
3659    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660    llvm_cv_os_type="OpenBSD"
3661    llvm_cv_platform_type="Unix" ;;
3662  *-*-netbsd*)
3663    llvm_cv_link_all_option="-Wl,--whole-archive"
3664    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665    llvm_cv_os_type="NetBSD"
3666    llvm_cv_platform_type="Unix" ;;
3667  *-*-dragonfly*)
3668    llvm_cv_link_all_option="-Wl,--whole-archive"
3669    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670    llvm_cv_os_type="DragonFly"
3671    llvm_cv_platform_type="Unix" ;;
3672  *-*-hpux*)
3673    llvm_cv_link_all_option="-Wl,--whole-archive"
3674    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675    llvm_cv_os_type="HP-UX"
3676    llvm_cv_platform_type="Unix" ;;
3677  *-*-interix*)
3678    llvm_cv_link_all_option="-Wl,--whole-archive"
3679    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680    llvm_cv_os_type="Interix"
3681    llvm_cv_platform_type="Unix" ;;
3682  *-*-linux*)
3683    llvm_cv_link_all_option="-Wl,--whole-archive"
3684    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685    llvm_cv_os_type="Linux"
3686    llvm_cv_platform_type="Unix" ;;
3687  *-*-solaris*)
3688    llvm_cv_link_all_option="-Wl,-z,allextract"
3689    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3690    llvm_cv_os_type="SunOS"
3691    llvm_cv_platform_type="Unix" ;;
3692  *-*-auroraux*)
3693    llvm_cv_link_all_option="-Wl,-z,allextract"
3694    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3695    llvm_cv_os_type="AuroraUX"
3696    llvm_cv_platform_type="Unix" ;;
3697  *-*-win32*)
3698    llvm_cv_link_all_option="-Wl,--whole-archive"
3699    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700    llvm_cv_os_type="Win32"
3701    llvm_cv_platform_type="Win32" ;;
3702  *-*-mingw*)
3703    llvm_cv_link_all_option="-Wl,--whole-archive"
3704    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705    llvm_cv_os_type="MingW"
3706    llvm_cv_platform_type="Win32" ;;
3707  *-*-haiku*)
3708    llvm_cv_link_all_option="-Wl,--whole-archive"
3709    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710    llvm_cv_os_type="Haiku"
3711    llvm_cv_platform_type="Unix" ;;
3712  *-unknown-eabi*)
3713    llvm_cv_link_all_option="-Wl,--whole-archive"
3714    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715    llvm_cv_os_type="Freestanding"
3716    llvm_cv_platform_type="Unix" ;;
3717  *-unknown-elf*)
3718    llvm_cv_link_all_option="-Wl,--whole-archive"
3719    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720    llvm_cv_os_type="Freestanding"
3721    llvm_cv_platform_type="Unix" ;;
3722  *)
3723    llvm_cv_link_all_option=""
3724    llvm_cv_no_link_all_option=""
3725    llvm_cv_os_type="Unknown"
3726    llvm_cv_platform_type="Unknown" ;;
3727esac
3728fi
3729{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3730echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3731
3732{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3733echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3734if test "${llvm_cv_target_os_type+set}" = set; then
3735  echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737  case $target in
3738  *-*-aix*)
3739    llvm_cv_target_os_type="AIX" ;;
3740  *-*-irix*)
3741    llvm_cv_target_os_type="IRIX" ;;
3742  *-*-cygwin*)
3743    llvm_cv_target_os_type="Cygwin" ;;
3744  *-*-darwin*)
3745    llvm_cv_target_os_type="Darwin" ;;
3746  *-*-minix*)
3747    llvm_cv_target_os_type="Minix" ;;
3748  *-*-freebsd*)
3749    llvm_cv_target_os_type="FreeBSD" ;;
3750  *-*-openbsd*)
3751    llvm_cv_target_os_type="OpenBSD" ;;
3752  *-*-netbsd*)
3753    llvm_cv_target_os_type="NetBSD" ;;
3754  *-*-dragonfly*)
3755    llvm_cv_target_os_type="DragonFly" ;;
3756  *-*-hpux*)
3757    llvm_cv_target_os_type="HP-UX" ;;
3758  *-*-interix*)
3759    llvm_cv_target_os_type="Interix" ;;
3760  *-*-linux*)
3761    llvm_cv_target_os_type="Linux" ;;
3762  *-*-solaris*)
3763    llvm_cv_target_os_type="SunOS" ;;
3764  *-*-auroraux*)
3765    llvm_cv_target_os_type="AuroraUX" ;;
3766  *-*-win32*)
3767    llvm_cv_target_os_type="Win32" ;;
3768  *-*-mingw*)
3769    llvm_cv_target_os_type="MingW" ;;
3770  *-*-haiku*)
3771    llvm_cv_target_os_type="Haiku" ;;
3772  *-*-rtems*)
3773    llvm_cv_target_os_type="RTEMS" ;;
3774  *-*-nacl*)
3775    llvm_cv_target_os_type="NativeClient" ;;
3776  *-unknown-eabi*)
3777    llvm_cv_target_os_type="Freestanding" ;;
3778  *)
3779    llvm_cv_target_os_type="Unknown" ;;
3780esac
3781fi
3782{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3783echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3784
3785if test "$llvm_cv_os_type" = "Unknown" ; then
3786  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3787echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3788   { (exit 1); exit 1; }; }
3789fi
3790
3791OS=$llvm_cv_os_type
3792
3793HOST_OS=$llvm_cv_os_type
3794
3795TARGET_OS=$llvm_cv_target_os_type
3796
3797
3798LINKALL=$llvm_cv_link_all_option
3799
3800NOLINKALL=$llvm_cv_no_link_all_option
3801
3802
3803case $llvm_cv_platform_type in
3804  Unix)
3805
3806cat >>confdefs.h <<\_ACEOF
3807#define LLVM_ON_UNIX 1
3808_ACEOF
3809
3810    LLVM_ON_UNIX=1
3811
3812    LLVM_ON_WIN32=0
3813
3814    ;;
3815  Win32)
3816
3817cat >>confdefs.h <<\_ACEOF
3818#define LLVM_ON_WIN32 1
3819_ACEOF
3820
3821    LLVM_ON_UNIX=0
3822
3823    LLVM_ON_WIN32=1
3824
3825    ;;
3826esac
3827
3828{ echo "$as_me:$LINENO: checking target architecture" >&5
3829echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3830if test "${llvm_cv_target_arch+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  case $target in
3834  i?86-*)                 llvm_cv_target_arch="x86" ;;
3835  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3836  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3837  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3838  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3839  mips-*)                 llvm_cv_target_arch="Mips" ;;
3840  xcore-*)                llvm_cv_target_arch="XCore" ;;
3841  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3842  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3843  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3844  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3845  *)                      llvm_cv_target_arch="Unknown" ;;
3846esac
3847fi
3848{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3849echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3850
3851if test "$llvm_cv_target_arch" = "Unknown" ; then
3852  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3853echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3854fi
3855
3856# Determine the LLVM native architecture for the target
3857case "$llvm_cv_target_arch" in
3858    x86)     LLVM_NATIVE_ARCH="X86" ;;
3859    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3860    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3861esac
3862
3863ARCH=$llvm_cv_target_arch
3864
3865
3866
3867
3868{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3869echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3870if test "${ac_cv_path_GREP+set}" = set; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  # Extract the first word of "grep ggrep" to use in msg output
3874if test -z "$GREP"; then
3875set dummy grep ggrep; ac_prog_name=$2
3876if test "${ac_cv_path_GREP+set}" = set; then
3877  echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879  ac_path_GREP_found=false
3880# Loop through the user's path and test for each of PROGNAME-LIST
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883do
3884  IFS=$as_save_IFS
3885  test -z "$as_dir" && as_dir=.
3886  for ac_prog in grep ggrep; do
3887  for ac_exec_ext in '' $ac_executable_extensions; do
3888    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3890    # Check for GNU ac_path_GREP and select it if it is found.
3891  # Check for GNU $ac_path_GREP
3892case `"$ac_path_GREP" --version 2>&1` in
3893*GNU*)
3894  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3895*)
3896  ac_count=0
3897  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898  while :
3899  do
3900    cat "conftest.in" "conftest.in" >"conftest.tmp"
3901    mv "conftest.tmp" "conftest.in"
3902    cp "conftest.in" "conftest.nl"
3903    echo 'GREP' >> "conftest.nl"
3904    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906    ac_count=`expr $ac_count + 1`
3907    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908      # Best one so far, save it but keep looking for a better one
3909      ac_cv_path_GREP="$ac_path_GREP"
3910      ac_path_GREP_max=$ac_count
3911    fi
3912    # 10*(2^10) chars as input seems more than enough
3913    test $ac_count -gt 10 && break
3914  done
3915  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916esac
3917
3918
3919    $ac_path_GREP_found && break 3
3920  done
3921done
3922
3923done
3924IFS=$as_save_IFS
3925
3926
3927fi
3928
3929GREP="$ac_cv_path_GREP"
3930if test -z "$GREP"; then
3931  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933   { (exit 1); exit 1; }; }
3934fi
3935
3936else
3937  ac_cv_path_GREP=$GREP
3938fi
3939
3940
3941fi
3942{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3943echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
3945
3946
3947{ echo "$as_me:$LINENO: checking for egrep" >&5
3948echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3949if test "${ac_cv_path_EGREP+set}" = set; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953   then ac_cv_path_EGREP="$GREP -E"
3954   else
3955     # Extract the first word of "egrep" to use in msg output
3956if test -z "$EGREP"; then
3957set dummy egrep; ac_prog_name=$2
3958if test "${ac_cv_path_EGREP+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  ac_path_EGREP_found=false
3962# Loop through the user's path and test for each of PROGNAME-LIST
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965do
3966  IFS=$as_save_IFS
3967  test -z "$as_dir" && as_dir=.
3968  for ac_prog in egrep; do
3969  for ac_exec_ext in '' $ac_executable_extensions; do
3970    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3972    # Check for GNU ac_path_EGREP and select it if it is found.
3973  # Check for GNU $ac_path_EGREP
3974case `"$ac_path_EGREP" --version 2>&1` in
3975*GNU*)
3976  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977*)
3978  ac_count=0
3979  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980  while :
3981  do
3982    cat "conftest.in" "conftest.in" >"conftest.tmp"
3983    mv "conftest.tmp" "conftest.in"
3984    cp "conftest.in" "conftest.nl"
3985    echo 'EGREP' >> "conftest.nl"
3986    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988    ac_count=`expr $ac_count + 1`
3989    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990      # Best one so far, save it but keep looking for a better one
3991      ac_cv_path_EGREP="$ac_path_EGREP"
3992      ac_path_EGREP_max=$ac_count
3993    fi
3994    # 10*(2^10) chars as input seems more than enough
3995    test $ac_count -gt 10 && break
3996  done
3997  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998esac
3999
4000
4001    $ac_path_EGREP_found && break 3
4002  done
4003done
4004
4005done
4006IFS=$as_save_IFS
4007
4008
4009fi
4010
4011EGREP="$ac_cv_path_EGREP"
4012if test -z "$EGREP"; then
4013  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015   { (exit 1); exit 1; }; }
4016fi
4017
4018else
4019  ac_cv_path_EGREP=$EGREP
4020fi
4021
4022
4023   fi
4024fi
4025{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4026echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4027 EGREP="$ac_cv_path_EGREP"
4028
4029
4030{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4032if test "${ac_cv_header_stdc+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041#include <stdlib.h>
4042#include <stdarg.h>
4043#include <string.h>
4044#include <float.h>
4045
4046int
4047main ()
4048{
4049
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054rm -f conftest.$ac_objext
4055if { (ac_try="$ac_compile"
4056case "(($ac_try" in
4057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058  *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061  (eval "$ac_compile") 2>conftest.er1
4062  ac_status=$?
4063  grep -v '^ *+' conftest.er1 >conftest.err
4064  rm -f conftest.er1
4065  cat conftest.err >&5
4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067  (exit $ac_status); } &&
4068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069  { (case "(($ac_try" in
4070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071  *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074  (eval "$ac_try") 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; } &&
4078	 { ac_try='test -s conftest.$ac_objext'
4079  { (case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084  (eval "$ac_try") 2>&5
4085  ac_status=$?
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); }; }; then
4088  ac_cv_header_stdc=yes
4089else
4090  echo "$as_me: failed program was:" >&5
4091sed 's/^/| /' conftest.$ac_ext >&5
4092
4093	ac_cv_header_stdc=no
4094fi
4095
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097
4098if test $ac_cv_header_stdc = yes; then
4099  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4100  cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h.  */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h.  */
4106#include <string.h>
4107
4108_ACEOF
4109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110  $EGREP "memchr" >/dev/null 2>&1; then
4111  :
4112else
4113  ac_cv_header_stdc=no
4114fi
4115rm -f conftest*
4116
4117fi
4118
4119if test $ac_cv_header_stdc = yes; then
4120  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4121  cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h.  */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128
4129_ACEOF
4130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131  $EGREP "free" >/dev/null 2>&1; then
4132  :
4133else
4134  ac_cv_header_stdc=no
4135fi
4136rm -f conftest*
4137
4138fi
4139
4140if test $ac_cv_header_stdc = yes; then
4141  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4142  if test "$cross_compiling" = yes; then
4143  :
4144else
4145  cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151#include <ctype.h>
4152#include <stdlib.h>
4153#if ((' ' & 0x0FF) == 0x020)
4154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4156#else
4157# define ISLOWER(c) \
4158		   (('a' <= (c) && (c) <= 'i') \
4159		     || ('j' <= (c) && (c) <= 'r') \
4160		     || ('s' <= (c) && (c) <= 'z'))
4161# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162#endif
4163
4164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4165int
4166main ()
4167{
4168  int i;
4169  for (i = 0; i < 256; i++)
4170    if (XOR (islower (i), ISLOWER (i))
4171	|| toupper (i) != TOUPPER (i))
4172      return 2;
4173  return 0;
4174}
4175_ACEOF
4176rm -f conftest$ac_exeext
4177if { (ac_try="$ac_link"
4178case "(($ac_try" in
4179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180  *) ac_try_echo=$ac_try;;
4181esac
4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183  (eval "$ac_link") 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4187  { (case "(($ac_try" in
4188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189  *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192  (eval "$ac_try") 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  :
4197else
4198  echo "$as_me: program exited with status $ac_status" >&5
4199echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202( exit $ac_status )
4203ac_cv_header_stdc=no
4204fi
4205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206fi
4207
4208
4209fi
4210fi
4211{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4212echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4213if test $ac_cv_header_stdc = yes; then
4214
4215cat >>confdefs.h <<\_ACEOF
4216#define STDC_HEADERS 1
4217_ACEOF
4218
4219fi
4220
4221# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232		  inttypes.h stdint.h unistd.h
4233do
4234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4238  echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240  cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h.  */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h.  */
4246$ac_includes_default
4247
4248#include <$ac_header>
4249_ACEOF
4250rm -f conftest.$ac_objext
4251if { (ac_try="$ac_compile"
4252case "(($ac_try" in
4253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254  *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257  (eval "$ac_compile") 2>conftest.er1
4258  ac_status=$?
4259  grep -v '^ *+' conftest.er1 >conftest.err
4260  rm -f conftest.er1
4261  cat conftest.err >&5
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); } &&
4264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265  { (case "(($ac_try" in
4266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267  *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270  (eval "$ac_try") 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; } &&
4274	 { ac_try='test -s conftest.$ac_objext'
4275  { (case "(($ac_try" in
4276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277  *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280  (eval "$ac_try") 2>&5
4281  ac_status=$?
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); }; }; then
4284  eval "$as_ac_Header=yes"
4285else
4286  echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
4289	eval "$as_ac_Header=no"
4290fi
4291
4292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293fi
4294ac_res=`eval echo '${'$as_ac_Header'}'`
4295	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4296echo "${ECHO_T}$ac_res" >&6; }
4297if test `eval echo '${'$as_ac_Header'}'` = yes; then
4298  cat >>confdefs.h <<_ACEOF
4299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4300_ACEOF
4301
4302fi
4303
4304done
4305
4306
4307{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4308echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4309if test "${ac_cv_c_bigendian+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  # See if sys/param.h defines the BYTE_ORDER macro.
4313cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h.  */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h.  */
4319#include <sys/types.h>
4320#include <sys/param.h>
4321
4322int
4323main ()
4324{
4325#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4326 bogus endian macros
4327#endif
4328
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (ac_try="$ac_compile"
4335case "(($ac_try" in
4336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337  *) ac_try_echo=$ac_try;;
4338esac
4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340  (eval "$ac_compile") 2>conftest.er1
4341  ac_status=$?
4342  grep -v '^ *+' conftest.er1 >conftest.err
4343  rm -f conftest.er1
4344  cat conftest.err >&5
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); } &&
4347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4348  { (case "(($ac_try" in
4349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350  *) ac_try_echo=$ac_try;;
4351esac
4352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353  (eval "$ac_try") 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); }; } &&
4357	 { ac_try='test -s conftest.$ac_objext'
4358  { (case "(($ac_try" in
4359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360  *) ac_try_echo=$ac_try;;
4361esac
4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363  (eval "$ac_try") 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  # It does; now see whether it defined to BIG_ENDIAN or not.
4368cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h.  */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h.  */
4374#include <sys/types.h>
4375#include <sys/param.h>
4376
4377int
4378main ()
4379{
4380#if BYTE_ORDER != BIG_ENDIAN
4381 not big endian
4382#endif
4383
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388rm -f conftest.$ac_objext
4389if { (ac_try="$ac_compile"
4390case "(($ac_try" in
4391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392  *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395  (eval "$ac_compile") 2>conftest.er1
4396  ac_status=$?
4397  grep -v '^ *+' conftest.er1 >conftest.err
4398  rm -f conftest.er1
4399  cat conftest.err >&5
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); } &&
4402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403  { (case "(($ac_try" in
4404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405  *) ac_try_echo=$ac_try;;
4406esac
4407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408  (eval "$ac_try") 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412	 { ac_try='test -s conftest.$ac_objext'
4413  { (case "(($ac_try" in
4414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415  *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418  (eval "$ac_try") 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; }; then
4422  ac_cv_c_bigendian=yes
4423else
4424  echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427	ac_cv_c_bigendian=no
4428fi
4429
4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431else
4432  echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435	# It does not; compile a test program.
4436if test "$cross_compiling" = yes; then
4437  # try to guess the endianness by grepping values into an object file
4438  ac_cv_c_bigendian=unknown
4439  cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h.  */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h.  */
4445short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4446short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4447void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4448short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4449short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4450void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4451int
4452main ()
4453{
4454 _ascii (); _ebcdic ();
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (ac_try="$ac_compile"
4461case "(($ac_try" in
4462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463  *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466  (eval "$ac_compile") 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } &&
4473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474  { (case "(($ac_try" in
4475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476  *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479  (eval "$ac_try") 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; } &&
4483	 { ac_try='test -s conftest.$ac_objext'
4484  { (case "(($ac_try" in
4485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486  *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489  (eval "$ac_try") 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }; }; then
4493  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4494  ac_cv_c_bigendian=yes
4495fi
4496if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4497  if test "$ac_cv_c_bigendian" = unknown; then
4498    ac_cv_c_bigendian=no
4499  else
4500    # finding both strings is unlikely to happen, but who knows?
4501    ac_cv_c_bigendian=unknown
4502  fi
4503fi
4504else
4505  echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
4508
4509fi
4510
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512else
4513  cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h.  */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h.  */
4519$ac_includes_default
4520int
4521main ()
4522{
4523
4524  /* Are we little or big endian?  From Harbison&Steele.  */
4525  union
4526  {
4527    long int l;
4528    char c[sizeof (long int)];
4529  } u;
4530  u.l = 1;
4531  return u.c[sizeof (long int) - 1] == 1;
4532
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537rm -f conftest$ac_exeext
4538if { (ac_try="$ac_link"
4539case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544  (eval "$ac_link") 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4548  { (case "(($ac_try" in
4549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550  *) ac_try_echo=$ac_try;;
4551esac
4552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553  (eval "$ac_try") 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; }; then
4557  ac_cv_c_bigendian=no
4558else
4559  echo "$as_me: program exited with status $ac_status" >&5
4560echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563( exit $ac_status )
4564ac_cv_c_bigendian=yes
4565fi
4566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567fi
4568
4569
4570fi
4571
4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573fi
4574{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4575echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4576case $ac_cv_c_bigendian in
4577  yes)
4578    ENDIAN=big
4579 ;;
4580  no)
4581    ENDIAN=little
4582 ;;
4583  *)
4584    { { echo "$as_me:$LINENO: error: unknown endianness
4585presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4586echo "$as_me: error: unknown endianness
4587presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4588   { (exit 1); exit 1; }; } ;;
4589esac
4590
4591
4592if test "$cross_compiling" = yes; then
4593  LLVM_CROSS_COMPILING=1
4594
4595
4596{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4597echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4598if test "${ac_cv_build_exeext+set}" = set; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4602  ac_cv_build_exeext=.exe
4603else
4604  ac_build_prefix=${build_alias}-
4605
4606  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4607set dummy ${ac_build_prefix}gcc; ac_word=$2
4608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  if test -n "$BUILD_CC"; then
4614  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621  for ac_exec_ext in '' $ac_executable_extensions; do
4622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633BUILD_CC=$ac_cv_prog_BUILD_CC
4634if test -n "$BUILD_CC"; then
4635  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636echo "${ECHO_T}$BUILD_CC" >&6; }
4637else
4638  { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643  if test -z "$BUILD_CC"; then
4644     # Extract the first word of "gcc", so it can be a program name with args.
4645set dummy gcc; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  if test -n "$BUILD_CC"; then
4652  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  test -z "$as_dir" && as_dir=.
4659  for ac_exec_ext in '' $ac_executable_extensions; do
4660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4661    ac_cv_prog_BUILD_CC="gcc"
4662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663    break 2
4664  fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671BUILD_CC=$ac_cv_prog_BUILD_CC
4672if test -n "$BUILD_CC"; then
4673  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674echo "${ECHO_T}$BUILD_CC" >&6; }
4675else
4676  { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
4678fi
4679
4680
4681     if test -z "$BUILD_CC"; then
4682       # Extract the first word of "cc", so it can be a program name with args.
4683set dummy cc; ac_word=$2
4684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687  echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689  if test -n "$BUILD_CC"; then
4690  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4691else
4692  ac_prog_rejected=no
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698  for ac_exec_ext in '' $ac_executable_extensions; do
4699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4700    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4701       ac_prog_rejected=yes
4702       continue
4703     fi
4704    ac_cv_prog_BUILD_CC="cc"
4705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709done
4710IFS=$as_save_IFS
4711
4712if test $ac_prog_rejected = yes; then
4713  # We found a bogon in the path, so make sure we never use it.
4714  set dummy $ac_cv_prog_BUILD_CC
4715  shift
4716  if test $# != 0; then
4717    # We chose a different compiler from the bogus one.
4718    # However, it has the same basename, so the bogon will be chosen
4719    # first if we set BUILD_CC to just the basename; use the full file name.
4720    shift
4721    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4722  fi
4723fi
4724fi
4725fi
4726BUILD_CC=$ac_cv_prog_BUILD_CC
4727if test -n "$BUILD_CC"; then
4728  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729echo "${ECHO_T}$BUILD_CC" >&6; }
4730else
4731  { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736     fi
4737  fi
4738  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4739echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4740   { (exit 1); exit 1; }; }
4741  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4742  rm -f conftest*
4743  echo 'int main () { return 0; }' > conftest.$ac_ext
4744  ac_cv_build_exeext=
4745  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4746  (eval $ac_build_link) 2>&5
4747  ac_status=$?
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); }; then
4750    for file in conftest.*; do
4751      case $file in
4752      *.c | *.o | *.obj | *.dSYM) ;;
4753      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4754      esac
4755    done
4756  else
4757    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4758echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4759   { (exit 1); exit 1; }; }
4760  fi
4761  rm -f conftest*
4762  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4763fi
4764fi
4765
4766BUILD_EXEEXT=""
4767test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4768{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4769echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4770ac_build_exeext=$BUILD_EXEEXT
4771
4772  ac_build_prefix=${build_alias}-
4773  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4774set dummy ${ac_build_prefix}g++; ac_word=$2
4775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4778  echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780  if test -n "$BUILD_CXX"; then
4781  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801if test -n "$BUILD_CXX"; then
4802  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803echo "${ECHO_T}$BUILD_CXX" >&6; }
4804else
4805  { echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6; }
4807fi
4808
4809
4810  if test -z "$BUILD_CXX"; then
4811     # Extract the first word of "g++", so it can be a program name with args.
4812set dummy g++; ac_word=$2
4813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  if test -n "$BUILD_CXX"; then
4819  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826  for ac_exec_ext in '' $ac_executable_extensions; do
4827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4828    ac_cv_prog_BUILD_CXX="g++"
4829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830    break 2
4831  fi
4832done
4833done
4834IFS=$as_save_IFS
4835
4836fi
4837fi
4838BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839if test -n "$BUILD_CXX"; then
4840  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841echo "${ECHO_T}$BUILD_CXX" >&6; }
4842else
4843  { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848     if test -z "$BUILD_CXX"; then
4849       # Extract the first word of "c++", so it can be a program name with args.
4850set dummy c++; ac_word=$2
4851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854  echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856  if test -n "$BUILD_CXX"; then
4857  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4858else
4859  ac_prog_rejected=no
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865  for ac_exec_ext in '' $ac_executable_extensions; do
4866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4867    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4868       ac_prog_rejected=yes
4869       continue
4870     fi
4871    ac_cv_prog_BUILD_CXX="c++"
4872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873    break 2
4874  fi
4875done
4876done
4877IFS=$as_save_IFS
4878
4879if test $ac_prog_rejected = yes; then
4880  # We found a bogon in the path, so make sure we never use it.
4881  set dummy $ac_cv_prog_BUILD_CXX
4882  shift
4883  if test $# != 0; then
4884    # We chose a different compiler from the bogus one.
4885    # However, it has the same basename, so the bogon will be chosen
4886    # first if we set BUILD_CXX to just the basename; use the full file name.
4887    shift
4888    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4889  fi
4890fi
4891fi
4892fi
4893BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894if test -n "$BUILD_CXX"; then
4895  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896echo "${ECHO_T}$BUILD_CXX" >&6; }
4897else
4898  { echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6; }
4900fi
4901
4902
4903     fi
4904  fi
4905else
4906  LLVM_CROSS_COMPILING=0
4907
4908fi
4909
4910if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4911  cvsbuild="yes"
4912  optimize="no"
4913  CVSBUILD=CVSBUILD=1
4914
4915else
4916  cvsbuild="no"
4917  optimize="yes"
4918fi
4919
4920
4921# Check whether --enable-optimized was given.
4922if test "${enable_optimized+set}" = set; then
4923  enableval=$enable_optimized;
4924else
4925  enableval=$optimize
4926fi
4927
4928if test ${enableval} = "no" ; then
4929  ENABLE_OPTIMIZED=
4930
4931else
4932  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4933
4934fi
4935
4936# Check whether --enable-profiling was given.
4937if test "${enable_profiling+set}" = set; then
4938  enableval=$enable_profiling;
4939else
4940  enableval="no"
4941fi
4942
4943if test ${enableval} = "no" ; then
4944  ENABLE_PROFILING=
4945
4946else
4947  ENABLE_PROFILING=ENABLE_PROFILING=1
4948
4949fi
4950
4951# Check whether --enable-assertions was given.
4952if test "${enable_assertions+set}" = set; then
4953  enableval=$enable_assertions;
4954else
4955  enableval="yes"
4956fi
4957
4958if test ${enableval} = "yes" ; then
4959  DISABLE_ASSERTIONS=
4960
4961else
4962  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4963
4964fi
4965
4966# Check whether --enable-expensive-checks was given.
4967if test "${enable_expensive_checks+set}" = set; then
4968  enableval=$enable_expensive_checks;
4969else
4970  enableval="no"
4971fi
4972
4973if test ${enableval} = "yes" ; then
4974  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975
4976  EXPENSIVE_CHECKS=yes
4977
4978else
4979  ENABLE_EXPENSIVE_CHECKS=
4980
4981  EXPENSIVE_CHECKS=no
4982
4983fi
4984
4985# Check whether --enable-debug-runtime was given.
4986if test "${enable_debug_runtime+set}" = set; then
4987  enableval=$enable_debug_runtime;
4988else
4989  enableval=no
4990fi
4991
4992if test ${enableval} = "no" ; then
4993  DEBUG_RUNTIME=
4994
4995else
4996  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4997
4998fi
4999
5000# Check whether --enable-debug-symbols was given.
5001if test "${enable_debug_symbols+set}" = set; then
5002  enableval=$enable_debug_symbols;
5003else
5004  enableval=no
5005fi
5006
5007if test ${enableval} = "no" ; then
5008  DEBUG_SYMBOLS=
5009
5010else
5011  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5012
5013fi
5014
5015# Check whether --enable-jit was given.
5016if test "${enable_jit+set}" = set; then
5017  enableval=$enable_jit;
5018else
5019  enableval=default
5020fi
5021
5022if test ${enableval} = "no"
5023then
5024  JIT=
5025
5026else
5027  case "$llvm_cv_target_arch" in
5028    x86)         TARGET_HAS_JIT=1
5029 ;;
5030    Sparc)       TARGET_HAS_JIT=0
5031 ;;
5032    PowerPC)     TARGET_HAS_JIT=1
5033 ;;
5034    x86_64)      TARGET_HAS_JIT=1
5035 ;;
5036    ARM)         TARGET_HAS_JIT=1
5037 ;;
5038    Mips)        TARGET_HAS_JIT=1
5039 ;;
5040    XCore)       TARGET_HAS_JIT=0
5041 ;;
5042    MSP430)      TARGET_HAS_JIT=0
5043 ;;
5044    Hexagon)     TARGET_HAS_JIT=0
5045 ;;
5046    MBlaze)      TARGET_HAS_JIT=0
5047 ;;
5048    PTX)         TARGET_HAS_JIT=0
5049 ;;
5050    *)           TARGET_HAS_JIT=0
5051 ;;
5052  esac
5053fi
5054
5055# Check whether --enable-docs was given.
5056if test "${enable_docs+set}" = set; then
5057  enableval=$enable_docs;
5058else
5059  enableval=default
5060fi
5061
5062case "$enableval" in
5063  yes) ENABLE_DOCS=1
5064 ;;
5065  no)  ENABLE_DOCS=0
5066 ;;
5067  default) ENABLE_DOCS=1
5068 ;;
5069  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5070echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5071   { (exit 1); exit 1; }; } ;;
5072esac
5073
5074# Check whether --enable-doxygen was given.
5075if test "${enable_doxygen+set}" = set; then
5076  enableval=$enable_doxygen;
5077else
5078  enableval=default
5079fi
5080
5081case "$enableval" in
5082  yes) ENABLE_DOXYGEN=1
5083 ;;
5084  no)  ENABLE_DOXYGEN=0
5085 ;;
5086  default) ENABLE_DOXYGEN=0
5087 ;;
5088  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5089echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5090   { (exit 1); exit 1; }; } ;;
5091esac
5092
5093# Check whether --enable-threads was given.
5094if test "${enable_threads+set}" = set; then
5095  enableval=$enable_threads;
5096else
5097  enableval=default
5098fi
5099
5100case "$enableval" in
5101  yes) ENABLE_THREADS=1
5102 ;;
5103  no)  ENABLE_THREADS=0
5104 ;;
5105  default) ENABLE_THREADS=1
5106 ;;
5107  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5108echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5109   { (exit 1); exit 1; }; } ;;
5110esac
5111
5112cat >>confdefs.h <<_ACEOF
5113#define ENABLE_THREADS $ENABLE_THREADS
5114_ACEOF
5115
5116
5117# Check whether --enable-pthreads was given.
5118if test "${enable_pthreads+set}" = set; then
5119  enableval=$enable_pthreads;
5120else
5121  enableval=default
5122fi
5123
5124case "$enableval" in
5125  yes) ENABLE_PTHREADS=1
5126 ;;
5127  no)  ENABLE_PTHREADS=0
5128 ;;
5129  default) ENABLE_PTHREADS=1
5130 ;;
5131  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5132echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5133   { (exit 1); exit 1; }; } ;;
5134esac
5135
5136# Check whether --enable-pic was given.
5137if test "${enable_pic+set}" = set; then
5138  enableval=$enable_pic;
5139else
5140  enableval=default
5141fi
5142
5143case "$enableval" in
5144  yes) ENABLE_PIC=1
5145 ;;
5146  no)  ENABLE_PIC=0
5147 ;;
5148  default) ENABLE_PIC=1
5149 ;;
5150  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5151echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5152   { (exit 1); exit 1; }; } ;;
5153esac
5154
5155cat >>confdefs.h <<_ACEOF
5156#define ENABLE_PIC $ENABLE_PIC
5157_ACEOF
5158
5159
5160# Check whether --enable-shared was given.
5161if test "${enable_shared+set}" = set; then
5162  enableval=$enable_shared;
5163else
5164  enableval=default
5165fi
5166
5167case "$enableval" in
5168  yes) ENABLE_SHARED=1
5169 ;;
5170  no)  ENABLE_SHARED=0
5171 ;;
5172  default) ENABLE_SHARED=0
5173 ;;
5174  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5176   { (exit 1); exit 1; }; } ;;
5177esac
5178
5179# Check whether --enable-embed-stdcxx was given.
5180if test "${enable_embed_stdcxx+set}" = set; then
5181  enableval=$enable_embed_stdcxx;
5182else
5183  enableval=default
5184fi
5185
5186case "$enableval" in
5187  yes) ENABLE_EMBED_STDCXX=1
5188 ;;
5189  no)  ENABLE_EMBED_STDCXX=0
5190 ;;
5191  default) ENABLE_EMBED_STDCXX=1
5192 ;;
5193  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5194echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5195   { (exit 1); exit 1; }; } ;;
5196esac
5197
5198# Check whether --enable-timestamps was given.
5199if test "${enable_timestamps+set}" = set; then
5200  enableval=$enable_timestamps;
5201else
5202  enableval=default
5203fi
5204
5205case "$enableval" in
5206  yes) ENABLE_TIMESTAMPS=1
5207 ;;
5208  no)  ENABLE_TIMESTAMPS=0
5209 ;;
5210  default) ENABLE_TIMESTAMPS=1
5211 ;;
5212  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5213echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5214   { (exit 1); exit 1; }; } ;;
5215esac
5216
5217cat >>confdefs.h <<_ACEOF
5218#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5219_ACEOF
5220
5221
5222TARGETS_TO_BUILD=""
5223# Check whether --enable-targets was given.
5224if test "${enable_targets+set}" = set; then
5225  enableval=$enable_targets;
5226else
5227  enableval=all
5228fi
5229
5230if test "$enableval" = host-only ; then
5231  enableval=host
5232fi
5233case "$enableval" in
5234  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5235  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5236      case "$a_target" in
5237        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5239        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5240        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5241        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5242        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5243        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5244        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5245        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5246        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5247        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5248        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5249        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5250        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5251        host) case "$llvm_cv_target_arch" in
5252            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5255            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5256            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5257            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5258            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5260            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5261            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5262            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5263            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5265echo "$as_me: error: Can not set target to build" >&2;}
5266   { (exit 1); exit 1; }; } ;;
5267          esac ;;
5268        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5269echo "$as_me: error: Unrecognized target $a_target" >&2;}
5270   { (exit 1); exit 1; }; } ;;
5271      esac
5272  done
5273  ;;
5274esac
5275TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5276
5277
5278# Determine whether we are building LLVM support for the native architecture.
5279# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5280for a_target in $TARGETS_TO_BUILD; do
5281  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5282
5283cat >>confdefs.h <<_ACEOF
5284#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5285_ACEOF
5286
5287    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5288    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5289    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5290    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5291    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5292      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5293    fi
5294
5295cat >>confdefs.h <<_ACEOF
5296#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5297_ACEOF
5298
5299
5300cat >>confdefs.h <<_ACEOF
5301#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5302_ACEOF
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5307_ACEOF
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5312_ACEOF
5313
5314    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315
5316cat >>confdefs.h <<_ACEOF
5317#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5318_ACEOF
5319
5320    fi
5321  fi
5322done
5323
5324# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5325# target feature def files.
5326LLVM_ENUM_TARGETS=""
5327LLVM_ENUM_ASM_PRINTERS=""
5328LLVM_ENUM_ASM_PARSERS=""
5329LLVM_ENUM_DISASSEMBLERS=""
5330for target_to_build in $TARGETS_TO_BUILD; do
5331  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5332  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5333    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5334  fi
5335  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5336    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5337  fi
5338  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5339    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5340  fi
5341done
5342
5343
5344
5345
5346
5347# Check whether --enable-cbe-printf-a was given.
5348if test "${enable_cbe_printf_a+set}" = set; then
5349  enableval=$enable_cbe_printf_a;
5350else
5351  enableval=default
5352fi
5353
5354case "$enableval" in
5355  yes) ENABLE_CBE_PRINTF_A=1
5356 ;;
5357  no)  ENABLE_CBE_PRINTF_A=0
5358 ;;
5359  default)  ENABLE_CBE_PRINTF_A=1
5360 ;;
5361  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5362echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5363   { (exit 1); exit 1; }; } ;;
5364esac
5365
5366cat >>confdefs.h <<_ACEOF
5367#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5368_ACEOF
5369
5370
5371
5372# Check whether --with-optimize-option was given.
5373if test "${with_optimize_option+set}" = set; then
5374  withval=$with_optimize_option;
5375else
5376  withval=default
5377fi
5378
5379{ echo "$as_me:$LINENO: checking optimization flags" >&5
5380echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5381case "$withval" in
5382  default)
5383    case "$llvm_cv_os_type" in
5384    FreeBSD) optimize_option=-O2 ;;
5385    MingW) optimize_option=-O2 ;;
5386    *)     optimize_option=-O3 ;;
5387    esac ;;
5388  *) optimize_option="$withval" ;;
5389esac
5390OPTIMIZE_OPTION=$optimize_option
5391
5392{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5393echo "${ECHO_T}$optimize_option" >&6; }
5394
5395
5396# Check whether --with-extra-options was given.
5397if test "${with_extra_options+set}" = set; then
5398  withval=$with_extra_options;
5399else
5400  withval=default
5401fi
5402
5403case "$withval" in
5404  default) EXTRA_OPTIONS= ;;
5405  *) EXTRA_OPTIONS=$withval ;;
5406esac
5407EXTRA_OPTIONS=$EXTRA_OPTIONS
5408
5409
5410
5411# Check whether --with-extra-ld-options was given.
5412if test "${with_extra_ld_options+set}" = set; then
5413  withval=$with_extra_ld_options;
5414else
5415  withval=default
5416fi
5417
5418case "$withval" in
5419  default) EXTRA_LD_OPTIONS= ;;
5420  *) EXTRA_LD_OPTIONS=$withval ;;
5421esac
5422EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5423
5424
5425# Check whether --enable-bindings was given.
5426if test "${enable_bindings+set}" = set; then
5427  enableval=$enable_bindings;
5428else
5429  enableval=default
5430fi
5431
5432BINDINGS_TO_BUILD=""
5433case "$enableval" in
5434  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5435  all ) BINDINGS_TO_BUILD="ocaml" ;;
5436  none | no) BINDINGS_TO_BUILD="" ;;
5437  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438      case "$a_binding" in
5439        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5440        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5441echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5442   { (exit 1); exit 1; }; } ;;
5443      esac
5444  done
5445  ;;
5446esac
5447
5448
5449# Check whether --with-ocaml-libdir was given.
5450if test "${with_ocaml_libdir+set}" = set; then
5451  withval=$with_ocaml_libdir;
5452else
5453  withval=auto
5454fi
5455
5456case "$withval" in
5457  auto) with_ocaml_libdir="$withval" ;;
5458  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5459  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5460echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5461   { (exit 1); exit 1; }; } ;;
5462esac
5463
5464
5465# Check whether --with-clang-resource-dir was given.
5466if test "${with_clang_resource_dir+set}" = set; then
5467  withval=$with_clang_resource_dir;
5468else
5469  withval=""
5470fi
5471
5472
5473cat >>confdefs.h <<_ACEOF
5474#define CLANG_RESOURCE_DIR "$withval"
5475_ACEOF
5476
5477
5478
5479# Check whether --with-c-include-dirs was given.
5480if test "${with_c_include_dirs+set}" = set; then
5481  withval=$with_c_include_dirs;
5482else
5483  withval=""
5484fi
5485
5486
5487cat >>confdefs.h <<_ACEOF
5488#define C_INCLUDE_DIRS "$withval"
5489_ACEOF
5490
5491
5492# Clang normally uses the system c++ headers and libraries. With this option,
5493# clang will use the ones provided by a gcc installation instead. This option should
5494# be passed the same value that was used with --prefix when configuring gcc.
5495
5496# Check whether --with-gcc-toolchain was given.
5497if test "${with_gcc_toolchain+set}" = set; then
5498  withval=$with_gcc_toolchain;
5499else
5500  withval=""
5501fi
5502
5503
5504cat >>confdefs.h <<_ACEOF
5505#define GCC_INSTALL_PREFIX "$withval"
5506_ACEOF
5507
5508
5509
5510# Check whether --with-binutils-include was given.
5511if test "${with_binutils_include+set}" = set; then
5512  withval=$with_binutils_include;
5513else
5514  withval=default
5515fi
5516
5517case "$withval" in
5518  default) WITH_BINUTILS_INCDIR=default ;;
5519  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5520  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5521echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5522   { (exit 1); exit 1; }; } ;;
5523esac
5524if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5525  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5526
5527  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5528     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5529     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5530echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5531   { (exit 1); exit 1; }; };
5532  fi
5533fi
5534
5535
5536# Check whether --with-bug-report-url was given.
5537if test "${with_bug_report_url+set}" = set; then
5538  withval=$with_bug_report_url;
5539else
5540  withval="http://llvm.org/bugs/"
5541fi
5542
5543
5544cat >>confdefs.h <<_ACEOF
5545#define BUG_REPORT_URL "$withval"
5546_ACEOF
5547
5548
5549# Check whether --enable-libffi was given.
5550if test "${enable_libffi+set}" = set; then
5551  enableval=$enable_libffi; case "$enableval" in
5552    yes) llvm_cv_enable_libffi="yes" ;;
5553    no)  llvm_cv_enable_libffi="no"  ;;
5554    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5555echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5556   { (exit 1); exit 1; }; } ;;
5557  esac
5558else
5559  llvm_cv_enable_libffi=no
5560fi
5561
5562
5563
5564{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5565echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5566if test "${lt_cv_path_NM+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569  if test -n "$NM"; then
5570  # Let the user override the test.
5571  lt_cv_path_NM="$NM"
5572else
5573  lt_nm_to_check="${ac_tool_prefix}nm"
5574  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575    lt_nm_to_check="$lt_nm_to_check nm"
5576  fi
5577  for lt_tmp_nm in $lt_nm_to_check; do
5578    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580      IFS="$lt_save_ifs"
5581      test -z "$ac_dir" && ac_dir=.
5582      tmp_nm="$ac_dir/$lt_tmp_nm"
5583      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584	# Check to see if the nm accepts a BSD-compat flag.
5585	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586	#   nm: unknown option "B" ignored
5587	# Tru64's nm complains that /dev/null is an invalid object file
5588	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589	*/dev/null* | *'Invalid file or object type'*)
5590	  lt_cv_path_NM="$tmp_nm -B"
5591	  break
5592	  ;;
5593	*)
5594	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595	  */dev/null*)
5596	    lt_cv_path_NM="$tmp_nm -p"
5597	    break
5598	    ;;
5599	  *)
5600	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601	    continue # so that we can try to find one that supports BSD flags
5602	    ;;
5603	  esac
5604	  ;;
5605	esac
5606      fi
5607    done
5608    IFS="$lt_save_ifs"
5609  done
5610  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5611fi
5612fi
5613{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5615NM="$lt_cv_path_NM"
5616
5617
5618
5619{ echo "$as_me:$LINENO: checking for GNU make" >&5
5620echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5621if test "${llvm_cv_gnu_make_command+set}" = set; then
5622  echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624  llvm_cv_gnu_make_command=''
5625 for a in "$MAKE" make gmake gnumake ; do
5626  if test -z "$a" ; then continue ; fi ;
5627  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5628  then
5629   llvm_cv_gnu_make_command=$a ;
5630   break;
5631  fi
5632 done
5633fi
5634{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5635echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5636 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5637   ifGNUmake='' ;
5638 else
5639   ifGNUmake='#' ;
5640   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5641echo "${ECHO_T}\"Not found\"" >&6; };
5642 fi
5643
5644
5645{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5646echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5647LN_S=$as_ln_s
5648if test "$LN_S" = "ln -s"; then
5649  { echo "$as_me:$LINENO: result: yes" >&5
5650echo "${ECHO_T}yes" >&6; }
5651else
5652  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5653echo "${ECHO_T}no, using $LN_S" >&6; }
5654fi
5655
5656# Extract the first word of "cmp", so it can be a program name with args.
5657set dummy cmp; ac_word=$2
5658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660if test "${ac_cv_path_CMP+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  case $CMP in
5664  [\\/]* | ?:[\\/]*)
5665  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5666  ;;
5667  *)
5668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671  IFS=$as_save_IFS
5672  test -z "$as_dir" && as_dir=.
5673  for ac_exec_ext in '' $ac_executable_extensions; do
5674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677    break 2
5678  fi
5679done
5680done
5681IFS=$as_save_IFS
5682
5683  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5684  ;;
5685esac
5686fi
5687CMP=$ac_cv_path_CMP
5688if test -n "$CMP"; then
5689  { echo "$as_me:$LINENO: result: $CMP" >&5
5690echo "${ECHO_T}$CMP" >&6; }
5691else
5692  { echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6; }
5694fi
5695
5696
5697# Extract the first word of "cp", so it can be a program name with args.
5698set dummy cp; ac_word=$2
5699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701if test "${ac_cv_path_CP+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  case $CP in
5705  [\\/]* | ?:[\\/]*)
5706  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5707  ;;
5708  *)
5709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714  for ac_exec_ext in '' $ac_executable_extensions; do
5715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5716    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718    break 2
5719  fi
5720done
5721done
5722IFS=$as_save_IFS
5723
5724  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5725  ;;
5726esac
5727fi
5728CP=$ac_cv_path_CP
5729if test -n "$CP"; then
5730  { echo "$as_me:$LINENO: result: $CP" >&5
5731echo "${ECHO_T}$CP" >&6; }
5732else
5733  { echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6; }
5735fi
5736
5737
5738# Extract the first word of "date", so it can be a program name with args.
5739set dummy date; ac_word=$2
5740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742if test "${ac_cv_path_DATE+set}" = set; then
5743  echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745  case $DATE in
5746  [\\/]* | ?:[\\/]*)
5747  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5748  ;;
5749  *)
5750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755  for ac_exec_ext in '' $ac_executable_extensions; do
5756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762done
5763IFS=$as_save_IFS
5764
5765  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5766  ;;
5767esac
5768fi
5769DATE=$ac_cv_path_DATE
5770if test -n "$DATE"; then
5771  { echo "$as_me:$LINENO: result: $DATE" >&5
5772echo "${ECHO_T}$DATE" >&6; }
5773else
5774  { echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6; }
5776fi
5777
5778
5779# Extract the first word of "find", so it can be a program name with args.
5780set dummy find; ac_word=$2
5781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783if test "${ac_cv_path_FIND+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  case $FIND in
5787  [\\/]* | ?:[\\/]*)
5788  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5789  ;;
5790  *)
5791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796  for ac_exec_ext in '' $ac_executable_extensions; do
5797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803done
5804IFS=$as_save_IFS
5805
5806  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5807  ;;
5808esac
5809fi
5810FIND=$ac_cv_path_FIND
5811if test -n "$FIND"; then
5812  { echo "$as_me:$LINENO: result: $FIND" >&5
5813echo "${ECHO_T}$FIND" >&6; }
5814else
5815  { echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6; }
5817fi
5818
5819
5820# Extract the first word of "grep", so it can be a program name with args.
5821set dummy grep; ac_word=$2
5822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_path_GREP+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  case $GREP in
5828  [\\/]* | ?:[\\/]*)
5829  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5830  ;;
5831  *)
5832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837  for ac_exec_ext in '' $ac_executable_extensions; do
5838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5848  ;;
5849esac
5850fi
5851GREP=$ac_cv_path_GREP
5852if test -n "$GREP"; then
5853  { echo "$as_me:$LINENO: result: $GREP" >&5
5854echo "${ECHO_T}$GREP" >&6; }
5855else
5856  { echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6; }
5858fi
5859
5860
5861# Extract the first word of "mkdir", so it can be a program name with args.
5862set dummy mkdir; ac_word=$2
5863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_path_MKDIR+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  case $MKDIR in
5869  [\\/]* | ?:[\\/]*)
5870  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5871  ;;
5872  *)
5873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878  for ac_exec_ext in '' $ac_executable_extensions; do
5879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885done
5886IFS=$as_save_IFS
5887
5888  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5889  ;;
5890esac
5891fi
5892MKDIR=$ac_cv_path_MKDIR
5893if test -n "$MKDIR"; then
5894  { echo "$as_me:$LINENO: result: $MKDIR" >&5
5895echo "${ECHO_T}$MKDIR" >&6; }
5896else
5897  { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899fi
5900
5901
5902# Extract the first word of "mv", so it can be a program name with args.
5903set dummy mv; ac_word=$2
5904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_path_MV+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  case $MV in
5910  [\\/]* | ?:[\\/]*)
5911  ac_cv_path_MV="$MV" # Let the user override the test with a path.
5912  ;;
5913  *)
5914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919  for ac_exec_ext in '' $ac_executable_extensions; do
5920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926done
5927IFS=$as_save_IFS
5928
5929  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5930  ;;
5931esac
5932fi
5933MV=$ac_cv_path_MV
5934if test -n "$MV"; then
5935  { echo "$as_me:$LINENO: result: $MV" >&5
5936echo "${ECHO_T}$MV" >&6; }
5937else
5938  { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
5940fi
5941
5942
5943if test -n "$ac_tool_prefix"; then
5944  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948if test "${ac_cv_prog_RANLIB+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951  if test -n "$RANLIB"; then
5952  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959  for ac_exec_ext in '' $ac_executable_extensions; do
5960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971RANLIB=$ac_cv_prog_RANLIB
5972if test -n "$RANLIB"; then
5973  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5974echo "${ECHO_T}$RANLIB" >&6; }
5975else
5976  { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; }
5978fi
5979
5980
5981fi
5982if test -z "$ac_cv_prog_RANLIB"; then
5983  ac_ct_RANLIB=$RANLIB
5984  # Extract the first word of "ranlib", so it can be a program name with args.
5985set dummy ranlib; ac_word=$2
5986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  if test -n "$ac_ct_RANLIB"; then
5992  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997  IFS=$as_save_IFS
5998  test -z "$as_dir" && as_dir=.
5999  for ac_exec_ext in '' $ac_executable_extensions; do
6000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001    ac_cv_prog_ac_ct_RANLIB="ranlib"
6002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003    break 2
6004  fi
6005done
6006done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012if test -n "$ac_ct_RANLIB"; then
6013  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6015else
6016  { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
6018fi
6019
6020  if test "x$ac_ct_RANLIB" = x; then
6021    RANLIB=":"
6022  else
6023    case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026whose name does not start with the host triplet.  If you think this
6027configuration is useful to you, please write to autoconf@gnu.org." >&5
6028echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029whose name does not start with the host triplet.  If you think this
6030configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031ac_tool_warned=yes ;;
6032esac
6033    RANLIB=$ac_ct_RANLIB
6034  fi
6035else
6036  RANLIB="$ac_cv_prog_RANLIB"
6037fi
6038
6039if test -n "$ac_tool_prefix"; then
6040  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6041set dummy ${ac_tool_prefix}ar; ac_word=$2
6042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044if test "${ac_cv_prog_AR+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  if test -n "$AR"; then
6048  ac_cv_prog_AR="$AR" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053  IFS=$as_save_IFS
6054  test -z "$as_dir" && as_dir=.
6055  for ac_exec_ext in '' $ac_executable_extensions; do
6056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057    ac_cv_prog_AR="${ac_tool_prefix}ar"
6058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059    break 2
6060  fi
6061done
6062done
6063IFS=$as_save_IFS
6064
6065fi
6066fi
6067AR=$ac_cv_prog_AR
6068if test -n "$AR"; then
6069  { echo "$as_me:$LINENO: result: $AR" >&5
6070echo "${ECHO_T}$AR" >&6; }
6071else
6072  { echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6; }
6074fi
6075
6076
6077fi
6078if test -z "$ac_cv_prog_AR"; then
6079  ac_ct_AR=$AR
6080  # Extract the first word of "ar", so it can be a program name with args.
6081set dummy ar; ac_word=$2
6082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087  if test -n "$ac_ct_AR"; then
6088  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095  for ac_exec_ext in '' $ac_executable_extensions; do
6096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097    ac_cv_prog_ac_ct_AR="ar"
6098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107ac_ct_AR=$ac_cv_prog_ac_ct_AR
6108if test -n "$ac_ct_AR"; then
6109  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6110echo "${ECHO_T}$ac_ct_AR" >&6; }
6111else
6112  { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
6114fi
6115
6116  if test "x$ac_ct_AR" = x; then
6117    AR="false"
6118  else
6119    case $cross_compiling:$ac_tool_warned in
6120yes:)
6121{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122whose name does not start with the host triplet.  If you think this
6123configuration is useful to you, please write to autoconf@gnu.org." >&5
6124echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125whose name does not start with the host triplet.  If you think this
6126configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    AR=$ac_ct_AR
6130  fi
6131else
6132  AR="$ac_cv_prog_AR"
6133fi
6134
6135# Extract the first word of "rm", so it can be a program name with args.
6136set dummy rm; ac_word=$2
6137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139if test "${ac_cv_path_RM+set}" = set; then
6140  echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142  case $RM in
6143  [\\/]* | ?:[\\/]*)
6144  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6145  ;;
6146  *)
6147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150  IFS=$as_save_IFS
6151  test -z "$as_dir" && as_dir=.
6152  for ac_exec_ext in '' $ac_executable_extensions; do
6153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159done
6160IFS=$as_save_IFS
6161
6162  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6163  ;;
6164esac
6165fi
6166RM=$ac_cv_path_RM
6167if test -n "$RM"; then
6168  { echo "$as_me:$LINENO: result: $RM" >&5
6169echo "${ECHO_T}$RM" >&6; }
6170else
6171  { echo "$as_me:$LINENO: result: no" >&5
6172echo "${ECHO_T}no" >&6; }
6173fi
6174
6175
6176# Extract the first word of "sed", so it can be a program name with args.
6177set dummy sed; ac_word=$2
6178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180if test "${ac_cv_path_SED+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  case $SED in
6184  [\\/]* | ?:[\\/]*)
6185  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6186  ;;
6187  *)
6188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193  for ac_exec_ext in '' $ac_executable_extensions; do
6194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200done
6201IFS=$as_save_IFS
6202
6203  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6204  ;;
6205esac
6206fi
6207SED=$ac_cv_path_SED
6208if test -n "$SED"; then
6209  { echo "$as_me:$LINENO: result: $SED" >&5
6210echo "${ECHO_T}$SED" >&6; }
6211else
6212  { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
6214fi
6215
6216
6217# Extract the first word of "tar", so it can be a program name with args.
6218set dummy tar; ac_word=$2
6219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221if test "${ac_cv_path_TAR+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  case $TAR in
6225  [\\/]* | ?:[\\/]*)
6226  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6227  ;;
6228  *)
6229  as_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_path_TAR="$as_dir/$ac_word$ac_exec_ext"
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
6244  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6245  ;;
6246esac
6247fi
6248TAR=$ac_cv_path_TAR
6249if test -n "$TAR"; then
6250  { echo "$as_me:$LINENO: result: $TAR" >&5
6251echo "${ECHO_T}$TAR" >&6; }
6252else
6253  { echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6; }
6255fi
6256
6257
6258# Extract the first word of "pwd", so it can be a program name with args.
6259set dummy pwd; ac_word=$2
6260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262if test "${ac_cv_path_BINPWD+set}" = set; then
6263  echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265  case $BINPWD in
6266  [\\/]* | ?:[\\/]*)
6267  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6268  ;;
6269  *)
6270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275  for ac_exec_ext in '' $ac_executable_extensions; do
6276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282done
6283IFS=$as_save_IFS
6284
6285  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6286  ;;
6287esac
6288fi
6289BINPWD=$ac_cv_path_BINPWD
6290if test -n "$BINPWD"; then
6291  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6292echo "${ECHO_T}$BINPWD" >&6; }
6293else
6294  { echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6; }
6296fi
6297
6298
6299
6300# Extract the first word of "Graphviz", so it can be a program name with args.
6301set dummy Graphviz; ac_word=$2
6302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6305  echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307  case $GRAPHVIZ in
6308  [\\/]* | ?:[\\/]*)
6309  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6310  ;;
6311  *)
6312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315  IFS=$as_save_IFS
6316  test -z "$as_dir" && as_dir=.
6317  for ac_exec_ext in '' $ac_executable_extensions; do
6318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321    break 2
6322  fi
6323done
6324done
6325IFS=$as_save_IFS
6326
6327  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6328  ;;
6329esac
6330fi
6331GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6332if test -n "$GRAPHVIZ"; then
6333  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6334echo "${ECHO_T}$GRAPHVIZ" >&6; }
6335else
6336  { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
6338fi
6339
6340
6341if test "$GRAPHVIZ" != "echo Graphviz" ; then
6342
6343cat >>confdefs.h <<\_ACEOF
6344#define HAVE_GRAPHVIZ 1
6345_ACEOF
6346
6347    if test "$llvm_cv_os_type" = "MingW" ; then
6348    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6349  fi
6350
6351cat >>confdefs.h <<_ACEOF
6352#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6353_ACEOF
6354
6355fi
6356# Extract the first word of "dot", so it can be a program name with args.
6357set dummy dot; ac_word=$2
6358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360if test "${ac_cv_path_DOT+set}" = set; then
6361  echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363  case $DOT in
6364  [\\/]* | ?:[\\/]*)
6365  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6366  ;;
6367  *)
6368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373  for ac_exec_ext in '' $ac_executable_extensions; do
6374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380done
6381IFS=$as_save_IFS
6382
6383  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6384  ;;
6385esac
6386fi
6387DOT=$ac_cv_path_DOT
6388if test -n "$DOT"; then
6389  { echo "$as_me:$LINENO: result: $DOT" >&5
6390echo "${ECHO_T}$DOT" >&6; }
6391else
6392  { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
6394fi
6395
6396
6397if test "$DOT" != "echo dot" ; then
6398
6399cat >>confdefs.h <<\_ACEOF
6400#define HAVE_DOT 1
6401_ACEOF
6402
6403    if test "$llvm_cv_os_type" = "MingW" ; then
6404    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6405  fi
6406
6407cat >>confdefs.h <<_ACEOF
6408#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6409_ACEOF
6410
6411fi
6412# Extract the first word of "fdp", so it can be a program name with args.
6413set dummy fdp; ac_word=$2
6414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416if test "${ac_cv_path_FDP+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  case $FDP in
6420  [\\/]* | ?:[\\/]*)
6421  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6422  ;;
6423  *)
6424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437IFS=$as_save_IFS
6438
6439  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6440  ;;
6441esac
6442fi
6443FDP=$ac_cv_path_FDP
6444if test -n "$FDP"; then
6445  { echo "$as_me:$LINENO: result: $FDP" >&5
6446echo "${ECHO_T}$FDP" >&6; }
6447else
6448  { echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6; }
6450fi
6451
6452
6453if test "$FDP" != "echo fdp" ; then
6454
6455cat >>confdefs.h <<\_ACEOF
6456#define HAVE_FDP 1
6457_ACEOF
6458
6459    if test "$llvm_cv_os_type" = "MingW" ; then
6460    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461  fi
6462
6463cat >>confdefs.h <<_ACEOF
6464#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6465_ACEOF
6466
6467fi
6468# Extract the first word of "neato", so it can be a program name with args.
6469set dummy neato; ac_word=$2
6470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472if test "${ac_cv_path_NEATO+set}" = set; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475  case $NEATO in
6476  [\\/]* | ?:[\\/]*)
6477  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6478  ;;
6479  *)
6480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485  for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492done
6493IFS=$as_save_IFS
6494
6495  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6496  ;;
6497esac
6498fi
6499NEATO=$ac_cv_path_NEATO
6500if test -n "$NEATO"; then
6501  { echo "$as_me:$LINENO: result: $NEATO" >&5
6502echo "${ECHO_T}$NEATO" >&6; }
6503else
6504  { echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6; }
6506fi
6507
6508
6509if test "$NEATO" != "echo neato" ; then
6510
6511cat >>confdefs.h <<\_ACEOF
6512#define HAVE_NEATO 1
6513_ACEOF
6514
6515    if test "$llvm_cv_os_type" = "MingW" ; then
6516    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517  fi
6518
6519cat >>confdefs.h <<_ACEOF
6520#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6521_ACEOF
6522
6523fi
6524# Extract the first word of "twopi", so it can be a program name with args.
6525set dummy twopi; ac_word=$2
6526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528if test "${ac_cv_path_TWOPI+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  case $TWOPI in
6532  [\\/]* | ?:[\\/]*)
6533  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6534  ;;
6535  *)
6536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541  for ac_exec_ext in '' $ac_executable_extensions; do
6542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548done
6549IFS=$as_save_IFS
6550
6551  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6552  ;;
6553esac
6554fi
6555TWOPI=$ac_cv_path_TWOPI
6556if test -n "$TWOPI"; then
6557  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6558echo "${ECHO_T}$TWOPI" >&6; }
6559else
6560  { echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6; }
6562fi
6563
6564
6565if test "$TWOPI" != "echo twopi" ; then
6566
6567cat >>confdefs.h <<\_ACEOF
6568#define HAVE_TWOPI 1
6569_ACEOF
6570
6571    if test "$llvm_cv_os_type" = "MingW" ; then
6572    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573  fi
6574
6575cat >>confdefs.h <<_ACEOF
6576#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6577_ACEOF
6578
6579fi
6580# Extract the first word of "circo", so it can be a program name with args.
6581set dummy circo; ac_word=$2
6582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584if test "${ac_cv_path_CIRCO+set}" = set; then
6585  echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587  case $CIRCO in
6588  [\\/]* | ?:[\\/]*)
6589  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6590  ;;
6591  *)
6592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595  IFS=$as_save_IFS
6596  test -z "$as_dir" && as_dir=.
6597  for ac_exec_ext in '' $ac_executable_extensions; do
6598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601    break 2
6602  fi
6603done
6604done
6605IFS=$as_save_IFS
6606
6607  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6608  ;;
6609esac
6610fi
6611CIRCO=$ac_cv_path_CIRCO
6612if test -n "$CIRCO"; then
6613  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6614echo "${ECHO_T}$CIRCO" >&6; }
6615else
6616  { echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6; }
6618fi
6619
6620
6621if test "$CIRCO" != "echo circo" ; then
6622
6623cat >>confdefs.h <<\_ACEOF
6624#define HAVE_CIRCO 1
6625_ACEOF
6626
6627    if test "$llvm_cv_os_type" = "MingW" ; then
6628    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629  fi
6630
6631cat >>confdefs.h <<_ACEOF
6632#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6633_ACEOF
6634
6635fi
6636for ac_prog in gv gsview32
6637do
6638  # Extract the first word of "$ac_prog", so it can be a program name with args.
6639set dummy $ac_prog; ac_word=$2
6640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642if test "${ac_cv_path_GV+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  case $GV in
6646  [\\/]* | ?:[\\/]*)
6647  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6648  ;;
6649  *)
6650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653  IFS=$as_save_IFS
6654  test -z "$as_dir" && as_dir=.
6655  for ac_exec_ext in '' $ac_executable_extensions; do
6656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659    break 2
6660  fi
6661done
6662done
6663IFS=$as_save_IFS
6664
6665  ;;
6666esac
6667fi
6668GV=$ac_cv_path_GV
6669if test -n "$GV"; then
6670  { echo "$as_me:$LINENO: result: $GV" >&5
6671echo "${ECHO_T}$GV" >&6; }
6672else
6673  { echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6; }
6675fi
6676
6677
6678  test -n "$GV" && break
6679done
6680test -n "$GV" || GV="echo gv"
6681
6682if test "$GV" != "echo gv" ; then
6683
6684cat >>confdefs.h <<\_ACEOF
6685#define HAVE_GV 1
6686_ACEOF
6687
6688    if test "$llvm_cv_os_type" = "MingW" ; then
6689    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690  fi
6691
6692cat >>confdefs.h <<_ACEOF
6693#define LLVM_PATH_GV "$GV${EXEEXT}"
6694_ACEOF
6695
6696fi
6697# Extract the first word of "dotty", so it can be a program name with args.
6698set dummy dotty; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_path_DOTTY+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  case $DOTTY in
6705  [\\/]* | ?:[\\/]*)
6706  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6707  ;;
6708  *)
6709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712  IFS=$as_save_IFS
6713  test -z "$as_dir" && as_dir=.
6714  for ac_exec_ext in '' $ac_executable_extensions; do
6715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718    break 2
6719  fi
6720done
6721done
6722IFS=$as_save_IFS
6723
6724  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6725  ;;
6726esac
6727fi
6728DOTTY=$ac_cv_path_DOTTY
6729if test -n "$DOTTY"; then
6730  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6731echo "${ECHO_T}$DOTTY" >&6; }
6732else
6733  { echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6; }
6735fi
6736
6737
6738if test "$DOTTY" != "echo dotty" ; then
6739
6740cat >>confdefs.h <<\_ACEOF
6741#define HAVE_DOTTY 1
6742_ACEOF
6743
6744    if test "$llvm_cv_os_type" = "MingW" ; then
6745    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746  fi
6747
6748cat >>confdefs.h <<_ACEOF
6749#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6750_ACEOF
6751
6752fi
6753# Extract the first word of "xdot.py", so it can be a program name with args.
6754set dummy xdot.py; ac_word=$2
6755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757if test "${ac_cv_path_XDOT_PY+set}" = set; then
6758  echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760  case $XDOT_PY in
6761  [\\/]* | ?:[\\/]*)
6762  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6763  ;;
6764  *)
6765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768  IFS=$as_save_IFS
6769  test -z "$as_dir" && as_dir=.
6770  for ac_exec_ext in '' $ac_executable_extensions; do
6771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774    break 2
6775  fi
6776done
6777done
6778IFS=$as_save_IFS
6779
6780  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6781  ;;
6782esac
6783fi
6784XDOT_PY=$ac_cv_path_XDOT_PY
6785if test -n "$XDOT_PY"; then
6786  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6787echo "${ECHO_T}$XDOT_PY" >&6; }
6788else
6789  { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
6791fi
6792
6793
6794if test "$XDOT_PY" != "echo xdot.py" ; then
6795
6796cat >>confdefs.h <<\_ACEOF
6797#define HAVE_XDOT_PY 1
6798_ACEOF
6799
6800    if test "$llvm_cv_os_type" = "MingW" ; then
6801    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802  fi
6803
6804cat >>confdefs.h <<_ACEOF
6805#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6806_ACEOF
6807
6808fi
6809
6810
6811# Extract the first word of "perl", so it can be a program name with args.
6812set dummy perl; ac_word=$2
6813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815if test "${ac_cv_path_PERL+set}" = set; then
6816  echo $ECHO_N "(cached) $ECHO_C" >&6
6817else
6818  case $PERL in
6819  [\\/]* | ?:[\\/]*)
6820  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6821  ;;
6822  *)
6823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826  IFS=$as_save_IFS
6827  test -z "$as_dir" && as_dir=.
6828  for ac_exec_ext in '' $ac_executable_extensions; do
6829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832    break 2
6833  fi
6834done
6835done
6836IFS=$as_save_IFS
6837
6838  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6839  ;;
6840esac
6841fi
6842PERL=$ac_cv_path_PERL
6843if test -n "$PERL"; then
6844  { echo "$as_me:$LINENO: result: $PERL" >&5
6845echo "${ECHO_T}$PERL" >&6; }
6846else
6847  { echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6; }
6849fi
6850
6851
6852if test "$PERL" != "none"; then
6853  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6854echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6855  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6856    { echo "$as_me:$LINENO: result: yes" >&5
6857echo "${ECHO_T}yes" >&6; }
6858  else
6859    PERL=none
6860    { echo "$as_me:$LINENO: result: not found" >&5
6861echo "${ECHO_T}not found" >&6; }
6862  fi
6863fi
6864
6865
6866if test x"$PERL" = xnone; then
6867   HAVE_PERL=0
6868
6869   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6870echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6871   { (exit 1); exit 1; }; }
6872else
6873   HAVE_PERL=1
6874
6875fi
6876
6877# Find a good install program.  We prefer a C program (faster),
6878# so one script is as good as another.  But avoid the broken or
6879# incompatible versions:
6880# SysV /etc/install, /usr/sbin/install
6881# SunOS /usr/etc/install
6882# IRIX /sbin/install
6883# AIX /bin/install
6884# AmigaOS /C/install, which installs bootblocks on floppy discs
6885# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6886# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6887# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6888# OS/2's system install, which has a completely different semantic
6889# ./install, which can be erroneously created by make from ./install.sh.
6890{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6891echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6892if test -z "$INSTALL"; then
6893if test "${ac_cv_path_install+set}" = set; then
6894  echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899  IFS=$as_save_IFS
6900  test -z "$as_dir" && as_dir=.
6901  # Account for people who put trailing slashes in PATH elements.
6902case $as_dir/ in
6903  ./ | .// | /cC/* | \
6904  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6905  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6906  /usr/ucb/* ) ;;
6907  *)
6908    # OSF1 and SCO ODT 3.0 have their own names for install.
6909    # Don't use installbsd from OSF since it installs stuff as root
6910    # by default.
6911    for ac_prog in ginstall scoinst install; do
6912      for ac_exec_ext in '' $ac_executable_extensions; do
6913	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6914	  if test $ac_prog = install &&
6915	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916	    # AIX install.  It has an incompatible calling convention.
6917	    :
6918	  elif test $ac_prog = install &&
6919	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920	    # program-specific install script used by HP pwplus--don't use.
6921	    :
6922	  else
6923	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6924	    break 3
6925	  fi
6926	fi
6927      done
6928    done
6929    ;;
6930esac
6931done
6932IFS=$as_save_IFS
6933
6934
6935fi
6936  if test "${ac_cv_path_install+set}" = set; then
6937    INSTALL=$ac_cv_path_install
6938  else
6939    # As a last resort, use the slow shell script.  Don't cache a
6940    # value for INSTALL within a source directory, because that will
6941    # break other packages using the cache if that directory is
6942    # removed, or if the value is a relative name.
6943    INSTALL=$ac_install_sh
6944  fi
6945fi
6946{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6947echo "${ECHO_T}$INSTALL" >&6; }
6948
6949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6950# It thinks the first close brace ends the variable substitution.
6951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6952
6953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6954
6955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6956
6957case "$INSTALL" in
6958 [\\/$]* | ?:[\\/]* ) ;;
6959 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6960esac
6961
6962# Extract the first word of "bzip2", so it can be a program name with args.
6963set dummy bzip2; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_path_BZIP2+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  case $BZIP2 in
6970  [\\/]* | ?:[\\/]*)
6971  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6972  ;;
6973  *)
6974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979  for ac_exec_ext in '' $ac_executable_extensions; do
6980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989  ;;
6990esac
6991fi
6992BZIP2=$ac_cv_path_BZIP2
6993if test -n "$BZIP2"; then
6994  { echo "$as_me:$LINENO: result: $BZIP2" >&5
6995echo "${ECHO_T}$BZIP2" >&6; }
6996else
6997  { echo "$as_me:$LINENO: result: no" >&5
6998echo "${ECHO_T}no" >&6; }
6999fi
7000
7001
7002# Extract the first word of "cat", so it can be a program name with args.
7003set dummy cat; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_path_CAT+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  case $CAT in
7010  [\\/]* | ?:[\\/]*)
7011  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7012  ;;
7013  *)
7014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  test -z "$as_dir" && as_dir=.
7019  for ac_exec_ext in '' $ac_executable_extensions; do
7020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029  ;;
7030esac
7031fi
7032CAT=$ac_cv_path_CAT
7033if test -n "$CAT"; then
7034  { echo "$as_me:$LINENO: result: $CAT" >&5
7035echo "${ECHO_T}$CAT" >&6; }
7036else
7037  { echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6; }
7039fi
7040
7041
7042# Extract the first word of "doxygen", so it can be a program name with args.
7043set dummy doxygen; ac_word=$2
7044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046if test "${ac_cv_path_DOXYGEN+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  case $DOXYGEN in
7050  [\\/]* | ?:[\\/]*)
7051  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7052  ;;
7053  *)
7054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  test -z "$as_dir" && as_dir=.
7059  for ac_exec_ext in '' $ac_executable_extensions; do
7060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063    break 2
7064  fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069  ;;
7070esac
7071fi
7072DOXYGEN=$ac_cv_path_DOXYGEN
7073if test -n "$DOXYGEN"; then
7074  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7075echo "${ECHO_T}$DOXYGEN" >&6; }
7076else
7077  { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
7079fi
7080
7081
7082# Extract the first word of "groff", so it can be a program name with args.
7083set dummy groff; ac_word=$2
7084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_GROFF+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  case $GROFF in
7090  [\\/]* | ?:[\\/]*)
7091  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7092  ;;
7093  *)
7094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099  for ac_exec_ext in '' $ac_executable_extensions; do
7100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109  ;;
7110esac
7111fi
7112GROFF=$ac_cv_path_GROFF
7113if test -n "$GROFF"; then
7114  { echo "$as_me:$LINENO: result: $GROFF" >&5
7115echo "${ECHO_T}$GROFF" >&6; }
7116else
7117  { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
7119fi
7120
7121
7122# Extract the first word of "gzip", so it can be a program name with args.
7123set dummy gzip; ac_word=$2
7124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_GZIPBIN+set}" = set; then
7127  echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129  case $GZIPBIN in
7130  [\\/]* | ?:[\\/]*)
7131  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7132  ;;
7133  *)
7134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139  for ac_exec_ext in '' $ac_executable_extensions; do
7140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146done
7147IFS=$as_save_IFS
7148
7149  ;;
7150esac
7151fi
7152GZIPBIN=$ac_cv_path_GZIPBIN
7153if test -n "$GZIPBIN"; then
7154  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7155echo "${ECHO_T}$GZIPBIN" >&6; }
7156else
7157  { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162# Extract the first word of "pod2html", so it can be a program name with args.
7163set dummy pod2html; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_POD2HTML+set}" = set; then
7167  echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169  case $POD2HTML in
7170  [\\/]* | ?:[\\/]*)
7171  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7172  ;;
7173  *)
7174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179  for ac_exec_ext in '' $ac_executable_extensions; do
7180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189  ;;
7190esac
7191fi
7192POD2HTML=$ac_cv_path_POD2HTML
7193if test -n "$POD2HTML"; then
7194  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7195echo "${ECHO_T}$POD2HTML" >&6; }
7196else
7197  { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201
7202# Extract the first word of "pod2man", so it can be a program name with args.
7203set dummy pod2man; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_POD2MAN+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  case $POD2MAN in
7210  [\\/]* | ?:[\\/]*)
7211  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7212  ;;
7213  *)
7214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219  for ac_exec_ext in '' $ac_executable_extensions; do
7220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229  ;;
7230esac
7231fi
7232POD2MAN=$ac_cv_path_POD2MAN
7233if test -n "$POD2MAN"; then
7234  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7235echo "${ECHO_T}$POD2MAN" >&6; }
7236else
7237  { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
7239fi
7240
7241
7242# Extract the first word of "pdfroff", so it can be a program name with args.
7243set dummy pdfroff; ac_word=$2
7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_PDFROFF+set}" = set; then
7247  echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249  case $PDFROFF in
7250  [\\/]* | ?:[\\/]*)
7251  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7252  ;;
7253  *)
7254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259  for ac_exec_ext in '' $ac_executable_extensions; do
7260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269  ;;
7270esac
7271fi
7272PDFROFF=$ac_cv_path_PDFROFF
7273if test -n "$PDFROFF"; then
7274  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7275echo "${ECHO_T}$PDFROFF" >&6; }
7276else
7277  { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279fi
7280
7281
7282# Extract the first word of "runtest", so it can be a program name with args.
7283set dummy runtest; ac_word=$2
7284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286if test "${ac_cv_path_RUNTEST+set}" = set; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  case $RUNTEST in
7290  [\\/]* | ?:[\\/]*)
7291  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7292  ;;
7293  *)
7294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299  for ac_exec_ext in '' $ac_executable_extensions; do
7300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306done
7307IFS=$as_save_IFS
7308
7309  ;;
7310esac
7311fi
7312RUNTEST=$ac_cv_path_RUNTEST
7313if test -n "$RUNTEST"; then
7314  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7315echo "${ECHO_T}$RUNTEST" >&6; }
7316else
7317  { echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6; }
7319fi
7320
7321
7322
7323no_itcl=true
7324{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7325echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7326
7327# Check whether --with-tclinclude was given.
7328if test "${with_tclinclude+set}" = set; then
7329  withval=$with_tclinclude; with_tclinclude=${withval}
7330else
7331  with_tclinclude=''
7332fi
7333
7334if test "${ac_cv_path_tclsh+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337
7338if test x"${with_tclinclude}" != x ; then
7339  if test -f ${with_tclinclude}/tclsh ; then
7340    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7341  elif test -f ${with_tclinclude}/src/tclsh ; then
7342    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7343  else
7344    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7345echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7346   { (exit 1); exit 1; }; }
7347  fi
7348fi
7349fi
7350
7351
7352if test x"${ac_cv_path_tclsh}" = x ; then
7353  { echo "$as_me:$LINENO: result: none" >&5
7354echo "${ECHO_T}none" >&6; }
7355  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
7356do
7357  # Extract the first word of "$ac_prog", so it can be a program name with args.
7358set dummy $ac_prog; ac_word=$2
7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_TCLSH+set}" = set; then
7362  echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364  case $TCLSH in
7365  [\\/]* | ?:[\\/]*)
7366  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7367  ;;
7368  *)
7369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374  for ac_exec_ext in '' $ac_executable_extensions; do
7375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381done
7382IFS=$as_save_IFS
7383
7384  ;;
7385esac
7386fi
7387TCLSH=$ac_cv_path_TCLSH
7388if test -n "$TCLSH"; then
7389  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7390echo "${ECHO_T}$TCLSH" >&6; }
7391else
7392  { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397  test -n "$TCLSH" && break
7398done
7399
7400  if test x"${TCLSH}" = x ; then
7401    ac_cv_path_tclsh='';
7402  else
7403    ac_cv_path_tclsh="${TCLSH}";
7404  fi
7405else
7406  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7407echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7408  TCLSH="${ac_cv_path_tclsh}"
7409
7410fi
7411
7412# Extract the first word of "zip", so it can be a program name with args.
7413set dummy zip; ac_word=$2
7414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_ZIP+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  case $ZIP in
7420  [\\/]* | ?:[\\/]*)
7421  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7422  ;;
7423  *)
7424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427  IFS=$as_save_IFS
7428  test -z "$as_dir" && as_dir=.
7429  for ac_exec_ext in '' $ac_executable_extensions; do
7430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433    break 2
7434  fi
7435done
7436done
7437IFS=$as_save_IFS
7438
7439  ;;
7440esac
7441fi
7442ZIP=$ac_cv_path_ZIP
7443if test -n "$ZIP"; then
7444  { echo "$as_me:$LINENO: result: $ZIP" >&5
7445echo "${ECHO_T}$ZIP" >&6; }
7446else
7447  { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
7449fi
7450
7451
7452for ac_prog in ocamlc
7453do
7454  # Extract the first word of "$ac_prog", so it can be a program name with args.
7455set dummy $ac_prog; ac_word=$2
7456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458if test "${ac_cv_path_OCAMLC+set}" = set; then
7459  echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461  case $OCAMLC in
7462  [\\/]* | ?:[\\/]*)
7463  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7464  ;;
7465  *)
7466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471  for ac_exec_ext in '' $ac_executable_extensions; do
7472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478done
7479IFS=$as_save_IFS
7480
7481  ;;
7482esac
7483fi
7484OCAMLC=$ac_cv_path_OCAMLC
7485if test -n "$OCAMLC"; then
7486  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7487echo "${ECHO_T}$OCAMLC" >&6; }
7488else
7489  { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
7491fi
7492
7493
7494  test -n "$OCAMLC" && break
7495done
7496
7497for ac_prog in ocamlopt
7498do
7499  # Extract the first word of "$ac_prog", so it can be a program name with args.
7500set dummy $ac_prog; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  case $OCAMLOPT in
7507  [\\/]* | ?:[\\/]*)
7508  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7509  ;;
7510  *)
7511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514  IFS=$as_save_IFS
7515  test -z "$as_dir" && as_dir=.
7516  for ac_exec_ext in '' $ac_executable_extensions; do
7517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520    break 2
7521  fi
7522done
7523done
7524IFS=$as_save_IFS
7525
7526  ;;
7527esac
7528fi
7529OCAMLOPT=$ac_cv_path_OCAMLOPT
7530if test -n "$OCAMLOPT"; then
7531  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7532echo "${ECHO_T}$OCAMLOPT" >&6; }
7533else
7534  { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
7536fi
7537
7538
7539  test -n "$OCAMLOPT" && break
7540done
7541
7542for ac_prog in ocamldep
7543do
7544  # Extract the first word of "$ac_prog", so it can be a program name with args.
7545set dummy $ac_prog; 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_OCAMLDEP+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  case $OCAMLDEP in
7552  [\\/]* | ?:[\\/]*)
7553  ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$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  ;;
7572esac
7573fi
7574OCAMLDEP=$ac_cv_path_OCAMLDEP
7575if test -n "$OCAMLDEP"; then
7576  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7577echo "${ECHO_T}$OCAMLDEP" >&6; }
7578else
7579  { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584  test -n "$OCAMLDEP" && break
7585done
7586
7587for ac_prog in ocamldoc
7588do
7589  # Extract the first word of "$ac_prog", so it can be a program name with args.
7590set dummy $ac_prog; ac_word=$2
7591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7594  echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596  case $OCAMLDOC in
7597  [\\/]* | ?:[\\/]*)
7598  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7599  ;;
7600  *)
7601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604  IFS=$as_save_IFS
7605  test -z "$as_dir" && as_dir=.
7606  for ac_exec_ext in '' $ac_executable_extensions; do
7607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610    break 2
7611  fi
7612done
7613done
7614IFS=$as_save_IFS
7615
7616  ;;
7617esac
7618fi
7619OCAMLDOC=$ac_cv_path_OCAMLDOC
7620if test -n "$OCAMLDOC"; then
7621  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7622echo "${ECHO_T}$OCAMLDOC" >&6; }
7623else
7624  { echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6; }
7626fi
7627
7628
7629  test -n "$OCAMLDOC" && break
7630done
7631
7632for ac_prog in gas as
7633do
7634  # Extract the first word of "$ac_prog", so it can be a program name with args.
7635set dummy $ac_prog; ac_word=$2
7636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638if test "${ac_cv_path_GAS+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  case $GAS in
7642  [\\/]* | ?:[\\/]*)
7643  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7644  ;;
7645  *)
7646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649  IFS=$as_save_IFS
7650  test -z "$as_dir" && as_dir=.
7651  for ac_exec_ext in '' $ac_executable_extensions; do
7652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655    break 2
7656  fi
7657done
7658done
7659IFS=$as_save_IFS
7660
7661  ;;
7662esac
7663fi
7664GAS=$ac_cv_path_GAS
7665if test -n "$GAS"; then
7666  { echo "$as_me:$LINENO: result: $GAS" >&5
7667echo "${ECHO_T}$GAS" >&6; }
7668else
7669  { echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6; }
7671fi
7672
7673
7674  test -n "$GAS" && break
7675done
7676
7677
7678{ echo "$as_me:$LINENO: checking for linker version" >&5
7679echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7680if test "${llvm_cv_link_version+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683
7684   version_string="$(ld -v 2>&1 | head -1)"
7685
7686   # Check for ld64.
7687   if (echo "$version_string" | grep -q "ld64"); then
7688     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7689   else
7690     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7691   fi
7692
7693fi
7694{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7695echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7696
7697cat >>confdefs.h <<_ACEOF
7698#define HOST_LINK_VERSION "$llvm_cv_link_version"
7699_ACEOF
7700
7701
7702
7703{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7704echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7705if test "${llvm_cv_link_use_r+set}" = set; then
7706  echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708   ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714  oldcflags="$CFLAGS"
7715  CFLAGS="$CFLAGS -Wl,-R."
7716  cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h.  */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h.  */
7722
7723int
7724main ()
7725{
7726
7727  ;
7728  return 0;
7729}
7730_ACEOF
7731rm -f conftest.$ac_objext conftest$ac_exeext
7732if { (ac_try="$ac_link"
7733case "(($ac_try" in
7734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735  *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738  (eval "$ac_link") 2>conftest.er1
7739  ac_status=$?
7740  grep -v '^ *+' conftest.er1 >conftest.err
7741  rm -f conftest.er1
7742  cat conftest.err >&5
7743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } &&
7745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7746  { (case "(($ac_try" in
7747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748  *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751  (eval "$ac_try") 2>&5
7752  ac_status=$?
7753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754  (exit $ac_status); }; } &&
7755	 { ac_try='test -s conftest$ac_exeext'
7756  { (case "(($ac_try" in
7757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758  *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761  (eval "$ac_try") 2>&5
7762  ac_status=$?
7763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764  (exit $ac_status); }; }; then
7765  llvm_cv_link_use_r=yes
7766else
7767  echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770	llvm_cv_link_use_r=no
7771fi
7772
7773rm -f core conftest.err conftest.$ac_objext \
7774      conftest$ac_exeext conftest.$ac_ext
7775  CFLAGS="$oldcflags"
7776  ac_ext=c
7777ac_cpp='$CPP $CPPFLAGS'
7778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783fi
7784{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7785echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7786if test "$llvm_cv_link_use_r" = yes ; then
7787
7788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_LINK_R 1
7790_ACEOF
7791
7792  fi
7793
7794
7795{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7796echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7797if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800   ac_ext=c
7801ac_cpp='$CPP $CPPFLAGS'
7802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806  oldcflags="$CFLAGS"
7807  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7808  cat >conftest.$ac_ext <<_ACEOF
7809/* confdefs.h.  */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h.  */
7814
7815int
7816main ()
7817{
7818
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (ac_try="$ac_link"
7825case "(($ac_try" in
7826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827  *) ac_try_echo=$ac_try;;
7828esac
7829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830  (eval "$ac_link") 2>conftest.er1
7831  ac_status=$?
7832  grep -v '^ *+' conftest.er1 >conftest.err
7833  rm -f conftest.er1
7834  cat conftest.err >&5
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); } &&
7837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7838  { (case "(($ac_try" in
7839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840  *) ac_try_echo=$ac_try;;
7841esac
7842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843  (eval "$ac_try") 2>&5
7844  ac_status=$?
7845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846  (exit $ac_status); }; } &&
7847	 { ac_try='test -s conftest$ac_exeext'
7848  { (case "(($ac_try" in
7849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850  *) ac_try_echo=$ac_try;;
7851esac
7852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853  (eval "$ac_try") 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); }; }; then
7857  llvm_cv_link_use_export_dynamic=yes
7858else
7859  echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862	llvm_cv_link_use_export_dynamic=no
7863fi
7864
7865rm -f core conftest.err conftest.$ac_objext \
7866      conftest$ac_exeext conftest.$ac_ext
7867  CFLAGS="$oldcflags"
7868  ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874
7875fi
7876{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7877echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7878if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7879
7880cat >>confdefs.h <<\_ACEOF
7881#define HAVE_LINK_EXPORT_DYNAMIC 1
7882_ACEOF
7883
7884  fi
7885
7886
7887{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7888echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7889if test "${llvm_cv_link_use_version_script+set}" = set; then
7890  echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892   ac_ext=c
7893ac_cpp='$CPP $CPPFLAGS'
7894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896ac_compiler_gnu=$ac_cv_c_compiler_gnu
7897
7898  oldcflags="$CFLAGS"
7899
7900  # The following code is from the autoconf manual,
7901  # "11.13: Limitations of Usual Tools".
7902  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7903  # Use mktemp if possible; otherwise fall back on mkdir,
7904  # with $RANDOM to make collisions less likely.
7905  : ${TMPDIR=/tmp}
7906  {
7907    tmp=`
7908      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7909    ` &&
7910    test -n "$tmp" && test -d "$tmp"
7911  } || {
7912    tmp=$TMPDIR/foo$$-$RANDOM
7913    (umask 077 && mkdir "$tmp")
7914  } || exit $?
7915
7916  echo "{" > "$tmp/export.map"
7917  echo "  global: main;" >> "$tmp/export.map"
7918  echo "  local: *;" >> "$tmp/export.map"
7919  echo "};" >> "$tmp/export.map"
7920
7921  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7922  cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h.  */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h.  */
7928
7929int
7930main ()
7931{
7932
7933  ;
7934  return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext conftest$ac_exeext
7938if { (ac_try="$ac_link"
7939case "(($ac_try" in
7940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941  *) ac_try_echo=$ac_try;;
7942esac
7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944  (eval "$ac_link") 2>conftest.er1
7945  ac_status=$?
7946  grep -v '^ *+' conftest.er1 >conftest.err
7947  rm -f conftest.er1
7948  cat conftest.err >&5
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); } &&
7951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7952  { (case "(($ac_try" in
7953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954  *) ac_try_echo=$ac_try;;
7955esac
7956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957  (eval "$ac_try") 2>&5
7958  ac_status=$?
7959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960  (exit $ac_status); }; } &&
7961	 { ac_try='test -s conftest$ac_exeext'
7962  { (case "(($ac_try" in
7963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964  *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967  (eval "$ac_try") 2>&5
7968  ac_status=$?
7969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970  (exit $ac_status); }; }; then
7971  llvm_cv_link_use_version_script=yes
7972else
7973  echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976	llvm_cv_link_use_version_script=no
7977fi
7978
7979rm -f core conftest.err conftest.$ac_objext \
7980      conftest$ac_exeext conftest.$ac_ext
7981  rm "$tmp/export.map"
7982  rmdir "$tmp"
7983  CFLAGS="$oldcflags"
7984  ac_ext=c
7985ac_cpp='$CPP $CPPFLAGS'
7986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990
7991fi
7992{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7993echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7994if test "$llvm_cv_link_use_version_script" = yes ; then
7995  HAVE_LINK_VERSION_SCRIPT=1
7996
7997  fi
7998
7999
8000
8001
8002{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004if test "${ac_cv_c_const+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013
8014int
8015main ()
8016{
8017/* FIXME: Include the comments suggested by Paul. */
8018#ifndef __cplusplus
8019  /* Ultrix mips cc rejects this.  */
8020  typedef int charset[2];
8021  const charset x;
8022  /* SunOS 4.1.1 cc rejects this.  */
8023  char const *const *ccp;
8024  char **p;
8025  /* NEC SVR4.0.2 mips cc rejects this.  */
8026  struct point {int x, y;};
8027  static struct point const zero = {0,0};
8028  /* AIX XL C 1.02.0.0 rejects this.
8029     It does not let you subtract one const X* pointer from another in
8030     an arm of an if-expression whose if-part is not a constant
8031     expression */
8032  const char *g = "string";
8033  ccp = &g + (g ? g-g : 0);
8034  /* HPUX 7.0 cc rejects these. */
8035  ++ccp;
8036  p = (char**) ccp;
8037  ccp = (char const *const *) p;
8038  { /* SCO 3.2v4 cc rejects this.  */
8039    char *t;
8040    char const *s = 0 ? (char *) 0 : (char const *) 0;
8041
8042    *t++ = 0;
8043    if (s) return 0;
8044  }
8045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8046    int x[] = {25, 17};
8047    const int *foo = &x[0];
8048    ++foo;
8049  }
8050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051    typedef const int *iptr;
8052    iptr p = 0;
8053    ++p;
8054  }
8055  { /* AIX XL C 1.02.0.0 rejects this saying
8056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057    struct s { int j; const int *ap[3]; };
8058    struct s *b; b->j = 5;
8059  }
8060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061    const int foo = 10;
8062    if (!foo) return 0;
8063  }
8064  return !x[0] && !zero.x;
8065#endif
8066
8067  ;
8068  return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
8072if { (ac_try="$ac_compile"
8073case "(($ac_try" in
8074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075  *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078  (eval "$ac_compile") 2>conftest.er1
8079  ac_status=$?
8080  grep -v '^ *+' conftest.er1 >conftest.err
8081  rm -f conftest.er1
8082  cat conftest.err >&5
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); } &&
8085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086  { (case "(($ac_try" in
8087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088  *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091  (eval "$ac_try") 2>&5
8092  ac_status=$?
8093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094  (exit $ac_status); }; } &&
8095	 { ac_try='test -s conftest.$ac_objext'
8096  { (case "(($ac_try" in
8097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098  *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101  (eval "$ac_try") 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; }; then
8105  ac_cv_c_const=yes
8106else
8107  echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110	ac_cv_c_const=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114fi
8115{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117if test $ac_cv_c_const = no; then
8118
8119cat >>confdefs.h <<\_ACEOF
8120#define const
8121_ACEOF
8122
8123fi
8124
8125
8126
8127
8128
8129
8130ac_header_dirent=no
8131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8133{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144#include <sys/types.h>
8145#include <$ac_hdr>
8146
8147int
8148main ()
8149{
8150if ((DIR *) 0)
8151return 0;
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (ac_try="$ac_compile"
8158case "(($ac_try" in
8159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160  *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163  (eval "$ac_compile") 2>conftest.er1
8164  ac_status=$?
8165  grep -v '^ *+' conftest.er1 >conftest.err
8166  rm -f conftest.er1
8167  cat conftest.err >&5
8168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169  (exit $ac_status); } &&
8170	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171  { (case "(($ac_try" in
8172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173  *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176  (eval "$ac_try") 2>&5
8177  ac_status=$?
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); }; } &&
8180	 { ac_try='test -s conftest.$ac_objext'
8181  { (case "(($ac_try" in
8182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183  *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186  (eval "$ac_try") 2>&5
8187  ac_status=$?
8188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189  (exit $ac_status); }; }; then
8190  eval "$as_ac_Header=yes"
8191else
8192  echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195	eval "$as_ac_Header=no"
8196fi
8197
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200ac_res=`eval echo '${'$as_ac_Header'}'`
8201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8202echo "${ECHO_T}$ac_res" >&6; }
8203if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204  cat >>confdefs.h <<_ACEOF
8205#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8206_ACEOF
8207
8208ac_header_dirent=$ac_hdr; break
8209fi
8210
8211done
8212# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213if test $ac_header_dirent = dirent.h; then
8214  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8216if test "${ac_cv_search_opendir+set}" = set; then
8217  echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219  ac_func_search_save_LIBS=$LIBS
8220cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h.  */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h.  */
8226
8227/* Override any GCC internal prototype to avoid an error.
8228   Use char because int might match the return type of a GCC
8229   builtin and then its argument prototype would still apply.  */
8230#ifdef __cplusplus
8231extern "C"
8232#endif
8233char opendir ();
8234int
8235main ()
8236{
8237return opendir ();
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242for ac_lib in '' dir; do
8243  if test -z "$ac_lib"; then
8244    ac_res="none required"
8245  else
8246    ac_res=-l$ac_lib
8247    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248  fi
8249  rm -f conftest.$ac_objext conftest$ac_exeext
8250if { (ac_try="$ac_link"
8251case "(($ac_try" in
8252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253  *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256  (eval "$ac_link") 2>conftest.er1
8257  ac_status=$?
8258  grep -v '^ *+' conftest.er1 >conftest.err
8259  rm -f conftest.er1
8260  cat conftest.err >&5
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } &&
8263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264  { (case "(($ac_try" in
8265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266  *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269  (eval "$ac_try") 2>&5
8270  ac_status=$?
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); }; } &&
8273	 { ac_try='test -s conftest$ac_exeext'
8274  { (case "(($ac_try" in
8275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276  *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279  (eval "$ac_try") 2>&5
8280  ac_status=$?
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); }; }; then
8283  ac_cv_search_opendir=$ac_res
8284else
8285  echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext \
8292      conftest$ac_exeext
8293  if test "${ac_cv_search_opendir+set}" = set; then
8294  break
8295fi
8296done
8297if test "${ac_cv_search_opendir+set}" = set; then
8298  :
8299else
8300  ac_cv_search_opendir=no
8301fi
8302rm conftest.$ac_ext
8303LIBS=$ac_func_search_save_LIBS
8304fi
8305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307ac_res=$ac_cv_search_opendir
8308if test "$ac_res" != no; then
8309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8310
8311fi
8312
8313else
8314  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316if test "${ac_cv_search_opendir+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  ac_func_search_save_LIBS=$LIBS
8320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326
8327/* Override any GCC internal prototype to avoid an error.
8328   Use char because int might match the return type of a GCC
8329   builtin and then its argument prototype would still apply.  */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char opendir ();
8334int
8335main ()
8336{
8337return opendir ();
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342for ac_lib in '' x; do
8343  if test -z "$ac_lib"; then
8344    ac_res="none required"
8345  else
8346    ac_res=-l$ac_lib
8347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8348  fi
8349  rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (ac_try="$ac_link"
8351case "(($ac_try" in
8352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353  *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356  (eval "$ac_link") 2>conftest.er1
8357  ac_status=$?
8358  grep -v '^ *+' conftest.er1 >conftest.err
8359  rm -f conftest.er1
8360  cat conftest.err >&5
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); } &&
8363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364  { (case "(($ac_try" in
8365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366  *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369  (eval "$ac_try") 2>&5
8370  ac_status=$?
8371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372  (exit $ac_status); }; } &&
8373	 { ac_try='test -s conftest$ac_exeext'
8374  { (case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_try") 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_cv_search_opendir=$ac_res
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext
8393  if test "${ac_cv_search_opendir+set}" = set; then
8394  break
8395fi
8396done
8397if test "${ac_cv_search_opendir+set}" = set; then
8398  :
8399else
8400  ac_cv_search_opendir=no
8401fi
8402rm conftest.$ac_ext
8403LIBS=$ac_func_search_save_LIBS
8404fi
8405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407ac_res=$ac_cv_search_opendir
8408if test "$ac_res" != no; then
8409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8410
8411fi
8412
8413fi
8414
8415
8416for ac_header in dlfcn.h
8417do
8418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423  echo $ECHO_N "(cached) $ECHO_C" >&6
8424fi
8425ac_res=`eval echo '${'$as_ac_Header'}'`
8426	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8427echo "${ECHO_T}$ac_res" >&6; }
8428else
8429  # Is the header compilable?
8430{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438$ac_includes_default
8439#include <$ac_header>
8440_ACEOF
8441rm -f conftest.$ac_objext
8442if { (ac_try="$ac_compile"
8443case "(($ac_try" in
8444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445  *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448  (eval "$ac_compile") 2>conftest.er1
8449  ac_status=$?
8450  grep -v '^ *+' conftest.er1 >conftest.err
8451  rm -f conftest.er1
8452  cat conftest.err >&5
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); } &&
8455	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456  { (case "(($ac_try" in
8457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458  *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461  (eval "$ac_try") 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); }; } &&
8465	 { ac_try='test -s conftest.$ac_objext'
8466  { (case "(($ac_try" in
8467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468  *) ac_try_echo=$ac_try;;
8469esac
8470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471  (eval "$ac_try") 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; }; then
8475  ac_header_compiler=yes
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480	ac_header_compiler=no
8481fi
8482
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485echo "${ECHO_T}$ac_header_compiler" >&6; }
8486
8487# Is the header present?
8488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8490cat >conftest.$ac_ext <<_ACEOF
8491/* confdefs.h.  */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h.  */
8496#include <$ac_header>
8497_ACEOF
8498if { (ac_try="$ac_cpp conftest.$ac_ext"
8499case "(($ac_try" in
8500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501  *) ac_try_echo=$ac_try;;
8502esac
8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8505  ac_status=$?
8506  grep -v '^ *+' conftest.er1 >conftest.err
8507  rm -f conftest.er1
8508  cat conftest.err >&5
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); } >/dev/null; then
8511  if test -s conftest.err; then
8512    ac_cpp_err=$ac_c_preproc_warn_flag
8513    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8514  else
8515    ac_cpp_err=
8516  fi
8517else
8518  ac_cpp_err=yes
8519fi
8520if test -z "$ac_cpp_err"; then
8521  ac_header_preproc=yes
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526  ac_header_preproc=no
8527fi
8528
8529rm -f conftest.err conftest.$ac_ext
8530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531echo "${ECHO_T}$ac_header_preproc" >&6; }
8532
8533# So?  What about this header?
8534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535  yes:no: )
8536    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540    ac_header_preproc=yes
8541    ;;
8542  no:yes:* )
8543    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8545    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8546echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8547    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8550echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8553    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555    ( cat <<\_ASBOX
8556## ------------------------------ ##
8557## Report this to bugs@yourdomain ##
8558## ------------------------------ ##
8559_ASBOX
8560     ) | sed "s/^/$as_me: WARNING:     /" >&2
8561    ;;
8562esac
8563{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568  eval "$as_ac_Header=\$ac_header_preproc"
8569fi
8570ac_res=`eval echo '${'$as_ac_Header'}'`
8571	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8572echo "${ECHO_T}$ac_res" >&6; }
8573
8574fi
8575if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576  cat >>confdefs.h <<_ACEOF
8577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578_ACEOF
8579
8580fi
8581
8582done
8583
8584# Check whether --enable-ltdl-install was given.
8585if test "${enable_ltdl_install+set}" = set; then
8586  enableval=$enable_ltdl_install;
8587fi
8588
8589
8590
8591
8592if test x"${enable_ltdl_install-no}" != xno; then
8593  INSTALL_LTDL_TRUE=
8594  INSTALL_LTDL_FALSE='#'
8595else
8596  INSTALL_LTDL_TRUE='#'
8597  INSTALL_LTDL_FALSE=
8598fi
8599
8600
8601
8602if test x"${enable_ltdl_convenience-no}" != xno; then
8603  CONVENIENCE_LTDL_TRUE=
8604  CONVENIENCE_LTDL_FALSE='#'
8605else
8606  CONVENIENCE_LTDL_TRUE='#'
8607  CONVENIENCE_LTDL_FALSE=
8608fi
8609
8610
8611{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613library_names_spec=
8614libname_spec='lib$name'
8615soname_spec=
8616shrext_cmds=".so"
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626if test "$GCC" = yes; then
8627  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629    # if the path contains ";" then we assume it to be the separator
8630    # otherwise default to the standard path separator (i.e. ":") - it is
8631    # assumed that no part of a normal pathname contains ";" but that should
8632    # okay in the real world where ";" in dirpaths is itself problematic.
8633    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634  else
8635    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636  fi
8637else
8638  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639fi
8640need_lib_prefix=unknown
8641hardcode_into_libs=no
8642
8643# when you set need_version to no, make sure it does not cause -set_version
8644# flags to be left without arguments
8645need_version=unknown
8646
8647case $host_os in
8648aix3*)
8649  version_type=linux
8650  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651  shlibpath_var=LIBPATH
8652
8653  # AIX 3 has no versioning support, so we append a major version to the name.
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  ;;
8656
8657aix4* | aix5*)
8658  version_type=linux
8659  need_lib_prefix=no
8660  need_version=no
8661  hardcode_into_libs=yes
8662  if test "$host_cpu" = ia64; then
8663    # AIX 5 supports IA64
8664    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665    shlibpath_var=LD_LIBRARY_PATH
8666  else
8667    # With GCC up to 2.95.x, collect2 would create an import file
8668    # for dependence libraries.  The import file would start with
8669    # the line `#! .'.  This would cause the generated library to
8670    # depend on `.', always an invalid library.  This was fixed in
8671    # development snapshots of GCC prior to 3.0.
8672    case $host_os in
8673      aix4 | aix4.[01] | aix4.[01].*)
8674      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675	   echo ' yes '
8676	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677	:
8678      else
8679	can_build_shared=no
8680      fi
8681      ;;
8682    esac
8683    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684    # soname into executable. Probably we can add versioning support to
8685    # collect2, so additional links can be useful in future.
8686    if test "$aix_use_runtimelinking" = yes; then
8687      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688      # instead of lib<name>.a to let people know that these are not
8689      # typical AIX shared libraries.
8690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691    else
8692      # We preserve .a as extension for shared libraries through AIX4.2
8693      # and later when we are not doing run time linking.
8694      library_names_spec='${libname}${release}.a $libname.a'
8695      soname_spec='${libname}${release}${shared_ext}$major'
8696    fi
8697    shlibpath_var=LIBPATH
8698  fi
8699  ;;
8700
8701amigaos*)
8702  library_names_spec='$libname.ixlibrary $libname.a'
8703  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704  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'
8705  ;;
8706
8707beos*)
8708  library_names_spec='${libname}${shared_ext}'
8709  dynamic_linker="$host_os ld.so"
8710  shlibpath_var=LIBRARY_PATH
8711  ;;
8712
8713bsdi[45]*)
8714  version_type=linux
8715  need_version=no
8716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717  soname_spec='${libname}${release}${shared_ext}$major'
8718  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719  shlibpath_var=LD_LIBRARY_PATH
8720  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722  # the default ld.so.conf also contains /usr/contrib/lib and
8723  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724  # libtool to hard-code these into programs
8725  ;;
8726
8727cygwin* | mingw* | pw32*)
8728  version_type=windows
8729  shrext_cmds=".dll"
8730  need_version=no
8731  need_lib_prefix=no
8732
8733  case $GCC,$host_os in
8734  yes,cygwin* | yes,mingw* | yes,pw32*)
8735    library_names_spec='$libname.dll.a'
8736    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737    postinstall_cmds='base_file=`basename \${file}`~
8738      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739      dldir=$destdir/`dirname \$dlpath`~
8740      test -d \$dldir || mkdir -p \$dldir~
8741      $install_prog $dir/$dlname \$dldir/$dlname~
8742      chmod a+x \$dldir/$dlname'
8743    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744      dlpath=$dir/\$dldll~
8745       $rm \$dlpath'
8746    shlibpath_overrides_runpath=yes
8747
8748    case $host_os in
8749    cygwin*)
8750      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753      ;;
8754    mingw*)
8755      # MinGW DLLs use traditional 'lib' prefix
8756      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759        # It is most probably a Windows format PATH printed by
8760        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761        # path with ; separators, and with drive letters. We can handle the
8762        # drive letters (cygwin fileutils understands them), so leave them,
8763        # especially as we might pass files found there to a mingw objdump,
8764        # which wouldn't understand a cygwinified path. Ahh.
8765        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766      else
8767        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768      fi
8769      ;;
8770    pw32*)
8771      # pw32 DLLs use 'pw' prefix rather than 'lib'
8772      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773      ;;
8774    esac
8775    ;;
8776
8777  *)
8778    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779    ;;
8780  esac
8781  dynamic_linker='Win32 ld.exe'
8782  # FIXME: first we should search . and the directory the executable is in
8783  shlibpath_var=PATH
8784  ;;
8785
8786darwin* | rhapsody*)
8787  dynamic_linker="$host_os dyld"
8788  version_type=darwin
8789  need_lib_prefix=no
8790  need_version=no
8791  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792  soname_spec='${libname}${release}${major}$shared_ext'
8793  shlibpath_overrides_runpath=yes
8794  shlibpath_var=DYLD_LIBRARY_PATH
8795  shrext_cmds='.dylib'
8796  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797  if test "$GCC" = yes; then
8798    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"`
8799  else
8800    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801  fi
8802  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803  ;;
8804
8805dgux*)
8806  version_type=linux
8807  need_lib_prefix=no
8808  need_version=no
8809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810  soname_spec='${libname}${release}${shared_ext}$major'
8811  shlibpath_var=LD_LIBRARY_PATH
8812  ;;
8813
8814freebsd1.*)
8815  dynamic_linker=no
8816  ;;
8817
8818kfreebsd*-gnu)
8819  version_type=linux
8820  need_lib_prefix=no
8821  need_version=no
8822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823  soname_spec='${libname}${release}${shared_ext}$major'
8824  shlibpath_var=LD_LIBRARY_PATH
8825  shlibpath_overrides_runpath=no
8826  hardcode_into_libs=yes
8827  dynamic_linker='GNU ld.so'
8828  ;;
8829
8830freebsd* | dragonfly*)
8831  # DragonFly does not have aout.  When/if they implement a new
8832  # versioning mechanism, adjust this.
8833  if test -x /usr/bin/objformat; then
8834    objformat=`/usr/bin/objformat`
8835  else
8836    case $host_os in
8837    freebsd[123].*) objformat=aout ;;
8838    *) objformat=elf ;;
8839    esac
8840  fi
8841  version_type=freebsd-$objformat
8842  case $version_type in
8843    freebsd-elf*)
8844      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845      need_version=no
8846      need_lib_prefix=no
8847      ;;
8848    freebsd-*)
8849      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850      need_version=yes
8851      ;;
8852  esac
8853  shlibpath_var=LD_LIBRARY_PATH
8854  case $host_os in
8855  freebsd2.*)
8856    shlibpath_overrides_runpath=yes
8857    ;;
8858  freebsd3.[01]* | freebsdelf3.[01]*)
8859    shlibpath_overrides_runpath=yes
8860    hardcode_into_libs=yes
8861    ;;
8862  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864    shlibpath_overrides_runpath=no
8865    hardcode_into_libs=yes
8866    ;;
8867  freebsd*) # from 4.6 on
8868    shlibpath_overrides_runpath=yes
8869    hardcode_into_libs=yes
8870    ;;
8871  esac
8872  ;;
8873
8874gnu*)
8875  version_type=linux
8876  need_lib_prefix=no
8877  need_version=no
8878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879  soname_spec='${libname}${release}${shared_ext}$major'
8880  shlibpath_var=LD_LIBRARY_PATH
8881  hardcode_into_libs=yes
8882  ;;
8883
8884hpux9* | hpux10* | hpux11*)
8885  # Give a soname corresponding to the major version so that dld.sl refuses to
8886  # link against other versions.
8887  version_type=sunos
8888  need_lib_prefix=no
8889  need_version=no
8890  case $host_cpu in
8891  ia64*)
8892    shrext_cmds='.so'
8893    hardcode_into_libs=yes
8894    dynamic_linker="$host_os dld.so"
8895    shlibpath_var=LD_LIBRARY_PATH
8896    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898    soname_spec='${libname}${release}${shared_ext}$major'
8899    if test "X$HPUX_IA64_MODE" = X32; then
8900      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901    else
8902      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903    fi
8904    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8905    ;;
8906   hppa*64*)
8907     shrext_cmds='.sl'
8908     hardcode_into_libs=yes
8909     dynamic_linker="$host_os dld.sl"
8910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913     soname_spec='${libname}${release}${shared_ext}$major'
8914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916     ;;
8917   *)
8918    shrext_cmds='.sl'
8919    dynamic_linker="$host_os dld.sl"
8920    shlibpath_var=SHLIB_PATH
8921    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923    soname_spec='${libname}${release}${shared_ext}$major'
8924    ;;
8925  esac
8926  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927  postinstall_cmds='chmod 555 $lib'
8928  ;;
8929
8930interix3*)
8931  version_type=linux
8932  need_lib_prefix=no
8933  need_version=no
8934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935  soname_spec='${libname}${release}${shared_ext}$major'
8936  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937  shlibpath_var=LD_LIBRARY_PATH
8938  shlibpath_overrides_runpath=no
8939  hardcode_into_libs=yes
8940  ;;
8941
8942irix5* | irix6* | nonstopux*)
8943  case $host_os in
8944    nonstopux*) version_type=nonstopux ;;
8945    *)
8946	if test "$lt_cv_prog_gnu_ld" = yes; then
8947		version_type=linux
8948	else
8949		version_type=irix
8950	fi ;;
8951  esac
8952  need_lib_prefix=no
8953  need_version=no
8954  soname_spec='${libname}${release}${shared_ext}$major'
8955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956  case $host_os in
8957  irix5* | nonstopux*)
8958    libsuff= shlibsuff=
8959    ;;
8960  *)
8961    case $LD in # libtool.m4 will add one of these switches to LD
8962    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963      libsuff= shlibsuff= libmagic=32-bit;;
8964    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965      libsuff=32 shlibsuff=N32 libmagic=N32;;
8966    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968    *) libsuff= shlibsuff= libmagic=never-match;;
8969    esac
8970    ;;
8971  esac
8972  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973  shlibpath_overrides_runpath=no
8974  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976  hardcode_into_libs=yes
8977  ;;
8978
8979# No shared lib support for Linux oldld, aout, or coff.
8980linux*oldld* | linux*aout* | linux*coff*)
8981  dynamic_linker=no
8982  ;;
8983
8984# This must be Linux ELF.
8985linux*)
8986  version_type=linux
8987  need_lib_prefix=no
8988  need_version=no
8989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990  soname_spec='${libname}${release}${shared_ext}$major'
8991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992  shlibpath_var=LD_LIBRARY_PATH
8993  shlibpath_overrides_runpath=no
8994  # This implies no fast_install, which is unacceptable.
8995  # Some rework will be needed to allow for fast_install
8996  # before this can be enabled.
8997  hardcode_into_libs=yes
8998
8999  # Append ld.so.conf contents to the search path
9000  if test -f /etc/ld.so.conf; then
9001    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' ' '`
9002    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9003  fi
9004
9005  # We used to test for /lib/ld.so.1 and disable shared libraries on
9006  # powerpc, because MkLinux only supported shared libraries with the
9007  # GNU dynamic linker.  Since this was broken with cross compilers,
9008  # most powerpc-linux boxes support dynamic linking these days and
9009  # people can always --disable-shared, the test was removed, and we
9010  # assume the GNU/Linux dynamic linker is in use.
9011  dynamic_linker='GNU/Linux ld.so'
9012  ;;
9013
9014knetbsd*-gnu)
9015  version_type=linux
9016  need_lib_prefix=no
9017  need_version=no
9018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019  soname_spec='${libname}${release}${shared_ext}$major'
9020  shlibpath_var=LD_LIBRARY_PATH
9021  shlibpath_overrides_runpath=no
9022  hardcode_into_libs=yes
9023  dynamic_linker='GNU ld.so'
9024  ;;
9025
9026netbsd*)
9027  version_type=sunos
9028  need_lib_prefix=no
9029  need_version=no
9030  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033    dynamic_linker='NetBSD (a.out) ld.so'
9034  else
9035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036    soname_spec='${libname}${release}${shared_ext}$major'
9037    dynamic_linker='NetBSD ld.elf_so'
9038  fi
9039  shlibpath_var=LD_LIBRARY_PATH
9040  shlibpath_overrides_runpath=yes
9041  hardcode_into_libs=yes
9042  ;;
9043
9044newsos6)
9045  version_type=linux
9046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047  shlibpath_var=LD_LIBRARY_PATH
9048  shlibpath_overrides_runpath=yes
9049  ;;
9050
9051nto-qnx*)
9052  version_type=linux
9053  need_lib_prefix=no
9054  need_version=no
9055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056  soname_spec='${libname}${release}${shared_ext}$major'
9057  shlibpath_var=LD_LIBRARY_PATH
9058  shlibpath_overrides_runpath=yes
9059  ;;
9060
9061openbsd*)
9062  version_type=sunos
9063  sys_lib_dlsearch_path_spec="/usr/lib"
9064  need_lib_prefix=no
9065  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066  case $host_os in
9067    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068    *)                         need_version=no  ;;
9069  esac
9070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072  shlibpath_var=LD_LIBRARY_PATH
9073  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074    case $host_os in
9075      openbsd2.[89] | openbsd2.[89].*)
9076	shlibpath_overrides_runpath=no
9077	;;
9078      *)
9079	shlibpath_overrides_runpath=yes
9080	;;
9081      esac
9082  else
9083    shlibpath_overrides_runpath=yes
9084  fi
9085  ;;
9086
9087os2*)
9088  libname_spec='$name'
9089  shrext_cmds=".dll"
9090  need_lib_prefix=no
9091  library_names_spec='$libname${shared_ext} $libname.a'
9092  dynamic_linker='OS/2 ld.exe'
9093  shlibpath_var=LIBPATH
9094  ;;
9095
9096osf3* | osf4* | osf5*)
9097  version_type=osf
9098  need_lib_prefix=no
9099  need_version=no
9100  soname_spec='${libname}${release}${shared_ext}$major'
9101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102  shlibpath_var=LD_LIBRARY_PATH
9103  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105  ;;
9106
9107solaris*)
9108  version_type=linux
9109  need_lib_prefix=no
9110  need_version=no
9111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112  soname_spec='${libname}${release}${shared_ext}$major'
9113  shlibpath_var=LD_LIBRARY_PATH
9114  shlibpath_overrides_runpath=yes
9115  hardcode_into_libs=yes
9116  # ldd complains unless libraries are executable
9117  postinstall_cmds='chmod +x $lib'
9118  ;;
9119
9120sunos4*)
9121  version_type=sunos
9122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124  shlibpath_var=LD_LIBRARY_PATH
9125  shlibpath_overrides_runpath=yes
9126  if test "$with_gnu_ld" = yes; then
9127    need_lib_prefix=no
9128  fi
9129  need_version=yes
9130  ;;
9131
9132sysv4 | sysv4.3*)
9133  version_type=linux
9134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135  soname_spec='${libname}${release}${shared_ext}$major'
9136  shlibpath_var=LD_LIBRARY_PATH
9137  case $host_vendor in
9138    sni)
9139      shlibpath_overrides_runpath=no
9140      need_lib_prefix=no
9141      export_dynamic_flag_spec='${wl}-Blargedynsym'
9142      runpath_var=LD_RUN_PATH
9143      ;;
9144    siemens)
9145      need_lib_prefix=no
9146      ;;
9147    motorola)
9148      need_lib_prefix=no
9149      need_version=no
9150      shlibpath_overrides_runpath=no
9151      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9152      ;;
9153  esac
9154  ;;
9155
9156sysv4*MP*)
9157  if test -d /usr/nec ;then
9158    version_type=linux
9159    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160    soname_spec='$libname${shared_ext}.$major'
9161    shlibpath_var=LD_LIBRARY_PATH
9162  fi
9163  ;;
9164
9165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166  version_type=freebsd-elf
9167  need_lib_prefix=no
9168  need_version=no
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170  soname_spec='${libname}${release}${shared_ext}$major'
9171  shlibpath_var=LD_LIBRARY_PATH
9172  hardcode_into_libs=yes
9173  if test "$with_gnu_ld" = yes; then
9174    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175    shlibpath_overrides_runpath=no
9176  else
9177    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178    shlibpath_overrides_runpath=yes
9179    case $host_os in
9180      sco3.2v5*)
9181        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9182	;;
9183    esac
9184  fi
9185  sys_lib_dlsearch_path_spec='/usr/lib'
9186  ;;
9187
9188uts4*)
9189  version_type=linux
9190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191  soname_spec='${libname}${release}${shared_ext}$major'
9192  shlibpath_var=LD_LIBRARY_PATH
9193  ;;
9194
9195*)
9196  dynamic_linker=no
9197  ;;
9198esac
9199{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200echo "${ECHO_T}$dynamic_linker" >&6; }
9201test "$dynamic_linker" = no && can_build_shared=no
9202
9203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204if test "$GCC" = yes; then
9205  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9206fi
9207
9208
9209{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9211if test "${libltdl_cv_shlibext+set}" = set; then
9212  echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214
9215module=yes
9216eval libltdl_cv_shlibext=$shrext_cmds
9217
9218fi
9219{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9221if test -n "$libltdl_cv_shlibext"; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9225_ACEOF
9226
9227fi
9228
9229
9230{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9232if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  libltdl_cv_shlibpath_var="$shlibpath_var"
9236fi
9237{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9239if test -n "$libltdl_cv_shlibpath_var"; then
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9243_ACEOF
9244
9245fi
9246
9247
9248{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9249echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9250if test "${libltdl_cv_sys_search_path+set}" = set; then
9251  echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9254fi
9255{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9257if test -n "$libltdl_cv_sys_search_path"; then
9258  sys_search_path=
9259  for dir in $libltdl_cv_sys_search_path; do
9260    if test -z "$sys_search_path"; then
9261      sys_search_path="$dir"
9262    else
9263      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9264    fi
9265  done
9266
9267cat >>confdefs.h <<_ACEOF
9268#define LTDL_SYSSEARCHPATH "$sys_search_path"
9269_ACEOF
9270
9271fi
9272
9273{ echo "$as_me:$LINENO: checking for objdir" >&5
9274echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9275if test "${libltdl_cv_objdir+set}" = set; then
9276  echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278  libltdl_cv_objdir="$objdir"
9279  if test -n "$objdir"; then
9280    :
9281  else
9282    rm -f .libs 2>/dev/null
9283    mkdir .libs 2>/dev/null
9284    if test -d .libs; then
9285      libltdl_cv_objdir=.libs
9286    else
9287      # MS-DOS does not allow filenames that begin with a dot.
9288      libltdl_cv_objdir=_libs
9289    fi
9290  rmdir .libs 2>/dev/null
9291  fi
9292
9293fi
9294{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9296
9297cat >>confdefs.h <<_ACEOF
9298#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9299_ACEOF
9300
9301
9302
9303
9304
9305
9306# Check for command to grab the raw symbol name followed by C symbol from nm.
9307{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312
9313# These are sane defaults that work on at least a few old systems.
9314# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9315
9316# Character class describing NM global symbol codes.
9317symcode='[BCDEGRST]'
9318
9319# Regexp to match symbols that can be accessed directly from C.
9320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321
9322# Transform an extracted symbol line into a proper C declaration
9323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324
9325# Transform an extracted symbol line into symbol name and symbol address
9326lt_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'"
9327
9328# Define system-specific variables.
9329case $host_os in
9330aix*)
9331  symcode='[BCDT]'
9332  ;;
9333cygwin* | mingw* | pw32*)
9334  symcode='[ABCDGISTW]'
9335  ;;
9336hpux*) # Its linker distinguishes data from code symbols
9337  if test "$host_cpu" = ia64; then
9338    symcode='[ABCDEGRST]'
9339  fi
9340  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341  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'"
9342  ;;
9343linux*)
9344  if test "$host_cpu" = ia64; then
9345    symcode='[ABCDGIRSTW]'
9346    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347    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'"
9348  fi
9349  ;;
9350irix* | nonstopux*)
9351  symcode='[BCDEGRST]'
9352  ;;
9353osf*)
9354  symcode='[BCDEGQRST]'
9355  ;;
9356solaris*)
9357  symcode='[BDRT]'
9358  ;;
9359sco3.2v5*)
9360  symcode='[DT]'
9361  ;;
9362sysv4.2uw2*)
9363  symcode='[DT]'
9364  ;;
9365sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366  symcode='[ABDT]'
9367  ;;
9368sysv4)
9369  symcode='[DFNSTU]'
9370  ;;
9371esac
9372
9373# Handle CRLF in mingw tool chain
9374opt_cr=
9375case $build_os in
9376mingw*)
9377  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9378  ;;
9379esac
9380
9381# If we're using GNU nm, then use its standard symbol codes.
9382case `$NM -V 2>&1` in
9383*GNU* | *'with BFD'*)
9384  symcode='[ABCDGIRSTW]' ;;
9385esac
9386
9387# Try without a prefix undercore, then with it.
9388for ac_symprfx in "" "_"; do
9389
9390  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391  symxfrm="\\1 $ac_symprfx\\2 \\2"
9392
9393  # Write the raw and C identifiers.
9394  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9395
9396  # Check to see that the pipe works correctly.
9397  pipe_works=no
9398
9399  rm -f conftest*
9400  cat > conftest.$ac_ext <<EOF
9401#ifdef __cplusplus
9402extern "C" {
9403#endif
9404char nm_test_var;
9405void nm_test_func(){}
9406#ifdef __cplusplus
9407}
9408#endif
9409int main(){nm_test_var='a';nm_test_func();return(0);}
9410EOF
9411
9412  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413  (eval $ac_compile) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; then
9417    # Now try to grab the symbols.
9418    nlist=conftest.nm
9419    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421  ac_status=$?
9422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423  (exit $ac_status); } && test -s "$nlist"; then
9424      # Try sorting and uniquifying the output.
9425      if sort "$nlist" | uniq > "$nlist"T; then
9426	mv -f "$nlist"T "$nlist"
9427      else
9428	rm -f "$nlist"T
9429      fi
9430
9431      # Make sure that we snagged all the symbols we need.
9432      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434	  cat <<EOF > conftest.$ac_ext
9435#ifdef __cplusplus
9436extern "C" {
9437#endif
9438
9439EOF
9440	  # Now generate the symbol file.
9441	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442
9443	  cat <<EOF >> conftest.$ac_ext
9444#if defined (__STDC__) && __STDC__
9445# define lt_ptr_t void *
9446#else
9447# define lt_ptr_t char *
9448# define const
9449#endif
9450
9451/* The mapping between symbol names and symbols. */
9452const struct {
9453  const char *name;
9454  lt_ptr_t address;
9455}
9456lt_preloaded_symbols[] =
9457{
9458EOF
9459	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460	  cat <<\EOF >> conftest.$ac_ext
9461  {0, (lt_ptr_t) 0}
9462};
9463
9464#ifdef __cplusplus
9465}
9466#endif
9467EOF
9468	  # Now try linking the two files.
9469	  mv conftest.$ac_objext conftstm.$ac_objext
9470	  lt_save_LIBS="$LIBS"
9471	  lt_save_CFLAGS="$CFLAGS"
9472	  LIBS="conftstm.$ac_objext"
9473	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475  (eval $ac_link) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9479	    pipe_works=yes
9480	  fi
9481	  LIBS="$lt_save_LIBS"
9482	  CFLAGS="$lt_save_CFLAGS"
9483	else
9484	  echo "cannot find nm_test_func in $nlist" >&5
9485	fi
9486      else
9487	echo "cannot find nm_test_var in $nlist" >&5
9488      fi
9489    else
9490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9491    fi
9492  else
9493    echo "$progname: failed program was:" >&5
9494    cat conftest.$ac_ext >&5
9495  fi
9496  rm -f conftest* conftst*
9497
9498  # Do not use the global_symbol_pipe unless it works.
9499  if test "$pipe_works" = yes; then
9500    break
9501  else
9502    lt_cv_sys_global_symbol_pipe=
9503  fi
9504done
9505
9506fi
9507
9508if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509  lt_cv_sys_global_symbol_to_cdecl=
9510fi
9511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512  { echo "$as_me:$LINENO: result: failed" >&5
9513echo "${ECHO_T}failed" >&6; }
9514else
9515  { echo "$as_me:$LINENO: result: ok" >&5
9516echo "${ECHO_T}ok" >&6; }
9517fi
9518
9519
9520{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9522if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523  echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526    libltdl_cv_preloaded_symbols=yes
9527  else
9528    libltdl_cv_preloaded_symbols=no
9529  fi
9530
9531fi
9532{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9534if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9535
9536cat >>confdefs.h <<\_ACEOF
9537#define HAVE_PRELOADED_SYMBOLS 1
9538_ACEOF
9539
9540fi
9541
9542LIBADD_DL=
9543
9544ac_ext=c
9545ac_cpp='$CPP $CPPFLAGS'
9546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550
9551{ echo "$as_me:$LINENO: checking for shl_load" >&5
9552echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553if test "${ac_cv_func_shl_load+set}" = set; then
9554  echo $ECHO_N "(cached) $ECHO_C" >&6
9555else
9556  cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h.  */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
9561/* end confdefs.h.  */
9562/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9564#define shl_load innocuous_shl_load
9565
9566/* System header to define __stub macros and hopefully few prototypes,
9567    which can conflict with char shl_load (); below.
9568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569    <limits.h> exists even on freestanding compilers.  */
9570
9571#ifdef __STDC__
9572# include <limits.h>
9573#else
9574# include <assert.h>
9575#endif
9576
9577#undef shl_load
9578
9579/* Override any GCC internal prototype to avoid an error.
9580   Use char because int might match the return type of a GCC
9581   builtin and then its argument prototype would still apply.  */
9582#ifdef __cplusplus
9583extern "C"
9584#endif
9585char shl_load ();
9586/* The GNU C library defines this for functions which it implements
9587    to always fail with ENOSYS.  Some functions are actually named
9588    something starting with __ and the normal name is an alias.  */
9589#if defined __stub_shl_load || defined __stub___shl_load
9590choke me
9591#endif
9592
9593int
9594main ()
9595{
9596return shl_load ();
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (ac_try="$ac_link"
9603case "(($ac_try" in
9604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605  *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608  (eval "$ac_link") 2>conftest.er1
9609  ac_status=$?
9610  grep -v '^ *+' conftest.er1 >conftest.err
9611  rm -f conftest.er1
9612  cat conftest.err >&5
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); } &&
9615	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616  { (case "(($ac_try" in
9617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618  *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621  (eval "$ac_try") 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }; } &&
9625	 { ac_try='test -s conftest$ac_exeext'
9626  { (case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_try") 2>&5
9632  ac_status=$?
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); }; }; then
9635  ac_cv_func_shl_load=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640	ac_cv_func_shl_load=no
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext \
9644      conftest$ac_exeext conftest.$ac_ext
9645fi
9646{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9648if test $ac_cv_func_shl_load = yes; then
9649
9650cat >>confdefs.h <<\_ACEOF
9651#define HAVE_SHL_LOAD 1
9652_ACEOF
9653
9654else
9655  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9657if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658  echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660  ac_check_lib_save_LIBS=$LIBS
9661LIBS="-ldld  $LIBS"
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h.  */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h.  */
9668
9669/* Override any GCC internal prototype to avoid an error.
9670   Use char because int might match the return type of a GCC
9671   builtin and then its argument prototype would still apply.  */
9672#ifdef __cplusplus
9673extern "C"
9674#endif
9675char shl_load ();
9676int
9677main ()
9678{
9679return shl_load ();
9680  ;
9681  return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
9685if { (ac_try="$ac_link"
9686case "(($ac_try" in
9687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688  *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691  (eval "$ac_link") 2>conftest.er1
9692  ac_status=$?
9693  grep -v '^ *+' conftest.er1 >conftest.err
9694  rm -f conftest.er1
9695  cat conftest.err >&5
9696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697  (exit $ac_status); } &&
9698	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699  { (case "(($ac_try" in
9700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701  *) ac_try_echo=$ac_try;;
9702esac
9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704  (eval "$ac_try") 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); }; } &&
9708	 { ac_try='test -s conftest$ac_exeext'
9709  { (case "(($ac_try" in
9710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711  *) ac_try_echo=$ac_try;;
9712esac
9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714  (eval "$ac_try") 2>&5
9715  ac_status=$?
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); }; }; then
9718  ac_cv_lib_dld_shl_load=yes
9719else
9720  echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723	ac_cv_lib_dld_shl_load=no
9724fi
9725
9726rm -f core conftest.err conftest.$ac_objext \
9727      conftest$ac_exeext conftest.$ac_ext
9728LIBS=$ac_check_lib_save_LIBS
9729fi
9730{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9732if test $ac_cv_lib_dld_shl_load = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_SHL_LOAD 1
9736_ACEOF
9737
9738	LIBADD_DL="$LIBADD_DL -ldld"
9739else
9740  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9742if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743  echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745  ac_check_lib_save_LIBS=$LIBS
9746LIBS="-ldl  $LIBS"
9747cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h.  */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h.  */
9753
9754/* Override any GCC internal prototype to avoid an error.
9755   Use char because int might match the return type of a GCC
9756   builtin and then its argument prototype would still apply.  */
9757#ifdef __cplusplus
9758extern "C"
9759#endif
9760char dlopen ();
9761int
9762main ()
9763{
9764return dlopen ();
9765  ;
9766  return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
9770if { (ac_try="$ac_link"
9771case "(($ac_try" in
9772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773  *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776  (eval "$ac_link") 2>conftest.er1
9777  ac_status=$?
9778  grep -v '^ *+' conftest.er1 >conftest.err
9779  rm -f conftest.er1
9780  cat conftest.err >&5
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } &&
9783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784  { (case "(($ac_try" in
9785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786  *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789  (eval "$ac_try") 2>&5
9790  ac_status=$?
9791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); }; } &&
9793	 { ac_try='test -s conftest$ac_exeext'
9794  { (case "(($ac_try" in
9795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796  *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799  (eval "$ac_try") 2>&5
9800  ac_status=$?
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); }; }; then
9803  ac_cv_lib_dl_dlopen=yes
9804else
9805  echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808	ac_cv_lib_dl_dlopen=no
9809fi
9810
9811rm -f core conftest.err conftest.$ac_objext \
9812      conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
9815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817if test $ac_cv_lib_dl_dlopen = yes; then
9818
9819cat >>confdefs.h <<\_ACEOF
9820#define HAVE_LIBDL 1
9821_ACEOF
9822
9823	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824else
9825  cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h.  */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h.  */
9831#if HAVE_DLFCN_H
9832#  include <dlfcn.h>
9833#endif
9834
9835int
9836main ()
9837{
9838dlopen(0, 0);
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
9844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847  *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850  (eval "$ac_link") 2>conftest.er1
9851  ac_status=$?
9852  grep -v '^ *+' conftest.er1 >conftest.err
9853  rm -f conftest.er1
9854  cat conftest.err >&5
9855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856  (exit $ac_status); } &&
9857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858  { (case "(($ac_try" in
9859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860  *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863  (eval "$ac_try") 2>&5
9864  ac_status=$?
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); }; } &&
9867	 { ac_try='test -s conftest$ac_exeext'
9868  { (case "(($ac_try" in
9869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870  *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873  (eval "$ac_try") 2>&5
9874  ac_status=$?
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); }; }; then
9877
9878cat >>confdefs.h <<\_ACEOF
9879#define HAVE_LIBDL 1
9880_ACEOF
9881 libltdl_cv_func_dlopen="yes"
9882else
9883  echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9888if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889  echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891  ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lsvld  $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h.  */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h.  */
9899
9900/* Override any GCC internal prototype to avoid an error.
9901   Use char because int might match the return type of a GCC
9902   builtin and then its argument prototype would still apply.  */
9903#ifdef __cplusplus
9904extern "C"
9905#endif
9906char dlopen ();
9907int
9908main ()
9909{
9910return dlopen ();
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
9916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919  *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922  (eval "$ac_link") 2>conftest.er1
9923  ac_status=$?
9924  grep -v '^ *+' conftest.er1 >conftest.err
9925  rm -f conftest.er1
9926  cat conftest.err >&5
9927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928  (exit $ac_status); } &&
9929	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930  { (case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935  (eval "$ac_try") 2>&5
9936  ac_status=$?
9937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); }; } &&
9939	 { ac_try='test -s conftest$ac_exeext'
9940  { (case "(($ac_try" in
9941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942  *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945  (eval "$ac_try") 2>&5
9946  ac_status=$?
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); }; }; then
9949  ac_cv_lib_svld_dlopen=yes
9950else
9951  echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
9954	ac_cv_lib_svld_dlopen=no
9955fi
9956
9957rm -f core conftest.err conftest.$ac_objext \
9958      conftest$ac_exeext conftest.$ac_ext
9959LIBS=$ac_check_lib_save_LIBS
9960fi
9961{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9963if test $ac_cv_lib_svld_dlopen = yes; then
9964
9965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_LIBDL 1
9967_ACEOF
9968
9969	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970else
9971  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974  echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976  ac_check_lib_save_LIBS=$LIBS
9977LIBS="-ldld  $LIBS"
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h.  */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h.  */
9984
9985/* Override any GCC internal prototype to avoid an error.
9986   Use char because int might match the return type of a GCC
9987   builtin and then its argument prototype would still apply.  */
9988#ifdef __cplusplus
9989extern "C"
9990#endif
9991char dld_link ();
9992int
9993main ()
9994{
9995return dld_link ();
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
10001if { (ac_try="$ac_link"
10002case "(($ac_try" in
10003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004  *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007  (eval "$ac_link") 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } &&
10014	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015  { (case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020  (eval "$ac_try") 2>&5
10021  ac_status=$?
10022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); }; } &&
10024	 { ac_try='test -s conftest$ac_exeext'
10025  { (case "(($ac_try" in
10026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027  *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030  (eval "$ac_try") 2>&5
10031  ac_status=$?
10032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); }; }; then
10034  ac_cv_lib_dld_dld_link=yes
10035else
10036  echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039	ac_cv_lib_dld_dld_link=no
10040fi
10041
10042rm -f core conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10048if test $ac_cv_lib_dld_dld_link = yes; then
10049
10050cat >>confdefs.h <<\_ACEOF
10051#define HAVE_DLD 1
10052_ACEOF
10053
10054	 	LIBADD_DL="$LIBADD_DL -ldld"
10055else
10056  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10058if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059  echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061  cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h.  */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h.  */
10067/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10069#define _dyld_func_lookup innocuous__dyld_func_lookup
10070
10071/* System header to define __stub macros and hopefully few prototypes,
10072    which can conflict with char _dyld_func_lookup (); below.
10073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074    <limits.h> exists even on freestanding compilers.  */
10075
10076#ifdef __STDC__
10077# include <limits.h>
10078#else
10079# include <assert.h>
10080#endif
10081
10082#undef _dyld_func_lookup
10083
10084/* Override any GCC internal prototype to avoid an error.
10085   Use char because int might match the return type of a GCC
10086   builtin and then its argument prototype would still apply.  */
10087#ifdef __cplusplus
10088extern "C"
10089#endif
10090char _dyld_func_lookup ();
10091/* The GNU C library defines this for functions which it implements
10092    to always fail with ENOSYS.  Some functions are actually named
10093    something starting with __ and the normal name is an alias.  */
10094#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10095choke me
10096#endif
10097
10098int
10099main ()
10100{
10101return _dyld_func_lookup ();
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110  *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113  (eval "$ac_link") 2>conftest.er1
10114  ac_status=$?
10115  grep -v '^ *+' conftest.er1 >conftest.err
10116  rm -f conftest.er1
10117  cat conftest.err >&5
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); } &&
10120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121  { (case "(($ac_try" in
10122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123  *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126  (eval "$ac_try") 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130	 { ac_try='test -s conftest$ac_exeext'
10131  { (case "(($ac_try" in
10132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133  *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136  (eval "$ac_try") 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); }; }; then
10140  ac_cv_func__dyld_func_lookup=yes
10141else
10142  echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145	ac_cv_func__dyld_func_lookup=no
10146fi
10147
10148rm -f core conftest.err conftest.$ac_objext \
10149      conftest$ac_exeext conftest.$ac_ext
10150fi
10151{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10153if test $ac_cv_func__dyld_func_lookup = yes; then
10154
10155cat >>confdefs.h <<\_ACEOF
10156#define HAVE_DYLD 1
10157_ACEOF
10158
10159fi
10160
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext \
10171      conftest$ac_exeext conftest.$ac_ext
10172
10173fi
10174
10175
10176fi
10177
10178
10179fi
10180
10181
10182if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183then
10184  lt_save_LIBS="$LIBS"
10185  LIBS="$LIBS $LIBADD_DL"
10186
10187for ac_func in dlerror
10188do
10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193  echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195  cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h.  */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h.  */
10201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10203#define $ac_func innocuous_$ac_func
10204
10205/* System header to define __stub macros and hopefully few prototypes,
10206    which can conflict with char $ac_func (); below.
10207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208    <limits.h> exists even on freestanding compilers.  */
10209
10210#ifdef __STDC__
10211# include <limits.h>
10212#else
10213# include <assert.h>
10214#endif
10215
10216#undef $ac_func
10217
10218/* Override any GCC internal prototype to avoid an error.
10219   Use char because int might match the return type of a GCC
10220   builtin and then its argument prototype would still apply.  */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224char $ac_func ();
10225/* The GNU C library defines this for functions which it implements
10226    to always fail with ENOSYS.  Some functions are actually named
10227    something starting with __ and the normal name is an alias.  */
10228#if defined __stub_$ac_func || defined __stub___$ac_func
10229choke me
10230#endif
10231
10232int
10233main ()
10234{
10235return $ac_func ();
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (ac_try="$ac_link"
10242case "(($ac_try" in
10243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244  *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247  (eval "$ac_link") 2>conftest.er1
10248  ac_status=$?
10249  grep -v '^ *+' conftest.er1 >conftest.err
10250  rm -f conftest.er1
10251  cat conftest.err >&5
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); } &&
10254	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255  { (case "(($ac_try" in
10256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257  *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260  (eval "$ac_try") 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; } &&
10264	 { ac_try='test -s conftest$ac_exeext'
10265  { (case "(($ac_try" in
10266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267  *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270  (eval "$ac_try") 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); }; }; then
10274  eval "$as_ac_var=yes"
10275else
10276  echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279	eval "$as_ac_var=no"
10280fi
10281
10282rm -f core conftest.err conftest.$ac_objext \
10283      conftest$ac_exeext conftest.$ac_ext
10284fi
10285ac_res=`eval echo '${'$as_ac_var'}'`
10286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10287echo "${ECHO_T}$ac_res" >&6; }
10288if test `eval echo '${'$as_ac_var'}'` = yes; then
10289  cat >>confdefs.h <<_ACEOF
10290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291_ACEOF
10292
10293fi
10294done
10295
10296  LIBS="$lt_save_LIBS"
10297fi
10298ac_ext=c
10299ac_cpp='$CPP $CPPFLAGS'
10300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
10305
10306{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10308if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  ac_cv_sys_symbol_underscore=no
10312  cat > conftest.$ac_ext <<EOF
10313void nm_test_func(){}
10314int main(){nm_test_func;return 0;}
10315EOF
10316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317  (eval $ac_compile) 2>&5
10318  ac_status=$?
10319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320  (exit $ac_status); }; then
10321    # Now try to grab the symbols.
10322    ac_nlist=conftest.nm
10323    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } && test -s "$ac_nlist"; then
10328      # See whether the symbols have a leading underscore.
10329      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330        ac_cv_sys_symbol_underscore=yes
10331      else
10332        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10333	  :
10334        else
10335	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10336        fi
10337      fi
10338    else
10339      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10340    fi
10341  else
10342    echo "configure: failed program was:" >&5
10343    cat conftest.c >&5
10344  fi
10345  rm -rf conftest*
10346
10347fi
10348{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10350
10351
10352if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353  if test x"$libltdl_cv_func_dlopen" = xyes ||
10354     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10355	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10357if test "${libltdl_cv_need_uscore+set}" = set; then
10358  echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360  libltdl_cv_need_uscore=unknown
10361          save_LIBS="$LIBS"
10362          LIBS="$LIBS $LIBADD_DL"
10363	  if test "$cross_compiling" = yes; then :
10364  libltdl_cv_need_uscore=cross
10365else
10366  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367  lt_status=$lt_dlunknown
10368  cat > conftest.$ac_ext <<EOF
10369#line 10369 "configure"
10370#include "confdefs.h"
10371
10372#if HAVE_DLFCN_H
10373#include <dlfcn.h>
10374#endif
10375
10376#include <stdio.h>
10377
10378#ifdef RTLD_GLOBAL
10379#  define LT_DLGLOBAL		RTLD_GLOBAL
10380#else
10381#  ifdef DL_GLOBAL
10382#    define LT_DLGLOBAL		DL_GLOBAL
10383#  else
10384#    define LT_DLGLOBAL		0
10385#  endif
10386#endif
10387
10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389   find out it does not work in some platform. */
10390#ifndef LT_DLLAZY_OR_NOW
10391#  ifdef RTLD_LAZY
10392#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10393#  else
10394#    ifdef DL_LAZY
10395#      define LT_DLLAZY_OR_NOW		DL_LAZY
10396#    else
10397#      ifdef RTLD_NOW
10398#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10399#      else
10400#        ifdef DL_NOW
10401#          define LT_DLLAZY_OR_NOW	DL_NOW
10402#        else
10403#          define LT_DLLAZY_OR_NOW	0
10404#        endif
10405#      endif
10406#    endif
10407#  endif
10408#endif
10409
10410#ifdef __cplusplus
10411extern "C" void exit (int);
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418  int status = $lt_dlunknown;
10419
10420  if (self)
10421    {
10422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10423      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424      /* dlclose (self); */
10425    }
10426  else
10427    puts (dlerror ());
10428
10429    exit (status);
10430}
10431EOF
10432  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433  (eval $ac_link) 2>&5
10434  ac_status=$?
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437    (./conftest; exit; ) >&5 2>/dev/null
10438    lt_status=$?
10439    case x$lt_status in
10440      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10442      x$lt_dlunknown|x*)  ;;
10443    esac
10444  else :
10445    # compilation failed
10446
10447  fi
10448fi
10449rm -fr conftest*
10450
10451	  LIBS="$save_LIBS"
10452
10453fi
10454{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10456  fi
10457fi
10458
10459if test x"$libltdl_cv_need_uscore" = xyes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define NEED_USCORE 1
10463_ACEOF
10464
10465fi
10466
10467
10468{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10470if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471  echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473  # PORTME does your system automatically load deplibs for dlopen?
10474  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475  # For now, we just catch OSes we know something about -- in the
10476  # future, we'll try test this programmatically.
10477  libltdl_cv_sys_dlopen_deplibs=unknown
10478  case "$host_os" in
10479  aix3*|aix4.1.*|aix4.2.*)
10480    # Unknown whether this is true for these versions of AIX, but
10481    # we want this `case' here to explicitly catch those versions.
10482    libltdl_cv_sys_dlopen_deplibs=unknown
10483    ;;
10484  aix[45]*)
10485    libltdl_cv_sys_dlopen_deplibs=yes
10486    ;;
10487  darwin*)
10488    # Assuming the user has installed a libdl from somewhere, this is true
10489    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490    libltdl_cv_sys_dlopen_deplibs=yes
10491    ;;
10492  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493    # GNU and its variants, using gnu ld.so (Glibc)
10494    libltdl_cv_sys_dlopen_deplibs=yes
10495    ;;
10496  hpux10*|hpux11*)
10497    libltdl_cv_sys_dlopen_deplibs=yes
10498    ;;
10499  interix*)
10500    libltdl_cv_sys_dlopen_deplibs=yes
10501    ;;
10502  irix[12345]*|irix6.[01]*)
10503    # Catch all versions of IRIX before 6.2, and indicate that we don't
10504    # know how it worked for any of those versions.
10505    libltdl_cv_sys_dlopen_deplibs=unknown
10506    ;;
10507  irix*)
10508    # The case above catches anything before 6.2, and it's known that
10509    # at 6.2 and later dlopen does load deplibs.
10510    libltdl_cv_sys_dlopen_deplibs=yes
10511    ;;
10512  netbsd*)
10513    libltdl_cv_sys_dlopen_deplibs=yes
10514    ;;
10515  openbsd*)
10516    libltdl_cv_sys_dlopen_deplibs=yes
10517    ;;
10518  osf[1234]*)
10519    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520    # it did *not* use an RPATH in a shared library to find objects the
10521    # library depends on, so we explicitly say `no'.
10522    libltdl_cv_sys_dlopen_deplibs=no
10523    ;;
10524  osf5.0|osf5.0a|osf5.1)
10525    # dlopen *does* load deplibs and with the right loader patch applied
10526    # it even uses RPATH in a shared library to search for shared objects
10527    # that the library depends on, but there's no easy way to know if that
10528    # patch is installed.  Since this is the case, all we can really
10529    # say is unknown -- it depends on the patch being installed.  If
10530    # it is, this changes to `yes'.  Without it, it would be `no'.
10531    libltdl_cv_sys_dlopen_deplibs=unknown
10532    ;;
10533  osf*)
10534    # the two cases above should catch all versions of osf <= 5.1.  Read
10535    # the comments above for what we know about them.
10536    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537    # is used to find them so we can finally say `yes'.
10538    libltdl_cv_sys_dlopen_deplibs=yes
10539    ;;
10540  solaris*)
10541    libltdl_cv_sys_dlopen_deplibs=yes
10542    ;;
10543  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544    libltdl_cv_sys_dlopen_deplibs=yes
10545    ;;
10546  esac
10547
10548fi
10549{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10551if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10552
10553cat >>confdefs.h <<\_ACEOF
10554#define LTDL_DLOPEN_DEPLIBS 1
10555_ACEOF
10556
10557fi
10558
10559
10560for ac_header in argz.h
10561do
10562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567  echo $ECHO_N "(cached) $ECHO_C" >&6
10568fi
10569ac_res=`eval echo '${'$as_ac_Header'}'`
10570	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10571echo "${ECHO_T}$ac_res" >&6; }
10572else
10573  # Is the header compilable?
10574{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582$ac_includes_default
10583#include <$ac_header>
10584_ACEOF
10585rm -f conftest.$ac_objext
10586if { (ac_try="$ac_compile"
10587case "(($ac_try" in
10588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589  *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592  (eval "$ac_compile") 2>conftest.er1
10593  ac_status=$?
10594  grep -v '^ *+' conftest.er1 >conftest.err
10595  rm -f conftest.er1
10596  cat conftest.err >&5
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); } &&
10599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600  { (case "(($ac_try" in
10601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602  *) ac_try_echo=$ac_try;;
10603esac
10604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605  (eval "$ac_try") 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; } &&
10609	 { ac_try='test -s conftest.$ac_objext'
10610  { (case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615  (eval "$ac_try") 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; }; then
10619  ac_header_compiler=yes
10620else
10621  echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624	ac_header_compiler=no
10625fi
10626
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631# Is the header present?
10632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h.  */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h.  */
10640#include <$ac_header>
10641_ACEOF
10642if { (ac_try="$ac_cpp conftest.$ac_ext"
10643case "(($ac_try" in
10644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645  *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649  ac_status=$?
10650  grep -v '^ *+' conftest.er1 >conftest.err
10651  rm -f conftest.er1
10652  cat conftest.err >&5
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); } >/dev/null; then
10655  if test -s conftest.err; then
10656    ac_cpp_err=$ac_c_preproc_warn_flag
10657    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658  else
10659    ac_cpp_err=
10660  fi
10661else
10662  ac_cpp_err=yes
10663fi
10664if test -z "$ac_cpp_err"; then
10665  ac_header_preproc=yes
10666else
10667  echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670  ac_header_preproc=no
10671fi
10672
10673rm -f conftest.err conftest.$ac_ext
10674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677# So?  What about this header?
10678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679  yes:no: )
10680    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684    ac_header_preproc=yes
10685    ;;
10686  no:yes:* )
10687    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10690echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10691    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10694echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10695    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699    ( cat <<\_ASBOX
10700## ------------------------------ ##
10701## Report this to bugs@yourdomain ##
10702## ------------------------------ ##
10703_ASBOX
10704     ) | sed "s/^/$as_me: WARNING:     /" >&2
10705    ;;
10706esac
10707{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710  echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712  eval "$as_ac_Header=\$ac_header_preproc"
10713fi
10714ac_res=`eval echo '${'$as_ac_Header'}'`
10715	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10716echo "${ECHO_T}$ac_res" >&6; }
10717
10718fi
10719if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720  cat >>confdefs.h <<_ACEOF
10721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724fi
10725
10726done
10727
10728
10729{ echo "$as_me:$LINENO: checking for error_t" >&5
10730echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10731if test "${ac_cv_type_error_t+set}" = set; then
10732  echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734  cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h.  */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h.  */
10740#if HAVE_ARGZ_H
10741#  include <argz.h>
10742#endif
10743
10744typedef error_t ac__type_new_;
10745int
10746main ()
10747{
10748if ((ac__type_new_ *) 0)
10749  return 0;
10750if (sizeof (ac__type_new_))
10751  return 0;
10752  ;
10753  return 0;
10754}
10755_ACEOF
10756rm -f conftest.$ac_objext
10757if { (ac_try="$ac_compile"
10758case "(($ac_try" in
10759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760  *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763  (eval "$ac_compile") 2>conftest.er1
10764  ac_status=$?
10765  grep -v '^ *+' conftest.er1 >conftest.err
10766  rm -f conftest.er1
10767  cat conftest.err >&5
10768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); } &&
10770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771  { (case "(($ac_try" in
10772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773  *) ac_try_echo=$ac_try;;
10774esac
10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776  (eval "$ac_try") 2>&5
10777  ac_status=$?
10778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779  (exit $ac_status); }; } &&
10780	 { ac_try='test -s conftest.$ac_objext'
10781  { (case "(($ac_try" in
10782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783  *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786  (eval "$ac_try") 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); }; }; then
10790  ac_cv_type_error_t=yes
10791else
10792  echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795	ac_cv_type_error_t=no
10796fi
10797
10798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799fi
10800{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10802if test $ac_cv_type_error_t = yes; then
10803
10804cat >>confdefs.h <<_ACEOF
10805#define HAVE_ERROR_T 1
10806_ACEOF
10807
10808
10809else
10810
10811cat >>confdefs.h <<\_ACEOF
10812#define error_t int
10813_ACEOF
10814
10815fi
10816
10817
10818
10819
10820
10821
10822
10823for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10824do
10825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10829  echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831  cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h.  */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h.  */
10837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839#define $ac_func innocuous_$ac_func
10840
10841/* System header to define __stub macros and hopefully few prototypes,
10842    which can conflict with char $ac_func (); below.
10843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844    <limits.h> exists even on freestanding compilers.  */
10845
10846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef $ac_func
10853
10854/* Override any GCC internal prototype to avoid an error.
10855   Use char because int might match the return type of a GCC
10856   builtin and then its argument prototype would still apply.  */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char $ac_func ();
10861/* The GNU C library defines this for functions which it implements
10862    to always fail with ENOSYS.  Some functions are actually named
10863    something starting with __ and the normal name is an alias.  */
10864#if defined __stub_$ac_func || defined __stub___$ac_func
10865choke me
10866#endif
10867
10868int
10869main ()
10870{
10871return $ac_func ();
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
10877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880  *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883  (eval "$ac_link") 2>conftest.er1
10884  ac_status=$?
10885  grep -v '^ *+' conftest.er1 >conftest.err
10886  rm -f conftest.er1
10887  cat conftest.err >&5
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); } &&
10890	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891  { (case "(($ac_try" in
10892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893  *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896  (eval "$ac_try") 2>&5
10897  ac_status=$?
10898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899  (exit $ac_status); }; } &&
10900	 { ac_try='test -s conftest$ac_exeext'
10901  { (case "(($ac_try" in
10902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903  *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906  (eval "$ac_try") 2>&5
10907  ac_status=$?
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); }; }; then
10910  eval "$as_ac_var=yes"
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915	eval "$as_ac_var=no"
10916fi
10917
10918rm -f core conftest.err conftest.$ac_objext \
10919      conftest$ac_exeext conftest.$ac_ext
10920fi
10921ac_res=`eval echo '${'$as_ac_var'}'`
10922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10923echo "${ECHO_T}$ac_res" >&6; }
10924if test `eval echo '${'$as_ac_var'}'` = yes; then
10925  cat >>confdefs.h <<_ACEOF
10926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927_ACEOF
10928
10929fi
10930done
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10960		  stdio.h unistd.h
10961do
10962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967  echo $ECHO_N "(cached) $ECHO_C" >&6
10968fi
10969ac_res=`eval echo '${'$as_ac_Header'}'`
10970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10971echo "${ECHO_T}$ac_res" >&6; }
10972else
10973  # Is the header compilable?
10974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10976cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h.  */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h.  */
10982$ac_includes_default
10983#include <$ac_header>
10984_ACEOF
10985rm -f conftest.$ac_objext
10986if { (ac_try="$ac_compile"
10987case "(($ac_try" in
10988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989  *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992  (eval "$ac_compile") 2>conftest.er1
10993  ac_status=$?
10994  grep -v '^ *+' conftest.er1 >conftest.err
10995  rm -f conftest.er1
10996  cat conftest.err >&5
10997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998  (exit $ac_status); } &&
10999	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000  { (case "(($ac_try" in
11001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002  *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005  (eval "$ac_try") 2>&5
11006  ac_status=$?
11007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008  (exit $ac_status); }; } &&
11009	 { ac_try='test -s conftest.$ac_objext'
11010  { (case "(($ac_try" in
11011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012  *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015  (eval "$ac_try") 2>&5
11016  ac_status=$?
11017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018  (exit $ac_status); }; }; then
11019  ac_header_compiler=yes
11020else
11021  echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
11024	ac_header_compiler=no
11025fi
11026
11027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029echo "${ECHO_T}$ac_header_compiler" >&6; }
11030
11031# Is the header present?
11032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h.  */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h.  */
11040#include <$ac_header>
11041_ACEOF
11042if { (ac_try="$ac_cpp conftest.$ac_ext"
11043case "(($ac_try" in
11044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045  *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11049  ac_status=$?
11050  grep -v '^ *+' conftest.er1 >conftest.err
11051  rm -f conftest.er1
11052  cat conftest.err >&5
11053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054  (exit $ac_status); } >/dev/null; then
11055  if test -s conftest.err; then
11056    ac_cpp_err=$ac_c_preproc_warn_flag
11057    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058  else
11059    ac_cpp_err=
11060  fi
11061else
11062  ac_cpp_err=yes
11063fi
11064if test -z "$ac_cpp_err"; then
11065  ac_header_preproc=yes
11066else
11067  echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
11070  ac_header_preproc=no
11071fi
11072
11073rm -f conftest.err conftest.$ac_ext
11074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075echo "${ECHO_T}$ac_header_preproc" >&6; }
11076
11077# So?  What about this header?
11078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079  yes:no: )
11080    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084    ac_header_preproc=yes
11085    ;;
11086  no:yes:* )
11087    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11090echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11091    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11094echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099    ( cat <<\_ASBOX
11100## ------------------------------ ##
11101## Report this to bugs@yourdomain ##
11102## ------------------------------ ##
11103_ASBOX
11104     ) | sed "s/^/$as_me: WARNING:     /" >&2
11105    ;;
11106esac
11107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110  echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112  eval "$as_ac_Header=\$ac_header_preproc"
11113fi
11114ac_res=`eval echo '${'$as_ac_Header'}'`
11115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11116echo "${ECHO_T}$ac_res" >&6; }
11117
11118fi
11119if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120  cat >>confdefs.h <<_ACEOF
11121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122_ACEOF
11123
11124fi
11125
11126done
11127
11128
11129
11130
11131
11132for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11133do
11134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139  echo $ECHO_N "(cached) $ECHO_C" >&6
11140fi
11141ac_res=`eval echo '${'$as_ac_Header'}'`
11142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11143echo "${ECHO_T}$ac_res" >&6; }
11144else
11145  # Is the header compilable?
11146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h.  */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h.  */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (ac_try="$ac_compile"
11159case "(($ac_try" in
11160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161  *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164  (eval "$ac_compile") 2>conftest.er1
11165  ac_status=$?
11166  grep -v '^ *+' conftest.er1 >conftest.err
11167  rm -f conftest.er1
11168  cat conftest.err >&5
11169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170  (exit $ac_status); } &&
11171	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172  { (case "(($ac_try" in
11173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174  *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177  (eval "$ac_try") 2>&5
11178  ac_status=$?
11179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180  (exit $ac_status); }; } &&
11181	 { ac_try='test -s conftest.$ac_objext'
11182  { (case "(($ac_try" in
11183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184  *) ac_try_echo=$ac_try;;
11185esac
11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187  (eval "$ac_try") 2>&5
11188  ac_status=$?
11189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190  (exit $ac_status); }; }; then
11191  ac_header_compiler=yes
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196	ac_header_compiler=no
11197fi
11198
11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201echo "${ECHO_T}$ac_header_compiler" >&6; }
11202
11203# Is the header present?
11204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h.  */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h.  */
11212#include <$ac_header>
11213_ACEOF
11214if { (ac_try="$ac_cpp conftest.$ac_ext"
11215case "(($ac_try" in
11216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217  *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221  ac_status=$?
11222  grep -v '^ *+' conftest.er1 >conftest.err
11223  rm -f conftest.er1
11224  cat conftest.err >&5
11225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226  (exit $ac_status); } >/dev/null; then
11227  if test -s conftest.err; then
11228    ac_cpp_err=$ac_c_preproc_warn_flag
11229    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230  else
11231    ac_cpp_err=
11232  fi
11233else
11234  ac_cpp_err=yes
11235fi
11236if test -z "$ac_cpp_err"; then
11237  ac_header_preproc=yes
11238else
11239  echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242  ac_header_preproc=no
11243fi
11244
11245rm -f conftest.err conftest.$ac_ext
11246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247echo "${ECHO_T}$ac_header_preproc" >&6; }
11248
11249# So?  What about this header?
11250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251  yes:no: )
11252    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256    ac_header_preproc=yes
11257    ;;
11258  no:yes:* )
11259    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11262echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11263    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11266echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11267    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271    ( cat <<\_ASBOX
11272## ------------------------------ ##
11273## Report this to bugs@yourdomain ##
11274## ------------------------------ ##
11275_ASBOX
11276     ) | sed "s/^/$as_me: WARNING:     /" >&2
11277    ;;
11278esac
11279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282  echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284  eval "$as_ac_Header=\$ac_header_preproc"
11285fi
11286ac_res=`eval echo '${'$as_ac_Header'}'`
11287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11288echo "${ECHO_T}$ac_res" >&6; }
11289
11290fi
11291if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292  cat >>confdefs.h <<_ACEOF
11293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294_ACEOF
11295
11296fi
11297
11298done
11299
11300
11301
11302for ac_header in string.h strings.h
11303do
11304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309  echo $ECHO_N "(cached) $ECHO_C" >&6
11310fi
11311ac_res=`eval echo '${'$as_ac_Header'}'`
11312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11313echo "${ECHO_T}$ac_res" >&6; }
11314else
11315  # Is the header compilable?
11316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h.  */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h.  */
11324$ac_includes_default
11325#include <$ac_header>
11326_ACEOF
11327rm -f conftest.$ac_objext
11328if { (ac_try="$ac_compile"
11329case "(($ac_try" in
11330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331  *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334  (eval "$ac_compile") 2>conftest.er1
11335  ac_status=$?
11336  grep -v '^ *+' conftest.er1 >conftest.err
11337  rm -f conftest.er1
11338  cat conftest.err >&5
11339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340  (exit $ac_status); } &&
11341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342  { (case "(($ac_try" in
11343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344  *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347  (eval "$ac_try") 2>&5
11348  ac_status=$?
11349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); }; } &&
11351	 { ac_try='test -s conftest.$ac_objext'
11352  { (case "(($ac_try" in
11353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354  *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357  (eval "$ac_try") 2>&5
11358  ac_status=$?
11359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360  (exit $ac_status); }; }; then
11361  ac_header_compiler=yes
11362else
11363  echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366	ac_header_compiler=no
11367fi
11368
11369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371echo "${ECHO_T}$ac_header_compiler" >&6; }
11372
11373# Is the header present?
11374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h.  */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h.  */
11382#include <$ac_header>
11383_ACEOF
11384if { (ac_try="$ac_cpp conftest.$ac_ext"
11385case "(($ac_try" in
11386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387  *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391  ac_status=$?
11392  grep -v '^ *+' conftest.er1 >conftest.err
11393  rm -f conftest.er1
11394  cat conftest.err >&5
11395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396  (exit $ac_status); } >/dev/null; then
11397  if test -s conftest.err; then
11398    ac_cpp_err=$ac_c_preproc_warn_flag
11399    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400  else
11401    ac_cpp_err=
11402  fi
11403else
11404  ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407  ac_header_preproc=yes
11408else
11409  echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412  ac_header_preproc=no
11413fi
11414
11415rm -f conftest.err conftest.$ac_ext
11416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419# So?  What about this header?
11420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421  yes:no: )
11422    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426    ac_header_preproc=yes
11427    ;;
11428  no:yes:* )
11429    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11432echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11433    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11436echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441    ( cat <<\_ASBOX
11442## ------------------------------ ##
11443## Report this to bugs@yourdomain ##
11444## ------------------------------ ##
11445_ASBOX
11446     ) | sed "s/^/$as_me: WARNING:     /" >&2
11447    ;;
11448esac
11449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452  echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454  eval "$as_ac_Header=\$ac_header_preproc"
11455fi
11456ac_res=`eval echo '${'$as_ac_Header'}'`
11457	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11458echo "${ECHO_T}$ac_res" >&6; }
11459
11460fi
11461if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462  cat >>confdefs.h <<_ACEOF
11463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464_ACEOF
11465 break
11466fi
11467
11468done
11469
11470
11471
11472
11473for ac_func in strchr index
11474do
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479  echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481  cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h.  */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h.  */
11487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11489#define $ac_func innocuous_$ac_func
11490
11491/* System header to define __stub macros and hopefully few prototypes,
11492    which can conflict with char $ac_func (); below.
11493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494    <limits.h> exists even on freestanding compilers.  */
11495
11496#ifdef __STDC__
11497# include <limits.h>
11498#else
11499# include <assert.h>
11500#endif
11501
11502#undef $ac_func
11503
11504/* Override any GCC internal prototype to avoid an error.
11505   Use char because int might match the return type of a GCC
11506   builtin and then its argument prototype would still apply.  */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char $ac_func ();
11511/* The GNU C library defines this for functions which it implements
11512    to always fail with ENOSYS.  Some functions are actually named
11513    something starting with __ and the normal name is an alias.  */
11514#if defined __stub_$ac_func || defined __stub___$ac_func
11515choke me
11516#endif
11517
11518int
11519main ()
11520{
11521return $ac_func ();
11522  ;
11523  return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext conftest$ac_exeext
11527if { (ac_try="$ac_link"
11528case "(($ac_try" in
11529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530  *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533  (eval "$ac_link") 2>conftest.er1
11534  ac_status=$?
11535  grep -v '^ *+' conftest.er1 >conftest.err
11536  rm -f conftest.er1
11537  cat conftest.err >&5
11538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); } &&
11540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541  { (case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546  (eval "$ac_try") 2>&5
11547  ac_status=$?
11548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549  (exit $ac_status); }; } &&
11550	 { ac_try='test -s conftest$ac_exeext'
11551  { (case "(($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_try") 2>&5
11557  ac_status=$?
11558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559  (exit $ac_status); }; }; then
11560  eval "$as_ac_var=yes"
11561else
11562  echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565	eval "$as_ac_var=no"
11566fi
11567
11568rm -f core conftest.err conftest.$ac_objext \
11569      conftest$ac_exeext conftest.$ac_ext
11570fi
11571ac_res=`eval echo '${'$as_ac_var'}'`
11572	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11573echo "${ECHO_T}$ac_res" >&6; }
11574if test `eval echo '${'$as_ac_var'}'` = yes; then
11575  cat >>confdefs.h <<_ACEOF
11576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577_ACEOF
11578 break
11579fi
11580done
11581
11582
11583
11584for ac_func in strrchr rindex
11585do
11586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590  echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592  cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h.  */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h.  */
11598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600#define $ac_func innocuous_$ac_func
11601
11602/* System header to define __stub macros and hopefully few prototypes,
11603    which can conflict with char $ac_func (); below.
11604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605    <limits.h> exists even on freestanding compilers.  */
11606
11607#ifdef __STDC__
11608# include <limits.h>
11609#else
11610# include <assert.h>
11611#endif
11612
11613#undef $ac_func
11614
11615/* Override any GCC internal prototype to avoid an error.
11616   Use char because int might match the return type of a GCC
11617   builtin and then its argument prototype would still apply.  */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char $ac_func ();
11622/* The GNU C library defines this for functions which it implements
11623    to always fail with ENOSYS.  Some functions are actually named
11624    something starting with __ and the normal name is an alias.  */
11625#if defined __stub_$ac_func || defined __stub___$ac_func
11626choke me
11627#endif
11628
11629int
11630main ()
11631{
11632return $ac_func ();
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (ac_try="$ac_link"
11639case "(($ac_try" in
11640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641  *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644  (eval "$ac_link") 2>conftest.er1
11645  ac_status=$?
11646  grep -v '^ *+' conftest.er1 >conftest.err
11647  rm -f conftest.er1
11648  cat conftest.err >&5
11649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650  (exit $ac_status); } &&
11651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652  { (case "(($ac_try" in
11653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654  *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657  (eval "$ac_try") 2>&5
11658  ac_status=$?
11659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660  (exit $ac_status); }; } &&
11661	 { ac_try='test -s conftest$ac_exeext'
11662  { (case "(($ac_try" in
11663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664  *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667  (eval "$ac_try") 2>&5
11668  ac_status=$?
11669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670  (exit $ac_status); }; }; then
11671  eval "$as_ac_var=yes"
11672else
11673  echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676	eval "$as_ac_var=no"
11677fi
11678
11679rm -f core conftest.err conftest.$ac_objext \
11680      conftest$ac_exeext conftest.$ac_ext
11681fi
11682ac_res=`eval echo '${'$as_ac_var'}'`
11683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
11685if test `eval echo '${'$as_ac_var'}'` = yes; then
11686  cat >>confdefs.h <<_ACEOF
11687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688_ACEOF
11689 break
11690fi
11691done
11692
11693
11694
11695for ac_func in memcpy bcopy
11696do
11697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701  echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703  cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h.  */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h.  */
11709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11711#define $ac_func innocuous_$ac_func
11712
11713/* System header to define __stub macros and hopefully few prototypes,
11714    which can conflict with char $ac_func (); below.
11715    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716    <limits.h> exists even on freestanding compilers.  */
11717
11718#ifdef __STDC__
11719# include <limits.h>
11720#else
11721# include <assert.h>
11722#endif
11723
11724#undef $ac_func
11725
11726/* Override any GCC internal prototype to avoid an error.
11727   Use char because int might match the return type of a GCC
11728   builtin and then its argument prototype would still apply.  */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char $ac_func ();
11733/* The GNU C library defines this for functions which it implements
11734    to always fail with ENOSYS.  Some functions are actually named
11735    something starting with __ and the normal name is an alias.  */
11736#if defined __stub_$ac_func || defined __stub___$ac_func
11737choke me
11738#endif
11739
11740int
11741main ()
11742{
11743return $ac_func ();
11744  ;
11745  return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest$ac_exeext
11749if { (ac_try="$ac_link"
11750case "(($ac_try" in
11751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752  *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755  (eval "$ac_link") 2>conftest.er1
11756  ac_status=$?
11757  grep -v '^ *+' conftest.er1 >conftest.err
11758  rm -f conftest.er1
11759  cat conftest.err >&5
11760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761  (exit $ac_status); } &&
11762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763  { (case "(($ac_try" in
11764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765  *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768  (eval "$ac_try") 2>&5
11769  ac_status=$?
11770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771  (exit $ac_status); }; } &&
11772	 { ac_try='test -s conftest$ac_exeext'
11773  { (case "(($ac_try" in
11774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775  *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778  (eval "$ac_try") 2>&5
11779  ac_status=$?
11780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781  (exit $ac_status); }; }; then
11782  eval "$as_ac_var=yes"
11783else
11784  echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787	eval "$as_ac_var=no"
11788fi
11789
11790rm -f core conftest.err conftest.$ac_objext \
11791      conftest$ac_exeext conftest.$ac_ext
11792fi
11793ac_res=`eval echo '${'$as_ac_var'}'`
11794	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11795echo "${ECHO_T}$ac_res" >&6; }
11796if test `eval echo '${'$as_ac_var'}'` = yes; then
11797  cat >>confdefs.h <<_ACEOF
11798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799_ACEOF
11800 break
11801fi
11802done
11803
11804
11805
11806for ac_func in memmove strcmp
11807do
11808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11812  echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814  cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h.  */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h.  */
11820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11822#define $ac_func innocuous_$ac_func
11823
11824/* System header to define __stub macros and hopefully few prototypes,
11825    which can conflict with char $ac_func (); below.
11826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827    <limits.h> exists even on freestanding compilers.  */
11828
11829#ifdef __STDC__
11830# include <limits.h>
11831#else
11832# include <assert.h>
11833#endif
11834
11835#undef $ac_func
11836
11837/* Override any GCC internal prototype to avoid an error.
11838   Use char because int might match the return type of a GCC
11839   builtin and then its argument prototype would still apply.  */
11840#ifdef __cplusplus
11841extern "C"
11842#endif
11843char $ac_func ();
11844/* The GNU C library defines this for functions which it implements
11845    to always fail with ENOSYS.  Some functions are actually named
11846    something starting with __ and the normal name is an alias.  */
11847#if defined __stub_$ac_func || defined __stub___$ac_func
11848choke me
11849#endif
11850
11851int
11852main ()
11853{
11854return $ac_func ();
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (ac_try="$ac_link"
11861case "(($ac_try" in
11862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863  *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866  (eval "$ac_link") 2>conftest.er1
11867  ac_status=$?
11868  grep -v '^ *+' conftest.er1 >conftest.err
11869  rm -f conftest.er1
11870  cat conftest.err >&5
11871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872  (exit $ac_status); } &&
11873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874  { (case "(($ac_try" in
11875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876  *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879  (eval "$ac_try") 2>&5
11880  ac_status=$?
11881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882  (exit $ac_status); }; } &&
11883	 { ac_try='test -s conftest$ac_exeext'
11884  { (case "(($ac_try" in
11885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886  *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889  (eval "$ac_try") 2>&5
11890  ac_status=$?
11891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892  (exit $ac_status); }; }; then
11893  eval "$as_ac_var=yes"
11894else
11895  echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
11898	eval "$as_ac_var=no"
11899fi
11900
11901rm -f core conftest.err conftest.$ac_objext \
11902      conftest$ac_exeext conftest.$ac_ext
11903fi
11904ac_res=`eval echo '${'$as_ac_var'}'`
11905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
11907if test `eval echo '${'$as_ac_var'}'` = yes; then
11908  cat >>confdefs.h <<_ACEOF
11909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910_ACEOF
11911
11912fi
11913done
11914
11915
11916
11917
11918for ac_func in closedir opendir readdir
11919do
11920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11924  echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926  cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h.  */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h.  */
11932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11934#define $ac_func innocuous_$ac_func
11935
11936/* System header to define __stub macros and hopefully few prototypes,
11937    which can conflict with char $ac_func (); below.
11938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939    <limits.h> exists even on freestanding compilers.  */
11940
11941#ifdef __STDC__
11942# include <limits.h>
11943#else
11944# include <assert.h>
11945#endif
11946
11947#undef $ac_func
11948
11949/* Override any GCC internal prototype to avoid an error.
11950   Use char because int might match the return type of a GCC
11951   builtin and then its argument prototype would still apply.  */
11952#ifdef __cplusplus
11953extern "C"
11954#endif
11955char $ac_func ();
11956/* The GNU C library defines this for functions which it implements
11957    to always fail with ENOSYS.  Some functions are actually named
11958    something starting with __ and the normal name is an alias.  */
11959#if defined __stub_$ac_func || defined __stub___$ac_func
11960choke me
11961#endif
11962
11963int
11964main ()
11965{
11966return $ac_func ();
11967  ;
11968  return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext conftest$ac_exeext
11972if { (ac_try="$ac_link"
11973case "(($ac_try" in
11974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975  *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978  (eval "$ac_link") 2>conftest.er1
11979  ac_status=$?
11980  grep -v '^ *+' conftest.er1 >conftest.err
11981  rm -f conftest.er1
11982  cat conftest.err >&5
11983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984  (exit $ac_status); } &&
11985	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986  { (case "(($ac_try" in
11987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988  *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991  (eval "$ac_try") 2>&5
11992  ac_status=$?
11993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994  (exit $ac_status); }; } &&
11995	 { ac_try='test -s conftest$ac_exeext'
11996  { (case "(($ac_try" in
11997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998  *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001  (eval "$ac_try") 2>&5
12002  ac_status=$?
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); }; }; then
12005  eval "$as_ac_var=yes"
12006else
12007  echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010	eval "$as_ac_var=no"
12011fi
12012
12013rm -f core conftest.err conftest.$ac_objext \
12014      conftest$ac_exeext conftest.$ac_ext
12015fi
12016ac_res=`eval echo '${'$as_ac_var'}'`
12017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12018echo "${ECHO_T}$ac_res" >&6; }
12019if test `eval echo '${'$as_ac_var'}'` = yes; then
12020  cat >>confdefs.h <<_ACEOF
12021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12022_ACEOF
12023
12024fi
12025done
12026
12027
12028
12029{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12030echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12031
12032ICC=no
12033IXX=no
12034case $CC in
12035  icc*|icpc*)
12036    ICC=yes
12037    IXX=yes
12038    ;;
12039   *)
12040    ;;
12041esac
12042
12043if test "$GCC" != "yes" && test "$ICC" != "yes"
12044then
12045  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12046echo "$as_me: error: gcc|icc required but not found" >&2;}
12047   { (exit 1); exit 1; }; }
12048fi
12049
12050if test "$GXX" != "yes" && test "$IXX" != "yes"
12051then
12052  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12053echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12054   { (exit 1); exit 1; }; }
12055fi
12056
12057if test "$GCC" = "yes"
12058then
12059  cat >conftest.$ac_ext <<_ACEOF
12060#if !defined(__GNUC__) || __GNUC__ < 3
12061#error Unsupported GCC version
12062#endif
12063
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  :
12100else
12101  echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12105echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12106   { (exit 1); exit 1; }; }
12107fi
12108
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110fi
12111
12112if test -z "$llvm_cv_gnu_make_command"
12113then
12114  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12115echo "$as_me: error: GNU Make required but not found" >&2;}
12116   { (exit 1); exit 1; }; }
12117fi
12118
12119{ echo "$as_me:$LINENO: result: ok" >&5
12120echo "${ECHO_T}ok" >&6; }
12121
12122{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12123echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12124NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12125
12126NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12127
12128COVERED_SWITCH_DEFAULT=`$CXX -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12129
12130{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12131echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12132
12133
12134
12135{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12136echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12137if test "${ac_cv_lib_m_sin+set}" = set; then
12138  echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140  ac_check_lib_save_LIBS=$LIBS
12141LIBS="-lm  $LIBS"
12142cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h.  */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h.  */
12148
12149/* Override any GCC internal prototype to avoid an error.
12150   Use char because int might match the return type of a GCC
12151   builtin and then its argument prototype would still apply.  */
12152#ifdef __cplusplus
12153extern "C"
12154#endif
12155char sin ();
12156int
12157main ()
12158{
12159return sin ();
12160  ;
12161  return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
12165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168  *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171  (eval "$ac_link") 2>conftest.er1
12172  ac_status=$?
12173  grep -v '^ *+' conftest.er1 >conftest.err
12174  rm -f conftest.er1
12175  cat conftest.err >&5
12176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177  (exit $ac_status); } &&
12178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179  { (case "(($ac_try" in
12180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181  *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184  (eval "$ac_try") 2>&5
12185  ac_status=$?
12186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187  (exit $ac_status); }; } &&
12188	 { ac_try='test -s conftest$ac_exeext'
12189  { (case "(($ac_try" in
12190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191  *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194  (eval "$ac_try") 2>&5
12195  ac_status=$?
12196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197  (exit $ac_status); }; }; then
12198  ac_cv_lib_m_sin=yes
12199else
12200  echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203	ac_cv_lib_m_sin=no
12204fi
12205
12206rm -f core conftest.err conftest.$ac_objext \
12207      conftest$ac_exeext conftest.$ac_ext
12208LIBS=$ac_check_lib_save_LIBS
12209fi
12210{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12211echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12212if test $ac_cv_lib_m_sin = yes; then
12213  cat >>confdefs.h <<_ACEOF
12214#define HAVE_LIBM 1
12215_ACEOF
12216
12217  LIBS="-lm $LIBS"
12218
12219fi
12220
12221if test "$llvm_cv_os_type" = "MingW" ; then
12222
12223{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12224echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12225if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12226  echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228  ac_check_lib_save_LIBS=$LIBS
12229LIBS="-limagehlp  $LIBS"
12230cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h.  */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h.  */
12236
12237
12238int
12239main ()
12240{
12241return main ();
12242  ;
12243  return 0;
12244}
12245_ACEOF
12246rm -f conftest.$ac_objext conftest$ac_exeext
12247if { (ac_try="$ac_link"
12248case "(($ac_try" in
12249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250  *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253  (eval "$ac_link") 2>conftest.er1
12254  ac_status=$?
12255  grep -v '^ *+' conftest.er1 >conftest.err
12256  rm -f conftest.er1
12257  cat conftest.err >&5
12258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259  (exit $ac_status); } &&
12260	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261  { (case "(($ac_try" in
12262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263  *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266  (eval "$ac_try") 2>&5
12267  ac_status=$?
12268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269  (exit $ac_status); }; } &&
12270	 { ac_try='test -s conftest$ac_exeext'
12271  { (case "(($ac_try" in
12272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273  *) ac_try_echo=$ac_try;;
12274esac
12275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276  (eval "$ac_try") 2>&5
12277  ac_status=$?
12278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279  (exit $ac_status); }; }; then
12280  ac_cv_lib_imagehlp_main=yes
12281else
12282  echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285	ac_cv_lib_imagehlp_main=no
12286fi
12287
12288rm -f core conftest.err conftest.$ac_objext \
12289      conftest$ac_exeext conftest.$ac_ext
12290LIBS=$ac_check_lib_save_LIBS
12291fi
12292{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12293echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12294if test $ac_cv_lib_imagehlp_main = yes; then
12295  cat >>confdefs.h <<_ACEOF
12296#define HAVE_LIBIMAGEHLP 1
12297_ACEOF
12298
12299  LIBS="-limagehlp $LIBS"
12300
12301fi
12302
12303
12304{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12305echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12306if test "${ac_cv_lib_psapi_main+set}" = set; then
12307  echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309  ac_check_lib_save_LIBS=$LIBS
12310LIBS="-lpsapi  $LIBS"
12311cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h.  */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h.  */
12317
12318
12319int
12320main ()
12321{
12322return main ();
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext conftest$ac_exeext
12328if { (ac_try="$ac_link"
12329case "(($ac_try" in
12330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331  *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334  (eval "$ac_link") 2>conftest.er1
12335  ac_status=$?
12336  grep -v '^ *+' conftest.er1 >conftest.err
12337  rm -f conftest.er1
12338  cat conftest.err >&5
12339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340  (exit $ac_status); } &&
12341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342  { (case "(($ac_try" in
12343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344  *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347  (eval "$ac_try") 2>&5
12348  ac_status=$?
12349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350  (exit $ac_status); }; } &&
12351	 { ac_try='test -s conftest$ac_exeext'
12352  { (case "(($ac_try" in
12353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354  *) ac_try_echo=$ac_try;;
12355esac
12356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357  (eval "$ac_try") 2>&5
12358  ac_status=$?
12359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360  (exit $ac_status); }; }; then
12361  ac_cv_lib_psapi_main=yes
12362else
12363  echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366	ac_cv_lib_psapi_main=no
12367fi
12368
12369rm -f core conftest.err conftest.$ac_objext \
12370      conftest$ac_exeext conftest.$ac_ext
12371LIBS=$ac_check_lib_save_LIBS
12372fi
12373{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12374echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12375if test $ac_cv_lib_psapi_main = yes; then
12376  cat >>confdefs.h <<_ACEOF
12377#define HAVE_LIBPSAPI 1
12378_ACEOF
12379
12380  LIBS="-lpsapi $LIBS"
12381
12382fi
12383
12384fi
12385
12386{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12387echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12388if test "${ac_cv_search_dlopen+set}" = set; then
12389  echo $ECHO_N "(cached) $ECHO_C" >&6
12390else
12391  ac_func_search_save_LIBS=$LIBS
12392cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h.  */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h.  */
12398
12399/* Override any GCC internal prototype to avoid an error.
12400   Use char because int might match the return type of a GCC
12401   builtin and then its argument prototype would still apply.  */
12402#ifdef __cplusplus
12403extern "C"
12404#endif
12405char dlopen ();
12406int
12407main ()
12408{
12409return dlopen ();
12410  ;
12411  return 0;
12412}
12413_ACEOF
12414for ac_lib in '' dl; do
12415  if test -z "$ac_lib"; then
12416    ac_res="none required"
12417  else
12418    ac_res=-l$ac_lib
12419    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12420  fi
12421  rm -f conftest.$ac_objext conftest$ac_exeext
12422if { (ac_try="$ac_link"
12423case "(($ac_try" in
12424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425  *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428  (eval "$ac_link") 2>conftest.er1
12429  ac_status=$?
12430  grep -v '^ *+' conftest.er1 >conftest.err
12431  rm -f conftest.er1
12432  cat conftest.err >&5
12433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434  (exit $ac_status); } &&
12435	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436  { (case "(($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_try") 2>&5
12442  ac_status=$?
12443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444  (exit $ac_status); }; } &&
12445	 { ac_try='test -s conftest$ac_exeext'
12446  { (case "(($ac_try" in
12447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448  *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451  (eval "$ac_try") 2>&5
12452  ac_status=$?
12453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454  (exit $ac_status); }; }; then
12455  ac_cv_search_dlopen=$ac_res
12456else
12457  echo "$as_me: failed program was:" >&5
12458sed 's/^/| /' conftest.$ac_ext >&5
12459
12460
12461fi
12462
12463rm -f core conftest.err conftest.$ac_objext \
12464      conftest$ac_exeext
12465  if test "${ac_cv_search_dlopen+set}" = set; then
12466  break
12467fi
12468done
12469if test "${ac_cv_search_dlopen+set}" = set; then
12470  :
12471else
12472  ac_cv_search_dlopen=no
12473fi
12474rm conftest.$ac_ext
12475LIBS=$ac_func_search_save_LIBS
12476fi
12477{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12478echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12479ac_res=$ac_cv_search_dlopen
12480if test "$ac_res" != no; then
12481  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12482
12483cat >>confdefs.h <<\_ACEOF
12484#define HAVE_DLOPEN 1
12485_ACEOF
12486
12487else
12488  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12489echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12490fi
12491
12492
12493if test "$llvm_cv_enable_libffi" = "yes" ; then
12494  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12495echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12496if test "${ac_cv_search_ffi_call+set}" = set; then
12497  echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499  ac_func_search_save_LIBS=$LIBS
12500cat >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
12507/* Override any GCC internal prototype to avoid an error.
12508   Use char because int might match the return type of a GCC
12509   builtin and then its argument prototype would still apply.  */
12510#ifdef __cplusplus
12511extern "C"
12512#endif
12513char ffi_call ();
12514int
12515main ()
12516{
12517return ffi_call ();
12518  ;
12519  return 0;
12520}
12521_ACEOF
12522for ac_lib in '' ffi; do
12523  if test -z "$ac_lib"; then
12524    ac_res="none required"
12525  else
12526    ac_res=-l$ac_lib
12527    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12528  fi
12529  rm -f conftest.$ac_objext conftest$ac_exeext
12530if { (ac_try="$ac_link"
12531case "(($ac_try" in
12532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533  *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536  (eval "$ac_link") 2>conftest.er1
12537  ac_status=$?
12538  grep -v '^ *+' conftest.er1 >conftest.err
12539  rm -f conftest.er1
12540  cat conftest.err >&5
12541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542  (exit $ac_status); } &&
12543	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544  { (case "(($ac_try" in
12545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546  *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549  (eval "$ac_try") 2>&5
12550  ac_status=$?
12551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); }; } &&
12553	 { ac_try='test -s conftest$ac_exeext'
12554  { (case "(($ac_try" in
12555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556  *) ac_try_echo=$ac_try;;
12557esac
12558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559  (eval "$ac_try") 2>&5
12560  ac_status=$?
12561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562  (exit $ac_status); }; }; then
12563  ac_cv_search_ffi_call=$ac_res
12564else
12565  echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568
12569fi
12570
12571rm -f core conftest.err conftest.$ac_objext \
12572      conftest$ac_exeext
12573  if test "${ac_cv_search_ffi_call+set}" = set; then
12574  break
12575fi
12576done
12577if test "${ac_cv_search_ffi_call+set}" = set; then
12578  :
12579else
12580  ac_cv_search_ffi_call=no
12581fi
12582rm conftest.$ac_ext
12583LIBS=$ac_func_search_save_LIBS
12584fi
12585{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12586echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12587ac_res=$ac_cv_search_ffi_call
12588if test "$ac_res" != no; then
12589  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12590
12591cat >>confdefs.h <<\_ACEOF
12592#define HAVE_FFI_CALL 1
12593_ACEOF
12594
12595else
12596  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12597echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12598   { (exit 1); exit 1; }; }
12599fi
12600
12601fi
12602
12603{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12604echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12605if test "${ac_cv_search_mallinfo+set}" = set; then
12606  echo $ECHO_N "(cached) $ECHO_C" >&6
12607else
12608  ac_func_search_save_LIBS=$LIBS
12609cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h.  */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h.  */
12615
12616/* Override any GCC internal prototype to avoid an error.
12617   Use char because int might match the return type of a GCC
12618   builtin and then its argument prototype would still apply.  */
12619#ifdef __cplusplus
12620extern "C"
12621#endif
12622char mallinfo ();
12623int
12624main ()
12625{
12626return mallinfo ();
12627  ;
12628  return 0;
12629}
12630_ACEOF
12631for ac_lib in '' malloc; do
12632  if test -z "$ac_lib"; then
12633    ac_res="none required"
12634  else
12635    ac_res=-l$ac_lib
12636    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12637  fi
12638  rm -f conftest.$ac_objext conftest$ac_exeext
12639if { (ac_try="$ac_link"
12640case "(($ac_try" in
12641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642  *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645  (eval "$ac_link") 2>conftest.er1
12646  ac_status=$?
12647  grep -v '^ *+' conftest.er1 >conftest.err
12648  rm -f conftest.er1
12649  cat conftest.err >&5
12650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651  (exit $ac_status); } &&
12652	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653  { (case "(($ac_try" in
12654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655  *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658  (eval "$ac_try") 2>&5
12659  ac_status=$?
12660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661  (exit $ac_status); }; } &&
12662	 { ac_try='test -s conftest$ac_exeext'
12663  { (case "(($ac_try" in
12664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665  *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668  (eval "$ac_try") 2>&5
12669  ac_status=$?
12670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671  (exit $ac_status); }; }; then
12672  ac_cv_search_mallinfo=$ac_res
12673else
12674  echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677
12678fi
12679
12680rm -f core conftest.err conftest.$ac_objext \
12681      conftest$ac_exeext
12682  if test "${ac_cv_search_mallinfo+set}" = set; then
12683  break
12684fi
12685done
12686if test "${ac_cv_search_mallinfo+set}" = set; then
12687  :
12688else
12689  ac_cv_search_mallinfo=no
12690fi
12691rm conftest.$ac_ext
12692LIBS=$ac_func_search_save_LIBS
12693fi
12694{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12695echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12696ac_res=$ac_cv_search_mallinfo
12697if test "$ac_res" != no; then
12698  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12699
12700cat >>confdefs.h <<\_ACEOF
12701#define HAVE_MALLINFO 1
12702_ACEOF
12703
12704fi
12705
12706
12707if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12708
12709{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12710echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12711if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12712  echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714  ac_check_lib_save_LIBS=$LIBS
12715LIBS="-lpthread  $LIBS"
12716cat >conftest.$ac_ext <<_ACEOF
12717/* confdefs.h.  */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h.  */
12722
12723/* Override any GCC internal prototype to avoid an error.
12724   Use char because int might match the return type of a GCC
12725   builtin and then its argument prototype would still apply.  */
12726#ifdef __cplusplus
12727extern "C"
12728#endif
12729char pthread_mutex_init ();
12730int
12731main ()
12732{
12733return pthread_mutex_init ();
12734  ;
12735  return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext conftest$ac_exeext
12739if { (ac_try="$ac_link"
12740case "(($ac_try" in
12741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742  *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745  (eval "$ac_link") 2>conftest.er1
12746  ac_status=$?
12747  grep -v '^ *+' conftest.er1 >conftest.err
12748  rm -f conftest.er1
12749  cat conftest.err >&5
12750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751  (exit $ac_status); } &&
12752	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753  { (case "(($ac_try" in
12754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755  *) ac_try_echo=$ac_try;;
12756esac
12757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758  (eval "$ac_try") 2>&5
12759  ac_status=$?
12760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761  (exit $ac_status); }; } &&
12762	 { ac_try='test -s conftest$ac_exeext'
12763  { (case "(($ac_try" in
12764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765  *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768  (eval "$ac_try") 2>&5
12769  ac_status=$?
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); }; }; then
12772  ac_cv_lib_pthread_pthread_mutex_init=yes
12773else
12774  echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777	ac_cv_lib_pthread_pthread_mutex_init=no
12778fi
12779
12780rm -f core conftest.err conftest.$ac_objext \
12781      conftest$ac_exeext conftest.$ac_ext
12782LIBS=$ac_check_lib_save_LIBS
12783fi
12784{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12785echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12786if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12787  cat >>confdefs.h <<_ACEOF
12788#define HAVE_LIBPTHREAD 1
12789_ACEOF
12790
12791  LIBS="-lpthread $LIBS"
12792
12793fi
12794
12795  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12796echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12797if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12798  echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800  ac_func_search_save_LIBS=$LIBS
12801cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h.  */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h.  */
12807
12808/* Override any GCC internal prototype to avoid an error.
12809   Use char because int might match the return type of a GCC
12810   builtin and then its argument prototype would still apply.  */
12811#ifdef __cplusplus
12812extern "C"
12813#endif
12814char pthread_mutex_lock ();
12815int
12816main ()
12817{
12818return pthread_mutex_lock ();
12819  ;
12820  return 0;
12821}
12822_ACEOF
12823for ac_lib in '' pthread; do
12824  if test -z "$ac_lib"; then
12825    ac_res="none required"
12826  else
12827    ac_res=-l$ac_lib
12828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12829  fi
12830  rm -f conftest.$ac_objext conftest$ac_exeext
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834  *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837  (eval "$ac_link") 2>conftest.er1
12838  ac_status=$?
12839  grep -v '^ *+' conftest.er1 >conftest.err
12840  rm -f conftest.er1
12841  cat conftest.err >&5
12842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843  (exit $ac_status); } &&
12844	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845  { (case "(($ac_try" in
12846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847  *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850  (eval "$ac_try") 2>&5
12851  ac_status=$?
12852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853  (exit $ac_status); }; } &&
12854	 { ac_try='test -s conftest$ac_exeext'
12855  { (case "(($ac_try" in
12856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857  *) ac_try_echo=$ac_try;;
12858esac
12859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860  (eval "$ac_try") 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }; }; then
12864  ac_cv_search_pthread_mutex_lock=$ac_res
12865else
12866  echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869
12870fi
12871
12872rm -f core conftest.err conftest.$ac_objext \
12873      conftest$ac_exeext
12874  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12875  break
12876fi
12877done
12878if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12879  :
12880else
12881  ac_cv_search_pthread_mutex_lock=no
12882fi
12883rm conftest.$ac_ext
12884LIBS=$ac_func_search_save_LIBS
12885fi
12886{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12887echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12888ac_res=$ac_cv_search_pthread_mutex_lock
12889if test "$ac_res" != no; then
12890  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12891
12892cat >>confdefs.h <<\_ACEOF
12893#define HAVE_PTHREAD_MUTEX_LOCK 1
12894_ACEOF
12895
12896fi
12897
12898  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12899echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12900if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12901  echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903  ac_func_search_save_LIBS=$LIBS
12904cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h.  */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h.  */
12910
12911/* Override any GCC internal prototype to avoid an error.
12912   Use char because int might match the return type of a GCC
12913   builtin and then its argument prototype would still apply.  */
12914#ifdef __cplusplus
12915extern "C"
12916#endif
12917char pthread_rwlock_init ();
12918int
12919main ()
12920{
12921return pthread_rwlock_init ();
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926for ac_lib in '' pthread; do
12927  if test -z "$ac_lib"; then
12928    ac_res="none required"
12929  else
12930    ac_res=-l$ac_lib
12931    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12932  fi
12933  rm -f conftest.$ac_objext conftest$ac_exeext
12934if { (ac_try="$ac_link"
12935case "(($ac_try" in
12936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937  *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940  (eval "$ac_link") 2>conftest.er1
12941  ac_status=$?
12942  grep -v '^ *+' conftest.er1 >conftest.err
12943  rm -f conftest.er1
12944  cat conftest.err >&5
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); } &&
12947	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948  { (case "(($ac_try" in
12949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950  *) ac_try_echo=$ac_try;;
12951esac
12952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953  (eval "$ac_try") 2>&5
12954  ac_status=$?
12955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956  (exit $ac_status); }; } &&
12957	 { ac_try='test -s conftest$ac_exeext'
12958  { (case "(($ac_try" in
12959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960  *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963  (eval "$ac_try") 2>&5
12964  ac_status=$?
12965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966  (exit $ac_status); }; }; then
12967  ac_cv_search_pthread_rwlock_init=$ac_res
12968else
12969  echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972
12973fi
12974
12975rm -f core conftest.err conftest.$ac_objext \
12976      conftest$ac_exeext
12977  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12978  break
12979fi
12980done
12981if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12982  :
12983else
12984  ac_cv_search_pthread_rwlock_init=no
12985fi
12986rm conftest.$ac_ext
12987LIBS=$ac_func_search_save_LIBS
12988fi
12989{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12990echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12991ac_res=$ac_cv_search_pthread_rwlock_init
12992if test "$ac_res" != no; then
12993  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12994
12995cat >>confdefs.h <<\_ACEOF
12996#define HAVE_PTHREAD_RWLOCK_INIT 1
12997_ACEOF
12998
12999fi
13000
13001  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13002echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13003if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13004  echo $ECHO_N "(cached) $ECHO_C" >&6
13005else
13006  ac_func_search_save_LIBS=$LIBS
13007cat >conftest.$ac_ext <<_ACEOF
13008/* confdefs.h.  */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h.  */
13013
13014/* Override any GCC internal prototype to avoid an error.
13015   Use char because int might match the return type of a GCC
13016   builtin and then its argument prototype would still apply.  */
13017#ifdef __cplusplus
13018extern "C"
13019#endif
13020char pthread_getspecific ();
13021int
13022main ()
13023{
13024return pthread_getspecific ();
13025  ;
13026  return 0;
13027}
13028_ACEOF
13029for ac_lib in '' pthread; do
13030  if test -z "$ac_lib"; then
13031    ac_res="none required"
13032  else
13033    ac_res=-l$ac_lib
13034    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13035  fi
13036  rm -f conftest.$ac_objext conftest$ac_exeext
13037if { (ac_try="$ac_link"
13038case "(($ac_try" in
13039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040  *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043  (eval "$ac_link") 2>conftest.er1
13044  ac_status=$?
13045  grep -v '^ *+' conftest.er1 >conftest.err
13046  rm -f conftest.er1
13047  cat conftest.err >&5
13048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049  (exit $ac_status); } &&
13050	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051  { (case "(($ac_try" in
13052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053  *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056  (eval "$ac_try") 2>&5
13057  ac_status=$?
13058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059  (exit $ac_status); }; } &&
13060	 { ac_try='test -s conftest$ac_exeext'
13061  { (case "(($ac_try" in
13062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063  *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066  (eval "$ac_try") 2>&5
13067  ac_status=$?
13068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069  (exit $ac_status); }; }; then
13070  ac_cv_search_pthread_getspecific=$ac_res
13071else
13072  echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075
13076fi
13077
13078rm -f core conftest.err conftest.$ac_objext \
13079      conftest$ac_exeext
13080  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13081  break
13082fi
13083done
13084if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13085  :
13086else
13087  ac_cv_search_pthread_getspecific=no
13088fi
13089rm conftest.$ac_ext
13090LIBS=$ac_func_search_save_LIBS
13091fi
13092{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13093echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13094ac_res=$ac_cv_search_pthread_getspecific
13095if test "$ac_res" != no; then
13096  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13097
13098cat >>confdefs.h <<\_ACEOF
13099#define HAVE_PTHREAD_GETSPECIFIC 1
13100_ACEOF
13101
13102fi
13103
13104fi
13105
13106
13107# Check whether --with-udis86 was given.
13108if test "${with_udis86+set}" = set; then
13109  withval=$with_udis86;
13110      USE_UDIS86=1
13111
13112      case "$withval" in
13113        /usr/lib|yes) ;;
13114        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13115      esac
13116
13117{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13118echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13119if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13120  echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122  ac_check_lib_save_LIBS=$LIBS
13123LIBS="-ludis86  $LIBS"
13124cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h.  */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h.  */
13130
13131/* Override any GCC internal prototype to avoid an error.
13132   Use char because int might match the return type of a GCC
13133   builtin and then its argument prototype would still apply.  */
13134#ifdef __cplusplus
13135extern "C"
13136#endif
13137char ud_init ();
13138int
13139main ()
13140{
13141return ud_init ();
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext conftest$ac_exeext
13147if { (ac_try="$ac_link"
13148case "(($ac_try" in
13149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150  *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153  (eval "$ac_link") 2>conftest.er1
13154  ac_status=$?
13155  grep -v '^ *+' conftest.er1 >conftest.err
13156  rm -f conftest.er1
13157  cat conftest.err >&5
13158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159  (exit $ac_status); } &&
13160	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13161  { (case "(($ac_try" in
13162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163  *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166  (eval "$ac_try") 2>&5
13167  ac_status=$?
13168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169  (exit $ac_status); }; } &&
13170	 { ac_try='test -s conftest$ac_exeext'
13171  { (case "(($ac_try" in
13172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173  *) ac_try_echo=$ac_try;;
13174esac
13175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176  (eval "$ac_try") 2>&5
13177  ac_status=$?
13178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179  (exit $ac_status); }; }; then
13180  ac_cv_lib_udis86_ud_init=yes
13181else
13182  echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185	ac_cv_lib_udis86_ud_init=no
13186fi
13187
13188rm -f core conftest.err conftest.$ac_objext \
13189      conftest$ac_exeext conftest.$ac_ext
13190LIBS=$ac_check_lib_save_LIBS
13191fi
13192{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13193echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13194if test $ac_cv_lib_udis86_ud_init = yes; then
13195  cat >>confdefs.h <<_ACEOF
13196#define HAVE_LIBUDIS86 1
13197_ACEOF
13198
13199  LIBS="-ludis86 $LIBS"
13200
13201else
13202
13203        echo "Error! You need to have libudis86 around."
13204        exit -1
13205
13206fi
13207
13208
13209else
13210  USE_UDIS86=0
13211
13212fi
13213
13214
13215cat >>confdefs.h <<_ACEOF
13216#define USE_UDIS86 $USE_UDIS86
13217_ACEOF
13218
13219
13220
13221# Check whether --with-oprofile was given.
13222if test "${with_oprofile+set}" = set; then
13223  withval=$with_oprofile;
13224      USE_OPROFILE=1
13225
13226      case "$withval" in
13227        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13228        no) llvm_cv_oppath=
13229            USE_OPROFILE=0
13230 ;;
13231        *) llvm_cv_oppath="${withval}/lib/oprofile"
13232           CPPFLAGS="-I${withval}/include";;
13233      esac
13234      if test -n "$llvm_cv_oppath" ; then
13235        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13236                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13237echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13238if test "${ac_cv_search_bfd_init+set}" = set; then
13239  echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241  ac_func_search_save_LIBS=$LIBS
13242cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h.  */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h.  */
13248
13249/* Override any GCC internal prototype to avoid an error.
13250   Use char because int might match the return type of a GCC
13251   builtin and then its argument prototype would still apply.  */
13252#ifdef __cplusplus
13253extern "C"
13254#endif
13255char bfd_init ();
13256int
13257main ()
13258{
13259return bfd_init ();
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264for ac_lib in '' bfd; do
13265  if test -z "$ac_lib"; then
13266    ac_res="none required"
13267  else
13268    ac_res=-l$ac_lib
13269    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13270  fi
13271  rm -f conftest.$ac_objext conftest$ac_exeext
13272if { (ac_try="$ac_link"
13273case "(($ac_try" in
13274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275  *) ac_try_echo=$ac_try;;
13276esac
13277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278  (eval "$ac_link") 2>conftest.er1
13279  ac_status=$?
13280  grep -v '^ *+' conftest.er1 >conftest.err
13281  rm -f conftest.er1
13282  cat conftest.err >&5
13283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284  (exit $ac_status); } &&
13285	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286  { (case "(($ac_try" in
13287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288  *) ac_try_echo=$ac_try;;
13289esac
13290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291  (eval "$ac_try") 2>&5
13292  ac_status=$?
13293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294  (exit $ac_status); }; } &&
13295	 { ac_try='test -s conftest$ac_exeext'
13296  { (case "(($ac_try" in
13297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298  *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301  (eval "$ac_try") 2>&5
13302  ac_status=$?
13303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304  (exit $ac_status); }; }; then
13305  ac_cv_search_bfd_init=$ac_res
13306else
13307  echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310
13311fi
13312
13313rm -f core conftest.err conftest.$ac_objext \
13314      conftest$ac_exeext
13315  if test "${ac_cv_search_bfd_init+set}" = set; then
13316  break
13317fi
13318done
13319if test "${ac_cv_search_bfd_init+set}" = set; then
13320  :
13321else
13322  ac_cv_search_bfd_init=no
13323fi
13324rm conftest.$ac_ext
13325LIBS=$ac_func_search_save_LIBS
13326fi
13327{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13328echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13329ac_res=$ac_cv_search_bfd_init
13330if test "$ac_res" != no; then
13331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332
13333fi
13334
13335        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13336echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13337if test "${ac_cv_search_op_open_agent+set}" = set; then
13338  echo $ECHO_N "(cached) $ECHO_C" >&6
13339else
13340  ac_func_search_save_LIBS=$LIBS
13341cat >conftest.$ac_ext <<_ACEOF
13342/* confdefs.h.  */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h.  */
13347
13348/* Override any GCC internal prototype to avoid an error.
13349   Use char because int might match the return type of a GCC
13350   builtin and then its argument prototype would still apply.  */
13351#ifdef __cplusplus
13352extern "C"
13353#endif
13354char op_open_agent ();
13355int
13356main ()
13357{
13358return op_open_agent ();
13359  ;
13360  return 0;
13361}
13362_ACEOF
13363for ac_lib in '' opagent; do
13364  if test -z "$ac_lib"; then
13365    ac_res="none required"
13366  else
13367    ac_res=-l$ac_lib
13368    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13369  fi
13370  rm -f conftest.$ac_objext conftest$ac_exeext
13371if { (ac_try="$ac_link"
13372case "(($ac_try" in
13373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374  *) ac_try_echo=$ac_try;;
13375esac
13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377  (eval "$ac_link") 2>conftest.er1
13378  ac_status=$?
13379  grep -v '^ *+' conftest.er1 >conftest.err
13380  rm -f conftest.er1
13381  cat conftest.err >&5
13382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383  (exit $ac_status); } &&
13384	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385  { (case "(($ac_try" in
13386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387  *) ac_try_echo=$ac_try;;
13388esac
13389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390  (eval "$ac_try") 2>&5
13391  ac_status=$?
13392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393  (exit $ac_status); }; } &&
13394	 { ac_try='test -s conftest$ac_exeext'
13395  { (case "(($ac_try" in
13396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397  *) ac_try_echo=$ac_try;;
13398esac
13399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400  (eval "$ac_try") 2>&5
13401  ac_status=$?
13402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403  (exit $ac_status); }; }; then
13404  ac_cv_search_op_open_agent=$ac_res
13405else
13406  echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409
13410fi
13411
13412rm -f core conftest.err conftest.$ac_objext \
13413      conftest$ac_exeext
13414  if test "${ac_cv_search_op_open_agent+set}" = set; then
13415  break
13416fi
13417done
13418if test "${ac_cv_search_op_open_agent+set}" = set; then
13419  :
13420else
13421  ac_cv_search_op_open_agent=no
13422fi
13423rm conftest.$ac_ext
13424LIBS=$ac_func_search_save_LIBS
13425fi
13426{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13427echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13428ac_res=$ac_cv_search_op_open_agent
13429if test "$ac_res" != no; then
13430  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431
13432else
13433
13434          echo "Error! You need to have libopagent around."
13435          exit -1
13436
13437fi
13438
13439        if test "${ac_cv_header_opagent_h+set}" = set; then
13440  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13441echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13442if test "${ac_cv_header_opagent_h+set}" = set; then
13443  echo $ECHO_N "(cached) $ECHO_C" >&6
13444fi
13445{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13446echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13447else
13448  # Is the header compilable?
13449{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13450echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13451cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h.  */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h.  */
13457$ac_includes_default
13458#include <opagent.h>
13459_ACEOF
13460rm -f conftest.$ac_objext
13461if { (ac_try="$ac_compile"
13462case "(($ac_try" in
13463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464  *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467  (eval "$ac_compile") 2>conftest.er1
13468  ac_status=$?
13469  grep -v '^ *+' conftest.er1 >conftest.err
13470  rm -f conftest.er1
13471  cat conftest.err >&5
13472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473  (exit $ac_status); } &&
13474	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475  { (case "(($ac_try" in
13476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477  *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480  (eval "$ac_try") 2>&5
13481  ac_status=$?
13482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483  (exit $ac_status); }; } &&
13484	 { ac_try='test -s conftest.$ac_objext'
13485  { (case "(($ac_try" in
13486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487  *) ac_try_echo=$ac_try;;
13488esac
13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490  (eval "$ac_try") 2>&5
13491  ac_status=$?
13492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493  (exit $ac_status); }; }; then
13494  ac_header_compiler=yes
13495else
13496  echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499	ac_header_compiler=no
13500fi
13501
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13504echo "${ECHO_T}$ac_header_compiler" >&6; }
13505
13506# Is the header present?
13507{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13508echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13509cat >conftest.$ac_ext <<_ACEOF
13510/* confdefs.h.  */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h.  */
13515#include <opagent.h>
13516_ACEOF
13517if { (ac_try="$ac_cpp conftest.$ac_ext"
13518case "(($ac_try" in
13519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520  *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13524  ac_status=$?
13525  grep -v '^ *+' conftest.er1 >conftest.err
13526  rm -f conftest.er1
13527  cat conftest.err >&5
13528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529  (exit $ac_status); } >/dev/null; then
13530  if test -s conftest.err; then
13531    ac_cpp_err=$ac_c_preproc_warn_flag
13532    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13533  else
13534    ac_cpp_err=
13535  fi
13536else
13537  ac_cpp_err=yes
13538fi
13539if test -z "$ac_cpp_err"; then
13540  ac_header_preproc=yes
13541else
13542  echo "$as_me: failed program was:" >&5
13543sed 's/^/| /' conftest.$ac_ext >&5
13544
13545  ac_header_preproc=no
13546fi
13547
13548rm -f conftest.err conftest.$ac_ext
13549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13550echo "${ECHO_T}$ac_header_preproc" >&6; }
13551
13552# So?  What about this header?
13553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13554  yes:no: )
13555    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13556echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13557    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13558echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13559    ac_header_preproc=yes
13560    ;;
13561  no:yes:* )
13562    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13563echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13564    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13565echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13566    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13567echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13568    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13569echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13570    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13571echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13572    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13573echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13574    ( cat <<\_ASBOX
13575## ------------------------------ ##
13576## Report this to bugs@yourdomain ##
13577## ------------------------------ ##
13578_ASBOX
13579     ) | sed "s/^/$as_me: WARNING:     /" >&2
13580    ;;
13581esac
13582{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13583echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13584if test "${ac_cv_header_opagent_h+set}" = set; then
13585  echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587  ac_cv_header_opagent_h=$ac_header_preproc
13588fi
13589{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13590echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13591
13592fi
13593if test $ac_cv_header_opagent_h = yes; then
13594  :
13595else
13596
13597          echo "Error! You need to have opagent.h around."
13598          exit -1
13599
13600fi
13601
13602
13603      fi
13604
13605else
13606
13607      USE_OPROFILE=0
13608
13609
13610fi
13611
13612
13613cat >>confdefs.h <<_ACEOF
13614#define USE_OPROFILE $USE_OPROFILE
13615_ACEOF
13616
13617
13618
13619
13620
13621
13622
13623
13624ac_header_dirent=no
13625for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13626  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13627{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13628echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13630  echo $ECHO_N "(cached) $ECHO_C" >&6
13631else
13632  cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h.  */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
13637/* end confdefs.h.  */
13638#include <sys/types.h>
13639#include <$ac_hdr>
13640
13641int
13642main ()
13643{
13644if ((DIR *) 0)
13645return 0;
13646  ;
13647  return 0;
13648}
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (ac_try="$ac_compile"
13652case "(($ac_try" in
13653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654  *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657  (eval "$ac_compile") 2>conftest.er1
13658  ac_status=$?
13659  grep -v '^ *+' conftest.er1 >conftest.err
13660  rm -f conftest.er1
13661  cat conftest.err >&5
13662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663  (exit $ac_status); } &&
13664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13665  { (case "(($ac_try" in
13666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667  *) ac_try_echo=$ac_try;;
13668esac
13669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670  (eval "$ac_try") 2>&5
13671  ac_status=$?
13672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673  (exit $ac_status); }; } &&
13674	 { ac_try='test -s conftest.$ac_objext'
13675  { (case "(($ac_try" in
13676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677  *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680  (eval "$ac_try") 2>&5
13681  ac_status=$?
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); }; }; then
13684  eval "$as_ac_Header=yes"
13685else
13686  echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689	eval "$as_ac_Header=no"
13690fi
13691
13692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693fi
13694ac_res=`eval echo '${'$as_ac_Header'}'`
13695	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13696echo "${ECHO_T}$ac_res" >&6; }
13697if test `eval echo '${'$as_ac_Header'}'` = yes; then
13698  cat >>confdefs.h <<_ACEOF
13699#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13700_ACEOF
13701
13702ac_header_dirent=$ac_hdr; break
13703fi
13704
13705done
13706# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13707if test $ac_header_dirent = dirent.h; then
13708  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13709echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13710if test "${ac_cv_search_opendir+set}" = set; then
13711  echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713  ac_func_search_save_LIBS=$LIBS
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h.  */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h.  */
13720
13721/* Override any GCC internal prototype to avoid an error.
13722   Use char because int might match the return type of a GCC
13723   builtin and then its argument prototype would still apply.  */
13724#ifdef __cplusplus
13725extern "C"
13726#endif
13727char opendir ();
13728int
13729main ()
13730{
13731return opendir ();
13732  ;
13733  return 0;
13734}
13735_ACEOF
13736for ac_lib in '' dir; do
13737  if test -z "$ac_lib"; then
13738    ac_res="none required"
13739  else
13740    ac_res=-l$ac_lib
13741    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13742  fi
13743  rm -f conftest.$ac_objext conftest$ac_exeext
13744if { (ac_try="$ac_link"
13745case "(($ac_try" in
13746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747  *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750  (eval "$ac_link") 2>conftest.er1
13751  ac_status=$?
13752  grep -v '^ *+' conftest.er1 >conftest.err
13753  rm -f conftest.er1
13754  cat conftest.err >&5
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); } &&
13757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758  { (case "(($ac_try" in
13759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760  *) ac_try_echo=$ac_try;;
13761esac
13762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763  (eval "$ac_try") 2>&5
13764  ac_status=$?
13765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766  (exit $ac_status); }; } &&
13767	 { ac_try='test -s conftest$ac_exeext'
13768  { (case "(($ac_try" in
13769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770  *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773  (eval "$ac_try") 2>&5
13774  ac_status=$?
13775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776  (exit $ac_status); }; }; then
13777  ac_cv_search_opendir=$ac_res
13778else
13779  echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782
13783fi
13784
13785rm -f core conftest.err conftest.$ac_objext \
13786      conftest$ac_exeext
13787  if test "${ac_cv_search_opendir+set}" = set; then
13788  break
13789fi
13790done
13791if test "${ac_cv_search_opendir+set}" = set; then
13792  :
13793else
13794  ac_cv_search_opendir=no
13795fi
13796rm conftest.$ac_ext
13797LIBS=$ac_func_search_save_LIBS
13798fi
13799{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13800echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13801ac_res=$ac_cv_search_opendir
13802if test "$ac_res" != no; then
13803  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804
13805fi
13806
13807else
13808  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13809echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13810if test "${ac_cv_search_opendir+set}" = set; then
13811  echo $ECHO_N "(cached) $ECHO_C" >&6
13812else
13813  ac_func_search_save_LIBS=$LIBS
13814cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h.  */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h.  */
13820
13821/* Override any GCC internal prototype to avoid an error.
13822   Use char because int might match the return type of a GCC
13823   builtin and then its argument prototype would still apply.  */
13824#ifdef __cplusplus
13825extern "C"
13826#endif
13827char opendir ();
13828int
13829main ()
13830{
13831return opendir ();
13832  ;
13833  return 0;
13834}
13835_ACEOF
13836for ac_lib in '' x; do
13837  if test -z "$ac_lib"; then
13838    ac_res="none required"
13839  else
13840    ac_res=-l$ac_lib
13841    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13842  fi
13843  rm -f conftest.$ac_objext conftest$ac_exeext
13844if { (ac_try="$ac_link"
13845case "(($ac_try" in
13846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847  *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850  (eval "$ac_link") 2>conftest.er1
13851  ac_status=$?
13852  grep -v '^ *+' conftest.er1 >conftest.err
13853  rm -f conftest.er1
13854  cat conftest.err >&5
13855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856  (exit $ac_status); } &&
13857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858  { (case "(($ac_try" in
13859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860  *) ac_try_echo=$ac_try;;
13861esac
13862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863  (eval "$ac_try") 2>&5
13864  ac_status=$?
13865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866  (exit $ac_status); }; } &&
13867	 { ac_try='test -s conftest$ac_exeext'
13868  { (case "(($ac_try" in
13869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870  *) ac_try_echo=$ac_try;;
13871esac
13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873  (eval "$ac_try") 2>&5
13874  ac_status=$?
13875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876  (exit $ac_status); }; }; then
13877  ac_cv_search_opendir=$ac_res
13878else
13879  echo "$as_me: failed program was:" >&5
13880sed 's/^/| /' conftest.$ac_ext >&5
13881
13882
13883fi
13884
13885rm -f core conftest.err conftest.$ac_objext \
13886      conftest$ac_exeext
13887  if test "${ac_cv_search_opendir+set}" = set; then
13888  break
13889fi
13890done
13891if test "${ac_cv_search_opendir+set}" = set; then
13892  :
13893else
13894  ac_cv_search_opendir=no
13895fi
13896rm conftest.$ac_ext
13897LIBS=$ac_func_search_save_LIBS
13898fi
13899{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13900echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13901ac_res=$ac_cv_search_opendir
13902if test "$ac_res" != no; then
13903  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13904
13905fi
13906
13907fi
13908
13909{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13910echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13911if test "${ac_cv_header_mmap_anon+set}" = set; then
13912  echo $ECHO_N "(cached) $ECHO_C" >&6
13913else
13914   ac_ext=c
13915ac_cpp='$CPP $CPPFLAGS'
13916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920  cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h.  */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h.  */
13926#include <sys/mman.h>
13927#include <unistd.h>
13928#include <fcntl.h>
13929int
13930main ()
13931{
13932mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13933  ;
13934  return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext
13938if { (ac_try="$ac_compile"
13939case "(($ac_try" in
13940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941  *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944  (eval "$ac_compile") 2>conftest.er1
13945  ac_status=$?
13946  grep -v '^ *+' conftest.er1 >conftest.err
13947  rm -f conftest.er1
13948  cat conftest.err >&5
13949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950  (exit $ac_status); } &&
13951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952  { (case "(($ac_try" in
13953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954  *) ac_try_echo=$ac_try;;
13955esac
13956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957  (eval "$ac_try") 2>&5
13958  ac_status=$?
13959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960  (exit $ac_status); }; } &&
13961	 { ac_try='test -s conftest.$ac_objext'
13962  { (case "(($ac_try" in
13963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964  *) ac_try_echo=$ac_try;;
13965esac
13966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967  (eval "$ac_try") 2>&5
13968  ac_status=$?
13969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970  (exit $ac_status); }; }; then
13971  ac_cv_header_mmap_anon=yes
13972else
13973  echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976	ac_cv_header_mmap_anon=no
13977fi
13978
13979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980  ac_ext=c
13981ac_cpp='$CPP $CPPFLAGS'
13982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984ac_compiler_gnu=$ac_cv_c_compiler_gnu
13985
13986
13987fi
13988{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13989echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13990if test "$ac_cv_header_mmap_anon" = yes; then
13991
13992cat >>confdefs.h <<\_ACEOF
13993#define HAVE_MMAP_ANONYMOUS 1
13994_ACEOF
13995
13996fi
13997
13998{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13999echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14000if test "${ac_cv_header_stat_broken+set}" = set; then
14001  echo $ECHO_N "(cached) $ECHO_C" >&6
14002else
14003  cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h.  */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h.  */
14009#include <sys/types.h>
14010#include <sys/stat.h>
14011
14012#if defined S_ISBLK && defined S_IFDIR
14013# if S_ISBLK (S_IFDIR)
14014You lose.
14015# endif
14016#endif
14017
14018#if defined S_ISBLK && defined S_IFCHR
14019# if S_ISBLK (S_IFCHR)
14020You lose.
14021# endif
14022#endif
14023
14024#if defined S_ISLNK && defined S_IFREG
14025# if S_ISLNK (S_IFREG)
14026You lose.
14027# endif
14028#endif
14029
14030#if defined S_ISSOCK && defined S_IFREG
14031# if S_ISSOCK (S_IFREG)
14032You lose.
14033# endif
14034#endif
14035
14036_ACEOF
14037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14038  $EGREP "You lose" >/dev/null 2>&1; then
14039  ac_cv_header_stat_broken=yes
14040else
14041  ac_cv_header_stat_broken=no
14042fi
14043rm -f conftest*
14044
14045fi
14046{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14047echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14048if test $ac_cv_header_stat_broken = yes; then
14049
14050cat >>confdefs.h <<\_ACEOF
14051#define STAT_MACROS_BROKEN 1
14052_ACEOF
14053
14054fi
14055
14056{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14057echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14058if test "${ac_cv_header_sys_wait_h+set}" = set; then
14059  echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
14061  cat >conftest.$ac_ext <<_ACEOF
14062/* confdefs.h.  */
14063_ACEOF
14064cat confdefs.h >>conftest.$ac_ext
14065cat >>conftest.$ac_ext <<_ACEOF
14066/* end confdefs.h.  */
14067#include <sys/types.h>
14068#include <sys/wait.h>
14069#ifndef WEXITSTATUS
14070# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14071#endif
14072#ifndef WIFEXITED
14073# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14074#endif
14075
14076int
14077main ()
14078{
14079  int s;
14080  wait (&s);
14081  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14082  ;
14083  return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext
14087if { (ac_try="$ac_compile"
14088case "(($ac_try" in
14089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090  *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093  (eval "$ac_compile") 2>conftest.er1
14094  ac_status=$?
14095  grep -v '^ *+' conftest.er1 >conftest.err
14096  rm -f conftest.er1
14097  cat conftest.err >&5
14098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099  (exit $ac_status); } &&
14100	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101  { (case "(($ac_try" in
14102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103  *) ac_try_echo=$ac_try;;
14104esac
14105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106  (eval "$ac_try") 2>&5
14107  ac_status=$?
14108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109  (exit $ac_status); }; } &&
14110	 { ac_try='test -s conftest.$ac_objext'
14111  { (case "(($ac_try" in
14112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113  *) ac_try_echo=$ac_try;;
14114esac
14115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116  (eval "$ac_try") 2>&5
14117  ac_status=$?
14118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119  (exit $ac_status); }; }; then
14120  ac_cv_header_sys_wait_h=yes
14121else
14122  echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125	ac_cv_header_sys_wait_h=no
14126fi
14127
14128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129fi
14130{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14131echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14132if test $ac_cv_header_sys_wait_h = yes; then
14133
14134cat >>confdefs.h <<\_ACEOF
14135#define HAVE_SYS_WAIT_H 1
14136_ACEOF
14137
14138fi
14139
14140{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14141echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14142if test "${ac_cv_header_time+set}" = set; then
14143  echo $ECHO_N "(cached) $ECHO_C" >&6
14144else
14145  cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h.  */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h.  */
14151#include <sys/types.h>
14152#include <sys/time.h>
14153#include <time.h>
14154
14155int
14156main ()
14157{
14158if ((struct tm *) 0)
14159return 0;
14160  ;
14161  return 0;
14162}
14163_ACEOF
14164rm -f conftest.$ac_objext
14165if { (ac_try="$ac_compile"
14166case "(($ac_try" in
14167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168  *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171  (eval "$ac_compile") 2>conftest.er1
14172  ac_status=$?
14173  grep -v '^ *+' conftest.er1 >conftest.err
14174  rm -f conftest.er1
14175  cat conftest.err >&5
14176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177  (exit $ac_status); } &&
14178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179  { (case "(($ac_try" in
14180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181  *) ac_try_echo=$ac_try;;
14182esac
14183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184  (eval "$ac_try") 2>&5
14185  ac_status=$?
14186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187  (exit $ac_status); }; } &&
14188	 { ac_try='test -s conftest.$ac_objext'
14189  { (case "(($ac_try" in
14190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191  *) ac_try_echo=$ac_try;;
14192esac
14193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194  (eval "$ac_try") 2>&5
14195  ac_status=$?
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); }; }; then
14198  ac_cv_header_time=yes
14199else
14200  echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203	ac_cv_header_time=no
14204fi
14205
14206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207fi
14208{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14209echo "${ECHO_T}$ac_cv_header_time" >&6; }
14210if test $ac_cv_header_time = yes; then
14211
14212cat >>confdefs.h <<\_ACEOF
14213#define TIME_WITH_SYS_TIME 1
14214_ACEOF
14215
14216fi
14217
14218
14219
14220
14221
14222
14223
14224
14225for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14226do
14227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14232  echo $ECHO_N "(cached) $ECHO_C" >&6
14233fi
14234ac_res=`eval echo '${'$as_ac_Header'}'`
14235	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14236echo "${ECHO_T}$ac_res" >&6; }
14237else
14238  # Is the header compilable?
14239{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14241cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h.  */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h.  */
14247$ac_includes_default
14248#include <$ac_header>
14249_ACEOF
14250rm -f conftest.$ac_objext
14251if { (ac_try="$ac_compile"
14252case "(($ac_try" in
14253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254  *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257  (eval "$ac_compile") 2>conftest.er1
14258  ac_status=$?
14259  grep -v '^ *+' conftest.er1 >conftest.err
14260  rm -f conftest.er1
14261  cat conftest.err >&5
14262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263  (exit $ac_status); } &&
14264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265  { (case "(($ac_try" in
14266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267  *) ac_try_echo=$ac_try;;
14268esac
14269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270  (eval "$ac_try") 2>&5
14271  ac_status=$?
14272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273  (exit $ac_status); }; } &&
14274	 { ac_try='test -s conftest.$ac_objext'
14275  { (case "(($ac_try" in
14276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277  *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280  (eval "$ac_try") 2>&5
14281  ac_status=$?
14282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283  (exit $ac_status); }; }; then
14284  ac_header_compiler=yes
14285else
14286  echo "$as_me: failed program was:" >&5
14287sed 's/^/| /' conftest.$ac_ext >&5
14288
14289	ac_header_compiler=no
14290fi
14291
14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14294echo "${ECHO_T}$ac_header_compiler" >&6; }
14295
14296# Is the header present?
14297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14299cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h.  */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h.  */
14305#include <$ac_header>
14306_ACEOF
14307if { (ac_try="$ac_cpp conftest.$ac_ext"
14308case "(($ac_try" in
14309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310  *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14314  ac_status=$?
14315  grep -v '^ *+' conftest.er1 >conftest.err
14316  rm -f conftest.er1
14317  cat conftest.err >&5
14318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319  (exit $ac_status); } >/dev/null; then
14320  if test -s conftest.err; then
14321    ac_cpp_err=$ac_c_preproc_warn_flag
14322    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14323  else
14324    ac_cpp_err=
14325  fi
14326else
14327  ac_cpp_err=yes
14328fi
14329if test -z "$ac_cpp_err"; then
14330  ac_header_preproc=yes
14331else
14332  echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335  ac_header_preproc=no
14336fi
14337
14338rm -f conftest.err conftest.$ac_ext
14339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14340echo "${ECHO_T}$ac_header_preproc" >&6; }
14341
14342# So?  What about this header?
14343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14344  yes:no: )
14345    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14347    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14349    ac_header_preproc=yes
14350    ;;
14351  no:yes:* )
14352    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14354    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14355echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14356    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14358    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14359echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14360    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14362    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14364    ( cat <<\_ASBOX
14365## ------------------------------ ##
14366## Report this to bugs@yourdomain ##
14367## ------------------------------ ##
14368_ASBOX
14369     ) | sed "s/^/$as_me: WARNING:     /" >&2
14370    ;;
14371esac
14372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375  echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377  eval "$as_ac_Header=\$ac_header_preproc"
14378fi
14379ac_res=`eval echo '${'$as_ac_Header'}'`
14380	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14381echo "${ECHO_T}$ac_res" >&6; }
14382
14383fi
14384if test `eval echo '${'$as_ac_Header'}'` = yes; then
14385  cat >>confdefs.h <<_ACEOF
14386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14387_ACEOF
14388
14389fi
14390
14391done
14392
14393
14394
14395
14396
14397
14398
14399for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14400do
14401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406  echo $ECHO_N "(cached) $ECHO_C" >&6
14407fi
14408ac_res=`eval echo '${'$as_ac_Header'}'`
14409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14410echo "${ECHO_T}$ac_res" >&6; }
14411else
14412  # Is the header compilable?
14413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14415cat >conftest.$ac_ext <<_ACEOF
14416/* confdefs.h.  */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h.  */
14421$ac_includes_default
14422#include <$ac_header>
14423_ACEOF
14424rm -f conftest.$ac_objext
14425if { (ac_try="$ac_compile"
14426case "(($ac_try" in
14427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428  *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431  (eval "$ac_compile") 2>conftest.er1
14432  ac_status=$?
14433  grep -v '^ *+' conftest.er1 >conftest.err
14434  rm -f conftest.er1
14435  cat conftest.err >&5
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); } &&
14438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439  { (case "(($ac_try" in
14440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441  *) ac_try_echo=$ac_try;;
14442esac
14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444  (eval "$ac_try") 2>&5
14445  ac_status=$?
14446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447  (exit $ac_status); }; } &&
14448	 { ac_try='test -s conftest.$ac_objext'
14449  { (case "(($ac_try" in
14450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451  *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454  (eval "$ac_try") 2>&5
14455  ac_status=$?
14456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457  (exit $ac_status); }; }; then
14458  ac_header_compiler=yes
14459else
14460  echo "$as_me: failed program was:" >&5
14461sed 's/^/| /' conftest.$ac_ext >&5
14462
14463	ac_header_compiler=no
14464fi
14465
14466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468echo "${ECHO_T}$ac_header_compiler" >&6; }
14469
14470# Is the header present?
14471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14473cat >conftest.$ac_ext <<_ACEOF
14474/* confdefs.h.  */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h.  */
14479#include <$ac_header>
14480_ACEOF
14481if { (ac_try="$ac_cpp conftest.$ac_ext"
14482case "(($ac_try" in
14483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484  *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488  ac_status=$?
14489  grep -v '^ *+' conftest.er1 >conftest.err
14490  rm -f conftest.er1
14491  cat conftest.err >&5
14492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493  (exit $ac_status); } >/dev/null; then
14494  if test -s conftest.err; then
14495    ac_cpp_err=$ac_c_preproc_warn_flag
14496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14497  else
14498    ac_cpp_err=
14499  fi
14500else
14501  ac_cpp_err=yes
14502fi
14503if test -z "$ac_cpp_err"; then
14504  ac_header_preproc=yes
14505else
14506  echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509  ac_header_preproc=no
14510fi
14511
14512rm -f conftest.err conftest.$ac_ext
14513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14514echo "${ECHO_T}$ac_header_preproc" >&6; }
14515
14516# So?  What about this header?
14517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14518  yes:no: )
14519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14523    ac_header_preproc=yes
14524    ;;
14525  no:yes:* )
14526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14538    ( cat <<\_ASBOX
14539## ------------------------------ ##
14540## Report this to bugs@yourdomain ##
14541## ------------------------------ ##
14542_ASBOX
14543     ) | sed "s/^/$as_me: WARNING:     /" >&2
14544    ;;
14545esac
14546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549  echo $ECHO_N "(cached) $ECHO_C" >&6
14550else
14551  eval "$as_ac_Header=\$ac_header_preproc"
14552fi
14553ac_res=`eval echo '${'$as_ac_Header'}'`
14554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14555echo "${ECHO_T}$ac_res" >&6; }
14556
14557fi
14558if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559  cat >>confdefs.h <<_ACEOF
14560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561_ACEOF
14562
14563fi
14564
14565done
14566
14567
14568
14569for ac_header in utime.h windows.h
14570do
14571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576  echo $ECHO_N "(cached) $ECHO_C" >&6
14577fi
14578ac_res=`eval echo '${'$as_ac_Header'}'`
14579	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14580echo "${ECHO_T}$ac_res" >&6; }
14581else
14582  # Is the header compilable?
14583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h.  */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h.  */
14591$ac_includes_default
14592#include <$ac_header>
14593_ACEOF
14594rm -f conftest.$ac_objext
14595if { (ac_try="$ac_compile"
14596case "(($ac_try" in
14597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598  *) ac_try_echo=$ac_try;;
14599esac
14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601  (eval "$ac_compile") 2>conftest.er1
14602  ac_status=$?
14603  grep -v '^ *+' conftest.er1 >conftest.err
14604  rm -f conftest.er1
14605  cat conftest.err >&5
14606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607  (exit $ac_status); } &&
14608	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609  { (case "(($ac_try" in
14610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611  *) ac_try_echo=$ac_try;;
14612esac
14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614  (eval "$ac_try") 2>&5
14615  ac_status=$?
14616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617  (exit $ac_status); }; } &&
14618	 { ac_try='test -s conftest.$ac_objext'
14619  { (case "(($ac_try" in
14620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621  *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624  (eval "$ac_try") 2>&5
14625  ac_status=$?
14626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627  (exit $ac_status); }; }; then
14628  ac_header_compiler=yes
14629else
14630  echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633	ac_header_compiler=no
14634fi
14635
14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638echo "${ECHO_T}$ac_header_compiler" >&6; }
14639
14640# Is the header present?
14641{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h.  */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h.  */
14649#include <$ac_header>
14650_ACEOF
14651if { (ac_try="$ac_cpp conftest.$ac_ext"
14652case "(($ac_try" in
14653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654  *) ac_try_echo=$ac_try;;
14655esac
14656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658  ac_status=$?
14659  grep -v '^ *+' conftest.er1 >conftest.err
14660  rm -f conftest.er1
14661  cat conftest.err >&5
14662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663  (exit $ac_status); } >/dev/null; then
14664  if test -s conftest.err; then
14665    ac_cpp_err=$ac_c_preproc_warn_flag
14666    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14667  else
14668    ac_cpp_err=
14669  fi
14670else
14671  ac_cpp_err=yes
14672fi
14673if test -z "$ac_cpp_err"; then
14674  ac_header_preproc=yes
14675else
14676  echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679  ac_header_preproc=no
14680fi
14681
14682rm -f conftest.err conftest.$ac_ext
14683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684echo "${ECHO_T}$ac_header_preproc" >&6; }
14685
14686# So?  What about this header?
14687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688  yes:no: )
14689    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693    ac_header_preproc=yes
14694    ;;
14695  no:yes:* )
14696    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14699echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14700    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14703echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14704    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14708    ( cat <<\_ASBOX
14709## ------------------------------ ##
14710## Report this to bugs@yourdomain ##
14711## ------------------------------ ##
14712_ASBOX
14713     ) | sed "s/^/$as_me: WARNING:     /" >&2
14714    ;;
14715esac
14716{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719  echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721  eval "$as_ac_Header=\$ac_header_preproc"
14722fi
14723ac_res=`eval echo '${'$as_ac_Header'}'`
14724	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14725echo "${ECHO_T}$ac_res" >&6; }
14726
14727fi
14728if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729  cat >>confdefs.h <<_ACEOF
14730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14731_ACEOF
14732
14733fi
14734
14735done
14736
14737
14738
14739
14740
14741
14742for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14743do
14744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749  echo $ECHO_N "(cached) $ECHO_C" >&6
14750fi
14751ac_res=`eval echo '${'$as_ac_Header'}'`
14752	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14753echo "${ECHO_T}$ac_res" >&6; }
14754else
14755  # Is the header compilable?
14756{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758cat >conftest.$ac_ext <<_ACEOF
14759/* confdefs.h.  */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h.  */
14764$ac_includes_default
14765#include <$ac_header>
14766_ACEOF
14767rm -f conftest.$ac_objext
14768if { (ac_try="$ac_compile"
14769case "(($ac_try" in
14770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771  *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774  (eval "$ac_compile") 2>conftest.er1
14775  ac_status=$?
14776  grep -v '^ *+' conftest.er1 >conftest.err
14777  rm -f conftest.er1
14778  cat conftest.err >&5
14779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780  (exit $ac_status); } &&
14781	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782  { (case "(($ac_try" in
14783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784  *) ac_try_echo=$ac_try;;
14785esac
14786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787  (eval "$ac_try") 2>&5
14788  ac_status=$?
14789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790  (exit $ac_status); }; } &&
14791	 { ac_try='test -s conftest.$ac_objext'
14792  { (case "(($ac_try" in
14793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794  *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797  (eval "$ac_try") 2>&5
14798  ac_status=$?
14799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); }; }; then
14801  ac_header_compiler=yes
14802else
14803  echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806	ac_header_compiler=no
14807fi
14808
14809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811echo "${ECHO_T}$ac_header_compiler" >&6; }
14812
14813# Is the header present?
14814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h.  */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h.  */
14822#include <$ac_header>
14823_ACEOF
14824if { (ac_try="$ac_cpp conftest.$ac_ext"
14825case "(($ac_try" in
14826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827  *) ac_try_echo=$ac_try;;
14828esac
14829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14831  ac_status=$?
14832  grep -v '^ *+' conftest.er1 >conftest.err
14833  rm -f conftest.er1
14834  cat conftest.err >&5
14835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836  (exit $ac_status); } >/dev/null; then
14837  if test -s conftest.err; then
14838    ac_cpp_err=$ac_c_preproc_warn_flag
14839    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14840  else
14841    ac_cpp_err=
14842  fi
14843else
14844  ac_cpp_err=yes
14845fi
14846if test -z "$ac_cpp_err"; then
14847  ac_header_preproc=yes
14848else
14849  echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852  ac_header_preproc=no
14853fi
14854
14855rm -f conftest.err conftest.$ac_ext
14856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857echo "${ECHO_T}$ac_header_preproc" >&6; }
14858
14859# So?  What about this header?
14860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861  yes:no: )
14862    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866    ac_header_preproc=yes
14867    ;;
14868  no:yes:* )
14869    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14872echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14873    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14876echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881    ( cat <<\_ASBOX
14882## ------------------------------ ##
14883## Report this to bugs@yourdomain ##
14884## ------------------------------ ##
14885_ASBOX
14886     ) | sed "s/^/$as_me: WARNING:     /" >&2
14887    ;;
14888esac
14889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892  echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894  eval "$as_ac_Header=\$ac_header_preproc"
14895fi
14896ac_res=`eval echo '${'$as_ac_Header'}'`
14897	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14898echo "${ECHO_T}$ac_res" >&6; }
14899
14900fi
14901if test `eval echo '${'$as_ac_Header'}'` = yes; then
14902  cat >>confdefs.h <<_ACEOF
14903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14904_ACEOF
14905
14906fi
14907
14908done
14909
14910
14911
14912
14913
14914for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14915do
14916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921  echo $ECHO_N "(cached) $ECHO_C" >&6
14922fi
14923ac_res=`eval echo '${'$as_ac_Header'}'`
14924	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14925echo "${ECHO_T}$ac_res" >&6; }
14926else
14927  # Is the header compilable?
14928{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14930cat >conftest.$ac_ext <<_ACEOF
14931/* confdefs.h.  */
14932_ACEOF
14933cat confdefs.h >>conftest.$ac_ext
14934cat >>conftest.$ac_ext <<_ACEOF
14935/* end confdefs.h.  */
14936$ac_includes_default
14937#include <$ac_header>
14938_ACEOF
14939rm -f conftest.$ac_objext
14940if { (ac_try="$ac_compile"
14941case "(($ac_try" in
14942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943  *) ac_try_echo=$ac_try;;
14944esac
14945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946  (eval "$ac_compile") 2>conftest.er1
14947  ac_status=$?
14948  grep -v '^ *+' conftest.er1 >conftest.err
14949  rm -f conftest.er1
14950  cat conftest.err >&5
14951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952  (exit $ac_status); } &&
14953	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14954  { (case "(($ac_try" in
14955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956  *) ac_try_echo=$ac_try;;
14957esac
14958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959  (eval "$ac_try") 2>&5
14960  ac_status=$?
14961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962  (exit $ac_status); }; } &&
14963	 { ac_try='test -s conftest.$ac_objext'
14964  { (case "(($ac_try" in
14965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966  *) ac_try_echo=$ac_try;;
14967esac
14968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969  (eval "$ac_try") 2>&5
14970  ac_status=$?
14971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972  (exit $ac_status); }; }; then
14973  ac_header_compiler=yes
14974else
14975  echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978	ac_header_compiler=no
14979fi
14980
14981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14983echo "${ECHO_T}$ac_header_compiler" >&6; }
14984
14985# Is the header present?
14986{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14988cat >conftest.$ac_ext <<_ACEOF
14989/* confdefs.h.  */
14990_ACEOF
14991cat confdefs.h >>conftest.$ac_ext
14992cat >>conftest.$ac_ext <<_ACEOF
14993/* end confdefs.h.  */
14994#include <$ac_header>
14995_ACEOF
14996if { (ac_try="$ac_cpp conftest.$ac_ext"
14997case "(($ac_try" in
14998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999  *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15003  ac_status=$?
15004  grep -v '^ *+' conftest.er1 >conftest.err
15005  rm -f conftest.er1
15006  cat conftest.err >&5
15007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008  (exit $ac_status); } >/dev/null; then
15009  if test -s conftest.err; then
15010    ac_cpp_err=$ac_c_preproc_warn_flag
15011    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15012  else
15013    ac_cpp_err=
15014  fi
15015else
15016  ac_cpp_err=yes
15017fi
15018if test -z "$ac_cpp_err"; then
15019  ac_header_preproc=yes
15020else
15021  echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024  ac_header_preproc=no
15025fi
15026
15027rm -f conftest.err conftest.$ac_ext
15028{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029echo "${ECHO_T}$ac_header_preproc" >&6; }
15030
15031# So?  What about this header?
15032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15033  yes:no: )
15034    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15038    ac_header_preproc=yes
15039    ;;
15040  no:yes:* )
15041    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15043    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15044echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15045    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15047    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15048echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15051    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15053    ( cat <<\_ASBOX
15054## ------------------------------ ##
15055## Report this to bugs@yourdomain ##
15056## ------------------------------ ##
15057_ASBOX
15058     ) | sed "s/^/$as_me: WARNING:     /" >&2
15059    ;;
15060esac
15061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064  echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
15066  eval "$as_ac_Header=\$ac_header_preproc"
15067fi
15068ac_res=`eval echo '${'$as_ac_Header'}'`
15069	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15070echo "${ECHO_T}$ac_res" >&6; }
15071
15072fi
15073if test `eval echo '${'$as_ac_Header'}'` = yes; then
15074  cat >>confdefs.h <<_ACEOF
15075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15076_ACEOF
15077
15078fi
15079
15080done
15081
15082
15083for ac_header in valgrind/valgrind.h
15084do
15085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15090  echo $ECHO_N "(cached) $ECHO_C" >&6
15091fi
15092ac_res=`eval echo '${'$as_ac_Header'}'`
15093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15094echo "${ECHO_T}$ac_res" >&6; }
15095else
15096  # Is the header compilable?
15097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15099cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h.  */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h.  */
15105$ac_includes_default
15106#include <$ac_header>
15107_ACEOF
15108rm -f conftest.$ac_objext
15109if { (ac_try="$ac_compile"
15110case "(($ac_try" in
15111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112  *) ac_try_echo=$ac_try;;
15113esac
15114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115  (eval "$ac_compile") 2>conftest.er1
15116  ac_status=$?
15117  grep -v '^ *+' conftest.er1 >conftest.err
15118  rm -f conftest.er1
15119  cat conftest.err >&5
15120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121  (exit $ac_status); } &&
15122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123  { (case "(($ac_try" in
15124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125  *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128  (eval "$ac_try") 2>&5
15129  ac_status=$?
15130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131  (exit $ac_status); }; } &&
15132	 { ac_try='test -s conftest.$ac_objext'
15133  { (case "(($ac_try" in
15134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135  *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138  (eval "$ac_try") 2>&5
15139  ac_status=$?
15140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141  (exit $ac_status); }; }; then
15142  ac_header_compiler=yes
15143else
15144  echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
15147	ac_header_compiler=no
15148fi
15149
15150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15152echo "${ECHO_T}$ac_header_compiler" >&6; }
15153
15154# Is the header present?
15155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15157cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h.  */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h.  */
15163#include <$ac_header>
15164_ACEOF
15165if { (ac_try="$ac_cpp conftest.$ac_ext"
15166case "(($ac_try" in
15167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168  *) ac_try_echo=$ac_try;;
15169esac
15170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15172  ac_status=$?
15173  grep -v '^ *+' conftest.er1 >conftest.err
15174  rm -f conftest.er1
15175  cat conftest.err >&5
15176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177  (exit $ac_status); } >/dev/null; then
15178  if test -s conftest.err; then
15179    ac_cpp_err=$ac_c_preproc_warn_flag
15180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15181  else
15182    ac_cpp_err=
15183  fi
15184else
15185  ac_cpp_err=yes
15186fi
15187if test -z "$ac_cpp_err"; then
15188  ac_header_preproc=yes
15189else
15190  echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193  ac_header_preproc=no
15194fi
15195
15196rm -f conftest.err conftest.$ac_ext
15197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15198echo "${ECHO_T}$ac_header_preproc" >&6; }
15199
15200# So?  What about this header?
15201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15202  yes:no: )
15203    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15207    ac_header_preproc=yes
15208    ;;
15209  no:yes:* )
15210    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15212    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15213echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15214    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15216    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15217echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15220    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15222    ( cat <<\_ASBOX
15223## ------------------------------ ##
15224## Report this to bugs@yourdomain ##
15225## ------------------------------ ##
15226_ASBOX
15227     ) | sed "s/^/$as_me: WARNING:     /" >&2
15228    ;;
15229esac
15230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233  echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235  eval "$as_ac_Header=\$ac_header_preproc"
15236fi
15237ac_res=`eval echo '${'$as_ac_Header'}'`
15238	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15239echo "${ECHO_T}$ac_res" >&6; }
15240
15241fi
15242if test `eval echo '${'$as_ac_Header'}'` = yes; then
15243  cat >>confdefs.h <<_ACEOF
15244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245_ACEOF
15246
15247fi
15248
15249done
15250
15251
15252for ac_header in fenv.h
15253do
15254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259  echo $ECHO_N "(cached) $ECHO_C" >&6
15260fi
15261ac_res=`eval echo '${'$as_ac_Header'}'`
15262	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15263echo "${ECHO_T}$ac_res" >&6; }
15264else
15265  # Is the header compilable?
15266{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15268cat >conftest.$ac_ext <<_ACEOF
15269/* confdefs.h.  */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h.  */
15274$ac_includes_default
15275#include <$ac_header>
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (ac_try="$ac_compile"
15279case "(($ac_try" in
15280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281  *) ac_try_echo=$ac_try;;
15282esac
15283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284  (eval "$ac_compile") 2>conftest.er1
15285  ac_status=$?
15286  grep -v '^ *+' conftest.er1 >conftest.err
15287  rm -f conftest.er1
15288  cat conftest.err >&5
15289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290  (exit $ac_status); } &&
15291	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292  { (case "(($ac_try" in
15293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294  *) ac_try_echo=$ac_try;;
15295esac
15296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297  (eval "$ac_try") 2>&5
15298  ac_status=$?
15299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300  (exit $ac_status); }; } &&
15301	 { ac_try='test -s conftest.$ac_objext'
15302  { (case "(($ac_try" in
15303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304  *) ac_try_echo=$ac_try;;
15305esac
15306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307  (eval "$ac_try") 2>&5
15308  ac_status=$?
15309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310  (exit $ac_status); }; }; then
15311  ac_header_compiler=yes
15312else
15313  echo "$as_me: failed program was:" >&5
15314sed 's/^/| /' conftest.$ac_ext >&5
15315
15316	ac_header_compiler=no
15317fi
15318
15319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15321echo "${ECHO_T}$ac_header_compiler" >&6; }
15322
15323# Is the header present?
15324{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15326cat >conftest.$ac_ext <<_ACEOF
15327/* confdefs.h.  */
15328_ACEOF
15329cat confdefs.h >>conftest.$ac_ext
15330cat >>conftest.$ac_ext <<_ACEOF
15331/* end confdefs.h.  */
15332#include <$ac_header>
15333_ACEOF
15334if { (ac_try="$ac_cpp conftest.$ac_ext"
15335case "(($ac_try" in
15336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337  *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15341  ac_status=$?
15342  grep -v '^ *+' conftest.er1 >conftest.err
15343  rm -f conftest.er1
15344  cat conftest.err >&5
15345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); } >/dev/null; then
15347  if test -s conftest.err; then
15348    ac_cpp_err=$ac_c_preproc_warn_flag
15349    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15350  else
15351    ac_cpp_err=
15352  fi
15353else
15354  ac_cpp_err=yes
15355fi
15356if test -z "$ac_cpp_err"; then
15357  ac_header_preproc=yes
15358else
15359  echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362  ac_header_preproc=no
15363fi
15364
15365rm -f conftest.err conftest.$ac_ext
15366{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367echo "${ECHO_T}$ac_header_preproc" >&6; }
15368
15369# So?  What about this header?
15370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15371  yes:no: )
15372    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15376    ac_header_preproc=yes
15377    ;;
15378  no:yes:* )
15379    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15381    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15382echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15383    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15385    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15386echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15391    ( cat <<\_ASBOX
15392## ------------------------------ ##
15393## Report this to bugs@yourdomain ##
15394## ------------------------------ ##
15395_ASBOX
15396     ) | sed "s/^/$as_me: WARNING:     /" >&2
15397    ;;
15398esac
15399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15402  echo $ECHO_N "(cached) $ECHO_C" >&6
15403else
15404  eval "$as_ac_Header=\$ac_header_preproc"
15405fi
15406ac_res=`eval echo '${'$as_ac_Header'}'`
15407	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15408echo "${ECHO_T}$ac_res" >&6; }
15409
15410fi
15411if test `eval echo '${'$as_ac_Header'}'` = yes; then
15412  cat >>confdefs.h <<_ACEOF
15413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15414_ACEOF
15415
15416fi
15417
15418done
15419
15420if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15421
15422for ac_header in pthread.h
15423do
15424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429  echo $ECHO_N "(cached) $ECHO_C" >&6
15430fi
15431ac_res=`eval echo '${'$as_ac_Header'}'`
15432	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15433echo "${ECHO_T}$ac_res" >&6; }
15434else
15435  # Is the header compilable?
15436{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h.  */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h.  */
15444$ac_includes_default
15445#include <$ac_header>
15446_ACEOF
15447rm -f conftest.$ac_objext
15448if { (ac_try="$ac_compile"
15449case "(($ac_try" in
15450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451  *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454  (eval "$ac_compile") 2>conftest.er1
15455  ac_status=$?
15456  grep -v '^ *+' conftest.er1 >conftest.err
15457  rm -f conftest.er1
15458  cat conftest.err >&5
15459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460  (exit $ac_status); } &&
15461	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462  { (case "(($ac_try" in
15463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464  *) ac_try_echo=$ac_try;;
15465esac
15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467  (eval "$ac_try") 2>&5
15468  ac_status=$?
15469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470  (exit $ac_status); }; } &&
15471	 { ac_try='test -s conftest.$ac_objext'
15472  { (case "(($ac_try" in
15473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474  *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477  (eval "$ac_try") 2>&5
15478  ac_status=$?
15479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480  (exit $ac_status); }; }; then
15481  ac_header_compiler=yes
15482else
15483  echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
15486	ac_header_compiler=no
15487fi
15488
15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491echo "${ECHO_T}$ac_header_compiler" >&6; }
15492
15493# Is the header present?
15494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496cat >conftest.$ac_ext <<_ACEOF
15497/* confdefs.h.  */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h.  */
15502#include <$ac_header>
15503_ACEOF
15504if { (ac_try="$ac_cpp conftest.$ac_ext"
15505case "(($ac_try" in
15506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507  *) ac_try_echo=$ac_try;;
15508esac
15509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15511  ac_status=$?
15512  grep -v '^ *+' conftest.er1 >conftest.err
15513  rm -f conftest.er1
15514  cat conftest.err >&5
15515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516  (exit $ac_status); } >/dev/null; then
15517  if test -s conftest.err; then
15518    ac_cpp_err=$ac_c_preproc_warn_flag
15519    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520  else
15521    ac_cpp_err=
15522  fi
15523else
15524  ac_cpp_err=yes
15525fi
15526if test -z "$ac_cpp_err"; then
15527  ac_header_preproc=yes
15528else
15529  echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532  ac_header_preproc=no
15533fi
15534
15535rm -f conftest.err conftest.$ac_ext
15536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537echo "${ECHO_T}$ac_header_preproc" >&6; }
15538
15539# So?  What about this header?
15540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541  yes:no: )
15542    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546    ac_header_preproc=yes
15547    ;;
15548  no:yes:* )
15549    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15552echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15553    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15556echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561    ( cat <<\_ASBOX
15562## ------------------------------ ##
15563## Report this to bugs@yourdomain ##
15564## ------------------------------ ##
15565_ASBOX
15566     ) | sed "s/^/$as_me: WARNING:     /" >&2
15567    ;;
15568esac
15569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572  echo $ECHO_N "(cached) $ECHO_C" >&6
15573else
15574  eval "$as_ac_Header=\$ac_header_preproc"
15575fi
15576ac_res=`eval echo '${'$as_ac_Header'}'`
15577	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15578echo "${ECHO_T}$ac_res" >&6; }
15579
15580fi
15581if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582  cat >>confdefs.h <<_ACEOF
15583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584_ACEOF
15585 HAVE_PTHREAD=1
15586
15587else
15588  HAVE_PTHREAD=0
15589
15590fi
15591
15592done
15593
15594else
15595  HAVE_PTHREAD=0
15596
15597fi
15598
15599if test "$llvm_cv_enable_libffi" = "yes" ; then
15600
15601
15602for ac_header in ffi.h ffi/ffi.h
15603do
15604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15609  echo $ECHO_N "(cached) $ECHO_C" >&6
15610fi
15611ac_res=`eval echo '${'$as_ac_Header'}'`
15612	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15613echo "${ECHO_T}$ac_res" >&6; }
15614else
15615  # Is the header compilable?
15616{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h.  */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h.  */
15624$ac_includes_default
15625#include <$ac_header>
15626_ACEOF
15627rm -f conftest.$ac_objext
15628if { (ac_try="$ac_compile"
15629case "(($ac_try" in
15630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631  *) ac_try_echo=$ac_try;;
15632esac
15633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634  (eval "$ac_compile") 2>conftest.er1
15635  ac_status=$?
15636  grep -v '^ *+' conftest.er1 >conftest.err
15637  rm -f conftest.er1
15638  cat conftest.err >&5
15639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640  (exit $ac_status); } &&
15641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15642  { (case "(($ac_try" in
15643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644  *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647  (eval "$ac_try") 2>&5
15648  ac_status=$?
15649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650  (exit $ac_status); }; } &&
15651	 { ac_try='test -s conftest.$ac_objext'
15652  { (case "(($ac_try" in
15653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654  *) ac_try_echo=$ac_try;;
15655esac
15656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657  (eval "$ac_try") 2>&5
15658  ac_status=$?
15659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660  (exit $ac_status); }; }; then
15661  ac_header_compiler=yes
15662else
15663  echo "$as_me: failed program was:" >&5
15664sed 's/^/| /' conftest.$ac_ext >&5
15665
15666	ac_header_compiler=no
15667fi
15668
15669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15671echo "${ECHO_T}$ac_header_compiler" >&6; }
15672
15673# Is the header present?
15674{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15676cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h.  */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h.  */
15682#include <$ac_header>
15683_ACEOF
15684if { (ac_try="$ac_cpp conftest.$ac_ext"
15685case "(($ac_try" in
15686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687  *) ac_try_echo=$ac_try;;
15688esac
15689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15691  ac_status=$?
15692  grep -v '^ *+' conftest.er1 >conftest.err
15693  rm -f conftest.er1
15694  cat conftest.err >&5
15695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696  (exit $ac_status); } >/dev/null; then
15697  if test -s conftest.err; then
15698    ac_cpp_err=$ac_c_preproc_warn_flag
15699    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15700  else
15701    ac_cpp_err=
15702  fi
15703else
15704  ac_cpp_err=yes
15705fi
15706if test -z "$ac_cpp_err"; then
15707  ac_header_preproc=yes
15708else
15709  echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712  ac_header_preproc=no
15713fi
15714
15715rm -f conftest.err conftest.$ac_ext
15716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717echo "${ECHO_T}$ac_header_preproc" >&6; }
15718
15719# So?  What about this header?
15720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15721  yes:no: )
15722    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15726    ac_header_preproc=yes
15727    ;;
15728  no:yes:* )
15729    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15731    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15732echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15733    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15735    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15736echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15737    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15739    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15741    ( cat <<\_ASBOX
15742## ------------------------------ ##
15743## Report this to bugs@yourdomain ##
15744## ------------------------------ ##
15745_ASBOX
15746     ) | sed "s/^/$as_me: WARNING:     /" >&2
15747    ;;
15748esac
15749{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752  echo $ECHO_N "(cached) $ECHO_C" >&6
15753else
15754  eval "$as_ac_Header=\$ac_header_preproc"
15755fi
15756ac_res=`eval echo '${'$as_ac_Header'}'`
15757	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15758echo "${ECHO_T}$ac_res" >&6; }
15759
15760fi
15761if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762  cat >>confdefs.h <<_ACEOF
15763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764_ACEOF
15765
15766fi
15767
15768done
15769
15770fi
15771
15772
15773for ac_header in CrashReporterClient.h
15774do
15775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780  echo $ECHO_N "(cached) $ECHO_C" >&6
15781fi
15782ac_res=`eval echo '${'$as_ac_Header'}'`
15783	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15784echo "${ECHO_T}$ac_res" >&6; }
15785else
15786  # Is the header compilable?
15787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h.  */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h.  */
15795$ac_includes_default
15796#include <$ac_header>
15797_ACEOF
15798rm -f conftest.$ac_objext
15799if { (ac_try="$ac_compile"
15800case "(($ac_try" in
15801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802  *) ac_try_echo=$ac_try;;
15803esac
15804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805  (eval "$ac_compile") 2>conftest.er1
15806  ac_status=$?
15807  grep -v '^ *+' conftest.er1 >conftest.err
15808  rm -f conftest.er1
15809  cat conftest.err >&5
15810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811  (exit $ac_status); } &&
15812	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15813  { (case "(($ac_try" in
15814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815  *) ac_try_echo=$ac_try;;
15816esac
15817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818  (eval "$ac_try") 2>&5
15819  ac_status=$?
15820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821  (exit $ac_status); }; } &&
15822	 { ac_try='test -s conftest.$ac_objext'
15823  { (case "(($ac_try" in
15824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825  *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828  (eval "$ac_try") 2>&5
15829  ac_status=$?
15830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831  (exit $ac_status); }; }; then
15832  ac_header_compiler=yes
15833else
15834  echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837	ac_header_compiler=no
15838fi
15839
15840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15842echo "${ECHO_T}$ac_header_compiler" >&6; }
15843
15844# Is the header present?
15845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15847cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h.  */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h.  */
15853#include <$ac_header>
15854_ACEOF
15855if { (ac_try="$ac_cpp conftest.$ac_ext"
15856case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
15862  ac_status=$?
15863  grep -v '^ *+' conftest.er1 >conftest.err
15864  rm -f conftest.er1
15865  cat conftest.err >&5
15866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867  (exit $ac_status); } >/dev/null; then
15868  if test -s conftest.err; then
15869    ac_cpp_err=$ac_c_preproc_warn_flag
15870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15871  else
15872    ac_cpp_err=
15873  fi
15874else
15875  ac_cpp_err=yes
15876fi
15877if test -z "$ac_cpp_err"; then
15878  ac_header_preproc=yes
15879else
15880  echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883  ac_header_preproc=no
15884fi
15885
15886rm -f conftest.err conftest.$ac_ext
15887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15888echo "${ECHO_T}$ac_header_preproc" >&6; }
15889
15890# So?  What about this header?
15891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15892  yes:no: )
15893    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15897    ac_header_preproc=yes
15898    ;;
15899  no:yes:* )
15900    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15902    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15903echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15904    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15906    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15907echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15912    ( cat <<\_ASBOX
15913## ------------------------------ ##
15914## Report this to bugs@yourdomain ##
15915## ------------------------------ ##
15916_ASBOX
15917     ) | sed "s/^/$as_me: WARNING:     /" >&2
15918    ;;
15919esac
15920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923  echo $ECHO_N "(cached) $ECHO_C" >&6
15924else
15925  eval "$as_ac_Header=\$ac_header_preproc"
15926fi
15927ac_res=`eval echo '${'$as_ac_Header'}'`
15928	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15929echo "${ECHO_T}$ac_res" >&6; }
15930
15931fi
15932if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933  cat >>confdefs.h <<_ACEOF
15934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935_ACEOF
15936
15937fi
15938
15939done
15940
15941
15942{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15943echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15944cat >conftest.$ac_ext <<_ACEOF
15945/* confdefs.h.  */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h.  */
15950extern const char *__crashreporter_info__;
15951      int main() {
15952        __crashreporter_info__ = "test";
15953        return 0;
15954      }
15955
15956_ACEOF
15957rm -f conftest.$ac_objext conftest$ac_exeext
15958if { (ac_try="$ac_link"
15959case "(($ac_try" in
15960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961  *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964  (eval "$ac_link") 2>conftest.er1
15965  ac_status=$?
15966  grep -v '^ *+' conftest.er1 >conftest.err
15967  rm -f conftest.er1
15968  cat conftest.err >&5
15969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970  (exit $ac_status); } &&
15971	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15972  { (case "(($ac_try" in
15973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974  *) ac_try_echo=$ac_try;;
15975esac
15976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977  (eval "$ac_try") 2>&5
15978  ac_status=$?
15979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980  (exit $ac_status); }; } &&
15981	 { ac_try='test -s conftest$ac_exeext'
15982  { (case "(($ac_try" in
15983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984  *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987  (eval "$ac_try") 2>&5
15988  ac_status=$?
15989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990  (exit $ac_status); }; }; then
15991  { echo "$as_me:$LINENO: result: yes" >&5
15992echo "${ECHO_T}yes" >&6; }
15993
15994cat >>confdefs.h <<\_ACEOF
15995#define HAVE_CRASHREPORTER_INFO 1
15996_ACEOF
15997
15998else
15999  echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
16002	{ echo "$as_me:$LINENO: result: no" >&5
16003echo "${ECHO_T}no" >&6; }
16004
16005cat >>confdefs.h <<\_ACEOF
16006#define HAVE_CRASHREPORTER_INFO 0
16007_ACEOF
16008
16009fi
16010
16011rm -f core conftest.err conftest.$ac_objext \
16012      conftest$ac_exeext conftest.$ac_ext
16013
16014
16015
16016
16017  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16018echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16019if test "${ac_cv_huge_val_sanity+set}" = set; then
16020  echo $ECHO_N "(cached) $ECHO_C" >&6
16021else
16022
16023    ac_ext=cpp
16024ac_cpp='$CXXCPP $CPPFLAGS'
16025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16028
16029    ac_save_CXXFLAGS=$CXXFLAGS
16030    CXXFLAGS=-pedantic
16031    if test "$cross_compiling" = yes; then
16032  ac_cv_huge_val_sanity=yes
16033else
16034  cat >conftest.$ac_ext <<_ACEOF
16035/* confdefs.h.  */
16036_ACEOF
16037cat confdefs.h >>conftest.$ac_ext
16038cat >>conftest.$ac_ext <<_ACEOF
16039/* end confdefs.h.  */
16040#include <math.h>
16041int
16042main ()
16043{
16044double x = HUGE_VAL; return x != x;
16045  ;
16046  return 0;
16047}
16048_ACEOF
16049rm -f conftest$ac_exeext
16050if { (ac_try="$ac_link"
16051case "(($ac_try" in
16052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053  *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056  (eval "$ac_link") 2>&5
16057  ac_status=$?
16058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16060  { (case "(($ac_try" in
16061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062  *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065  (eval "$ac_try") 2>&5
16066  ac_status=$?
16067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); }; }; then
16069  ac_cv_huge_val_sanity=yes
16070else
16071  echo "$as_me: program exited with status $ac_status" >&5
16072echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075( exit $ac_status )
16076ac_cv_huge_val_sanity=no
16077fi
16078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16079fi
16080
16081
16082    CXXFLAGS=$ac_save_CXXFLAGS
16083    ac_ext=c
16084ac_cpp='$CPP $CPPFLAGS'
16085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088
16089
16090fi
16091{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16092echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16093  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16094
16095
16096{ echo "$as_me:$LINENO: checking for pid_t" >&5
16097echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16098if test "${ac_cv_type_pid_t+set}" = set; then
16099  echo $ECHO_N "(cached) $ECHO_C" >&6
16100else
16101  cat >conftest.$ac_ext <<_ACEOF
16102/* confdefs.h.  */
16103_ACEOF
16104cat confdefs.h >>conftest.$ac_ext
16105cat >>conftest.$ac_ext <<_ACEOF
16106/* end confdefs.h.  */
16107$ac_includes_default
16108typedef pid_t ac__type_new_;
16109int
16110main ()
16111{
16112if ((ac__type_new_ *) 0)
16113  return 0;
16114if (sizeof (ac__type_new_))
16115  return 0;
16116  ;
16117  return 0;
16118}
16119_ACEOF
16120rm -f conftest.$ac_objext
16121if { (ac_try="$ac_compile"
16122case "(($ac_try" in
16123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124  *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127  (eval "$ac_compile") 2>conftest.er1
16128  ac_status=$?
16129  grep -v '^ *+' conftest.er1 >conftest.err
16130  rm -f conftest.er1
16131  cat conftest.err >&5
16132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133  (exit $ac_status); } &&
16134	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135  { (case "(($ac_try" in
16136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137  *) ac_try_echo=$ac_try;;
16138esac
16139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140  (eval "$ac_try") 2>&5
16141  ac_status=$?
16142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143  (exit $ac_status); }; } &&
16144	 { ac_try='test -s conftest.$ac_objext'
16145  { (case "(($ac_try" in
16146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147  *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150  (eval "$ac_try") 2>&5
16151  ac_status=$?
16152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153  (exit $ac_status); }; }; then
16154  ac_cv_type_pid_t=yes
16155else
16156  echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159	ac_cv_type_pid_t=no
16160fi
16161
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163fi
16164{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16165echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16166if test $ac_cv_type_pid_t = yes; then
16167  :
16168else
16169
16170cat >>confdefs.h <<_ACEOF
16171#define pid_t int
16172_ACEOF
16173
16174fi
16175
16176{ echo "$as_me:$LINENO: checking for size_t" >&5
16177echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16178if test "${ac_cv_type_size_t+set}" = set; then
16179  echo $ECHO_N "(cached) $ECHO_C" >&6
16180else
16181  cat >conftest.$ac_ext <<_ACEOF
16182/* confdefs.h.  */
16183_ACEOF
16184cat confdefs.h >>conftest.$ac_ext
16185cat >>conftest.$ac_ext <<_ACEOF
16186/* end confdefs.h.  */
16187$ac_includes_default
16188typedef size_t ac__type_new_;
16189int
16190main ()
16191{
16192if ((ac__type_new_ *) 0)
16193  return 0;
16194if (sizeof (ac__type_new_))
16195  return 0;
16196  ;
16197  return 0;
16198}
16199_ACEOF
16200rm -f conftest.$ac_objext
16201if { (ac_try="$ac_compile"
16202case "(($ac_try" in
16203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204  *) ac_try_echo=$ac_try;;
16205esac
16206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207  (eval "$ac_compile") 2>conftest.er1
16208  ac_status=$?
16209  grep -v '^ *+' conftest.er1 >conftest.err
16210  rm -f conftest.er1
16211  cat conftest.err >&5
16212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213  (exit $ac_status); } &&
16214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215  { (case "(($ac_try" in
16216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217  *) ac_try_echo=$ac_try;;
16218esac
16219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220  (eval "$ac_try") 2>&5
16221  ac_status=$?
16222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223  (exit $ac_status); }; } &&
16224	 { ac_try='test -s conftest.$ac_objext'
16225  { (case "(($ac_try" in
16226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227  *) ac_try_echo=$ac_try;;
16228esac
16229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230  (eval "$ac_try") 2>&5
16231  ac_status=$?
16232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233  (exit $ac_status); }; }; then
16234  ac_cv_type_size_t=yes
16235else
16236  echo "$as_me: failed program was:" >&5
16237sed 's/^/| /' conftest.$ac_ext >&5
16238
16239	ac_cv_type_size_t=no
16240fi
16241
16242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243fi
16244{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16245echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16246if test $ac_cv_type_size_t = yes; then
16247  :
16248else
16249
16250cat >>confdefs.h <<_ACEOF
16251#define size_t unsigned int
16252_ACEOF
16253
16254fi
16255
16256
16257cat >>confdefs.h <<_ACEOF
16258#define RETSIGTYPE void
16259_ACEOF
16260
16261{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16262echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16263if test "${ac_cv_struct_tm+set}" = set; then
16264  echo $ECHO_N "(cached) $ECHO_C" >&6
16265else
16266  cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h.  */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h.  */
16272#include <sys/types.h>
16273#include <time.h>
16274
16275int
16276main ()
16277{
16278struct tm *tp; tp->tm_sec;
16279  ;
16280  return 0;
16281}
16282_ACEOF
16283rm -f conftest.$ac_objext
16284if { (ac_try="$ac_compile"
16285case "(($ac_try" in
16286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287  *) ac_try_echo=$ac_try;;
16288esac
16289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290  (eval "$ac_compile") 2>conftest.er1
16291  ac_status=$?
16292  grep -v '^ *+' conftest.er1 >conftest.err
16293  rm -f conftest.er1
16294  cat conftest.err >&5
16295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296  (exit $ac_status); } &&
16297	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16298  { (case "(($ac_try" in
16299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300  *) ac_try_echo=$ac_try;;
16301esac
16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303  (eval "$ac_try") 2>&5
16304  ac_status=$?
16305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306  (exit $ac_status); }; } &&
16307	 { ac_try='test -s conftest.$ac_objext'
16308  { (case "(($ac_try" in
16309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310  *) ac_try_echo=$ac_try;;
16311esac
16312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313  (eval "$ac_try") 2>&5
16314  ac_status=$?
16315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316  (exit $ac_status); }; }; then
16317  ac_cv_struct_tm=time.h
16318else
16319  echo "$as_me: failed program was:" >&5
16320sed 's/^/| /' conftest.$ac_ext >&5
16321
16322	ac_cv_struct_tm=sys/time.h
16323fi
16324
16325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326fi
16327{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16328echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16329if test $ac_cv_struct_tm = sys/time.h; then
16330
16331cat >>confdefs.h <<\_ACEOF
16332#define TM_IN_SYS_TIME 1
16333_ACEOF
16334
16335fi
16336
16337{ echo "$as_me:$LINENO: checking for int64_t" >&5
16338echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16339if test "${ac_cv_type_int64_t+set}" = set; then
16340  echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342  cat >conftest.$ac_ext <<_ACEOF
16343/* confdefs.h.  */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h.  */
16348$ac_includes_default
16349typedef int64_t ac__type_new_;
16350int
16351main ()
16352{
16353if ((ac__type_new_ *) 0)
16354  return 0;
16355if (sizeof (ac__type_new_))
16356  return 0;
16357  ;
16358  return 0;
16359}
16360_ACEOF
16361rm -f conftest.$ac_objext
16362if { (ac_try="$ac_compile"
16363case "(($ac_try" in
16364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365  *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368  (eval "$ac_compile") 2>conftest.er1
16369  ac_status=$?
16370  grep -v '^ *+' conftest.er1 >conftest.err
16371  rm -f conftest.er1
16372  cat conftest.err >&5
16373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374  (exit $ac_status); } &&
16375	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376  { (case "(($ac_try" in
16377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378  *) ac_try_echo=$ac_try;;
16379esac
16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381  (eval "$ac_try") 2>&5
16382  ac_status=$?
16383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384  (exit $ac_status); }; } &&
16385	 { ac_try='test -s conftest.$ac_objext'
16386  { (case "(($ac_try" in
16387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388  *) ac_try_echo=$ac_try;;
16389esac
16390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391  (eval "$ac_try") 2>&5
16392  ac_status=$?
16393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394  (exit $ac_status); }; }; then
16395  ac_cv_type_int64_t=yes
16396else
16397  echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400	ac_cv_type_int64_t=no
16401fi
16402
16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404fi
16405{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16406echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16407if test $ac_cv_type_int64_t = yes; then
16408
16409cat >>confdefs.h <<_ACEOF
16410#define HAVE_INT64_T 1
16411_ACEOF
16412
16413
16414else
16415  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16416echo "$as_me: error: Type int64_t required but not found" >&2;}
16417   { (exit 1); exit 1; }; }
16418fi
16419
16420{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16421echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16422if test "${ac_cv_type_uint64_t+set}" = set; then
16423  echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425  cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h.  */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h.  */
16431$ac_includes_default
16432typedef uint64_t ac__type_new_;
16433int
16434main ()
16435{
16436if ((ac__type_new_ *) 0)
16437  return 0;
16438if (sizeof (ac__type_new_))
16439  return 0;
16440  ;
16441  return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (ac_try="$ac_compile"
16446case "(($ac_try" in
16447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448  *) ac_try_echo=$ac_try;;
16449esac
16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451  (eval "$ac_compile") 2>conftest.er1
16452  ac_status=$?
16453  grep -v '^ *+' conftest.er1 >conftest.err
16454  rm -f conftest.er1
16455  cat conftest.err >&5
16456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457  (exit $ac_status); } &&
16458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459  { (case "(($ac_try" in
16460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461  *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464  (eval "$ac_try") 2>&5
16465  ac_status=$?
16466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467  (exit $ac_status); }; } &&
16468	 { ac_try='test -s conftest.$ac_objext'
16469  { (case "(($ac_try" in
16470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471  *) ac_try_echo=$ac_try;;
16472esac
16473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474  (eval "$ac_try") 2>&5
16475  ac_status=$?
16476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477  (exit $ac_status); }; }; then
16478  ac_cv_type_uint64_t=yes
16479else
16480  echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483	ac_cv_type_uint64_t=no
16484fi
16485
16486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487fi
16488{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16489echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16490if test $ac_cv_type_uint64_t = yes; then
16491
16492cat >>confdefs.h <<_ACEOF
16493#define HAVE_UINT64_T 1
16494_ACEOF
16495
16496
16497else
16498  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16499echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16500if test "${ac_cv_type_u_int64_t+set}" = set; then
16501  echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503  cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h.  */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h.  */
16509$ac_includes_default
16510typedef u_int64_t ac__type_new_;
16511int
16512main ()
16513{
16514if ((ac__type_new_ *) 0)
16515  return 0;
16516if (sizeof (ac__type_new_))
16517  return 0;
16518  ;
16519  return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (ac_try="$ac_compile"
16524case "(($ac_try" in
16525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526  *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529  (eval "$ac_compile") 2>conftest.er1
16530  ac_status=$?
16531  grep -v '^ *+' conftest.er1 >conftest.err
16532  rm -f conftest.er1
16533  cat conftest.err >&5
16534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535  (exit $ac_status); } &&
16536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537  { (case "(($ac_try" in
16538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539  *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542  (eval "$ac_try") 2>&5
16543  ac_status=$?
16544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545  (exit $ac_status); }; } &&
16546	 { ac_try='test -s conftest.$ac_objext'
16547  { (case "(($ac_try" in
16548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549  *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552  (eval "$ac_try") 2>&5
16553  ac_status=$?
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); }; }; then
16556  ac_cv_type_u_int64_t=yes
16557else
16558  echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561	ac_cv_type_u_int64_t=no
16562fi
16563
16564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565fi
16566{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16567echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16568if test $ac_cv_type_u_int64_t = yes; then
16569
16570cat >>confdefs.h <<_ACEOF
16571#define HAVE_U_INT64_T 1
16572_ACEOF
16573
16574
16575else
16576  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16577echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16578   { (exit 1); exit 1; }; }
16579fi
16580
16581fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16593do
16594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16598  echo $ECHO_N "(cached) $ECHO_C" >&6
16599else
16600  cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h.  */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h.  */
16606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16607   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16608#define $ac_func innocuous_$ac_func
16609
16610/* System header to define __stub macros and hopefully few prototypes,
16611    which can conflict with char $ac_func (); below.
16612    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16613    <limits.h> exists even on freestanding compilers.  */
16614
16615#ifdef __STDC__
16616# include <limits.h>
16617#else
16618# include <assert.h>
16619#endif
16620
16621#undef $ac_func
16622
16623/* Override any GCC internal prototype to avoid an error.
16624   Use char because int might match the return type of a GCC
16625   builtin and then its argument prototype would still apply.  */
16626#ifdef __cplusplus
16627extern "C"
16628#endif
16629char $ac_func ();
16630/* The GNU C library defines this for functions which it implements
16631    to always fail with ENOSYS.  Some functions are actually named
16632    something starting with __ and the normal name is an alias.  */
16633#if defined __stub_$ac_func || defined __stub___$ac_func
16634choke me
16635#endif
16636
16637int
16638main ()
16639{
16640return $ac_func ();
16641  ;
16642  return 0;
16643}
16644_ACEOF
16645rm -f conftest.$ac_objext conftest$ac_exeext
16646if { (ac_try="$ac_link"
16647case "(($ac_try" in
16648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649  *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652  (eval "$ac_link") 2>conftest.er1
16653  ac_status=$?
16654  grep -v '^ *+' conftest.er1 >conftest.err
16655  rm -f conftest.er1
16656  cat conftest.err >&5
16657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658  (exit $ac_status); } &&
16659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660  { (case "(($ac_try" in
16661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662  *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665  (eval "$ac_try") 2>&5
16666  ac_status=$?
16667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668  (exit $ac_status); }; } &&
16669	 { ac_try='test -s conftest$ac_exeext'
16670  { (case "(($ac_try" in
16671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672  *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675  (eval "$ac_try") 2>&5
16676  ac_status=$?
16677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678  (exit $ac_status); }; }; then
16679  eval "$as_ac_var=yes"
16680else
16681  echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684	eval "$as_ac_var=no"
16685fi
16686
16687rm -f core conftest.err conftest.$ac_objext \
16688      conftest$ac_exeext conftest.$ac_ext
16689fi
16690ac_res=`eval echo '${'$as_ac_var'}'`
16691	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16692echo "${ECHO_T}$ac_res" >&6; }
16693if test `eval echo '${'$as_ac_var'}'` = yes; then
16694  cat >>confdefs.h <<_ACEOF
16695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16696_ACEOF
16697
16698fi
16699done
16700
16701
16702
16703
16704
16705for ac_func in powf fmodf strtof round
16706do
16707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16710if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711  echo $ECHO_N "(cached) $ECHO_C" >&6
16712else
16713  cat >conftest.$ac_ext <<_ACEOF
16714/* confdefs.h.  */
16715_ACEOF
16716cat confdefs.h >>conftest.$ac_ext
16717cat >>conftest.$ac_ext <<_ACEOF
16718/* end confdefs.h.  */
16719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16721#define $ac_func innocuous_$ac_func
16722
16723/* System header to define __stub macros and hopefully few prototypes,
16724    which can conflict with char $ac_func (); below.
16725    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726    <limits.h> exists even on freestanding compilers.  */
16727
16728#ifdef __STDC__
16729# include <limits.h>
16730#else
16731# include <assert.h>
16732#endif
16733
16734#undef $ac_func
16735
16736/* Override any GCC internal prototype to avoid an error.
16737   Use char because int might match the return type of a GCC
16738   builtin and then its argument prototype would still apply.  */
16739#ifdef __cplusplus
16740extern "C"
16741#endif
16742char $ac_func ();
16743/* The GNU C library defines this for functions which it implements
16744    to always fail with ENOSYS.  Some functions are actually named
16745    something starting with __ and the normal name is an alias.  */
16746#if defined __stub_$ac_func || defined __stub___$ac_func
16747choke me
16748#endif
16749
16750int
16751main ()
16752{
16753return $ac_func ();
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext conftest$ac_exeext
16759if { (ac_try="$ac_link"
16760case "(($ac_try" in
16761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762  *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765  (eval "$ac_link") 2>conftest.er1
16766  ac_status=$?
16767  grep -v '^ *+' conftest.er1 >conftest.err
16768  rm -f conftest.er1
16769  cat conftest.err >&5
16770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771  (exit $ac_status); } &&
16772	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773  { (case "(($ac_try" in
16774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775  *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778  (eval "$ac_try") 2>&5
16779  ac_status=$?
16780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781  (exit $ac_status); }; } &&
16782	 { ac_try='test -s conftest$ac_exeext'
16783  { (case "(($ac_try" in
16784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785  *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788  (eval "$ac_try") 2>&5
16789  ac_status=$?
16790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791  (exit $ac_status); }; }; then
16792  eval "$as_ac_var=yes"
16793else
16794  echo "$as_me: failed program was:" >&5
16795sed 's/^/| /' conftest.$ac_ext >&5
16796
16797	eval "$as_ac_var=no"
16798fi
16799
16800rm -f core conftest.err conftest.$ac_objext \
16801      conftest$ac_exeext conftest.$ac_ext
16802fi
16803ac_res=`eval echo '${'$as_ac_var'}'`
16804	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16805echo "${ECHO_T}$ac_res" >&6; }
16806if test `eval echo '${'$as_ac_var'}'` = yes; then
16807  cat >>confdefs.h <<_ACEOF
16808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16809_ACEOF
16810
16811fi
16812done
16813
16814
16815
16816
16817
16818
16819for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16820do
16821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825  echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827  cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h.  */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h.  */
16833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16835#define $ac_func innocuous_$ac_func
16836
16837/* System header to define __stub macros and hopefully few prototypes,
16838    which can conflict with char $ac_func (); below.
16839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840    <limits.h> exists even on freestanding compilers.  */
16841
16842#ifdef __STDC__
16843# include <limits.h>
16844#else
16845# include <assert.h>
16846#endif
16847
16848#undef $ac_func
16849
16850/* Override any GCC internal prototype to avoid an error.
16851   Use char because int might match the return type of a GCC
16852   builtin and then its argument prototype would still apply.  */
16853#ifdef __cplusplus
16854extern "C"
16855#endif
16856char $ac_func ();
16857/* The GNU C library defines this for functions which it implements
16858    to always fail with ENOSYS.  Some functions are actually named
16859    something starting with __ and the normal name is an alias.  */
16860#if defined __stub_$ac_func || defined __stub___$ac_func
16861choke me
16862#endif
16863
16864int
16865main ()
16866{
16867return $ac_func ();
16868  ;
16869  return 0;
16870}
16871_ACEOF
16872rm -f conftest.$ac_objext conftest$ac_exeext
16873if { (ac_try="$ac_link"
16874case "(($ac_try" in
16875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876  *) ac_try_echo=$ac_try;;
16877esac
16878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879  (eval "$ac_link") 2>conftest.er1
16880  ac_status=$?
16881  grep -v '^ *+' conftest.er1 >conftest.err
16882  rm -f conftest.er1
16883  cat conftest.err >&5
16884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885  (exit $ac_status); } &&
16886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887  { (case "(($ac_try" in
16888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889  *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892  (eval "$ac_try") 2>&5
16893  ac_status=$?
16894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895  (exit $ac_status); }; } &&
16896	 { ac_try='test -s conftest$ac_exeext'
16897  { (case "(($ac_try" in
16898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899  *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902  (eval "$ac_try") 2>&5
16903  ac_status=$?
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); }; }; then
16906  eval "$as_ac_var=yes"
16907else
16908  echo "$as_me: failed program was:" >&5
16909sed 's/^/| /' conftest.$ac_ext >&5
16910
16911	eval "$as_ac_var=no"
16912fi
16913
16914rm -f core conftest.err conftest.$ac_objext \
16915      conftest$ac_exeext conftest.$ac_ext
16916fi
16917ac_res=`eval echo '${'$as_ac_var'}'`
16918	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16919echo "${ECHO_T}$ac_res" >&6; }
16920if test `eval echo '${'$as_ac_var'}'` = yes; then
16921  cat >>confdefs.h <<_ACEOF
16922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923_ACEOF
16924
16925fi
16926done
16927
16928
16929
16930
16931for ac_func in isatty mkdtemp mkstemp
16932do
16933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16937  echo $ECHO_N "(cached) $ECHO_C" >&6
16938else
16939  cat >conftest.$ac_ext <<_ACEOF
16940/* confdefs.h.  */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h.  */
16945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16947#define $ac_func innocuous_$ac_func
16948
16949/* System header to define __stub macros and hopefully few prototypes,
16950    which can conflict with char $ac_func (); below.
16951    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952    <limits.h> exists even on freestanding compilers.  */
16953
16954#ifdef __STDC__
16955# include <limits.h>
16956#else
16957# include <assert.h>
16958#endif
16959
16960#undef $ac_func
16961
16962/* Override any GCC internal prototype to avoid an error.
16963   Use char because int might match the return type of a GCC
16964   builtin and then its argument prototype would still apply.  */
16965#ifdef __cplusplus
16966extern "C"
16967#endif
16968char $ac_func ();
16969/* The GNU C library defines this for functions which it implements
16970    to always fail with ENOSYS.  Some functions are actually named
16971    something starting with __ and the normal name is an alias.  */
16972#if defined __stub_$ac_func || defined __stub___$ac_func
16973choke me
16974#endif
16975
16976int
16977main ()
16978{
16979return $ac_func ();
16980  ;
16981  return 0;
16982}
16983_ACEOF
16984rm -f conftest.$ac_objext conftest$ac_exeext
16985if { (ac_try="$ac_link"
16986case "(($ac_try" in
16987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988  *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991  (eval "$ac_link") 2>conftest.er1
16992  ac_status=$?
16993  grep -v '^ *+' conftest.er1 >conftest.err
16994  rm -f conftest.er1
16995  cat conftest.err >&5
16996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997  (exit $ac_status); } &&
16998	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16999  { (case "(($ac_try" in
17000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001  *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004  (eval "$ac_try") 2>&5
17005  ac_status=$?
17006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007  (exit $ac_status); }; } &&
17008	 { ac_try='test -s conftest$ac_exeext'
17009  { (case "(($ac_try" in
17010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011  *) ac_try_echo=$ac_try;;
17012esac
17013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014  (eval "$ac_try") 2>&5
17015  ac_status=$?
17016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017  (exit $ac_status); }; }; then
17018  eval "$as_ac_var=yes"
17019else
17020  echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023	eval "$as_ac_var=no"
17024fi
17025
17026rm -f core conftest.err conftest.$ac_objext \
17027      conftest$ac_exeext conftest.$ac_ext
17028fi
17029ac_res=`eval echo '${'$as_ac_var'}'`
17030	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17031echo "${ECHO_T}$ac_res" >&6; }
17032if test `eval echo '${'$as_ac_var'}'` = yes; then
17033  cat >>confdefs.h <<_ACEOF
17034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17035_ACEOF
17036
17037fi
17038done
17039
17040
17041
17042
17043
17044
17045
17046for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17047do
17048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17052  echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054  cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h.  */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h.  */
17060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17061   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17062#define $ac_func innocuous_$ac_func
17063
17064/* System header to define __stub macros and hopefully few prototypes,
17065    which can conflict with char $ac_func (); below.
17066    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17067    <limits.h> exists even on freestanding compilers.  */
17068
17069#ifdef __STDC__
17070# include <limits.h>
17071#else
17072# include <assert.h>
17073#endif
17074
17075#undef $ac_func
17076
17077/* Override any GCC internal prototype to avoid an error.
17078   Use char because int might match the return type of a GCC
17079   builtin and then its argument prototype would still apply.  */
17080#ifdef __cplusplus
17081extern "C"
17082#endif
17083char $ac_func ();
17084/* The GNU C library defines this for functions which it implements
17085    to always fail with ENOSYS.  Some functions are actually named
17086    something starting with __ and the normal name is an alias.  */
17087#if defined __stub_$ac_func || defined __stub___$ac_func
17088choke me
17089#endif
17090
17091int
17092main ()
17093{
17094return $ac_func ();
17095  ;
17096  return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext conftest$ac_exeext
17100if { (ac_try="$ac_link"
17101case "(($ac_try" in
17102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103  *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106  (eval "$ac_link") 2>conftest.er1
17107  ac_status=$?
17108  grep -v '^ *+' conftest.er1 >conftest.err
17109  rm -f conftest.er1
17110  cat conftest.err >&5
17111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112  (exit $ac_status); } &&
17113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114  { (case "(($ac_try" in
17115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116  *) ac_try_echo=$ac_try;;
17117esac
17118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119  (eval "$ac_try") 2>&5
17120  ac_status=$?
17121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122  (exit $ac_status); }; } &&
17123	 { ac_try='test -s conftest$ac_exeext'
17124  { (case "(($ac_try" in
17125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126  *) ac_try_echo=$ac_try;;
17127esac
17128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129  (eval "$ac_try") 2>&5
17130  ac_status=$?
17131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132  (exit $ac_status); }; }; then
17133  eval "$as_ac_var=yes"
17134else
17135  echo "$as_me: failed program was:" >&5
17136sed 's/^/| /' conftest.$ac_ext >&5
17137
17138	eval "$as_ac_var=no"
17139fi
17140
17141rm -f core conftest.err conftest.$ac_objext \
17142      conftest$ac_exeext conftest.$ac_ext
17143fi
17144ac_res=`eval echo '${'$as_ac_var'}'`
17145	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17146echo "${ECHO_T}$ac_res" >&6; }
17147if test `eval echo '${'$as_ac_var'}'` = yes; then
17148  cat >>confdefs.h <<_ACEOF
17149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17150_ACEOF
17151
17152fi
17153done
17154
17155
17156
17157
17158for ac_func in strerror strerror_r setenv
17159do
17160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164  echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166  cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h.  */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h.  */
17172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17174#define $ac_func innocuous_$ac_func
17175
17176/* System header to define __stub macros and hopefully few prototypes,
17177    which can conflict with char $ac_func (); below.
17178    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179    <limits.h> exists even on freestanding compilers.  */
17180
17181#ifdef __STDC__
17182# include <limits.h>
17183#else
17184# include <assert.h>
17185#endif
17186
17187#undef $ac_func
17188
17189/* Override any GCC internal prototype to avoid an error.
17190   Use char because int might match the return type of a GCC
17191   builtin and then its argument prototype would still apply.  */
17192#ifdef __cplusplus
17193extern "C"
17194#endif
17195char $ac_func ();
17196/* The GNU C library defines this for functions which it implements
17197    to always fail with ENOSYS.  Some functions are actually named
17198    something starting with __ and the normal name is an alias.  */
17199#if defined __stub_$ac_func || defined __stub___$ac_func
17200choke me
17201#endif
17202
17203int
17204main ()
17205{
17206return $ac_func ();
17207  ;
17208  return 0;
17209}
17210_ACEOF
17211rm -f conftest.$ac_objext conftest$ac_exeext
17212if { (ac_try="$ac_link"
17213case "(($ac_try" in
17214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215  *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218  (eval "$ac_link") 2>conftest.er1
17219  ac_status=$?
17220  grep -v '^ *+' conftest.er1 >conftest.err
17221  rm -f conftest.er1
17222  cat conftest.err >&5
17223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224  (exit $ac_status); } &&
17225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226  { (case "(($ac_try" in
17227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228  *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231  (eval "$ac_try") 2>&5
17232  ac_status=$?
17233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234  (exit $ac_status); }; } &&
17235	 { ac_try='test -s conftest$ac_exeext'
17236  { (case "(($ac_try" in
17237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238  *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241  (eval "$ac_try") 2>&5
17242  ac_status=$?
17243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244  (exit $ac_status); }; }; then
17245  eval "$as_ac_var=yes"
17246else
17247  echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250	eval "$as_ac_var=no"
17251fi
17252
17253rm -f core conftest.err conftest.$ac_objext \
17254      conftest$ac_exeext conftest.$ac_ext
17255fi
17256ac_res=`eval echo '${'$as_ac_var'}'`
17257	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17258echo "${ECHO_T}$ac_res" >&6; }
17259if test `eval echo '${'$as_ac_var'}'` = yes; then
17260  cat >>confdefs.h <<_ACEOF
17261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262_ACEOF
17263
17264fi
17265done
17266
17267
17268
17269
17270
17271for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17272do
17273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17277  echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279  cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h.  */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h.  */
17285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17287#define $ac_func innocuous_$ac_func
17288
17289/* System header to define __stub macros and hopefully few prototypes,
17290    which can conflict with char $ac_func (); below.
17291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292    <limits.h> exists even on freestanding compilers.  */
17293
17294#ifdef __STDC__
17295# include <limits.h>
17296#else
17297# include <assert.h>
17298#endif
17299
17300#undef $ac_func
17301
17302/* Override any GCC internal prototype to avoid an error.
17303   Use char because int might match the return type of a GCC
17304   builtin and then its argument prototype would still apply.  */
17305#ifdef __cplusplus
17306extern "C"
17307#endif
17308char $ac_func ();
17309/* The GNU C library defines this for functions which it implements
17310    to always fail with ENOSYS.  Some functions are actually named
17311    something starting with __ and the normal name is an alias.  */
17312#if defined __stub_$ac_func || defined __stub___$ac_func
17313choke me
17314#endif
17315
17316int
17317main ()
17318{
17319return $ac_func ();
17320  ;
17321  return 0;
17322}
17323_ACEOF
17324rm -f conftest.$ac_objext conftest$ac_exeext
17325if { (ac_try="$ac_link"
17326case "(($ac_try" in
17327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328  *) ac_try_echo=$ac_try;;
17329esac
17330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331  (eval "$ac_link") 2>conftest.er1
17332  ac_status=$?
17333  grep -v '^ *+' conftest.er1 >conftest.err
17334  rm -f conftest.er1
17335  cat conftest.err >&5
17336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337  (exit $ac_status); } &&
17338	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339  { (case "(($ac_try" in
17340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341  *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344  (eval "$ac_try") 2>&5
17345  ac_status=$?
17346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347  (exit $ac_status); }; } &&
17348	 { ac_try='test -s conftest$ac_exeext'
17349  { (case "(($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_try") 2>&5
17355  ac_status=$?
17356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357  (exit $ac_status); }; }; then
17358  eval "$as_ac_var=yes"
17359else
17360  echo "$as_me: failed program was:" >&5
17361sed 's/^/| /' conftest.$ac_ext >&5
17362
17363	eval "$as_ac_var=no"
17364fi
17365
17366rm -f core conftest.err conftest.$ac_objext \
17367      conftest$ac_exeext conftest.$ac_ext
17368fi
17369ac_res=`eval echo '${'$as_ac_var'}'`
17370	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17371echo "${ECHO_T}$ac_res" >&6; }
17372if test `eval echo '${'$as_ac_var'}'` = yes; then
17373  cat >>confdefs.h <<_ACEOF
17374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17375_ACEOF
17376
17377fi
17378done
17379
17380
17381
17382
17383
17384
17385for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17386do
17387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17388{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17390if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17391  echo $ECHO_N "(cached) $ECHO_C" >&6
17392else
17393  cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h.  */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h.  */
17399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17400   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17401#define $ac_func innocuous_$ac_func
17402
17403/* System header to define __stub macros and hopefully few prototypes,
17404    which can conflict with char $ac_func (); below.
17405    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406    <limits.h> exists even on freestanding compilers.  */
17407
17408#ifdef __STDC__
17409# include <limits.h>
17410#else
17411# include <assert.h>
17412#endif
17413
17414#undef $ac_func
17415
17416/* Override any GCC internal prototype to avoid an error.
17417   Use char because int might match the return type of a GCC
17418   builtin and then its argument prototype would still apply.  */
17419#ifdef __cplusplus
17420extern "C"
17421#endif
17422char $ac_func ();
17423/* The GNU C library defines this for functions which it implements
17424    to always fail with ENOSYS.  Some functions are actually named
17425    something starting with __ and the normal name is an alias.  */
17426#if defined __stub_$ac_func || defined __stub___$ac_func
17427choke me
17428#endif
17429
17430int
17431main ()
17432{
17433return $ac_func ();
17434  ;
17435  return 0;
17436}
17437_ACEOF
17438rm -f conftest.$ac_objext conftest$ac_exeext
17439if { (ac_try="$ac_link"
17440case "(($ac_try" in
17441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442  *) ac_try_echo=$ac_try;;
17443esac
17444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445  (eval "$ac_link") 2>conftest.er1
17446  ac_status=$?
17447  grep -v '^ *+' conftest.er1 >conftest.err
17448  rm -f conftest.er1
17449  cat conftest.err >&5
17450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451  (exit $ac_status); } &&
17452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453  { (case "(($ac_try" in
17454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455  *) ac_try_echo=$ac_try;;
17456esac
17457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458  (eval "$ac_try") 2>&5
17459  ac_status=$?
17460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461  (exit $ac_status); }; } &&
17462	 { ac_try='test -s conftest$ac_exeext'
17463  { (case "(($ac_try" in
17464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465  *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468  (eval "$ac_try") 2>&5
17469  ac_status=$?
17470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471  (exit $ac_status); }; }; then
17472  eval "$as_ac_var=yes"
17473else
17474  echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477	eval "$as_ac_var=no"
17478fi
17479
17480rm -f core conftest.err conftest.$ac_objext \
17481      conftest$ac_exeext conftest.$ac_ext
17482fi
17483ac_res=`eval echo '${'$as_ac_var'}'`
17484	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17485echo "${ECHO_T}$ac_res" >&6; }
17486if test `eval echo '${'$as_ac_var'}'` = yes; then
17487  cat >>confdefs.h <<_ACEOF
17488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17489_ACEOF
17490
17491fi
17492done
17493
17494{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17495echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17496if test "${llvm_cv_c_printf_a+set}" = set; then
17497  echo $ECHO_N "(cached) $ECHO_C" >&6
17498else
17499  ac_ext=c
17500ac_cpp='$CPP $CPPFLAGS'
17501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505 if test "$cross_compiling" = yes; then
17506  llvmac_cv_c_printf_a=no
17507else
17508  cat >conftest.$ac_ext <<_ACEOF
17509
17510  /* confdefs.h.  */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h.  */
17515
17516#include <stdio.h>
17517#include <stdlib.h>
17518
17519int
17520main ()
17521{
17522
17523volatile double A, B;
17524char Buffer[100];
17525A = 1;
17526A /= 10.0;
17527sprintf(Buffer, "%a", A);
17528B = atof(Buffer);
17529if (A != B)
17530  return (1);
17531if (A != 0x1.999999999999ap-4)
17532  return (1);
17533return (0);
17534  ;
17535  return 0;
17536}
17537_ACEOF
17538rm -f conftest$ac_exeext
17539if { (ac_try="$ac_link"
17540case "(($ac_try" in
17541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542  *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545  (eval "$ac_link") 2>&5
17546  ac_status=$?
17547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17549  { (case "(($ac_try" in
17550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551  *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554  (eval "$ac_try") 2>&5
17555  ac_status=$?
17556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557  (exit $ac_status); }; }; then
17558  llvm_cv_c_printf_a=yes
17559else
17560  echo "$as_me: program exited with status $ac_status" >&5
17561echo "$as_me: failed program was:" >&5
17562sed 's/^/| /' conftest.$ac_ext >&5
17563
17564( exit $ac_status )
17565llvmac_cv_c_printf_a=no
17566fi
17567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17568fi
17569
17570
17571 ac_ext=c
17572ac_cpp='$CPP $CPPFLAGS'
17573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575ac_compiler_gnu=$ac_cv_c_compiler_gnu
17576
17577fi
17578{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17579echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17580 if test "$llvm_cv_c_printf_a" = "yes"; then
17581
17582cat >>confdefs.h <<\_ACEOF
17583#define HAVE_PRINTF_A 1
17584_ACEOF
17585
17586 fi
17587
17588
17589{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17590echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17591if test "${ac_cv_func_rand48+set}" = set; then
17592  echo $ECHO_N "(cached) $ECHO_C" >&6
17593else
17594  ac_ext=cpp
17595ac_cpp='$CXXCPP $CPPFLAGS'
17596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17599
17600   cat >conftest.$ac_ext <<_ACEOF
17601/* confdefs.h.  */
17602_ACEOF
17603cat confdefs.h >>conftest.$ac_ext
17604cat >>conftest.$ac_ext <<_ACEOF
17605/* end confdefs.h.  */
17606#include <stdlib.h>
17607int
17608main ()
17609{
17610srand48(0);lrand48();drand48();
17611  ;
17612  return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (ac_try="$ac_compile"
17617case "(($ac_try" in
17618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619  *) ac_try_echo=$ac_try;;
17620esac
17621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622  (eval "$ac_compile") 2>conftest.er1
17623  ac_status=$?
17624  grep -v '^ *+' conftest.er1 >conftest.err
17625  rm -f conftest.er1
17626  cat conftest.err >&5
17627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628  (exit $ac_status); } &&
17629	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17630  { (case "(($ac_try" in
17631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632  *) ac_try_echo=$ac_try;;
17633esac
17634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635  (eval "$ac_try") 2>&5
17636  ac_status=$?
17637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638  (exit $ac_status); }; } &&
17639	 { ac_try='test -s conftest.$ac_objext'
17640  { (case "(($ac_try" in
17641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642  *) ac_try_echo=$ac_try;;
17643esac
17644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645  (eval "$ac_try") 2>&5
17646  ac_status=$?
17647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648  (exit $ac_status); }; }; then
17649  ac_cv_func_rand48=yes
17650else
17651  echo "$as_me: failed program was:" >&5
17652sed 's/^/| /' conftest.$ac_ext >&5
17653
17654	ac_cv_func_rand48=no
17655fi
17656
17657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658  ac_ext=c
17659ac_cpp='$CPP $CPPFLAGS'
17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664fi
17665{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17666echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17667
17668if test "$ac_cv_func_rand48" = "yes" ; then
17669
17670cat >>confdefs.h <<\_ACEOF
17671#define HAVE_RAND48 1
17672_ACEOF
17673
17674fi
17675
17676
17677{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17678echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17679if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17680  echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682  cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h.  */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h.  */
17688$ac_includes_default
17689int
17690main ()
17691{
17692#ifndef strerror_s
17693  char *p = (char *) strerror_s;
17694  return !p;
17695#endif
17696
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (ac_try="$ac_compile"
17703case "(($ac_try" in
17704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705  *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708  (eval "$ac_compile") 2>conftest.er1
17709  ac_status=$?
17710  grep -v '^ *+' conftest.er1 >conftest.err
17711  rm -f conftest.er1
17712  cat conftest.err >&5
17713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714  (exit $ac_status); } &&
17715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716  { (case "(($ac_try" in
17717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718  *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721  (eval "$ac_try") 2>&5
17722  ac_status=$?
17723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724  (exit $ac_status); }; } &&
17725	 { ac_try='test -s conftest.$ac_objext'
17726  { (case "(($ac_try" in
17727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728  *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731  (eval "$ac_try") 2>&5
17732  ac_status=$?
17733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734  (exit $ac_status); }; }; then
17735  ac_cv_have_decl_strerror_s=yes
17736else
17737  echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740	ac_cv_have_decl_strerror_s=no
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17746echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17747if test $ac_cv_have_decl_strerror_s = yes; then
17748
17749cat >>confdefs.h <<_ACEOF
17750#define HAVE_DECL_STRERROR_S 1
17751_ACEOF
17752
17753
17754else
17755  cat >>confdefs.h <<_ACEOF
17756#define HAVE_DECL_STRERROR_S 0
17757_ACEOF
17758
17759
17760fi
17761
17762
17763
17764if test "$llvm_cv_os_type" = "MingW" ; then
17765  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17766echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17767if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17768  echo $ECHO_N "(cached) $ECHO_C" >&6
17769else
17770  ac_check_lib_save_LIBS=$LIBS
17771LIBS="-lgcc  $LIBS"
17772cat >conftest.$ac_ext <<_ACEOF
17773/* confdefs.h.  */
17774_ACEOF
17775cat confdefs.h >>conftest.$ac_ext
17776cat >>conftest.$ac_ext <<_ACEOF
17777/* end confdefs.h.  */
17778
17779/* Override any GCC internal prototype to avoid an error.
17780   Use char because int might match the return type of a GCC
17781   builtin and then its argument prototype would still apply.  */
17782#ifdef __cplusplus
17783extern "C"
17784#endif
17785char _alloca ();
17786int
17787main ()
17788{
17789return _alloca ();
17790  ;
17791  return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext conftest$ac_exeext
17795if { (ac_try="$ac_link"
17796case "(($ac_try" in
17797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798  *) ac_try_echo=$ac_try;;
17799esac
17800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801  (eval "$ac_link") 2>conftest.er1
17802  ac_status=$?
17803  grep -v '^ *+' conftest.er1 >conftest.err
17804  rm -f conftest.er1
17805  cat conftest.err >&5
17806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807  (exit $ac_status); } &&
17808	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809  { (case "(($ac_try" in
17810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811  *) ac_try_echo=$ac_try;;
17812esac
17813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814  (eval "$ac_try") 2>&5
17815  ac_status=$?
17816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817  (exit $ac_status); }; } &&
17818	 { ac_try='test -s conftest$ac_exeext'
17819  { (case "(($ac_try" in
17820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821  *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824  (eval "$ac_try") 2>&5
17825  ac_status=$?
17826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827  (exit $ac_status); }; }; then
17828  ac_cv_lib_gcc__alloca=yes
17829else
17830  echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833	ac_cv_lib_gcc__alloca=no
17834fi
17835
17836rm -f core conftest.err conftest.$ac_objext \
17837      conftest$ac_exeext conftest.$ac_ext
17838LIBS=$ac_check_lib_save_LIBS
17839fi
17840{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17841echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17842if test $ac_cv_lib_gcc__alloca = yes; then
17843
17844cat >>confdefs.h <<\_ACEOF
17845#define HAVE__ALLOCA 1
17846_ACEOF
17847
17848fi
17849
17850  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17851echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17852if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17853  echo $ECHO_N "(cached) $ECHO_C" >&6
17854else
17855  ac_check_lib_save_LIBS=$LIBS
17856LIBS="-lgcc  $LIBS"
17857cat >conftest.$ac_ext <<_ACEOF
17858/* confdefs.h.  */
17859_ACEOF
17860cat confdefs.h >>conftest.$ac_ext
17861cat >>conftest.$ac_ext <<_ACEOF
17862/* end confdefs.h.  */
17863
17864/* Override any GCC internal prototype to avoid an error.
17865   Use char because int might match the return type of a GCC
17866   builtin and then its argument prototype would still apply.  */
17867#ifdef __cplusplus
17868extern "C"
17869#endif
17870char __alloca ();
17871int
17872main ()
17873{
17874return __alloca ();
17875  ;
17876  return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext conftest$ac_exeext
17880if { (ac_try="$ac_link"
17881case "(($ac_try" in
17882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883  *) ac_try_echo=$ac_try;;
17884esac
17885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886  (eval "$ac_link") 2>conftest.er1
17887  ac_status=$?
17888  grep -v '^ *+' conftest.er1 >conftest.err
17889  rm -f conftest.er1
17890  cat conftest.err >&5
17891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892  (exit $ac_status); } &&
17893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894  { (case "(($ac_try" in
17895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896  *) ac_try_echo=$ac_try;;
17897esac
17898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899  (eval "$ac_try") 2>&5
17900  ac_status=$?
17901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902  (exit $ac_status); }; } &&
17903	 { ac_try='test -s conftest$ac_exeext'
17904  { (case "(($ac_try" in
17905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906  *) ac_try_echo=$ac_try;;
17907esac
17908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909  (eval "$ac_try") 2>&5
17910  ac_status=$?
17911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912  (exit $ac_status); }; }; then
17913  ac_cv_lib_gcc___alloca=yes
17914else
17915  echo "$as_me: failed program was:" >&5
17916sed 's/^/| /' conftest.$ac_ext >&5
17917
17918	ac_cv_lib_gcc___alloca=no
17919fi
17920
17921rm -f core conftest.err conftest.$ac_objext \
17922      conftest$ac_exeext conftest.$ac_ext
17923LIBS=$ac_check_lib_save_LIBS
17924fi
17925{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17926echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17927if test $ac_cv_lib_gcc___alloca = yes; then
17928
17929cat >>confdefs.h <<\_ACEOF
17930#define HAVE___ALLOCA 1
17931_ACEOF
17932
17933fi
17934
17935  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17936echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17937if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17938  echo $ECHO_N "(cached) $ECHO_C" >&6
17939else
17940  ac_check_lib_save_LIBS=$LIBS
17941LIBS="-lgcc  $LIBS"
17942cat >conftest.$ac_ext <<_ACEOF
17943/* confdefs.h.  */
17944_ACEOF
17945cat confdefs.h >>conftest.$ac_ext
17946cat >>conftest.$ac_ext <<_ACEOF
17947/* end confdefs.h.  */
17948
17949/* Override any GCC internal prototype to avoid an error.
17950   Use char because int might match the return type of a GCC
17951   builtin and then its argument prototype would still apply.  */
17952#ifdef __cplusplus
17953extern "C"
17954#endif
17955char __chkstk ();
17956int
17957main ()
17958{
17959return __chkstk ();
17960  ;
17961  return 0;
17962}
17963_ACEOF
17964rm -f conftest.$ac_objext conftest$ac_exeext
17965if { (ac_try="$ac_link"
17966case "(($ac_try" in
17967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968  *) ac_try_echo=$ac_try;;
17969esac
17970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971  (eval "$ac_link") 2>conftest.er1
17972  ac_status=$?
17973  grep -v '^ *+' conftest.er1 >conftest.err
17974  rm -f conftest.er1
17975  cat conftest.err >&5
17976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977  (exit $ac_status); } &&
17978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17979  { (case "(($ac_try" in
17980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981  *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984  (eval "$ac_try") 2>&5
17985  ac_status=$?
17986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987  (exit $ac_status); }; } &&
17988	 { ac_try='test -s conftest$ac_exeext'
17989  { (case "(($ac_try" in
17990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991  *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994  (eval "$ac_try") 2>&5
17995  ac_status=$?
17996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997  (exit $ac_status); }; }; then
17998  ac_cv_lib_gcc___chkstk=yes
17999else
18000  echo "$as_me: failed program was:" >&5
18001sed 's/^/| /' conftest.$ac_ext >&5
18002
18003	ac_cv_lib_gcc___chkstk=no
18004fi
18005
18006rm -f core conftest.err conftest.$ac_objext \
18007      conftest$ac_exeext conftest.$ac_ext
18008LIBS=$ac_check_lib_save_LIBS
18009fi
18010{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18011echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18012if test $ac_cv_lib_gcc___chkstk = yes; then
18013
18014cat >>confdefs.h <<\_ACEOF
18015#define HAVE___CHKSTK 1
18016_ACEOF
18017
18018fi
18019
18020  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18021echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18022if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18023  echo $ECHO_N "(cached) $ECHO_C" >&6
18024else
18025  ac_check_lib_save_LIBS=$LIBS
18026LIBS="-lgcc  $LIBS"
18027cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h.  */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h.  */
18033
18034/* Override any GCC internal prototype to avoid an error.
18035   Use char because int might match the return type of a GCC
18036   builtin and then its argument prototype would still apply.  */
18037#ifdef __cplusplus
18038extern "C"
18039#endif
18040char ___chkstk ();
18041int
18042main ()
18043{
18044return ___chkstk ();
18045  ;
18046  return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext conftest$ac_exeext
18050if { (ac_try="$ac_link"
18051case "(($ac_try" in
18052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053  *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056  (eval "$ac_link") 2>conftest.er1
18057  ac_status=$?
18058  grep -v '^ *+' conftest.er1 >conftest.err
18059  rm -f conftest.er1
18060  cat conftest.err >&5
18061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062  (exit $ac_status); } &&
18063	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064  { (case "(($ac_try" in
18065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066  *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069  (eval "$ac_try") 2>&5
18070  ac_status=$?
18071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072  (exit $ac_status); }; } &&
18073	 { ac_try='test -s conftest$ac_exeext'
18074  { (case "(($ac_try" in
18075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076  *) ac_try_echo=$ac_try;;
18077esac
18078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079  (eval "$ac_try") 2>&5
18080  ac_status=$?
18081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082  (exit $ac_status); }; }; then
18083  ac_cv_lib_gcc____chkstk=yes
18084else
18085  echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088	ac_cv_lib_gcc____chkstk=no
18089fi
18090
18091rm -f core conftest.err conftest.$ac_objext \
18092      conftest$ac_exeext conftest.$ac_ext
18093LIBS=$ac_check_lib_save_LIBS
18094fi
18095{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18096echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18097if test $ac_cv_lib_gcc____chkstk = yes; then
18098
18099cat >>confdefs.h <<\_ACEOF
18100#define HAVE____CHKSTK 1
18101_ACEOF
18102
18103fi
18104
18105
18106  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18107echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18108if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18109  echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111  ac_check_lib_save_LIBS=$LIBS
18112LIBS="-lgcc  $LIBS"
18113cat >conftest.$ac_ext <<_ACEOF
18114/* confdefs.h.  */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h.  */
18119
18120/* Override any GCC internal prototype to avoid an error.
18121   Use char because int might match the return type of a GCC
18122   builtin and then its argument prototype would still apply.  */
18123#ifdef __cplusplus
18124extern "C"
18125#endif
18126char __ashldi3 ();
18127int
18128main ()
18129{
18130return __ashldi3 ();
18131  ;
18132  return 0;
18133}
18134_ACEOF
18135rm -f conftest.$ac_objext conftest$ac_exeext
18136if { (ac_try="$ac_link"
18137case "(($ac_try" in
18138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139  *) ac_try_echo=$ac_try;;
18140esac
18141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142  (eval "$ac_link") 2>conftest.er1
18143  ac_status=$?
18144  grep -v '^ *+' conftest.er1 >conftest.err
18145  rm -f conftest.er1
18146  cat conftest.err >&5
18147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148  (exit $ac_status); } &&
18149	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150  { (case "(($ac_try" in
18151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152  *) ac_try_echo=$ac_try;;
18153esac
18154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155  (eval "$ac_try") 2>&5
18156  ac_status=$?
18157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158  (exit $ac_status); }; } &&
18159	 { ac_try='test -s conftest$ac_exeext'
18160  { (case "(($ac_try" in
18161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162  *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165  (eval "$ac_try") 2>&5
18166  ac_status=$?
18167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168  (exit $ac_status); }; }; then
18169  ac_cv_lib_gcc___ashldi3=yes
18170else
18171  echo "$as_me: failed program was:" >&5
18172sed 's/^/| /' conftest.$ac_ext >&5
18173
18174	ac_cv_lib_gcc___ashldi3=no
18175fi
18176
18177rm -f core conftest.err conftest.$ac_objext \
18178      conftest$ac_exeext conftest.$ac_ext
18179LIBS=$ac_check_lib_save_LIBS
18180fi
18181{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18182echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18183if test $ac_cv_lib_gcc___ashldi3 = yes; then
18184
18185cat >>confdefs.h <<\_ACEOF
18186#define HAVE___ASHLDI3 1
18187_ACEOF
18188
18189fi
18190
18191  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18192echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18193if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18194  echo $ECHO_N "(cached) $ECHO_C" >&6
18195else
18196  ac_check_lib_save_LIBS=$LIBS
18197LIBS="-lgcc  $LIBS"
18198cat >conftest.$ac_ext <<_ACEOF
18199/* confdefs.h.  */
18200_ACEOF
18201cat confdefs.h >>conftest.$ac_ext
18202cat >>conftest.$ac_ext <<_ACEOF
18203/* end confdefs.h.  */
18204
18205/* Override any GCC internal prototype to avoid an error.
18206   Use char because int might match the return type of a GCC
18207   builtin and then its argument prototype would still apply.  */
18208#ifdef __cplusplus
18209extern "C"
18210#endif
18211char __ashrdi3 ();
18212int
18213main ()
18214{
18215return __ashrdi3 ();
18216  ;
18217  return 0;
18218}
18219_ACEOF
18220rm -f conftest.$ac_objext conftest$ac_exeext
18221if { (ac_try="$ac_link"
18222case "(($ac_try" in
18223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224  *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227  (eval "$ac_link") 2>conftest.er1
18228  ac_status=$?
18229  grep -v '^ *+' conftest.er1 >conftest.err
18230  rm -f conftest.er1
18231  cat conftest.err >&5
18232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233  (exit $ac_status); } &&
18234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235  { (case "(($ac_try" in
18236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237  *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240  (eval "$ac_try") 2>&5
18241  ac_status=$?
18242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243  (exit $ac_status); }; } &&
18244	 { ac_try='test -s conftest$ac_exeext'
18245  { (case "(($ac_try" in
18246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247  *) ac_try_echo=$ac_try;;
18248esac
18249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250  (eval "$ac_try") 2>&5
18251  ac_status=$?
18252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253  (exit $ac_status); }; }; then
18254  ac_cv_lib_gcc___ashrdi3=yes
18255else
18256  echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259	ac_cv_lib_gcc___ashrdi3=no
18260fi
18261
18262rm -f core conftest.err conftest.$ac_objext \
18263      conftest$ac_exeext conftest.$ac_ext
18264LIBS=$ac_check_lib_save_LIBS
18265fi
18266{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18267echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18268if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18269
18270cat >>confdefs.h <<\_ACEOF
18271#define HAVE___ASHRDI3 1
18272_ACEOF
18273
18274fi
18275
18276  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18277echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18278if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18279  echo $ECHO_N "(cached) $ECHO_C" >&6
18280else
18281  ac_check_lib_save_LIBS=$LIBS
18282LIBS="-lgcc  $LIBS"
18283cat >conftest.$ac_ext <<_ACEOF
18284/* confdefs.h.  */
18285_ACEOF
18286cat confdefs.h >>conftest.$ac_ext
18287cat >>conftest.$ac_ext <<_ACEOF
18288/* end confdefs.h.  */
18289
18290/* Override any GCC internal prototype to avoid an error.
18291   Use char because int might match the return type of a GCC
18292   builtin and then its argument prototype would still apply.  */
18293#ifdef __cplusplus
18294extern "C"
18295#endif
18296char __divdi3 ();
18297int
18298main ()
18299{
18300return __divdi3 ();
18301  ;
18302  return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext conftest$ac_exeext
18306if { (ac_try="$ac_link"
18307case "(($ac_try" in
18308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309  *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312  (eval "$ac_link") 2>conftest.er1
18313  ac_status=$?
18314  grep -v '^ *+' conftest.er1 >conftest.err
18315  rm -f conftest.er1
18316  cat conftest.err >&5
18317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318  (exit $ac_status); } &&
18319	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18320  { (case "(($ac_try" in
18321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322  *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325  (eval "$ac_try") 2>&5
18326  ac_status=$?
18327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328  (exit $ac_status); }; } &&
18329	 { ac_try='test -s conftest$ac_exeext'
18330  { (case "(($ac_try" in
18331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332  *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335  (eval "$ac_try") 2>&5
18336  ac_status=$?
18337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338  (exit $ac_status); }; }; then
18339  ac_cv_lib_gcc___divdi3=yes
18340else
18341  echo "$as_me: failed program was:" >&5
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
18344	ac_cv_lib_gcc___divdi3=no
18345fi
18346
18347rm -f core conftest.err conftest.$ac_objext \
18348      conftest$ac_exeext conftest.$ac_ext
18349LIBS=$ac_check_lib_save_LIBS
18350fi
18351{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18352echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18353if test $ac_cv_lib_gcc___divdi3 = yes; then
18354
18355cat >>confdefs.h <<\_ACEOF
18356#define HAVE___DIVDI3 1
18357_ACEOF
18358
18359fi
18360
18361  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18362echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18363if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18364  echo $ECHO_N "(cached) $ECHO_C" >&6
18365else
18366  ac_check_lib_save_LIBS=$LIBS
18367LIBS="-lgcc  $LIBS"
18368cat >conftest.$ac_ext <<_ACEOF
18369/* confdefs.h.  */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h.  */
18374
18375/* Override any GCC internal prototype to avoid an error.
18376   Use char because int might match the return type of a GCC
18377   builtin and then its argument prototype would still apply.  */
18378#ifdef __cplusplus
18379extern "C"
18380#endif
18381char __fixdfdi ();
18382int
18383main ()
18384{
18385return __fixdfdi ();
18386  ;
18387  return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext conftest$ac_exeext
18391if { (ac_try="$ac_link"
18392case "(($ac_try" in
18393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394  *) ac_try_echo=$ac_try;;
18395esac
18396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397  (eval "$ac_link") 2>conftest.er1
18398  ac_status=$?
18399  grep -v '^ *+' conftest.er1 >conftest.err
18400  rm -f conftest.er1
18401  cat conftest.err >&5
18402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); } &&
18404	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18405  { (case "(($ac_try" in
18406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407  *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410  (eval "$ac_try") 2>&5
18411  ac_status=$?
18412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413  (exit $ac_status); }; } &&
18414	 { ac_try='test -s conftest$ac_exeext'
18415  { (case "(($ac_try" in
18416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417  *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420  (eval "$ac_try") 2>&5
18421  ac_status=$?
18422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423  (exit $ac_status); }; }; then
18424  ac_cv_lib_gcc___fixdfdi=yes
18425else
18426  echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
18429	ac_cv_lib_gcc___fixdfdi=no
18430fi
18431
18432rm -f core conftest.err conftest.$ac_objext \
18433      conftest$ac_exeext conftest.$ac_ext
18434LIBS=$ac_check_lib_save_LIBS
18435fi
18436{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18437echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18438if test $ac_cv_lib_gcc___fixdfdi = yes; then
18439
18440cat >>confdefs.h <<\_ACEOF
18441#define HAVE___FIXDFDI 1
18442_ACEOF
18443
18444fi
18445
18446  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18447echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18448if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18449  echo $ECHO_N "(cached) $ECHO_C" >&6
18450else
18451  ac_check_lib_save_LIBS=$LIBS
18452LIBS="-lgcc  $LIBS"
18453cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h.  */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h.  */
18459
18460/* Override any GCC internal prototype to avoid an error.
18461   Use char because int might match the return type of a GCC
18462   builtin and then its argument prototype would still apply.  */
18463#ifdef __cplusplus
18464extern "C"
18465#endif
18466char __fixsfdi ();
18467int
18468main ()
18469{
18470return __fixsfdi ();
18471  ;
18472  return 0;
18473}
18474_ACEOF
18475rm -f conftest.$ac_objext conftest$ac_exeext
18476if { (ac_try="$ac_link"
18477case "(($ac_try" in
18478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479  *) ac_try_echo=$ac_try;;
18480esac
18481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482  (eval "$ac_link") 2>conftest.er1
18483  ac_status=$?
18484  grep -v '^ *+' conftest.er1 >conftest.err
18485  rm -f conftest.er1
18486  cat conftest.err >&5
18487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488  (exit $ac_status); } &&
18489	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18490  { (case "(($ac_try" in
18491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492  *) ac_try_echo=$ac_try;;
18493esac
18494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495  (eval "$ac_try") 2>&5
18496  ac_status=$?
18497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498  (exit $ac_status); }; } &&
18499	 { ac_try='test -s conftest$ac_exeext'
18500  { (case "(($ac_try" in
18501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502  *) ac_try_echo=$ac_try;;
18503esac
18504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505  (eval "$ac_try") 2>&5
18506  ac_status=$?
18507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508  (exit $ac_status); }; }; then
18509  ac_cv_lib_gcc___fixsfdi=yes
18510else
18511  echo "$as_me: failed program was:" >&5
18512sed 's/^/| /' conftest.$ac_ext >&5
18513
18514	ac_cv_lib_gcc___fixsfdi=no
18515fi
18516
18517rm -f core conftest.err conftest.$ac_objext \
18518      conftest$ac_exeext conftest.$ac_ext
18519LIBS=$ac_check_lib_save_LIBS
18520fi
18521{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18522echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18523if test $ac_cv_lib_gcc___fixsfdi = yes; then
18524
18525cat >>confdefs.h <<\_ACEOF
18526#define HAVE___FIXSFDI 1
18527_ACEOF
18528
18529fi
18530
18531  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18532echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18533if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18534  echo $ECHO_N "(cached) $ECHO_C" >&6
18535else
18536  ac_check_lib_save_LIBS=$LIBS
18537LIBS="-lgcc  $LIBS"
18538cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h.  */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h.  */
18544
18545/* Override any GCC internal prototype to avoid an error.
18546   Use char because int might match the return type of a GCC
18547   builtin and then its argument prototype would still apply.  */
18548#ifdef __cplusplus
18549extern "C"
18550#endif
18551char __floatdidf ();
18552int
18553main ()
18554{
18555return __floatdidf ();
18556  ;
18557  return 0;
18558}
18559_ACEOF
18560rm -f conftest.$ac_objext conftest$ac_exeext
18561if { (ac_try="$ac_link"
18562case "(($ac_try" in
18563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564  *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567  (eval "$ac_link") 2>conftest.er1
18568  ac_status=$?
18569  grep -v '^ *+' conftest.er1 >conftest.err
18570  rm -f conftest.er1
18571  cat conftest.err >&5
18572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573  (exit $ac_status); } &&
18574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575  { (case "(($ac_try" in
18576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577  *) ac_try_echo=$ac_try;;
18578esac
18579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580  (eval "$ac_try") 2>&5
18581  ac_status=$?
18582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583  (exit $ac_status); }; } &&
18584	 { ac_try='test -s conftest$ac_exeext'
18585  { (case "(($ac_try" in
18586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587  *) ac_try_echo=$ac_try;;
18588esac
18589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590  (eval "$ac_try") 2>&5
18591  ac_status=$?
18592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593  (exit $ac_status); }; }; then
18594  ac_cv_lib_gcc___floatdidf=yes
18595else
18596  echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599	ac_cv_lib_gcc___floatdidf=no
18600fi
18601
18602rm -f core conftest.err conftest.$ac_objext \
18603      conftest$ac_exeext conftest.$ac_ext
18604LIBS=$ac_check_lib_save_LIBS
18605fi
18606{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18607echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18608if test $ac_cv_lib_gcc___floatdidf = yes; then
18609
18610cat >>confdefs.h <<\_ACEOF
18611#define HAVE___FLOATDIDF 1
18612_ACEOF
18613
18614fi
18615
18616  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18617echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18618if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18619  echo $ECHO_N "(cached) $ECHO_C" >&6
18620else
18621  ac_check_lib_save_LIBS=$LIBS
18622LIBS="-lgcc  $LIBS"
18623cat >conftest.$ac_ext <<_ACEOF
18624/* confdefs.h.  */
18625_ACEOF
18626cat confdefs.h >>conftest.$ac_ext
18627cat >>conftest.$ac_ext <<_ACEOF
18628/* end confdefs.h.  */
18629
18630/* Override any GCC internal prototype to avoid an error.
18631   Use char because int might match the return type of a GCC
18632   builtin and then its argument prototype would still apply.  */
18633#ifdef __cplusplus
18634extern "C"
18635#endif
18636char __lshrdi3 ();
18637int
18638main ()
18639{
18640return __lshrdi3 ();
18641  ;
18642  return 0;
18643}
18644_ACEOF
18645rm -f conftest.$ac_objext conftest$ac_exeext
18646if { (ac_try="$ac_link"
18647case "(($ac_try" in
18648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649  *) ac_try_echo=$ac_try;;
18650esac
18651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652  (eval "$ac_link") 2>conftest.er1
18653  ac_status=$?
18654  grep -v '^ *+' conftest.er1 >conftest.err
18655  rm -f conftest.er1
18656  cat conftest.err >&5
18657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658  (exit $ac_status); } &&
18659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18660  { (case "(($ac_try" in
18661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662  *) ac_try_echo=$ac_try;;
18663esac
18664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665  (eval "$ac_try") 2>&5
18666  ac_status=$?
18667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668  (exit $ac_status); }; } &&
18669	 { ac_try='test -s conftest$ac_exeext'
18670  { (case "(($ac_try" in
18671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672  *) ac_try_echo=$ac_try;;
18673esac
18674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675  (eval "$ac_try") 2>&5
18676  ac_status=$?
18677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678  (exit $ac_status); }; }; then
18679  ac_cv_lib_gcc___lshrdi3=yes
18680else
18681  echo "$as_me: failed program was:" >&5
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
18684	ac_cv_lib_gcc___lshrdi3=no
18685fi
18686
18687rm -f core conftest.err conftest.$ac_objext \
18688      conftest$ac_exeext conftest.$ac_ext
18689LIBS=$ac_check_lib_save_LIBS
18690fi
18691{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18692echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18693if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18694
18695cat >>confdefs.h <<\_ACEOF
18696#define HAVE___LSHRDI3 1
18697_ACEOF
18698
18699fi
18700
18701  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18702echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18703if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18704  echo $ECHO_N "(cached) $ECHO_C" >&6
18705else
18706  ac_check_lib_save_LIBS=$LIBS
18707LIBS="-lgcc  $LIBS"
18708cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h.  */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h.  */
18714
18715/* Override any GCC internal prototype to avoid an error.
18716   Use char because int might match the return type of a GCC
18717   builtin and then its argument prototype would still apply.  */
18718#ifdef __cplusplus
18719extern "C"
18720#endif
18721char __moddi3 ();
18722int
18723main ()
18724{
18725return __moddi3 ();
18726  ;
18727  return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext conftest$ac_exeext
18731if { (ac_try="$ac_link"
18732case "(($ac_try" in
18733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734  *) ac_try_echo=$ac_try;;
18735esac
18736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737  (eval "$ac_link") 2>conftest.er1
18738  ac_status=$?
18739  grep -v '^ *+' conftest.er1 >conftest.err
18740  rm -f conftest.er1
18741  cat conftest.err >&5
18742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743  (exit $ac_status); } &&
18744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18745  { (case "(($ac_try" in
18746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747  *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750  (eval "$ac_try") 2>&5
18751  ac_status=$?
18752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753  (exit $ac_status); }; } &&
18754	 { ac_try='test -s conftest$ac_exeext'
18755  { (case "(($ac_try" in
18756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757  *) ac_try_echo=$ac_try;;
18758esac
18759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760  (eval "$ac_try") 2>&5
18761  ac_status=$?
18762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763  (exit $ac_status); }; }; then
18764  ac_cv_lib_gcc___moddi3=yes
18765else
18766  echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769	ac_cv_lib_gcc___moddi3=no
18770fi
18771
18772rm -f core conftest.err conftest.$ac_objext \
18773      conftest$ac_exeext conftest.$ac_ext
18774LIBS=$ac_check_lib_save_LIBS
18775fi
18776{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18777echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18778if test $ac_cv_lib_gcc___moddi3 = yes; then
18779
18780cat >>confdefs.h <<\_ACEOF
18781#define HAVE___MODDI3 1
18782_ACEOF
18783
18784fi
18785
18786  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18787echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18788if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18789  echo $ECHO_N "(cached) $ECHO_C" >&6
18790else
18791  ac_check_lib_save_LIBS=$LIBS
18792LIBS="-lgcc  $LIBS"
18793cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h.  */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h.  */
18799
18800/* Override any GCC internal prototype to avoid an error.
18801   Use char because int might match the return type of a GCC
18802   builtin and then its argument prototype would still apply.  */
18803#ifdef __cplusplus
18804extern "C"
18805#endif
18806char __udivdi3 ();
18807int
18808main ()
18809{
18810return __udivdi3 ();
18811  ;
18812  return 0;
18813}
18814_ACEOF
18815rm -f conftest.$ac_objext conftest$ac_exeext
18816if { (ac_try="$ac_link"
18817case "(($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_link") 2>conftest.er1
18823  ac_status=$?
18824  grep -v '^ *+' conftest.er1 >conftest.err
18825  rm -f conftest.er1
18826  cat conftest.err >&5
18827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828  (exit $ac_status); } &&
18829	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830  { (case "(($ac_try" in
18831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832  *) ac_try_echo=$ac_try;;
18833esac
18834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835  (eval "$ac_try") 2>&5
18836  ac_status=$?
18837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838  (exit $ac_status); }; } &&
18839	 { ac_try='test -s conftest$ac_exeext'
18840  { (case "(($ac_try" in
18841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842  *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845  (eval "$ac_try") 2>&5
18846  ac_status=$?
18847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848  (exit $ac_status); }; }; then
18849  ac_cv_lib_gcc___udivdi3=yes
18850else
18851  echo "$as_me: failed program was:" >&5
18852sed 's/^/| /' conftest.$ac_ext >&5
18853
18854	ac_cv_lib_gcc___udivdi3=no
18855fi
18856
18857rm -f core conftest.err conftest.$ac_objext \
18858      conftest$ac_exeext conftest.$ac_ext
18859LIBS=$ac_check_lib_save_LIBS
18860fi
18861{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18862echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18863if test $ac_cv_lib_gcc___udivdi3 = yes; then
18864
18865cat >>confdefs.h <<\_ACEOF
18866#define HAVE___UDIVDI3 1
18867_ACEOF
18868
18869fi
18870
18871  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18872echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18873if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18874  echo $ECHO_N "(cached) $ECHO_C" >&6
18875else
18876  ac_check_lib_save_LIBS=$LIBS
18877LIBS="-lgcc  $LIBS"
18878cat >conftest.$ac_ext <<_ACEOF
18879/* confdefs.h.  */
18880_ACEOF
18881cat confdefs.h >>conftest.$ac_ext
18882cat >>conftest.$ac_ext <<_ACEOF
18883/* end confdefs.h.  */
18884
18885/* Override any GCC internal prototype to avoid an error.
18886   Use char because int might match the return type of a GCC
18887   builtin and then its argument prototype would still apply.  */
18888#ifdef __cplusplus
18889extern "C"
18890#endif
18891char __umoddi3 ();
18892int
18893main ()
18894{
18895return __umoddi3 ();
18896  ;
18897  return 0;
18898}
18899_ACEOF
18900rm -f conftest.$ac_objext conftest$ac_exeext
18901if { (ac_try="$ac_link"
18902case "(($ac_try" in
18903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904  *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907  (eval "$ac_link") 2>conftest.er1
18908  ac_status=$?
18909  grep -v '^ *+' conftest.er1 >conftest.err
18910  rm -f conftest.er1
18911  cat conftest.err >&5
18912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913  (exit $ac_status); } &&
18914	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915  { (case "(($ac_try" in
18916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917  *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920  (eval "$ac_try") 2>&5
18921  ac_status=$?
18922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923  (exit $ac_status); }; } &&
18924	 { ac_try='test -s conftest$ac_exeext'
18925  { (case "(($ac_try" in
18926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927  *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930  (eval "$ac_try") 2>&5
18931  ac_status=$?
18932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933  (exit $ac_status); }; }; then
18934  ac_cv_lib_gcc___umoddi3=yes
18935else
18936  echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939	ac_cv_lib_gcc___umoddi3=no
18940fi
18941
18942rm -f core conftest.err conftest.$ac_objext \
18943      conftest$ac_exeext conftest.$ac_ext
18944LIBS=$ac_check_lib_save_LIBS
18945fi
18946{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18947echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18948if test $ac_cv_lib_gcc___umoddi3 = yes; then
18949
18950cat >>confdefs.h <<\_ACEOF
18951#define HAVE___UMODDI3 1
18952_ACEOF
18953
18954fi
18955
18956
18957  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18958echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18959if test "${ac_cv_lib_gcc___main+set}" = set; then
18960  echo $ECHO_N "(cached) $ECHO_C" >&6
18961else
18962  ac_check_lib_save_LIBS=$LIBS
18963LIBS="-lgcc  $LIBS"
18964cat >conftest.$ac_ext <<_ACEOF
18965/* confdefs.h.  */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h.  */
18970
18971/* Override any GCC internal prototype to avoid an error.
18972   Use char because int might match the return type of a GCC
18973   builtin and then its argument prototype would still apply.  */
18974#ifdef __cplusplus
18975extern "C"
18976#endif
18977char __main ();
18978int
18979main ()
18980{
18981return __main ();
18982  ;
18983  return 0;
18984}
18985_ACEOF
18986rm -f conftest.$ac_objext conftest$ac_exeext
18987if { (ac_try="$ac_link"
18988case "(($ac_try" in
18989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990  *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993  (eval "$ac_link") 2>conftest.er1
18994  ac_status=$?
18995  grep -v '^ *+' conftest.er1 >conftest.err
18996  rm -f conftest.er1
18997  cat conftest.err >&5
18998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999  (exit $ac_status); } &&
19000	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19001  { (case "(($ac_try" in
19002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003  *) ac_try_echo=$ac_try;;
19004esac
19005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006  (eval "$ac_try") 2>&5
19007  ac_status=$?
19008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009  (exit $ac_status); }; } &&
19010	 { ac_try='test -s conftest$ac_exeext'
19011  { (case "(($ac_try" in
19012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013  *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016  (eval "$ac_try") 2>&5
19017  ac_status=$?
19018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019  (exit $ac_status); }; }; then
19020  ac_cv_lib_gcc___main=yes
19021else
19022  echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
19025	ac_cv_lib_gcc___main=no
19026fi
19027
19028rm -f core conftest.err conftest.$ac_objext \
19029      conftest$ac_exeext conftest.$ac_ext
19030LIBS=$ac_check_lib_save_LIBS
19031fi
19032{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19033echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19034if test $ac_cv_lib_gcc___main = yes; then
19035
19036cat >>confdefs.h <<\_ACEOF
19037#define HAVE___MAIN 1
19038_ACEOF
19039
19040fi
19041
19042  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19043echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19044if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19045  echo $ECHO_N "(cached) $ECHO_C" >&6
19046else
19047  ac_check_lib_save_LIBS=$LIBS
19048LIBS="-lgcc  $LIBS"
19049cat >conftest.$ac_ext <<_ACEOF
19050/* confdefs.h.  */
19051_ACEOF
19052cat confdefs.h >>conftest.$ac_ext
19053cat >>conftest.$ac_ext <<_ACEOF
19054/* end confdefs.h.  */
19055
19056/* Override any GCC internal prototype to avoid an error.
19057   Use char because int might match the return type of a GCC
19058   builtin and then its argument prototype would still apply.  */
19059#ifdef __cplusplus
19060extern "C"
19061#endif
19062char __cmpdi2 ();
19063int
19064main ()
19065{
19066return __cmpdi2 ();
19067  ;
19068  return 0;
19069}
19070_ACEOF
19071rm -f conftest.$ac_objext conftest$ac_exeext
19072if { (ac_try="$ac_link"
19073case "(($ac_try" in
19074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075  *) ac_try_echo=$ac_try;;
19076esac
19077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078  (eval "$ac_link") 2>conftest.er1
19079  ac_status=$?
19080  grep -v '^ *+' conftest.er1 >conftest.err
19081  rm -f conftest.er1
19082  cat conftest.err >&5
19083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084  (exit $ac_status); } &&
19085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086  { (case "(($ac_try" in
19087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088  *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091  (eval "$ac_try") 2>&5
19092  ac_status=$?
19093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094  (exit $ac_status); }; } &&
19095	 { ac_try='test -s conftest$ac_exeext'
19096  { (case "(($ac_try" in
19097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098  *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101  (eval "$ac_try") 2>&5
19102  ac_status=$?
19103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104  (exit $ac_status); }; }; then
19105  ac_cv_lib_gcc___cmpdi2=yes
19106else
19107  echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110	ac_cv_lib_gcc___cmpdi2=no
19111fi
19112
19113rm -f core conftest.err conftest.$ac_objext \
19114      conftest$ac_exeext conftest.$ac_ext
19115LIBS=$ac_check_lib_save_LIBS
19116fi
19117{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19118echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19119if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19120
19121cat >>confdefs.h <<\_ACEOF
19122#define HAVE___CMPDI2 1
19123_ACEOF
19124
19125fi
19126
19127fi
19128
19129if test "$llvm_cv_os_type" = "MingW" ; then
19130  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19131echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19132  cat >conftest.$ac_ext <<_ACEOF
19133#include <windows.h>
19134#include <imagehlp.h>
19135extern void foo(PENUMLOADED_MODULES_CALLBACK);
19136extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19137_ACEOF
19138rm -f conftest.$ac_objext
19139if { (ac_try="$ac_compile"
19140case "(($ac_try" in
19141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142  *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145  (eval "$ac_compile") 2>conftest.er1
19146  ac_status=$?
19147  grep -v '^ *+' conftest.er1 >conftest.err
19148  rm -f conftest.er1
19149  cat conftest.err >&5
19150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151  (exit $ac_status); } &&
19152	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153  { (case "(($ac_try" in
19154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155  *) ac_try_echo=$ac_try;;
19156esac
19157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158  (eval "$ac_try") 2>&5
19159  ac_status=$?
19160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161  (exit $ac_status); }; } &&
19162	 { ac_try='test -s conftest.$ac_objext'
19163  { (case "(($ac_try" in
19164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165  *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168  (eval "$ac_try") 2>&5
19169  ac_status=$?
19170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171  (exit $ac_status); }; }; then
19172
19173  { echo "$as_me:$LINENO: result: yes" >&5
19174echo "${ECHO_T}yes" >&6; }
19175  llvm_cv_win32_elmcb_pcstr="PCSTR"
19176
19177else
19178  echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181
19182  { echo "$as_me:$LINENO: result: no" >&5
19183echo "${ECHO_T}no" >&6; }
19184  llvm_cv_win32_elmcb_pcstr="PSTR"
19185
19186fi
19187
19188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189
19190cat >>confdefs.h <<_ACEOF
19191#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19192_ACEOF
19193
19194fi
19195
19196
19197{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19198echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19199if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19200  echo $ECHO_N "(cached) $ECHO_C" >&6
19201else
19202  ac_ext=cpp
19203ac_cpp='$CXXCPP $CPPFLAGS'
19204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19207
19208   cat >conftest.$ac_ext <<_ACEOF
19209/* confdefs.h.  */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h.  */
19214#include <math.h>
19215int
19216main ()
19217{
19218float f; isnan(f);
19219  ;
19220  return 0;
19221}
19222_ACEOF
19223rm -f conftest.$ac_objext
19224if { (ac_try="$ac_compile"
19225case "(($ac_try" in
19226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227  *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230  (eval "$ac_compile") 2>conftest.er1
19231  ac_status=$?
19232  grep -v '^ *+' conftest.er1 >conftest.err
19233  rm -f conftest.er1
19234  cat conftest.err >&5
19235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236  (exit $ac_status); } &&
19237	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19238  { (case "(($ac_try" in
19239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240  *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243  (eval "$ac_try") 2>&5
19244  ac_status=$?
19245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246  (exit $ac_status); }; } &&
19247	 { ac_try='test -s conftest.$ac_objext'
19248  { (case "(($ac_try" in
19249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250  *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253  (eval "$ac_try") 2>&5
19254  ac_status=$?
19255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256  (exit $ac_status); }; }; then
19257  ac_cv_func_isnan_in_math_h=yes
19258else
19259  echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
19262	ac_cv_func_isnan_in_math_h=no
19263fi
19264
19265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19266  ac_ext=c
19267ac_cpp='$CPP $CPPFLAGS'
19268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270ac_compiler_gnu=$ac_cv_c_compiler_gnu
19271
19272fi
19273{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19274echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19275
19276
19277if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19278
19279cat >>confdefs.h <<\_ACEOF
19280#define HAVE_ISNAN_IN_MATH_H 1
19281_ACEOF
19282
19283fi
19284
19285{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19286echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19287if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19288  echo $ECHO_N "(cached) $ECHO_C" >&6
19289else
19290  ac_ext=cpp
19291ac_cpp='$CXXCPP $CPPFLAGS'
19292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19295
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#include <cmath>
19303int
19304main ()
19305{
19306float f; isnan(f);
19307  ;
19308  return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext
19312if { (ac_try="$ac_compile"
19313case "(($ac_try" in
19314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315  *) ac_try_echo=$ac_try;;
19316esac
19317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318  (eval "$ac_compile") 2>conftest.er1
19319  ac_status=$?
19320  grep -v '^ *+' conftest.er1 >conftest.err
19321  rm -f conftest.er1
19322  cat conftest.err >&5
19323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324  (exit $ac_status); } &&
19325	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19326  { (case "(($ac_try" in
19327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328  *) ac_try_echo=$ac_try;;
19329esac
19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331  (eval "$ac_try") 2>&5
19332  ac_status=$?
19333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334  (exit $ac_status); }; } &&
19335	 { ac_try='test -s conftest.$ac_objext'
19336  { (case "(($ac_try" in
19337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338  *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341  (eval "$ac_try") 2>&5
19342  ac_status=$?
19343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344  (exit $ac_status); }; }; then
19345  ac_cv_func_isnan_in_cmath=yes
19346else
19347  echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350	ac_cv_func_isnan_in_cmath=no
19351fi
19352
19353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354  ac_ext=c
19355ac_cpp='$CPP $CPPFLAGS'
19356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359
19360fi
19361{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19362echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19363
19364if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19365
19366cat >>confdefs.h <<\_ACEOF
19367#define HAVE_ISNAN_IN_CMATH 1
19368_ACEOF
19369
19370fi
19371
19372{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19373echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19374if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19375  echo $ECHO_N "(cached) $ECHO_C" >&6
19376else
19377  ac_ext=cpp
19378ac_cpp='$CXXCPP $CPPFLAGS'
19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383   cat >conftest.$ac_ext <<_ACEOF
19384/* confdefs.h.  */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
19388/* end confdefs.h.  */
19389#include <cmath>
19390int
19391main ()
19392{
19393float f; std::isnan(f);
19394  ;
19395  return 0;
19396}
19397_ACEOF
19398rm -f conftest.$ac_objext
19399if { (ac_try="$ac_compile"
19400case "(($ac_try" in
19401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402  *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405  (eval "$ac_compile") 2>conftest.er1
19406  ac_status=$?
19407  grep -v '^ *+' conftest.er1 >conftest.err
19408  rm -f conftest.er1
19409  cat conftest.err >&5
19410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411  (exit $ac_status); } &&
19412	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413  { (case "(($ac_try" in
19414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415  *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418  (eval "$ac_try") 2>&5
19419  ac_status=$?
19420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421  (exit $ac_status); }; } &&
19422	 { ac_try='test -s conftest.$ac_objext'
19423  { (case "(($ac_try" in
19424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425  *) ac_try_echo=$ac_try;;
19426esac
19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428  (eval "$ac_try") 2>&5
19429  ac_status=$?
19430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431  (exit $ac_status); }; }; then
19432  ac_cv_func_std_isnan_in_cmath=yes
19433else
19434  echo "$as_me: failed program was:" >&5
19435sed 's/^/| /' conftest.$ac_ext >&5
19436
19437	ac_cv_func_std_isnan_in_cmath=no
19438fi
19439
19440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441  ac_ext=c
19442ac_cpp='$CPP $CPPFLAGS'
19443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447fi
19448{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19449echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19450
19451if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19452
19453cat >>confdefs.h <<\_ACEOF
19454#define HAVE_STD_ISNAN_IN_CMATH 1
19455_ACEOF
19456
19457fi
19458
19459
19460{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19461echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19462if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19463  echo $ECHO_N "(cached) $ECHO_C" >&6
19464else
19465  ac_ext=cpp
19466ac_cpp='$CXXCPP $CPPFLAGS'
19467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19470
19471   cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h.  */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h.  */
19477#include <math.h>
19478int
19479main ()
19480{
19481float f; isinf(f);
19482  ;
19483  return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (ac_try="$ac_compile"
19488case "(($ac_try" in
19489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490  *) ac_try_echo=$ac_try;;
19491esac
19492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493  (eval "$ac_compile") 2>conftest.er1
19494  ac_status=$?
19495  grep -v '^ *+' conftest.er1 >conftest.err
19496  rm -f conftest.er1
19497  cat conftest.err >&5
19498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499  (exit $ac_status); } &&
19500	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501  { (case "(($ac_try" in
19502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503  *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506  (eval "$ac_try") 2>&5
19507  ac_status=$?
19508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509  (exit $ac_status); }; } &&
19510	 { ac_try='test -s conftest.$ac_objext'
19511  { (case "(($ac_try" in
19512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513  *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516  (eval "$ac_try") 2>&5
19517  ac_status=$?
19518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519  (exit $ac_status); }; }; then
19520  ac_cv_func_isinf_in_math_h=yes
19521else
19522  echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525	ac_cv_func_isinf_in_math_h=no
19526fi
19527
19528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529  ac_ext=c
19530ac_cpp='$CPP $CPPFLAGS'
19531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535fi
19536{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19537echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19538
19539if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19540
19541cat >>confdefs.h <<\_ACEOF
19542#define HAVE_ISINF_IN_MATH_H 1
19543_ACEOF
19544
19545fi
19546
19547{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19548echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19549if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19550  echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552  ac_ext=cpp
19553ac_cpp='$CXXCPP $CPPFLAGS'
19554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
19558   cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h.  */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h.  */
19564#include <cmath>
19565int
19566main ()
19567{
19568float f; isinf(f);
19569  ;
19570  return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext
19574if { (ac_try="$ac_compile"
19575case "(($ac_try" in
19576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577  *) ac_try_echo=$ac_try;;
19578esac
19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580  (eval "$ac_compile") 2>conftest.er1
19581  ac_status=$?
19582  grep -v '^ *+' conftest.er1 >conftest.err
19583  rm -f conftest.er1
19584  cat conftest.err >&5
19585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586  (exit $ac_status); } &&
19587	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588  { (case "(($ac_try" in
19589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590  *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593  (eval "$ac_try") 2>&5
19594  ac_status=$?
19595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596  (exit $ac_status); }; } &&
19597	 { ac_try='test -s conftest.$ac_objext'
19598  { (case "(($ac_try" in
19599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600  *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603  (eval "$ac_try") 2>&5
19604  ac_status=$?
19605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606  (exit $ac_status); }; }; then
19607  ac_cv_func_isinf_in_cmath=yes
19608else
19609  echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612	ac_cv_func_isinf_in_cmath=no
19613fi
19614
19615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616  ac_ext=c
19617ac_cpp='$CPP $CPPFLAGS'
19618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622fi
19623{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19624echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19625
19626if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19627
19628cat >>confdefs.h <<\_ACEOF
19629#define HAVE_ISINF_IN_CMATH 1
19630_ACEOF
19631
19632fi
19633
19634{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19635echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19636if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19637  echo $ECHO_N "(cached) $ECHO_C" >&6
19638else
19639  ac_ext=cpp
19640ac_cpp='$CXXCPP $CPPFLAGS'
19641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19644
19645   cat >conftest.$ac_ext <<_ACEOF
19646/* confdefs.h.  */
19647_ACEOF
19648cat confdefs.h >>conftest.$ac_ext
19649cat >>conftest.$ac_ext <<_ACEOF
19650/* end confdefs.h.  */
19651#include <cmath>
19652int
19653main ()
19654{
19655float f; std::isinf(f)}
19656  ;
19657  return 0;
19658}
19659_ACEOF
19660rm -f conftest.$ac_objext
19661if { (ac_try="$ac_compile"
19662case "(($ac_try" in
19663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664  *) ac_try_echo=$ac_try;;
19665esac
19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667  (eval "$ac_compile") 2>conftest.er1
19668  ac_status=$?
19669  grep -v '^ *+' conftest.er1 >conftest.err
19670  rm -f conftest.er1
19671  cat conftest.err >&5
19672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673  (exit $ac_status); } &&
19674	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19675  { (case "(($ac_try" in
19676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677  *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680  (eval "$ac_try") 2>&5
19681  ac_status=$?
19682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683  (exit $ac_status); }; } &&
19684	 { ac_try='test -s conftest.$ac_objext'
19685  { (case "(($ac_try" in
19686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687  *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690  (eval "$ac_try") 2>&5
19691  ac_status=$?
19692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693  (exit $ac_status); }; }; then
19694  ac_cv_func_std_isinf_in_cmath=yes
19695else
19696  echo "$as_me: failed program was:" >&5
19697sed 's/^/| /' conftest.$ac_ext >&5
19698
19699	ac_cv_func_std_isinf_in_cmath=no
19700fi
19701
19702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703  ac_ext=c
19704ac_cpp='$CPP $CPPFLAGS'
19705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709fi
19710{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19711echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19712
19713if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19714
19715cat >>confdefs.h <<\_ACEOF
19716#define HAVE_STD_ISINF_IN_CMATH 1
19717_ACEOF
19718
19719fi
19720
19721{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19722echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19723if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19724  echo $ECHO_N "(cached) $ECHO_C" >&6
19725else
19726  ac_ext=cpp
19727ac_cpp='$CXXCPP $CPPFLAGS'
19728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19731
19732   cat >conftest.$ac_ext <<_ACEOF
19733/* confdefs.h.  */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h.  */
19738#include <ieeefp.h>
19739int
19740main ()
19741{
19742float f; finite(f);
19743  ;
19744  return 0;
19745}
19746_ACEOF
19747rm -f conftest.$ac_objext
19748if { (ac_try="$ac_compile"
19749case "(($ac_try" in
19750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751  *) ac_try_echo=$ac_try;;
19752esac
19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754  (eval "$ac_compile") 2>conftest.er1
19755  ac_status=$?
19756  grep -v '^ *+' conftest.er1 >conftest.err
19757  rm -f conftest.er1
19758  cat conftest.err >&5
19759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760  (exit $ac_status); } &&
19761	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762  { (case "(($ac_try" in
19763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764  *) ac_try_echo=$ac_try;;
19765esac
19766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767  (eval "$ac_try") 2>&5
19768  ac_status=$?
19769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770  (exit $ac_status); }; } &&
19771	 { ac_try='test -s conftest.$ac_objext'
19772  { (case "(($ac_try" in
19773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774  *) ac_try_echo=$ac_try;;
19775esac
19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777  (eval "$ac_try") 2>&5
19778  ac_status=$?
19779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780  (exit $ac_status); }; }; then
19781  ac_cv_func_finite_in_ieeefp_h=yes
19782else
19783  echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786	ac_cv_func_finite_in_ieeefp_h=no
19787fi
19788
19789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790  ac_ext=c
19791ac_cpp='$CPP $CPPFLAGS'
19792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795
19796fi
19797{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19798echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19799
19800if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19801
19802cat >>confdefs.h <<\_ACEOF
19803#define HAVE_FINITE_IN_IEEEFP_H 1
19804_ACEOF
19805
19806fi
19807
19808
19809
19810if test "$llvm_cv_platform_type" = "Unix" ; then
19811
19812
19813for ac_header in stdlib.h unistd.h
19814do
19815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820  echo $ECHO_N "(cached) $ECHO_C" >&6
19821fi
19822ac_res=`eval echo '${'$as_ac_Header'}'`
19823	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19824echo "${ECHO_T}$ac_res" >&6; }
19825else
19826  # Is the header compilable?
19827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19829cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h.  */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h.  */
19835$ac_includes_default
19836#include <$ac_header>
19837_ACEOF
19838rm -f conftest.$ac_objext
19839if { (ac_try="$ac_compile"
19840case "(($ac_try" in
19841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842  *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845  (eval "$ac_compile") 2>conftest.er1
19846  ac_status=$?
19847  grep -v '^ *+' conftest.er1 >conftest.err
19848  rm -f conftest.er1
19849  cat conftest.err >&5
19850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851  (exit $ac_status); } &&
19852	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853  { (case "(($ac_try" in
19854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855  *) ac_try_echo=$ac_try;;
19856esac
19857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858  (eval "$ac_try") 2>&5
19859  ac_status=$?
19860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861  (exit $ac_status); }; } &&
19862	 { ac_try='test -s conftest.$ac_objext'
19863  { (case "(($ac_try" in
19864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865  *) ac_try_echo=$ac_try;;
19866esac
19867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868  (eval "$ac_try") 2>&5
19869  ac_status=$?
19870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871  (exit $ac_status); }; }; then
19872  ac_header_compiler=yes
19873else
19874  echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877	ac_header_compiler=no
19878fi
19879
19880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882echo "${ECHO_T}$ac_header_compiler" >&6; }
19883
19884# Is the header present?
19885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19887cat >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#include <$ac_header>
19894_ACEOF
19895if { (ac_try="$ac_cpp conftest.$ac_ext"
19896case "(($ac_try" in
19897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898  *) ac_try_echo=$ac_try;;
19899esac
19900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19902  ac_status=$?
19903  grep -v '^ *+' conftest.er1 >conftest.err
19904  rm -f conftest.er1
19905  cat conftest.err >&5
19906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907  (exit $ac_status); } >/dev/null; then
19908  if test -s conftest.err; then
19909    ac_cpp_err=$ac_c_preproc_warn_flag
19910    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19911  else
19912    ac_cpp_err=
19913  fi
19914else
19915  ac_cpp_err=yes
19916fi
19917if test -z "$ac_cpp_err"; then
19918  ac_header_preproc=yes
19919else
19920  echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923  ac_header_preproc=no
19924fi
19925
19926rm -f conftest.err conftest.$ac_ext
19927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19928echo "${ECHO_T}$ac_header_preproc" >&6; }
19929
19930# So?  What about this header?
19931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19932  yes:no: )
19933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19937    ac_header_preproc=yes
19938    ;;
19939  no:yes:* )
19940    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19942    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19943echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19944    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19946    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19947echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19950    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19952    ( cat <<\_ASBOX
19953## ------------------------------ ##
19954## Report this to bugs@yourdomain ##
19955## ------------------------------ ##
19956_ASBOX
19957     ) | sed "s/^/$as_me: WARNING:     /" >&2
19958    ;;
19959esac
19960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963  echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965  eval "$as_ac_Header=\$ac_header_preproc"
19966fi
19967ac_res=`eval echo '${'$as_ac_Header'}'`
19968	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19969echo "${ECHO_T}$ac_res" >&6; }
19970
19971fi
19972if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973  cat >>confdefs.h <<_ACEOF
19974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19975_ACEOF
19976
19977fi
19978
19979done
19980
19981
19982for ac_func in getpagesize
19983do
19984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19985{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19987if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19988  echo $ECHO_N "(cached) $ECHO_C" >&6
19989else
19990  cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h.  */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h.  */
19996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19997   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19998#define $ac_func innocuous_$ac_func
19999
20000/* System header to define __stub macros and hopefully few prototypes,
20001    which can conflict with char $ac_func (); below.
20002    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20003    <limits.h> exists even on freestanding compilers.  */
20004
20005#ifdef __STDC__
20006# include <limits.h>
20007#else
20008# include <assert.h>
20009#endif
20010
20011#undef $ac_func
20012
20013/* Override any GCC internal prototype to avoid an error.
20014   Use char because int might match the return type of a GCC
20015   builtin and then its argument prototype would still apply.  */
20016#ifdef __cplusplus
20017extern "C"
20018#endif
20019char $ac_func ();
20020/* The GNU C library defines this for functions which it implements
20021    to always fail with ENOSYS.  Some functions are actually named
20022    something starting with __ and the normal name is an alias.  */
20023#if defined __stub_$ac_func || defined __stub___$ac_func
20024choke me
20025#endif
20026
20027int
20028main ()
20029{
20030return $ac_func ();
20031  ;
20032  return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext conftest$ac_exeext
20036if { (ac_try="$ac_link"
20037case "(($ac_try" in
20038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039  *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042  (eval "$ac_link") 2>conftest.er1
20043  ac_status=$?
20044  grep -v '^ *+' conftest.er1 >conftest.err
20045  rm -f conftest.er1
20046  cat conftest.err >&5
20047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048  (exit $ac_status); } &&
20049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050  { (case "(($ac_try" in
20051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052  *) ac_try_echo=$ac_try;;
20053esac
20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055  (eval "$ac_try") 2>&5
20056  ac_status=$?
20057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058  (exit $ac_status); }; } &&
20059	 { ac_try='test -s conftest$ac_exeext'
20060  { (case "(($ac_try" in
20061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062  *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065  (eval "$ac_try") 2>&5
20066  ac_status=$?
20067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068  (exit $ac_status); }; }; then
20069  eval "$as_ac_var=yes"
20070else
20071  echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074	eval "$as_ac_var=no"
20075fi
20076
20077rm -f core conftest.err conftest.$ac_objext \
20078      conftest$ac_exeext conftest.$ac_ext
20079fi
20080ac_res=`eval echo '${'$as_ac_var'}'`
20081	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20082echo "${ECHO_T}$ac_res" >&6; }
20083if test `eval echo '${'$as_ac_var'}'` = yes; then
20084  cat >>confdefs.h <<_ACEOF
20085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20086_ACEOF
20087
20088fi
20089done
20090
20091{ echo "$as_me:$LINENO: checking for working mmap" >&5
20092echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20093if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20094  echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096  if test "$cross_compiling" = yes; then
20097  ac_cv_func_mmap_fixed_mapped=no
20098else
20099  cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h.  */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h.  */
20105$ac_includes_default
20106/* malloc might have been renamed as rpl_malloc. */
20107#undef malloc
20108
20109/* Thanks to Mike Haertel and Jim Avera for this test.
20110   Here is a matrix of mmap possibilities:
20111	mmap private not fixed
20112	mmap private fixed at somewhere currently unmapped
20113	mmap private fixed at somewhere already mapped
20114	mmap shared not fixed
20115	mmap shared fixed at somewhere currently unmapped
20116	mmap shared fixed at somewhere already mapped
20117   For private mappings, we should verify that changes cannot be read()
20118   back from the file, nor mmap's back from the file at a different
20119   address.  (There have been systems where private was not correctly
20120   implemented like the infamous i386 svr4.0, and systems where the
20121   VM page cache was not coherent with the file system buffer cache
20122   like early versions of FreeBSD and possibly contemporary NetBSD.)
20123   For shared mappings, we should conversely verify that changes get
20124   propagated back to all the places they're supposed to be.
20125
20126   Grep wants private fixed already mapped.
20127   The main things grep needs to know about mmap are:
20128   * does it exist and is it safe to write into the mmap'd area
20129   * how to use it (BSD variants)  */
20130
20131#include <fcntl.h>
20132#include <sys/mman.h>
20133
20134#if !STDC_HEADERS && !HAVE_STDLIB_H
20135char *malloc ();
20136#endif
20137
20138/* This mess was copied from the GNU getpagesize.h.  */
20139#if !HAVE_GETPAGESIZE
20140/* Assume that all systems that can run configure have sys/param.h.  */
20141# if !HAVE_SYS_PARAM_H
20142#  define HAVE_SYS_PARAM_H 1
20143# endif
20144
20145# ifdef _SC_PAGESIZE
20146#  define getpagesize() sysconf(_SC_PAGESIZE)
20147# else /* no _SC_PAGESIZE */
20148#  if HAVE_SYS_PARAM_H
20149#   include <sys/param.h>
20150#   ifdef EXEC_PAGESIZE
20151#    define getpagesize() EXEC_PAGESIZE
20152#   else /* no EXEC_PAGESIZE */
20153#    ifdef NBPG
20154#     define getpagesize() NBPG * CLSIZE
20155#     ifndef CLSIZE
20156#      define CLSIZE 1
20157#     endif /* no CLSIZE */
20158#    else /* no NBPG */
20159#     ifdef NBPC
20160#      define getpagesize() NBPC
20161#     else /* no NBPC */
20162#      ifdef PAGESIZE
20163#       define getpagesize() PAGESIZE
20164#      endif /* PAGESIZE */
20165#     endif /* no NBPC */
20166#    endif /* no NBPG */
20167#   endif /* no EXEC_PAGESIZE */
20168#  else /* no HAVE_SYS_PARAM_H */
20169#   define getpagesize() 8192	/* punt totally */
20170#  endif /* no HAVE_SYS_PARAM_H */
20171# endif /* no _SC_PAGESIZE */
20172
20173#endif /* no HAVE_GETPAGESIZE */
20174
20175int
20176main ()
20177{
20178  char *data, *data2, *data3;
20179  int i, pagesize;
20180  int fd;
20181
20182  pagesize = getpagesize ();
20183
20184  /* First, make a file with some known garbage in it. */
20185  data = (char *) malloc (pagesize);
20186  if (!data)
20187    return 1;
20188  for (i = 0; i < pagesize; ++i)
20189    *(data + i) = rand ();
20190  umask (0);
20191  fd = creat ("conftest.mmap", 0600);
20192  if (fd < 0)
20193    return 1;
20194  if (write (fd, data, pagesize) != pagesize)
20195    return 1;
20196  close (fd);
20197
20198  /* Next, try to mmap the file at a fixed address which already has
20199     something else allocated at it.  If we can, also make sure that
20200     we see the same garbage.  */
20201  fd = open ("conftest.mmap", O_RDWR);
20202  if (fd < 0)
20203    return 1;
20204  data2 = (char *) malloc (2 * pagesize);
20205  if (!data2)
20206    return 1;
20207  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20208  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20209		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20210    return 1;
20211  for (i = 0; i < pagesize; ++i)
20212    if (*(data + i) != *(data2 + i))
20213      return 1;
20214
20215  /* Finally, make sure that changes to the mapped area do not
20216     percolate back to the file as seen by read().  (This is a bug on
20217     some variants of i386 svr4.0.)  */
20218  for (i = 0; i < pagesize; ++i)
20219    *(data2 + i) = *(data2 + i) + 1;
20220  data3 = (char *) malloc (pagesize);
20221  if (!data3)
20222    return 1;
20223  if (read (fd, data3, pagesize) != pagesize)
20224    return 1;
20225  for (i = 0; i < pagesize; ++i)
20226    if (*(data + i) != *(data3 + i))
20227      return 1;
20228  close (fd);
20229  return 0;
20230}
20231_ACEOF
20232rm -f conftest$ac_exeext
20233if { (ac_try="$ac_link"
20234case "(($ac_try" in
20235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236  *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239  (eval "$ac_link") 2>&5
20240  ac_status=$?
20241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243  { (case "(($ac_try" in
20244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245  *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248  (eval "$ac_try") 2>&5
20249  ac_status=$?
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); }; }; then
20252  ac_cv_func_mmap_fixed_mapped=yes
20253else
20254  echo "$as_me: program exited with status $ac_status" >&5
20255echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
20258( exit $ac_status )
20259ac_cv_func_mmap_fixed_mapped=no
20260fi
20261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262fi
20263
20264
20265fi
20266{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20267echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20268if test $ac_cv_func_mmap_fixed_mapped = yes; then
20269
20270cat >>confdefs.h <<\_ACEOF
20271#define HAVE_MMAP 1
20272_ACEOF
20273
20274fi
20275rm -f conftest.mmap
20276
20277  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20278echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20279if test "${ac_cv_func_mmap_file+set}" = set; then
20280  echo $ECHO_N "(cached) $ECHO_C" >&6
20281else
20282   ac_ext=c
20283ac_cpp='$CPP $CPPFLAGS'
20284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287
20288  if test "$cross_compiling" = yes; then
20289  ac_cv_func_mmap_file=no
20290else
20291  cat >conftest.$ac_ext <<_ACEOF
20292
20293    /* confdefs.h.  */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h.  */
20298
20299#include <sys/types.h>
20300#include <sys/mman.h>
20301#include <fcntl.h>
20302
20303int
20304main ()
20305{
20306
20307  int fd;
20308  fd = creat ("foo",0777);
20309  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20310  unlink ("foo");
20311  return (fd != (int) MAP_FAILED);
20312  ;
20313  return 0;
20314}
20315_ACEOF
20316rm -f conftest$ac_exeext
20317if { (ac_try="$ac_link"
20318case "(($ac_try" in
20319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320  *) ac_try_echo=$ac_try;;
20321esac
20322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323  (eval "$ac_link") 2>&5
20324  ac_status=$?
20325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327  { (case "(($ac_try" in
20328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329  *) ac_try_echo=$ac_try;;
20330esac
20331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332  (eval "$ac_try") 2>&5
20333  ac_status=$?
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); }; }; then
20336  ac_cv_func_mmap_file=yes
20337else
20338  echo "$as_me: program exited with status $ac_status" >&5
20339echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342( exit $ac_status )
20343ac_cv_func_mmap_file=no
20344fi
20345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20346fi
20347
20348
20349  ac_ext=c
20350ac_cpp='$CPP $CPPFLAGS'
20351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354
20355
20356fi
20357{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20358echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20359if test "$ac_cv_func_mmap_file" = yes; then
20360
20361cat >>confdefs.h <<\_ACEOF
20362#define HAVE_MMAP_FILE
20363_ACEOF
20364
20365   MMAP_FILE=yes
20366
20367fi
20368
20369  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20370echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20371if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20372  echo $ECHO_N "(cached) $ECHO_C" >&6
20373else
20374  if test "$llvm_cv_os_type" = "Interix" ; then
20375   ac_cv_need_dev_zero_for_mmap=yes
20376 else
20377   ac_cv_need_dev_zero_for_mmap=no
20378 fi
20379
20380fi
20381{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20382echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20383if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20384
20385cat >>confdefs.h <<\_ACEOF
20386#define NEED_DEV_ZERO_FOR_MMAP 1
20387_ACEOF
20388
20389fi
20390
20391  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20392  then
20393    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20394echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20395  fi
20396  if test "$ac_cv_func_mmap_file" = "no"
20397  then
20398    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20399echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20400  fi
20401fi
20402
20403{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20404echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20405ac_ext=cpp
20406ac_cpp='$CXXCPP $CPPFLAGS'
20407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20410
20411cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h.  */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h.  */
20417int main() {
20418        volatile unsigned long val = 1;
20419        __sync_synchronize();
20420        __sync_val_compare_and_swap(&val, 1, 0);
20421        __sync_add_and_fetch(&val, 1);
20422        __sync_sub_and_fetch(&val, 1);
20423        return 0;
20424      }
20425
20426_ACEOF
20427rm -f conftest.$ac_objext conftest$ac_exeext
20428if { (ac_try="$ac_link"
20429case "(($ac_try" in
20430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431  *) ac_try_echo=$ac_try;;
20432esac
20433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434  (eval "$ac_link") 2>conftest.er1
20435  ac_status=$?
20436  grep -v '^ *+' conftest.er1 >conftest.err
20437  rm -f conftest.er1
20438  cat conftest.err >&5
20439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440  (exit $ac_status); } &&
20441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442  { (case "(($ac_try" in
20443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444  *) ac_try_echo=$ac_try;;
20445esac
20446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447  (eval "$ac_try") 2>&5
20448  ac_status=$?
20449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450  (exit $ac_status); }; } &&
20451	 { ac_try='test -s conftest$ac_exeext'
20452  { (case "(($ac_try" in
20453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454  *) ac_try_echo=$ac_try;;
20455esac
20456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457  (eval "$ac_try") 2>&5
20458  ac_status=$?
20459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460  (exit $ac_status); }; }; then
20461  ac_ext=c
20462ac_cpp='$CPP $CPPFLAGS'
20463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465ac_compiler_gnu=$ac_cv_c_compiler_gnu
20466
20467  { echo "$as_me:$LINENO: result: yes" >&5
20468echo "${ECHO_T}yes" >&6; }
20469
20470cat >>confdefs.h <<\_ACEOF
20471#define LLVM_HAS_ATOMICS 1
20472_ACEOF
20473
20474else
20475  echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478	{ echo "$as_me:$LINENO: result: no" >&5
20479echo "${ECHO_T}no" >&6; }
20480
20481cat >>confdefs.h <<\_ACEOF
20482#define LLVM_HAS_ATOMICS 0
20483_ACEOF
20484
20485  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20486echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20487fi
20488
20489rm -f core conftest.err conftest.$ac_objext \
20490      conftest$ac_exeext conftest.$ac_ext
20491
20492
20493if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20494  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20495echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20496if test "${llvm_cv_linux_mixed+set}" = set; then
20497  echo $ECHO_N "(cached) $ECHO_C" >&6
20498else
20499   ac_ext=c
20500ac_cpp='$CPP $CPPFLAGS'
20501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504
20505  cat >conftest.$ac_ext <<_ACEOF
20506/* confdefs.h.  */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h.  */
20511#ifndef __x86_64__
20512       error: Not x86-64 even if uname says so!
20513      #endif
20514
20515int
20516main ()
20517{
20518
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523rm -f conftest.$ac_objext
20524if { (ac_try="$ac_compile"
20525case "(($ac_try" in
20526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527  *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530  (eval "$ac_compile") 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } &&
20537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538  { (case "(($ac_try" in
20539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540  *) ac_try_echo=$ac_try;;
20541esac
20542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543  (eval "$ac_try") 2>&5
20544  ac_status=$?
20545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546  (exit $ac_status); }; } &&
20547	 { ac_try='test -s conftest.$ac_objext'
20548  { (case "(($ac_try" in
20549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550  *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553  (eval "$ac_try") 2>&5
20554  ac_status=$?
20555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556  (exit $ac_status); }; }; then
20557  llvm_cv_linux_mixed=no
20558else
20559  echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562	llvm_cv_linux_mixed=yes
20563fi
20564
20565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566  ac_ext=c
20567ac_cpp='$CPP $CPPFLAGS'
20568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571
20572
20573fi
20574{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20575echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20576
20577  if test "$llvm_cv_linux_mixed" = "yes"; then
20578    llvm_cv_target_arch="x86"
20579    ARCH="x86"
20580  fi
20581fi
20582
20583
20584for ac_func in __dso_handle
20585do
20586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20590  echo $ECHO_N "(cached) $ECHO_C" >&6
20591else
20592  cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h.  */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h.  */
20598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20600#define $ac_func innocuous_$ac_func
20601
20602/* System header to define __stub macros and hopefully few prototypes,
20603    which can conflict with char $ac_func (); below.
20604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20605    <limits.h> exists even on freestanding compilers.  */
20606
20607#ifdef __STDC__
20608# include <limits.h>
20609#else
20610# include <assert.h>
20611#endif
20612
20613#undef $ac_func
20614
20615/* Override any GCC internal prototype to avoid an error.
20616   Use char because int might match the return type of a GCC
20617   builtin and then its argument prototype would still apply.  */
20618#ifdef __cplusplus
20619extern "C"
20620#endif
20621char $ac_func ();
20622/* The GNU C library defines this for functions which it implements
20623    to always fail with ENOSYS.  Some functions are actually named
20624    something starting with __ and the normal name is an alias.  */
20625#if defined __stub_$ac_func || defined __stub___$ac_func
20626choke me
20627#endif
20628
20629int
20630main ()
20631{
20632return $ac_func ();
20633  ;
20634  return 0;
20635}
20636_ACEOF
20637rm -f conftest.$ac_objext conftest$ac_exeext
20638if { (ac_try="$ac_link"
20639case "(($ac_try" in
20640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641  *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644  (eval "$ac_link") 2>conftest.er1
20645  ac_status=$?
20646  grep -v '^ *+' conftest.er1 >conftest.err
20647  rm -f conftest.er1
20648  cat conftest.err >&5
20649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650  (exit $ac_status); } &&
20651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652  { (case "(($ac_try" in
20653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654  *) ac_try_echo=$ac_try;;
20655esac
20656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657  (eval "$ac_try") 2>&5
20658  ac_status=$?
20659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660  (exit $ac_status); }; } &&
20661	 { ac_try='test -s conftest$ac_exeext'
20662  { (case "(($ac_try" in
20663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664  *) ac_try_echo=$ac_try;;
20665esac
20666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667  (eval "$ac_try") 2>&5
20668  ac_status=$?
20669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670  (exit $ac_status); }; }; then
20671  eval "$as_ac_var=yes"
20672else
20673  echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676	eval "$as_ac_var=no"
20677fi
20678
20679rm -f core conftest.err conftest.$ac_objext \
20680      conftest$ac_exeext conftest.$ac_ext
20681fi
20682ac_res=`eval echo '${'$as_ac_var'}'`
20683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20684echo "${ECHO_T}$ac_res" >&6; }
20685if test `eval echo '${'$as_ac_var'}'` = yes; then
20686  cat >>confdefs.h <<_ACEOF
20687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20688_ACEOF
20689
20690fi
20691done
20692
20693
20694SHLIBEXT=$libltdl_cv_shlibext
20695
20696
20697SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20698
20699
20700# Translate the various configuration directories and other basic
20701# information into substitutions that will end up in Makefile.config.in
20702# that these configured values can be used by the makefiles
20703if test "${prefix}" = "NONE" ; then
20704  prefix="/usr/local"
20705fi
20706eval LLVM_PREFIX="${prefix}";
20707eval LLVM_BINDIR="${prefix}/bin";
20708eval LLVM_LIBDIR="${prefix}/lib";
20709eval LLVM_DATADIR="${prefix}/share/llvm";
20710eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20711eval LLVM_ETCDIR="${prefix}/etc/llvm";
20712eval LLVM_INCLUDEDIR="${prefix}/include";
20713eval LLVM_INFODIR="${prefix}/info";
20714eval LLVM_MANDIR="${prefix}/man";
20715LLVM_CONFIGTIME=`date`
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727# Place the various directores into the config.h file as #defines so that we
20728# can know about the installation paths within LLVM.
20729
20730cat >>confdefs.h <<_ACEOF
20731#define LLVM_PREFIX "$LLVM_PREFIX"
20732_ACEOF
20733
20734
20735cat >>confdefs.h <<_ACEOF
20736#define LLVM_BINDIR "$LLVM_BINDIR"
20737_ACEOF
20738
20739
20740cat >>confdefs.h <<_ACEOF
20741#define LLVM_LIBDIR "$LLVM_LIBDIR"
20742_ACEOF
20743
20744
20745cat >>confdefs.h <<_ACEOF
20746#define LLVM_DATADIR "$LLVM_DATADIR"
20747_ACEOF
20748
20749
20750cat >>confdefs.h <<_ACEOF
20751#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20752_ACEOF
20753
20754
20755cat >>confdefs.h <<_ACEOF
20756#define LLVM_ETCDIR "$LLVM_ETCDIR"
20757_ACEOF
20758
20759
20760cat >>confdefs.h <<_ACEOF
20761#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20762_ACEOF
20763
20764
20765cat >>confdefs.h <<_ACEOF
20766#define LLVM_INFODIR "$LLVM_INFODIR"
20767_ACEOF
20768
20769
20770cat >>confdefs.h <<_ACEOF
20771#define LLVM_MANDIR "$LLVM_MANDIR"
20772_ACEOF
20773
20774
20775cat >>confdefs.h <<_ACEOF
20776#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20777_ACEOF
20778
20779
20780cat >>confdefs.h <<_ACEOF
20781#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20782_ACEOF
20783
20784
20785# Determine which bindings to build.
20786if test "$BINDINGS_TO_BUILD" = auto ; then
20787  BINDINGS_TO_BUILD=""
20788  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20789    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20790  fi
20791fi
20792BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20793
20794
20795# This isn't really configurey, but it avoids having to repeat the list in
20796# other files.
20797ALL_BINDINGS=ocaml
20798
20799
20800# Do any work necessary to ensure that bindings have what they need.
20801binding_prereqs_failed=0
20802for a_binding in $BINDINGS_TO_BUILD ; do
20803  case "$a_binding" in
20804  ocaml)
20805    if test "x$OCAMLC" = x ; then
20806      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20807echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20808      binding_prereqs_failed=1
20809    fi
20810    if test "x$OCAMLDEP" = x ; then
20811      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20812echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20813      binding_prereqs_failed=1
20814    fi
20815    if test "x$OCAMLOPT" = x ; then
20816      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20817echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20818          fi
20819    if test "x$with_ocaml_libdir" != xauto ; then
20820      OCAML_LIBDIR=$with_ocaml_libdir
20821
20822    else
20823      ocaml_stdlib="`"$OCAMLC" -where`"
20824      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20825      then
20826        # ocaml stdlib is beneath our prefix; use stdlib
20827        OCAML_LIBDIR=$ocaml_stdlib
20828
20829      else
20830        # ocaml stdlib is outside our prefix; use libdir/ocaml
20831        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20832
20833      fi
20834    fi
20835    ;;
20836  esac
20837done
20838if test "$binding_prereqs_failed" = 1 ; then
20839  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20840echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20841   { (exit 1); exit 1; }; }
20842fi
20843
20844{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20845echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20846if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20847  echo $ECHO_N "(cached) $ECHO_C" >&6
20848else
20849   ac_ext=cpp
20850ac_cpp='$CXXCPP $CPPFLAGS'
20851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855  oldcxxflags="$CXXFLAGS"
20856  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20857  cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h.  */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h.  */
20863
20864int
20865main ()
20866{
20867
20868  ;
20869  return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext
20873if { (ac_try="$ac_compile"
20874case "(($ac_try" in
20875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876  *) ac_try_echo=$ac_try;;
20877esac
20878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879  (eval "$ac_compile") 2>conftest.er1
20880  ac_status=$?
20881  grep -v '^ *+' conftest.er1 >conftest.err
20882  rm -f conftest.er1
20883  cat conftest.err >&5
20884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885  (exit $ac_status); } &&
20886	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20887  { (case "(($ac_try" in
20888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889  *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892  (eval "$ac_try") 2>&5
20893  ac_status=$?
20894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895  (exit $ac_status); }; } &&
20896	 { ac_try='test -s conftest.$ac_objext'
20897  { (case "(($ac_try" in
20898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899  *) ac_try_echo=$ac_try;;
20900esac
20901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902  (eval "$ac_try") 2>&5
20903  ac_status=$?
20904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905  (exit $ac_status); }; }; then
20906  llvm_cv_cxx_visibility_inlines_hidden=yes
20907else
20908  echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
20911	llvm_cv_cxx_visibility_inlines_hidden=no
20912fi
20913
20914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915  CXXFLAGS="$oldcxxflags"
20916  ac_ext=c
20917ac_cpp='$CPP $CPPFLAGS'
20918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921
20922
20923fi
20924{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20925echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20926if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20927  ENABLE_VISIBILITY_INLINES_HIDDEN=1
20928
20929else
20930  ENABLE_VISIBILITY_INLINES_HIDDEN=0
20931
20932fi
20933
20934
20935if test "$llvm_cv_link_use_r" = "yes" ; then
20936  RPATH="-Wl,-R"
20937else
20938  RPATH="-Wl,-rpath"
20939fi
20940
20941
20942if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20943  RDYNAMIC="-Wl,-export-dynamic"
20944else
20945  RDYNAMIC=""
20946fi
20947
20948
20949
20950
20951ac_config_files="$ac_config_files Makefile.common"
20952
20953ac_config_files="$ac_config_files Makefile.llvm.config"
20954
20955
20956ac_config_commands="$ac_config_commands Makefile"
20957
20958
20959ac_config_commands="$ac_config_commands lib/Makefile"
20960
20961
20962ac_config_commands="$ac_config_commands lib/sample/Makefile"
20963
20964
20965ac_config_commands="$ac_config_commands tools/Makefile"
20966
20967
20968ac_config_commands="$ac_config_commands tools/sample/Makefile"
20969
20970
20971
20972cat >confcache <<\_ACEOF
20973# This file is a shell script that caches the results of configure
20974# tests run on this system so they can be shared between configure
20975# scripts and configure runs, see configure's option --config-cache.
20976# It is not useful on other systems.  If it contains results you don't
20977# want to keep, you may remove or edit it.
20978#
20979# config.status only pays attention to the cache file if you give it
20980# the --recheck option to rerun configure.
20981#
20982# `ac_cv_env_foo' variables (set or unset) will be overridden when
20983# loading this file, other *unset* `ac_cv_foo' will be assigned the
20984# following values.
20985
20986_ACEOF
20987
20988# The following way of writing the cache mishandles newlines in values,
20989# but we know of no workaround that is simple, portable, and efficient.
20990# So, we kill variables containing newlines.
20991# Ultrix sh set writes to stderr and can't be redirected directly,
20992# and sets the high bit in the cache file unless we assign to the vars.
20993(
20994  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20995    eval ac_val=\$$ac_var
20996    case $ac_val in #(
20997    *${as_nl}*)
20998      case $ac_var in #(
20999      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21000echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21001      esac
21002      case $ac_var in #(
21003      _ | IFS | as_nl) ;; #(
21004      *) $as_unset $ac_var ;;
21005      esac ;;
21006    esac
21007  done
21008
21009  (set) 2>&1 |
21010    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21011    *${as_nl}ac_space=\ *)
21012      # `set' does not quote correctly, so add quotes (double-quote
21013      # substitution turns \\\\ into \\, and sed turns \\ into \).
21014      sed -n \
21015	"s/'/'\\\\''/g;
21016	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21017      ;; #(
21018    *)
21019      # `set' quotes correctly as required by POSIX, so do not add quotes.
21020      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21021      ;;
21022    esac |
21023    sort
21024) |
21025  sed '
21026     /^ac_cv_env_/b end
21027     t clear
21028     :clear
21029     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21030     t end
21031     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21032     :end' >>confcache
21033if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21034  if test -w "$cache_file"; then
21035    test "x$cache_file" != "x/dev/null" &&
21036      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21037echo "$as_me: updating cache $cache_file" >&6;}
21038    cat confcache >$cache_file
21039  else
21040    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21041echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21042  fi
21043fi
21044rm -f confcache
21045
21046test "x$prefix" = xNONE && prefix=$ac_default_prefix
21047# Let make expand exec_prefix.
21048test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21049
21050# Transform confdefs.h into DEFS.
21051# Protect against shell expansion while executing Makefile rules.
21052# Protect against Makefile macro expansion.
21053#
21054# If the first sed substitution is executed (which looks for macros that
21055# take arguments), then branch to the quote section.  Otherwise,
21056# look for a macro that doesn't take arguments.
21057ac_script='
21058t clear
21059:clear
21060s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
21061t quote
21062s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
21063t quote
21064b any
21065:quote
21066s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21067s/\[/\\&/g
21068s/\]/\\&/g
21069s/\$/$$/g
21070H
21071:any
21072${
21073	g
21074	s/^\n//
21075	s/\n/ /g
21076	p
21077}
21078'
21079DEFS=`sed -n "$ac_script" confdefs.h`
21080
21081
21082ac_libobjs=
21083ac_ltlibobjs=
21084for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21085  # 1. Remove the extension, and $U if already installed.
21086  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21087  ac_i=`echo "$ac_i" | sed "$ac_script"`
21088  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21089  #    will be set to the directory where LIBOBJS objects are built.
21090  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21091  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21092done
21093LIBOBJS=$ac_libobjs
21094
21095LTLIBOBJS=$ac_ltlibobjs
21096
21097
21098if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21099  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21100Usually this means the macro was only invoked conditionally." >&5
21101echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21102Usually this means the macro was only invoked conditionally." >&2;}
21103   { (exit 1); exit 1; }; }
21104fi
21105if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21106  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21107Usually this means the macro was only invoked conditionally." >&5
21108echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21109Usually this means the macro was only invoked conditionally." >&2;}
21110   { (exit 1); exit 1; }; }
21111fi
21112
21113: ${CONFIG_STATUS=./config.status}
21114ac_clean_files_save=$ac_clean_files
21115ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21116{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21117echo "$as_me: creating $CONFIG_STATUS" >&6;}
21118cat >$CONFIG_STATUS <<_ACEOF
21119#! $SHELL
21120# Generated by $as_me.
21121# Run this file to recreate the current configuration.
21122# Compiler output produced by configure, useful for debugging
21123# configure, is in config.log if it exists.
21124
21125debug=false
21126ac_cs_recheck=false
21127ac_cs_silent=false
21128SHELL=\${CONFIG_SHELL-$SHELL}
21129_ACEOF
21130
21131cat >>$CONFIG_STATUS <<\_ACEOF
21132## --------------------- ##
21133## M4sh Initialization.  ##
21134## --------------------- ##
21135
21136# Be Bourne compatible
21137if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21138  emulate sh
21139  NULLCMD=:
21140  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21141  # is contrary to our usage.  Disable this feature.
21142  alias -g '${1+"$@"}'='"$@"'
21143  setopt NO_GLOB_SUBST
21144else
21145  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21146fi
21147BIN_SH=xpg4; export BIN_SH # for Tru64
21148DUALCASE=1; export DUALCASE # for MKS sh
21149
21150
21151# PATH needs CR
21152# Avoid depending upon Character Ranges.
21153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21156as_cr_digits='0123456789'
21157as_cr_alnum=$as_cr_Letters$as_cr_digits
21158
21159# The user is always right.
21160if test "${PATH_SEPARATOR+set}" != set; then
21161  echo "#! /bin/sh" >conf$$.sh
21162  echo  "exit 0"   >>conf$$.sh
21163  chmod +x conf$$.sh
21164  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21165    PATH_SEPARATOR=';'
21166  else
21167    PATH_SEPARATOR=:
21168  fi
21169  rm -f conf$$.sh
21170fi
21171
21172# Support unset when possible.
21173if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21174  as_unset=unset
21175else
21176  as_unset=false
21177fi
21178
21179
21180# IFS
21181# We need space, tab and new line, in precisely that order.  Quoting is
21182# there to prevent editors from complaining about space-tab.
21183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21184# splitting by setting IFS to empty value.)
21185as_nl='
21186'
21187IFS=" ""	$as_nl"
21188
21189# Find who we are.  Look in the path if we contain no directory separator.
21190case $0 in
21191  *[\\/]* ) as_myself=$0 ;;
21192  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21193for as_dir in $PATH
21194do
21195  IFS=$as_save_IFS
21196  test -z "$as_dir" && as_dir=.
21197  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21198done
21199IFS=$as_save_IFS
21200
21201     ;;
21202esac
21203# We did not find ourselves, most probably we were run as `sh COMMAND'
21204# in which case we are not to be found in the path.
21205if test "x$as_myself" = x; then
21206  as_myself=$0
21207fi
21208if test ! -f "$as_myself"; then
21209  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21210  { (exit 1); exit 1; }
21211fi
21212
21213# Work around bugs in pre-3.0 UWIN ksh.
21214for as_var in ENV MAIL MAILPATH
21215do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21216done
21217PS1='$ '
21218PS2='> '
21219PS4='+ '
21220
21221# NLS nuisances.
21222for as_var in \
21223  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21224  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21225  LC_TELEPHONE LC_TIME
21226do
21227  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21228    eval $as_var=C; export $as_var
21229  else
21230    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21231  fi
21232done
21233
21234# Required to use basename.
21235if expr a : '\(a\)' >/dev/null 2>&1 &&
21236   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21237  as_expr=expr
21238else
21239  as_expr=false
21240fi
21241
21242if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21243  as_basename=basename
21244else
21245  as_basename=false
21246fi
21247
21248
21249# Name of the executable.
21250as_me=`$as_basename -- "$0" ||
21251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21252	 X"$0" : 'X\(//\)$' \| \
21253	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21254echo X/"$0" |
21255    sed '/^.*\/\([^/][^/]*\)\/*$/{
21256	    s//\1/
21257	    q
21258	  }
21259	  /^X\/\(\/\/\)$/{
21260	    s//\1/
21261	    q
21262	  }
21263	  /^X\/\(\/\).*/{
21264	    s//\1/
21265	    q
21266	  }
21267	  s/.*/./; q'`
21268
21269# CDPATH.
21270$as_unset CDPATH
21271
21272
21273
21274  as_lineno_1=$LINENO
21275  as_lineno_2=$LINENO
21276  test "x$as_lineno_1" != "x$as_lineno_2" &&
21277  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21278
21279  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21280  # uniformly replaced by the line number.  The first 'sed' inserts a
21281  # line-number line after each line using $LINENO; the second 'sed'
21282  # does the real work.  The second script uses 'N' to pair each
21283  # line-number line with the line containing $LINENO, and appends
21284  # trailing '-' during substitution so that $LINENO is not a special
21285  # case at line end.
21286  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21287  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21288  # E. McMahon (1931-1989) for sed's syntax.  :-)
21289  sed -n '
21290    p
21291    /[$]LINENO/=
21292  ' <$as_myself |
21293    sed '
21294      s/[$]LINENO.*/&-/
21295      t lineno
21296      b
21297      :lineno
21298      N
21299      :loop
21300      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21301      t loop
21302      s/-\n.*//
21303    ' >$as_me.lineno &&
21304  chmod +x "$as_me.lineno" ||
21305    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21306   { (exit 1); exit 1; }; }
21307
21308  # Don't try to exec as it changes $[0], causing all sort of problems
21309  # (the dirname of $[0] is not the place where we might find the
21310  # original and so on.  Autoconf is especially sensitive to this).
21311  . "./$as_me.lineno"
21312  # Exit status is that of the last command.
21313  exit
21314}
21315
21316
21317if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21318  as_dirname=dirname
21319else
21320  as_dirname=false
21321fi
21322
21323ECHO_C= ECHO_N= ECHO_T=
21324case `echo -n x` in
21325-n*)
21326  case `echo 'x\c'` in
21327  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21328  *)   ECHO_C='\c';;
21329  esac;;
21330*)
21331  ECHO_N='-n';;
21332esac
21333
21334if expr a : '\(a\)' >/dev/null 2>&1 &&
21335   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21336  as_expr=expr
21337else
21338  as_expr=false
21339fi
21340
21341rm -f conf$$ conf$$.exe conf$$.file
21342if test -d conf$$.dir; then
21343  rm -f conf$$.dir/conf$$.file
21344else
21345  rm -f conf$$.dir
21346  mkdir conf$$.dir
21347fi
21348echo >conf$$.file
21349if ln -s conf$$.file conf$$ 2>/dev/null; then
21350  as_ln_s='ln -s'
21351  # ... but there are two gotchas:
21352  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21353  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21354  # In both cases, we have to default to `cp -p'.
21355  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21356    as_ln_s='cp -p'
21357elif ln conf$$.file conf$$ 2>/dev/null; then
21358  as_ln_s=ln
21359else
21360  as_ln_s='cp -p'
21361fi
21362rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21363rmdir conf$$.dir 2>/dev/null
21364
21365if mkdir -p . 2>/dev/null; then
21366  as_mkdir_p=:
21367else
21368  test -d ./-p && rmdir ./-p
21369  as_mkdir_p=false
21370fi
21371
21372# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21373# systems may use methods other than mode bits to determine executability.
21374cat >conf$$.file <<_ASEOF
21375#! /bin/sh
21376exit 0
21377_ASEOF
21378chmod +x conf$$.file
21379if test -x conf$$.file >/dev/null 2>&1; then
21380  as_executable_p="test -x"
21381else
21382  as_executable_p=:
21383fi
21384rm -f conf$$.file
21385
21386# Sed expression to map a string onto a valid CPP name.
21387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21388
21389# Sed expression to map a string onto a valid variable name.
21390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21391
21392
21393exec 6>&1
21394
21395# Save the log message, to keep $[0] and so on meaningful, and to
21396# report actual input values of CONFIG_FILES etc. instead of their
21397# values after options handling.
21398ac_log="
21399This file was extended by [SAMPLE] $as_me [x.xx], which was
21400generated by GNU Autoconf 2.60.  Invocation command line was
21401
21402  CONFIG_FILES    = $CONFIG_FILES
21403  CONFIG_HEADERS  = $CONFIG_HEADERS
21404  CONFIG_LINKS    = $CONFIG_LINKS
21405  CONFIG_COMMANDS = $CONFIG_COMMANDS
21406  $ $0 $@
21407
21408on `(hostname || uname -n) 2>/dev/null | sed 1q`
21409"
21410
21411_ACEOF
21412
21413cat >>$CONFIG_STATUS <<_ACEOF
21414# Files that config.status was made for.
21415config_files="$ac_config_files"
21416config_commands="$ac_config_commands"
21417
21418_ACEOF
21419
21420cat >>$CONFIG_STATUS <<\_ACEOF
21421ac_cs_usage="\
21422\`$as_me' instantiates files from templates according to the
21423current configuration.
21424
21425Usage: $0 [OPTIONS] [FILE]...
21426
21427  -h, --help       print this help, then exit
21428  -V, --version    print version number, then exit
21429  -q, --quiet      do not print progress messages
21430  -d, --debug      don't remove temporary files
21431      --recheck    update $as_me by reconfiguring in the same conditions
21432  --file=FILE[:TEMPLATE]
21433		   instantiate the configuration file FILE
21434
21435Configuration files:
21436$config_files
21437
21438Configuration commands:
21439$config_commands
21440
21441Report bugs to <bug-autoconf@gnu.org>."
21442
21443_ACEOF
21444cat >>$CONFIG_STATUS <<_ACEOF
21445ac_cs_version="\\
21446[SAMPLE] config.status [x.xx]
21447configured by $0, generated by GNU Autoconf 2.60,
21448  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21449
21450Copyright (C) 2006 Free Software Foundation, Inc.
21451This config.status script is free software; the Free Software Foundation
21452gives unlimited permission to copy, distribute and modify it."
21453
21454ac_pwd='$ac_pwd'
21455srcdir='$srcdir'
21456INSTALL='$INSTALL'
21457_ACEOF
21458
21459cat >>$CONFIG_STATUS <<\_ACEOF
21460# If no file are specified by the user, then we need to provide default
21461# value.  By we need to know if files were specified by the user.
21462ac_need_defaults=:
21463while test $# != 0
21464do
21465  case $1 in
21466  --*=*)
21467    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21468    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21469    ac_shift=:
21470    ;;
21471  *)
21472    ac_option=$1
21473    ac_optarg=$2
21474    ac_shift=shift
21475    ;;
21476  esac
21477
21478  case $ac_option in
21479  # Handling of the options.
21480  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21481    ac_cs_recheck=: ;;
21482  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21483    echo "$ac_cs_version"; exit ;;
21484  --debug | --debu | --deb | --de | --d | -d )
21485    debug=: ;;
21486  --file | --fil | --fi | --f )
21487    $ac_shift
21488    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21489    ac_need_defaults=false;;
21490  --he | --h |  --help | --hel | -h )
21491    echo "$ac_cs_usage"; exit ;;
21492  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21493  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21494    ac_cs_silent=: ;;
21495
21496  # This is an error.
21497  -*) { echo "$as_me: error: unrecognized option: $1
21498Try \`$0 --help' for more information." >&2
21499   { (exit 1); exit 1; }; } ;;
21500
21501  *) ac_config_targets="$ac_config_targets $1"
21502     ac_need_defaults=false ;;
21503
21504  esac
21505  shift
21506done
21507
21508ac_configure_extra_args=
21509
21510if $ac_cs_silent; then
21511  exec 6>/dev/null
21512  ac_configure_extra_args="$ac_configure_extra_args --silent"
21513fi
21514
21515_ACEOF
21516cat >>$CONFIG_STATUS <<_ACEOF
21517if \$ac_cs_recheck; then
21518  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21519  CONFIG_SHELL=$SHELL
21520  export CONFIG_SHELL
21521  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21522fi
21523
21524_ACEOF
21525cat >>$CONFIG_STATUS <<\_ACEOF
21526exec 5>>config.log
21527{
21528  echo
21529  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21530## Running $as_me. ##
21531_ASBOX
21532  echo "$ac_log"
21533} >&5
21534
21535_ACEOF
21536cat >>$CONFIG_STATUS <<_ACEOF
21537#
21538# INIT-COMMANDS
21539#
21540llvm_src="${LLVM_SRC}"
21541
21542_ACEOF
21543
21544cat >>$CONFIG_STATUS <<\_ACEOF
21545
21546# Handling of arguments.
21547for ac_config_target in $ac_config_targets
21548do
21549  case $ac_config_target in
21550    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21551    "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21552    "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21553    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21554    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21555    "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21556    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21557    "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21558
21559  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21560echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21561   { (exit 1); exit 1; }; };;
21562  esac
21563done
21564
21565
21566# If the user did not use the arguments to specify the items to instantiate,
21567# then the envvar interface is used.  Set only those that are not.
21568# We use the long form for the default assignment because of an extremely
21569# bizarre bug on SunOS 4.1.3.
21570if $ac_need_defaults; then
21571  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21572  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21573fi
21574
21575# Have a temporary directory for convenience.  Make it in the build tree
21576# simply because there is no reason against having it here, and in addition,
21577# creating and moving files from /tmp can sometimes cause problems.
21578# Hook for its removal unless debugging.
21579# Note that there is a small window in which the directory will not be cleaned:
21580# after its creation but before its name has been assigned to `$tmp'.
21581$debug ||
21582{
21583  tmp=
21584  trap 'exit_status=$?
21585  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21586' 0
21587  trap '{ (exit 1); exit 1; }' 1 2 13 15
21588}
21589# Create a (secure) tmp directory for tmp files.
21590
21591{
21592  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21593  test -n "$tmp" && test -d "$tmp"
21594}  ||
21595{
21596  tmp=./conf$$-$RANDOM
21597  (umask 077 && mkdir "$tmp")
21598} ||
21599{
21600   echo "$me: cannot create a temporary directory in ." >&2
21601   { (exit 1); exit 1; }
21602}
21603
21604#
21605# Set up the sed scripts for CONFIG_FILES section.
21606#
21607
21608# No need to generate the scripts if there are no CONFIG_FILES.
21609# This happens for instance when ./config.status config.h
21610if test -n "$CONFIG_FILES"; then
21611
21612_ACEOF
21613
21614
21615
21616ac_delim='%!_!# '
21617for ac_last_try in false false false false false :; do
21618  cat >conf$$subs.sed <<_ACEOF
21619SHELL!$SHELL$ac_delim
21620PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21621PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21622PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21623PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21624PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21625PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21626exec_prefix!$exec_prefix$ac_delim
21627prefix!$prefix$ac_delim
21628program_transform_name!$program_transform_name$ac_delim
21629bindir!$bindir$ac_delim
21630sbindir!$sbindir$ac_delim
21631libexecdir!$libexecdir$ac_delim
21632datarootdir!$datarootdir$ac_delim
21633datadir!$datadir$ac_delim
21634sysconfdir!$sysconfdir$ac_delim
21635sharedstatedir!$sharedstatedir$ac_delim
21636localstatedir!$localstatedir$ac_delim
21637includedir!$includedir$ac_delim
21638oldincludedir!$oldincludedir$ac_delim
21639docdir!$docdir$ac_delim
21640infodir!$infodir$ac_delim
21641htmldir!$htmldir$ac_delim
21642dvidir!$dvidir$ac_delim
21643pdfdir!$pdfdir$ac_delim
21644psdir!$psdir$ac_delim
21645libdir!$libdir$ac_delim
21646localedir!$localedir$ac_delim
21647mandir!$mandir$ac_delim
21648DEFS!$DEFS$ac_delim
21649ECHO_C!$ECHO_C$ac_delim
21650ECHO_N!$ECHO_N$ac_delim
21651ECHO_T!$ECHO_T$ac_delim
21652LIBS!$LIBS$ac_delim
21653build_alias!$build_alias$ac_delim
21654host_alias!$host_alias$ac_delim
21655target_alias!$target_alias$ac_delim
21656LLVM_SRC!$LLVM_SRC$ac_delim
21657LLVM_OBJ!$LLVM_OBJ$ac_delim
21658LLVM_VERSION!$LLVM_VERSION$ac_delim
21659CC!$CC$ac_delim
21660CFLAGS!$CFLAGS$ac_delim
21661LDFLAGS!$LDFLAGS$ac_delim
21662CPPFLAGS!$CPPFLAGS$ac_delim
21663ac_ct_CC!$ac_ct_CC$ac_delim
21664EXEEXT!$EXEEXT$ac_delim
21665OBJEXT!$OBJEXT$ac_delim
21666CXX!$CXX$ac_delim
21667CXXFLAGS!$CXXFLAGS$ac_delim
21668ac_ct_CXX!$ac_ct_CXX$ac_delim
21669CPP!$CPP$ac_delim
21670ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21671LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21672subdirs!$subdirs$ac_delim
21673build!$build$ac_delim
21674build_cpu!$build_cpu$ac_delim
21675build_vendor!$build_vendor$ac_delim
21676build_os!$build_os$ac_delim
21677host!$host$ac_delim
21678host_cpu!$host_cpu$ac_delim
21679host_vendor!$host_vendor$ac_delim
21680host_os!$host_os$ac_delim
21681target!$target$ac_delim
21682target_cpu!$target_cpu$ac_delim
21683target_vendor!$target_vendor$ac_delim
21684target_os!$target_os$ac_delim
21685OS!$OS$ac_delim
21686HOST_OS!$HOST_OS$ac_delim
21687TARGET_OS!$TARGET_OS$ac_delim
21688LINKALL!$LINKALL$ac_delim
21689NOLINKALL!$NOLINKALL$ac_delim
21690LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21691LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21692ARCH!$ARCH$ac_delim
21693ENDIAN!$ENDIAN$ac_delim
21694GREP!$GREP$ac_delim
21695EGREP!$EGREP$ac_delim
21696LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21697BUILD_CC!$BUILD_CC$ac_delim
21698BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21699BUILD_CXX!$BUILD_CXX$ac_delim
21700CVSBUILD!$CVSBUILD$ac_delim
21701ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21702ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21703DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21704ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21705EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21706DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21707DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21708JIT!$JIT$ac_delim
21709TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21710ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21711ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21712ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21713ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21714ENABLE_PIC!$ENABLE_PIC$ac_delim
21715ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21716_ACEOF
21717
21718  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21719    break
21720  elif $ac_last_try; then
21721    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21722echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21723   { (exit 1); exit 1; }; }
21724  else
21725    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21726  fi
21727done
21728
21729ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21730if test -n "$ac_eof"; then
21731  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21732  ac_eof=`expr $ac_eof + 1`
21733fi
21734
21735cat >>$CONFIG_STATUS <<_ACEOF
21736cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21737/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21738_ACEOF
21739sed '
21740s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21741s/^/s,@/; s/!/@,|#_!!_#|/
21742:n
21743t n
21744s/'"$ac_delim"'$/,g/; t
21745s/$/\\/; p
21746N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21747' >>$CONFIG_STATUS <conf$$subs.sed
21748rm -f conf$$subs.sed
21749cat >>$CONFIG_STATUS <<_ACEOF
21750CEOF$ac_eof
21751_ACEOF
21752
21753
21754ac_delim='%!_!# '
21755for ac_last_try in false false false false false :; do
21756  cat >conf$$subs.sed <<_ACEOF
21757ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21758ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21759TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21760LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21761LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21762LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21763LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21764ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21765OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21766EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21767EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21768BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21769NM!$NM$ac_delim
21770ifGNUmake!$ifGNUmake$ac_delim
21771LN_S!$LN_S$ac_delim
21772CMP!$CMP$ac_delim
21773CP!$CP$ac_delim
21774DATE!$DATE$ac_delim
21775FIND!$FIND$ac_delim
21776MKDIR!$MKDIR$ac_delim
21777MV!$MV$ac_delim
21778RANLIB!$RANLIB$ac_delim
21779AR!$AR$ac_delim
21780RM!$RM$ac_delim
21781SED!$SED$ac_delim
21782TAR!$TAR$ac_delim
21783BINPWD!$BINPWD$ac_delim
21784GRAPHVIZ!$GRAPHVIZ$ac_delim
21785DOT!$DOT$ac_delim
21786FDP!$FDP$ac_delim
21787NEATO!$NEATO$ac_delim
21788TWOPI!$TWOPI$ac_delim
21789CIRCO!$CIRCO$ac_delim
21790GV!$GV$ac_delim
21791DOTTY!$DOTTY$ac_delim
21792XDOT_PY!$XDOT_PY$ac_delim
21793PERL!$PERL$ac_delim
21794HAVE_PERL!$HAVE_PERL$ac_delim
21795INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21796INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21797INSTALL_DATA!$INSTALL_DATA$ac_delim
21798BZIP2!$BZIP2$ac_delim
21799CAT!$CAT$ac_delim
21800DOXYGEN!$DOXYGEN$ac_delim
21801GROFF!$GROFF$ac_delim
21802GZIPBIN!$GZIPBIN$ac_delim
21803POD2HTML!$POD2HTML$ac_delim
21804POD2MAN!$POD2MAN$ac_delim
21805PDFROFF!$PDFROFF$ac_delim
21806RUNTEST!$RUNTEST$ac_delim
21807TCLSH!$TCLSH$ac_delim
21808ZIP!$ZIP$ac_delim
21809OCAMLC!$OCAMLC$ac_delim
21810OCAMLOPT!$OCAMLOPT$ac_delim
21811OCAMLDEP!$OCAMLDEP$ac_delim
21812OCAMLDOC!$OCAMLDOC$ac_delim
21813GAS!$GAS$ac_delim
21814HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21815INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21816INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21817CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21818CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21819LIBADD_DL!$LIBADD_DL$ac_delim
21820NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21821NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21822COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21823USE_UDIS86!$USE_UDIS86$ac_delim
21824USE_OPROFILE!$USE_OPROFILE$ac_delim
21825HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21826HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21827MMAP_FILE!$MMAP_FILE$ac_delim
21828SHLIBEXT!$SHLIBEXT$ac_delim
21829SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21830LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21831LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21832LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21833LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21834LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21835LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21836LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21837LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21838LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21839LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21840BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21841ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21842OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21843ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21844RPATH!$RPATH$ac_delim
21845RDYNAMIC!$RDYNAMIC$ac_delim
21846LIBOBJS!$LIBOBJS$ac_delim
21847LTLIBOBJS!$LTLIBOBJS$ac_delim
21848_ACEOF
21849
21850  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21851    break
21852  elif $ac_last_try; then
21853    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21854echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21855   { (exit 1); exit 1; }; }
21856  else
21857    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21858  fi
21859done
21860
21861ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21862if test -n "$ac_eof"; then
21863  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21864  ac_eof=`expr $ac_eof + 1`
21865fi
21866
21867cat >>$CONFIG_STATUS <<_ACEOF
21868cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21870_ACEOF
21871sed '
21872s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21873s/^/s,@/; s/!/@,|#_!!_#|/
21874:n
21875t n
21876s/'"$ac_delim"'$/,g/; t
21877s/$/\\/; p
21878N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21879' >>$CONFIG_STATUS <conf$$subs.sed
21880rm -f conf$$subs.sed
21881cat >>$CONFIG_STATUS <<_ACEOF
21882:end
21883s/|#_!!_#|//g
21884CEOF$ac_eof
21885_ACEOF
21886
21887
21888# VPATH may cause trouble with some makes, so we remove $(srcdir),
21889# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21890# trailing colons and then remove the whole line if VPATH becomes empty
21891# (actually we leave an empty line to preserve line numbers).
21892if test "x$srcdir" = x.; then
21893  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21894s/:*\$(srcdir):*/:/
21895s/:*\${srcdir}:*/:/
21896s/:*@srcdir@:*/:/
21897s/^\([^=]*=[	 ]*\):*/\1/
21898s/:*$//
21899s/^[^=]*=[	 ]*$//
21900}'
21901fi
21902
21903cat >>$CONFIG_STATUS <<\_ACEOF
21904fi # test -n "$CONFIG_FILES"
21905
21906
21907for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21908do
21909  case $ac_tag in
21910  :[FHLC]) ac_mode=$ac_tag; continue;;
21911  esac
21912  case $ac_mode$ac_tag in
21913  :[FHL]*:*);;
21914  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21915echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21916   { (exit 1); exit 1; }; };;
21917  :[FH]-) ac_tag=-:-;;
21918  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21919  esac
21920  ac_save_IFS=$IFS
21921  IFS=:
21922  set x $ac_tag
21923  IFS=$ac_save_IFS
21924  shift
21925  ac_file=$1
21926  shift
21927
21928  case $ac_mode in
21929  :L) ac_source=$1;;
21930  :[FH])
21931    ac_file_inputs=
21932    for ac_f
21933    do
21934      case $ac_f in
21935      -) ac_f="$tmp/stdin";;
21936      *) # Look for the file first in the build tree, then in the source tree
21937	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21938	 # because $ac_f cannot contain `:'.
21939	 test -f "$ac_f" ||
21940	   case $ac_f in
21941	   [\\/$]*) false;;
21942	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21943	   esac ||
21944	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21945echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21946   { (exit 1); exit 1; }; };;
21947      esac
21948      ac_file_inputs="$ac_file_inputs $ac_f"
21949    done
21950
21951    # Let's still pretend it is `configure' which instantiates (i.e., don't
21952    # use $as_me), people would be surprised to read:
21953    #    /* config.h.  Generated by config.status.  */
21954    configure_input="Generated from "`IFS=:
21955	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21956    if test x"$ac_file" != x-; then
21957      configure_input="$ac_file.  $configure_input"
21958      { echo "$as_me:$LINENO: creating $ac_file" >&5
21959echo "$as_me: creating $ac_file" >&6;}
21960    fi
21961
21962    case $ac_tag in
21963    *:-:* | *:-) cat >"$tmp/stdin";;
21964    esac
21965    ;;
21966  esac
21967
21968  ac_dir=`$as_dirname -- "$ac_file" ||
21969$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970	 X"$ac_file" : 'X\(//\)[^/]' \| \
21971	 X"$ac_file" : 'X\(//\)$' \| \
21972	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21973echo X"$ac_file" |
21974    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21975	    s//\1/
21976	    q
21977	  }
21978	  /^X\(\/\/\)[^/].*/{
21979	    s//\1/
21980	    q
21981	  }
21982	  /^X\(\/\/\)$/{
21983	    s//\1/
21984	    q
21985	  }
21986	  /^X\(\/\).*/{
21987	    s//\1/
21988	    q
21989	  }
21990	  s/.*/./; q'`
21991  { as_dir="$ac_dir"
21992  case $as_dir in #(
21993  -*) as_dir=./$as_dir;;
21994  esac
21995  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21996    as_dirs=
21997    while :; do
21998      case $as_dir in #(
21999      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22000      *) as_qdir=$as_dir;;
22001      esac
22002      as_dirs="'$as_qdir' $as_dirs"
22003      as_dir=`$as_dirname -- "$as_dir" ||
22004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005	 X"$as_dir" : 'X\(//\)[^/]' \| \
22006	 X"$as_dir" : 'X\(//\)$' \| \
22007	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22008echo X"$as_dir" |
22009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22010	    s//\1/
22011	    q
22012	  }
22013	  /^X\(\/\/\)[^/].*/{
22014	    s//\1/
22015	    q
22016	  }
22017	  /^X\(\/\/\)$/{
22018	    s//\1/
22019	    q
22020	  }
22021	  /^X\(\/\).*/{
22022	    s//\1/
22023	    q
22024	  }
22025	  s/.*/./; q'`
22026      test -d "$as_dir" && break
22027    done
22028    test -z "$as_dirs" || eval "mkdir $as_dirs"
22029  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22030echo "$as_me: error: cannot create directory $as_dir" >&2;}
22031   { (exit 1); exit 1; }; }; }
22032  ac_builddir=.
22033
22034case "$ac_dir" in
22035.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22036*)
22037  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22038  # A ".." for each directory in $ac_dir_suffix.
22039  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22040  case $ac_top_builddir_sub in
22041  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22042  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22043  esac ;;
22044esac
22045ac_abs_top_builddir=$ac_pwd
22046ac_abs_builddir=$ac_pwd$ac_dir_suffix
22047# for backward compatibility:
22048ac_top_builddir=$ac_top_build_prefix
22049
22050case $srcdir in
22051  .)  # We are building in place.
22052    ac_srcdir=.
22053    ac_top_srcdir=$ac_top_builddir_sub
22054    ac_abs_top_srcdir=$ac_pwd ;;
22055  [\\/]* | ?:[\\/]* )  # Absolute name.
22056    ac_srcdir=$srcdir$ac_dir_suffix;
22057    ac_top_srcdir=$srcdir
22058    ac_abs_top_srcdir=$srcdir ;;
22059  *) # Relative name.
22060    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22061    ac_top_srcdir=$ac_top_build_prefix$srcdir
22062    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22063esac
22064ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22065
22066
22067  case $ac_mode in
22068  :F)
22069  #
22070  # CONFIG_FILE
22071  #
22072
22073  case $INSTALL in
22074  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22075  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22076  esac
22077_ACEOF
22078
22079cat >>$CONFIG_STATUS <<\_ACEOF
22080# If the template does not know about datarootdir, expand it.
22081# FIXME: This hack should be removed a few years after 2.60.
22082ac_datarootdir_hack=; ac_datarootdir_seen=
22083
22084case `sed -n '/datarootdir/ {
22085  p
22086  q
22087}
22088/@datadir@/p
22089/@docdir@/p
22090/@infodir@/p
22091/@localedir@/p
22092/@mandir@/p
22093' $ac_file_inputs` in
22094*datarootdir*) ac_datarootdir_seen=yes;;
22095*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22096  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22097echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22098_ACEOF
22099cat >>$CONFIG_STATUS <<_ACEOF
22100  ac_datarootdir_hack='
22101  s&@datadir@&$datadir&g
22102  s&@docdir@&$docdir&g
22103  s&@infodir@&$infodir&g
22104  s&@localedir@&$localedir&g
22105  s&@mandir@&$mandir&g
22106    s&\\\${datarootdir}&$datarootdir&g' ;;
22107esac
22108_ACEOF
22109
22110# Neutralize VPATH when `$srcdir' = `.'.
22111# Shell code in configure.ac might set extrasub.
22112# FIXME: do we really want to maintain this feature?
22113cat >>$CONFIG_STATUS <<_ACEOF
22114  sed "$ac_vpsub
22115$extrasub
22116_ACEOF
22117cat >>$CONFIG_STATUS <<\_ACEOF
22118:t
22119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22120s&@configure_input@&$configure_input&;t t
22121s&@top_builddir@&$ac_top_builddir_sub&;t t
22122s&@srcdir@&$ac_srcdir&;t t
22123s&@abs_srcdir@&$ac_abs_srcdir&;t t
22124s&@top_srcdir@&$ac_top_srcdir&;t t
22125s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22126s&@builddir@&$ac_builddir&;t t
22127s&@abs_builddir@&$ac_abs_builddir&;t t
22128s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22129s&@INSTALL@&$ac_INSTALL&;t t
22130$ac_datarootdir_hack
22131" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22132
22133test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22134  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22135  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22136  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22137which seems to be undefined.  Please make sure it is defined." >&5
22138echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22139which seems to be undefined.  Please make sure it is defined." >&2;}
22140
22141  rm -f "$tmp/stdin"
22142  case $ac_file in
22143  -) cat "$tmp/out"; rm -f "$tmp/out";;
22144  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22145  esac
22146 ;;
22147
22148
22149  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22150echo "$as_me: executing $ac_file commands" >&6;}
22151 ;;
22152  esac
22153
22154
22155  case $ac_file$ac_mode in
22156    "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22157   ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22158    "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22159   ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22160    "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22161   ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22162    "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22163   ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22164    "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22165   ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22166
22167  esac
22168done # for ac_tag
22169
22170
22171{ (exit 0); exit 0; }
22172_ACEOF
22173chmod +x $CONFIG_STATUS
22174ac_clean_files=$ac_clean_files_save
22175
22176
22177# configure is writing to config.log, and then calls config.status.
22178# config.status does its own redirection, appending to config.log.
22179# Unfortunately, on DOS this fails, as config.log is still kept open
22180# by configure, so config.status won't be able to write to it; its
22181# output is simply discarded.  So we exec the FD to /dev/null,
22182# effectively closing config.log, so it can be properly (re)opened and
22183# appended to by config.status.  When coming back to configure, we
22184# need to make the FD available again.
22185if test "$no_create" != yes; then
22186  ac_cs_success=:
22187  ac_config_status_args=
22188  test "$silent" = yes &&
22189    ac_config_status_args="$ac_config_status_args --quiet"
22190  exec 5>/dev/null
22191  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22192  exec 5>>config.log
22193  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22194  # would make configure fail if this is the last instruction.
22195  $ac_cs_success || { (exit 1); exit 1; }
22196fi
22197
22198#
22199# CONFIG_SUBDIRS section.
22200#
22201if test "$no_recursion" != yes; then
22202
22203  # Remove --cache-file and --srcdir arguments so they do not pile up.
22204  ac_sub_configure_args=
22205  ac_prev=
22206  eval "set x $ac_configure_args"
22207  shift
22208  for ac_arg
22209  do
22210    if test -n "$ac_prev"; then
22211      ac_prev=
22212      continue
22213    fi
22214    case $ac_arg in
22215    -cache-file | --cache-file | --cache-fil | --cache-fi \
22216    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22217      ac_prev=cache_file ;;
22218    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22219    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22220    | --c=*)
22221      ;;
22222    --config-cache | -C)
22223      ;;
22224    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22225      ac_prev=srcdir ;;
22226    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22227      ;;
22228    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22229      ac_prev=prefix ;;
22230    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22231      ;;
22232    *)
22233      case $ac_arg in
22234      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22235      esac
22236      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22237    esac
22238  done
22239
22240  # Always prepend --prefix to ensure using the same prefix
22241  # in subdir configurations.
22242  ac_arg="--prefix=$prefix"
22243  case $ac_arg in
22244  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22245  esac
22246  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22247
22248  ac_popdir=`pwd`
22249  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22250
22251    # Do not complain, so a configure script can configure whichever
22252    # parts of a large source tree are present.
22253    test -d "$srcdir/$ac_dir" || continue
22254
22255    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22256    echo "$as_me:$LINENO: $ac_msg" >&5
22257    echo "$ac_msg" >&6
22258    { as_dir="$ac_dir"
22259  case $as_dir in #(
22260  -*) as_dir=./$as_dir;;
22261  esac
22262  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22263    as_dirs=
22264    while :; do
22265      case $as_dir in #(
22266      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22267      *) as_qdir=$as_dir;;
22268      esac
22269      as_dirs="'$as_qdir' $as_dirs"
22270      as_dir=`$as_dirname -- "$as_dir" ||
22271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272	 X"$as_dir" : 'X\(//\)[^/]' \| \
22273	 X"$as_dir" : 'X\(//\)$' \| \
22274	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22275echo X"$as_dir" |
22276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22277	    s//\1/
22278	    q
22279	  }
22280	  /^X\(\/\/\)[^/].*/{
22281	    s//\1/
22282	    q
22283	  }
22284	  /^X\(\/\/\)$/{
22285	    s//\1/
22286	    q
22287	  }
22288	  /^X\(\/\).*/{
22289	    s//\1/
22290	    q
22291	  }
22292	  s/.*/./; q'`
22293      test -d "$as_dir" && break
22294    done
22295    test -z "$as_dirs" || eval "mkdir $as_dirs"
22296  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22297echo "$as_me: error: cannot create directory $as_dir" >&2;}
22298   { (exit 1); exit 1; }; }; }
22299    ac_builddir=.
22300
22301case "$ac_dir" in
22302.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22303*)
22304  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22305  # A ".." for each directory in $ac_dir_suffix.
22306  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22307  case $ac_top_builddir_sub in
22308  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22309  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22310  esac ;;
22311esac
22312ac_abs_top_builddir=$ac_pwd
22313ac_abs_builddir=$ac_pwd$ac_dir_suffix
22314# for backward compatibility:
22315ac_top_builddir=$ac_top_build_prefix
22316
22317case $srcdir in
22318  .)  # We are building in place.
22319    ac_srcdir=.
22320    ac_top_srcdir=$ac_top_builddir_sub
22321    ac_abs_top_srcdir=$ac_pwd ;;
22322  [\\/]* | ?:[\\/]* )  # Absolute name.
22323    ac_srcdir=$srcdir$ac_dir_suffix;
22324    ac_top_srcdir=$srcdir
22325    ac_abs_top_srcdir=$srcdir ;;
22326  *) # Relative name.
22327    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22328    ac_top_srcdir=$ac_top_build_prefix$srcdir
22329    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22330esac
22331ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22332
22333
22334    cd "$ac_dir"
22335
22336    # Check for guested configure; otherwise get Cygnus style configure.
22337    if test -f "$ac_srcdir/configure.gnu"; then
22338      ac_sub_configure=$ac_srcdir/configure.gnu
22339    elif test -f "$ac_srcdir/configure"; then
22340      ac_sub_configure=$ac_srcdir/configure
22341    elif test -f "$ac_srcdir/configure.in"; then
22342      # This should be Cygnus configure.
22343      ac_sub_configure=$ac_aux_dir/configure
22344    else
22345      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22346echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22347      ac_sub_configure=
22348    fi
22349
22350    # The recursion is here.
22351    if test -n "$ac_sub_configure"; then
22352      # Make the cache file name correct relative to the subdirectory.
22353      case $cache_file in
22354      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22355      *) # Relative name.
22356	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22357      esac
22358
22359      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22360echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22361      # The eval makes quoting arguments work.
22362      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22363	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22364	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22365echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22366   { (exit 1); exit 1; }; }
22367    fi
22368
22369    cd "$ac_popdir"
22370  done
22371fi
22372
22373