This patch adds X86 instruction itineraries for non-pseudo opcodes in
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 USE_INTEL_JITEVENTS
770 INTEL_JITEVENTS_INCDIR
771 INTEL_JITEVENTS_LIBDIR
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
803 CXX
804 CXXFLAGS
805 CCC
806 CPP'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel
820 tools/polly'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-polly          Use polly if available (default is YES)
1396   --enable-libcpp         Use libc++ if available (default is NO)
1397   --enable-optimized      Compile with optimizations enabled (default is NO)
1398   --enable-profiling      Compile with profiling enabled (default is NO)
1399   --enable-assertions     Compile with assertion checks enabled (default is
1400                           YES)
1401   --enable-expensive-checks
1402                           Compile with expensive debug checks enabled (default
1403                           is NO)
1404   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1405                           NO)
1406   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1407                           optimization is on and YES if it's off)
1408   --enable-jit            Enable Just In Time Compiling (default is YES)
1409   --enable-docs           Build documents (default is YES)
1410   --enable-doxygen        Build doxygen documentation (default is NO)
1411   --enable-threads        Use threads if available (default is YES)
1412   --enable-pthreads       Use pthreads if available (default is YES)
1413   --enable-pic            Build LLVM with Position Independent Code (default
1414                           is YES)
1415   --enable-shared         Build a shared library and link tools against it
1416                           (default is NO)
1417   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1418                           Win32 DLL (default is NO)
1419   --enable-timestamps     Enable embedding timestamp information in build
1420                           (default is YES)
1421   --enable-targets        Build specific host targets: all or
1422                           target1,target2,... Valid targets are: host, x86,
1423                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1424                           xcore, msp430, ptx, cbe, and cpp (default=all)
1425   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1426                           %a (default is YES)
1427   --enable-bindings       Build specific language bindings:
1428                           all,auto,none,{binding-name} (default=auto)
1429   --enable-libffi         Check for the presence of libffi (default is NO)
1430   --enable-ltdl-install   install libltdl
1431
1432 Optional Packages:
1433   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435   --with-optimize-option  Select the compiler options to use for optimized
1436                           builds
1437   --with-extra-options    Specify additional options to compile LLVM with
1438   --with-extra-ld-options Specify additional options to link LLVM with
1439   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1440                           is stdlib)
1441   --with-clang-srcdir     Directory to the out-of-tree Clang source
1442   --with-clang-resource-dir
1443                           Relative directory from the Clang binary for
1444                           resource files
1445   --with-c-include-dirs   Colon separated list of directories clang will
1446                           search for headers
1447   --with-gcc-toolchain    Directory where gcc is installed.
1448   --with-binutils-include Specify path to binutils/include/ containing
1449                           plugin-api.h file for gold plugin.
1450   --with-bug-report-url   Specify the URL where bug reports should be
1451                           submitted (default=http://llvm.org/bugs/)
1452   --with-internal-prefix  Installation directory for internal files
1453   --with-tclinclude       directory where tcl headers are
1454   --with-udis86=<path>    Use udis86 external x86 disassembler library
1455   --with-oprofile=<prefix>
1456                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1457   --with-intel-jitevents=<vtune-amplifier-dir>
1458                           Specify location of run-time support library for
1459                           Intel JIT API
1460                           (default=/opt/intel/vtune_amplifier_xe_2011)
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CXX         C++ compiler command
1470   CXXFLAGS    C++ compiler flags
1471   CPP         C preprocessor
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <http://llvm.org/bugs/>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" || continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 LLVM configure 3.1svn
1538 generated by GNU Autoconf 2.60
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544
1545 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547   exit
1548 fi
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1552
1553 It was created by LLVM $as_me 3.1svn, which was
1554 generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556   $ $0 $@
1557
1558 _ACEOF
1559 exec 5>>config.log
1560 {
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1565
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583 _ASUNAME
1584
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1593
1594 } >&5
1595
1596 cat >&5 <<_ACEOF
1597
1598
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1602
1603 _ACEOF
1604
1605
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1616 do
1617   for ac_arg
1618   do
1619     case $ac_arg in
1620     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622     | -silent | --silent | --silen | --sile | --sil)
1623       continue ;;
1624     *\'*)
1625       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     esac
1627     case $ac_pass in
1628     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629     2)
1630       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631       if test $ac_must_keep_next = true; then
1632         ac_must_keep_next=false # Got value, back to normal.
1633       else
1634         case $ac_arg in
1635           *=* | --config-cache | -C | -disable-* | --disable-* \
1636           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638           | -with-* | --with-* | -without-* | --without-* | --x)
1639             case "$ac_configure_args0 " in
1640               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641             esac
1642             ;;
1643           -* ) ac_must_keep_next=true ;;
1644         esac
1645       fi
1646       ac_configure_args="$ac_configure_args '$ac_arg'"
1647       ;;
1648     esac
1649   done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log.  We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660   # Save into config.log some information that might help in debugging.
1661   {
1662     echo
1663
1664     cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669     echo
1670     # The following way of writing the cache mishandles newlines in values,
1671 (
1672   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673     eval ac_val=\$$ac_var
1674     case $ac_val in #(
1675     *${as_nl}*)
1676       case $ac_var in #(
1677       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679       esac
1680       case $ac_var in #(
1681       _ | IFS | as_nl) ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       echo "$as_me: caught signal $ac_signal"
1747     echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791   set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795   set x "$ac_default_prefix/share/config.site" \
1796         "$ac_default_prefix/etc/config.site"
1797 fi
1798 shift
1799 for ac_site_file
1800 do
1801   if test -r "$ac_site_file"; then
1802     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804     sed 's/^/| /' "$ac_site_file" >&5
1805     . "$ac_site_file"
1806   fi
1807 done
1808
1809 if test -r "$cache_file"; then
1810   # Some versions of bash will fail to source /dev/null (special
1811   # files actually), so we avoid doing that.
1812   if test -f "$cache_file"; then
1813     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815     case $cache_file in
1816       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817       *)                      . "./$cache_file";;
1818     esac
1819   fi
1820 else
1821   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823   >$cache_file
1824 fi
1825
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831   eval ac_new_set=\$ac_env_${ac_var}_set
1832   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833   eval ac_new_val=\$ac_env_${ac_var}_value
1834   case $ac_old_set,$ac_new_set in
1835     set,)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,set)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,);;
1844     *)
1845       if test "x$ac_old_val" != "x$ac_new_val"; then
1846         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849 echo "$as_me:   former value:  $ac_old_val" >&2;}
1850         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851 echo "$as_me:   current value: $ac_new_val" >&2;}
1852         ac_cache_corrupted=:
1853       fi;;
1854   esac
1855   # Pass precious variables to config.status.
1856   if test "$ac_new_set" = set; then
1857     case $ac_new_val in
1858     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     *) ac_arg=$ac_var=$ac_new_val ;;
1860     esac
1861     case " $ac_configure_args " in
1862       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864     esac
1865   fi
1866 done
1867 if $ac_cache_corrupted; then
1868   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907 cat >>confdefs.h <<\_ACEOF
1908 #define LLVM_VERSION_MAJOR 3
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MINOR 1
1914 _ACEOF
1915
1916
1917 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1918
1919
1920
1921
1922
1923
1924
1925 ac_aux_dir=
1926 for ac_dir in autoconf "$srcdir"/autoconf; do
1927   if test -f "$ac_dir/install-sh"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/install-sh -c"
1930     break
1931   elif test -f "$ac_dir/install.sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install.sh -c"
1934     break
1935   elif test -f "$ac_dir/shtool"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/shtool install -c"
1938     break
1939   fi
1940 done
1941 if test -z "$ac_aux_dir"; then
1942   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956
1957 if test ${srcdir} != "." ; then
1958   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1959     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961    { (exit 1); exit 1; }; }
1962   fi
1963 fi
1964
1965 ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971   for ac_prog in clang llvm-gcc gcc
1972   do
1973     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$CC"; then
1981   ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996 IFS=$as_save_IFS
1997
1998 fi
1999 fi
2000 CC=$ac_cv_prog_CC
2001 if test -n "$CC"; then
2002   { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2004 else
2005   { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2007 fi
2008
2009
2010     test -n "$CC" && break
2011   done
2012 fi
2013 if test -z "$CC"; then
2014   ac_ct_CC=$CC
2015   for ac_prog in clang llvm-gcc gcc
2016 do
2017   # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   if test -n "$ac_ct_CC"; then
2025   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032   for ac_exec_ext in '' $ac_executable_extensions; do
2033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2034     ac_cv_prog_ac_ct_CC="$ac_prog"
2035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036     break 2
2037   fi
2038 done
2039 done
2040 IFS=$as_save_IFS
2041
2042 fi
2043 fi
2044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045 if test -n "$ac_ct_CC"; then
2046   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047 echo "${ECHO_T}$ac_ct_CC" >&6; }
2048 else
2049   { echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6; }
2051 fi
2052
2053
2054   test -n "$ac_ct_CC" && break
2055 done
2056
2057   if test "x$ac_ct_CC" = x; then
2058     CC=""
2059   else
2060     case $cross_compiling:$ac_tool_warned in
2061 yes:)
2062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet.  If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&5
2065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2066 whose name does not start with the host triplet.  If you think this
2067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2068 ac_tool_warned=yes ;;
2069 esac
2070     CC=$ac_ct_CC
2071   fi
2072 fi
2073
2074
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079    { (exit 1); exit 1; }; }
2080
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO: checking for C compiler version" >&5
2083 ac_compiler=`set X $ac_compile; echo $2`
2084 { (ac_try="$ac_compiler --version >&5"
2085 case "(($ac_try" in
2086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087   *) ac_try_echo=$ac_try;;
2088 esac
2089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2090   (eval "$ac_compiler --version >&5") 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }
2094 { (ac_try="$ac_compiler -v >&5"
2095 case "(($ac_try" in
2096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097   *) ac_try_echo=$ac_try;;
2098 esac
2099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2100   (eval "$ac_compiler -v >&5") 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }
2104 { (ac_try="$ac_compiler -V >&5"
2105 case "(($ac_try" in
2106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107   *) ac_try_echo=$ac_try;;
2108 esac
2109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110   (eval "$ac_compiler -V >&5") 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114
2115 cat >conftest.$ac_ext <<_ACEOF
2116 /* confdefs.h.  */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h.  */
2121
2122 int
2123 main ()
2124 {
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 ac_clean_files_save=$ac_clean_files
2131 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2132 # Try to create an executable without -o first, disregard a.out.
2133 # It will help us diagnose broken compilers, and finding out an intuition
2134 # of exeext.
2135 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2136 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2137 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2138 #
2139 # List of possible output files, starting from the most likely.
2140 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2141 # only as a last resort.  b.out is created by i960 compilers.
2142 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2143 #
2144 # The IRIX 6 linker writes into existing files which may not be
2145 # executable, retaining their permissions.  Remove them first so a
2146 # subsequent execution test works.
2147 ac_rmfiles=
2148 for ac_file in $ac_files
2149 do
2150   case $ac_file in
2151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2152     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2153   esac
2154 done
2155 rm -f $ac_rmfiles
2156
2157 if { (ac_try="$ac_link_default"
2158 case "(($ac_try" in
2159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160   *) ac_try_echo=$ac_try;;
2161 esac
2162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2163   (eval "$ac_link_default") 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; then
2167   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2169 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2170 # so that the user can short-circuit this test for compilers unknown to
2171 # Autoconf.
2172 for ac_file in $ac_files
2173 do
2174   test -f "$ac_file" || continue
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2184         then :; else
2185            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186         fi
2187         # We set ac_cv_exeext here because the later test for it is not
2188         # safe: cross compilers may not add the suffix if given an `-o'
2189         # argument, so we may need to know it at that point already.
2190         # Even if this section looks crufty: it has the advantage of
2191         # actually working.
2192         break;;
2193     * )
2194         break;;
2195   esac
2196 done
2197 test "$ac_cv_exeext" = no && ac_cv_exeext=
2198
2199 else
2200   echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207    { (exit 77); exit 77; }; }
2208 fi
2209
2210 ac_exeext=$ac_cv_exeext
2211 { echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6; }
2213
2214 # Check that the compiler produces executables we can run.  If not, either
2215 # the compiler is broken, or we cross compile.
2216 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221   if { ac_try='./$ac_file'
2222   { (case "(($ac_try" in
2223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224   *) ac_try_echo=$ac_try;;
2225 esac
2226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2227   (eval "$ac_try") 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231     cross_compiling=no
2232   else
2233     if test "$cross_compiling" = maybe; then
2234         cross_compiling=yes
2235     else
2236         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&2;}
2242    { (exit 1); exit 1; }; }
2243     fi
2244   fi
2245 fi
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2248
2249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250 ac_clean_files=$ac_clean_files_save
2251 # Check that the compiler produces executables we can run.  If not, either
2252 # the compiler is broken, or we cross compile.
2253 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2255 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256 echo "${ECHO_T}$cross_compiling" >&6; }
2257
2258 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2260 if { (ac_try="$ac_link"
2261 case "(($ac_try" in
2262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263   *) ac_try_echo=$ac_try;;
2264 esac
2265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2266   (eval "$ac_link") 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; then
2270   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2271 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2272 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 # `rm'.
2274 for ac_file in conftest.exe conftest conftest.*; do
2275   test -f "$ac_file" || continue
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2278     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279           break;;
2280     * ) break;;
2281   esac
2282 done
2283 else
2284   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289 fi
2290
2291 rm -f conftest$ac_cv_exeext
2292 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2294
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2297 ac_exeext=$EXEEXT
2298 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2300 if test "${ac_cv_objext+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 rm -f conftest.o conftest.obj
2319 if { (ac_try="$ac_compile"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325   (eval "$ac_compile") 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; then
2329   for ac_file in conftest.o conftest.obj conftest.*; do
2330   test -f "$ac_file" || continue;
2331   case $ac_file in
2332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2333     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334        break;;
2335   esac
2336 done
2337 else
2338   echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349 fi
2350 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351 echo "${ECHO_T}$ac_cv_objext" >&6; }
2352 OBJEXT=$ac_cv_objext
2353 ac_objext=$OBJEXT
2354 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h.  */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h.  */
2365
2366 int
2367 main ()
2368 {
2369 #ifndef __GNUC__
2370        choke me
2371 #endif
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (ac_try="$ac_compile"
2379 case "(($ac_try" in
2380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381   *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384   (eval "$ac_compile") 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392   { (case "(($ac_try" in
2393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394   *) ac_try_echo=$ac_try;;
2395 esac
2396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2397   (eval "$ac_try") 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407   (eval "$ac_try") 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416         ac_compiler_gnu=no
2417 fi
2418
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422 fi
2423 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2425 GCC=`test $ac_compiler_gnu = yes && echo yes`
2426 ac_test_CFLAGS=${CFLAGS+set}
2427 ac_save_CFLAGS=$CFLAGS
2428 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   ac_save_c_werror_flag=$ac_c_werror_flag
2434    ac_c_werror_flag=yes
2435    ac_cv_prog_cc_g=no
2436    CFLAGS="-g"
2437    cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h.  */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h.  */
2443
2444 int
2445 main ()
2446 {
2447
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (ac_try="$ac_compile"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459   (eval "$ac_compile") 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } &&
2466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467   { (case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472   (eval "$ac_try") 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; } &&
2476          { ac_try='test -s conftest.$ac_objext'
2477   { (case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482   (eval "$ac_try") 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_cv_prog_cc_g=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491         CFLAGS=""
2492       cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h.  */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h.  */
2498
2499 int
2500 main ()
2501 {
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (ac_try="$ac_compile"
2509 case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_compile") 2>conftest.er1
2515   ac_status=$?
2516   grep -v '^ *+' conftest.er1 >conftest.err
2517   rm -f conftest.er1
2518   cat conftest.err >&5
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } &&
2521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2522   { (case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_try") 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (case "(($ac_try" in
2533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534   *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537   (eval "$ac_try") 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   :
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546         ac_c_werror_flag=$ac_save_c_werror_flag
2547          CFLAGS="-g"
2548          cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554
2555 int
2556 main ()
2557 {
2558
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (ac_try="$ac_compile"
2565 case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_compile") 2>conftest.er1
2571   ac_status=$?
2572   grep -v '^ *+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2578   { (case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_try") 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; } &&
2587          { ac_try='test -s conftest.$ac_objext'
2588   { (case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_try") 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597   ac_cv_prog_cc_g=yes
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 fi
2610
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612    ac_c_werror_flag=$ac_save_c_werror_flag
2613 fi
2614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2615 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2616 if test "$ac_test_CFLAGS" = set; then
2617   CFLAGS=$ac_save_CFLAGS
2618 elif test $ac_cv_prog_cc_g = yes; then
2619   if test "$GCC" = yes; then
2620     CFLAGS="-g -O2"
2621   else
2622     CFLAGS="-g"
2623   fi
2624 else
2625   if test "$GCC" = yes; then
2626     CFLAGS="-O2"
2627   else
2628     CFLAGS=
2629   fi
2630 fi
2631 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2632 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_cc_c89+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   ac_cv_prog_cc_c89=no
2637 ac_save_CC=$CC
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 #include <stdarg.h>
2645 #include <stdio.h>
2646 #include <sys/types.h>
2647 #include <sys/stat.h>
2648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2649 struct buf { int x; };
2650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651 static char *e (p, i)
2652      char **p;
2653      int i;
2654 {
2655   return p[i];
2656 }
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2658 {
2659   char *s;
2660   va_list v;
2661   va_start (v,p);
2662   s = g (p, va_arg (v,int));
2663   va_end (v);
2664   return s;
2665 }
2666
2667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2668    function prototypes and stuff, but not '\xHH' hex character constants.
2669    These don't provoke an error unfortunately, instead are silently treated
2670    as 'x'.  The following induces an error, until -std is added to get
2671    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2672    array size at least.  It's necessary to write '\x00'==0 to get something
2673    that's true only with -std.  */
2674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675
2676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2677    inside strings and character constants.  */
2678 #define FOO(x) 'x'
2679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680
2681 int test (int i, double x);
2682 struct s1 {int (*f) (int a);};
2683 struct s2 {int (*f) (double a);};
2684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 int argc;
2686 char **argv;
2687 int
2688 main ()
2689 {
2690 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2696         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2697 do
2698   CC="$ac_save_CC $ac_arg"
2699   rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_compile") 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714   { (case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_try") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; } &&
2723          { ac_try='test -s conftest.$ac_objext'
2724   { (case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_try") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   ac_cv_prog_cc_c89=$ac_arg
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738
2739 fi
2740
2741 rm -f core conftest.err conftest.$ac_objext
2742   test "x$ac_cv_prog_cc_c89" != "xno" && break
2743 done
2744 rm -f conftest.$ac_ext
2745 CC=$ac_save_CC
2746
2747 fi
2748 # AC_CACHE_VAL
2749 case "x$ac_cv_prog_cc_c89" in
2750   x)
2751     { echo "$as_me:$LINENO: result: none needed" >&5
2752 echo "${ECHO_T}none needed" >&6; } ;;
2753   xno)
2754     { echo "$as_me:$LINENO: result: unsupported" >&5
2755 echo "${ECHO_T}unsupported" >&6; } ;;
2756   *)
2757     CC="$CC $ac_cv_prog_cc_c89"
2758     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2760 esac
2761
2762
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769 ac_ext=cpp
2770 ac_cpp='$CXXCPP $CPPFLAGS'
2771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2774 if test -z "$CXX"; then
2775   if test -n "$CCC"; then
2776     CXX=$CCC
2777   else
2778     if test -n "$ac_tool_prefix"; then
2779   for ac_prog in clang++ llvm-g++ g++
2780   do
2781     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_CXX+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   if test -n "$CXX"; then
2789   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796   for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CXX=$ac_cv_prog_CXX
2809 if test -n "$CXX"; then
2810   { echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6; }
2812 else
2813   { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2815 fi
2816
2817
2818     test -n "$CXX" && break
2819   done
2820 fi
2821 if test -z "$CXX"; then
2822   ac_ct_CXX=$CXX
2823   for ac_prog in clang++ llvm-g++ g++
2824 do
2825   # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if test -n "$ac_ct_CXX"; then
2833   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838   IFS=$as_save_IFS
2839   test -z "$as_dir" && as_dir=.
2840   for ac_exec_ext in '' $ac_executable_extensions; do
2841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2842     ac_cv_prog_ac_ct_CXX="$ac_prog"
2843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844     break 2
2845   fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2853 if test -n "$ac_ct_CXX"; then
2854   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2855 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2856 else
2857   { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2859 fi
2860
2861
2862   test -n "$ac_ct_CXX" && break
2863 done
2864
2865   if test "x$ac_ct_CXX" = x; then
2866     CXX="g++"
2867   else
2868     case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet.  If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&5
2873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2874 whose name does not start with the host triplet.  If you think this
2875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878     CXX=$ac_ct_CXX
2879   fi
2880 fi
2881
2882   fi
2883 fi
2884 # Provide some information about the compiler.
2885 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2886 ac_compiler=`set X $ac_compile; echo $2`
2887 { (ac_try="$ac_compiler --version >&5"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893   (eval "$ac_compiler --version >&5") 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }
2897 { (ac_try="$ac_compiler -v >&5"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_compiler -v >&5") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }
2907 { (ac_try="$ac_compiler -V >&5"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_compiler -V >&5") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }
2917
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933 #ifndef __GNUC__
2934        choke me
2935 #endif
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compile") 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2956   { (case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_try") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; } &&
2965          { ac_try='test -s conftest.$ac_objext'
2966   { (case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971   (eval "$ac_try") 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   ac_compiler_gnu=yes
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980         ac_compiler_gnu=no
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2985
2986 fi
2987 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2989 GXX=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CXXFLAGS=${CXXFLAGS+set}
2991 ac_save_CXXFLAGS=$CXXFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cxx_g+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2998    ac_cxx_werror_flag=yes
2999    ac_cv_prog_cxx_g=no
3000    CXXFLAGS="-g"
3001    cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007
3008 int
3009 main ()
3010 {
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compile") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3031   { (case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_try") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; } &&
3040          { ac_try='test -s conftest.$ac_objext'
3041   { (case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_try") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   ac_cv_prog_cxx_g=yes
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055         CXXFLAGS=""
3056       cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062
3063 int
3064 main ()
3065 {
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_compile") 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } &&
3085          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3086   { (case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_try") 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; } &&
3095          { ac_try='test -s conftest.$ac_objext'
3096   { (case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_try") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   :
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3111          CXXFLAGS="-g"
3112          cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_try") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161   ac_cv_prog_cxx_g=yes
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 fi
3174
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3177 fi
3178 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3179 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3180 if test "$ac_test_CXXFLAGS" = set; then
3181   CXXFLAGS=$ac_save_CXXFLAGS
3182 elif test $ac_cv_prog_cxx_g = yes; then
3183   if test "$GXX" = yes; then
3184     CXXFLAGS="-g -O2"
3185   else
3186     CXXFLAGS="-g"
3187   fi
3188 else
3189   if test "$GXX" = yes; then
3190     CXXFLAGS="-O2"
3191   else
3192     CXXFLAGS=
3193   fi
3194 fi
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3208 # On Suns, sometimes $CPP names a directory.
3209 if test -n "$CPP" && test -d "$CPP"; then
3210   CPP=
3211 fi
3212 if test -z "$CPP"; then
3213   if test "${ac_cv_prog_CPP+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216       # Double quotes because CPP needs to be expanded
3217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218     do
3219       ac_preproc_ok=false
3220 for ac_c_preproc_warn_flag in '' yes
3221 do
3222   # Use a header file that comes with gcc, so configuring glibc
3223   # with a fresh cross-compiler works.
3224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225   # <limits.h> exists even on freestanding compilers.
3226   # On the NeXT, cc -E runs the code through the compiler's parser,
3227   # not just through cpp. "Syntax error" is here to catch this case.
3228   cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #ifdef __STDC__
3235 # include <limits.h>
3236 #else
3237 # include <assert.h>
3238 #endif
3239                      Syntax error
3240 _ACEOF
3241 if { (ac_try="$ac_cpp conftest.$ac_ext"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248   ac_status=$?
3249   grep -v '^ *+' conftest.er1 >conftest.err
3250   rm -f conftest.er1
3251   cat conftest.err >&5
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } >/dev/null; then
3254   if test -s conftest.err; then
3255     ac_cpp_err=$ac_c_preproc_warn_flag
3256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257   else
3258     ac_cpp_err=
3259   fi
3260 else
3261   ac_cpp_err=yes
3262 fi
3263 if test -z "$ac_cpp_err"; then
3264   :
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269   # Broken: fails on valid input.
3270 continue
3271 fi
3272
3273 rm -f conftest.err conftest.$ac_ext
3274
3275   # OK, works on sane cases.  Now check whether nonexistent headers
3276   # can be detected and how.
3277   cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283 #include <ac_nonexistent.h>
3284 _ACEOF
3285 if { (ac_try="$ac_cpp conftest.$ac_ext"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } >/dev/null; then
3298   if test -s conftest.err; then
3299     ac_cpp_err=$ac_c_preproc_warn_flag
3300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301   else
3302     ac_cpp_err=
3303   fi
3304 else
3305   ac_cpp_err=yes
3306 fi
3307 if test -z "$ac_cpp_err"; then
3308   # Broken: success on invalid input.
3309 continue
3310 else
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314   # Passes both tests.
3315 ac_preproc_ok=:
3316 break
3317 fi
3318
3319 rm -f conftest.err conftest.$ac_ext
3320
3321 done
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3325   break
3326 fi
3327
3328     done
3329     ac_cv_prog_CPP=$CPP
3330
3331 fi
3332   CPP=$ac_cv_prog_CPP
3333 else
3334   ac_cv_prog_CPP=$CPP
3335 fi
3336 { echo "$as_me:$LINENO: result: $CPP" >&5
3337 echo "${ECHO_T}$CPP" >&6; }
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3340 do
3341   # Use a header file that comes with gcc, so configuring glibc
3342   # with a fresh cross-compiler works.
3343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344   # <limits.h> exists even on freestanding compilers.
3345   # On the NeXT, cc -E runs the code through the compiler's parser,
3346   # not just through cpp. "Syntax error" is here to catch this case.
3347   cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358                      Syntax error
3359 _ACEOF
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } >/dev/null; then
3373   if test -s conftest.err; then
3374     ac_cpp_err=$ac_c_preproc_warn_flag
3375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376   else
3377     ac_cpp_err=
3378   fi
3379 else
3380   ac_cpp_err=yes
3381 fi
3382 if test -z "$ac_cpp_err"; then
3383   :
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388   # Broken: fails on valid input.
3389 continue
3390 fi
3391
3392 rm -f conftest.err conftest.$ac_ext
3393
3394   # OK, works on sane cases.  Now check whether nonexistent headers
3395   # can be detected and how.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 #include <ac_nonexistent.h>
3403 _ACEOF
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } >/dev/null; then
3417   if test -s conftest.err; then
3418     ac_cpp_err=$ac_c_preproc_warn_flag
3419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420   else
3421     ac_cpp_err=
3422   fi
3423 else
3424   ac_cpp_err=yes
3425 fi
3426 if test -z "$ac_cpp_err"; then
3427   # Broken: success on invalid input.
3428 continue
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Passes both tests.
3434 ac_preproc_ok=:
3435 break
3436 fi
3437
3438 rm -f conftest.err conftest.$ac_ext
3439
3440 done
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3444   :
3445 else
3446   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&2;}
3450    { (exit 1); exit 1; }; }
3451 fi
3452
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460
3461
3462 if test -d ${srcdir}/projects/llvm-gcc ; then
3463   subdirs="$subdirs projects/llvm-gcc"
3464
3465 fi
3466
3467 if test -d ${srcdir}/projects/test-suite ; then
3468   subdirs="$subdirs projects/test-suite"
3469
3470 fi
3471
3472 if test -d ${srcdir}/projects/llvm-test ; then
3473   subdirs="$subdirs projects/llvm-test"
3474
3475 fi
3476
3477 if test -d ${srcdir}/projects/poolalloc ; then
3478   subdirs="$subdirs projects/poolalloc"
3479
3480 fi
3481
3482 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3483   subdirs="$subdirs projects/llvm-poolalloc"
3484
3485 fi
3486
3487 for i in `ls ${srcdir}/projects`
3488 do
3489   if test -d ${srcdir}/projects/${i} ; then
3490     case ${i} in
3491       sample)       subdirs="$subdirs projects/sample"
3492     ;;
3493       privbracket)  subdirs="$subdirs projects/privbracket"
3494  ;;
3495       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3496  ;;
3497       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3498 ;;
3499       llvm-java)    subdirs="$subdirs projects/llvm-java"
3500  ;;
3501       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3502    ;;
3503       safecode)     subdirs="$subdirs projects/safecode"
3504  ;;
3505       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3506  ;;
3507       compiler-rt)       ;;
3508       llvm-gcc)       ;;
3509       test-suite)     ;;
3510       llvm-test)      ;;
3511       poolalloc)      ;;
3512       llvm-poolalloc) ;;
3513       *)
3514         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3515 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3516         ;;
3517     esac
3518   fi
3519 done
3520
3521 # Check whether --enable-polly was given.
3522 if test "${enable_polly+set}" = set; then
3523   enableval=$enable_polly;
3524 else
3525   enableval=default
3526 fi
3527
3528 case "$enableval" in
3529   yes) ENABLE_POLLY=1
3530  ;;
3531   no)  ENABLE_POLLY=0
3532  ;;
3533   default) ENABLE_POLLY=1
3534  ;;
3535   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3536 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3537    { (exit 1); exit 1; }; } ;;
3538 esac
3539
3540
3541 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3542   LLVM_HAS_POLLY=1
3543
3544   subdirs="$subdirs tools/polly"
3545
3546 fi
3547
3548
3549 # Make sure we can run config.sub.
3550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3551   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3552 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3553    { (exit 1); exit 1; }; }
3554
3555 { echo "$as_me:$LINENO: checking build system type" >&5
3556 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3557 if test "${ac_cv_build+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   ac_build_alias=$build_alias
3561 test "x$ac_build_alias" = x &&
3562   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3563 test "x$ac_build_alias" = x &&
3564   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3565 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3566    { (exit 1); exit 1; }; }
3567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3568   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3569 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3570    { (exit 1); exit 1; }; }
3571
3572 fi
3573 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3574 echo "${ECHO_T}$ac_cv_build" >&6; }
3575 case $ac_cv_build in
3576 *-*-*) ;;
3577 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3578 echo "$as_me: error: invalid value of canonical build" >&2;}
3579    { (exit 1); exit 1; }; };;
3580 esac
3581 build=$ac_cv_build
3582 ac_save_IFS=$IFS; IFS='-'
3583 set x $ac_cv_build
3584 shift
3585 build_cpu=$1
3586 build_vendor=$2
3587 shift; shift
3588 # Remember, the first character of IFS is used to create $*,
3589 # except with old shells:
3590 build_os=$*
3591 IFS=$ac_save_IFS
3592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593
3594
3595 { echo "$as_me:$LINENO: checking host system type" >&5
3596 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3597 if test "${ac_cv_host+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   if test "x$host_alias" = x; then
3601   ac_cv_host=$ac_cv_build
3602 else
3603   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3604     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3605 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3606    { (exit 1); exit 1; }; }
3607 fi
3608
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3611 echo "${ECHO_T}$ac_cv_host" >&6; }
3612 case $ac_cv_host in
3613 *-*-*) ;;
3614 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3615 echo "$as_me: error: invalid value of canonical host" >&2;}
3616    { (exit 1); exit 1; }; };;
3617 esac
3618 host=$ac_cv_host
3619 ac_save_IFS=$IFS; IFS='-'
3620 set x $ac_cv_host
3621 shift
3622 host_cpu=$1
3623 host_vendor=$2
3624 shift; shift
3625 # Remember, the first character of IFS is used to create $*,
3626 # except with old shells:
3627 host_os=$*
3628 IFS=$ac_save_IFS
3629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630
3631
3632 { echo "$as_me:$LINENO: checking target system type" >&5
3633 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3634 if test "${ac_cv_target+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   if test "x$target_alias" = x; then
3638   ac_cv_target=$ac_cv_host
3639 else
3640   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3641     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3642 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3643    { (exit 1); exit 1; }; }
3644 fi
3645
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3648 echo "${ECHO_T}$ac_cv_target" >&6; }
3649 case $ac_cv_target in
3650 *-*-*) ;;
3651 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3652 echo "$as_me: error: invalid value of canonical target" >&2;}
3653    { (exit 1); exit 1; }; };;
3654 esac
3655 target=$ac_cv_target
3656 ac_save_IFS=$IFS; IFS='-'
3657 set x $ac_cv_target
3658 shift
3659 target_cpu=$1
3660 target_vendor=$2
3661 shift; shift
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3664 target_os=$*
3665 IFS=$ac_save_IFS
3666 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3667
3668
3669 # The aliases save the names the user supplied, while $host etc.
3670 # will get canonicalized.
3671 test -n "$target_alias" &&
3672   test "$program_prefix$program_suffix$program_transform_name" = \
3673     NONENONEs,x,x, &&
3674   program_prefix=${target_alias}-
3675
3676 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3677 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3678 if test "${llvm_cv_os_type+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   case $host in
3682   *-*-aix*)
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="AIX"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-irix*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="IRIX"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-cygwin*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="Cygwin"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-darwin*)
3698     llvm_cv_link_all_option="-Wl,-all_load"
3699     llvm_cv_no_link_all_option="-Wl,-noall_load"
3700     llvm_cv_os_type="Darwin"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-minix*)
3703     llvm_cv_link_all_option="-Wl,-all_load"
3704     llvm_cv_no_link_all_option="-Wl,-noall_load"
3705     llvm_cv_os_type="Minix"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-freebsd* | *-*-kfreebsd-gnu)
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="FreeBSD"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-openbsd*)
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="OpenBSD"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-netbsd*)
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="NetBSD"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-dragonfly*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="DragonFly"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-hpux*)
3728     llvm_cv_link_all_option="-Wl,--whole-archive"
3729     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730     llvm_cv_os_type="HP-UX"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-interix*)
3733     llvm_cv_link_all_option="-Wl,--whole-archive"
3734     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735     llvm_cv_os_type="Interix"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-linux*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Linux"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-gnu*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="GNU"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-solaris*)
3748     llvm_cv_link_all_option="-Wl,-z,allextract"
3749     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3750     llvm_cv_os_type="SunOS"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-*-auroraux*)
3753     llvm_cv_link_all_option="-Wl,-z,allextract"
3754     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3755     llvm_cv_os_type="AuroraUX"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-*-win32*)
3758     llvm_cv_link_all_option="-Wl,--whole-archive"
3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760     llvm_cv_os_type="Win32"
3761     llvm_cv_platform_type="Win32" ;;
3762   *-*-mingw*)
3763     llvm_cv_link_all_option="-Wl,--whole-archive"
3764     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765     llvm_cv_os_type="MingW"
3766     llvm_cv_platform_type="Win32" ;;
3767   *-*-haiku*)
3768     llvm_cv_link_all_option="-Wl,--whole-archive"
3769     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770     llvm_cv_os_type="Haiku"
3771     llvm_cv_platform_type="Unix" ;;
3772   *-unknown-eabi*)
3773     llvm_cv_link_all_option="-Wl,--whole-archive"
3774     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775     llvm_cv_os_type="Freestanding"
3776     llvm_cv_platform_type="Unix" ;;
3777   *-unknown-elf*)
3778     llvm_cv_link_all_option="-Wl,--whole-archive"
3779     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780     llvm_cv_os_type="Freestanding"
3781     llvm_cv_platform_type="Unix" ;;
3782   *)
3783     llvm_cv_link_all_option=""
3784     llvm_cv_no_link_all_option=""
3785     llvm_cv_os_type="Unknown"
3786     llvm_cv_platform_type="Unknown" ;;
3787 esac
3788 fi
3789 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3790 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3791
3792 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3793 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3794 if test "${llvm_cv_target_os_type+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   case $target in
3798   *-*-aix*)
3799     llvm_cv_target_os_type="AIX" ;;
3800   *-*-irix*)
3801     llvm_cv_target_os_type="IRIX" ;;
3802   *-*-cygwin*)
3803     llvm_cv_target_os_type="Cygwin" ;;
3804   *-*-darwin*)
3805     llvm_cv_target_os_type="Darwin" ;;
3806   *-*-minix*)
3807     llvm_cv_target_os_type="Minix" ;;
3808   *-*-freebsd*)
3809     llvm_cv_target_os_type="FreeBSD" ;;
3810   *-*-openbsd*)
3811     llvm_cv_target_os_type="OpenBSD" ;;
3812   *-*-netbsd*)
3813     llvm_cv_target_os_type="NetBSD" ;;
3814   *-*-dragonfly*)
3815     llvm_cv_target_os_type="DragonFly" ;;
3816   *-*-hpux*)
3817     llvm_cv_target_os_type="HP-UX" ;;
3818   *-*-interix*)
3819     llvm_cv_target_os_type="Interix" ;;
3820   *-*-linux*)
3821     llvm_cv_target_os_type="Linux" ;;
3822   *-*-solaris*)
3823     llvm_cv_target_os_type="SunOS" ;;
3824   *-*-auroraux*)
3825     llvm_cv_target_os_type="AuroraUX" ;;
3826   *-*-win32*)
3827     llvm_cv_target_os_type="Win32" ;;
3828   *-*-mingw*)
3829     llvm_cv_target_os_type="MingW" ;;
3830   *-*-haiku*)
3831     llvm_cv_target_os_type="Haiku" ;;
3832   *-*-rtems*)
3833     llvm_cv_target_os_type="RTEMS" ;;
3834   *-*-nacl*)
3835     llvm_cv_target_os_type="NativeClient" ;;
3836   *-unknown-eabi*)
3837     llvm_cv_target_os_type="Freestanding" ;;
3838   *)
3839     llvm_cv_target_os_type="Unknown" ;;
3840 esac
3841 fi
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848    { (exit 1); exit 1; }; }
3849 fi
3850
3851 OS=$llvm_cv_os_type
3852
3853 HOST_OS=$llvm_cv_os_type
3854
3855 TARGET_OS=$llvm_cv_target_os_type
3856
3857
3858 LINKALL=$llvm_cv_link_all_option
3859
3860 NOLINKALL=$llvm_cv_no_link_all_option
3861
3862
3863 case $llvm_cv_platform_type in
3864   Unix)
3865
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3868 _ACEOF
3869
3870     LLVM_ON_UNIX=1
3871
3872     LLVM_ON_WIN32=0
3873
3874     ;;
3875   Win32)
3876
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3879 _ACEOF
3880
3881     LLVM_ON_UNIX=0
3882
3883     LLVM_ON_WIN32=1
3884
3885     ;;
3886 esac
3887
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   case $target in
3894   i?86-*)                 llvm_cv_target_arch="x86" ;;
3895   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3896   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3897   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3898   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3899   mips-*)                 llvm_cv_target_arch="Mips" ;;
3900   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3901   xcore-*)                llvm_cv_target_arch="XCore" ;;
3902   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3903   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3904   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3905   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3906   *)                      llvm_cv_target_arch="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911
3912 if test "$llvm_cv_target_arch" = "Unknown" ; then
3913   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3915 fi
3916
3917 case "$llvm_cv_target_arch" in
3918     x86)     LLVM_NATIVE_ARCH="X86" ;;
3919     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3920     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3921 esac
3922
3923 ARCH=$llvm_cv_target_arch
3924
3925
3926
3927
3928 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3929 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   # Extract the first word of "grep ggrep" to use in msg output
3934 if test -z "$GREP"; then
3935 set dummy grep ggrep; ac_prog_name=$2
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   ac_path_GREP_found=false
3940 # Loop through the user's path and test for each of PROGNAME-LIST
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for ac_prog in grep ggrep; do
3947   for ac_exec_ext in '' $ac_executable_extensions; do
3948     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3950     # Check for GNU ac_path_GREP and select it if it is found.
3951   # Check for GNU $ac_path_GREP
3952 case `"$ac_path_GREP" --version 2>&1` in
3953 *GNU*)
3954   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955 *)
3956   ac_count=0
3957   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3958   while :
3959   do
3960     cat "conftest.in" "conftest.in" >"conftest.tmp"
3961     mv "conftest.tmp" "conftest.in"
3962     cp "conftest.in" "conftest.nl"
3963     echo 'GREP' >> "conftest.nl"
3964     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966     ac_count=`expr $ac_count + 1`
3967     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968       # Best one so far, save it but keep looking for a better one
3969       ac_cv_path_GREP="$ac_path_GREP"
3970       ac_path_GREP_max=$ac_count
3971     fi
3972     # 10*(2^10) chars as input seems more than enough
3973     test $ac_count -gt 10 && break
3974   done
3975   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976 esac
3977
3978
3979     $ac_path_GREP_found && break 3
3980   done
3981 done
3982
3983 done
3984 IFS=$as_save_IFS
3985
3986
3987 fi
3988
3989 GREP="$ac_cv_path_GREP"
3990 if test -z "$GREP"; then
3991   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993    { (exit 1); exit 1; }; }
3994 fi
3995
3996 else
3997   ac_cv_path_GREP=$GREP
3998 fi
3999
4000
4001 fi
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4004  GREP="$ac_cv_path_GREP"
4005
4006
4007 { echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_EGREP+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013    then ac_cv_path_EGREP="$GREP -E"
4014    else
4015      # Extract the first word of "egrep" to use in msg output
4016 if test -z "$EGREP"; then
4017 set dummy egrep; ac_prog_name=$2
4018 if test "${ac_cv_path_EGREP+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028   for ac_prog in egrep; do
4029   for ac_exec_ext in '' $ac_executable_extensions; do
4030     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4032     # Check for GNU ac_path_EGREP and select it if it is found.
4033   # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4035 *GNU*)
4036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4037 *)
4038   ac_count=0
4039   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4040   while :
4041   do
4042     cat "conftest.in" "conftest.in" >"conftest.tmp"
4043     mv "conftest.tmp" "conftest.in"
4044     cp "conftest.in" "conftest.nl"
4045     echo 'EGREP' >> "conftest.nl"
4046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048     ac_count=`expr $ac_count + 1`
4049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050       # Best one so far, save it but keep looking for a better one
4051       ac_cv_path_EGREP="$ac_path_EGREP"
4052       ac_path_EGREP_max=$ac_count
4053     fi
4054     # 10*(2^10) chars as input seems more than enough
4055     test $ac_count -gt 10 && break
4056   done
4057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 esac
4059
4060
4061     $ac_path_EGREP_found && break 3
4062   done
4063 done
4064
4065 done
4066 IFS=$as_save_IFS
4067
4068
4069 fi
4070
4071 EGREP="$ac_cv_path_EGREP"
4072 if test -z "$EGREP"; then
4073   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075    { (exit 1); exit 1; }; }
4076 fi
4077
4078 else
4079   ac_cv_path_EGREP=$EGREP
4080 fi
4081
4082
4083    fi
4084 fi
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4087  EGREP="$ac_cv_path_EGREP"
4088
4089
4090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4092 if test "${ac_cv_header_stdc+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 #include <stdlib.h>
4102 #include <stdarg.h>
4103 #include <string.h>
4104 #include <float.h>
4105
4106 int
4107 main ()
4108 {
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121   (eval "$ac_compile") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } &&
4128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_try") 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   ac_cv_header_stdc=yes
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153         ac_cv_header_stdc=no
4154 fi
4155
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157
4158 if test $ac_cv_header_stdc = yes; then
4159   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <string.h>
4167
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "memchr" >/dev/null 2>&1; then
4171   :
4172 else
4173   ac_cv_header_stdc=no
4174 fi
4175 rm -f conftest*
4176
4177 fi
4178
4179 if test $ac_cv_header_stdc = yes; then
4180   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 #include <stdlib.h>
4188
4189 _ACEOF
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191   $EGREP "free" >/dev/null 2>&1; then
4192   :
4193 else
4194   ac_cv_header_stdc=no
4195 fi
4196 rm -f conftest*
4197
4198 fi
4199
4200 if test $ac_cv_header_stdc = yes; then
4201   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4202   if test "$cross_compiling" = yes; then
4203   :
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 #include <ctype.h>
4212 #include <stdlib.h>
4213 #if ((' ' & 0x0FF) == 0x020)
4214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4216 #else
4217 # define ISLOWER(c) \
4218                    (('a' <= (c) && (c) <= 'i') \
4219                      || ('j' <= (c) && (c) <= 'r') \
4220                      || ('s' <= (c) && (c) <= 'z'))
4221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4222 #endif
4223
4224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4225 int
4226 main ()
4227 {
4228   int i;
4229   for (i = 0; i < 256; i++)
4230     if (XOR (islower (i), ISLOWER (i))
4231         || toupper (i) != TOUPPER (i))
4232       return 2;
4233   return 0;
4234 }
4235 _ACEOF
4236 rm -f conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243   (eval "$ac_link") 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247   { (case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_try") 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; }; then
4256   :
4257 else
4258   echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ( exit $ac_status )
4263 ac_cv_header_stdc=no
4264 fi
4265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 fi
4267
4268
4269 fi
4270 fi
4271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4273 if test $ac_cv_header_stdc = yes; then
4274
4275 cat >>confdefs.h <<\_ACEOF
4276 #define STDC_HEADERS 1
4277 _ACEOF
4278
4279 fi
4280
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292                   inttypes.h stdint.h unistd.h
4293 do
4294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 $ac_includes_default
4307
4308 #include <$ac_header>
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4312 case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_compile") 2>conftest.er1
4318   ac_status=$?
4319   grep -v '^ *+' conftest.er1 >conftest.err
4320   rm -f conftest.er1
4321   cat conftest.err >&5
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); } &&
4324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325   { (case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; } &&
4334          { ac_try='test -s conftest.$ac_objext'
4335   { (case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340   (eval "$ac_try") 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   eval "$as_ac_Header=yes"
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349         eval "$as_ac_Header=no"
4350 fi
4351
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 fi
4354 ac_res=`eval echo '${'$as_ac_Header'}'`
4355                { echo "$as_me:$LINENO: result: $ac_res" >&5
4356 echo "${ECHO_T}$ac_res" >&6; }
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358   cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 _ACEOF
4361
4362 fi
4363
4364 done
4365
4366
4367 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4368 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4369 if test "${ac_cv_c_bigendian+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   # See if sys/param.h defines the BYTE_ORDER macro.
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4381
4382 int
4383 main ()
4384 {
4385 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4386  bogus endian macros
4387 #endif
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4395 case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400   (eval "$ac_compile") 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   # It does; now see whether it defined to BIG_ENDIAN or not.
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #include <sys/types.h>
4435 #include <sys/param.h>
4436
4437 int
4438 main ()
4439 {
4440 #if BYTE_ORDER != BIG_ENDIAN
4441  not big endian
4442 #endif
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455   (eval "$ac_compile") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463   { (case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; } &&
4472          { ac_try='test -s conftest.$ac_objext'
4473   { (case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_try") 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482   ac_cv_c_bigendian=yes
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487         ac_cv_c_bigendian=no
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495         # It does not; compile a test program.
4496 if test "$cross_compiling" = yes; then
4497   # try to guess the endianness by grepping values into an object file
4498   ac_cv_c_bigendian=unknown
4499   cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4506 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4507 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4508 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4509 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4510 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4511 int
4512 main ()
4513 {
4514  _ascii (); _ebcdic ();
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526   (eval "$ac_compile") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } &&
4533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4534   { (case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_try") 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; } &&
4543          { ac_try='test -s conftest.$ac_objext'
4544   { (case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_try") 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; }; then
4553   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4554   ac_cv_c_bigendian=yes
4555 fi
4556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557   if test "$ac_cv_c_bigendian" = unknown; then
4558     ac_cv_c_bigendian=no
4559   else
4560     # finding both strings is unlikely to happen, but who knows?
4561     ac_cv_c_bigendian=unknown
4562   fi
4563 fi
4564 else
4565   echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568
4569 fi
4570
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580 int
4581 main ()
4582 {
4583
4584   /* Are we little or big endian?  From Harbison&Steele.  */
4585   union
4586   {
4587     long int l;
4588     char c[sizeof (long int)];
4589   } u;
4590   u.l = 1;
4591   return u.c[sizeof (long int) - 1] == 1;
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest$ac_exeext
4598 if { (ac_try="$ac_link"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_link") 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608   { (case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_try") 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_c_bigendian=no
4618 else
4619   echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ( exit $ac_status )
4624 ac_cv_c_bigendian=yes
4625 fi
4626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 fi
4628
4629
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636 case $ac_cv_c_bigendian in
4637   yes)
4638     ENDIAN=big
4639  ;;
4640   no)
4641     ENDIAN=little
4642  ;;
4643   *)
4644     { { echo "$as_me:$LINENO: error: unknown endianness
4645 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4646 echo "$as_me: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4648    { (exit 1); exit 1; }; } ;;
4649 esac
4650
4651
4652 if test "$cross_compiling" = yes; then
4653   LLVM_CROSS_COMPILING=1
4654
4655
4656 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4657 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4658 if test "${ac_cv_build_exeext+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4662   ac_cv_build_exeext=.exe
4663 else
4664   ac_build_prefix=${build_alias}-
4665
4666   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4667 set dummy ${ac_build_prefix}gcc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$BUILD_CC"; then
4674   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 BUILD_CC=$ac_cv_prog_BUILD_CC
4694 if test -n "$BUILD_CC"; then
4695   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4696 echo "${ECHO_T}$BUILD_CC" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702
4703   if test -z "$BUILD_CC"; then
4704      # Extract the first word of "gcc", so it can be a program name with args.
4705 set dummy gcc; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$BUILD_CC"; then
4712   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4721     ac_cv_prog_BUILD_CC="gcc"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 else
4736   { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 fi
4739
4740
4741      if test -z "$BUILD_CC"; then
4742        # Extract the first word of "cc", so it can be a program name with args.
4743 set dummy cc; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   if test -n "$BUILD_CC"; then
4750   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4751 else
4752   ac_prog_rejected=no
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4761        ac_prog_rejected=yes
4762        continue
4763      fi
4764     ac_cv_prog_BUILD_CC="cc"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 if test $ac_prog_rejected = yes; then
4773   # We found a bogon in the path, so make sure we never use it.
4774   set dummy $ac_cv_prog_BUILD_CC
4775   shift
4776   if test $# != 0; then
4777     # We chose a different compiler from the bogus one.
4778     # However, it has the same basename, so the bogon will be chosen
4779     # first if we set BUILD_CC to just the basename; use the full file name.
4780     shift
4781     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4782   fi
4783 fi
4784 fi
4785 fi
4786 BUILD_CC=$ac_cv_prog_BUILD_CC
4787 if test -n "$BUILD_CC"; then
4788   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4789 echo "${ECHO_T}$BUILD_CC" >&6; }
4790 else
4791   { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 fi
4794
4795
4796      fi
4797   fi
4798   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4799 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4800    { (exit 1); exit 1; }; }
4801   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4802   rm -f conftest*
4803   echo 'int main () { return 0; }' > conftest.$ac_ext
4804   ac_cv_build_exeext=
4805   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4806   (eval $ac_build_link) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; then
4810     for file in conftest.*; do
4811       case $file in
4812       *.c | *.o | *.obj | *.dSYM) ;;
4813       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4814       esac
4815     done
4816   else
4817     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4818 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4819    { (exit 1); exit 1; }; }
4820   fi
4821   rm -f conftest*
4822   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4823 fi
4824 fi
4825
4826 BUILD_EXEEXT=""
4827 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4828 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4829 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4830 ac_build_exeext=$BUILD_EXEEXT
4831
4832   ac_build_prefix=${build_alias}-
4833   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4834 set dummy ${ac_build_prefix}g++; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   if test -n "$BUILD_CXX"; then
4841   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4850     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4861 if test -n "$BUILD_CXX"; then
4862   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4863 echo "${ECHO_T}$BUILD_CXX" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870   if test -z "$BUILD_CXX"; then
4871      # Extract the first word of "g++", so it can be a program name with args.
4872 set dummy g++; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   if test -n "$BUILD_CXX"; then
4879   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886   for ac_exec_ext in '' $ac_executable_extensions; do
4887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4888     ac_cv_prog_BUILD_CXX="g++"
4889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896 fi
4897 fi
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 else
4903   { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4905 fi
4906
4907
4908      if test -z "$BUILD_CXX"; then
4909        # Extract the first word of "c++", so it can be a program name with args.
4910 set dummy c++; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   if test -n "$BUILD_CXX"; then
4917   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4918 else
4919   ac_prog_rejected=no
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925   for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4928        ac_prog_rejected=yes
4929        continue
4930      fi
4931     ac_cv_prog_BUILD_CXX="c++"
4932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 if test $ac_prog_rejected = yes; then
4940   # We found a bogon in the path, so make sure we never use it.
4941   set dummy $ac_cv_prog_BUILD_CXX
4942   shift
4943   if test $# != 0; then
4944     # We chose a different compiler from the bogus one.
4945     # However, it has the same basename, so the bogon will be chosen
4946     # first if we set BUILD_CXX to just the basename; use the full file name.
4947     shift
4948     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4949   fi
4950 fi
4951 fi
4952 fi
4953 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4954 if test -n "$BUILD_CXX"; then
4955   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4956 echo "${ECHO_T}$BUILD_CXX" >&6; }
4957 else
4958   { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4960 fi
4961
4962
4963      fi
4964   fi
4965 else
4966   LLVM_CROSS_COMPILING=0
4967
4968 fi
4969
4970 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4971   cvsbuild="yes"
4972   optimize="no"
4973   CVSBUILD=CVSBUILD=1
4974
4975 else
4976   cvsbuild="no"
4977   optimize="yes"
4978 fi
4979
4980
4981 # Check whether --enable-libcpp was given.
4982 if test "${enable_libcpp+set}" = set; then
4983   enableval=$enable_libcpp;
4984 else
4985   enableval=default
4986 fi
4987
4988 case "$enableval" in
4989   yes) ENABLE_LIBCPP=1
4990  ;;
4991   no)  ENABLE_LIBCPP=0
4992  ;;
4993   default) ENABLE_LIBCPP=0
4994 ;;
4995   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4996 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4997    { (exit 1); exit 1; }; } ;;
4998 esac
4999
5000 # Check whether --enable-optimized was given.
5001 if test "${enable_optimized+set}" = set; then
5002   enableval=$enable_optimized;
5003 else
5004   enableval=$optimize
5005 fi
5006
5007 if test ${enableval} = "no" ; then
5008   ENABLE_OPTIMIZED=
5009
5010 else
5011   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5012
5013 fi
5014
5015 # Check whether --enable-profiling was given.
5016 if test "${enable_profiling+set}" = set; then
5017   enableval=$enable_profiling;
5018 else
5019   enableval="no"
5020 fi
5021
5022 if test ${enableval} = "no" ; then
5023   ENABLE_PROFILING=
5024
5025 else
5026   ENABLE_PROFILING=ENABLE_PROFILING=1
5027
5028 fi
5029
5030 # Check whether --enable-assertions was given.
5031 if test "${enable_assertions+set}" = set; then
5032   enableval=$enable_assertions;
5033 else
5034   enableval="yes"
5035 fi
5036
5037 if test ${enableval} = "yes" ; then
5038   DISABLE_ASSERTIONS=
5039
5040 else
5041   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5042
5043 fi
5044
5045 # Check whether --enable-expensive-checks was given.
5046 if test "${enable_expensive_checks+set}" = set; then
5047   enableval=$enable_expensive_checks;
5048 else
5049   enableval="no"
5050 fi
5051
5052 if test ${enableval} = "yes" ; then
5053   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5054
5055   EXPENSIVE_CHECKS=yes
5056
5057 else
5058   ENABLE_EXPENSIVE_CHECKS=
5059
5060   EXPENSIVE_CHECKS=no
5061
5062 fi
5063
5064 # Check whether --enable-debug-runtime was given.
5065 if test "${enable_debug_runtime+set}" = set; then
5066   enableval=$enable_debug_runtime;
5067 else
5068   enableval=no
5069 fi
5070
5071 if test ${enableval} = "no" ; then
5072   DEBUG_RUNTIME=
5073
5074 else
5075   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5076
5077 fi
5078
5079 # Check whether --enable-debug-symbols was given.
5080 if test "${enable_debug_symbols+set}" = set; then
5081   enableval=$enable_debug_symbols;
5082 else
5083   enableval=no
5084 fi
5085
5086 if test ${enableval} = "no" ; then
5087   DEBUG_SYMBOLS=
5088
5089 else
5090   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5091
5092 fi
5093
5094 # Check whether --enable-jit was given.
5095 if test "${enable_jit+set}" = set; then
5096   enableval=$enable_jit;
5097 else
5098   enableval=default
5099 fi
5100
5101 if test ${enableval} = "no"
5102 then
5103   JIT=
5104
5105 else
5106   case "$llvm_cv_target_arch" in
5107     x86)         TARGET_HAS_JIT=1
5108  ;;
5109     Sparc)       TARGET_HAS_JIT=0
5110  ;;
5111     PowerPC)     TARGET_HAS_JIT=1
5112  ;;
5113     x86_64)      TARGET_HAS_JIT=1
5114  ;;
5115     ARM)         TARGET_HAS_JIT=1
5116  ;;
5117     Mips)        TARGET_HAS_JIT=1
5118  ;;
5119     XCore)       TARGET_HAS_JIT=0
5120  ;;
5121     MSP430)      TARGET_HAS_JIT=0
5122  ;;
5123     Hexagon)     TARGET_HAS_JIT=0
5124  ;;
5125     MBlaze)      TARGET_HAS_JIT=0
5126  ;;
5127     PTX)         TARGET_HAS_JIT=0
5128  ;;
5129     *)           TARGET_HAS_JIT=0
5130  ;;
5131   esac
5132 fi
5133
5134 # Check whether --enable-docs was given.
5135 if test "${enable_docs+set}" = set; then
5136   enableval=$enable_docs;
5137 else
5138   enableval=default
5139 fi
5140
5141 case "$enableval" in
5142   yes) ENABLE_DOCS=1
5143  ;;
5144   no)  ENABLE_DOCS=0
5145  ;;
5146   default) ENABLE_DOCS=1
5147  ;;
5148   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5150    { (exit 1); exit 1; }; } ;;
5151 esac
5152
5153 # Check whether --enable-doxygen was given.
5154 if test "${enable_doxygen+set}" = set; then
5155   enableval=$enable_doxygen;
5156 else
5157   enableval=default
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_DOXYGEN=1
5162  ;;
5163   no)  ENABLE_DOXYGEN=0
5164  ;;
5165   default) ENABLE_DOXYGEN=0
5166  ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 # Check whether --enable-threads was given.
5173 if test "${enable_threads+set}" = set; then
5174   enableval=$enable_threads;
5175 else
5176   enableval=default
5177 fi
5178
5179 case "$enableval" in
5180   yes) LLVM_ENABLE_THREADS=1
5181  ;;
5182   no)  LLVM_ENABLE_THREADS=0
5183  ;;
5184   default) LLVM_ENABLE_THREADS=1
5185  ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191 cat >>confdefs.h <<_ACEOF
5192 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5193 _ACEOF
5194
5195
5196 # Check whether --enable-pthreads was given.
5197 if test "${enable_pthreads+set}" = set; then
5198   enableval=$enable_pthreads;
5199 else
5200   enableval=default
5201 fi
5202
5203 case "$enableval" in
5204   yes) ENABLE_PTHREADS=1
5205  ;;
5206   no)  ENABLE_PTHREADS=0
5207  ;;
5208   default) ENABLE_PTHREADS=1
5209  ;;
5210   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5212    { (exit 1); exit 1; }; } ;;
5213 esac
5214
5215 # Check whether --enable-pic was given.
5216 if test "${enable_pic+set}" = set; then
5217   enableval=$enable_pic;
5218 else
5219   enableval=default
5220 fi
5221
5222 case "$enableval" in
5223   yes) ENABLE_PIC=1
5224  ;;
5225   no)  ENABLE_PIC=0
5226  ;;
5227   default) ENABLE_PIC=1
5228  ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 cat >>confdefs.h <<_ACEOF
5235 #define ENABLE_PIC $ENABLE_PIC
5236 _ACEOF
5237
5238
5239 # Check whether --enable-shared was given.
5240 if test "${enable_shared+set}" = set; then
5241   enableval=$enable_shared;
5242 else
5243   enableval=default
5244 fi
5245
5246 case "$enableval" in
5247   yes) ENABLE_SHARED=1
5248  ;;
5249   no)  ENABLE_SHARED=0
5250  ;;
5251   default) ENABLE_SHARED=0
5252  ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258 # Check whether --enable-embed-stdcxx was given.
5259 if test "${enable_embed_stdcxx+set}" = set; then
5260   enableval=$enable_embed_stdcxx;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_EMBED_STDCXX=1
5267  ;;
5268   no)  ENABLE_EMBED_STDCXX=0
5269  ;;
5270   default) ENABLE_EMBED_STDCXX=0
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 # Check whether --enable-timestamps was given.
5278 if test "${enable_timestamps+set}" = set; then
5279   enableval=$enable_timestamps;
5280 else
5281   enableval=default
5282 fi
5283
5284 case "$enableval" in
5285   yes) ENABLE_TIMESTAMPS=1
5286  ;;
5287   no)  ENABLE_TIMESTAMPS=0
5288  ;;
5289   default) ENABLE_TIMESTAMPS=1
5290  ;;
5291   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295
5296 cat >>confdefs.h <<_ACEOF
5297 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5298 _ACEOF
5299
5300
5301 TARGETS_TO_BUILD=""
5302 # Check whether --enable-targets was given.
5303 if test "${enable_targets+set}" = set; then
5304   enableval=$enable_targets;
5305 else
5306   enableval=all
5307 fi
5308
5309 if test "$enableval" = host-only ; then
5310   enableval=host
5311 fi
5312 case "$enableval" in
5313   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5314   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5315       case "$a_target" in
5316         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5320         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5324         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5325         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5326         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5327         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5328         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5329         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5330         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5331         host) case "$llvm_cv_target_arch" in
5332             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5335             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5336             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5337             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5339             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5340             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5344             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5345 echo "$as_me: error: Can not set target to build" >&2;}
5346    { (exit 1); exit 1; }; } ;;
5347           esac ;;
5348         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5349 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5350    { (exit 1); exit 1; }; } ;;
5351       esac
5352   done
5353   ;;
5354 esac
5355 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5356
5357
5358 for a_target in $TARGETS_TO_BUILD; do
5359   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5360
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5363 _ACEOF
5364
5365     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5366     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5367     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5368     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5369     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5370       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5371     fi
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5375 _ACEOF
5376
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5380 _ACEOF
5381
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5385 _ACEOF
5386
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5390 _ACEOF
5391
5392     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5396 _ACEOF
5397
5398     fi
5399   fi
5400 done
5401
5402 LLVM_ENUM_TARGETS=""
5403 LLVM_ENUM_ASM_PRINTERS=""
5404 LLVM_ENUM_ASM_PARSERS=""
5405 LLVM_ENUM_DISASSEMBLERS=""
5406 for target_to_build in $TARGETS_TO_BUILD; do
5407   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5408   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5409     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5410   fi
5411   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5412     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5413   fi
5414   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5415     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5416   fi
5417 done
5418
5419
5420
5421
5422
5423 # Check whether --enable-cbe-printf-a was given.
5424 if test "${enable_cbe_printf_a+set}" = set; then
5425   enableval=$enable_cbe_printf_a;
5426 else
5427   enableval=default
5428 fi
5429
5430 case "$enableval" in
5431   yes) ENABLE_CBE_PRINTF_A=1
5432  ;;
5433   no)  ENABLE_CBE_PRINTF_A=0
5434  ;;
5435   default)  ENABLE_CBE_PRINTF_A=1
5436  ;;
5437   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5438 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5439    { (exit 1); exit 1; }; } ;;
5440 esac
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5444 _ACEOF
5445
5446
5447
5448 # Check whether --with-optimize-option was given.
5449 if test "${with_optimize_option+set}" = set; then
5450   withval=$with_optimize_option;
5451 else
5452   withval=default
5453 fi
5454
5455 { echo "$as_me:$LINENO: checking optimization flags" >&5
5456 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5457 case "$withval" in
5458   default)
5459     case "$llvm_cv_os_type" in
5460     FreeBSD) optimize_option=-O2 ;;
5461     MingW) optimize_option=-O2 ;;
5462     *)     optimize_option=-O3 ;;
5463     esac ;;
5464   *) optimize_option="$withval" ;;
5465 esac
5466 OPTIMIZE_OPTION=$optimize_option
5467
5468 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5469 echo "${ECHO_T}$optimize_option" >&6; }
5470
5471
5472 # Check whether --with-extra-options was given.
5473 if test "${with_extra_options+set}" = set; then
5474   withval=$with_extra_options;
5475 else
5476   withval=default
5477 fi
5478
5479 case "$withval" in
5480   default) EXTRA_OPTIONS= ;;
5481   *) EXTRA_OPTIONS=$withval ;;
5482 esac
5483 EXTRA_OPTIONS=$EXTRA_OPTIONS
5484
5485
5486
5487 # Check whether --with-extra-ld-options was given.
5488 if test "${with_extra_ld_options+set}" = set; then
5489   withval=$with_extra_ld_options;
5490 else
5491   withval=default
5492 fi
5493
5494 case "$withval" in
5495   default) EXTRA_LD_OPTIONS= ;;
5496   *) EXTRA_LD_OPTIONS=$withval ;;
5497 esac
5498 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5499
5500
5501 # Check whether --enable-bindings was given.
5502 if test "${enable_bindings+set}" = set; then
5503   enableval=$enable_bindings;
5504 else
5505   enableval=default
5506 fi
5507
5508 BINDINGS_TO_BUILD=""
5509 case "$enableval" in
5510   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5511   all ) BINDINGS_TO_BUILD="ocaml" ;;
5512   none | no) BINDINGS_TO_BUILD="" ;;
5513   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5514       case "$a_binding" in
5515         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5516         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5517 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5518    { (exit 1); exit 1; }; } ;;
5519       esac
5520   done
5521   ;;
5522 esac
5523
5524
5525 # Check whether --with-ocaml-libdir was given.
5526 if test "${with_ocaml_libdir+set}" = set; then
5527   withval=$with_ocaml_libdir;
5528 else
5529   withval=auto
5530 fi
5531
5532 case "$withval" in
5533   auto) with_ocaml_libdir="$withval" ;;
5534   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5535   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5536 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5537    { (exit 1); exit 1; }; } ;;
5538 esac
5539
5540
5541 # Check whether --with-clang-srcdir was given.
5542 if test "${with_clang_srcdir+set}" = set; then
5543   withval=$with_clang_srcdir;
5544 else
5545   withval="-"
5546 fi
5547
5548 case "$withval" in
5549   -) clang_src_root="" ;;
5550   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5551   *) clang_src_root="$ac_pwd/$withval" ;;
5552 esac
5553 CLANG_SRC_ROOT=$clang_src_root
5554
5555
5556
5557 # Check whether --with-clang-resource-dir was given.
5558 if test "${with_clang_resource_dir+set}" = set; then
5559   withval=$with_clang_resource_dir;
5560 else
5561   withval=""
5562 fi
5563
5564
5565 cat >>confdefs.h <<_ACEOF
5566 #define CLANG_RESOURCE_DIR "$withval"
5567 _ACEOF
5568
5569
5570
5571 # Check whether --with-c-include-dirs was given.
5572 if test "${with_c_include_dirs+set}" = set; then
5573   withval=$with_c_include_dirs;
5574 else
5575   withval=""
5576 fi
5577
5578
5579 cat >>confdefs.h <<_ACEOF
5580 #define C_INCLUDE_DIRS "$withval"
5581 _ACEOF
5582
5583
5584 # Clang normally uses the system c++ headers and libraries. With this option,
5585 # clang will use the ones provided by a gcc installation instead. This option should
5586 # be passed the same value that was used with --prefix when configuring gcc.
5587
5588 # Check whether --with-gcc-toolchain was given.
5589 if test "${with_gcc_toolchain+set}" = set; then
5590   withval=$with_gcc_toolchain;
5591 else
5592   withval=""
5593 fi
5594
5595
5596 cat >>confdefs.h <<_ACEOF
5597 #define GCC_INSTALL_PREFIX "$withval"
5598 _ACEOF
5599
5600
5601
5602 # Check whether --with-binutils-include was given.
5603 if test "${with_binutils_include+set}" = set; then
5604   withval=$with_binutils_include;
5605 else
5606   withval=default
5607 fi
5608
5609 case "$withval" in
5610   default) WITH_BINUTILS_INCDIR=default ;;
5611   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5612   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5613 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5614    { (exit 1); exit 1; }; } ;;
5615 esac
5616 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5617   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5618
5619   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5620      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5621      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5622 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5623    { (exit 1); exit 1; }; };
5624   fi
5625 fi
5626
5627
5628 # Check whether --with-bug-report-url was given.
5629 if test "${with_bug_report_url+set}" = set; then
5630   withval=$with_bug_report_url;
5631 else
5632   withval="http://llvm.org/bugs/"
5633 fi
5634
5635
5636 cat >>confdefs.h <<_ACEOF
5637 #define BUG_REPORT_URL "$withval"
5638 _ACEOF
5639
5640
5641 # Check whether --enable-libffi was given.
5642 if test "${enable_libffi+set}" = set; then
5643   enableval=$enable_libffi; case "$enableval" in
5644     yes) llvm_cv_enable_libffi="yes" ;;
5645     no)  llvm_cv_enable_libffi="no"  ;;
5646     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5647 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5648    { (exit 1); exit 1; }; } ;;
5649   esac
5650 else
5651   llvm_cv_enable_libffi=no
5652 fi
5653
5654
5655
5656 # Check whether --with-internal-prefix was given.
5657 if test "${with_internal_prefix+set}" = set; then
5658   withval=$with_internal_prefix;
5659 else
5660   withval=""
5661 fi
5662
5663 INTERNAL_PREFIX=$withval
5664
5665
5666
5667 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5668 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5669 if test "${lt_cv_path_NM+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   if test -n "$NM"; then
5673   # Let the user override the test.
5674   lt_cv_path_NM="$NM"
5675 else
5676   lt_nm_to_check="${ac_tool_prefix}nm"
5677   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5678     lt_nm_to_check="$lt_nm_to_check nm"
5679   fi
5680   for lt_tmp_nm in $lt_nm_to_check; do
5681     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5682     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5683       IFS="$lt_save_ifs"
5684       test -z "$ac_dir" && ac_dir=.
5685       tmp_nm="$ac_dir/$lt_tmp_nm"
5686       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5687         # Check to see if the nm accepts a BSD-compat flag.
5688         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5689         #   nm: unknown option "B" ignored
5690         # Tru64's nm complains that /dev/null is an invalid object file
5691         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5692         */dev/null* | *'Invalid file or object type'*)
5693           lt_cv_path_NM="$tmp_nm -B"
5694           break
5695           ;;
5696         *)
5697           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5698           */dev/null*)
5699             lt_cv_path_NM="$tmp_nm -p"
5700             break
5701             ;;
5702           *)
5703             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5704             continue # so that we can try to find one that supports BSD flags
5705             ;;
5706           esac
5707           ;;
5708         esac
5709       fi
5710     done
5711     IFS="$lt_save_ifs"
5712   done
5713   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5714 fi
5715 fi
5716 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5717 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5718 NM="$lt_cv_path_NM"
5719
5720
5721
5722 { echo "$as_me:$LINENO: checking for GNU make" >&5
5723 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5724 if test "${llvm_cv_gnu_make_command+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   llvm_cv_gnu_make_command=''
5728  for a in "$MAKE" make gmake gnumake ; do
5729   if test -z "$a" ; then continue ; fi ;
5730   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5731   then
5732    llvm_cv_gnu_make_command=$a ;
5733    break;
5734   fi
5735  done
5736 fi
5737 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5738 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5739  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5740    ifGNUmake='' ;
5741  else
5742    ifGNUmake='#' ;
5743    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5744 echo "${ECHO_T}\"Not found\"" >&6; };
5745  fi
5746
5747
5748 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5749 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5750 LN_S=$as_ln_s
5751 if test "$LN_S" = "ln -s"; then
5752   { echo "$as_me:$LINENO: result: yes" >&5
5753 echo "${ECHO_T}yes" >&6; }
5754 else
5755   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5756 echo "${ECHO_T}no, using $LN_S" >&6; }
5757 fi
5758
5759 # Extract the first word of "cmp", so it can be a program name with args.
5760 set dummy cmp; ac_word=$2
5761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5763 if test "${ac_cv_path_CMP+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   case $CMP in
5767   [\\/]* | ?:[\\/]*)
5768   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5769   ;;
5770   *)
5771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776   for ac_exec_ext in '' $ac_executable_extensions; do
5777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5778     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5787   ;;
5788 esac
5789 fi
5790 CMP=$ac_cv_path_CMP
5791 if test -n "$CMP"; then
5792   { echo "$as_me:$LINENO: result: $CMP" >&5
5793 echo "${ECHO_T}$CMP" >&6; }
5794 else
5795   { echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6; }
5797 fi
5798
5799
5800 # Extract the first word of "cp", so it can be a program name with args.
5801 set dummy cp; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_CP+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   case $CP in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5828   ;;
5829 esac
5830 fi
5831 CP=$ac_cv_path_CP
5832 if test -n "$CP"; then
5833   { echo "$as_me:$LINENO: result: $CP" >&5
5834 echo "${ECHO_T}$CP" >&6; }
5835 else
5836   { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 fi
5839
5840
5841 # Extract the first word of "date", so it can be a program name with args.
5842 set dummy date; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_DATE+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   case $DATE in
5849   [\\/]* | ?:[\\/]*)
5850   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5851   ;;
5852   *)
5853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5869   ;;
5870 esac
5871 fi
5872 DATE=$ac_cv_path_DATE
5873 if test -n "$DATE"; then
5874   { echo "$as_me:$LINENO: result: $DATE" >&5
5875 echo "${ECHO_T}$DATE" >&6; }
5876 else
5877   { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5879 fi
5880
5881
5882 # Extract the first word of "find", so it can be a program name with args.
5883 set dummy find; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_FIND+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   case $FIND in
5890   [\\/]* | ?:[\\/]*)
5891   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5892   ;;
5893   *)
5894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907 IFS=$as_save_IFS
5908
5909   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5910   ;;
5911 esac
5912 fi
5913 FIND=$ac_cv_path_FIND
5914 if test -n "$FIND"; then
5915   { echo "$as_me:$LINENO: result: $FIND" >&5
5916 echo "${ECHO_T}$FIND" >&6; }
5917 else
5918   { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5920 fi
5921
5922
5923 # Extract the first word of "grep", so it can be a program name with args.
5924 set dummy grep; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_GREP+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   case $GREP in
5931   [\\/]* | ?:[\\/]*)
5932   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5933   ;;
5934   *)
5935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5951   ;;
5952 esac
5953 fi
5954 GREP=$ac_cv_path_GREP
5955 if test -n "$GREP"; then
5956   { echo "$as_me:$LINENO: result: $GREP" >&5
5957 echo "${ECHO_T}$GREP" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5961 fi
5962
5963
5964 # Extract the first word of "mkdir", so it can be a program name with args.
5965 set dummy mkdir; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_MKDIR+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   case $MKDIR in
5972   [\\/]* | ?:[\\/]*)
5973   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5974   ;;
5975   *)
5976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5992   ;;
5993 esac
5994 fi
5995 MKDIR=$ac_cv_path_MKDIR
5996 if test -n "$MKDIR"; then
5997   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5998 echo "${ECHO_T}$MKDIR" >&6; }
5999 else
6000   { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004
6005 # Extract the first word of "mv", so it can be a program name with args.
6006 set dummy mv; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_MV+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   case $MV in
6013   [\\/]* | ?:[\\/]*)
6014   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6015   ;;
6016   *)
6017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6033   ;;
6034 esac
6035 fi
6036 MV=$ac_cv_path_MV
6037 if test -n "$MV"; then
6038   { echo "$as_me:$LINENO: result: $MV" >&5
6039 echo "${ECHO_T}$MV" >&6; }
6040 else
6041   { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6043 fi
6044
6045
6046 if test -n "$ac_tool_prefix"; then
6047   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_RANLIB+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$RANLIB"; then
6055   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 RANLIB=$ac_cv_prog_RANLIB
6075 if test -n "$RANLIB"; then
6076   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6077 echo "${ECHO_T}$RANLIB" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_RANLIB"; then
6086   ac_ct_RANLIB=$RANLIB
6087   # Extract the first word of "ranlib", so it can be a program name with args.
6088 set dummy ranlib; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$ac_ct_RANLIB"; then
6095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_ac_ct_RANLIB="ranlib"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115 if test -n "$ac_ct_RANLIB"; then
6116   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6117 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123   if test "x$ac_ct_RANLIB" = x; then
6124     RANLIB=":"
6125   else
6126     case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet.  If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&5
6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132 whose name does not start with the host triplet.  If you think this
6133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136     RANLIB=$ac_ct_RANLIB
6137   fi
6138 else
6139   RANLIB="$ac_cv_prog_RANLIB"
6140 fi
6141
6142 if test -n "$ac_tool_prefix"; then
6143   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_AR+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   if test -n "$AR"; then
6151   ac_cv_prog_AR="$AR" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158   for ac_exec_ext in '' $ac_executable_extensions; do
6159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160     ac_cv_prog_AR="${ac_tool_prefix}ar"
6161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 AR=$ac_cv_prog_AR
6171 if test -n "$AR"; then
6172   { echo "$as_me:$LINENO: result: $AR" >&5
6173 echo "${ECHO_T}$AR" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6177 fi
6178
6179
6180 fi
6181 if test -z "$ac_cv_prog_AR"; then
6182   ac_ct_AR=$AR
6183   # Extract the first word of "ar", so it can be a program name with args.
6184 set dummy ar; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   if test -n "$ac_ct_AR"; then
6191   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198   for ac_exec_ext in '' $ac_executable_extensions; do
6199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200     ac_cv_prog_ac_ct_AR="ar"
6201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6211 if test -n "$ac_ct_AR"; then
6212   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6213 echo "${ECHO_T}$ac_ct_AR" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219   if test "x$ac_ct_AR" = x; then
6220     AR="false"
6221   else
6222     case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet.  If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&5
6227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet.  If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232     AR=$ac_ct_AR
6233   fi
6234 else
6235   AR="$ac_cv_prog_AR"
6236 fi
6237
6238 # Extract the first word of "rm", so it can be a program name with args.
6239 set dummy rm; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_path_RM+set}" = set; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   case $RM in
6246   [\\/]* | ?:[\\/]*)
6247   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6248   ;;
6249   *)
6250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6266   ;;
6267 esac
6268 fi
6269 RM=$ac_cv_path_RM
6270 if test -n "$RM"; then
6271   { echo "$as_me:$LINENO: result: $RM" >&5
6272 echo "${ECHO_T}$RM" >&6; }
6273 else
6274   { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6276 fi
6277
6278
6279 # Extract the first word of "sed", so it can be a program name with args.
6280 set dummy sed; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_path_SED+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   case $SED in
6287   [\\/]* | ?:[\\/]*)
6288   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6289   ;;
6290   *)
6291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296   for ac_exec_ext in '' $ac_executable_extensions; do
6297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6298     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6307   ;;
6308 esac
6309 fi
6310 SED=$ac_cv_path_SED
6311 if test -n "$SED"; then
6312   { echo "$as_me:$LINENO: result: $SED" >&5
6313 echo "${ECHO_T}$SED" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6317 fi
6318
6319
6320 # Extract the first word of "tar", so it can be a program name with args.
6321 set dummy tar; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_TAR+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   case $TAR in
6328   [\\/]* | ?:[\\/]*)
6329   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6330   ;;
6331   *)
6332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6348   ;;
6349 esac
6350 fi
6351 TAR=$ac_cv_path_TAR
6352 if test -n "$TAR"; then
6353   { echo "$as_me:$LINENO: result: $TAR" >&5
6354 echo "${ECHO_T}$TAR" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6358 fi
6359
6360
6361 # Extract the first word of "pwd", so it can be a program name with args.
6362 set dummy pwd; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_BINPWD+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   case $BINPWD in
6369   [\\/]* | ?:[\\/]*)
6370   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6371   ;;
6372   *)
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6389   ;;
6390 esac
6391 fi
6392 BINPWD=$ac_cv_path_BINPWD
6393 if test -n "$BINPWD"; then
6394   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6395 echo "${ECHO_T}$BINPWD" >&6; }
6396 else
6397   { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6399 fi
6400
6401
6402
6403 # Extract the first word of "Graphviz", so it can be a program name with args.
6404 set dummy Graphviz; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   case $GRAPHVIZ in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420   for ac_exec_ext in '' $ac_executable_extensions; do
6421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6431   ;;
6432 esac
6433 fi
6434 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6435 if test -n "$GRAPHVIZ"; then
6436   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6437 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6438 else
6439   { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6441 fi
6442
6443
6444 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_GRAPHVIZ 1
6448 _ACEOF
6449
6450     if test "$llvm_cv_os_type" = "MingW" ; then
6451     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6452   fi
6453
6454 cat >>confdefs.h <<_ACEOF
6455 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6456 _ACEOF
6457
6458 fi
6459 # Extract the first word of "dot", so it can be a program name with args.
6460 set dummy dot; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_path_DOT+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   case $DOT in
6467   [\\/]* | ?:[\\/]*)
6468   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6469   ;;
6470   *)
6471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476   for ac_exec_ext in '' $ac_executable_extensions; do
6477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6478     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6487   ;;
6488 esac
6489 fi
6490 DOT=$ac_cv_path_DOT
6491 if test -n "$DOT"; then
6492   { echo "$as_me:$LINENO: result: $DOT" >&5
6493 echo "${ECHO_T}$DOT" >&6; }
6494 else
6495   { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497 fi
6498
6499
6500 if test "$DOT" != "echo dot" ; then
6501
6502 cat >>confdefs.h <<\_ACEOF
6503 #define HAVE_DOT 1
6504 _ACEOF
6505
6506     if test "$llvm_cv_os_type" = "MingW" ; then
6507     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508   fi
6509
6510 cat >>confdefs.h <<_ACEOF
6511 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6512 _ACEOF
6513
6514 fi
6515 # Extract the first word of "fdp", so it can be a program name with args.
6516 set dummy fdp; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_path_FDP+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   case $FDP in
6523   [\\/]* | ?:[\\/]*)
6524   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6525   ;;
6526   *)
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6543   ;;
6544 esac
6545 fi
6546 FDP=$ac_cv_path_FDP
6547 if test -n "$FDP"; then
6548   { echo "$as_me:$LINENO: result: $FDP" >&5
6549 echo "${ECHO_T}$FDP" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555
6556 if test "$FDP" != "echo fdp" ; then
6557
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_FDP 1
6560 _ACEOF
6561
6562     if test "$llvm_cv_os_type" = "MingW" ; then
6563     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6564   fi
6565
6566 cat >>confdefs.h <<_ACEOF
6567 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6568 _ACEOF
6569
6570 fi
6571 # Extract the first word of "neato", so it can be a program name with args.
6572 set dummy neato; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_NEATO+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   case $NEATO in
6579   [\\/]* | ?:[\\/]*)
6580   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6581   ;;
6582   *)
6583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6599   ;;
6600 esac
6601 fi
6602 NEATO=$ac_cv_path_NEATO
6603 if test -n "$NEATO"; then
6604   { echo "$as_me:$LINENO: result: $NEATO" >&5
6605 echo "${ECHO_T}$NEATO" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611
6612 if test "$NEATO" != "echo neato" ; then
6613
6614 cat >>confdefs.h <<\_ACEOF
6615 #define HAVE_NEATO 1
6616 _ACEOF
6617
6618     if test "$llvm_cv_os_type" = "MingW" ; then
6619     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6620   fi
6621
6622 cat >>confdefs.h <<_ACEOF
6623 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6624 _ACEOF
6625
6626 fi
6627 # Extract the first word of "twopi", so it can be a program name with args.
6628 set dummy twopi; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_TWOPI+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   case $TWOPI in
6635   [\\/]* | ?:[\\/]*)
6636   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6637   ;;
6638   *)
6639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644   for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6655   ;;
6656 esac
6657 fi
6658 TWOPI=$ac_cv_path_TWOPI
6659 if test -n "$TWOPI"; then
6660   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6661 echo "${ECHO_T}$TWOPI" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 if test "$TWOPI" != "echo twopi" ; then
6669
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_TWOPI 1
6672 _ACEOF
6673
6674     if test "$llvm_cv_os_type" = "MingW" ; then
6675     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6676   fi
6677
6678 cat >>confdefs.h <<_ACEOF
6679 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6680 _ACEOF
6681
6682 fi
6683 # Extract the first word of "circo", so it can be a program name with args.
6684 set dummy circo; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_CIRCO+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   case $CIRCO in
6691   [\\/]* | ?:[\\/]*)
6692   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6693   ;;
6694   *)
6695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700   for ac_exec_ext in '' $ac_executable_extensions; do
6701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6711   ;;
6712 esac
6713 fi
6714 CIRCO=$ac_cv_path_CIRCO
6715 if test -n "$CIRCO"; then
6716   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6717 echo "${ECHO_T}$CIRCO" >&6; }
6718 else
6719   { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6721 fi
6722
6723
6724 if test "$CIRCO" != "echo circo" ; then
6725
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_CIRCO 1
6728 _ACEOF
6729
6730     if test "$llvm_cv_os_type" = "MingW" ; then
6731     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6732   fi
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6736 _ACEOF
6737
6738 fi
6739 for ac_prog in gv gsview32
6740 do
6741   # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_GV+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $GV in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   ;;
6769 esac
6770 fi
6771 GV=$ac_cv_path_GV
6772 if test -n "$GV"; then
6773   { echo "$as_me:$LINENO: result: $GV" >&5
6774 echo "${ECHO_T}$GV" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781   test -n "$GV" && break
6782 done
6783 test -n "$GV" || GV="echo gv"
6784
6785 if test "$GV" != "echo gv" ; then
6786
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_GV 1
6789 _ACEOF
6790
6791     if test "$llvm_cv_os_type" = "MingW" ; then
6792     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6793   fi
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define LLVM_PATH_GV "$GV${EXEEXT}"
6797 _ACEOF
6798
6799 fi
6800 # Extract the first word of "dotty", so it can be a program name with args.
6801 set dummy dotty; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_path_DOTTY+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   case $DOTTY in
6808   [\\/]* | ?:[\\/]*)
6809   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6810   ;;
6811   *)
6812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817   for ac_exec_ext in '' $ac_executable_extensions; do
6818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6819     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6828   ;;
6829 esac
6830 fi
6831 DOTTY=$ac_cv_path_DOTTY
6832 if test -n "$DOTTY"; then
6833   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6834 echo "${ECHO_T}$DOTTY" >&6; }
6835 else
6836   { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6838 fi
6839
6840
6841 if test "$DOTTY" != "echo dotty" ; then
6842
6843 cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_DOTTY 1
6845 _ACEOF
6846
6847     if test "$llvm_cv_os_type" = "MingW" ; then
6848     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6849   fi
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6853 _ACEOF
6854
6855 fi
6856 # Extract the first word of "xdot.py", so it can be a program name with args.
6857 set dummy xdot.py; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   case $XDOT_PY in
6864   [\\/]* | ?:[\\/]*)
6865   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6866   ;;
6867   *)
6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873   for ac_exec_ext in '' $ac_executable_extensions; do
6874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6884   ;;
6885 esac
6886 fi
6887 XDOT_PY=$ac_cv_path_XDOT_PY
6888 if test -n "$XDOT_PY"; then
6889   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6890 echo "${ECHO_T}$XDOT_PY" >&6; }
6891 else
6892   { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6894 fi
6895
6896
6897 if test "$XDOT_PY" != "echo xdot.py" ; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_XDOT_PY 1
6901 _ACEOF
6902
6903     if test "$llvm_cv_os_type" = "MingW" ; then
6904     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6905   fi
6906
6907 cat >>confdefs.h <<_ACEOF
6908 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6909 _ACEOF
6910
6911 fi
6912
6913 # Find a good install program.  We prefer a C program (faster),
6914 # so one script is as good as another.  But avoid the broken or
6915 # incompatible versions:
6916 # SysV /etc/install, /usr/sbin/install
6917 # SunOS /usr/etc/install
6918 # IRIX /sbin/install
6919 # AIX /bin/install
6920 # AmigaOS /C/install, which installs bootblocks on floppy discs
6921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6924 # OS/2's system install, which has a completely different semantic
6925 # ./install, which can be erroneously created by make from ./install.sh.
6926 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6927 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6928 if test -z "$INSTALL"; then
6929 if test "${ac_cv_path_install+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   # Account for people who put trailing slashes in PATH elements.
6938 case $as_dir/ in
6939   ./ | .// | /cC/* | \
6940   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6941   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6942   /usr/ucb/* ) ;;
6943   *)
6944     # OSF1 and SCO ODT 3.0 have their own names for install.
6945     # Don't use installbsd from OSF since it installs stuff as root
6946     # by default.
6947     for ac_prog in ginstall scoinst install; do
6948       for ac_exec_ext in '' $ac_executable_extensions; do
6949         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6950           if test $ac_prog = install &&
6951             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6952             # AIX install.  It has an incompatible calling convention.
6953             :
6954           elif test $ac_prog = install &&
6955             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956             # program-specific install script used by HP pwplus--don't use.
6957             :
6958           else
6959             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6960             break 3
6961           fi
6962         fi
6963       done
6964     done
6965     ;;
6966 esac
6967 done
6968 IFS=$as_save_IFS
6969
6970
6971 fi
6972   if test "${ac_cv_path_install+set}" = set; then
6973     INSTALL=$ac_cv_path_install
6974   else
6975     # As a last resort, use the slow shell script.  Don't cache a
6976     # value for INSTALL within a source directory, because that will
6977     # break other packages using the cache if that directory is
6978     # removed, or if the value is a relative name.
6979     INSTALL=$ac_install_sh
6980   fi
6981 fi
6982 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6983 echo "${ECHO_T}$INSTALL" >&6; }
6984
6985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6986 # It thinks the first close brace ends the variable substitution.
6987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6988
6989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6990
6991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6992
6993 case "$INSTALL" in
6994  [\\/$]* | ?:[\\/]* ) ;;
6995  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6996 esac
6997
6998 # Extract the first word of "bzip2", so it can be a program name with args.
6999 set dummy bzip2; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_BZIP2+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   case $BZIP2 in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025   ;;
7026 esac
7027 fi
7028 BZIP2=$ac_cv_path_BZIP2
7029 if test -n "$BZIP2"; then
7030   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7031 echo "${ECHO_T}$BZIP2" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 # Extract the first word of "cat", so it can be a program name with args.
7039 set dummy cat; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_CAT+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $CAT in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   ;;
7066 esac
7067 fi
7068 CAT=$ac_cv_path_CAT
7069 if test -n "$CAT"; then
7070   { echo "$as_me:$LINENO: result: $CAT" >&5
7071 echo "${ECHO_T}$CAT" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 # Extract the first word of "doxygen", so it can be a program name with args.
7079 set dummy doxygen; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $DOXYGEN in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 DOXYGEN=$ac_cv_path_DOXYGEN
7109 if test -n "$DOXYGEN"; then
7110   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7111 echo "${ECHO_T}$DOXYGEN" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118 # Extract the first word of "groff", so it can be a program name with args.
7119 set dummy groff; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GROFF+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   case $GROFF in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 GROFF=$ac_cv_path_GROFF
7149 if test -n "$GROFF"; then
7150   { echo "$as_me:$LINENO: result: $GROFF" >&5
7151 echo "${ECHO_T}$GROFF" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158 # Extract the first word of "gzip", so it can be a program name with args.
7159 set dummy gzip; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $GZIPBIN in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   ;;
7186 esac
7187 fi
7188 GZIPBIN=$ac_cv_path_GZIPBIN
7189 if test -n "$GZIPBIN"; then
7190   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7191 echo "${ECHO_T}$GZIPBIN" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 # Extract the first word of "pod2html", so it can be a program name with args.
7199 set dummy pod2html; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2HTML+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   case $POD2HTML in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225   ;;
7226 esac
7227 fi
7228 POD2HTML=$ac_cv_path_POD2HTML
7229 if test -n "$POD2HTML"; then
7230   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7231 echo "${ECHO_T}$POD2HTML" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "pod2man", so it can be a program name with args.
7239 set dummy pod2man; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_POD2MAN+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $POD2MAN in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   ;;
7266 esac
7267 fi
7268 POD2MAN=$ac_cv_path_POD2MAN
7269 if test -n "$POD2MAN"; then
7270   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7271 echo "${ECHO_T}$POD2MAN" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 # Extract the first word of "pdfroff", so it can be a program name with args.
7279 set dummy pdfroff; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PDFROFF+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $PDFROFF in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 PDFROFF=$ac_cv_path_PDFROFF
7309 if test -n "$PDFROFF"; then
7310   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311 echo "${ECHO_T}$PDFROFF" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318 # Extract the first word of "runtest", so it can be a program name with args.
7319 set dummy runtest; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_RUNTEST+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $RUNTEST in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   ;;
7346 esac
7347 fi
7348 RUNTEST=$ac_cv_path_RUNTEST
7349 if test -n "$RUNTEST"; then
7350   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7351 echo "${ECHO_T}$RUNTEST" >&6; }
7352 else
7353   { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7355 fi
7356
7357
7358
7359 no_itcl=true
7360 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7361 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7362
7363 # Check whether --with-tclinclude was given.
7364 if test "${with_tclinclude+set}" = set; then
7365   withval=$with_tclinclude; with_tclinclude=${withval}
7366 else
7367   with_tclinclude=''
7368 fi
7369
7370 if test "${ac_cv_path_tclsh+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373
7374 if test x"${with_tclinclude}" != x ; then
7375   if test -f ${with_tclinclude}/tclsh ; then
7376     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7377   elif test -f ${with_tclinclude}/src/tclsh ; then
7378     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7379   else
7380     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7381 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7382    { (exit 1); exit 1; }; }
7383   fi
7384 fi
7385 fi
7386
7387
7388 if test x"${ac_cv_path_tclsh}" = x ; then
7389   { echo "$as_me:$LINENO: result: none" >&5
7390 echo "${ECHO_T}none" >&6; }
7391   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
7392 do
7393   # Extract the first word of "$ac_prog", so it can be a program name with args.
7394 set dummy $ac_prog; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_TCLSH+set}" = set; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   case $TCLSH in
7401   [\\/]* | ?:[\\/]*)
7402   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7403   ;;
7404   *)
7405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410   for ac_exec_ext in '' $ac_executable_extensions; do
7411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420   ;;
7421 esac
7422 fi
7423 TCLSH=$ac_cv_path_TCLSH
7424 if test -n "$TCLSH"; then
7425   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7426 echo "${ECHO_T}$TCLSH" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432
7433   test -n "$TCLSH" && break
7434 done
7435
7436   if test x"${TCLSH}" = x ; then
7437     ac_cv_path_tclsh='';
7438   else
7439     ac_cv_path_tclsh="${TCLSH}";
7440   fi
7441 else
7442   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7443 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7444   TCLSH="${ac_cv_path_tclsh}"
7445
7446 fi
7447
7448 # Extract the first word of "zip", so it can be a program name with args.
7449 set dummy zip; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_ZIP+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   case $ZIP in
7456   [\\/]* | ?:[\\/]*)
7457   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7458   ;;
7459   *)
7460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475   ;;
7476 esac
7477 fi
7478 ZIP=$ac_cv_path_ZIP
7479 if test -n "$ZIP"; then
7480   { echo "$as_me:$LINENO: result: $ZIP" >&5
7481 echo "${ECHO_T}$ZIP" >&6; }
7482 else
7483   { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7485 fi
7486
7487
7488 for ac_prog in ocamlc
7489 do
7490   # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_OCAMLC+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $OCAMLC in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   ;;
7518 esac
7519 fi
7520 OCAMLC=$ac_cv_path_OCAMLC
7521 if test -n "$OCAMLC"; then
7522   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7523 echo "${ECHO_T}$OCAMLC" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530   test -n "$OCAMLC" && break
7531 done
7532
7533 for ac_prog in ocamlopt
7534 do
7535   # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $OCAMLOPT in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562   ;;
7563 esac
7564 fi
7565 OCAMLOPT=$ac_cv_path_OCAMLOPT
7566 if test -n "$OCAMLOPT"; then
7567   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7568 echo "${ECHO_T}$OCAMLOPT" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574
7575   test -n "$OCAMLOPT" && break
7576 done
7577
7578 for ac_prog in ocamldep
7579 do
7580   # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   case $OCAMLDEP in
7588   [\\/]* | ?:[\\/]*)
7589   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7590   ;;
7591   *)
7592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597   for ac_exec_ext in '' $ac_executable_extensions; do
7598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607   ;;
7608 esac
7609 fi
7610 OCAMLDEP=$ac_cv_path_OCAMLDEP
7611 if test -n "$OCAMLDEP"; then
7612   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7613 echo "${ECHO_T}$OCAMLDEP" >&6; }
7614 else
7615   { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7617 fi
7618
7619
7620   test -n "$OCAMLDEP" && break
7621 done
7622
7623 for ac_prog in ocamldoc
7624 do
7625   # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $OCAMLDOC in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652   ;;
7653 esac
7654 fi
7655 OCAMLDOC=$ac_cv_path_OCAMLDOC
7656 if test -n "$OCAMLDOC"; then
7657   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7658 echo "${ECHO_T}$OCAMLDOC" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664
7665   test -n "$OCAMLDOC" && break
7666 done
7667
7668 for ac_prog in gas as
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GAS+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $GAS in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 GAS=$ac_cv_path_GAS
7701 if test -n "$GAS"; then
7702   { echo "$as_me:$LINENO: result: $GAS" >&5
7703 echo "${ECHO_T}$GAS" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710   test -n "$GAS" && break
7711 done
7712
7713
7714 { echo "$as_me:$LINENO: checking for linker version" >&5
7715 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7716 if test "${llvm_cv_link_version+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719
7720    version_string="$(ld -v 2>&1 | head -1)"
7721
7722    # Check for ld64.
7723    if (echo "$version_string" | grep -q "ld64"); then
7724      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7725    else
7726      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7727    fi
7728
7729 fi
7730 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7731 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7735 _ACEOF
7736
7737
7738
7739 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7740 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7741 if test "${llvm_cv_link_use_r+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744    ac_ext=c
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750   oldcflags="$CFLAGS"
7751   CFLAGS="$CFLAGS -Wl,-R."
7752   cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758
7759 int
7760 main ()
7761 {
7762
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7769 case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_link") 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782   { (case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_try") 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; } &&
7791          { ac_try='test -s conftest$ac_exeext'
7792   { (case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797   (eval "$ac_try") 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }; }; then
7801   llvm_cv_link_use_r=yes
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806         llvm_cv_link_use_r=no
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext \
7810       conftest$ac_exeext conftest.$ac_ext
7811   CFLAGS="$oldcflags"
7812   ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819 fi
7820 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7821 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7822 if test "$llvm_cv_link_use_r" = yes ; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_LINK_R 1
7826 _ACEOF
7827
7828   fi
7829
7830
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836    ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842   oldcflags="$CFLAGS"
7843   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7844   cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850
7851 int
7852 main ()
7853 {
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863   *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866   (eval "$ac_link") 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874   { (case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_try") 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; } &&
7883          { ac_try='test -s conftest$ac_exeext'
7884   { (case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_try") 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   llvm_cv_link_use_export_dynamic=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898         llvm_cv_link_use_export_dynamic=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext \
7902       conftest$ac_exeext conftest.$ac_ext
7903   CFLAGS="$oldcflags"
7904   ac_ext=c
7905 ac_cpp='$CPP $CPPFLAGS'
7906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909
7910
7911 fi
7912 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7913 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7914 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7915
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_LINK_EXPORT_DYNAMIC 1
7918 _ACEOF
7919
7920   fi
7921
7922
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_version_script+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928    ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934   oldcflags="$CFLAGS"
7935
7936   # The following code is from the autoconf manual,
7937   # "11.13: Limitations of Usual Tools".
7938   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7939   # Use mktemp if possible; otherwise fall back on mkdir,
7940   # with $RANDOM to make collisions less likely.
7941   : ${TMPDIR=/tmp}
7942   {
7943     tmp=`
7944       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7945     ` &&
7946     test -n "$tmp" && test -d "$tmp"
7947   } || {
7948     tmp=$TMPDIR/foo$$-$RANDOM
7949     (umask 077 && mkdir "$tmp")
7950   } || exit $?
7951
7952   echo "{" > "$tmp/export.map"
7953   echo "  global: main;" >> "$tmp/export.map"
7954   echo "  local: *;" >> "$tmp/export.map"
7955   echo "};" >> "$tmp/export.map"
7956
7957   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 int
7966 main ()
7967 {
7968
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_link") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988   { (case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_try") 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest$ac_exeext'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; }; then
8007   llvm_cv_link_use_version_script=yes
8008 else
8009   echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012         llvm_cv_link_use_version_script=no
8013 fi
8014
8015 rm -f core conftest.err conftest.$ac_objext \
8016       conftest$ac_exeext conftest.$ac_ext
8017   rm "$tmp/export.map"
8018   rmdir "$tmp"
8019   CFLAGS="$oldcflags"
8020   ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027 fi
8028 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8029 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8030 if test "$llvm_cv_link_use_version_script" = yes ; then
8031   HAVE_LINK_VERSION_SCRIPT=1
8032
8033   fi
8034
8035
8036
8037
8038 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8039 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8040 if test "${ac_cv_c_const+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049
8050 int
8051 main ()
8052 {
8053 /* FIXME: Include the comments suggested by Paul. */
8054 #ifndef __cplusplus
8055   /* Ultrix mips cc rejects this.  */
8056   typedef int charset[2];
8057   const charset x;
8058   /* SunOS 4.1.1 cc rejects this.  */
8059   char const *const *ccp;
8060   char **p;
8061   /* NEC SVR4.0.2 mips cc rejects this.  */
8062   struct point {int x, y;};
8063   static struct point const zero = {0,0};
8064   /* AIX XL C 1.02.0.0 rejects this.
8065      It does not let you subtract one const X* pointer from another in
8066      an arm of an if-expression whose if-part is not a constant
8067      expression */
8068   const char *g = "string";
8069   ccp = &g + (g ? g-g : 0);
8070   /* HPUX 7.0 cc rejects these. */
8071   ++ccp;
8072   p = (char**) ccp;
8073   ccp = (char const *const *) p;
8074   { /* SCO 3.2v4 cc rejects this.  */
8075     char *t;
8076     char const *s = 0 ? (char *) 0 : (char const *) 0;
8077
8078     *t++ = 0;
8079     if (s) return 0;
8080   }
8081   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8082     int x[] = {25, 17};
8083     const int *foo = &x[0];
8084     ++foo;
8085   }
8086   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8087     typedef const int *iptr;
8088     iptr p = 0;
8089     ++p;
8090   }
8091   { /* AIX XL C 1.02.0.0 rejects this saying
8092        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8093     struct s { int j; const int *ap[3]; };
8094     struct s *b; b->j = 5;
8095   }
8096   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8097     const int foo = 10;
8098     if (!foo) return 0;
8099   }
8100   return !x[0] && !zero.x;
8101 #endif
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_compile") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   ac_cv_c_const=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146         ac_cv_c_const=no
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8152 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8153 if test $ac_cv_c_const = no; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define const
8157 _ACEOF
8158
8159 fi
8160
8161
8162
8163
8164
8165
8166 ac_header_dirent=no
8167 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8168   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8169 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8170 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h.  */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h.  */
8180 #include <sys/types.h>
8181 #include <$ac_hdr>
8182
8183 int
8184 main ()
8185 {
8186 if ((DIR *) 0)
8187 return 0;
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207   { (case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_try") 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; } &&
8216          { ac_try='test -s conftest.$ac_objext'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   eval "$as_ac_Header=yes"
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231         eval "$as_ac_Header=no"
8232 fi
8233
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 ac_res=`eval echo '${'$as_ac_Header'}'`
8237                { echo "$as_me:$LINENO: result: $ac_res" >&5
8238 echo "${ECHO_T}$ac_res" >&6; }
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240   cat >>confdefs.h <<_ACEOF
8241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 ac_header_dirent=$ac_hdr; break
8245 fi
8246
8247 done
8248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8249 if test $ac_header_dirent = dirent.h; then
8250   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8252 if test "${ac_cv_search_opendir+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   ac_func_search_save_LIBS=$LIBS
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262
8263 /* Override any GCC internal prototype to avoid an error.
8264    Use char because int might match the return type of a GCC
8265    builtin and then its argument prototype would still apply.  */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 char opendir ();
8270 int
8271 main ()
8272 {
8273 return opendir ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 for ac_lib in '' dir; do
8279   if test -z "$ac_lib"; then
8280     ac_res="none required"
8281   else
8282     ac_res=-l$ac_lib
8283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8284   fi
8285   rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8287 case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_link") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_search_opendir=$ac_res
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext \
8328       conftest$ac_exeext
8329   if test "${ac_cv_search_opendir+set}" = set; then
8330   break
8331 fi
8332 done
8333 if test "${ac_cv_search_opendir+set}" = set; then
8334   :
8335 else
8336   ac_cv_search_opendir=no
8337 fi
8338 rm conftest.$ac_ext
8339 LIBS=$ac_func_search_save_LIBS
8340 fi
8341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8343 ac_res=$ac_cv_search_opendir
8344 if test "$ac_res" != no; then
8345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8346
8347 fi
8348
8349 else
8350   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352 if test "${ac_cv_search_opendir+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any GCC internal prototype to avoid an error.
8364    Use char because int might match the return type of a GCC
8365    builtin and then its argument prototype would still apply.  */
8366 #ifdef __cplusplus
8367 extern "C"
8368 #endif
8369 char opendir ();
8370 int
8371 main ()
8372 {
8373 return opendir ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 for ac_lib in '' x; do
8379   if test -z "$ac_lib"; then
8380     ac_res="none required"
8381   else
8382     ac_res=-l$ac_lib
8383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8384   fi
8385   rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_link") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_search_opendir=$ac_res
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext \
8428       conftest$ac_exeext
8429   if test "${ac_cv_search_opendir+set}" = set; then
8430   break
8431 fi
8432 done
8433 if test "${ac_cv_search_opendir+set}" = set; then
8434   :
8435 else
8436   ac_cv_search_opendir=no
8437 fi
8438 rm conftest.$ac_ext
8439 LIBS=$ac_func_search_save_LIBS
8440 fi
8441 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8443 ac_res=$ac_cv_search_opendir
8444 if test "$ac_res" != no; then
8445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446
8447 fi
8448
8449 fi
8450
8451
8452 for ac_header in dlfcn.h
8453 do
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8456   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 fi
8461 ac_res=`eval echo '${'$as_ac_Header'}'`
8462                { echo "$as_me:$LINENO: result: $ac_res" >&5
8463 echo "${ECHO_T}$ac_res" >&6; }
8464 else
8465   # Is the header compilable?
8466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474 $ac_includes_default
8475 #include <$ac_header>
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484   (eval "$ac_compile") 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492   { (case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_try") 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest.$ac_objext'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_header_compiler=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516         ac_header_compiler=no
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521 echo "${ECHO_T}$ac_header_compiler" >&6; }
8522
8523 # Is the header present?
8524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 #include <$ac_header>
8533 _ACEOF
8534 if { (ac_try="$ac_cpp conftest.$ac_ext"
8535 case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8541   ac_status=$?
8542   grep -v '^ *+' conftest.er1 >conftest.err
8543   rm -f conftest.er1
8544   cat conftest.err >&5
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); } >/dev/null; then
8547   if test -s conftest.err; then
8548     ac_cpp_err=$ac_c_preproc_warn_flag
8549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8550   else
8551     ac_cpp_err=
8552   fi
8553 else
8554   ac_cpp_err=yes
8555 fi
8556 if test -z "$ac_cpp_err"; then
8557   ac_header_preproc=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562   ac_header_preproc=no
8563 fi
8564
8565 rm -f conftest.err conftest.$ac_ext
8566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8567 echo "${ECHO_T}$ac_header_preproc" >&6; }
8568
8569 # So?  What about this header?
8570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571   yes:no: )
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8576     ac_header_preproc=yes
8577     ;;
8578   no:yes:* )
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8591     ( cat <<\_ASBOX
8592 ## ------------------------------------ ##
8593 ## Report this to http://llvm.org/bugs/ ##
8594 ## ------------------------------------ ##
8595 _ASBOX
8596      ) | sed "s/^/$as_me: WARNING:     /" >&2
8597     ;;
8598 esac
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   eval "$as_ac_Header=\$ac_header_preproc"
8605 fi
8606 ac_res=`eval echo '${'$as_ac_Header'}'`
8607                { echo "$as_me:$LINENO: result: $ac_res" >&5
8608 echo "${ECHO_T}$ac_res" >&6; }
8609
8610 fi
8611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612   cat >>confdefs.h <<_ACEOF
8613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8614 _ACEOF
8615
8616 fi
8617
8618 done
8619
8620 # Check whether --enable-ltdl-install was given.
8621 if test "${enable_ltdl_install+set}" = set; then
8622   enableval=$enable_ltdl_install;
8623 fi
8624
8625
8626
8627
8628 if test x"${enable_ltdl_install-no}" != xno; then
8629   INSTALL_LTDL_TRUE=
8630   INSTALL_LTDL_FALSE='#'
8631 else
8632   INSTALL_LTDL_TRUE='#'
8633   INSTALL_LTDL_FALSE=
8634 fi
8635
8636
8637
8638 if test x"${enable_ltdl_convenience-no}" != xno; then
8639   CONVENIENCE_LTDL_TRUE=
8640   CONVENIENCE_LTDL_FALSE='#'
8641 else
8642   CONVENIENCE_LTDL_TRUE='#'
8643   CONVENIENCE_LTDL_FALSE=
8644 fi
8645
8646
8647 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8648 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8649 library_names_spec=
8650 libname_spec='lib$name'
8651 soname_spec=
8652 shrext_cmds=".so"
8653 postinstall_cmds=
8654 postuninstall_cmds=
8655 finish_cmds=
8656 finish_eval=
8657 shlibpath_var=
8658 shlibpath_overrides_runpath=unknown
8659 version_type=none
8660 dynamic_linker="$host_os ld.so"
8661 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8662 if test "$GCC" = yes; then
8663   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8665     # if the path contains ";" then we assume it to be the separator
8666     # otherwise default to the standard path separator (i.e. ":") - it is
8667     # assumed that no part of a normal pathname contains ";" but that should
8668     # okay in the real world where ";" in dirpaths is itself problematic.
8669     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670   else
8671     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8672   fi
8673 else
8674   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675 fi
8676 need_lib_prefix=unknown
8677 hardcode_into_libs=no
8678
8679 # when you set need_version to no, make sure it does not cause -set_version
8680 # flags to be left without arguments
8681 need_version=unknown
8682
8683 case $host_os in
8684 aix3*)
8685   version_type=linux
8686   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8687   shlibpath_var=LIBPATH
8688
8689   # AIX 3 has no versioning support, so we append a major version to the name.
8690   soname_spec='${libname}${release}${shared_ext}$major'
8691   ;;
8692
8693 aix4* | aix5*)
8694   version_type=linux
8695   need_lib_prefix=no
8696   need_version=no
8697   hardcode_into_libs=yes
8698   if test "$host_cpu" = ia64; then
8699     # AIX 5 supports IA64
8700     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8701     shlibpath_var=LD_LIBRARY_PATH
8702   else
8703     # With GCC up to 2.95.x, collect2 would create an import file
8704     # for dependence libraries.  The import file would start with
8705     # the line `#! .'.  This would cause the generated library to
8706     # depend on `.', always an invalid library.  This was fixed in
8707     # development snapshots of GCC prior to 3.0.
8708     case $host_os in
8709       aix4 | aix4.[01] | aix4.[01].*)
8710       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8711            echo ' yes '
8712            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8713         :
8714       else
8715         can_build_shared=no
8716       fi
8717       ;;
8718     esac
8719     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8720     # soname into executable. Probably we can add versioning support to
8721     # collect2, so additional links can be useful in future.
8722     if test "$aix_use_runtimelinking" = yes; then
8723       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8724       # instead of lib<name>.a to let people know that these are not
8725       # typical AIX shared libraries.
8726       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727     else
8728       # We preserve .a as extension for shared libraries through AIX4.2
8729       # and later when we are not doing run time linking.
8730       library_names_spec='${libname}${release}.a $libname.a'
8731       soname_spec='${libname}${release}${shared_ext}$major'
8732     fi
8733     shlibpath_var=LIBPATH
8734   fi
8735   ;;
8736
8737 amigaos*)
8738   library_names_spec='$libname.ixlibrary $libname.a'
8739   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8740   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'
8741   ;;
8742
8743 beos*)
8744   library_names_spec='${libname}${shared_ext}'
8745   dynamic_linker="$host_os ld.so"
8746   shlibpath_var=LIBRARY_PATH
8747   ;;
8748
8749 bsdi[45]*)
8750   version_type=linux
8751   need_version=no
8752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753   soname_spec='${libname}${release}${shared_ext}$major'
8754   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8755   shlibpath_var=LD_LIBRARY_PATH
8756   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8757   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8758   # the default ld.so.conf also contains /usr/contrib/lib and
8759   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8760   # libtool to hard-code these into programs
8761   ;;
8762
8763 cygwin* | mingw* | pw32*)
8764   version_type=windows
8765   shrext_cmds=".dll"
8766   need_version=no
8767   need_lib_prefix=no
8768
8769   case $GCC,$host_os in
8770   yes,cygwin* | yes,mingw* | yes,pw32*)
8771     library_names_spec='$libname.dll.a'
8772     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8773     postinstall_cmds='base_file=`basename \${file}`~
8774       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8775       dldir=$destdir/`dirname \$dlpath`~
8776       test -d \$dldir || mkdir -p \$dldir~
8777       $install_prog $dir/$dlname \$dldir/$dlname~
8778       chmod a+x \$dldir/$dlname'
8779     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8780       dlpath=$dir/\$dldll~
8781        $rm \$dlpath'
8782     shlibpath_overrides_runpath=yes
8783
8784     case $host_os in
8785     cygwin*)
8786       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8787       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8789       ;;
8790     mingw*)
8791       # MinGW DLLs use traditional 'lib' prefix
8792       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8793       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8795         # It is most probably a Windows format PATH printed by
8796         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8797         # path with ; separators, and with drive letters. We can handle the
8798         # drive letters (cygwin fileutils understands them), so leave them,
8799         # especially as we might pass files found there to a mingw objdump,
8800         # which wouldn't understand a cygwinified path. Ahh.
8801         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8802       else
8803         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8804       fi
8805       ;;
8806     pw32*)
8807       # pw32 DLLs use 'pw' prefix rather than 'lib'
8808       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8809       ;;
8810     esac
8811     ;;
8812
8813   *)
8814     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8815     ;;
8816   esac
8817   dynamic_linker='Win32 ld.exe'
8818   # FIXME: first we should search . and the directory the executable is in
8819   shlibpath_var=PATH
8820   ;;
8821
8822 darwin* | rhapsody*)
8823   dynamic_linker="$host_os dyld"
8824   version_type=darwin
8825   need_lib_prefix=no
8826   need_version=no
8827   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8828   soname_spec='${libname}${release}${major}$shared_ext'
8829   shlibpath_overrides_runpath=yes
8830   shlibpath_var=DYLD_LIBRARY_PATH
8831   shrext_cmds='.dylib'
8832   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8833   if test "$GCC" = yes; then
8834     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"`
8835   else
8836     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8837   fi
8838   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8839   ;;
8840
8841 dgux*)
8842   version_type=linux
8843   need_lib_prefix=no
8844   need_version=no
8845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8846   soname_spec='${libname}${release}${shared_ext}$major'
8847   shlibpath_var=LD_LIBRARY_PATH
8848   ;;
8849
8850 freebsd1.*)
8851   dynamic_linker=no
8852   ;;
8853
8854 kfreebsd*-gnu)
8855   version_type=linux
8856   need_lib_prefix=no
8857   need_version=no
8858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859   soname_spec='${libname}${release}${shared_ext}$major'
8860   shlibpath_var=LD_LIBRARY_PATH
8861   shlibpath_overrides_runpath=no
8862   hardcode_into_libs=yes
8863   dynamic_linker='GNU ld.so'
8864   ;;
8865
8866 freebsd* | dragonfly*)
8867   # DragonFly does not have aout.  When/if they implement a new
8868   # versioning mechanism, adjust this.
8869   if test -x /usr/bin/objformat; then
8870     objformat=`/usr/bin/objformat`
8871   else
8872     case $host_os in
8873     freebsd[123].*) objformat=aout ;;
8874     *) objformat=elf ;;
8875     esac
8876   fi
8877   version_type=freebsd-$objformat
8878   case $version_type in
8879     freebsd-elf*)
8880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881       need_version=no
8882       need_lib_prefix=no
8883       ;;
8884     freebsd-*)
8885       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8886       need_version=yes
8887       ;;
8888   esac
8889   shlibpath_var=LD_LIBRARY_PATH
8890   case $host_os in
8891   freebsd2.*)
8892     shlibpath_overrides_runpath=yes
8893     ;;
8894   freebsd3.[01]* | freebsdelf3.[01]*)
8895     shlibpath_overrides_runpath=yes
8896     hardcode_into_libs=yes
8897     ;;
8898   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8899   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8900     shlibpath_overrides_runpath=no
8901     hardcode_into_libs=yes
8902     ;;
8903   freebsd*) # from 4.6 on
8904     shlibpath_overrides_runpath=yes
8905     hardcode_into_libs=yes
8906     ;;
8907   esac
8908   ;;
8909
8910 gnu*)
8911   version_type=linux
8912   need_lib_prefix=no
8913   need_version=no
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8915   soname_spec='${libname}${release}${shared_ext}$major'
8916   shlibpath_var=LD_LIBRARY_PATH
8917   hardcode_into_libs=yes
8918   ;;
8919
8920 hpux9* | hpux10* | hpux11*)
8921   # Give a soname corresponding to the major version so that dld.sl refuses to
8922   # link against other versions.
8923   version_type=sunos
8924   need_lib_prefix=no
8925   need_version=no
8926   case $host_cpu in
8927   ia64*)
8928     shrext_cmds='.so'
8929     hardcode_into_libs=yes
8930     dynamic_linker="$host_os dld.so"
8931     shlibpath_var=LD_LIBRARY_PATH
8932     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934     soname_spec='${libname}${release}${shared_ext}$major'
8935     if test "X$HPUX_IA64_MODE" = X32; then
8936       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8937     else
8938       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8939     fi
8940     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8941     ;;
8942    hppa*64*)
8943      shrext_cmds='.sl'
8944      hardcode_into_libs=yes
8945      dynamic_linker="$host_os dld.sl"
8946      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8947      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949      soname_spec='${libname}${release}${shared_ext}$major'
8950      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8951      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8952      ;;
8953    *)
8954     shrext_cmds='.sl'
8955     dynamic_linker="$host_os dld.sl"
8956     shlibpath_var=SHLIB_PATH
8957     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959     soname_spec='${libname}${release}${shared_ext}$major'
8960     ;;
8961   esac
8962   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8963   postinstall_cmds='chmod 555 $lib'
8964   ;;
8965
8966 interix3*)
8967   version_type=linux
8968   need_lib_prefix=no
8969   need_version=no
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8973   shlibpath_var=LD_LIBRARY_PATH
8974   shlibpath_overrides_runpath=no
8975   hardcode_into_libs=yes
8976   ;;
8977
8978 irix5* | irix6* | nonstopux*)
8979   case $host_os in
8980     nonstopux*) version_type=nonstopux ;;
8981     *)
8982         if test "$lt_cv_prog_gnu_ld" = yes; then
8983                 version_type=linux
8984         else
8985                 version_type=irix
8986         fi ;;
8987   esac
8988   need_lib_prefix=no
8989   need_version=no
8990   soname_spec='${libname}${release}${shared_ext}$major'
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8992   case $host_os in
8993   irix5* | nonstopux*)
8994     libsuff= shlibsuff=
8995     ;;
8996   *)
8997     case $LD in # libtool.m4 will add one of these switches to LD
8998     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8999       libsuff= shlibsuff= libmagic=32-bit;;
9000     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9001       libsuff=32 shlibsuff=N32 libmagic=N32;;
9002     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9003       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9004     *) libsuff= shlibsuff= libmagic=never-match;;
9005     esac
9006     ;;
9007   esac
9008   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9009   shlibpath_overrides_runpath=no
9010   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9011   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9012   hardcode_into_libs=yes
9013   ;;
9014
9015 # No shared lib support for Linux oldld, aout, or coff.
9016 linux*oldld* | linux*aout* | linux*coff*)
9017   dynamic_linker=no
9018   ;;
9019
9020 # This must be Linux ELF.
9021 linux*)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   shlibpath_overrides_runpath=no
9030   # This implies no fast_install, which is unacceptable.
9031   # Some rework will be needed to allow for fast_install
9032   # before this can be enabled.
9033   hardcode_into_libs=yes
9034
9035   # Append ld.so.conf contents to the search path
9036   if test -f /etc/ld.so.conf; then
9037     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' ' '`
9038     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9039   fi
9040
9041   # We used to test for /lib/ld.so.1 and disable shared libraries on
9042   # powerpc, because MkLinux only supported shared libraries with the
9043   # GNU dynamic linker.  Since this was broken with cross compilers,
9044   # most powerpc-linux boxes support dynamic linking these days and
9045   # people can always --disable-shared, the test was removed, and we
9046   # assume the GNU/Linux dynamic linker is in use.
9047   dynamic_linker='GNU/Linux ld.so'
9048   ;;
9049
9050 knetbsd*-gnu)
9051   version_type=linux
9052   need_lib_prefix=no
9053   need_version=no
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   shlibpath_var=LD_LIBRARY_PATH
9057   shlibpath_overrides_runpath=no
9058   hardcode_into_libs=yes
9059   dynamic_linker='GNU ld.so'
9060   ;;
9061
9062 netbsd*)
9063   version_type=sunos
9064   need_lib_prefix=no
9065   need_version=no
9066   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9068     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9069     dynamic_linker='NetBSD (a.out) ld.so'
9070   else
9071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9072     soname_spec='${libname}${release}${shared_ext}$major'
9073     dynamic_linker='NetBSD ld.elf_so'
9074   fi
9075   shlibpath_var=LD_LIBRARY_PATH
9076   shlibpath_overrides_runpath=yes
9077   hardcode_into_libs=yes
9078   ;;
9079
9080 newsos6)
9081   version_type=linux
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   shlibpath_overrides_runpath=yes
9085   ;;
9086
9087 nto-qnx*)
9088   version_type=linux
9089   need_lib_prefix=no
9090   need_version=no
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   shlibpath_overrides_runpath=yes
9095   ;;
9096
9097 openbsd*)
9098   version_type=sunos
9099   sys_lib_dlsearch_path_spec="/usr/lib"
9100   need_lib_prefix=no
9101   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9102   case $host_os in
9103     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9104     *)                         need_version=no  ;;
9105   esac
9106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9108   shlibpath_var=LD_LIBRARY_PATH
9109   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9110     case $host_os in
9111       openbsd2.[89] | openbsd2.[89].*)
9112         shlibpath_overrides_runpath=no
9113         ;;
9114       *)
9115         shlibpath_overrides_runpath=yes
9116         ;;
9117       esac
9118   else
9119     shlibpath_overrides_runpath=yes
9120   fi
9121   ;;
9122
9123 os2*)
9124   libname_spec='$name'
9125   shrext_cmds=".dll"
9126   need_lib_prefix=no
9127   library_names_spec='$libname${shared_ext} $libname.a'
9128   dynamic_linker='OS/2 ld.exe'
9129   shlibpath_var=LIBPATH
9130   ;;
9131
9132 osf3* | osf4* | osf5*)
9133   version_type=osf
9134   need_lib_prefix=no
9135   need_version=no
9136   soname_spec='${libname}${release}${shared_ext}$major'
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138   shlibpath_var=LD_LIBRARY_PATH
9139   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9140   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9141   ;;
9142
9143 solaris*)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   shlibpath_overrides_runpath=yes
9151   hardcode_into_libs=yes
9152   # ldd complains unless libraries are executable
9153   postinstall_cmds='chmod +x $lib'
9154   ;;
9155
9156 sunos4*)
9157   version_type=sunos
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9160   shlibpath_var=LD_LIBRARY_PATH
9161   shlibpath_overrides_runpath=yes
9162   if test "$with_gnu_ld" = yes; then
9163     need_lib_prefix=no
9164   fi
9165   need_version=yes
9166   ;;
9167
9168 sysv4 | sysv4.3*)
9169   version_type=linux
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   shlibpath_var=LD_LIBRARY_PATH
9173   case $host_vendor in
9174     sni)
9175       shlibpath_overrides_runpath=no
9176       need_lib_prefix=no
9177       export_dynamic_flag_spec='${wl}-Blargedynsym'
9178       runpath_var=LD_RUN_PATH
9179       ;;
9180     siemens)
9181       need_lib_prefix=no
9182       ;;
9183     motorola)
9184       need_lib_prefix=no
9185       need_version=no
9186       shlibpath_overrides_runpath=no
9187       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9188       ;;
9189   esac
9190   ;;
9191
9192 sysv4*MP*)
9193   if test -d /usr/nec ;then
9194     version_type=linux
9195     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9196     soname_spec='$libname${shared_ext}.$major'
9197     shlibpath_var=LD_LIBRARY_PATH
9198   fi
9199   ;;
9200
9201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9202   version_type=freebsd-elf
9203   need_lib_prefix=no
9204   need_version=no
9205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   hardcode_into_libs=yes
9209   if test "$with_gnu_ld" = yes; then
9210     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9211     shlibpath_overrides_runpath=no
9212   else
9213     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9214     shlibpath_overrides_runpath=yes
9215     case $host_os in
9216       sco3.2v5*)
9217         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9218         ;;
9219     esac
9220   fi
9221   sys_lib_dlsearch_path_spec='/usr/lib'
9222   ;;
9223
9224 uts4*)
9225   version_type=linux
9226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   shlibpath_var=LD_LIBRARY_PATH
9229   ;;
9230
9231 *)
9232   dynamic_linker=no
9233   ;;
9234 esac
9235 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236 echo "${ECHO_T}$dynamic_linker" >&6; }
9237 test "$dynamic_linker" = no && can_build_shared=no
9238
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242 fi
9243
9244
9245 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9246 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9247 if test "${libltdl_cv_shlibext+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250
9251 module=yes
9252 eval libltdl_cv_shlibext=$shrext_cmds
9253
9254 fi
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9256 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9257 if test -n "$libltdl_cv_shlibext"; then
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9261 _ACEOF
9262
9263 fi
9264
9265
9266 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9267 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9268 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   libltdl_cv_shlibpath_var="$shlibpath_var"
9272 fi
9273 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9274 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9275 if test -n "$libltdl_cv_shlibpath_var"; then
9276
9277 cat >>confdefs.h <<_ACEOF
9278 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9279 _ACEOF
9280
9281 fi
9282
9283
9284 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9285 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9286 if test "${libltdl_cv_sys_search_path+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9290 fi
9291 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9292 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9293 if test -n "$libltdl_cv_sys_search_path"; then
9294   sys_search_path=
9295   for dir in $libltdl_cv_sys_search_path; do
9296     if test -z "$sys_search_path"; then
9297       sys_search_path="$dir"
9298     else
9299       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9300     fi
9301   done
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9305 _ACEOF
9306
9307 fi
9308
9309 { echo "$as_me:$LINENO: checking for objdir" >&5
9310 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9311 if test "${libltdl_cv_objdir+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   libltdl_cv_objdir="$objdir"
9315   if test -n "$objdir"; then
9316     :
9317   else
9318     rm -f .libs 2>/dev/null
9319     mkdir .libs 2>/dev/null
9320     if test -d .libs; then
9321       libltdl_cv_objdir=.libs
9322     else
9323       # MS-DOS does not allow filenames that begin with a dot.
9324       libltdl_cv_objdir=_libs
9325     fi
9326   rmdir .libs 2>/dev/null
9327   fi
9328
9329 fi
9330 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9331 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9335 _ACEOF
9336
9337
9338
9339
9340
9341
9342 # Check for command to grab the raw symbol name followed by C symbol from nm.
9343 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9344 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9345 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348
9349 # These are sane defaults that work on at least a few old systems.
9350 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9351
9352 # Character class describing NM global symbol codes.
9353 symcode='[BCDEGRST]'
9354
9355 # Regexp to match symbols that can be accessed directly from C.
9356 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9357
9358 # Transform an extracted symbol line into a proper C declaration
9359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9360
9361 # Transform an extracted symbol line into symbol name and symbol address
9362 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'"
9363
9364 # Define system-specific variables.
9365 case $host_os in
9366 aix*)
9367   symcode='[BCDT]'
9368   ;;
9369 cygwin* | mingw* | pw32*)
9370   symcode='[ABCDGISTW]'
9371   ;;
9372 hpux*) # Its linker distinguishes data from code symbols
9373   if test "$host_cpu" = ia64; then
9374     symcode='[ABCDEGRST]'
9375   fi
9376   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9377   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'"
9378   ;;
9379 linux*)
9380   if test "$host_cpu" = ia64; then
9381     symcode='[ABCDGIRSTW]'
9382     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9383     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'"
9384   fi
9385   ;;
9386 irix* | nonstopux*)
9387   symcode='[BCDEGRST]'
9388   ;;
9389 osf*)
9390   symcode='[BCDEGQRST]'
9391   ;;
9392 solaris*)
9393   symcode='[BDRT]'
9394   ;;
9395 sco3.2v5*)
9396   symcode='[DT]'
9397   ;;
9398 sysv4.2uw2*)
9399   symcode='[DT]'
9400   ;;
9401 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9402   symcode='[ABDT]'
9403   ;;
9404 sysv4)
9405   symcode='[DFNSTU]'
9406   ;;
9407 esac
9408
9409 # Handle CRLF in mingw tool chain
9410 opt_cr=
9411 case $build_os in
9412 mingw*)
9413   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9414   ;;
9415 esac
9416
9417 # If we're using GNU nm, then use its standard symbol codes.
9418 case `$NM -V 2>&1` in
9419 *GNU* | *'with BFD'*)
9420   symcode='[ABCDGIRSTW]' ;;
9421 esac
9422
9423 # Try without a prefix undercore, then with it.
9424 for ac_symprfx in "" "_"; do
9425
9426   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9427   symxfrm="\\1 $ac_symprfx\\2 \\2"
9428
9429   # Write the raw and C identifiers.
9430   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9431
9432   # Check to see that the pipe works correctly.
9433   pipe_works=no
9434
9435   rm -f conftest*
9436   cat > conftest.$ac_ext <<EOF
9437 #ifdef __cplusplus
9438 extern "C" {
9439 #endif
9440 char nm_test_var;
9441 void nm_test_func(){}
9442 #ifdef __cplusplus
9443 }
9444 #endif
9445 int main(){nm_test_var='a';nm_test_func();return(0);}
9446 EOF
9447
9448   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; then
9453     # Now try to grab the symbols.
9454     nlist=conftest.nm
9455     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9456   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } && test -s "$nlist"; then
9460       # Try sorting and uniquifying the output.
9461       if sort "$nlist" | uniq > "$nlist"T; then
9462         mv -f "$nlist"T "$nlist"
9463       else
9464         rm -f "$nlist"T
9465       fi
9466
9467       # Make sure that we snagged all the symbols we need.
9468       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9469         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9470           cat <<EOF > conftest.$ac_ext
9471 #ifdef __cplusplus
9472 extern "C" {
9473 #endif
9474
9475 EOF
9476           # Now generate the symbol file.
9477           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9478
9479           cat <<EOF >> conftest.$ac_ext
9480 #if defined (__STDC__) && __STDC__
9481 # define lt_ptr_t void *
9482 #else
9483 # define lt_ptr_t char *
9484 # define const
9485 #endif
9486
9487 /* The mapping between symbol names and symbols. */
9488 const struct {
9489   const char *name;
9490   lt_ptr_t address;
9491 }
9492 lt_preloaded_symbols[] =
9493 {
9494 EOF
9495           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9496           cat <<\EOF >> conftest.$ac_ext
9497   {0, (lt_ptr_t) 0}
9498 };
9499
9500 #ifdef __cplusplus
9501 }
9502 #endif
9503 EOF
9504           # Now try linking the two files.
9505           mv conftest.$ac_objext conftstm.$ac_objext
9506           lt_save_LIBS="$LIBS"
9507           lt_save_CFLAGS="$CFLAGS"
9508           LIBS="conftstm.$ac_objext"
9509           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9510           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511   (eval $ac_link) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9515             pipe_works=yes
9516           fi
9517           LIBS="$lt_save_LIBS"
9518           CFLAGS="$lt_save_CFLAGS"
9519         else
9520           echo "cannot find nm_test_func in $nlist" >&5
9521         fi
9522       else
9523         echo "cannot find nm_test_var in $nlist" >&5
9524       fi
9525     else
9526       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9527     fi
9528   else
9529     echo "$progname: failed program was:" >&5
9530     cat conftest.$ac_ext >&5
9531   fi
9532   rm -f conftest* conftst*
9533
9534   # Do not use the global_symbol_pipe unless it works.
9535   if test "$pipe_works" = yes; then
9536     break
9537   else
9538     lt_cv_sys_global_symbol_pipe=
9539   fi
9540 done
9541
9542 fi
9543
9544 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9545   lt_cv_sys_global_symbol_to_cdecl=
9546 fi
9547 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9548   { echo "$as_me:$LINENO: result: failed" >&5
9549 echo "${ECHO_T}failed" >&6; }
9550 else
9551   { echo "$as_me:$LINENO: result: ok" >&5
9552 echo "${ECHO_T}ok" >&6; }
9553 fi
9554
9555
9556 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9557 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9558 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9562     libltdl_cv_preloaded_symbols=yes
9563   else
9564     libltdl_cv_preloaded_symbols=no
9565   fi
9566
9567 fi
9568 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9569 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9570 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_PRELOADED_SYMBOLS 1
9574 _ACEOF
9575
9576 fi
9577
9578 LIBADD_DL=
9579
9580 ac_ext=c
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586
9587 { echo "$as_me:$LINENO: checking for shl_load" >&5
9588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9589 if test "${ac_cv_func_shl_load+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9600 #define shl_load innocuous_shl_load
9601
9602 /* System header to define __stub macros and hopefully few prototypes,
9603     which can conflict with char shl_load (); below.
9604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605     <limits.h> exists even on freestanding compilers.  */
9606
9607 #ifdef __STDC__
9608 # include <limits.h>
9609 #else
9610 # include <assert.h>
9611 #endif
9612
9613 #undef shl_load
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616    Use char because int might match the return type of a GCC
9617    builtin and then its argument prototype would still apply.  */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char shl_load ();
9622 /* The GNU C library defines this for functions which it implements
9623     to always fail with ENOSYS.  Some functions are actually named
9624     something starting with __ and the normal name is an alias.  */
9625 #if defined __stub_shl_load || defined __stub___shl_load
9626 choke me
9627 #endif
9628
9629 int
9630 main ()
9631 {
9632 return shl_load ();
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_link") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652   { (case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_try") 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_try") 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; }; then
9671   ac_cv_func_shl_load=yes
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676         ac_cv_func_shl_load=no
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext \
9680       conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9683 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9684 if test $ac_cv_func_shl_load = yes; then
9685
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_SHL_LOAD 1
9688 _ACEOF
9689
9690 else
9691   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldld  $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704
9705 /* Override any GCC internal prototype to avoid an error.
9706    Use char because int might match the return type of a GCC
9707    builtin and then its argument prototype would still apply.  */
9708 #ifdef __cplusplus
9709 extern "C"
9710 #endif
9711 char shl_load ();
9712 int
9713 main ()
9714 {
9715 return shl_load ();
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_link") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735   { (case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_try") 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_try") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_lib_dld_shl_load=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_lib_dld_shl_load=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768 if test $ac_cv_lib_dld_shl_load = yes; then
9769
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_SHL_LOAD 1
9772 _ACEOF
9773
9774         LIBADD_DL="$LIBADD_DL -ldld"
9775 else
9776   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   ac_check_lib_save_LIBS=$LIBS
9782 LIBS="-ldl  $LIBS"
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789
9790 /* Override any GCC internal prototype to avoid an error.
9791    Use char because int might match the return type of a GCC
9792    builtin and then its argument prototype would still apply.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 char dlopen ();
9797 int
9798 main ()
9799 {
9800 return dlopen ();
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9807 case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_link") 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820   { (case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_try") 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; } &&
9829          { ac_try='test -s conftest$ac_exeext'
9830   { (case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_try") 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; }; then
9839   ac_cv_lib_dl_dlopen=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844         ac_cv_lib_dl_dlopen=no
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext \
9848       conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9850 fi
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9853 if test $ac_cv_lib_dl_dlopen = yes; then
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_LIBDL 1
9857 _ACEOF
9858
9859                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 #if HAVE_DLFCN_H
9868 #  include <dlfcn.h>
9869 #endif
9870
9871 int
9872 main ()
9873 {
9874 dlopen(0, 0);
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9881 case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_link") 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_try") 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; }; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9916 _ACEOF
9917  libltdl_cv_func_dlopen="yes"
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-lsvld  $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935
9936 /* Override any GCC internal prototype to avoid an error.
9937    Use char because int might match the return type of a GCC
9938    builtin and then its argument prototype would still apply.  */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char dlopen ();
9943 int
9944 main ()
9945 {
9946 return dlopen ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_link") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_cv_lib_svld_dlopen=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_lib_svld_dlopen=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9996 fi
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9998 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9999 if test $ac_cv_lib_svld_dlopen = yes; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10003 _ACEOF
10004
10005                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10006 else
10007   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10008 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-ldld  $LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h.  */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h.  */
10020
10021 /* Override any GCC internal prototype to avoid an error.
10022    Use char because int might match the return type of a GCC
10023    builtin and then its argument prototype would still apply.  */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 char dld_link ();
10028 int
10029 main ()
10030 {
10031 return dld_link ();
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043   (eval "$ac_link") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051   { (case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_try") 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_try") 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; }; then
10070   ac_cv_lib_dld_dld_link=yes
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         ac_cv_lib_dld_dld_link=no
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10084 if test $ac_cv_lib_dld_dld_link = yes; then
10085
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_DLD 1
10088 _ACEOF
10089
10090                 LIBADD_DL="$LIBADD_DL -ldld"
10091 else
10092   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10093 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10094 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10105 #define _dyld_func_lookup innocuous__dyld_func_lookup
10106
10107 /* System header to define __stub macros and hopefully few prototypes,
10108     which can conflict with char _dyld_func_lookup (); below.
10109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110     <limits.h> exists even on freestanding compilers.  */
10111
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117
10118 #undef _dyld_func_lookup
10119
10120 /* Override any GCC internal prototype to avoid an error.
10121    Use char because int might match the return type of a GCC
10122    builtin and then its argument prototype would still apply.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char _dyld_func_lookup ();
10127 /* The GNU C library defines this for functions which it implements
10128     to always fail with ENOSYS.  Some functions are actually named
10129     something starting with __ and the normal name is an alias.  */
10130 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10131 choke me
10132 #endif
10133
10134 int
10135 main ()
10136 {
10137 return _dyld_func_lookup ();
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_link") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157   { (case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_try") 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; } &&
10166          { ac_try='test -s conftest$ac_exeext'
10167   { (case "(($ac_try" in
10168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169   *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172   (eval "$ac_try") 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_cv_func__dyld_func_lookup=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         ac_cv_func__dyld_func_lookup=no
10182 fi
10183
10184 rm -f core conftest.err conftest.$ac_objext \
10185       conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10188 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10189 if test $ac_cv_func__dyld_func_lookup = yes; then
10190
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_DYLD 1
10193 _ACEOF
10194
10195 fi
10196
10197
10198 fi
10199
10200
10201 fi
10202
10203
10204 fi
10205
10206 rm -f core conftest.err conftest.$ac_objext \
10207       conftest$ac_exeext conftest.$ac_ext
10208
10209 fi
10210
10211
10212 fi
10213
10214
10215 fi
10216
10217
10218 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10219 then
10220   lt_save_LIBS="$LIBS"
10221   LIBS="$LIBS $LIBADD_DL"
10222
10223 for ac_func in dlerror
10224 do
10225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10239 #define $ac_func innocuous_$ac_func
10240
10241 /* System header to define __stub macros and hopefully few prototypes,
10242     which can conflict with char $ac_func (); below.
10243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244     <limits.h> exists even on freestanding compilers.  */
10245
10246 #ifdef __STDC__
10247 # include <limits.h>
10248 #else
10249 # include <assert.h>
10250 #endif
10251
10252 #undef $ac_func
10253
10254 /* Override any GCC internal prototype to avoid an error.
10255    Use char because int might match the return type of a GCC
10256    builtin and then its argument prototype would still apply.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char $ac_func ();
10261 /* The GNU C library defines this for functions which it implements
10262     to always fail with ENOSYS.  Some functions are actually named
10263     something starting with __ and the normal name is an alias.  */
10264 #if defined __stub_$ac_func || defined __stub___$ac_func
10265 choke me
10266 #endif
10267
10268 int
10269 main ()
10270 {
10271 return $ac_func ();
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_link") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; } &&
10300          { ac_try='test -s conftest$ac_exeext'
10301   { (case "(($ac_try" in
10302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303   *) ac_try_echo=$ac_try;;
10304 esac
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306   (eval "$ac_try") 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   eval "$as_ac_var=yes"
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315         eval "$as_ac_var=no"
10316 fi
10317
10318 rm -f core conftest.err conftest.$ac_objext \
10319       conftest$ac_exeext conftest.$ac_ext
10320 fi
10321 ac_res=`eval echo '${'$as_ac_var'}'`
10322                { echo "$as_me:$LINENO: result: $ac_res" >&5
10323 echo "${ECHO_T}$ac_res" >&6; }
10324 if test `eval echo '${'$as_ac_var'}'` = yes; then
10325   cat >>confdefs.h <<_ACEOF
10326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10327 _ACEOF
10328
10329 fi
10330 done
10331
10332   LIBS="$lt_save_LIBS"
10333 fi
10334 ac_ext=c
10335 ac_cpp='$CPP $CPPFLAGS'
10336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10339
10340
10341
10342 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10343 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10344 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   ac_cv_sys_symbol_underscore=no
10348   cat > conftest.$ac_ext <<EOF
10349 void nm_test_func(){}
10350 int main(){nm_test_func;return 0;}
10351 EOF
10352   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; then
10357     # Now try to grab the symbols.
10358     ac_nlist=conftest.nm
10359     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10360   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } && test -s "$ac_nlist"; then
10364       # See whether the symbols have a leading underscore.
10365       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10366         ac_cv_sys_symbol_underscore=yes
10367       else
10368         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10369           :
10370         else
10371           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10372         fi
10373       fi
10374     else
10375       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10376     fi
10377   else
10378     echo "configure: failed program was:" >&5
10379     cat conftest.c >&5
10380   fi
10381   rm -rf conftest*
10382
10383 fi
10384 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10385 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10386
10387
10388 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10389   if test x"$libltdl_cv_func_dlopen" = xyes ||
10390      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10391         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10392 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10393 if test "${libltdl_cv_need_uscore+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   libltdl_cv_need_uscore=unknown
10397           save_LIBS="$LIBS"
10398           LIBS="$LIBS $LIBADD_DL"
10399           if test "$cross_compiling" = yes; then :
10400   libltdl_cv_need_uscore=cross
10401 else
10402   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10403   lt_status=$lt_dlunknown
10404   cat > conftest.$ac_ext <<EOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10407
10408 #if HAVE_DLFCN_H
10409 #include <dlfcn.h>
10410 #endif
10411
10412 #include <stdio.h>
10413
10414 #ifdef RTLD_GLOBAL
10415 #  define LT_DLGLOBAL           RTLD_GLOBAL
10416 #else
10417 #  ifdef DL_GLOBAL
10418 #    define LT_DLGLOBAL         DL_GLOBAL
10419 #  else
10420 #    define LT_DLGLOBAL         0
10421 #  endif
10422 #endif
10423
10424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10425    find out it does not work in some platform. */
10426 #ifndef LT_DLLAZY_OR_NOW
10427 #  ifdef RTLD_LAZY
10428 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10429 #  else
10430 #    ifdef DL_LAZY
10431 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10432 #    else
10433 #      ifdef RTLD_NOW
10434 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10435 #      else
10436 #        ifdef DL_NOW
10437 #          define LT_DLLAZY_OR_NOW      DL_NOW
10438 #        else
10439 #          define LT_DLLAZY_OR_NOW      0
10440 #        endif
10441 #      endif
10442 #    endif
10443 #  endif
10444 #endif
10445
10446 #ifdef __cplusplus
10447 extern "C" void exit (int);
10448 #endif
10449
10450 void fnord() { int i=42;}
10451 int main ()
10452 {
10453   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10454   int status = $lt_dlunknown;
10455
10456   if (self)
10457     {
10458       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10459       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460       /* dlclose (self); */
10461     }
10462   else
10463     puts (dlerror ());
10464
10465     exit (status);
10466 }
10467 EOF
10468   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469   (eval $ac_link) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10473     (./conftest; exit; ) >&5 2>/dev/null
10474     lt_status=$?
10475     case x$lt_status in
10476       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10477       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10478       x$lt_dlunknown|x*)  ;;
10479     esac
10480   else :
10481     # compilation failed
10482
10483   fi
10484 fi
10485 rm -fr conftest*
10486
10487           LIBS="$save_LIBS"
10488
10489 fi
10490 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10491 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10492   fi
10493 fi
10494
10495 if test x"$libltdl_cv_need_uscore" = xyes; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define NEED_USCORE 1
10499 _ACEOF
10500
10501 fi
10502
10503
10504 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10505 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10506 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   # PORTME does your system automatically load deplibs for dlopen?
10510   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10511   # For now, we just catch OSes we know something about -- in the
10512   # future, we'll try test this programmatically.
10513   libltdl_cv_sys_dlopen_deplibs=unknown
10514   case "$host_os" in
10515   aix3*|aix4.1.*|aix4.2.*)
10516     # Unknown whether this is true for these versions of AIX, but
10517     # we want this `case' here to explicitly catch those versions.
10518     libltdl_cv_sys_dlopen_deplibs=unknown
10519     ;;
10520   aix[45]*)
10521     libltdl_cv_sys_dlopen_deplibs=yes
10522     ;;
10523   darwin*)
10524     # Assuming the user has installed a libdl from somewhere, this is true
10525     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10526     libltdl_cv_sys_dlopen_deplibs=yes
10527     ;;
10528   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10529     # GNU and its variants, using gnu ld.so (Glibc)
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   hpux10*|hpux11*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   interix*)
10536     libltdl_cv_sys_dlopen_deplibs=yes
10537     ;;
10538   irix[12345]*|irix6.[01]*)
10539     # Catch all versions of IRIX before 6.2, and indicate that we don't
10540     # know how it worked for any of those versions.
10541     libltdl_cv_sys_dlopen_deplibs=unknown
10542     ;;
10543   irix*)
10544     # The case above catches anything before 6.2, and it's known that
10545     # at 6.2 and later dlopen does load deplibs.
10546     libltdl_cv_sys_dlopen_deplibs=yes
10547     ;;
10548   netbsd*)
10549     libltdl_cv_sys_dlopen_deplibs=yes
10550     ;;
10551   openbsd*)
10552     libltdl_cv_sys_dlopen_deplibs=yes
10553     ;;
10554   osf[1234]*)
10555     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10556     # it did *not* use an RPATH in a shared library to find objects the
10557     # library depends on, so we explicitly say `no'.
10558     libltdl_cv_sys_dlopen_deplibs=no
10559     ;;
10560   osf5.0|osf5.0a|osf5.1)
10561     # dlopen *does* load deplibs and with the right loader patch applied
10562     # it even uses RPATH in a shared library to search for shared objects
10563     # that the library depends on, but there's no easy way to know if that
10564     # patch is installed.  Since this is the case, all we can really
10565     # say is unknown -- it depends on the patch being installed.  If
10566     # it is, this changes to `yes'.  Without it, it would be `no'.
10567     libltdl_cv_sys_dlopen_deplibs=unknown
10568     ;;
10569   osf*)
10570     # the two cases above should catch all versions of osf <= 5.1.  Read
10571     # the comments above for what we know about them.
10572     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10573     # is used to find them so we can finally say `yes'.
10574     libltdl_cv_sys_dlopen_deplibs=yes
10575     ;;
10576   solaris*)
10577     libltdl_cv_sys_dlopen_deplibs=yes
10578     ;;
10579   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10580     libltdl_cv_sys_dlopen_deplibs=yes
10581     ;;
10582   esac
10583
10584 fi
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10586 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10587 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10588
10589 cat >>confdefs.h <<\_ACEOF
10590 #define LTDL_DLOPEN_DEPLIBS 1
10591 _ACEOF
10592
10593 fi
10594
10595
10596 for ac_header in argz.h
10597 do
10598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 fi
10605 ac_res=`eval echo '${'$as_ac_Header'}'`
10606                { echo "$as_me:$LINENO: result: $ac_res" >&5
10607 echo "${ECHO_T}$ac_res" >&6; }
10608 else
10609   # Is the header compilable?
10610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 $ac_includes_default
10619 #include <$ac_header>
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628   (eval "$ac_compile") 2>conftest.er1
10629   ac_status=$?
10630   grep -v '^ *+' conftest.er1 >conftest.err
10631   rm -f conftest.er1
10632   cat conftest.err >&5
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); } &&
10635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636   { (case "(($ac_try" in
10637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638   *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641   (eval "$ac_try") 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; } &&
10645          { ac_try='test -s conftest.$ac_objext'
10646   { (case "(($ac_try" in
10647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648   *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651   (eval "$ac_try") 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; }; then
10655   ac_header_compiler=yes
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660         ac_header_compiler=no
10661 fi
10662
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6; }
10666
10667 # Is the header present?
10668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 #include <$ac_header>
10677 _ACEOF
10678 if { (ac_try="$ac_cpp conftest.$ac_ext"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } >/dev/null; then
10691   if test -s conftest.err; then
10692     ac_cpp_err=$ac_c_preproc_warn_flag
10693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10694   else
10695     ac_cpp_err=
10696   fi
10697 else
10698   ac_cpp_err=yes
10699 fi
10700 if test -z "$ac_cpp_err"; then
10701   ac_header_preproc=yes
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706   ac_header_preproc=no
10707 fi
10708
10709 rm -f conftest.err conftest.$ac_ext
10710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711 echo "${ECHO_T}$ac_header_preproc" >&6; }
10712
10713 # So?  What about this header?
10714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715   yes:no: )
10716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10720     ac_header_preproc=yes
10721     ;;
10722   no:yes:* )
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10735     ( cat <<\_ASBOX
10736 ## ------------------------------------ ##
10737 ## Report this to http://llvm.org/bugs/ ##
10738 ## ------------------------------------ ##
10739 _ASBOX
10740      ) | sed "s/^/$as_me: WARNING:     /" >&2
10741     ;;
10742 esac
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746   echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748   eval "$as_ac_Header=\$ac_header_preproc"
10749 fi
10750 ac_res=`eval echo '${'$as_ac_Header'}'`
10751                { echo "$as_me:$LINENO: result: $ac_res" >&5
10752 echo "${ECHO_T}$ac_res" >&6; }
10753
10754 fi
10755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10756   cat >>confdefs.h <<_ACEOF
10757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10758 _ACEOF
10759
10760 fi
10761
10762 done
10763
10764
10765 { echo "$as_me:$LINENO: checking for error_t" >&5
10766 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10767 if test "${ac_cv_type_error_t+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #if HAVE_ARGZ_H
10777 #  include <argz.h>
10778 #endif
10779
10780 typedef error_t ac__type_new_;
10781 int
10782 main ()
10783 {
10784 if ((ac__type_new_ *) 0)
10785   return 0;
10786 if (sizeof (ac__type_new_))
10787   return 0;
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_compile") 2>conftest.er1
10800   ac_status=$?
10801   grep -v '^ *+' conftest.er1 >conftest.err
10802   rm -f conftest.er1
10803   cat conftest.err >&5
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } &&
10806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807   { (case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_try") 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; } &&
10816          { ac_try='test -s conftest.$ac_objext'
10817   { (case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822   (eval "$ac_try") 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   ac_cv_type_error_t=yes
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831         ac_cv_type_error_t=no
10832 fi
10833
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10837 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10838 if test $ac_cv_type_error_t = yes; then
10839
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_ERROR_T 1
10842 _ACEOF
10843
10844
10845 else
10846
10847 cat >>confdefs.h <<\_ACEOF
10848 #define error_t int
10849 _ACEOF
10850
10851 fi
10852
10853
10854
10855
10856
10857
10858
10859 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10860 do
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h.  */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h.  */
10873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10875 #define $ac_func innocuous_$ac_func
10876
10877 /* System header to define __stub macros and hopefully few prototypes,
10878     which can conflict with char $ac_func (); below.
10879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880     <limits.h> exists even on freestanding compilers.  */
10881
10882 #ifdef __STDC__
10883 # include <limits.h>
10884 #else
10885 # include <assert.h>
10886 #endif
10887
10888 #undef $ac_func
10889
10890 /* Override any GCC internal prototype to avoid an error.
10891    Use char because int might match the return type of a GCC
10892    builtin and then its argument prototype would still apply.  */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 char $ac_func ();
10897 /* The GNU C library defines this for functions which it implements
10898     to always fail with ENOSYS.  Some functions are actually named
10899     something starting with __ and the normal name is an alias.  */
10900 #if defined __stub_$ac_func || defined __stub___$ac_func
10901 choke me
10902 #endif
10903
10904 int
10905 main ()
10906 {
10907 return $ac_func ();
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916   *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919   (eval "$ac_link") 2>conftest.er1
10920   ac_status=$?
10921   grep -v '^ *+' conftest.er1 >conftest.err
10922   rm -f conftest.er1
10923   cat conftest.err >&5
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } &&
10926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10927   { (case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_try") 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; } &&
10936          { ac_try='test -s conftest$ac_exeext'
10937   { (case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_try") 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }; }; then
10946   eval "$as_ac_var=yes"
10947 else
10948   echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951         eval "$as_ac_var=no"
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext \
10955       conftest$ac_exeext conftest.$ac_ext
10956 fi
10957 ac_res=`eval echo '${'$as_ac_var'}'`
10958                { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10960 if test `eval echo '${'$as_ac_var'}'` = yes; then
10961   cat >>confdefs.h <<_ACEOF
10962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10963 _ACEOF
10964
10965 fi
10966 done
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10996                   stdio.h unistd.h
10997 do
10998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 fi
11005 ac_res=`eval echo '${'$as_ac_Header'}'`
11006                { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11008 else
11009   # Is the header compilable?
11010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 $ac_includes_default
11019 #include <$ac_header>
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_compile") 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } &&
11035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036   { (case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_try") 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; } &&
11045          { ac_try='test -s conftest.$ac_objext'
11046   { (case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_try") 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }; }; then
11055   ac_header_compiler=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         ac_header_compiler=no
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11065 echo "${ECHO_T}$ac_header_compiler" >&6; }
11066
11067 # Is the header present?
11068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 #include <$ac_header>
11077 _ACEOF
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } >/dev/null; then
11091   if test -s conftest.err; then
11092     ac_cpp_err=$ac_c_preproc_warn_flag
11093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11094   else
11095     ac_cpp_err=
11096   fi
11097 else
11098   ac_cpp_err=yes
11099 fi
11100 if test -z "$ac_cpp_err"; then
11101   ac_header_preproc=yes
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11105
11106   ac_header_preproc=no
11107 fi
11108
11109 rm -f conftest.err conftest.$ac_ext
11110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6; }
11112
11113 # So?  What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11115   yes:no: )
11116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11120     ac_header_preproc=yes
11121     ;;
11122   no:yes:* )
11123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11135     ( cat <<\_ASBOX
11136 ## ------------------------------------ ##
11137 ## Report this to http://llvm.org/bugs/ ##
11138 ## ------------------------------------ ##
11139 _ASBOX
11140      ) | sed "s/^/$as_me: WARNING:     /" >&2
11141     ;;
11142 esac
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   eval "$as_ac_Header=\$ac_header_preproc"
11149 fi
11150 ac_res=`eval echo '${'$as_ac_Header'}'`
11151                { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11153
11154 fi
11155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11156   cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11158 _ACEOF
11159
11160 fi
11161
11162 done
11163
11164
11165
11166
11167
11168 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11169 do
11170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 fi
11177 ac_res=`eval echo '${'$as_ac_Header'}'`
11178                { echo "$as_me:$LINENO: result: $ac_res" >&5
11179 echo "${ECHO_T}$ac_res" >&6; }
11180 else
11181   # Is the header compilable?
11182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184 cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190 $ac_includes_default
11191 #include <$ac_header>
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197   *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200   (eval "$ac_compile") 2>conftest.er1
11201   ac_status=$?
11202   grep -v '^ *+' conftest.er1 >conftest.err
11203   rm -f conftest.er1
11204   cat conftest.err >&5
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } &&
11207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208   { (case "(($ac_try" in
11209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210   *) ac_try_echo=$ac_try;;
11211 esac
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213   (eval "$ac_try") 2>&5
11214   ac_status=$?
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); }; } &&
11217          { ac_try='test -s conftest.$ac_objext'
11218   { (case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_try") 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; }; then
11227   ac_header_compiler=yes
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232         ac_header_compiler=no
11233 fi
11234
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11237 echo "${ECHO_T}$ac_header_compiler" >&6; }
11238
11239 # Is the header present?
11240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 #include <$ac_header>
11249 _ACEOF
11250 if { (ac_try="$ac_cpp conftest.$ac_ext"
11251 case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } >/dev/null; then
11263   if test -s conftest.err; then
11264     ac_cpp_err=$ac_c_preproc_warn_flag
11265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11266   else
11267     ac_cpp_err=
11268   fi
11269 else
11270   ac_cpp_err=yes
11271 fi
11272 if test -z "$ac_cpp_err"; then
11273   ac_header_preproc=yes
11274 else
11275   echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278   ac_header_preproc=no
11279 fi
11280
11281 rm -f conftest.err conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6; }
11284
11285 # So?  What about this header?
11286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287   yes:no: )
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11292     ac_header_preproc=yes
11293     ;;
11294   no:yes:* )
11295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307     ( cat <<\_ASBOX
11308 ## ------------------------------------ ##
11309 ## Report this to http://llvm.org/bugs/ ##
11310 ## ------------------------------------ ##
11311 _ASBOX
11312      ) | sed "s/^/$as_me: WARNING:     /" >&2
11313     ;;
11314 esac
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   eval "$as_ac_Header=\$ac_header_preproc"
11321 fi
11322 ac_res=`eval echo '${'$as_ac_Header'}'`
11323                { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11325
11326 fi
11327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11328   cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11330 _ACEOF
11331
11332 fi
11333
11334 done
11335
11336
11337
11338 for ac_header in string.h strings.h
11339 do
11340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345   echo $ECHO_N "(cached) $ECHO_C" >&6
11346 fi
11347 ac_res=`eval echo '${'$as_ac_Header'}'`
11348                { echo "$as_me:$LINENO: result: $ac_res" >&5
11349 echo "${ECHO_T}$ac_res" >&6; }
11350 else
11351   # Is the header compilable?
11352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 $ac_includes_default
11361 #include <$ac_header>
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (ac_try="$ac_compile"
11365 case "(($ac_try" in
11366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367   *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370   (eval "$ac_compile") 2>conftest.er1
11371   ac_status=$?
11372   grep -v '^ *+' conftest.er1 >conftest.err
11373   rm -f conftest.er1
11374   cat conftest.err >&5
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); } &&
11377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11378   { (case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383   (eval "$ac_try") 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); }; } &&
11387          { ac_try='test -s conftest.$ac_objext'
11388   { (case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_try") 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); }; }; then
11397   ac_header_compiler=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402         ac_header_compiler=no
11403 fi
11404
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407 echo "${ECHO_T}$ac_header_compiler" >&6; }
11408
11409 # Is the header present?
11410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 #include <$ac_header>
11419 _ACEOF
11420 if { (ac_try="$ac_cpp conftest.$ac_ext"
11421 case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } >/dev/null; then
11433   if test -s conftest.err; then
11434     ac_cpp_err=$ac_c_preproc_warn_flag
11435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11436   else
11437     ac_cpp_err=
11438   fi
11439 else
11440   ac_cpp_err=yes
11441 fi
11442 if test -z "$ac_cpp_err"; then
11443   ac_header_preproc=yes
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448   ac_header_preproc=no
11449 fi
11450
11451 rm -f conftest.err conftest.$ac_ext
11452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453 echo "${ECHO_T}$ac_header_preproc" >&6; }
11454
11455 # So?  What about this header?
11456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11457   yes:no: )
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462     ac_header_preproc=yes
11463     ;;
11464   no:yes:* )
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11477     ( cat <<\_ASBOX
11478 ## ------------------------------------ ##
11479 ## Report this to http://llvm.org/bugs/ ##
11480 ## ------------------------------------ ##
11481 _ASBOX
11482      ) | sed "s/^/$as_me: WARNING:     /" >&2
11483     ;;
11484 esac
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488   echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490   eval "$as_ac_Header=\$ac_header_preproc"
11491 fi
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493                { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495
11496 fi
11497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11498   cat >>confdefs.h <<_ACEOF
11499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11500 _ACEOF
11501  break
11502 fi
11503
11504 done
11505
11506
11507
11508
11509 for ac_func in strchr index
11510 do
11511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517   cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11525 #define $ac_func innocuous_$ac_func
11526
11527 /* System header to define __stub macros and hopefully few prototypes,
11528     which can conflict with char $ac_func (); below.
11529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530     <limits.h> exists even on freestanding compilers.  */
11531
11532 #ifdef __STDC__
11533 # include <limits.h>
11534 #else
11535 # include <assert.h>
11536 #endif
11537
11538 #undef $ac_func
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541    Use char because int might match the return type of a GCC
11542    builtin and then its argument prototype would still apply.  */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char $ac_func ();
11547 /* The GNU C library defines this for functions which it implements
11548     to always fail with ENOSYS.  Some functions are actually named
11549     something starting with __ and the normal name is an alias.  */
11550 #if defined __stub_$ac_func || defined __stub___$ac_func
11551 choke me
11552 #endif
11553
11554 int
11555 main ()
11556 {
11557 return $ac_func ();
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_link") 2>conftest.er1
11570   ac_status=$?
11571   grep -v '^ *+' conftest.er1 >conftest.err
11572   rm -f conftest.er1
11573   cat conftest.err >&5
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } &&
11576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577   { (case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_try") 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; } &&
11586          { ac_try='test -s conftest$ac_exeext'
11587   { (case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592   (eval "$ac_try") 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   eval "$as_ac_var=yes"
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601         eval "$as_ac_var=no"
11602 fi
11603
11604 rm -f core conftest.err conftest.$ac_objext \
11605       conftest$ac_exeext conftest.$ac_ext
11606 fi
11607 ac_res=`eval echo '${'$as_ac_var'}'`
11608                { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611   cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 _ACEOF
11614  break
11615 fi
11616 done
11617
11618
11619
11620 for ac_func in strrchr rindex
11621 do
11622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626   echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628   cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11636 #define $ac_func innocuous_$ac_func
11637
11638 /* System header to define __stub macros and hopefully few prototypes,
11639     which can conflict with char $ac_func (); below.
11640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641     <limits.h> exists even on freestanding compilers.  */
11642
11643 #ifdef __STDC__
11644 # include <limits.h>
11645 #else
11646 # include <assert.h>
11647 #endif
11648
11649 #undef $ac_func
11650
11651 /* Override any GCC internal prototype to avoid an error.
11652    Use char because int might match the return type of a GCC
11653    builtin and then its argument prototype would still apply.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 char $ac_func ();
11658 /* The GNU C library defines this for functions which it implements
11659     to always fail with ENOSYS.  Some functions are actually named
11660     something starting with __ and the normal name is an alias.  */
11661 #if defined __stub_$ac_func || defined __stub___$ac_func
11662 choke me
11663 #endif
11664
11665 int
11666 main ()
11667 {
11668 return $ac_func ();
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_link") 2>conftest.er1
11681   ac_status=$?
11682   grep -v '^ *+' conftest.er1 >conftest.err
11683   rm -f conftest.er1
11684   cat conftest.err >&5
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); } &&
11687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688   { (case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_try") 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (case "(($ac_try" in
11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700   *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703   (eval "$ac_try") 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   eval "$as_ac_var=yes"
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712         eval "$as_ac_var=no"
11713 fi
11714
11715 rm -f core conftest.err conftest.$ac_objext \
11716       conftest$ac_exeext conftest.$ac_ext
11717 fi
11718 ac_res=`eval echo '${'$as_ac_var'}'`
11719                { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722   cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 _ACEOF
11725  break
11726 fi
11727 done
11728
11729
11730
11731 for ac_func in memcpy bcopy
11732 do
11733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11747 #define $ac_func innocuous_$ac_func
11748
11749 /* System header to define __stub macros and hopefully few prototypes,
11750     which can conflict with char $ac_func (); below.
11751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752     <limits.h> exists even on freestanding compilers.  */
11753
11754 #ifdef __STDC__
11755 # include <limits.h>
11756 #else
11757 # include <assert.h>
11758 #endif
11759
11760 #undef $ac_func
11761
11762 /* Override any GCC internal prototype to avoid an error.
11763    Use char because int might match the return type of a GCC
11764    builtin and then its argument prototype would still apply.  */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char $ac_func ();
11769 /* The GNU C library defines this for functions which it implements
11770     to always fail with ENOSYS.  Some functions are actually named
11771     something starting with __ and the normal name is an alias.  */
11772 #if defined __stub_$ac_func || defined __stub___$ac_func
11773 choke me
11774 #endif
11775
11776 int
11777 main ()
11778 {
11779 return $ac_func ();
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (ac_try="$ac_link"
11786 case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_link") 2>conftest.er1
11792   ac_status=$?
11793   grep -v '^ *+' conftest.er1 >conftest.err
11794   rm -f conftest.er1
11795   cat conftest.err >&5
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } &&
11798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799   { (case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_try") 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; } &&
11808          { ac_try='test -s conftest$ac_exeext'
11809   { (case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_try") 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   eval "$as_ac_var=yes"
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823         eval "$as_ac_var=no"
11824 fi
11825
11826 rm -f core conftest.err conftest.$ac_objext \
11827       conftest$ac_exeext conftest.$ac_ext
11828 fi
11829 ac_res=`eval echo '${'$as_ac_var'}'`
11830                { echo "$as_me:$LINENO: result: $ac_res" >&5
11831 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_var'}'` = yes; then
11833   cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11835 _ACEOF
11836  break
11837 fi
11838 done
11839
11840
11841
11842 for ac_func in memmove strcmp
11843 do
11844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11858 #define $ac_func innocuous_$ac_func
11859
11860 /* System header to define __stub macros and hopefully few prototypes,
11861     which can conflict with char $ac_func (); below.
11862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863     <limits.h> exists even on freestanding compilers.  */
11864
11865 #ifdef __STDC__
11866 # include <limits.h>
11867 #else
11868 # include <assert.h>
11869 #endif
11870
11871 #undef $ac_func
11872
11873 /* Override any GCC internal prototype to avoid an error.
11874    Use char because int might match the return type of a GCC
11875    builtin and then its argument prototype would still apply.  */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 char $ac_func ();
11880 /* The GNU C library defines this for functions which it implements
11881     to always fail with ENOSYS.  Some functions are actually named
11882     something starting with __ and the normal name is an alias.  */
11883 #if defined __stub_$ac_func || defined __stub___$ac_func
11884 choke me
11885 #endif
11886
11887 int
11888 main ()
11889 {
11890 return $ac_func ();
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (ac_try="$ac_link"
11897 case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_link") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11910   { (case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_try") 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; } &&
11919          { ac_try='test -s conftest$ac_exeext'
11920   { (case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_try") 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); }; }; then
11929   eval "$as_ac_var=yes"
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934         eval "$as_ac_var=no"
11935 fi
11936
11937 rm -f core conftest.err conftest.$ac_objext \
11938       conftest$ac_exeext conftest.$ac_ext
11939 fi
11940 ac_res=`eval echo '${'$as_ac_var'}'`
11941                { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11944   cat >>confdefs.h <<_ACEOF
11945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11946 _ACEOF
11947
11948 fi
11949 done
11950
11951
11952
11953
11954 for ac_func in closedir opendir readdir
11955 do
11956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11970 #define $ac_func innocuous_$ac_func
11971
11972 /* System header to define __stub macros and hopefully few prototypes,
11973     which can conflict with char $ac_func (); below.
11974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975     <limits.h> exists even on freestanding compilers.  */
11976
11977 #ifdef __STDC__
11978 # include <limits.h>
11979 #else
11980 # include <assert.h>
11981 #endif
11982
11983 #undef $ac_func
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char $ac_func ();
11992 /* The GNU C library defines this for functions which it implements
11993     to always fail with ENOSYS.  Some functions are actually named
11994     something starting with __ and the normal name is an alias.  */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
11996 choke me
11997 #endif
11998
11999 int
12000 main ()
12001 {
12002 return $ac_func ();
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014   (eval "$ac_link") 2>conftest.er1
12015   ac_status=$?
12016   grep -v '^ *+' conftest.er1 >conftest.err
12017   rm -f conftest.er1
12018   cat conftest.err >&5
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } &&
12021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12022   { (case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_try") 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; } &&
12031          { ac_try='test -s conftest$ac_exeext'
12032   { (case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037   (eval "$ac_try") 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   eval "$as_ac_var=yes"
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046         eval "$as_ac_var=no"
12047 fi
12048
12049 rm -f core conftest.err conftest.$ac_objext \
12050       conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 ac_res=`eval echo '${'$as_ac_var'}'`
12053                { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12055 if test `eval echo '${'$as_ac_var'}'` = yes; then
12056   cat >>confdefs.h <<_ACEOF
12057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12058 _ACEOF
12059
12060 fi
12061 done
12062
12063
12064
12065 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12066 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12067
12068 ICC=no
12069 IXX=no
12070 case $CC in
12071   icc*|icpc*)
12072     ICC=yes
12073     IXX=yes
12074     ;;
12075    *)
12076     ;;
12077 esac
12078
12079 if test "$GCC" != "yes" && test "$ICC" != "yes"
12080 then
12081   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12082 echo "$as_me: error: gcc|icc required but not found" >&2;}
12083    { (exit 1); exit 1; }; }
12084 fi
12085
12086 if test "$GXX" != "yes" && test "$IXX" != "yes"
12087 then
12088   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12089 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12090    { (exit 1); exit 1; }; }
12091 fi
12092
12093 if test "$GCC" = "yes"
12094 then
12095   cat >conftest.$ac_ext <<_ACEOF
12096 #if !defined(__GNUC__) || __GNUC__ < 3
12097 #error Unsupported GCC version
12098 #endif
12099
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (ac_try="$ac_compile"
12103 case "(($ac_try" in
12104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105   *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108   (eval "$ac_compile") 2>conftest.er1
12109   ac_status=$?
12110   grep -v '^ *+' conftest.er1 >conftest.err
12111   rm -f conftest.er1
12112   cat conftest.err >&5
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12116   { (case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_try") 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; } &&
12125          { ac_try='test -s conftest.$ac_objext'
12126   { (case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_try") 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; }; then
12135   :
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12141 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12142    { (exit 1); exit 1; }; }
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 fi
12147
12148 if test -z "$llvm_cv_gnu_make_command"
12149 then
12150   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12151 echo "$as_me: error: GNU Make required but not found" >&2;}
12152    { (exit 1); exit 1; }; }
12153 fi
12154
12155 { echo "$as_me:$LINENO: result: ok" >&5
12156 echo "${ECHO_T}ok" >&6; }
12157
12158 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12159 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12160 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12161
12162 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12163
12164 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12165
12166 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12167 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12168
12169
12170
12171 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12172 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_m_sin+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-lm  $LIBS"
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186    Use char because int might match the return type of a GCC
12187    builtin and then its argument prototype would still apply.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char sin ();
12192 int
12193 main ()
12194 {
12195 return sin ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest$ac_exeext'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   ac_cv_lib_m_sin=yes
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239         ac_cv_lib_m_sin=no
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext \
12243       conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12245 fi
12246 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12247 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12248 if test $ac_cv_lib_m_sin = yes; then
12249   cat >>confdefs.h <<_ACEOF
12250 #define HAVE_LIBM 1
12251 _ACEOF
12252
12253   LIBS="-lm $LIBS"
12254
12255 fi
12256
12257 if test "$llvm_cv_os_type" = "MingW" ; then
12258
12259 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12260 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12261 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-limagehlp  $LIBS"
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272
12273
12274 int
12275 main ()
12276 {
12277 return main ();
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (ac_try="$ac_link"
12284 case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289   (eval "$ac_link") 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } &&
12296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12297   { (case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_try") 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; } &&
12306          { ac_try='test -s conftest$ac_exeext'
12307   { (case "(($ac_try" in
12308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309   *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312   (eval "$ac_try") 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_cv_lib_imagehlp_main=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321         ac_cv_lib_imagehlp_main=no
12322 fi
12323
12324 rm -f core conftest.err conftest.$ac_objext \
12325       conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12327 fi
12328 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12329 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12330 if test $ac_cv_lib_imagehlp_main = yes; then
12331   cat >>confdefs.h <<_ACEOF
12332 #define HAVE_LIBIMAGEHLP 1
12333 _ACEOF
12334
12335   LIBS="-limagehlp $LIBS"
12336
12337 fi
12338
12339
12340 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12341 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12342 if test "${ac_cv_lib_psapi_main+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-lpsapi  $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354
12355 int
12356 main ()
12357 {
12358 return main ();
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367   *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370   (eval "$ac_link") 2>conftest.er1
12371   ac_status=$?
12372   grep -v '^ *+' conftest.er1 >conftest.err
12373   rm -f conftest.er1
12374   cat conftest.err >&5
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } &&
12377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12378   { (case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_try") 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; } &&
12387          { ac_try='test -s conftest$ac_exeext'
12388   { (case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393   (eval "$ac_try") 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; }; then
12397   ac_cv_lib_psapi_main=yes
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402         ac_cv_lib_psapi_main=no
12403 fi
12404
12405 rm -f core conftest.err conftest.$ac_objext \
12406       conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12408 fi
12409 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12410 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12411 if test $ac_cv_lib_psapi_main = yes; then
12412   cat >>confdefs.h <<_ACEOF
12413 #define HAVE_LIBPSAPI 1
12414 _ACEOF
12415
12416   LIBS="-lpsapi $LIBS"
12417
12418 fi
12419
12420 fi
12421
12422 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12423 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12424 if test "${ac_cv_search_dlopen+set}" = set; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427   ac_func_search_save_LIBS=$LIBS
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h.  */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h.  */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436    Use char because int might match the return type of a GCC
12437    builtin and then its argument prototype would still apply.  */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char dlopen ();
12442 int
12443 main ()
12444 {
12445 return dlopen ();
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 for ac_lib in '' dl; do
12451   if test -z "$ac_lib"; then
12452     ac_res="none required"
12453   else
12454     ac_res=-l$ac_lib
12455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12456   fi
12457   rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (ac_try="$ac_link"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_link") 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12472   { (case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_try") 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest$ac_exeext'
12482   { (case "(($ac_try" in
12483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484   *) ac_try_echo=$ac_try;;
12485 esac
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487   (eval "$ac_try") 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_cv_search_dlopen=$ac_res
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext \
12500       conftest$ac_exeext
12501   if test "${ac_cv_search_dlopen+set}" = set; then
12502   break
12503 fi
12504 done
12505 if test "${ac_cv_search_dlopen+set}" = set; then
12506   :
12507 else
12508   ac_cv_search_dlopen=no
12509 fi
12510 rm conftest.$ac_ext
12511 LIBS=$ac_func_search_save_LIBS
12512 fi
12513 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12514 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12515 ac_res=$ac_cv_search_dlopen
12516 if test "$ac_res" != no; then
12517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12518
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_DLOPEN 1
12521 _ACEOF
12522
12523 else
12524   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12525 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12526 fi
12527
12528
12529 if test "$llvm_cv_enable_libffi" = "yes" ; then
12530   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12531 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12532 if test "${ac_cv_search_ffi_call+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   ac_func_search_save_LIBS=$LIBS
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542
12543 /* Override any GCC internal prototype to avoid an error.
12544    Use char because int might match the return type of a GCC
12545    builtin and then its argument prototype would still apply.  */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char ffi_call ();
12550 int
12551 main ()
12552 {
12553 return ffi_call ();
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 for ac_lib in '' ffi; do
12559   if test -z "$ac_lib"; then
12560     ac_res="none required"
12561   else
12562     ac_res=-l$ac_lib
12563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12564   fi
12565   rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572   (eval "$ac_link") 2>conftest.er1
12573   ac_status=$?
12574   grep -v '^ *+' conftest.er1 >conftest.err
12575   rm -f conftest.er1
12576   cat conftest.err >&5
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); } &&
12579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580   { (case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585   (eval "$ac_try") 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; } &&
12589          { ac_try='test -s conftest$ac_exeext'
12590   { (case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_try") 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   ac_cv_search_ffi_call=$ac_res
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604
12605 fi
12606
12607 rm -f core conftest.err conftest.$ac_objext \
12608       conftest$ac_exeext
12609   if test "${ac_cv_search_ffi_call+set}" = set; then
12610   break
12611 fi
12612 done
12613 if test "${ac_cv_search_ffi_call+set}" = set; then
12614   :
12615 else
12616   ac_cv_search_ffi_call=no
12617 fi
12618 rm conftest.$ac_ext
12619 LIBS=$ac_func_search_save_LIBS
12620 fi
12621 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12622 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12623 ac_res=$ac_cv_search_ffi_call
12624 if test "$ac_res" != no; then
12625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12626
12627 cat >>confdefs.h <<\_ACEOF
12628 #define HAVE_FFI_CALL 1
12629 _ACEOF
12630
12631 else
12632   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12633 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12634    { (exit 1); exit 1; }; }
12635 fi
12636
12637 fi
12638
12639 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12640 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12641 if test "${ac_cv_search_mallinfo+set}" = set; then
12642   echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644   ac_func_search_save_LIBS=$LIBS
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651
12652 /* Override any GCC internal prototype to avoid an error.
12653    Use char because int might match the return type of a GCC
12654    builtin and then its argument prototype would still apply.  */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char mallinfo ();
12659 int
12660 main ()
12661 {
12662 return mallinfo ();
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 for ac_lib in '' malloc; do
12668   if test -z "$ac_lib"; then
12669     ac_res="none required"
12670   else
12671     ac_res=-l$ac_lib
12672     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12673   fi
12674   rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_link") 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest$ac_exeext'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708   ac_cv_search_mallinfo=$ac_res
12709 else
12710   echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713
12714 fi
12715
12716 rm -f core conftest.err conftest.$ac_objext \
12717       conftest$ac_exeext
12718   if test "${ac_cv_search_mallinfo+set}" = set; then
12719   break
12720 fi
12721 done
12722 if test "${ac_cv_search_mallinfo+set}" = set; then
12723   :
12724 else
12725   ac_cv_search_mallinfo=no
12726 fi
12727 rm conftest.$ac_ext
12728 LIBS=$ac_func_search_save_LIBS
12729 fi
12730 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12731 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12732 ac_res=$ac_cv_search_mallinfo
12733 if test "$ac_res" != no; then
12734   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_MALLINFO 1
12738 _ACEOF
12739
12740 fi
12741
12742
12743 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12744
12745 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12746 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lpthread  $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char pthread_mutex_init ();
12766 int
12767 main ()
12768 {
12769 return pthread_mutex_init ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789   { (case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794   (eval "$ac_try") 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; } &&
12798          { ac_try='test -s conftest$ac_exeext'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   ac_cv_lib_pthread_pthread_mutex_init=yes
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813         ac_cv_lib_pthread_pthread_mutex_init=no
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext \
12817       conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12821 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12822 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12823   cat >>confdefs.h <<_ACEOF
12824 #define HAVE_LIBPTHREAD 1
12825 _ACEOF
12826
12827   LIBS="-lpthread $LIBS"
12828
12829 fi
12830
12831   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12832 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char pthread_mutex_lock ();
12851 int
12852 main ()
12853 {
12854 return pthread_mutex_lock ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 for ac_lib in '' pthread; do
12860   if test -z "$ac_lib"; then
12861     ac_res="none required"
12862   else
12863     ac_res=-l$ac_lib
12864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12865   fi
12866   rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_link") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } &&
12880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881   { (case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_try") 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest$ac_exeext'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   ac_cv_search_pthread_mutex_lock=$ac_res
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext \
12909       conftest$ac_exeext
12910   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12911   break
12912 fi
12913 done
12914 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12915   :
12916 else
12917   ac_cv_search_pthread_mutex_lock=no
12918 fi
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12921 fi
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12923 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12924 ac_res=$ac_cv_search_pthread_mutex_lock
12925 if test "$ac_res" != no; then
12926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_PTHREAD_MUTEX_LOCK 1
12930 _ACEOF
12931
12932 fi
12933
12934   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12935 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12936 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   ac_func_search_save_LIBS=$LIBS
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946
12947 /* Override any GCC internal prototype to avoid an error.
12948    Use char because int might match the return type of a GCC
12949    builtin and then its argument prototype would still apply.  */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 char pthread_rwlock_init ();
12954 int
12955 main ()
12956 {
12957 return pthread_rwlock_init ();
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 for ac_lib in '' pthread; do
12963   if test -z "$ac_lib"; then
12964     ac_res="none required"
12965   else
12966     ac_res=-l$ac_lib
12967     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12968   fi
12969   rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_link") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984   { (case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_try") 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; } &&
12993          { ac_try='test -s conftest$ac_exeext'
12994   { (case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_try") 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ac_cv_search_pthread_rwlock_init=$ac_res
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008
13009 fi
13010
13011 rm -f core conftest.err conftest.$ac_objext \
13012       conftest$ac_exeext
13013   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13014   break
13015 fi
13016 done
13017 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13018   :
13019 else
13020   ac_cv_search_pthread_rwlock_init=no
13021 fi
13022 rm conftest.$ac_ext
13023 LIBS=$ac_func_search_save_LIBS
13024 fi
13025 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13026 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13027 ac_res=$ac_cv_search_pthread_rwlock_init
13028 if test "$ac_res" != no; then
13029   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13030
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_PTHREAD_RWLOCK_INIT 1
13033 _ACEOF
13034
13035 fi
13036
13037   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13038 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13039 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042   ac_func_search_save_LIBS=$LIBS
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h.  */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h.  */
13049
13050 /* Override any GCC internal prototype to avoid an error.
13051    Use char because int might match the return type of a GCC
13052    builtin and then its argument prototype would still apply.  */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 char pthread_getspecific ();
13057 int
13058 main ()
13059 {
13060 return pthread_getspecific ();
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 for ac_lib in '' pthread; do
13066   if test -z "$ac_lib"; then
13067     ac_res="none required"
13068   else
13069     ac_res=-l$ac_lib
13070     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13071   fi
13072   rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_link") 2>conftest.er1
13080   ac_status=$?
13081   grep -v '^ *+' conftest.er1 >conftest.err
13082   rm -f conftest.er1
13083   cat conftest.err >&5
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; } &&
13096          { ac_try='test -s conftest$ac_exeext'
13097   { (case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_try") 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; }; then
13106   ac_cv_search_pthread_getspecific=$ac_res
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111
13112 fi
13113
13114 rm -f core conftest.err conftest.$ac_objext \
13115       conftest$ac_exeext
13116   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13117   break
13118 fi
13119 done
13120 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13121   :
13122 else
13123   ac_cv_search_pthread_getspecific=no
13124 fi
13125 rm conftest.$ac_ext
13126 LIBS=$ac_func_search_save_LIBS
13127 fi
13128 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13129 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13130 ac_res=$ac_cv_search_pthread_getspecific
13131 if test "$ac_res" != no; then
13132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_PTHREAD_GETSPECIFIC 1
13136 _ACEOF
13137
13138 fi
13139
13140 fi
13141
13142
13143 # Check whether --with-udis86 was given.
13144 if test "${with_udis86+set}" = set; then
13145   withval=$with_udis86;
13146       USE_UDIS86=1
13147
13148       case "$withval" in
13149         /usr/lib|yes) ;;
13150         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13151       esac
13152
13153 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13154 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13155 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13156   echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158   ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-ludis86  $LIBS"
13160 cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166
13167 /* Override any GCC internal prototype to avoid an error.
13168    Use char because int might match the return type of a GCC
13169    builtin and then its argument prototype would still apply.  */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 char ud_init ();
13174 int
13175 main ()
13176 {
13177 return ud_init ();
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_link") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197   { (case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_try") 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; } &&
13206          { ac_try='test -s conftest$ac_exeext'
13207   { (case "(($ac_try" in
13208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209   *) ac_try_echo=$ac_try;;
13210 esac
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212   (eval "$ac_try") 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   ac_cv_lib_udis86_ud_init=yes
13217 else
13218   echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221         ac_cv_lib_udis86_ud_init=no
13222 fi
13223
13224 rm -f core conftest.err conftest.$ac_objext \
13225       conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13227 fi
13228 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13229 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13230 if test $ac_cv_lib_udis86_ud_init = yes; then
13231   cat >>confdefs.h <<_ACEOF
13232 #define HAVE_LIBUDIS86 1
13233 _ACEOF
13234
13235   LIBS="-ludis86 $LIBS"
13236
13237 else
13238
13239         echo "Error! You need to have libudis86 around."
13240         exit -1
13241
13242 fi
13243
13244
13245 else
13246   USE_UDIS86=0
13247
13248 fi
13249
13250
13251 cat >>confdefs.h <<_ACEOF
13252 #define USE_UDIS86 $USE_UDIS86
13253 _ACEOF
13254
13255
13256
13257 # Check whether --with-oprofile was given.
13258 if test "${with_oprofile+set}" = set; then
13259   withval=$with_oprofile;
13260       USE_OPROFILE=1
13261
13262       case "$withval" in
13263         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13264         no) llvm_cv_oppath=
13265             USE_OPROFILE=0
13266  ;;
13267         *) llvm_cv_oppath="${withval}/lib/oprofile"
13268            CPPFLAGS="-I${withval}/include";;
13269       esac
13270       case $llvm_cv_os_type in
13271         Linux)
13272           if test -n "$llvm_cv_oppath" ; then
13273             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13274                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13275 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13276 if test "${ac_cv_search_bfd_init+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   ac_func_search_save_LIBS=$LIBS
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char bfd_init ();
13294 int
13295 main ()
13296 {
13297 return bfd_init ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 for ac_lib in '' bfd; do
13303   if test -z "$ac_lib"; then
13304     ac_res="none required"
13305   else
13306     ac_res=-l$ac_lib
13307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13308   fi
13309   rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_link") 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } &&
13323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; } &&
13333          { ac_try='test -s conftest$ac_exeext'
13334   { (case "(($ac_try" in
13335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336   *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339   (eval "$ac_try") 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); }; }; then
13343   ac_cv_search_bfd_init=$ac_res
13344 else
13345   echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348
13349 fi
13350
13351 rm -f core conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext
13353   if test "${ac_cv_search_bfd_init+set}" = set; then
13354   break
13355 fi
13356 done
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
13358   :
13359 else
13360   ac_cv_search_bfd_init=no
13361 fi
13362 rm conftest.$ac_ext
13363 LIBS=$ac_func_search_save_LIBS
13364 fi
13365 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13366 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13367 ac_res=$ac_cv_search_bfd_init
13368 if test "$ac_res" != no; then
13369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13370
13371 fi
13372
13373             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13374 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13375 if test "${ac_cv_search_op_open_agent+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   ac_func_search_save_LIBS=$LIBS
13379 cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385
13386 /* Override any GCC internal prototype to avoid an error.
13387    Use char because int might match the return type of a GCC
13388    builtin and then its argument prototype would still apply.  */
13389 #ifdef __cplusplus
13390 extern "C"
13391 #endif
13392 char op_open_agent ();
13393 int
13394 main ()
13395 {
13396 return op_open_agent ();
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 for ac_lib in '' opagent; do
13402   if test -z "$ac_lib"; then
13403     ac_res="none required"
13404   else
13405     ac_res=-l$ac_lib
13406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13407   fi
13408   rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (ac_try="$ac_link"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_link") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; } &&
13432          { ac_try='test -s conftest$ac_exeext'
13433   { (case "(($ac_try" in
13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435   *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438   (eval "$ac_try") 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   ac_cv_search_op_open_agent=$ac_res
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447
13448 fi
13449
13450 rm -f core conftest.err conftest.$ac_objext \
13451       conftest$ac_exeext
13452   if test "${ac_cv_search_op_open_agent+set}" = set; then
13453   break
13454 fi
13455 done
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
13457   :
13458 else
13459   ac_cv_search_op_open_agent=no
13460 fi
13461 rm conftest.$ac_ext
13462 LIBS=$ac_func_search_save_LIBS
13463 fi
13464 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13465 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13466 ac_res=$ac_cv_search_op_open_agent
13467 if test "$ac_res" != no; then
13468   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13469
13470 else
13471
13472               echo "Error! You need to have libopagent around."
13473               exit -1
13474
13475 fi
13476
13477             if test "${ac_cv_header_opagent_h+set}" = set; then
13478   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13479 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13480 if test "${ac_cv_header_opagent_h+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 fi
13483 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13485 else
13486   # Is the header compilable?
13487 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13488 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 $ac_includes_default
13496 #include <opagent.h>
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (ac_try="$ac_compile"
13500 case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_compile") 2>conftest.er1
13506   ac_status=$?
13507   grep -v '^ *+' conftest.er1 >conftest.err
13508   rm -f conftest.er1
13509   cat conftest.err >&5
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13513   { (case "(($ac_try" in
13514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515   *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518   (eval "$ac_try") 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; } &&
13522          { ac_try='test -s conftest.$ac_objext'
13523   { (case "(($ac_try" in
13524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525   *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528   (eval "$ac_try") 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   ac_header_compiler=yes
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537         ac_header_compiler=no
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 echo "${ECHO_T}$ac_header_compiler" >&6; }
13543
13544 # Is the header present?
13545 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13546 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 #include <opagent.h>
13554 _ACEOF
13555 if { (ac_try="$ac_cpp conftest.$ac_ext"
13556 case "(($ac_try" in
13557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558   *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } >/dev/null; then
13568   if test -s conftest.err; then
13569     ac_cpp_err=$ac_c_preproc_warn_flag
13570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13571   else
13572     ac_cpp_err=
13573   fi
13574 else
13575   ac_cpp_err=yes
13576 fi
13577 if test -z "$ac_cpp_err"; then
13578   ac_header_preproc=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583   ac_header_preproc=no
13584 fi
13585
13586 rm -f conftest.err conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 echo "${ECHO_T}$ac_header_preproc" >&6; }
13589
13590 # So?  What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592   yes:no: )
13593     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13596 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13597     ac_header_preproc=yes
13598     ;;
13599   no:yes:* )
13600     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13601 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13603 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13604     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13605 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13606     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13607 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13608     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13609 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13610     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13611 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13612     ( cat <<\_ASBOX
13613 ## ------------------------------------ ##
13614 ## Report this to http://llvm.org/bugs/ ##
13615 ## ------------------------------------ ##
13616 _ASBOX
13617      ) | sed "s/^/$as_me: WARNING:     /" >&2
13618     ;;
13619 esac
13620 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13621 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13622 if test "${ac_cv_header_opagent_h+set}" = set; then
13623   echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625   ac_cv_header_opagent_h=$ac_header_preproc
13626 fi
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13629
13630 fi
13631 if test $ac_cv_header_opagent_h = yes; then
13632   :
13633 else
13634
13635               echo "Error! You need to have opagent.h around."
13636               exit -1
13637
13638 fi
13639
13640
13641           fi ;;
13642         *)
13643           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13644 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13645    { (exit 1); exit 1; }; } ;;
13646       esac
13647
13648 else
13649
13650       USE_OPROFILE=0
13651
13652
13653 fi
13654
13655
13656 cat >>confdefs.h <<_ACEOF
13657 #define LLVM_USE_OPROFILE $USE_OPROFILE
13658 _ACEOF
13659
13660
13661
13662 # Check whether --with-intel-jitevents was given.
13663 if test "${with_intel_jitevents+set}" = set; then
13664   withval=$with_intel_jitevents;
13665       case $llvm_cv_os_type in
13666         Linux|Win32|Cygwin|MingW) ;;
13667         *)
13668           { { echo "$as_me:$LINENO: error:
13669             Intel JIT API support is available on Linux and Windows only.\"" >&5
13670 echo "$as_me: error:
13671             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13672    { (exit 1); exit 1; }; } ;;
13673       esac
13674
13675       USE_INTEL_JITEVENTS=1
13676
13677       case "$llvm_cv_target_arch" in
13678         x86)    llvm_intel_jitevents_archdir="lib32";;
13679         x86_64) llvm_intel_jitevents_archdir="lib64";;
13680         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13681                 exit -1;;
13682       esac
13683       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13684       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13685       case "$withval" in
13686         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13687                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13688         *) ;;
13689
13690       esac
13691
13692
13693
13694
13695       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13696       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13697
13698       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13699 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13700 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   ac_func_search_save_LIBS=$LIBS
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710
13711 /* Override any GCC internal prototype to avoid an error.
13712    Use char because int might match the return type of a GCC
13713    builtin and then its argument prototype would still apply.  */
13714 #ifdef __cplusplus
13715 extern "C"
13716 #endif
13717 char iJIT_IsProfilingActive ();
13718 int
13719 main ()
13720 {
13721 return iJIT_IsProfilingActive ();
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 for ac_lib in '' jitprofiling; do
13727   if test -z "$ac_lib"; then
13728     ac_res="none required"
13729   else
13730     ac_res=-l$ac_lib
13731     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13732   fi
13733   rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_link") 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748   { (case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_try") 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; } &&
13757          { ac_try='test -s conftest$ac_exeext'
13758   { (case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "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); }; }; then
13767   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772
13773 fi
13774
13775 rm -f core conftest.err conftest.$ac_objext \
13776       conftest$ac_exeext
13777   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13778   break
13779 fi
13780 done
13781 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13782   :
13783 else
13784   ac_cv_search_iJIT_IsProfilingActive=no
13785 fi
13786 rm conftest.$ac_ext
13787 LIBS=$ac_func_search_save_LIBS
13788 fi
13789 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13790 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13791 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13792 if test "$ac_res" != no; then
13793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13794
13795 else
13796
13797         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13798         exit -1
13799
13800 fi
13801
13802       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13803   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13804 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 fi
13808 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13810 else
13811   # Is the header compilable?
13812 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13813 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 $ac_includes_default
13821 #include <jitprofiling.h>
13822 _ACEOF
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_compile") 2>conftest.er1
13831   ac_status=$?
13832   grep -v '^ *+' conftest.er1 >conftest.err
13833   rm -f conftest.er1
13834   cat conftest.err >&5
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } &&
13837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838   { (case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843   (eval "$ac_try") 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; } &&
13847          { ac_try='test -s conftest.$ac_objext'
13848   { (case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_try") 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   ac_header_compiler=yes
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862         ac_header_compiler=no
13863 fi
13864
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868
13869 # Is the header present?
13870 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13871 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 #include <jitprofiling.h>
13879 _ACEOF
13880 if { (ac_try="$ac_cpp conftest.$ac_ext"
13881 case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } >/dev/null; then
13893   if test -s conftest.err; then
13894     ac_cpp_err=$ac_c_preproc_warn_flag
13895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13896   else
13897     ac_cpp_err=
13898   fi
13899 else
13900   ac_cpp_err=yes
13901 fi
13902 if test -z "$ac_cpp_err"; then
13903   ac_header_preproc=yes
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908   ac_header_preproc=no
13909 fi
13910
13911 rm -f conftest.err conftest.$ac_ext
13912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13913 echo "${ECHO_T}$ac_header_preproc" >&6; }
13914
13915 # So?  What about this header?
13916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13917   yes:no: )
13918     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13919 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13920     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13921 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13922     ac_header_preproc=yes
13923     ;;
13924   no:yes:* )
13925     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13926 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13927     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13928 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13929     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13930 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13931     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13932 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13933     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13934 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13935     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13936 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13937     ( cat <<\_ASBOX
13938 ## ------------------------------------ ##
13939 ## Report this to http://llvm.org/bugs/ ##
13940 ## ------------------------------------ ##
13941 _ASBOX
13942      ) | sed "s/^/$as_me: WARNING:     /" >&2
13943     ;;
13944 esac
13945 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13946 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13947 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   ac_cv_header_jitprofiling_h=$ac_header_preproc
13951 fi
13952 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13953 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13954
13955 fi
13956 if test $ac_cv_header_jitprofiling_h = yes; then
13957   :
13958 else
13959
13960         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13961         exit -1
13962
13963 fi
13964
13965
13966
13967
13968 else
13969
13970       USE_INTEL_JITEVENTS=0
13971
13972
13973 fi
13974
13975
13976 cat >>confdefs.h <<_ACEOF
13977 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13978 _ACEOF
13979
13980
13981
13982
13983
13984
13985
13986
13987 ac_header_dirent=no
13988 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13989   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13990 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13991 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 #include <sys/types.h>
14002 #include <$ac_hdr>
14003
14004 int
14005 main ()
14006 {
14007 if ((DIR *) 0)
14008 return 0;
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (ac_try="$ac_compile"
14015 case "(($ac_try" in
14016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017   *) ac_try_echo=$ac_try;;
14018 esac
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020   (eval "$ac_compile") 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028   { (case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033   (eval "$ac_try") 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest.$ac_objext'
14038   { (case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043   (eval "$ac_try") 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   eval "$as_ac_Header=yes"
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052         eval "$as_ac_Header=no"
14053 fi
14054
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056 fi
14057 ac_res=`eval echo '${'$as_ac_Header'}'`
14058                { echo "$as_me:$LINENO: result: $ac_res" >&5
14059 echo "${ECHO_T}$ac_res" >&6; }
14060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14061   cat >>confdefs.h <<_ACEOF
14062 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14063 _ACEOF
14064
14065 ac_header_dirent=$ac_hdr; break
14066 fi
14067
14068 done
14069 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14070 if test $ac_header_dirent = dirent.h; then
14071   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14073 if test "${ac_cv_search_opendir+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   ac_func_search_save_LIBS=$LIBS
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h.  */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h.  */
14083
14084 /* Override any GCC internal prototype to avoid an error.
14085    Use char because int might match the return type of a GCC
14086    builtin and then its argument prototype would still apply.  */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 char opendir ();
14091 int
14092 main ()
14093 {
14094 return opendir ();
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 for ac_lib in '' dir; do
14100   if test -z "$ac_lib"; then
14101     ac_res="none required"
14102   else
14103     ac_res=-l$ac_lib
14104     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14105   fi
14106   rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_link") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121   { (case "(($ac_try" in
14122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123   *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126   (eval "$ac_try") 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; } &&
14130          { ac_try='test -s conftest$ac_exeext'
14131   { (case "(($ac_try" in
14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133   *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136   (eval "$ac_try") 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   ac_cv_search_opendir=$ac_res
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145
14146 fi
14147
14148 rm -f core conftest.err conftest.$ac_objext \
14149       conftest$ac_exeext
14150   if test "${ac_cv_search_opendir+set}" = set; then
14151   break
14152 fi
14153 done
14154 if test "${ac_cv_search_opendir+set}" = set; then
14155   :
14156 else
14157   ac_cv_search_opendir=no
14158 fi
14159 rm conftest.$ac_ext
14160 LIBS=$ac_func_search_save_LIBS
14161 fi
14162 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14163 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14164 ac_res=$ac_cv_search_opendir
14165 if test "$ac_res" != no; then
14166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14167
14168 fi
14169
14170 else
14171   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14172 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_opendir+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183
14184 /* Override any GCC internal prototype to avoid an error.
14185    Use char because int might match the return type of a GCC
14186    builtin and then its argument prototype would still apply.  */
14187 #ifdef __cplusplus
14188 extern "C"
14189 #endif
14190 char opendir ();
14191 int
14192 main ()
14193 {
14194 return opendir ();
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 for ac_lib in '' x; do
14200   if test -z "$ac_lib"; then
14201     ac_res="none required"
14202   else
14203     ac_res=-l$ac_lib
14204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14205   fi
14206   rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_link") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest$ac_exeext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_search_opendir=$ac_res
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext \
14249       conftest$ac_exeext
14250   if test "${ac_cv_search_opendir+set}" = set; then
14251   break
14252 fi
14253 done
14254 if test "${ac_cv_search_opendir+set}" = set; then
14255   :
14256 else
14257   ac_cv_search_opendir=no
14258 fi
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14261 fi
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14263 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14264 ac_res=$ac_cv_search_opendir
14265 if test "$ac_res" != no; then
14266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
14268 fi
14269
14270 fi
14271
14272 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14273 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14274 if test "${ac_cv_header_mmap_anon+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277    ac_ext=c
14278 ac_cpp='$CPP $CPPFLAGS'
14279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
14283   cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 #include <sys/mman.h>
14290 #include <unistd.h>
14291 #include <fcntl.h>
14292 int
14293 main ()
14294 {
14295 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14296   ;
14297   return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304   *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307   (eval "$ac_compile") 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315   { (case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; } &&
14324          { ac_try='test -s conftest.$ac_objext'
14325   { (case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_try") 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   ac_cv_header_mmap_anon=yes
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339         ac_cv_header_mmap_anon=no
14340 fi
14341
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343   ac_ext=c
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349
14350 fi
14351 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14352 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14353 if test "$ac_cv_header_mmap_anon" = yes; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_MMAP_ANONYMOUS 1
14357 _ACEOF
14358
14359 fi
14360
14361 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14362 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14363 if test "${ac_cv_header_stat_broken+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h.  */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h.  */
14372 #include <sys/types.h>
14373 #include <sys/stat.h>
14374
14375 #if defined S_ISBLK && defined S_IFDIR
14376 # if S_ISBLK (S_IFDIR)
14377 You lose.
14378 # endif
14379 #endif
14380
14381 #if defined S_ISBLK && defined S_IFCHR
14382 # if S_ISBLK (S_IFCHR)
14383 You lose.
14384 # endif
14385 #endif
14386
14387 #if defined S_ISLNK && defined S_IFREG
14388 # if S_ISLNK (S_IFREG)
14389 You lose.
14390 # endif
14391 #endif
14392
14393 #if defined S_ISSOCK && defined S_IFREG
14394 # if S_ISSOCK (S_IFREG)
14395 You lose.
14396 # endif
14397 #endif
14398
14399 _ACEOF
14400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401   $EGREP "You lose" >/dev/null 2>&1; then
14402   ac_cv_header_stat_broken=yes
14403 else
14404   ac_cv_header_stat_broken=no
14405 fi
14406 rm -f conftest*
14407
14408 fi
14409 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14410 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14411 if test $ac_cv_header_stat_broken = yes; then
14412
14413 cat >>confdefs.h <<\_ACEOF
14414 #define STAT_MACROS_BROKEN 1
14415 _ACEOF
14416
14417 fi
14418
14419 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14420 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14421 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424   cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430 #include <sys/types.h>
14431 #include <sys/wait.h>
14432 #ifndef WEXITSTATUS
14433 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14434 #endif
14435 #ifndef WIFEXITED
14436 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14437 #endif
14438
14439 int
14440 main ()
14441 {
14442   int s;
14443   wait (&s);
14444   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456   (eval "$ac_compile") 2>conftest.er1
14457   ac_status=$?
14458   grep -v '^ *+' conftest.er1 >conftest.err
14459   rm -f conftest.er1
14460   cat conftest.err >&5
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); } &&
14463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464   { (case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_try") 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_try") 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   ac_cv_header_sys_wait_h=yes
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488         ac_cv_header_sys_wait_h=no
14489 fi
14490
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14495 if test $ac_cv_header_sys_wait_h = yes; then
14496
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_SYS_WAIT_H 1
14499 _ACEOF
14500
14501 fi
14502
14503 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14504 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14505 if test "${ac_cv_header_time+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 #include <sys/types.h>
14515 #include <sys/time.h>
14516 #include <time.h>
14517
14518 int
14519 main ()
14520 {
14521 if ((struct tm *) 0)
14522 return 0;
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 if { (ac_try="$ac_compile"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_compile") 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542   { (case "(($ac_try" in
14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544   *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547   (eval "$ac_try") 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; } &&
14551          { ac_try='test -s conftest.$ac_objext'
14552   { (case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557   (eval "$ac_try") 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; }; then
14561   ac_cv_header_time=yes
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566         ac_cv_header_time=no
14567 fi
14568
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14572 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14573 if test $ac_cv_header_time = yes; then
14574
14575 cat >>confdefs.h <<\_ACEOF
14576 #define TIME_WITH_SYS_TIME 1
14577 _ACEOF
14578
14579 fi
14580
14581
14582
14583
14584
14585
14586
14587
14588 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14589 do
14590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 fi
14597 ac_res=`eval echo '${'$as_ac_Header'}'`
14598                { echo "$as_me:$LINENO: result: $ac_res" >&5
14599 echo "${ECHO_T}$ac_res" >&6; }
14600 else
14601   # Is the header compilable?
14602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 $ac_includes_default
14611 #include <$ac_header>
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620   (eval "$ac_compile") 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628   { (case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_try") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_header_compiler=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652         ac_header_compiler=no
14653 fi
14654
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14658
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h.  */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h.  */
14668 #include <$ac_header>
14669 _ACEOF
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673   *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } >/dev/null; then
14683   if test -s conftest.err; then
14684     ac_cpp_err=$ac_c_preproc_warn_flag
14685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686   else
14687     ac_cpp_err=
14688   fi
14689 else
14690   ac_cpp_err=yes
14691 fi
14692 if test -z "$ac_cpp_err"; then
14693   ac_header_preproc=yes
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698   ac_header_preproc=no
14699 fi
14700
14701 rm -f conftest.err conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703 echo "${ECHO_T}$ac_header_preproc" >&6; }
14704
14705 # So?  What about this header?
14706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14707   yes:no: )
14708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712     ac_header_preproc=yes
14713     ;;
14714   no:yes:* )
14715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14727     ( cat <<\_ASBOX
14728 ## ------------------------------------ ##
14729 ## Report this to http://llvm.org/bugs/ ##
14730 ## ------------------------------------ ##
14731 _ASBOX
14732      ) | sed "s/^/$as_me: WARNING:     /" >&2
14733     ;;
14734 esac
14735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738   echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740   eval "$as_ac_Header=\$ac_header_preproc"
14741 fi
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743                { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14745
14746 fi
14747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748   cat >>confdefs.h <<_ACEOF
14749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14750 _ACEOF
14751
14752 fi
14753
14754 done
14755
14756
14757
14758
14759
14760
14761
14762 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14763 do
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 fi
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772                { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774 else
14775   # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 $ac_includes_default
14785 #include <$ac_header>
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_compile") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   ac_header_compiler=yes
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826         ac_header_compiler=no
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14832
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 #include <$ac_header>
14843 _ACEOF
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } >/dev/null; then
14857   if test -s conftest.err; then
14858     ac_cpp_err=$ac_c_preproc_warn_flag
14859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860   else
14861     ac_cpp_err=
14862   fi
14863 else
14864   ac_cpp_err=yes
14865 fi
14866 if test -z "$ac_cpp_err"; then
14867   ac_header_preproc=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872   ac_header_preproc=no
14873 fi
14874
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14878
14879 # So?  What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881   yes:no: )
14882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886     ac_header_preproc=yes
14887     ;;
14888   no:yes:* )
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14901     ( cat <<\_ASBOX
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14905 _ASBOX
14906      ) | sed "s/^/$as_me: WARNING:     /" >&2
14907     ;;
14908 esac
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   eval "$as_ac_Header=\$ac_header_preproc"
14915 fi
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917                { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919
14920 fi
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922   cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926 fi
14927
14928 done
14929
14930
14931
14932 for ac_header in utime.h windows.h
14933 do
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 fi
14941 ac_res=`eval echo '${'$as_ac_Header'}'`
14942                { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14944 else
14945   # Is the header compilable?
14946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 $ac_includes_default
14955 #include <$ac_header>
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_compile") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972   { (case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_try") 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; } &&
14981          { ac_try='test -s conftest.$ac_objext'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991   ac_header_compiler=yes
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996         ac_header_compiler=no
14997 fi
14998
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6; }
15002
15003 # Is the header present?
15004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <$ac_header>
15013 _ACEOF
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } >/dev/null; then
15027   if test -s conftest.err; then
15028     ac_cpp_err=$ac_c_preproc_warn_flag
15029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030   else
15031     ac_cpp_err=
15032   fi
15033 else
15034   ac_cpp_err=yes
15035 fi
15036 if test -z "$ac_cpp_err"; then
15037   ac_header_preproc=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042   ac_header_preproc=no
15043 fi
15044
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15048
15049 # So?  What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051   yes:no: )
15052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056     ac_header_preproc=yes
15057     ;;
15058   no:yes:* )
15059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15071     ( cat <<\_ASBOX
15072 ## ------------------------------------ ##
15073 ## Report this to http://llvm.org/bugs/ ##
15074 ## ------------------------------------ ##
15075 _ASBOX
15076      ) | sed "s/^/$as_me: WARNING:     /" >&2
15077     ;;
15078 esac
15079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   eval "$as_ac_Header=\$ac_header_preproc"
15085 fi
15086 ac_res=`eval echo '${'$as_ac_Header'}'`
15087                { echo "$as_me:$LINENO: result: $ac_res" >&5
15088 echo "${ECHO_T}$ac_res" >&6; }
15089
15090 fi
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092   cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 fi
15097
15098 done
15099
15100
15101
15102
15103
15104
15105 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15106 do
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 fi
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115                { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15117 else
15118   # Is the header compilable?
15119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127 $ac_includes_default
15128 #include <$ac_header>
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_compile") 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145   { (case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_try") 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_try") 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_header_compiler=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169         ac_header_compiler=no
15170 fi
15171
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174 echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176 # Is the header present?
15177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 #include <$ac_header>
15186 _ACEOF
15187 if { (ac_try="$ac_cpp conftest.$ac_ext"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } >/dev/null; then
15200   if test -s conftest.err; then
15201     ac_cpp_err=$ac_c_preproc_warn_flag
15202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203   else
15204     ac_cpp_err=
15205   fi
15206 else
15207   ac_cpp_err=yes
15208 fi
15209 if test -z "$ac_cpp_err"; then
15210   ac_header_preproc=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215   ac_header_preproc=no
15216 fi
15217
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222 # So?  What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224   yes:no: )
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229     ac_header_preproc=yes
15230     ;;
15231   no:yes:* )
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244     ( cat <<\_ASBOX
15245 ## ------------------------------------ ##
15246 ## Report this to http://llvm.org/bugs/ ##
15247 ## ------------------------------------ ##
15248 _ASBOX
15249      ) | sed "s/^/$as_me: WARNING:     /" >&2
15250     ;;
15251 esac
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   eval "$as_ac_Header=\$ac_header_preproc"
15258 fi
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262
15263 fi
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265   cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267 _ACEOF
15268
15269 fi
15270
15271 done
15272
15273
15274
15275
15276
15277 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15278 do
15279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 fi
15286 ac_res=`eval echo '${'$as_ac_Header'}'`
15287                { echo "$as_me:$LINENO: result: $ac_res" >&5
15288 echo "${ECHO_T}$ac_res" >&6; }
15289 else
15290   # Is the header compilable?
15291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 $ac_includes_default
15300 #include <$ac_header>
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_compile") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317   { (case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_try") 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } &&
15326          { ac_try='test -s conftest.$ac_objext'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_header_compiler=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341         ac_header_compiler=no
15342 fi
15343
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346 echo "${ECHO_T}$ac_header_compiler" >&6; }
15347
15348 # Is the header present?
15349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357 #include <$ac_header>
15358 _ACEOF
15359 if { (ac_try="$ac_cpp conftest.$ac_ext"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } >/dev/null; then
15372   if test -s conftest.err; then
15373     ac_cpp_err=$ac_c_preproc_warn_flag
15374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15375   else
15376     ac_cpp_err=
15377   fi
15378 else
15379   ac_cpp_err=yes
15380 fi
15381 if test -z "$ac_cpp_err"; then
15382   ac_header_preproc=yes
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387   ac_header_preproc=no
15388 fi
15389
15390 rm -f conftest.err conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392 echo "${ECHO_T}$ac_header_preproc" >&6; }
15393
15394 # So?  What about this header?
15395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15396   yes:no: )
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15401     ac_header_preproc=yes
15402     ;;
15403   no:yes:* )
15404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15416     ( cat <<\_ASBOX
15417 ## ------------------------------------ ##
15418 ## Report this to http://llvm.org/bugs/ ##
15419 ## ------------------------------------ ##
15420 _ASBOX
15421      ) | sed "s/^/$as_me: WARNING:     /" >&2
15422     ;;
15423 esac
15424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   eval "$as_ac_Header=\$ac_header_preproc"
15430 fi
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432                { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15434
15435 fi
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437   cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15439 _ACEOF
15440
15441 fi
15442
15443 done
15444
15445
15446 for ac_header in valgrind/valgrind.h
15447 do
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 fi
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456                { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458 else
15459   # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 $ac_includes_default
15469 #include <$ac_header>
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475   *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478   (eval "$ac_compile") 2>conftest.er1
15479   ac_status=$?
15480   grep -v '^ *+' conftest.er1 >conftest.err
15481   rm -f conftest.er1
15482   cat conftest.err >&5
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } &&
15485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486   { (case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_try") 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; } &&
15495          { ac_try='test -s conftest.$ac_objext'
15496   { (case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_try") 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }; then
15505   ac_header_compiler=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510         ac_header_compiler=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6; }
15516
15517 # Is the header present?
15518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 #include <$ac_header>
15527 _ACEOF
15528 if { (ac_try="$ac_cpp conftest.$ac_ext"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535   ac_status=$?
15536   grep -v '^ *+' conftest.er1 >conftest.err
15537   rm -f conftest.er1
15538   cat conftest.err >&5
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); } >/dev/null; then
15541   if test -s conftest.err; then
15542     ac_cpp_err=$ac_c_preproc_warn_flag
15543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544   else
15545     ac_cpp_err=
15546   fi
15547 else
15548   ac_cpp_err=yes
15549 fi
15550 if test -z "$ac_cpp_err"; then
15551   ac_header_preproc=yes
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556   ac_header_preproc=no
15557 fi
15558
15559 rm -f conftest.err conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6; }
15562
15563 # So?  What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565   yes:no: )
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570     ac_header_preproc=yes
15571     ;;
15572   no:yes:* )
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585     ( cat <<\_ASBOX
15586 ## ------------------------------------ ##
15587 ## Report this to http://llvm.org/bugs/ ##
15588 ## ------------------------------------ ##
15589 _ASBOX
15590      ) | sed "s/^/$as_me: WARNING:     /" >&2
15591     ;;
15592 esac
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   eval "$as_ac_Header=\$ac_header_preproc"
15599 fi
15600 ac_res=`eval echo '${'$as_ac_Header'}'`
15601                { echo "$as_me:$LINENO: result: $ac_res" >&5
15602 echo "${ECHO_T}$ac_res" >&6; }
15603
15604 fi
15605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606   cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 _ACEOF
15609
15610 fi
15611
15612 done
15613
15614
15615 for ac_header in fenv.h
15616 do
15617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 fi
15624 ac_res=`eval echo '${'$as_ac_Header'}'`
15625                { echo "$as_me:$LINENO: result: $ac_res" >&5
15626 echo "${ECHO_T}$ac_res" >&6; }
15627 else
15628   # Is the header compilable?
15629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637 $ac_includes_default
15638 #include <$ac_header>
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (ac_try="$ac_compile"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_compile") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655   { (case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_try") 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest.$ac_objext'
15665   { (case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_try") 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); }; }; then
15674   ac_header_compiler=yes
15675 else
15676   echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679         ac_header_compiler=no
15680 fi
15681
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15684 echo "${ECHO_T}$ac_header_compiler" >&6; }
15685
15686 # Is the header present?
15687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695 #include <$ac_header>
15696 _ACEOF
15697 if { (ac_try="$ac_cpp conftest.$ac_ext"
15698 case "(($ac_try" in
15699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700   *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } >/dev/null; then
15710   if test -s conftest.err; then
15711     ac_cpp_err=$ac_c_preproc_warn_flag
15712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15713   else
15714     ac_cpp_err=
15715   fi
15716 else
15717   ac_cpp_err=yes
15718 fi
15719 if test -z "$ac_cpp_err"; then
15720   ac_header_preproc=yes
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725   ac_header_preproc=no
15726 fi
15727
15728 rm -f conftest.err conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15730 echo "${ECHO_T}$ac_header_preproc" >&6; }
15731
15732 # So?  What about this header?
15733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15734   yes:no: )
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15739     ac_header_preproc=yes
15740     ;;
15741   no:yes:* )
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15754     ( cat <<\_ASBOX
15755 ## ------------------------------------ ##
15756 ## Report this to http://llvm.org/bugs/ ##
15757 ## ------------------------------------ ##
15758 _ASBOX
15759      ) | sed "s/^/$as_me: WARNING:     /" >&2
15760     ;;
15761 esac
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767   eval "$as_ac_Header=\$ac_header_preproc"
15768 fi
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770                { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15772
15773 fi
15774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15775   cat >>confdefs.h <<_ACEOF
15776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15777 _ACEOF
15778
15779 fi
15780
15781 done
15782
15783 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15784
15785 for ac_header in pthread.h
15786 do
15787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 fi
15794 ac_res=`eval echo '${'$as_ac_Header'}'`
15795                { echo "$as_me:$LINENO: result: $ac_res" >&5
15796 echo "${ECHO_T}$ac_res" >&6; }
15797 else
15798   # Is the header compilable?
15799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 $ac_includes_default
15808 #include <$ac_header>
15809 _ACEOF
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_compile") 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } &&
15824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15825   { (case "(($ac_try" in
15826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827   *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830   (eval "$ac_try") 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; } &&
15834          { ac_try='test -s conftest.$ac_objext'
15835   { (case "(($ac_try" in
15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837   *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840   (eval "$ac_try") 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; }; then
15844   ac_header_compiler=yes
15845 else
15846   echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849         ac_header_compiler=no
15850 fi
15851
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15854 echo "${ECHO_T}$ac_header_compiler" >&6; }
15855
15856 # Is the header present?
15857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15865 #include <$ac_header>
15866 _ACEOF
15867 if { (ac_try="$ac_cpp conftest.$ac_ext"
15868 case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } >/dev/null; then
15880   if test -s conftest.err; then
15881     ac_cpp_err=$ac_c_preproc_warn_flag
15882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883   else
15884     ac_cpp_err=
15885   fi
15886 else
15887   ac_cpp_err=yes
15888 fi
15889 if test -z "$ac_cpp_err"; then
15890   ac_header_preproc=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895   ac_header_preproc=no
15896 fi
15897
15898 rm -f conftest.err conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900 echo "${ECHO_T}$ac_header_preproc" >&6; }
15901
15902 # So?  What about this header?
15903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15904   yes:no: )
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15909     ac_header_preproc=yes
15910     ;;
15911   no:yes:* )
15912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15924     ( cat <<\_ASBOX
15925 ## ------------------------------------ ##
15926 ## Report this to http://llvm.org/bugs/ ##
15927 ## ------------------------------------ ##
15928 _ASBOX
15929      ) | sed "s/^/$as_me: WARNING:     /" >&2
15930     ;;
15931 esac
15932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   eval "$as_ac_Header=\$ac_header_preproc"
15938 fi
15939 ac_res=`eval echo '${'$as_ac_Header'}'`
15940                { echo "$as_me:$LINENO: result: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15942
15943 fi
15944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15945   cat >>confdefs.h <<_ACEOF
15946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 _ACEOF
15948  HAVE_PTHREAD=1
15949
15950 else
15951   HAVE_PTHREAD=0
15952
15953 fi
15954
15955 done
15956
15957 else
15958   HAVE_PTHREAD=0
15959
15960 fi
15961
15962 if test "$llvm_cv_enable_libffi" = "yes" ; then
15963
15964
15965 for ac_header in ffi.h ffi/ffi.h
15966 do
15967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 fi
15974 ac_res=`eval echo '${'$as_ac_Header'}'`
15975                { echo "$as_me:$LINENO: result: $ac_res" >&5
15976 echo "${ECHO_T}$ac_res" >&6; }
15977 else
15978   # Is the header compilable?
15979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 $ac_includes_default
15988 #include <$ac_header>
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_compile") 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } &&
16004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005   { (case "(($ac_try" in
16006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007   *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010   (eval "$ac_try") 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; } &&
16014          { ac_try='test -s conftest.$ac_objext'
16015   { (case "(($ac_try" in
16016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017   *) ac_try_echo=$ac_try;;
16018 esac
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020   (eval "$ac_try") 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024   ac_header_compiler=yes
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029         ac_header_compiler=no
16030 fi
16031
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16034 echo "${ECHO_T}$ac_header_compiler" >&6; }
16035
16036 # Is the header present?
16037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 #include <$ac_header>
16046 _ACEOF
16047 if { (ac_try="$ac_cpp conftest.$ac_ext"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } >/dev/null; then
16060   if test -s conftest.err; then
16061     ac_cpp_err=$ac_c_preproc_warn_flag
16062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063   else
16064     ac_cpp_err=
16065   fi
16066 else
16067   ac_cpp_err=yes
16068 fi
16069 if test -z "$ac_cpp_err"; then
16070   ac_header_preproc=yes
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075   ac_header_preproc=no
16076 fi
16077
16078 rm -f conftest.err conftest.$ac_ext
16079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16080 echo "${ECHO_T}$ac_header_preproc" >&6; }
16081
16082 # So?  What about this header?
16083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084   yes:no: )
16085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16089     ac_header_preproc=yes
16090     ;;
16091   no:yes:* )
16092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16104     ( cat <<\_ASBOX
16105 ## ------------------------------------ ##
16106 ## Report this to http://llvm.org/bugs/ ##
16107 ## ------------------------------------ ##
16108 _ASBOX
16109      ) | sed "s/^/$as_me: WARNING:     /" >&2
16110     ;;
16111 esac
16112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   eval "$as_ac_Header=\$ac_header_preproc"
16118 fi
16119 ac_res=`eval echo '${'$as_ac_Header'}'`
16120                { echo "$as_me:$LINENO: result: $ac_res" >&5
16121 echo "${ECHO_T}$ac_res" >&6; }
16122
16123 fi
16124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16125   cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16127 _ACEOF
16128
16129 fi
16130
16131 done
16132
16133 fi
16134
16135
16136 for ac_header in CrashReporterClient.h
16137 do
16138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 fi
16145 ac_res=`eval echo '${'$as_ac_Header'}'`
16146                { echo "$as_me:$LINENO: result: $ac_res" >&5
16147 echo "${ECHO_T}$ac_res" >&6; }
16148 else
16149   # Is the header compilable?
16150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158 $ac_includes_default
16159 #include <$ac_header>
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_compile") 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176   { (case "(($ac_try" in
16177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178   *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181   (eval "$ac_try") 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; } &&
16185          { ac_try='test -s conftest.$ac_objext'
16186   { (case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_try") 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; }; then
16195   ac_header_compiler=yes
16196 else
16197   echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200         ac_header_compiler=no
16201 fi
16202
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205 echo "${ECHO_T}$ac_header_compiler" >&6; }
16206
16207 # Is the header present?
16208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 #include <$ac_header>
16217 _ACEOF
16218 if { (ac_try="$ac_cpp conftest.$ac_ext"
16219 case "(($ac_try" in
16220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221   *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16225   ac_status=$?
16226   grep -v '^ *+' conftest.er1 >conftest.err
16227   rm -f conftest.er1
16228   cat conftest.err >&5
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } >/dev/null; then
16231   if test -s conftest.err; then
16232     ac_cpp_err=$ac_c_preproc_warn_flag
16233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16234   else
16235     ac_cpp_err=
16236   fi
16237 else
16238   ac_cpp_err=yes
16239 fi
16240 if test -z "$ac_cpp_err"; then
16241   ac_header_preproc=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246   ac_header_preproc=no
16247 fi
16248
16249 rm -f conftest.err conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16251 echo "${ECHO_T}$ac_header_preproc" >&6; }
16252
16253 # So?  What about this header?
16254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16255   yes:no: )
16256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16260     ac_header_preproc=yes
16261     ;;
16262   no:yes:* )
16263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16275     ( cat <<\_ASBOX
16276 ## ------------------------------------ ##
16277 ## Report this to http://llvm.org/bugs/ ##
16278 ## ------------------------------------ ##
16279 _ASBOX
16280      ) | sed "s/^/$as_me: WARNING:     /" >&2
16281     ;;
16282 esac
16283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16286   echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288   eval "$as_ac_Header=\$ac_header_preproc"
16289 fi
16290 ac_res=`eval echo '${'$as_ac_Header'}'`
16291                { echo "$as_me:$LINENO: result: $ac_res" >&5
16292 echo "${ECHO_T}$ac_res" >&6; }
16293
16294 fi
16295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16296   cat >>confdefs.h <<_ACEOF
16297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16298 _ACEOF
16299
16300 fi
16301
16302 done
16303
16304
16305 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16306 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313 extern const char *__crashreporter_info__;
16314       int main() {
16315         __crashreporter_info__ = "test";
16316         return 0;
16317       }
16318
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_link") 2>conftest.er1
16328   ac_status=$?
16329   grep -v '^ *+' conftest.er1 >conftest.err
16330   rm -f conftest.er1
16331   cat conftest.err >&5
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); } &&
16334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335   { (case "(($ac_try" in
16336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337   *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340   (eval "$ac_try") 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; } &&
16344          { ac_try='test -s conftest$ac_exeext'
16345   { (case "(($ac_try" in
16346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347   *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350   (eval "$ac_try") 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354   { echo "$as_me:$LINENO: result: yes" >&5
16355 echo "${ECHO_T}yes" >&6; }
16356
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_CRASHREPORTER_INFO 1
16359 _ACEOF
16360
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365         { echo "$as_me:$LINENO: result: no" >&5
16366 echo "${ECHO_T}no" >&6; }
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_CRASHREPORTER_INFO 0
16370 _ACEOF
16371
16372 fi
16373
16374 rm -f core conftest.err conftest.$ac_objext \
16375       conftest$ac_exeext conftest.$ac_ext
16376
16377
16378
16379
16380   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16381 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16382 if test "${ac_cv_huge_val_sanity+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385
16386     ac_ext=cpp
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16391
16392     ac_save_CXXFLAGS=$CXXFLAGS
16393     CXXFLAGS=-pedantic
16394     if test "$cross_compiling" = yes; then
16395   ac_cv_huge_val_sanity=yes
16396 else
16397   cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 #include <math.h>
16404 int
16405 main ()
16406 {
16407 double x = HUGE_VAL; return x != x;
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419   (eval "$ac_link") 2>&5
16420   ac_status=$?
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16423   { (case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_try") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; }; then
16432   ac_cv_huge_val_sanity=yes
16433 else
16434   echo "$as_me: program exited with status $ac_status" >&5
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ( exit $ac_status )
16439 ac_cv_huge_val_sanity=no
16440 fi
16441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16442 fi
16443
16444
16445     CXXFLAGS=$ac_save_CXXFLAGS
16446     ac_ext=c
16447 ac_cpp='$CPP $CPPFLAGS'
16448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16451
16452
16453 fi
16454 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16455 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16456   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16457
16458
16459 { echo "$as_me:$LINENO: checking for pid_t" >&5
16460 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16461 if test "${ac_cv_type_pid_t+set}" = set; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464   cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470 $ac_includes_default
16471 typedef pid_t ac__type_new_;
16472 int
16473 main ()
16474 {
16475 if ((ac__type_new_ *) 0)
16476   return 0;
16477 if (sizeof (ac__type_new_))
16478   return 0;
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext
16484 if { (ac_try="$ac_compile"
16485 case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_compile") 2>conftest.er1
16491   ac_status=$?
16492   grep -v '^ *+' conftest.er1 >conftest.err
16493   rm -f conftest.er1
16494   cat conftest.err >&5
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); } &&
16497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16498   { (case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_try") 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); }; } &&
16507          { ac_try='test -s conftest.$ac_objext'
16508   { (case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_try") 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; }; then
16517   ac_cv_type_pid_t=yes
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522         ac_cv_type_pid_t=no
16523 fi
16524
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 fi
16527 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16528 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16529 if test $ac_cv_type_pid_t = yes; then
16530   :
16531 else
16532
16533 cat >>confdefs.h <<_ACEOF
16534 #define pid_t int
16535 _ACEOF
16536
16537 fi
16538
16539 { echo "$as_me:$LINENO: checking for size_t" >&5
16540 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16541 if test "${ac_cv_type_size_t+set}" = set; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h.  */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h.  */
16550 $ac_includes_default
16551 typedef size_t ac__type_new_;
16552 int
16553 main ()
16554 {
16555 if ((ac__type_new_ *) 0)
16556   return 0;
16557 if (sizeof (ac__type_new_))
16558   return 0;
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_compile") 2>conftest.er1
16571   ac_status=$?
16572   grep -v '^ *+' conftest.er1 >conftest.err
16573   rm -f conftest.er1
16574   cat conftest.err >&5
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578   { (case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_try") 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; } &&
16587          { ac_try='test -s conftest.$ac_objext'
16588   { (case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_try") 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; }; then
16597   ac_cv_type_size_t=yes
16598 else
16599   echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602         ac_cv_type_size_t=no
16603 fi
16604
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16608 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16609 if test $ac_cv_type_size_t = yes; then
16610   :
16611 else
16612
16613 cat >>confdefs.h <<_ACEOF
16614 #define size_t unsigned int
16615 _ACEOF
16616
16617 fi
16618
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define RETSIGTYPE void
16622 _ACEOF
16623
16624 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16626 if test "${ac_cv_struct_tm+set}" = set; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 #include <sys/types.h>
16636 #include <time.h>
16637
16638 int
16639 main ()
16640 {
16641 struct tm *tp; tp->tm_sec;
16642   ;
16643   return 0;
16644 }
16645 _ACEOF
16646 rm -f conftest.$ac_objext
16647 if { (ac_try="$ac_compile"
16648 case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_compile") 2>conftest.er1
16654   ac_status=$?
16655   grep -v '^ *+' conftest.er1 >conftest.err
16656   rm -f conftest.er1
16657   cat conftest.err >&5
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); } &&
16660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16661   { (case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_try") 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; } &&
16670          { ac_try='test -s conftest.$ac_objext'
16671   { (case "(($ac_try" in
16672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673   *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676   (eval "$ac_try") 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); }; }; then
16680   ac_cv_struct_tm=time.h
16681 else
16682   echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685         ac_cv_struct_tm=sys/time.h
16686 fi
16687
16688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 fi
16690 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16691 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16692 if test $ac_cv_struct_tm = sys/time.h; then
16693
16694 cat >>confdefs.h <<\_ACEOF
16695 #define TM_IN_SYS_TIME 1
16696 _ACEOF
16697
16698 fi
16699
16700 { echo "$as_me:$LINENO: checking for int64_t" >&5
16701 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16702 if test "${ac_cv_type_int64_t+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 $ac_includes_default
16712 typedef int64_t ac__type_new_;
16713 int
16714 main ()
16715 {
16716 if ((ac__type_new_ *) 0)
16717   return 0;
16718 if (sizeof (ac__type_new_))
16719   return 0;
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (ac_try="$ac_compile"
16726 case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_compile") 2>conftest.er1
16732   ac_status=$?
16733   grep -v '^ *+' conftest.er1 >conftest.err
16734   rm -f conftest.er1
16735   cat conftest.err >&5
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739   { (case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_try") 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; } &&
16748          { ac_try='test -s conftest.$ac_objext'
16749   { (case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_try") 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; }; then
16758   ac_cv_type_int64_t=yes
16759 else
16760   echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763         ac_cv_type_int64_t=no
16764 fi
16765
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 fi
16768 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16769 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16770 if test $ac_cv_type_int64_t = yes; then
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_INT64_T 1
16774 _ACEOF
16775
16776
16777 else
16778   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16779 echo "$as_me: error: Type int64_t required but not found" >&2;}
16780    { (exit 1); exit 1; }; }
16781 fi
16782
16783 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16784 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16785 if test "${ac_cv_type_uint64_t+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794 $ac_includes_default
16795 typedef uint64_t ac__type_new_;
16796 int
16797 main ()
16798 {
16799 if ((ac__type_new_ *) 0)
16800   return 0;
16801 if (sizeof (ac__type_new_))
16802   return 0;
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_compile") 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822   { (case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_try") 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest.$ac_objext'
16832   { (case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_try") 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_cv_type_uint64_t=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846         ac_cv_type_uint64_t=no
16847 fi
16848
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16852 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16853 if test $ac_cv_type_uint64_t = yes; then
16854
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_UINT64_T 1
16857 _ACEOF
16858
16859
16860 else
16861   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16862 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16863 if test "${ac_cv_type_u_int64_t+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 $ac_includes_default
16873 typedef u_int64_t ac__type_new_;
16874 int
16875 main ()
16876 {
16877 if ((ac__type_new_ *) 0)
16878   return 0;
16879 if (sizeof (ac__type_new_))
16880   return 0;
16881   ;
16882   return 0;
16883 }
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (ac_try="$ac_compile"
16887 case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_compile") 2>conftest.er1
16893   ac_status=$?
16894   grep -v '^ *+' conftest.er1 >conftest.err
16895   rm -f conftest.er1
16896   cat conftest.err >&5
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; } &&
16909          { ac_try='test -s conftest.$ac_objext'
16910   { (case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915   (eval "$ac_try") 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   ac_cv_type_u_int64_t=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924         ac_cv_type_u_int64_t=no
16925 fi
16926
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 fi
16929 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16930 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16931 if test $ac_cv_type_u_int64_t = yes; then
16932
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_U_INT64_T 1
16935 _ACEOF
16936
16937
16938 else
16939   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16940 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16941    { (exit 1); exit 1; }; }
16942 fi
16943
16944 fi
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16956 do
16957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16971 #define $ac_func innocuous_$ac_func
16972
16973 /* System header to define __stub macros and hopefully few prototypes,
16974     which can conflict with char $ac_func (); below.
16975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976     <limits.h> exists even on freestanding compilers.  */
16977
16978 #ifdef __STDC__
16979 # include <limits.h>
16980 #else
16981 # include <assert.h>
16982 #endif
16983
16984 #undef $ac_func
16985
16986 /* Override any GCC internal prototype to avoid an error.
16987    Use char because int might match the return type of a GCC
16988    builtin and then its argument prototype would still apply.  */
16989 #ifdef __cplusplus
16990 extern "C"
16991 #endif
16992 char $ac_func ();
16993 /* The GNU C library defines this for functions which it implements
16994     to always fail with ENOSYS.  Some functions are actually named
16995     something starting with __ and the normal name is an alias.  */
16996 #if defined __stub_$ac_func || defined __stub___$ac_func
16997 choke me
16998 #endif
16999
17000 int
17001 main ()
17002 {
17003 return $ac_func ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_link") 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023   { (case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_try") 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; } &&
17032          { ac_try='test -s conftest$ac_exeext'
17033   { (case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_try") 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042   eval "$as_ac_var=yes"
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         eval "$as_ac_var=no"
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext \
17051       conftest$ac_exeext conftest.$ac_ext
17052 fi
17053 ac_res=`eval echo '${'$as_ac_var'}'`
17054                { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17056 if test `eval echo '${'$as_ac_var'}'` = yes; then
17057   cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17059 _ACEOF
17060
17061 fi
17062 done
17063
17064
17065
17066
17067
17068 for ac_func in powf fmodf strtof round
17069 do
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17084 #define $ac_func innocuous_$ac_func
17085
17086 /* System header to define __stub macros and hopefully few prototypes,
17087     which can conflict with char $ac_func (); below.
17088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089     <limits.h> exists even on freestanding compilers.  */
17090
17091 #ifdef __STDC__
17092 # include <limits.h>
17093 #else
17094 # include <assert.h>
17095 #endif
17096
17097 #undef $ac_func
17098
17099 /* Override any GCC internal prototype to avoid an error.
17100    Use char because int might match the return type of a GCC
17101    builtin and then its argument prototype would still apply.  */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char $ac_func ();
17106 /* The GNU C library defines this for functions which it implements
17107     to always fail with ENOSYS.  Some functions are actually named
17108     something starting with __ and the normal name is an alias.  */
17109 #if defined __stub_$ac_func || defined __stub___$ac_func
17110 choke me
17111 #endif
17112
17113 int
17114 main ()
17115 {
17116 return $ac_func ();
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125   *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128   (eval "$ac_link") 2>conftest.er1
17129   ac_status=$?
17130   grep -v '^ *+' conftest.er1 >conftest.err
17131   rm -f conftest.er1
17132   cat conftest.err >&5
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); } &&
17135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136   { (case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_try") 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; } &&
17145          { ac_try='test -s conftest$ac_exeext'
17146   { (case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_try") 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; }; then
17155   eval "$as_ac_var=yes"
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160         eval "$as_ac_var=no"
17161 fi
17162
17163 rm -f core conftest.err conftest.$ac_objext \
17164       conftest$ac_exeext conftest.$ac_ext
17165 fi
17166 ac_res=`eval echo '${'$as_ac_var'}'`
17167                { echo "$as_me:$LINENO: result: $ac_res" >&5
17168 echo "${ECHO_T}$ac_res" >&6; }
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170   cat >>confdefs.h <<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172 _ACEOF
17173
17174 fi
17175 done
17176
17177
17178
17179
17180
17181
17182 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17183 do
17184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17188   echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190   cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17198 #define $ac_func innocuous_$ac_func
17199
17200 /* System header to define __stub macros and hopefully few prototypes,
17201     which can conflict with char $ac_func (); below.
17202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17203     <limits.h> exists even on freestanding compilers.  */
17204
17205 #ifdef __STDC__
17206 # include <limits.h>
17207 #else
17208 # include <assert.h>
17209 #endif
17210
17211 #undef $ac_func
17212
17213 /* Override any GCC internal prototype to avoid an error.
17214    Use char because int might match the return type of a GCC
17215    builtin and then its argument prototype would still apply.  */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 char $ac_func ();
17220 /* The GNU C library defines this for functions which it implements
17221     to always fail with ENOSYS.  Some functions are actually named
17222     something starting with __ and the normal name is an alias.  */
17223 #if defined __stub_$ac_func || defined __stub___$ac_func
17224 choke me
17225 #endif
17226
17227 int
17228 main ()
17229 {
17230 return $ac_func ();
17231   ;
17232   return 0;
17233 }
17234 _ACEOF
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239   *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242   (eval "$ac_link") 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } &&
17249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250   { (case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_try") 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; } &&
17259          { ac_try='test -s conftest$ac_exeext'
17260   { (case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_try") 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   eval "$as_ac_var=yes"
17270 else
17271   echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274         eval "$as_ac_var=no"
17275 fi
17276
17277 rm -f core conftest.err conftest.$ac_objext \
17278       conftest$ac_exeext conftest.$ac_ext
17279 fi
17280 ac_res=`eval echo '${'$as_ac_var'}'`
17281                { echo "$as_me:$LINENO: result: $ac_res" >&5
17282 echo "${ECHO_T}$ac_res" >&6; }
17283 if test `eval echo '${'$as_ac_var'}'` = yes; then
17284   cat >>confdefs.h <<_ACEOF
17285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17286 _ACEOF
17287
17288 fi
17289 done
17290
17291
17292
17293
17294 for ac_func in isatty mkdtemp mkstemp
17295 do
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300   echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302   cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17310 #define $ac_func innocuous_$ac_func
17311
17312 /* System header to define __stub macros and hopefully few prototypes,
17313     which can conflict with char $ac_func (); below.
17314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315     <limits.h> exists even on freestanding compilers.  */
17316
17317 #ifdef __STDC__
17318 # include <limits.h>
17319 #else
17320 # include <assert.h>
17321 #endif
17322
17323 #undef $ac_func
17324
17325 /* Override any GCC internal prototype to avoid an error.
17326    Use char because int might match the return type of a GCC
17327    builtin and then its argument prototype would still apply.  */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 char $ac_func ();
17332 /* The GNU C library defines this for functions which it implements
17333     to always fail with ENOSYS.  Some functions are actually named
17334     something starting with __ and the normal name is an alias.  */
17335 #if defined __stub_$ac_func || defined __stub___$ac_func
17336 choke me
17337 #endif
17338
17339 int
17340 main ()
17341 {
17342 return $ac_func ();
17343   ;
17344   return 0;
17345 }
17346 _ACEOF
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_link") 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362   { (case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_try") 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; } &&
17371          { ac_try='test -s conftest$ac_exeext'
17372   { (case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_try") 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; }; then
17381   eval "$as_ac_var=yes"
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         eval "$as_ac_var=no"
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext \
17390       conftest$ac_exeext conftest.$ac_ext
17391 fi
17392 ac_res=`eval echo '${'$as_ac_var'}'`
17393                { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396   cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17398 _ACEOF
17399
17400 fi
17401 done
17402
17403
17404
17405
17406
17407
17408
17409
17410 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17411 do
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426 #define $ac_func innocuous_$ac_func
17427
17428 /* System header to define __stub macros and hopefully few prototypes,
17429     which can conflict with char $ac_func (); below.
17430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431     <limits.h> exists even on freestanding compilers.  */
17432
17433 #ifdef __STDC__
17434 # include <limits.h>
17435 #else
17436 # include <assert.h>
17437 #endif
17438
17439 #undef $ac_func
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char $ac_func ();
17448 /* The GNU C library defines this for functions which it implements
17449     to always fail with ENOSYS.  Some functions are actually named
17450     something starting with __ and the normal name is an alias.  */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 choke me
17453 #endif
17454
17455 int
17456 main ()
17457 {
17458 return $ac_func ();
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_link") 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } &&
17477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478   { (case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_try") 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_try") 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   eval "$as_ac_var=yes"
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502         eval "$as_ac_var=no"
17503 fi
17504
17505 rm -f core conftest.err conftest.$ac_objext \
17506       conftest$ac_exeext conftest.$ac_ext
17507 fi
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509                { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512   cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17514 _ACEOF
17515
17516 fi
17517 done
17518
17519
17520
17521
17522 for ac_func in strerror strerror_r setenv
17523 do
17524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530   cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h.  */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h.  */
17536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17538 #define $ac_func innocuous_$ac_func
17539
17540 /* System header to define __stub macros and hopefully few prototypes,
17541     which can conflict with char $ac_func (); below.
17542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543     <limits.h> exists even on freestanding compilers.  */
17544
17545 #ifdef __STDC__
17546 # include <limits.h>
17547 #else
17548 # include <assert.h>
17549 #endif
17550
17551 #undef $ac_func
17552
17553 /* Override any GCC internal prototype to avoid an error.
17554    Use char because int might match the return type of a GCC
17555    builtin and then its argument prototype would still apply.  */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char $ac_func ();
17560 /* The GNU C library defines this for functions which it implements
17561     to always fail with ENOSYS.  Some functions are actually named
17562     something starting with __ and the normal name is an alias.  */
17563 #if defined __stub_$ac_func || defined __stub___$ac_func
17564 choke me
17565 #endif
17566
17567 int
17568 main ()
17569 {
17570 return $ac_func ();
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579   *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582   (eval "$ac_link") 2>conftest.er1
17583   ac_status=$?
17584   grep -v '^ *+' conftest.er1 >conftest.err
17585   rm -f conftest.er1
17586   cat conftest.err >&5
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590   { (case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_try") 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; } &&
17599          { ac_try='test -s conftest$ac_exeext'
17600   { (case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_try") 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; }; then
17609   eval "$as_ac_var=yes"
17610 else
17611   echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17613
17614         eval "$as_ac_var=no"
17615 fi
17616
17617 rm -f core conftest.err conftest.$ac_objext \
17618       conftest$ac_exeext conftest.$ac_ext
17619 fi
17620 ac_res=`eval echo '${'$as_ac_var'}'`
17621                { echo "$as_me:$LINENO: result: $ac_res" >&5
17622 echo "${ECHO_T}$ac_res" >&6; }
17623 if test `eval echo '${'$as_ac_var'}'` = yes; then
17624   cat >>confdefs.h <<_ACEOF
17625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17626 _ACEOF
17627
17628 fi
17629 done
17630
17631
17632
17633
17634
17635 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17636 do
17637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17651 #define $ac_func innocuous_$ac_func
17652
17653 /* System header to define __stub macros and hopefully few prototypes,
17654     which can conflict with char $ac_func (); below.
17655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17656     <limits.h> exists even on freestanding compilers.  */
17657
17658 #ifdef __STDC__
17659 # include <limits.h>
17660 #else
17661 # include <assert.h>
17662 #endif
17663
17664 #undef $ac_func
17665
17666 /* Override any GCC internal prototype to avoid an error.
17667    Use char because int might match the return type of a GCC
17668    builtin and then its argument prototype would still apply.  */
17669 #ifdef __cplusplus
17670 extern "C"
17671 #endif
17672 char $ac_func ();
17673 /* The GNU C library defines this for functions which it implements
17674     to always fail with ENOSYS.  Some functions are actually named
17675     something starting with __ and the normal name is an alias.  */
17676 #if defined __stub_$ac_func || defined __stub___$ac_func
17677 choke me
17678 #endif
17679
17680 int
17681 main ()
17682 {
17683 return $ac_func ();
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (ac_try="$ac_link"
17690 case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_link") 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703   { (case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_try") 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; } &&
17712          { ac_try='test -s conftest$ac_exeext'
17713   { (case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_try") 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; }; then
17722   eval "$as_ac_var=yes"
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727         eval "$as_ac_var=no"
17728 fi
17729
17730 rm -f core conftest.err conftest.$ac_objext \
17731       conftest$ac_exeext conftest.$ac_ext
17732 fi
17733 ac_res=`eval echo '${'$as_ac_var'}'`
17734                { echo "$as_me:$LINENO: result: $ac_res" >&5
17735 echo "${ECHO_T}$ac_res" >&6; }
17736 if test `eval echo '${'$as_ac_var'}'` = yes; then
17737   cat >>confdefs.h <<_ACEOF
17738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17739 _ACEOF
17740
17741 fi
17742 done
17743
17744
17745
17746
17747
17748
17749 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17750 do
17751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17765 #define $ac_func innocuous_$ac_func
17766
17767 /* System header to define __stub macros and hopefully few prototypes,
17768     which can conflict with char $ac_func (); below.
17769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17770     <limits.h> exists even on freestanding compilers.  */
17771
17772 #ifdef __STDC__
17773 # include <limits.h>
17774 #else
17775 # include <assert.h>
17776 #endif
17777
17778 #undef $ac_func
17779
17780 /* Override any GCC internal prototype to avoid an error.
17781    Use char because int might match the return type of a GCC
17782    builtin and then its argument prototype would still apply.  */
17783 #ifdef __cplusplus
17784 extern "C"
17785 #endif
17786 char $ac_func ();
17787 /* The GNU C library defines this for functions which it implements
17788     to always fail with ENOSYS.  Some functions are actually named
17789     something starting with __ and the normal name is an alias.  */
17790 #if defined __stub_$ac_func || defined __stub___$ac_func
17791 choke me
17792 #endif
17793
17794 int
17795 main ()
17796 {
17797 return $ac_func ();
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (ac_try="$ac_link"
17804 case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_link") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817   { (case "(($ac_try" in
17818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819   *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822   (eval "$ac_try") 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; } &&
17826          { ac_try='test -s conftest$ac_exeext'
17827   { (case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_try") 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   eval "$as_ac_var=yes"
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841         eval "$as_ac_var=no"
17842 fi
17843
17844 rm -f core conftest.err conftest.$ac_objext \
17845       conftest$ac_exeext conftest.$ac_ext
17846 fi
17847 ac_res=`eval echo '${'$as_ac_var'}'`
17848                { echo "$as_me:$LINENO: result: $ac_res" >&5
17849 echo "${ECHO_T}$ac_res" >&6; }
17850 if test `eval echo '${'$as_ac_var'}'` = yes; then
17851   cat >>confdefs.h <<_ACEOF
17852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17853 _ACEOF
17854
17855 fi
17856 done
17857
17858 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17859 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17860 if test "${llvm_cv_c_printf_a+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863   ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
17869  if test "$cross_compiling" = yes; then
17870   llvmac_cv_c_printf_a=no
17871 else
17872   cat >conftest.$ac_ext <<_ACEOF
17873
17874   /* confdefs.h.  */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h.  */
17879
17880 #include <stdio.h>
17881 #include <stdlib.h>
17882
17883 int
17884 main ()
17885 {
17886
17887 volatile double A, B;
17888 char Buffer[100];
17889 A = 1;
17890 A /= 10.0;
17891 sprintf(Buffer, "%a", A);
17892 B = atof(Buffer);
17893 if (A != B)
17894   return (1);
17895 if (A != 0x1.999999999999ap-4)
17896   return (1);
17897 return (0);
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_link") 2>&5
17910   ac_status=$?
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17913   { (case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918   (eval "$ac_try") 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; }; then
17922   llvm_cv_c_printf_a=yes
17923 else
17924   echo "$as_me: program exited with status $ac_status" >&5
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 ( exit $ac_status )
17929 llvmac_cv_c_printf_a=no
17930 fi
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17932 fi
17933
17934
17935  ac_ext=c
17936 ac_cpp='$CPP $CPPFLAGS'
17937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17940
17941 fi
17942 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17943 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17944  if test "$llvm_cv_c_printf_a" = "yes"; then
17945
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_PRINTF_A 1
17948 _ACEOF
17949
17950  fi
17951
17952
17953 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17954 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17955 if test "${ac_cv_func_rand48+set}" = set; then
17956   echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958   ac_ext=cpp
17959 ac_cpp='$CXXCPP $CPPFLAGS'
17960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17963
17964    cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 #include <stdlib.h>
17971 int
17972 main ()
17973 {
17974 srand48(0);lrand48();drand48();
17975   ;
17976   return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_compile") 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } &&
17993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest.$ac_objext'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   ac_cv_func_rand48=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         ac_cv_func_rand48=no
18019 fi
18020
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022   ac_ext=c
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027
18028 fi
18029 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18030 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18031
18032 if test "$ac_cv_func_rand48" = "yes" ; then
18033
18034 cat >>confdefs.h <<\_ACEOF
18035 #define HAVE_RAND48 1
18036 _ACEOF
18037
18038 fi
18039
18040
18041 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18042 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18043 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18044   echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046   cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052 $ac_includes_default
18053 int
18054 main ()
18055 {
18056 #ifndef strerror_s
18057   char *p = (char *) strerror_s;
18058   return !p;
18059 #endif
18060
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_compile") 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } &&
18079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18080   { (case "(($ac_try" in
18081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082   *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085   (eval "$ac_try") 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); }; } &&
18089          { ac_try='test -s conftest.$ac_objext'
18090   { (case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_try") 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); }; }; then
18099   ac_cv_have_decl_strerror_s=yes
18100 else
18101   echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18103
18104         ac_cv_have_decl_strerror_s=no
18105 fi
18106
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 fi
18109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18110 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18111 if test $ac_cv_have_decl_strerror_s = yes; then
18112
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_STRERROR_S 1
18115 _ACEOF
18116
18117
18118 else
18119   cat >>confdefs.h <<_ACEOF
18120 #define HAVE_DECL_STRERROR_S 0
18121 _ACEOF
18122
18123
18124 fi
18125
18126
18127
18128 if test "$llvm_cv_os_type" = "MingW" ; then
18129   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18130 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18131 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   ac_check_lib_save_LIBS=$LIBS
18135 LIBS="-lgcc  $LIBS"
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142
18143 /* Override any GCC internal prototype to avoid an error.
18144    Use char because int might match the return type of a GCC
18145    builtin and then its argument prototype would still apply.  */
18146 #ifdef __cplusplus
18147 extern "C"
18148 #endif
18149 char _alloca ();
18150 int
18151 main ()
18152 {
18153 return _alloca ();
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_link") 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173   { (case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178   (eval "$ac_try") 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; } &&
18182          { ac_try='test -s conftest$ac_exeext'
18183   { (case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_try") 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_cv_lib_gcc__alloca=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197         ac_cv_lib_gcc__alloca=no
18198 fi
18199
18200 rm -f core conftest.err conftest.$ac_objext \
18201       conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18203 fi
18204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18205 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18206 if test $ac_cv_lib_gcc__alloca = yes; then
18207
18208 cat >>confdefs.h <<\_ACEOF
18209 #define HAVE__ALLOCA 1
18210 _ACEOF
18211
18212 fi
18213
18214   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18215 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   ac_check_lib_save_LIBS=$LIBS
18220 LIBS="-lgcc  $LIBS"
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229    Use char because int might match the return type of a GCC
18230    builtin and then its argument prototype would still apply.  */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char __alloca ();
18235 int
18236 main ()
18237 {
18238 return __alloca ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_link") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } &&
18257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258   { (case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_try") 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; } &&
18267          { ac_try='test -s conftest$ac_exeext'
18268   { (case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_cv_lib_gcc___alloca=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282         ac_cv_lib_gcc___alloca=no
18283 fi
18284
18285 rm -f core conftest.err conftest.$ac_objext \
18286       conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18288 fi
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18291 if test $ac_cv_lib_gcc___alloca = yes; then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE___ALLOCA 1
18295 _ACEOF
18296
18297 fi
18298
18299   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18300 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lgcc  $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313 /* Override any GCC internal prototype to avoid an error.
18314    Use char because int might match the return type of a GCC
18315    builtin and then its argument prototype would still apply.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char __chkstk ();
18320 int
18321 main ()
18322 {
18323 return __chkstk ();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_link") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343   { (case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_try") 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; } &&
18352          { ac_try='test -s conftest$ac_exeext'
18353   { (case "(($ac_try" in
18354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355   *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358   (eval "$ac_try") 2>&5
18359   ac_status=$?
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); }; }; then
18362   ac_cv_lib_gcc___chkstk=yes
18363 else
18364   echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18366
18367         ac_cv_lib_gcc___chkstk=no
18368 fi
18369
18370 rm -f core conftest.err conftest.$ac_objext \
18371       conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18376 if test $ac_cv_lib_gcc___chkstk = yes; then
18377
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___CHKSTK 1
18380 _ACEOF
18381
18382 fi
18383
18384   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18385 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lgcc  $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399    Use char because int might match the return type of a GCC
18400    builtin and then its argument prototype would still apply.  */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char ___chkstk ();
18405 int
18406 main ()
18407 {
18408 return ___chkstk ();
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_link") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } &&
18427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428   { (case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_try") 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest$ac_exeext'
18438   { (case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_try") 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_lib_gcc____chkstk=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452         ac_cv_lib_gcc____chkstk=no
18453 fi
18454
18455 rm -f core conftest.err conftest.$ac_objext \
18456       conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18458 fi
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18461 if test $ac_cv_lib_gcc____chkstk = yes; then
18462
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE____CHKSTK 1
18465 _ACEOF
18466
18467 fi
18468
18469
18470   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18471 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18472 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   ac_check_lib_save_LIBS=$LIBS
18476 LIBS="-lgcc  $LIBS"
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h.  */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h.  */
18483
18484 /* Override any GCC internal prototype to avoid an error.
18485    Use char because int might match the return type of a GCC
18486    builtin and then its argument prototype would still apply.  */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 char __ashldi3 ();
18491 int
18492 main ()
18493 {
18494 return __ashldi3 ();
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_link") 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514   { (case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_try") 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; } &&
18523          { ac_try='test -s conftest$ac_exeext'
18524   { (case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_try") 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_cv_lib_gcc___ashldi3=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538         ac_cv_lib_gcc___ashldi3=no
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext \
18542       conftest$ac_exeext conftest.$ac_ext
18543 LIBS=$ac_check_lib_save_LIBS
18544 fi
18545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18546 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18547 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18548
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE___ASHLDI3 1
18551 _ACEOF
18552
18553 fi
18554
18555   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18556 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18557 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18558   echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560   ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lgcc  $LIBS"
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568
18569 /* Override any GCC internal prototype to avoid an error.
18570    Use char because int might match the return type of a GCC
18571    builtin and then its argument prototype would still apply.  */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 char __ashrdi3 ();
18576 int
18577 main ()
18578 {
18579 return __ashrdi3 ();
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_link") 2>conftest.er1
18592   ac_status=$?
18593   grep -v '^ *+' conftest.er1 >conftest.err
18594   rm -f conftest.er1
18595   cat conftest.err >&5
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); } &&
18598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599   { (case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_try") 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); }; } &&
18608          { ac_try='test -s conftest$ac_exeext'
18609   { (case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_lib_gcc___ashrdi3=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623         ac_cv_lib_gcc___ashrdi3=no
18624 fi
18625
18626 rm -f core conftest.err conftest.$ac_objext \
18627       conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18629 fi
18630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18631 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18632 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18633
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE___ASHRDI3 1
18636 _ACEOF
18637
18638 fi
18639
18640   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18641 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lgcc  $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653
18654 /* Override any GCC internal prototype to avoid an error.
18655    Use char because int might match the return type of a GCC
18656    builtin and then its argument prototype would still apply.  */
18657 #ifdef __cplusplus
18658 extern "C"
18659 #endif
18660 char __divdi3 ();
18661 int
18662 main ()
18663 {
18664 return __divdi3 ();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673   *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676   (eval "$ac_link") 2>conftest.er1
18677   ac_status=$?
18678   grep -v '^ *+' conftest.er1 >conftest.err
18679   rm -f conftest.er1
18680   cat conftest.err >&5
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684   { (case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_try") 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); }; } &&
18693          { ac_try='test -s conftest$ac_exeext'
18694   { (case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_try") 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ac_cv_lib_gcc___divdi3=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708         ac_cv_lib_gcc___divdi3=no
18709 fi
18710
18711 rm -f core conftest.err conftest.$ac_objext \
18712       conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
18715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18716 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18717 if test $ac_cv_lib_gcc___divdi3 = yes; then
18718
18719 cat >>confdefs.h <<\_ACEOF
18720 #define HAVE___DIVDI3 1
18721 _ACEOF
18722
18723 fi
18724
18725   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18726 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18727 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   ac_check_lib_save_LIBS=$LIBS
18731 LIBS="-lgcc  $LIBS"
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738
18739 /* Override any GCC internal prototype to avoid an error.
18740    Use char because int might match the return type of a GCC
18741    builtin and then its argument prototype would still apply.  */
18742 #ifdef __cplusplus
18743 extern "C"
18744 #endif
18745 char __fixdfdi ();
18746 int
18747 main ()
18748 {
18749 return __fixdfdi ();
18750   ;
18751   return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761   (eval "$ac_link") 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } &&
18768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769   { (case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_try") 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; } &&
18778          { ac_try='test -s conftest$ac_exeext'
18779   { (case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_try") 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; }; then
18788   ac_cv_lib_gcc___fixdfdi=yes
18789 else
18790   echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793         ac_cv_lib_gcc___fixdfdi=no
18794 fi
18795
18796 rm -f core conftest.err conftest.$ac_objext \
18797       conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18799 fi
18800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18801 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18802 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18803
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE___FIXDFDI 1
18806 _ACEOF
18807
18808 fi
18809
18810   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18811 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18812 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lgcc  $LIBS"
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h.  */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h.  */
18823
18824 /* Override any GCC internal prototype to avoid an error.
18825    Use char because int might match the return type of a GCC
18826    builtin and then its argument prototype would still apply.  */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char __fixsfdi ();
18831 int
18832 main ()
18833 {
18834 return __fixsfdi ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854   { (case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_try") 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_try") 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873   ac_cv_lib_gcc___fixsfdi=yes
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878         ac_cv_lib_gcc___fixsfdi=no
18879 fi
18880
18881 rm -f core conftest.err conftest.$ac_objext \
18882       conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18884 fi
18885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18886 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18887 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE___FIXSFDI 1
18891 _ACEOF
18892
18893 fi
18894
18895   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18896 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18897 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lgcc  $LIBS"
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908
18909 /* Override any GCC internal prototype to avoid an error.
18910    Use char because int might match the return type of a GCC
18911    builtin and then its argument prototype would still apply.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 char __floatdidf ();
18916 int
18917 main ()
18918 {
18919 return __floatdidf ();
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (ac_try="$ac_link"
18926 case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_link") 2>conftest.er1
18932   ac_status=$?
18933   grep -v '^ *+' conftest.er1 >conftest.err
18934   rm -f conftest.er1
18935   cat conftest.err >&5
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); } &&
18938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18939   { (case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_try") 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; } &&
18948          { ac_try='test -s conftest$ac_exeext'
18949   { (case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_try") 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; }; then
18958   ac_cv_lib_gcc___floatdidf=yes
18959 else
18960   echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963         ac_cv_lib_gcc___floatdidf=no
18964 fi
18965
18966 rm -f core conftest.err conftest.$ac_objext \
18967       conftest$ac_exeext conftest.$ac_ext
18968 LIBS=$ac_check_lib_save_LIBS
18969 fi
18970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18971 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18972 if test $ac_cv_lib_gcc___floatdidf = yes; then
18973
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE___FLOATDIDF 1
18976 _ACEOF
18977
18978 fi
18979
18980   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18981 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18982 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18983   echo $ECHO_N "(cached) $ECHO_C" >&6
18984 else
18985   ac_check_lib_save_LIBS=$LIBS
18986 LIBS="-lgcc  $LIBS"
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993
18994 /* Override any GCC internal prototype to avoid an error.
18995    Use char because int might match the return type of a GCC
18996    builtin and then its argument prototype would still apply.  */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char __lshrdi3 ();
19001 int
19002 main ()
19003 {
19004 return __lshrdi3 ();
19005   ;
19006   return 0;
19007 }
19008 _ACEOF
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (ac_try="$ac_link"
19011 case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_link") 2>conftest.er1
19017   ac_status=$?
19018   grep -v '^ *+' conftest.er1 >conftest.err
19019   rm -f conftest.er1
19020   cat conftest.err >&5
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } &&
19023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024   { (case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_try") 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest$ac_exeext'
19034   { (case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_try") 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   ac_cv_lib_gcc___lshrdi3=yes
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048         ac_cv_lib_gcc___lshrdi3=no
19049 fi
19050
19051 rm -f core conftest.err conftest.$ac_objext \
19052       conftest$ac_exeext conftest.$ac_ext
19053 LIBS=$ac_check_lib_save_LIBS
19054 fi
19055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19056 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19057 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19058
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE___LSHRDI3 1
19061 _ACEOF
19062
19063 fi
19064
19065   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19066 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lgcc  $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080    Use char because int might match the return type of a GCC
19081    builtin and then its argument prototype would still apply.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char __moddi3 ();
19086 int
19087 main ()
19088 {
19089 return __moddi3 ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_link") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } &&
19108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109   { (case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_try") 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_try") 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   ac_cv_lib_gcc___moddi3=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_lib_gcc___moddi3=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext \
19137       conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19139 fi
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19142 if test $ac_cv_lib_gcc___moddi3 = yes; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___MODDI3 1
19146 _ACEOF
19147
19148 fi
19149
19150   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19151 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155   ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lgcc  $LIBS"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165    Use char because int might match the return type of a GCC
19166    builtin and then its argument prototype would still apply.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char __udivdi3 ();
19171 int
19172 main ()
19173 {
19174 return __udivdi3 ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_link") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194   { (case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_try") 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; } &&
19203          { ac_try='test -s conftest$ac_exeext'
19204   { (case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_try") 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_lib_gcc___udivdi3=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         ac_cv_lib_gcc___udivdi3=no
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext \
19222       conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19227 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___UDIVDI3 1
19231 _ACEOF
19232
19233 fi
19234
19235   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19236 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19237 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19238   echo $ECHO_N "(cached) $ECHO_C" >&6
19239 else
19240   ac_check_lib_save_LIBS=$LIBS
19241 LIBS="-lgcc  $LIBS"
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h.  */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h.  */
19248
19249 /* Override any GCC internal prototype to avoid an error.
19250    Use char because int might match the return type of a GCC
19251    builtin and then its argument prototype would still apply.  */
19252 #ifdef __cplusplus
19253 extern "C"
19254 #endif
19255 char __umoddi3 ();
19256 int
19257 main ()
19258 {
19259 return __umoddi3 ();
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_link") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279   { (case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_try") 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; } &&
19288          { ac_try='test -s conftest$ac_exeext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_lib_gcc___umoddi3=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_lib_gcc___umoddi3=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext \
19307       conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19309 fi
19310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19311 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19312 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19313
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE___UMODDI3 1
19316 _ACEOF
19317
19318 fi
19319
19320
19321   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19322 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19323 if test "${ac_cv_lib_gcc___main+set}" = set; then
19324   echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326   ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lgcc  $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334
19335 /* Override any GCC internal prototype to avoid an error.
19336    Use char because int might match the return type of a GCC
19337    builtin and then its argument prototype would still apply.  */
19338 #ifdef __cplusplus
19339 extern "C"
19340 #endif
19341 char __main ();
19342 int
19343 main ()
19344 {
19345 return __main ();
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354   *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357   (eval "$ac_link") 2>conftest.er1
19358   ac_status=$?
19359   grep -v '^ *+' conftest.er1 >conftest.err
19360   rm -f conftest.er1
19361   cat conftest.err >&5
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19365   { (case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_try") 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; } &&
19374          { ac_try='test -s conftest$ac_exeext'
19375   { (case "(($ac_try" in
19376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377   *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380   (eval "$ac_try") 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; }; then
19384   ac_cv_lib_gcc___main=yes
19385 else
19386   echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389         ac_cv_lib_gcc___main=no
19390 fi
19391
19392 rm -f core conftest.err conftest.$ac_objext \
19393       conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19395 fi
19396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19397 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19398 if test $ac_cv_lib_gcc___main = yes; then
19399
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE___MAIN 1
19402 _ACEOF
19403
19404 fi
19405
19406   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19407 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19408 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19409   echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411   ac_check_lib_save_LIBS=$LIBS
19412 LIBS="-lgcc  $LIBS"
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419
19420 /* Override any GCC internal prototype to avoid an error.
19421    Use char because int might match the return type of a GCC
19422    builtin and then its argument prototype would still apply.  */
19423 #ifdef __cplusplus
19424 extern "C"
19425 #endif
19426 char __cmpdi2 ();
19427 int
19428 main ()
19429 {
19430 return __cmpdi2 ();
19431   ;
19432   return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439   *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442   (eval "$ac_link") 2>conftest.er1
19443   ac_status=$?
19444   grep -v '^ *+' conftest.er1 >conftest.err
19445   rm -f conftest.er1
19446   cat conftest.err >&5
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } &&
19449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19450   { (case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_try") 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); }; } &&
19459          { ac_try='test -s conftest$ac_exeext'
19460   { (case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_try") 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; }; then
19469   ac_cv_lib_gcc___cmpdi2=yes
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474         ac_cv_lib_gcc___cmpdi2=no
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext \
19478       conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19480 fi
19481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19482 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19483 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19484
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE___CMPDI2 1
19487 _ACEOF
19488
19489 fi
19490
19491 fi
19492
19493 if test "$llvm_cv_os_type" = "MingW" ; then
19494   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19495 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19496   cat >conftest.$ac_ext <<_ACEOF
19497 #include <windows.h>
19498 #include <imagehlp.h>
19499 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19500 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19501 _ACEOF
19502 rm -f conftest.$ac_objext
19503 if { (ac_try="$ac_compile"
19504 case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509   (eval "$ac_compile") 2>conftest.er1
19510   ac_status=$?
19511   grep -v '^ *+' conftest.er1 >conftest.err
19512   rm -f conftest.er1
19513   cat conftest.err >&5
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); } &&
19516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517   { (case "(($ac_try" in
19518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519   *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522   (eval "$ac_try") 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; } &&
19526          { ac_try='test -s conftest.$ac_objext'
19527   { (case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_try") 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; }; then
19536
19537   { echo "$as_me:$LINENO: result: yes" >&5
19538 echo "${ECHO_T}yes" >&6; }
19539   llvm_cv_win32_elmcb_pcstr="PCSTR"
19540
19541 else
19542   echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545
19546   { echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6; }
19548   llvm_cv_win32_elmcb_pcstr="PSTR"
19549
19550 fi
19551
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553
19554 cat >>confdefs.h <<_ACEOF
19555 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19556 _ACEOF
19557
19558 fi
19559
19560
19561 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19562 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19563 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   ac_ext=cpp
19567 ac_cpp='$CXXCPP $CPPFLAGS'
19568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
19572    cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #include <math.h>
19579 int
19580 main ()
19581 {
19582 float f; isnan(f);
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_compile") 2>conftest.er1
19595   ac_status=$?
19596   grep -v '^ *+' conftest.er1 >conftest.err
19597   rm -f conftest.er1
19598   cat conftest.err >&5
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } &&
19601          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602   { (case "(($ac_try" in
19603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604   *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607   (eval "$ac_try") 2>&5
19608   ac_status=$?
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); }; } &&
19611          { ac_try='test -s conftest.$ac_objext'
19612   { (case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_try") 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   ac_cv_func_isnan_in_math_h=yes
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626         ac_cv_func_isnan_in_math_h=no
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630   ac_ext=c
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19638 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19639
19640
19641 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19642
19643 cat >>confdefs.h <<\_ACEOF
19644 #define HAVE_ISNAN_IN_MATH_H 1
19645 _ACEOF
19646
19647 fi
19648
19649 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19650 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19651 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   ac_ext=cpp
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659
19660    cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 #include <cmath>
19667 int
19668 main ()
19669 {
19670 float f; isnan(f);
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679   *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682   (eval "$ac_compile") 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest.$ac_objext'
19700   { (case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_try") 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; }; then
19709   ac_cv_func_isnan_in_cmath=yes
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         ac_cv_func_isnan_in_cmath=no
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718   ac_ext=c
19719 ac_cpp='$CPP $CPPFLAGS'
19720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723
19724 fi
19725 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19726 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19727
19728 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19729
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_ISNAN_IN_CMATH 1
19732 _ACEOF
19733
19734 fi
19735
19736 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19737 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19738 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_ext=cpp
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19746
19747    cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 #include <cmath>
19754 int
19755 main ()
19756 {
19757 float f; std::isnan(f);
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_compile") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } &&
19776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777   { (case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_try") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; } &&
19786          { ac_try='test -s conftest.$ac_objext'
19787   { (case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_try") 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; }; then
19796   ac_cv_func_std_isnan_in_cmath=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801         ac_cv_func_std_isnan_in_cmath=no
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805   ac_ext=c
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811 fi
19812 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19813 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19814
19815 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19816
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_STD_ISNAN_IN_CMATH 1
19819 _ACEOF
19820
19821 fi
19822
19823
19824 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19825 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19826 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   ac_ext=cpp
19830 ac_cpp='$CXXCPP $CPPFLAGS'
19831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834
19835    cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <math.h>
19842 int
19843 main ()
19844 {
19845 float f; isinf(f);
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (ac_try="$ac_compile"
19852 case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_compile") 2>conftest.er1
19858   ac_status=$?
19859   grep -v '^ *+' conftest.er1 >conftest.err
19860   rm -f conftest.er1
19861   cat conftest.err >&5
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); } &&
19864          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_try") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; } &&
19874          { ac_try='test -s conftest.$ac_objext'
19875   { (case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_try") 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_cv_func_isinf_in_math_h=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889         ac_cv_func_isinf_in_math_h=no
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893   ac_ext=c
19894 ac_cpp='$CPP $CPPFLAGS'
19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898
19899 fi
19900 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19901 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19902
19903 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19904
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_ISINF_IN_MATH_H 1
19907 _ACEOF
19908
19909 fi
19910
19911 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19912 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19913 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   ac_ext=cpp
19917 ac_cpp='$CXXCPP $CPPFLAGS'
19918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19921
19922    cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h.  */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h.  */
19928 #include <cmath>
19929 int
19930 main ()
19931 {
19932 float f; isinf(f);
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext
19938 if { (ac_try="$ac_compile"
19939 case "(($ac_try" in
19940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941   *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944   (eval "$ac_compile") 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19952   { (case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957   (eval "$ac_try") 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; } &&
19961          { ac_try='test -s conftest.$ac_objext'
19962   { (case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_try") 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_cv_func_isinf_in_cmath=yes
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976         ac_cv_func_isinf_in_cmath=no
19977 fi
19978
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980   ac_ext=c
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19985
19986 fi
19987 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19988 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19989
19990 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19991
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_ISINF_IN_CMATH 1
19994 _ACEOF
19995
19996 fi
19997
19998 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19999 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20000 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   ac_ext=cpp
20004 ac_cpp='$CXXCPP $CPPFLAGS'
20005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20008
20009    cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #include <cmath>
20016 int
20017 main ()
20018 {
20019 float f; std::isinf(f)}
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_compile") 2>conftest.er1
20032   ac_status=$?
20033   grep -v '^ *+' conftest.er1 >conftest.err
20034   rm -f conftest.er1
20035   cat conftest.err >&5
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); } &&
20038          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20039   { (case "(($ac_try" in
20040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041   *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044   (eval "$ac_try") 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); }; } &&
20048          { ac_try='test -s conftest.$ac_objext'
20049   { (case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_try") 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_cv_func_std_isinf_in_cmath=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063         ac_cv_func_std_isinf_in_cmath=no
20064 fi
20065
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067   ac_ext=c
20068 ac_cpp='$CPP $CPPFLAGS'
20069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072
20073 fi
20074 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20075 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20076
20077 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20078
20079 cat >>confdefs.h <<\_ACEOF
20080 #define HAVE_STD_ISINF_IN_CMATH 1
20081 _ACEOF
20082
20083 fi
20084
20085 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20086 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20087 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20088   echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090   ac_ext=cpp
20091 ac_cpp='$CXXCPP $CPPFLAGS'
20092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20095
20096    cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 #include <ieeefp.h>
20103 int
20104 main ()
20105 {
20106 float f; finite(f);
20107   ;
20108   return 0;
20109 }
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115   *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118   (eval "$ac_compile") 2>conftest.er1
20119   ac_status=$?
20120   grep -v '^ *+' conftest.er1 >conftest.err
20121   rm -f conftest.er1
20122   cat conftest.err >&5
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); } &&
20125          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20126   { (case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_try") 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; } &&
20135          { ac_try='test -s conftest.$ac_objext'
20136   { (case "(($ac_try" in
20137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138   *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141   (eval "$ac_try") 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_func_finite_in_ieeefp_h=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150         ac_cv_func_finite_in_ieeefp_h=no
20151 fi
20152
20153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20154   ac_ext=c
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160 fi
20161 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20162 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20163
20164 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20165
20166 cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_FINITE_IN_IEEEFP_H 1
20168 _ACEOF
20169
20170 fi
20171
20172
20173
20174 if test "$llvm_cv_platform_type" = "Unix" ; then
20175
20176
20177 for ac_header in stdlib.h unistd.h
20178 do
20179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 fi
20186 ac_res=`eval echo '${'$as_ac_Header'}'`
20187                { echo "$as_me:$LINENO: result: $ac_res" >&5
20188 echo "${ECHO_T}$ac_res" >&6; }
20189 else
20190   # Is the header compilable?
20191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 $ac_includes_default
20200 #include <$ac_header>
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (ac_try="$ac_compile"
20204 case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_compile") 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } &&
20216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217   { (case "(($ac_try" in
20218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219   *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222   (eval "$ac_try") 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; } &&
20226          { ac_try='test -s conftest.$ac_objext'
20227   { (case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232   (eval "$ac_try") 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; }; then
20236   ac_header_compiler=yes
20237 else
20238   echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241         ac_header_compiler=no
20242 fi
20243
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6; }
20247
20248 # Is the header present?
20249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 #include <$ac_header>
20258 _ACEOF
20259 if { (ac_try="$ac_cpp conftest.$ac_ext"
20260 case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } >/dev/null; then
20272   if test -s conftest.err; then
20273     ac_cpp_err=$ac_c_preproc_warn_flag
20274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20275   else
20276     ac_cpp_err=
20277   fi
20278 else
20279   ac_cpp_err=yes
20280 fi
20281 if test -z "$ac_cpp_err"; then
20282   ac_header_preproc=yes
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287   ac_header_preproc=no
20288 fi
20289
20290 rm -f conftest.err conftest.$ac_ext
20291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20292 echo "${ECHO_T}$ac_header_preproc" >&6; }
20293
20294 # So?  What about this header?
20295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20296   yes:no: )
20297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20301     ac_header_preproc=yes
20302     ;;
20303   no:yes:* )
20304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20316     ( cat <<\_ASBOX
20317 ## ------------------------------------ ##
20318 ## Report this to http://llvm.org/bugs/ ##
20319 ## ------------------------------------ ##
20320 _ASBOX
20321      ) | sed "s/^/$as_me: WARNING:     /" >&2
20322     ;;
20323 esac
20324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20327   echo $ECHO_N "(cached) $ECHO_C" >&6
20328 else
20329   eval "$as_ac_Header=\$ac_header_preproc"
20330 fi
20331 ac_res=`eval echo '${'$as_ac_Header'}'`
20332                { echo "$as_me:$LINENO: result: $ac_res" >&5
20333 echo "${ECHO_T}$ac_res" >&6; }
20334
20335 fi
20336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20337   cat >>confdefs.h <<_ACEOF
20338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20339 _ACEOF
20340
20341 fi
20342
20343 done
20344
20345
20346 for ac_func in getpagesize
20347 do
20348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20362 #define $ac_func innocuous_$ac_func
20363
20364 /* System header to define __stub macros and hopefully few prototypes,
20365     which can conflict with char $ac_func (); below.
20366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367     <limits.h> exists even on freestanding compilers.  */
20368
20369 #ifdef __STDC__
20370 # include <limits.h>
20371 #else
20372 # include <assert.h>
20373 #endif
20374
20375 #undef $ac_func
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378    Use char because int might match the return type of a GCC
20379    builtin and then its argument prototype would still apply.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char $ac_func ();
20384 /* The GNU C library defines this for functions which it implements
20385     to always fail with ENOSYS.  Some functions are actually named
20386     something starting with __ and the normal name is an alias.  */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20388 choke me
20389 #endif
20390
20391 int
20392 main ()
20393 {
20394 return $ac_func ();
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406   (eval "$ac_link") 2>conftest.er1
20407   ac_status=$?
20408   grep -v '^ *+' conftest.er1 >conftest.err
20409   rm -f conftest.er1
20410   cat conftest.err >&5
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); } &&
20413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414   { (case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_try") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; } &&
20423          { ac_try='test -s conftest$ac_exeext'
20424   { (case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_try") 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; }; then
20433   eval "$as_ac_var=yes"
20434 else
20435   echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438         eval "$as_ac_var=no"
20439 fi
20440
20441 rm -f core conftest.err conftest.$ac_objext \
20442       conftest$ac_exeext conftest.$ac_ext
20443 fi
20444 ac_res=`eval echo '${'$as_ac_var'}'`
20445                { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20447 if test `eval echo '${'$as_ac_var'}'` = yes; then
20448   cat >>confdefs.h <<_ACEOF
20449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20450 _ACEOF
20451
20452 fi
20453 done
20454
20455 { echo "$as_me:$LINENO: checking for working mmap" >&5
20456 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20457 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   if test "$cross_compiling" = yes; then
20461   ac_cv_func_mmap_fixed_mapped=no
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469 $ac_includes_default
20470 /* malloc might have been renamed as rpl_malloc. */
20471 #undef malloc
20472
20473 /* Thanks to Mike Haertel and Jim Avera for this test.
20474    Here is a matrix of mmap possibilities:
20475         mmap private not fixed
20476         mmap private fixed at somewhere currently unmapped
20477         mmap private fixed at somewhere already mapped
20478         mmap shared not fixed
20479         mmap shared fixed at somewhere currently unmapped
20480         mmap shared fixed at somewhere already mapped
20481    For private mappings, we should verify that changes cannot be read()
20482    back from the file, nor mmap's back from the file at a different
20483    address.  (There have been systems where private was not correctly
20484    implemented like the infamous i386 svr4.0, and systems where the
20485    VM page cache was not coherent with the file system buffer cache
20486    like early versions of FreeBSD and possibly contemporary NetBSD.)
20487    For shared mappings, we should conversely verify that changes get
20488    propagated back to all the places they're supposed to be.
20489
20490    Grep wants private fixed already mapped.
20491    The main things grep needs to know about mmap are:
20492    * does it exist and is it safe to write into the mmap'd area
20493    * how to use it (BSD variants)  */
20494
20495 #include <fcntl.h>
20496 #include <sys/mman.h>
20497
20498 #if !STDC_HEADERS && !HAVE_STDLIB_H
20499 char *malloc ();
20500 #endif
20501
20502 /* This mess was copied from the GNU getpagesize.h.  */
20503 #if !HAVE_GETPAGESIZE
20504 /* Assume that all systems that can run configure have sys/param.h.  */
20505 # if !HAVE_SYS_PARAM_H
20506 #  define HAVE_SYS_PARAM_H 1
20507 # endif
20508
20509 # ifdef _SC_PAGESIZE
20510 #  define getpagesize() sysconf(_SC_PAGESIZE)
20511 # else /* no _SC_PAGESIZE */
20512 #  if HAVE_SYS_PARAM_H
20513 #   include <sys/param.h>
20514 #   ifdef EXEC_PAGESIZE
20515 #    define getpagesize() EXEC_PAGESIZE
20516 #   else /* no EXEC_PAGESIZE */
20517 #    ifdef NBPG
20518 #     define getpagesize() NBPG * CLSIZE
20519 #     ifndef CLSIZE
20520 #      define CLSIZE 1
20521 #     endif /* no CLSIZE */
20522 #    else /* no NBPG */
20523 #     ifdef NBPC
20524 #      define getpagesize() NBPC
20525 #     else /* no NBPC */
20526 #      ifdef PAGESIZE
20527 #       define getpagesize() PAGESIZE
20528 #      endif /* PAGESIZE */
20529 #     endif /* no NBPC */
20530 #    endif /* no NBPG */
20531 #   endif /* no EXEC_PAGESIZE */
20532 #  else /* no HAVE_SYS_PARAM_H */
20533 #   define getpagesize() 8192   /* punt totally */
20534 #  endif /* no HAVE_SYS_PARAM_H */
20535 # endif /* no _SC_PAGESIZE */
20536
20537 #endif /* no HAVE_GETPAGESIZE */
20538
20539 int
20540 main ()
20541 {
20542   char *data, *data2, *data3;
20543   int i, pagesize;
20544   int fd;
20545
20546   pagesize = getpagesize ();
20547
20548   /* First, make a file with some known garbage in it. */
20549   data = (char *) malloc (pagesize);
20550   if (!data)
20551     return 1;
20552   for (i = 0; i < pagesize; ++i)
20553     *(data + i) = rand ();
20554   umask (0);
20555   fd = creat ("conftest.mmap", 0600);
20556   if (fd < 0)
20557     return 1;
20558   if (write (fd, data, pagesize) != pagesize)
20559     return 1;
20560   close (fd);
20561
20562   /* Next, try to mmap the file at a fixed address which already has
20563      something else allocated at it.  If we can, also make sure that
20564      we see the same garbage.  */
20565   fd = open ("conftest.mmap", O_RDWR);
20566   if (fd < 0)
20567     return 1;
20568   data2 = (char *) malloc (2 * pagesize);
20569   if (!data2)
20570     return 1;
20571   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20572   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20573                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20574     return 1;
20575   for (i = 0; i < pagesize; ++i)
20576     if (*(data + i) != *(data2 + i))
20577       return 1;
20578
20579   /* Finally, make sure that changes to the mapped area do not
20580      percolate back to the file as seen by read().  (This is a bug on
20581      some variants of i386 svr4.0.)  */
20582   for (i = 0; i < pagesize; ++i)
20583     *(data2 + i) = *(data2 + i) + 1;
20584   data3 = (char *) malloc (pagesize);
20585   if (!data3)
20586     return 1;
20587   if (read (fd, data3, pagesize) != pagesize)
20588     return 1;
20589   for (i = 0; i < pagesize; ++i)
20590     if (*(data + i) != *(data3 + i))
20591       return 1;
20592   close (fd);
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest$ac_exeext
20597 if { (ac_try="$ac_link"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_link") 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20607   { (case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612   (eval "$ac_try") 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }; then
20616   ac_cv_func_mmap_fixed_mapped=yes
20617 else
20618   echo "$as_me: program exited with status $ac_status" >&5
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ( exit $ac_status )
20623 ac_cv_func_mmap_fixed_mapped=no
20624 fi
20625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20626 fi
20627
20628
20629 fi
20630 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20631 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20632 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20633
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_MMAP 1
20636 _ACEOF
20637
20638 fi
20639 rm -f conftest.mmap
20640
20641   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20642 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_mmap_file+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646    ac_ext=c
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651
20652   if test "$cross_compiling" = yes; then
20653   ac_cv_func_mmap_file=no
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656
20657     /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662
20663 #include <sys/types.h>
20664 #include <sys/mman.h>
20665 #include <fcntl.h>
20666
20667 int
20668 main ()
20669 {
20670
20671   int fd;
20672   fd = creat ("foo",0777);
20673   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20674   unlink ("foo");
20675   return (fd != (int) MAP_FAILED);
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_link") 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20691   { (case "(($ac_try" in
20692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693   *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696   (eval "$ac_try") 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ac_cv_func_mmap_file=yes
20701 else
20702   echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 ( exit $ac_status )
20707 ac_cv_func_mmap_file=no
20708 fi
20709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20710 fi
20711
20712
20713   ac_ext=c
20714 ac_cpp='$CPP $CPPFLAGS'
20715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20718
20719
20720 fi
20721 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20722 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20723 if test "$ac_cv_func_mmap_file" = yes; then
20724
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_MMAP_FILE
20727 _ACEOF
20728
20729    MMAP_FILE=yes
20730
20731 fi
20732
20733   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20734 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20735 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   if test "$llvm_cv_os_type" = "Interix" ; then
20739    ac_cv_need_dev_zero_for_mmap=yes
20740  else
20741    ac_cv_need_dev_zero_for_mmap=no
20742  fi
20743
20744 fi
20745 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20746 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20747 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20748
20749 cat >>confdefs.h <<\_ACEOF
20750 #define NEED_DEV_ZERO_FOR_MMAP 1
20751 _ACEOF
20752
20753 fi
20754
20755   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20756   then
20757     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20758 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20759   fi
20760   if test "$ac_cv_func_mmap_file" = "no"
20761   then
20762     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20763 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20764   fi
20765 fi
20766
20767 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20768 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20769 ac_ext=cpp
20770 ac_cpp='$CXXCPP $CPPFLAGS'
20771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20774
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 int main() {
20782         volatile unsigned long val = 1;
20783         __sync_synchronize();
20784         __sync_val_compare_and_swap(&val, 1, 0);
20785         __sync_add_and_fetch(&val, 1);
20786         __sync_sub_and_fetch(&val, 1);
20787         return 0;
20788       }
20789
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_link") 2>conftest.er1
20799   ac_status=$?
20800   grep -v '^ *+' conftest.er1 >conftest.err
20801   rm -f conftest.er1
20802   cat conftest.err >&5
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } &&
20805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20806   { (case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_try") 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; } &&
20815          { ac_try='test -s conftest$ac_exeext'
20816   { (case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_try") 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   ac_ext=c
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
20831   { echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6; }
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define LLVM_HAS_ATOMICS 1
20836 _ACEOF
20837
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         { echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6; }
20844
20845 cat >>confdefs.h <<\_ACEOF
20846 #define LLVM_HAS_ATOMICS 0
20847 _ACEOF
20848
20849   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20850 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20851 fi
20852
20853 rm -f core conftest.err conftest.$ac_objext \
20854       conftest$ac_exeext conftest.$ac_ext
20855
20856
20857 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20858   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20859 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20860 if test "${llvm_cv_linux_mixed+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863    ac_ext=c
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868
20869   cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #ifndef __x86_64__
20876        error: Not x86-64 even if uname says so!
20877       #endif
20878
20879 int
20880 main ()
20881 {
20882
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_compile") 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } &&
20901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20902   { (case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_try") 2>&5
20908   ac_status=$?
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); }; } &&
20911          { ac_try='test -s conftest.$ac_objext'
20912   { (case "(($ac_try" in
20913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914   *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917   (eval "$ac_try") 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; }; then
20921   llvm_cv_linux_mixed=no
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926         llvm_cv_linux_mixed=yes
20927 fi
20928
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930   ac_ext=c
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935
20936
20937 fi
20938 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20939 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20940
20941   if test "$llvm_cv_linux_mixed" = "yes"; then
20942     llvm_cv_target_arch="x86"
20943     ARCH="x86"
20944   fi
20945 fi
20946
20947
20948 for ac_func in __dso_handle
20949 do
20950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20954   echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956   cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20964 #define $ac_func innocuous_$ac_func
20965
20966 /* System header to define __stub macros and hopefully few prototypes,
20967     which can conflict with char $ac_func (); below.
20968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20969     <limits.h> exists even on freestanding compilers.  */
20970
20971 #ifdef __STDC__
20972 # include <limits.h>
20973 #else
20974 # include <assert.h>
20975 #endif
20976
20977 #undef $ac_func
20978
20979 /* Override any GCC internal prototype to avoid an error.
20980    Use char because int might match the return type of a GCC
20981    builtin and then its argument prototype would still apply.  */
20982 #ifdef __cplusplus
20983 extern "C"
20984 #endif
20985 char $ac_func ();
20986 /* The GNU C library defines this for functions which it implements
20987     to always fail with ENOSYS.  Some functions are actually named
20988     something starting with __ and the normal name is an alias.  */
20989 #if defined __stub_$ac_func || defined __stub___$ac_func
20990 choke me
20991 #endif
20992
20993 int
20994 main ()
20995 {
20996 return $ac_func ();
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (ac_try="$ac_link"
21003 case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_link") 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } &&
21015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016   { (case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_try") 2>&5
21022   ac_status=$?
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); }; } &&
21025          { ac_try='test -s conftest$ac_exeext'
21026   { (case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031   (eval "$ac_try") 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   eval "$as_ac_var=yes"
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040         eval "$as_ac_var=no"
21041 fi
21042
21043 rm -f core conftest.err conftest.$ac_objext \
21044       conftest$ac_exeext conftest.$ac_ext
21045 fi
21046 ac_res=`eval echo '${'$as_ac_var'}'`
21047                { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_var'}'` = yes; then
21050   cat >>confdefs.h <<_ACEOF
21051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21052 _ACEOF
21053
21054 fi
21055 done
21056
21057
21058 SHLIBEXT=$libltdl_cv_shlibext
21059
21060
21061 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21062
21063
21064 if test "${prefix}" = "NONE" ; then
21065   prefix="/usr/local"
21066 fi
21067 eval LLVM_PREFIX="${prefix}";
21068 eval LLVM_BINDIR="${prefix}/bin";
21069 eval LLVM_LIBDIR="${prefix}/lib";
21070 eval LLVM_DATADIR="${prefix}/share/llvm";
21071 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21072 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21073 eval LLVM_INCLUDEDIR="${prefix}/include";
21074 eval LLVM_INFODIR="${prefix}/info";
21075 eval LLVM_MANDIR="${prefix}/man";
21076 LLVM_CONFIGTIME=`date`
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21089   LLVM_CONFIGTIME="(timestamp not enabled)"
21090 fi
21091
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define LLVM_PREFIX "$LLVM_PREFIX"
21095 _ACEOF
21096
21097
21098 cat >>confdefs.h <<_ACEOF
21099 #define LLVM_BINDIR "$LLVM_BINDIR"
21100 _ACEOF
21101
21102
21103 cat >>confdefs.h <<_ACEOF
21104 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21105 _ACEOF
21106
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_DATADIR "$LLVM_DATADIR"
21110 _ACEOF
21111
21112
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21115 _ACEOF
21116
21117
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21120 _ACEOF
21121
21122
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21125 _ACEOF
21126
21127
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_INFODIR "$LLVM_INFODIR"
21130 _ACEOF
21131
21132
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_MANDIR "$LLVM_MANDIR"
21135 _ACEOF
21136
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21140 _ACEOF
21141
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21145 _ACEOF
21146
21147
21148 if test "$BINDINGS_TO_BUILD" = auto ; then
21149   BINDINGS_TO_BUILD=""
21150   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21151     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21152   fi
21153 fi
21154 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21155
21156
21157 ALL_BINDINGS=ocaml
21158
21159
21160 binding_prereqs_failed=0
21161 for a_binding in $BINDINGS_TO_BUILD ; do
21162   case "$a_binding" in
21163   ocaml)
21164     if test "x$OCAMLC" = x ; then
21165       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21166 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21167       binding_prereqs_failed=1
21168     fi
21169     if test "x$OCAMLDEP" = x ; then
21170       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21171 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21172       binding_prereqs_failed=1
21173     fi
21174     if test "x$OCAMLOPT" = x ; then
21175       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21176 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21177           fi
21178     if test "x$with_ocaml_libdir" != xauto ; then
21179       OCAML_LIBDIR=$with_ocaml_libdir
21180
21181     else
21182       ocaml_stdlib="`"$OCAMLC" -where`"
21183       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21184       then
21185         # ocaml stdlib is beneath our prefix; use stdlib
21186         OCAML_LIBDIR=$ocaml_stdlib
21187
21188       else
21189         # ocaml stdlib is outside our prefix; use libdir/ocaml
21190         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21191
21192       fi
21193     fi
21194     ;;
21195   esac
21196 done
21197 if test "$binding_prereqs_failed" = 1 ; then
21198   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21199 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21200    { (exit 1); exit 1; }; }
21201 fi
21202
21203 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21204 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21205 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208    ac_ext=cpp
21209 ac_cpp='$CXXCPP $CPPFLAGS'
21210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21213
21214   oldcxxflags="$CXXFLAGS"
21215   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21216   cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21223 int
21224 main ()
21225 {
21226 X<int>().f();
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235   *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238   (eval "$ac_compile") 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21246   { (case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_try") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; } &&
21255          { ac_try='test -s conftest.$ac_objext'
21256   { (case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_try") 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; }; then
21265   llvm_cv_cxx_visibility_inlines_hidden=yes
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270         llvm_cv_cxx_visibility_inlines_hidden=no
21271 fi
21272
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274   CXXFLAGS="$oldcxxflags"
21275   ac_ext=c
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282 fi
21283 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21284 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21285 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21286   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21287
21288 else
21289   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21290
21291 fi
21292
21293
21294 if test "$llvm_cv_link_use_r" = "yes" ; then
21295   RPATH="-Wl,-R"
21296 else
21297   RPATH="-Wl,-rpath"
21298 fi
21299
21300
21301 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21302   RDYNAMIC="-Wl,-export-dynamic"
21303 else
21304   RDYNAMIC=""
21305 fi
21306
21307
21308
21309 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21310
21311
21312
21313
21314
21315
21316 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21317
21318 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21319
21320 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21321
21322 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21323
21324 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21325
21326
21327 ac_config_files="$ac_config_files Makefile.config"
21328
21329
21330 ac_config_files="$ac_config_files llvm.spec"
21331
21332
21333 ac_config_files="$ac_config_files docs/doxygen.cfg"
21334
21335
21336 if test "${clang_src_root}" = ""; then
21337   clang_src_root="$srcdir/tools/clang"
21338 fi
21339 if test -f ${clang_src_root}/README.txt; then
21340     configh="include/clang/Config/config.h"
21341   doxy="docs/doxygen.cfg"
21342   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21343
21344   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21345
21346 fi
21347
21348 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21349
21350
21351 ac_config_commands="$ac_config_commands setup"
21352
21353 ac_config_commands="$ac_config_commands Makefile"
21354
21355
21356 ac_config_commands="$ac_config_commands Makefile.common"
21357
21358
21359 ac_config_commands="$ac_config_commands examples/Makefile"
21360
21361
21362 ac_config_commands="$ac_config_commands lib/Makefile"
21363
21364
21365 ac_config_commands="$ac_config_commands runtime/Makefile"
21366
21367
21368 ac_config_commands="$ac_config_commands test/Makefile"
21369
21370
21371 ac_config_commands="$ac_config_commands test/Makefile.tests"
21372
21373
21374 ac_config_commands="$ac_config_commands unittests/Makefile"
21375
21376
21377 ac_config_commands="$ac_config_commands tools/Makefile"
21378
21379
21380 ac_config_commands="$ac_config_commands utils/Makefile"
21381
21382
21383 ac_config_commands="$ac_config_commands projects/Makefile"
21384
21385
21386 ac_config_commands="$ac_config_commands bindings/Makefile"
21387
21388
21389 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21390
21391
21392
21393 cat >confcache <<\_ACEOF
21394 # This file is a shell script that caches the results of configure
21395 # tests run on this system so they can be shared between configure
21396 # scripts and configure runs, see configure's option --config-cache.
21397 # It is not useful on other systems.  If it contains results you don't
21398 # want to keep, you may remove or edit it.
21399 #
21400 # config.status only pays attention to the cache file if you give it
21401 # the --recheck option to rerun configure.
21402 #
21403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21405 # following values.
21406
21407 _ACEOF
21408
21409 # The following way of writing the cache mishandles newlines in values,
21410 # but we know of no workaround that is simple, portable, and efficient.
21411 # So, we kill variables containing newlines.
21412 # Ultrix sh set writes to stderr and can't be redirected directly,
21413 # and sets the high bit in the cache file unless we assign to the vars.
21414 (
21415   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21416     eval ac_val=\$$ac_var
21417     case $ac_val in #(
21418     *${as_nl}*)
21419       case $ac_var in #(
21420       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21421 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21422       esac
21423       case $ac_var in #(
21424       _ | IFS | as_nl) ;; #(
21425       *) $as_unset $ac_var ;;
21426       esac ;;
21427     esac
21428   done
21429
21430   (set) 2>&1 |
21431     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21432     *${as_nl}ac_space=\ *)
21433       # `set' does not quote correctly, so add quotes (double-quote
21434       # substitution turns \\\\ into \\, and sed turns \\ into \).
21435       sed -n \
21436         "s/'/'\\\\''/g;
21437           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21438       ;; #(
21439     *)
21440       # `set' quotes correctly as required by POSIX, so do not add quotes.
21441       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21442       ;;
21443     esac |
21444     sort
21445 ) |
21446   sed '
21447      /^ac_cv_env_/b end
21448      t clear
21449      :clear
21450      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21451      t end
21452      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21453      :end' >>confcache
21454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21455   if test -w "$cache_file"; then
21456     test "x$cache_file" != "x/dev/null" &&
21457       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21458 echo "$as_me: updating cache $cache_file" >&6;}
21459     cat confcache >$cache_file
21460   else
21461     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21462 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21463   fi
21464 fi
21465 rm -f confcache
21466
21467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21468 # Let make expand exec_prefix.
21469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21470
21471 DEFS=-DHAVE_CONFIG_H
21472
21473 ac_libobjs=
21474 ac_ltlibobjs=
21475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21476   # 1. Remove the extension, and $U if already installed.
21477   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21478   ac_i=`echo "$ac_i" | sed "$ac_script"`
21479   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21480   #    will be set to the directory where LIBOBJS objects are built.
21481   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21482   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21483 done
21484 LIBOBJS=$ac_libobjs
21485
21486 LTLIBOBJS=$ac_ltlibobjs
21487
21488
21489 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21490   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&5
21492 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&2;}
21494    { (exit 1); exit 1; }; }
21495 fi
21496 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21497   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&5
21499 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&2;}
21501    { (exit 1); exit 1; }; }
21502 fi
21503
21504 : ${CONFIG_STATUS=./config.status}
21505 ac_clean_files_save=$ac_clean_files
21506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21509 cat >$CONFIG_STATUS <<_ACEOF
21510 #! $SHELL
21511 # Generated by $as_me.
21512 # Run this file to recreate the current configuration.
21513 # Compiler output produced by configure, useful for debugging
21514 # configure, is in config.log if it exists.
21515
21516 debug=false
21517 ac_cs_recheck=false
21518 ac_cs_silent=false
21519 SHELL=\${CONFIG_SHELL-$SHELL}
21520 _ACEOF
21521
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 ## --------------------- ##
21524 ## M4sh Initialization.  ##
21525 ## --------------------- ##
21526
21527 # Be Bourne compatible
21528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21529   emulate sh
21530   NULLCMD=:
21531   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21532   # is contrary to our usage.  Disable this feature.
21533   alias -g '${1+"$@"}'='"$@"'
21534   setopt NO_GLOB_SUBST
21535 else
21536   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21537 fi
21538 BIN_SH=xpg4; export BIN_SH # for Tru64
21539 DUALCASE=1; export DUALCASE # for MKS sh
21540
21541
21542 # PATH needs CR
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21549
21550 # The user is always right.
21551 if test "${PATH_SEPARATOR+set}" != set; then
21552   echo "#! /bin/sh" >conf$$.sh
21553   echo  "exit 0"   >>conf$$.sh
21554   chmod +x conf$$.sh
21555   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21556     PATH_SEPARATOR=';'
21557   else
21558     PATH_SEPARATOR=:
21559   fi
21560   rm -f conf$$.sh
21561 fi
21562
21563 # Support unset when possible.
21564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21565   as_unset=unset
21566 else
21567   as_unset=false
21568 fi
21569
21570
21571 # IFS
21572 # We need space, tab and new line, in precisely that order.  Quoting is
21573 # there to prevent editors from complaining about space-tab.
21574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21575 # splitting by setting IFS to empty value.)
21576 as_nl='
21577 '
21578 IFS=" ""        $as_nl"
21579
21580 # Find who we are.  Look in the path if we contain no directory separator.
21581 case $0 in
21582   *[\\/]* ) as_myself=$0 ;;
21583   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21584 for as_dir in $PATH
21585 do
21586   IFS=$as_save_IFS
21587   test -z "$as_dir" && as_dir=.
21588   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21589 done
21590 IFS=$as_save_IFS
21591
21592      ;;
21593 esac
21594 # We did not find ourselves, most probably we were run as `sh COMMAND'
21595 # in which case we are not to be found in the path.
21596 if test "x$as_myself" = x; then
21597   as_myself=$0
21598 fi
21599 if test ! -f "$as_myself"; then
21600   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21601   { (exit 1); exit 1; }
21602 fi
21603
21604 # Work around bugs in pre-3.0 UWIN ksh.
21605 for as_var in ENV MAIL MAILPATH
21606 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21607 done
21608 PS1='$ '
21609 PS2='> '
21610 PS4='+ '
21611
21612 # NLS nuisances.
21613 for as_var in \
21614   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21615   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21616   LC_TELEPHONE LC_TIME
21617 do
21618   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21619     eval $as_var=C; export $as_var
21620   else
21621     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21622   fi
21623 done
21624
21625 # Required to use basename.
21626 if expr a : '\(a\)' >/dev/null 2>&1 &&
21627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21628   as_expr=expr
21629 else
21630   as_expr=false
21631 fi
21632
21633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634   as_basename=basename
21635 else
21636   as_basename=false
21637 fi
21638
21639
21640 # Name of the executable.
21641 as_me=`$as_basename -- "$0" ||
21642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21643          X"$0" : 'X\(//\)$' \| \
21644          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21645 echo X/"$0" |
21646     sed '/^.*\/\([^/][^/]*\)\/*$/{
21647             s//\1/
21648             q
21649           }
21650           /^X\/\(\/\/\)$/{
21651             s//\1/
21652             q
21653           }
21654           /^X\/\(\/\).*/{
21655             s//\1/
21656             q
21657           }
21658           s/.*/./; q'`
21659
21660 # CDPATH.
21661 $as_unset CDPATH
21662
21663
21664
21665   as_lineno_1=$LINENO
21666   as_lineno_2=$LINENO
21667   test "x$as_lineno_1" != "x$as_lineno_2" &&
21668   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21669
21670   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21671   # uniformly replaced by the line number.  The first 'sed' inserts a
21672   # line-number line after each line using $LINENO; the second 'sed'
21673   # does the real work.  The second script uses 'N' to pair each
21674   # line-number line with the line containing $LINENO, and appends
21675   # trailing '-' during substitution so that $LINENO is not a special
21676   # case at line end.
21677   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21678   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21679   # E. McMahon (1931-1989) for sed's syntax.  :-)
21680   sed -n '
21681     p
21682     /[$]LINENO/=
21683   ' <$as_myself |
21684     sed '
21685       s/[$]LINENO.*/&-/
21686       t lineno
21687       b
21688       :lineno
21689       N
21690       :loop
21691       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21692       t loop
21693       s/-\n.*//
21694     ' >$as_me.lineno &&
21695   chmod +x "$as_me.lineno" ||
21696     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697    { (exit 1); exit 1; }; }
21698
21699   # Don't try to exec as it changes $[0], causing all sort of problems
21700   # (the dirname of $[0] is not the place where we might find the
21701   # original and so on.  Autoconf is especially sensitive to this).
21702   . "./$as_me.lineno"
21703   # Exit status is that of the last command.
21704   exit
21705 }
21706
21707
21708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21709   as_dirname=dirname
21710 else
21711   as_dirname=false
21712 fi
21713
21714 ECHO_C= ECHO_N= ECHO_T=
21715 case `echo -n x` in
21716 -n*)
21717   case `echo 'x\c'` in
21718   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21719   *)   ECHO_C='\c';;
21720   esac;;
21721 *)
21722   ECHO_N='-n';;
21723 esac
21724
21725 if expr a : '\(a\)' >/dev/null 2>&1 &&
21726    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21727   as_expr=expr
21728 else
21729   as_expr=false
21730 fi
21731
21732 rm -f conf$$ conf$$.exe conf$$.file
21733 if test -d conf$$.dir; then
21734   rm -f conf$$.dir/conf$$.file
21735 else
21736   rm -f conf$$.dir
21737   mkdir conf$$.dir
21738 fi
21739 echo >conf$$.file
21740 if ln -s conf$$.file conf$$ 2>/dev/null; then
21741   as_ln_s='ln -s'
21742   # ... but there are two gotchas:
21743   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21744   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21745   # In both cases, we have to default to `cp -p'.
21746   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21747     as_ln_s='cp -p'
21748 elif ln conf$$.file conf$$ 2>/dev/null; then
21749   as_ln_s=ln
21750 else
21751   as_ln_s='cp -p'
21752 fi
21753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21754 rmdir conf$$.dir 2>/dev/null
21755
21756 if mkdir -p . 2>/dev/null; then
21757   as_mkdir_p=:
21758 else
21759   test -d ./-p && rmdir ./-p
21760   as_mkdir_p=false
21761 fi
21762
21763 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21764 # systems may use methods other than mode bits to determine executability.
21765 cat >conf$$.file <<_ASEOF
21766 #! /bin/sh
21767 exit 0
21768 _ASEOF
21769 chmod +x conf$$.file
21770 if test -x conf$$.file >/dev/null 2>&1; then
21771   as_executable_p="test -x"
21772 else
21773   as_executable_p=:
21774 fi
21775 rm -f conf$$.file
21776
21777 # Sed expression to map a string onto a valid CPP name.
21778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21779
21780 # Sed expression to map a string onto a valid variable name.
21781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21782
21783
21784 exec 6>&1
21785
21786 # Save the log message, to keep $[0] and so on meaningful, and to
21787 # report actual input values of CONFIG_FILES etc. instead of their
21788 # values after options handling.
21789 ac_log="
21790 This file was extended by LLVM $as_me 3.1svn, which was
21791 generated by GNU Autoconf 2.60.  Invocation command line was
21792
21793   CONFIG_FILES    = $CONFIG_FILES
21794   CONFIG_HEADERS  = $CONFIG_HEADERS
21795   CONFIG_LINKS    = $CONFIG_LINKS
21796   CONFIG_COMMANDS = $CONFIG_COMMANDS
21797   $ $0 $@
21798
21799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21800 "
21801
21802 _ACEOF
21803
21804 cat >>$CONFIG_STATUS <<_ACEOF
21805 # Files that config.status was made for.
21806 config_files="$ac_config_files"
21807 config_headers="$ac_config_headers"
21808 config_commands="$ac_config_commands"
21809
21810 _ACEOF
21811
21812 cat >>$CONFIG_STATUS <<\_ACEOF
21813 ac_cs_usage="\
21814 \`$as_me' instantiates files from templates according to the
21815 current configuration.
21816
21817 Usage: $0 [OPTIONS] [FILE]...
21818
21819   -h, --help       print this help, then exit
21820   -V, --version    print version number, then exit
21821   -q, --quiet      do not print progress messages
21822   -d, --debug      don't remove temporary files
21823       --recheck    update $as_me by reconfiguring in the same conditions
21824   --file=FILE[:TEMPLATE]
21825                    instantiate the configuration file FILE
21826   --header=FILE[:TEMPLATE]
21827                    instantiate the configuration header FILE
21828
21829 Configuration files:
21830 $config_files
21831
21832 Configuration headers:
21833 $config_headers
21834
21835 Configuration commands:
21836 $config_commands
21837
21838 Report bugs to <bug-autoconf@gnu.org>."
21839
21840 _ACEOF
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 ac_cs_version="\\
21843 LLVM config.status 3.1svn
21844 configured by $0, generated by GNU Autoconf 2.60,
21845   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21846
21847 Copyright (C) 2006 Free Software Foundation, Inc.
21848 This config.status script is free software; the Free Software Foundation
21849 gives unlimited permission to copy, distribute and modify it."
21850
21851 ac_pwd='$ac_pwd'
21852 srcdir='$srcdir'
21853 INSTALL='$INSTALL'
21854 _ACEOF
21855
21856 cat >>$CONFIG_STATUS <<\_ACEOF
21857 # If no file are specified by the user, then we need to provide default
21858 # value.  By we need to know if files were specified by the user.
21859 ac_need_defaults=:
21860 while test $# != 0
21861 do
21862   case $1 in
21863   --*=*)
21864     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21865     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21866     ac_shift=:
21867     ;;
21868   *)
21869     ac_option=$1
21870     ac_optarg=$2
21871     ac_shift=shift
21872     ;;
21873   esac
21874
21875   case $ac_option in
21876   # Handling of the options.
21877   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21878     ac_cs_recheck=: ;;
21879   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21880     echo "$ac_cs_version"; exit ;;
21881   --debug | --debu | --deb | --de | --d | -d )
21882     debug=: ;;
21883   --file | --fil | --fi | --f )
21884     $ac_shift
21885     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21886     ac_need_defaults=false;;
21887   --header | --heade | --head | --hea )
21888     $ac_shift
21889     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21890     ac_need_defaults=false;;
21891   --he | --h)
21892     # Conflict between --help and --header
21893     { echo "$as_me: error: ambiguous option: $1
21894 Try \`$0 --help' for more information." >&2
21895    { (exit 1); exit 1; }; };;
21896   --help | --hel | -h )
21897     echo "$ac_cs_usage"; exit ;;
21898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21900     ac_cs_silent=: ;;
21901
21902   # This is an error.
21903   -*) { echo "$as_me: error: unrecognized option: $1
21904 Try \`$0 --help' for more information." >&2
21905    { (exit 1); exit 1; }; } ;;
21906
21907   *) ac_config_targets="$ac_config_targets $1"
21908      ac_need_defaults=false ;;
21909
21910   esac
21911   shift
21912 done
21913
21914 ac_configure_extra_args=
21915
21916 if $ac_cs_silent; then
21917   exec 6>/dev/null
21918   ac_configure_extra_args="$ac_configure_extra_args --silent"
21919 fi
21920
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 if \$ac_cs_recheck; then
21924   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21925   CONFIG_SHELL=$SHELL
21926   export CONFIG_SHELL
21927   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21928 fi
21929
21930 _ACEOF
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21932 exec 5>>config.log
21933 {
21934   echo
21935   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936 ## Running $as_me. ##
21937 _ASBOX
21938   echo "$ac_log"
21939 } >&5
21940
21941 _ACEOF
21942 cat >>$CONFIG_STATUS <<_ACEOF
21943 #
21944 # INIT-COMMANDS
21945 #
21946 llvm_src="${srcdir}"
21947
21948 _ACEOF
21949
21950 cat >>$CONFIG_STATUS <<\_ACEOF
21951
21952 # Handling of arguments.
21953 for ac_config_target in $ac_config_targets
21954 do
21955   case $ac_config_target in
21956     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21957     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21958     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21959     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21960     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21961     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21962     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21963     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21964     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21965     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21966     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21967     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21968     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21969     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21970     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21971     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21972     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21973     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21974     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21975     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21976     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21977     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21978     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21979     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21980     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21981     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21982     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21983
21984   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21986    { (exit 1); exit 1; }; };;
21987   esac
21988 done
21989
21990
21991 # If the user did not use the arguments to specify the items to instantiate,
21992 # then the envvar interface is used.  Set only those that are not.
21993 # We use the long form for the default assignment because of an extremely
21994 # bizarre bug on SunOS 4.1.3.
21995 if $ac_need_defaults; then
21996   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21997   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21998   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21999 fi
22000
22001 # Have a temporary directory for convenience.  Make it in the build tree
22002 # simply because there is no reason against having it here, and in addition,
22003 # creating and moving files from /tmp can sometimes cause problems.
22004 # Hook for its removal unless debugging.
22005 # Note that there is a small window in which the directory will not be cleaned:
22006 # after its creation but before its name has been assigned to `$tmp'.
22007 $debug ||
22008 {
22009   tmp=
22010   trap 'exit_status=$?
22011   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22012 ' 0
22013   trap '{ (exit 1); exit 1; }' 1 2 13 15
22014 }
22015 # Create a (secure) tmp directory for tmp files.
22016
22017 {
22018   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22019   test -n "$tmp" && test -d "$tmp"
22020 }  ||
22021 {
22022   tmp=./conf$$-$RANDOM
22023   (umask 077 && mkdir "$tmp")
22024 } ||
22025 {
22026    echo "$me: cannot create a temporary directory in ." >&2
22027    { (exit 1); exit 1; }
22028 }
22029
22030 #
22031 # Set up the sed scripts for CONFIG_FILES section.
22032 #
22033
22034 # No need to generate the scripts if there are no CONFIG_FILES.
22035 # This happens for instance when ./config.status config.h
22036 if test -n "$CONFIG_FILES"; then
22037
22038 _ACEOF
22039
22040
22041
22042 ac_delim='%!_!# '
22043 for ac_last_try in false false false false false :; do
22044   cat >conf$$subs.sed <<_ACEOF
22045 SHELL!$SHELL$ac_delim
22046 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22047 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22048 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22049 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22050 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22051 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22052 exec_prefix!$exec_prefix$ac_delim
22053 prefix!$prefix$ac_delim
22054 program_transform_name!$program_transform_name$ac_delim
22055 bindir!$bindir$ac_delim
22056 sbindir!$sbindir$ac_delim
22057 libexecdir!$libexecdir$ac_delim
22058 datarootdir!$datarootdir$ac_delim
22059 datadir!$datadir$ac_delim
22060 sysconfdir!$sysconfdir$ac_delim
22061 sharedstatedir!$sharedstatedir$ac_delim
22062 localstatedir!$localstatedir$ac_delim
22063 includedir!$includedir$ac_delim
22064 oldincludedir!$oldincludedir$ac_delim
22065 docdir!$docdir$ac_delim
22066 infodir!$infodir$ac_delim
22067 htmldir!$htmldir$ac_delim
22068 dvidir!$dvidir$ac_delim
22069 pdfdir!$pdfdir$ac_delim
22070 psdir!$psdir$ac_delim
22071 libdir!$libdir$ac_delim
22072 localedir!$localedir$ac_delim
22073 mandir!$mandir$ac_delim
22074 DEFS!$DEFS$ac_delim
22075 ECHO_C!$ECHO_C$ac_delim
22076 ECHO_N!$ECHO_N$ac_delim
22077 ECHO_T!$ECHO_T$ac_delim
22078 LIBS!$LIBS$ac_delim
22079 build_alias!$build_alias$ac_delim
22080 host_alias!$host_alias$ac_delim
22081 target_alias!$target_alias$ac_delim
22082 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22083 CC!$CC$ac_delim
22084 CFLAGS!$CFLAGS$ac_delim
22085 LDFLAGS!$LDFLAGS$ac_delim
22086 CPPFLAGS!$CPPFLAGS$ac_delim
22087 ac_ct_CC!$ac_ct_CC$ac_delim
22088 EXEEXT!$EXEEXT$ac_delim
22089 OBJEXT!$OBJEXT$ac_delim
22090 CXX!$CXX$ac_delim
22091 CXXFLAGS!$CXXFLAGS$ac_delim
22092 ac_ct_CXX!$ac_ct_CXX$ac_delim
22093 CPP!$CPP$ac_delim
22094 subdirs!$subdirs$ac_delim
22095 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22096 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22097 build!$build$ac_delim
22098 build_cpu!$build_cpu$ac_delim
22099 build_vendor!$build_vendor$ac_delim
22100 build_os!$build_os$ac_delim
22101 host!$host$ac_delim
22102 host_cpu!$host_cpu$ac_delim
22103 host_vendor!$host_vendor$ac_delim
22104 host_os!$host_os$ac_delim
22105 target!$target$ac_delim
22106 target_cpu!$target_cpu$ac_delim
22107 target_vendor!$target_vendor$ac_delim
22108 target_os!$target_os$ac_delim
22109 OS!$OS$ac_delim
22110 HOST_OS!$HOST_OS$ac_delim
22111 TARGET_OS!$TARGET_OS$ac_delim
22112 LINKALL!$LINKALL$ac_delim
22113 NOLINKALL!$NOLINKALL$ac_delim
22114 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22115 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22116 ARCH!$ARCH$ac_delim
22117 ENDIAN!$ENDIAN$ac_delim
22118 GREP!$GREP$ac_delim
22119 EGREP!$EGREP$ac_delim
22120 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22121 BUILD_CC!$BUILD_CC$ac_delim
22122 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22123 BUILD_CXX!$BUILD_CXX$ac_delim
22124 CVSBUILD!$CVSBUILD$ac_delim
22125 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22126 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22127 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22128 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22129 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22130 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22131 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22132 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22133 JIT!$JIT$ac_delim
22134 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22135 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22136 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22137 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22138 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22139 ENABLE_PIC!$ENABLE_PIC$ac_delim
22140 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22141 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22142 _ACEOF
22143
22144   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22145     break
22146   elif $ac_last_try; then
22147     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22148 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22149    { (exit 1); exit 1; }; }
22150   else
22151     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22152   fi
22153 done
22154
22155 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22156 if test -n "$ac_eof"; then
22157   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22158   ac_eof=`expr $ac_eof + 1`
22159 fi
22160
22161 cat >>$CONFIG_STATUS <<_ACEOF
22162 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164 _ACEOF
22165 sed '
22166 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22167 s/^/s,@/; s/!/@,|#_!!_#|/
22168 :n
22169 t n
22170 s/'"$ac_delim"'$/,g/; t
22171 s/$/\\/; p
22172 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22173 ' >>$CONFIG_STATUS <conf$$subs.sed
22174 rm -f conf$$subs.sed
22175 cat >>$CONFIG_STATUS <<_ACEOF
22176 CEOF$ac_eof
22177 _ACEOF
22178
22179
22180 ac_delim='%!_!# '
22181 for ac_last_try in false false false false false :; do
22182   cat >conf$$subs.sed <<_ACEOF
22183 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22184 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22185 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22186 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22187 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22188 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22189 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22190 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22191 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22192 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22193 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22194 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22195 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22196 NM!$NM$ac_delim
22197 ifGNUmake!$ifGNUmake$ac_delim
22198 LN_S!$LN_S$ac_delim
22199 CMP!$CMP$ac_delim
22200 CP!$CP$ac_delim
22201 DATE!$DATE$ac_delim
22202 FIND!$FIND$ac_delim
22203 MKDIR!$MKDIR$ac_delim
22204 MV!$MV$ac_delim
22205 RANLIB!$RANLIB$ac_delim
22206 AR!$AR$ac_delim
22207 RM!$RM$ac_delim
22208 SED!$SED$ac_delim
22209 TAR!$TAR$ac_delim
22210 BINPWD!$BINPWD$ac_delim
22211 GRAPHVIZ!$GRAPHVIZ$ac_delim
22212 DOT!$DOT$ac_delim
22213 FDP!$FDP$ac_delim
22214 NEATO!$NEATO$ac_delim
22215 TWOPI!$TWOPI$ac_delim
22216 CIRCO!$CIRCO$ac_delim
22217 GV!$GV$ac_delim
22218 DOTTY!$DOTTY$ac_delim
22219 XDOT_PY!$XDOT_PY$ac_delim
22220 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22221 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22222 INSTALL_DATA!$INSTALL_DATA$ac_delim
22223 BZIP2!$BZIP2$ac_delim
22224 CAT!$CAT$ac_delim
22225 DOXYGEN!$DOXYGEN$ac_delim
22226 GROFF!$GROFF$ac_delim
22227 GZIPBIN!$GZIPBIN$ac_delim
22228 POD2HTML!$POD2HTML$ac_delim
22229 POD2MAN!$POD2MAN$ac_delim
22230 PDFROFF!$PDFROFF$ac_delim
22231 RUNTEST!$RUNTEST$ac_delim
22232 TCLSH!$TCLSH$ac_delim
22233 ZIP!$ZIP$ac_delim
22234 OCAMLC!$OCAMLC$ac_delim
22235 OCAMLOPT!$OCAMLOPT$ac_delim
22236 OCAMLDEP!$OCAMLDEP$ac_delim
22237 OCAMLDOC!$OCAMLDOC$ac_delim
22238 GAS!$GAS$ac_delim
22239 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22240 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22241 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22242 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22243 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22244 LIBADD_DL!$LIBADD_DL$ac_delim
22245 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22246 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22247 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22248 USE_UDIS86!$USE_UDIS86$ac_delim
22249 USE_OPROFILE!$USE_OPROFILE$ac_delim
22250 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22251 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22252 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22253 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22254 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22255 MMAP_FILE!$MMAP_FILE$ac_delim
22256 SHLIBEXT!$SHLIBEXT$ac_delim
22257 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22258 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22259 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22260 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22261 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22262 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22263 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22264 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22265 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22266 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22267 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22268 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22269 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22270 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22271 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22272 RPATH!$RPATH$ac_delim
22273 RDYNAMIC!$RDYNAMIC$ac_delim
22274 LIBOBJS!$LIBOBJS$ac_delim
22275 LTLIBOBJS!$LTLIBOBJS$ac_delim
22276 _ACEOF
22277
22278   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22279     break
22280   elif $ac_last_try; then
22281     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22282 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22283    { (exit 1); exit 1; }; }
22284   else
22285     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22286   fi
22287 done
22288
22289 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22290 if test -n "$ac_eof"; then
22291   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22292   ac_eof=`expr $ac_eof + 1`
22293 fi
22294
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22298 _ACEOF
22299 sed '
22300 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22301 s/^/s,@/; s/!/@,|#_!!_#|/
22302 :n
22303 t n
22304 s/'"$ac_delim"'$/,g/; t
22305 s/$/\\/; p
22306 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22307 ' >>$CONFIG_STATUS <conf$$subs.sed
22308 rm -f conf$$subs.sed
22309 cat >>$CONFIG_STATUS <<_ACEOF
22310 :end
22311 s/|#_!!_#|//g
22312 CEOF$ac_eof
22313 _ACEOF
22314
22315
22316 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22317 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22318 # trailing colons and then remove the whole line if VPATH becomes empty
22319 # (actually we leave an empty line to preserve line numbers).
22320 if test "x$srcdir" = x.; then
22321   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22322 s/:*\$(srcdir):*/:/
22323 s/:*\${srcdir}:*/:/
22324 s/:*@srcdir@:*/:/
22325 s/^\([^=]*=[     ]*\):*/\1/
22326 s/:*$//
22327 s/^[^=]*=[       ]*$//
22328 }'
22329 fi
22330
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22332 fi # test -n "$CONFIG_FILES"
22333
22334
22335 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22336 do
22337   case $ac_tag in
22338   :[FHLC]) ac_mode=$ac_tag; continue;;
22339   esac
22340   case $ac_mode$ac_tag in
22341   :[FHL]*:*);;
22342   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22343 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22344    { (exit 1); exit 1; }; };;
22345   :[FH]-) ac_tag=-:-;;
22346   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22347   esac
22348   ac_save_IFS=$IFS
22349   IFS=:
22350   set x $ac_tag
22351   IFS=$ac_save_IFS
22352   shift
22353   ac_file=$1
22354   shift
22355
22356   case $ac_mode in
22357   :L) ac_source=$1;;
22358   :[FH])
22359     ac_file_inputs=
22360     for ac_f
22361     do
22362       case $ac_f in
22363       -) ac_f="$tmp/stdin";;
22364       *) # Look for the file first in the build tree, then in the source tree
22365          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22366          # because $ac_f cannot contain `:'.
22367          test -f "$ac_f" ||
22368            case $ac_f in
22369            [\\/$]*) false;;
22370            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22371            esac ||
22372            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22373 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22374    { (exit 1); exit 1; }; };;
22375       esac
22376       ac_file_inputs="$ac_file_inputs $ac_f"
22377     done
22378
22379     # Let's still pretend it is `configure' which instantiates (i.e., don't
22380     # use $as_me), people would be surprised to read:
22381     #    /* config.h.  Generated by config.status.  */
22382     configure_input="Generated from "`IFS=:
22383           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22384     if test x"$ac_file" != x-; then
22385       configure_input="$ac_file.  $configure_input"
22386       { echo "$as_me:$LINENO: creating $ac_file" >&5
22387 echo "$as_me: creating $ac_file" >&6;}
22388     fi
22389
22390     case $ac_tag in
22391     *:-:* | *:-) cat >"$tmp/stdin";;
22392     esac
22393     ;;
22394   esac
22395
22396   ac_dir=`$as_dirname -- "$ac_file" ||
22397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22398          X"$ac_file" : 'X\(//\)[^/]' \| \
22399          X"$ac_file" : 'X\(//\)$' \| \
22400          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22401 echo X"$ac_file" |
22402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22403             s//\1/
22404             q
22405           }
22406           /^X\(\/\/\)[^/].*/{
22407             s//\1/
22408             q
22409           }
22410           /^X\(\/\/\)$/{
22411             s//\1/
22412             q
22413           }
22414           /^X\(\/\).*/{
22415             s//\1/
22416             q
22417           }
22418           s/.*/./; q'`
22419   { as_dir="$ac_dir"
22420   case $as_dir in #(
22421   -*) as_dir=./$as_dir;;
22422   esac
22423   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22424     as_dirs=
22425     while :; do
22426       case $as_dir in #(
22427       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22428       *) as_qdir=$as_dir;;
22429       esac
22430       as_dirs="'$as_qdir' $as_dirs"
22431       as_dir=`$as_dirname -- "$as_dir" ||
22432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22433          X"$as_dir" : 'X\(//\)[^/]' \| \
22434          X"$as_dir" : 'X\(//\)$' \| \
22435          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22436 echo X"$as_dir" |
22437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22438             s//\1/
22439             q
22440           }
22441           /^X\(\/\/\)[^/].*/{
22442             s//\1/
22443             q
22444           }
22445           /^X\(\/\/\)$/{
22446             s//\1/
22447             q
22448           }
22449           /^X\(\/\).*/{
22450             s//\1/
22451             q
22452           }
22453           s/.*/./; q'`
22454       test -d "$as_dir" && break
22455     done
22456     test -z "$as_dirs" || eval "mkdir $as_dirs"
22457   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22458 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22459    { (exit 1); exit 1; }; }; }
22460   ac_builddir=.
22461
22462 case "$ac_dir" in
22463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22464 *)
22465   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22466   # A ".." for each directory in $ac_dir_suffix.
22467   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22468   case $ac_top_builddir_sub in
22469   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22470   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22471   esac ;;
22472 esac
22473 ac_abs_top_builddir=$ac_pwd
22474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22475 # for backward compatibility:
22476 ac_top_builddir=$ac_top_build_prefix
22477
22478 case $srcdir in
22479   .)  # We are building in place.
22480     ac_srcdir=.
22481     ac_top_srcdir=$ac_top_builddir_sub
22482     ac_abs_top_srcdir=$ac_pwd ;;
22483   [\\/]* | ?:[\\/]* )  # Absolute name.
22484     ac_srcdir=$srcdir$ac_dir_suffix;
22485     ac_top_srcdir=$srcdir
22486     ac_abs_top_srcdir=$srcdir ;;
22487   *) # Relative name.
22488     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22489     ac_top_srcdir=$ac_top_build_prefix$srcdir
22490     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22491 esac
22492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22493
22494
22495   case $ac_mode in
22496   :F)
22497   #
22498   # CONFIG_FILE
22499   #
22500
22501   case $INSTALL in
22502   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22503   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22504   esac
22505 _ACEOF
22506
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 # If the template does not know about datarootdir, expand it.
22509 # FIXME: This hack should be removed a few years after 2.60.
22510 ac_datarootdir_hack=; ac_datarootdir_seen=
22511
22512 case `sed -n '/datarootdir/ {
22513   p
22514   q
22515 }
22516 /@datadir@/p
22517 /@docdir@/p
22518 /@infodir@/p
22519 /@localedir@/p
22520 /@mandir@/p
22521 ' $ac_file_inputs` in
22522 *datarootdir*) ac_datarootdir_seen=yes;;
22523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22524   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22525 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22526 _ACEOF
22527 cat >>$CONFIG_STATUS <<_ACEOF
22528   ac_datarootdir_hack='
22529   s&@datadir@&$datadir&g
22530   s&@docdir@&$docdir&g
22531   s&@infodir@&$infodir&g
22532   s&@localedir@&$localedir&g
22533   s&@mandir@&$mandir&g
22534     s&\\\${datarootdir}&$datarootdir&g' ;;
22535 esac
22536 _ACEOF
22537
22538 # Neutralize VPATH when `$srcdir' = `.'.
22539 # Shell code in configure.ac might set extrasub.
22540 # FIXME: do we really want to maintain this feature?
22541 cat >>$CONFIG_STATUS <<_ACEOF
22542   sed "$ac_vpsub
22543 $extrasub
22544 _ACEOF
22545 cat >>$CONFIG_STATUS <<\_ACEOF
22546 :t
22547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22548 s&@configure_input@&$configure_input&;t t
22549 s&@top_builddir@&$ac_top_builddir_sub&;t t
22550 s&@srcdir@&$ac_srcdir&;t t
22551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22552 s&@top_srcdir@&$ac_top_srcdir&;t t
22553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22554 s&@builddir@&$ac_builddir&;t t
22555 s&@abs_builddir@&$ac_abs_builddir&;t t
22556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22557 s&@INSTALL@&$ac_INSTALL&;t t
22558 $ac_datarootdir_hack
22559 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22560
22561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22562   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22563   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22564   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22565 which seems to be undefined.  Please make sure it is defined." >&5
22566 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22567 which seems to be undefined.  Please make sure it is defined." >&2;}
22568
22569   rm -f "$tmp/stdin"
22570   case $ac_file in
22571   -) cat "$tmp/out"; rm -f "$tmp/out";;
22572   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22573   esac
22574  ;;
22575   :H)
22576   #
22577   # CONFIG_HEADER
22578   #
22579 _ACEOF
22580
22581 # Transform confdefs.h into a sed script `conftest.defines', that
22582 # substitutes the proper values into config.h.in to produce config.h.
22583 rm -f conftest.defines conftest.tail
22584 # First, append a space to every undef/define line, to ease matching.
22585 echo 's/$/ /' >conftest.defines
22586 # Then, protect against being on the right side of a sed subst, or in
22587 # an unquoted here document, in config.status.  If some macros were
22588 # called several times there might be several #defines for the same
22589 # symbol, which is useless.  But do not sort them, since the last
22590 # AC_DEFINE must be honored.
22591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22592 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22593 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22594 # PARAMS is the parameter list in the macro definition--in most cases, it's
22595 # just an empty string.
22596 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22597 ac_dB='\\)[      (].*,\\1define\\2'
22598 ac_dC=' '
22599 ac_dD=' ,'
22600
22601 uniq confdefs.h |
22602   sed -n '
22603         t rset
22604         :rset
22605         s/^[     ]*#[    ]*define[       ][      ]*//
22606         t ok
22607         d
22608         :ok
22609         s/[\\&,]/\\&/g
22610         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22611         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22612   ' >>conftest.defines
22613
22614 # Remove the space that was appended to ease matching.
22615 # Then replace #undef with comments.  This is necessary, for
22616 # example, in the case of _POSIX_SOURCE, which is predefined and required
22617 # on some systems where configure will not decide to define it.
22618 # (The regexp can be short, since the line contains either #define or #undef.)
22619 echo 's/ $//
22620 s,^[     #]*u.*,/* & */,' >>conftest.defines
22621
22622 # Break up conftest.defines:
22623 ac_max_sed_lines=50
22624
22625 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22626 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22627 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22628 # et cetera.
22629 ac_in='$ac_file_inputs'
22630 ac_out='"$tmp/out1"'
22631 ac_nxt='"$tmp/out2"'
22632
22633 while :
22634 do
22635   # Write a here document:
22636     cat >>$CONFIG_STATUS <<_ACEOF
22637     # First, check the format of the line:
22638     cat >"\$tmp/defines.sed" <<\\CEOF
22639 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22640 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22641 b
22642 :def
22643 _ACEOF
22644   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22645   echo 'CEOF
22646     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22647   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22648   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22649   grep . conftest.tail >/dev/null || break
22650   rm -f conftest.defines
22651   mv conftest.tail conftest.defines
22652 done
22653 rm -f conftest.defines conftest.tail
22654
22655 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22656 cat >>$CONFIG_STATUS <<\_ACEOF
22657   if test x"$ac_file" != x-; then
22658     echo "/* $configure_input  */" >"$tmp/config.h"
22659     cat "$ac_result" >>"$tmp/config.h"
22660     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22661       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22662 echo "$as_me: $ac_file is unchanged" >&6;}
22663     else
22664       rm -f $ac_file
22665       mv "$tmp/config.h" $ac_file
22666     fi
22667   else
22668     echo "/* $configure_input  */"
22669     cat "$ac_result"
22670   fi
22671   rm -f "$tmp/out12"
22672  ;;
22673
22674   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22675 echo "$as_me: executing $ac_file commands" >&6;}
22676  ;;
22677   esac
22678
22679
22680   case $ac_file$ac_mode in
22681     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22682    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22683     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22685     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22687     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22688    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22689     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22690    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22691     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22692    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22693     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22694    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22695     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22696    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22697     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22698    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22699     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22700    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22701     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22702    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22703     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22704    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22705     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22706    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22707
22708   esac
22709 done # for ac_tag
22710
22711
22712 { (exit 0); exit 0; }
22713 _ACEOF
22714 chmod +x $CONFIG_STATUS
22715 ac_clean_files=$ac_clean_files_save
22716
22717
22718 # configure is writing to config.log, and then calls config.status.
22719 # config.status does its own redirection, appending to config.log.
22720 # Unfortunately, on DOS this fails, as config.log is still kept open
22721 # by configure, so config.status won't be able to write to it; its
22722 # output is simply discarded.  So we exec the FD to /dev/null,
22723 # effectively closing config.log, so it can be properly (re)opened and
22724 # appended to by config.status.  When coming back to configure, we
22725 # need to make the FD available again.
22726 if test "$no_create" != yes; then
22727   ac_cs_success=:
22728   ac_config_status_args=
22729   test "$silent" = yes &&
22730     ac_config_status_args="$ac_config_status_args --quiet"
22731   exec 5>/dev/null
22732   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22733   exec 5>>config.log
22734   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22735   # would make configure fail if this is the last instruction.
22736   $ac_cs_success || { (exit 1); exit 1; }
22737 fi
22738
22739 #
22740 # CONFIG_SUBDIRS section.
22741 #
22742 if test "$no_recursion" != yes; then
22743
22744   # Remove --cache-file and --srcdir arguments so they do not pile up.
22745   ac_sub_configure_args=
22746   ac_prev=
22747   eval "set x $ac_configure_args"
22748   shift
22749   for ac_arg
22750   do
22751     if test -n "$ac_prev"; then
22752       ac_prev=
22753       continue
22754     fi
22755     case $ac_arg in
22756     -cache-file | --cache-file | --cache-fil | --cache-fi \
22757     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22758       ac_prev=cache_file ;;
22759     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22760     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22761     | --c=*)
22762       ;;
22763     --config-cache | -C)
22764       ;;
22765     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22766       ac_prev=srcdir ;;
22767     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22768       ;;
22769     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22770       ac_prev=prefix ;;
22771     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22772       ;;
22773     *)
22774       case $ac_arg in
22775       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22776       esac
22777       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22778     esac
22779   done
22780
22781   # Always prepend --prefix to ensure using the same prefix
22782   # in subdir configurations.
22783   ac_arg="--prefix=$prefix"
22784   case $ac_arg in
22785   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22786   esac
22787   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22788
22789   ac_popdir=`pwd`
22790   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22791
22792     # Do not complain, so a configure script can configure whichever
22793     # parts of a large source tree are present.
22794     test -d "$srcdir/$ac_dir" || continue
22795
22796     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22797     echo "$as_me:$LINENO: $ac_msg" >&5
22798     echo "$ac_msg" >&6
22799     { as_dir="$ac_dir"
22800   case $as_dir in #(
22801   -*) as_dir=./$as_dir;;
22802   esac
22803   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22804     as_dirs=
22805     while :; do
22806       case $as_dir in #(
22807       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22808       *) as_qdir=$as_dir;;
22809       esac
22810       as_dirs="'$as_qdir' $as_dirs"
22811       as_dir=`$as_dirname -- "$as_dir" ||
22812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22813          X"$as_dir" : 'X\(//\)[^/]' \| \
22814          X"$as_dir" : 'X\(//\)$' \| \
22815          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22816 echo X"$as_dir" |
22817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22818             s//\1/
22819             q
22820           }
22821           /^X\(\/\/\)[^/].*/{
22822             s//\1/
22823             q
22824           }
22825           /^X\(\/\/\)$/{
22826             s//\1/
22827             q
22828           }
22829           /^X\(\/\).*/{
22830             s//\1/
22831             q
22832           }
22833           s/.*/./; q'`
22834       test -d "$as_dir" && break
22835     done
22836     test -z "$as_dirs" || eval "mkdir $as_dirs"
22837   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22838 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22839    { (exit 1); exit 1; }; }; }
22840     ac_builddir=.
22841
22842 case "$ac_dir" in
22843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22844 *)
22845   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22846   # A ".." for each directory in $ac_dir_suffix.
22847   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22848   case $ac_top_builddir_sub in
22849   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22850   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22851   esac ;;
22852 esac
22853 ac_abs_top_builddir=$ac_pwd
22854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22855 # for backward compatibility:
22856 ac_top_builddir=$ac_top_build_prefix
22857
22858 case $srcdir in
22859   .)  # We are building in place.
22860     ac_srcdir=.
22861     ac_top_srcdir=$ac_top_builddir_sub
22862     ac_abs_top_srcdir=$ac_pwd ;;
22863   [\\/]* | ?:[\\/]* )  # Absolute name.
22864     ac_srcdir=$srcdir$ac_dir_suffix;
22865     ac_top_srcdir=$srcdir
22866     ac_abs_top_srcdir=$srcdir ;;
22867   *) # Relative name.
22868     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22869     ac_top_srcdir=$ac_top_build_prefix$srcdir
22870     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22871 esac
22872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22873
22874
22875     cd "$ac_dir"
22876
22877     # Check for guested configure; otherwise get Cygnus style configure.
22878     if test -f "$ac_srcdir/configure.gnu"; then
22879       ac_sub_configure=$ac_srcdir/configure.gnu
22880     elif test -f "$ac_srcdir/configure"; then
22881       ac_sub_configure=$ac_srcdir/configure
22882     elif test -f "$ac_srcdir/configure.in"; then
22883       # This should be Cygnus configure.
22884       ac_sub_configure=$ac_aux_dir/configure
22885     else
22886       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22887 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22888       ac_sub_configure=
22889     fi
22890
22891     # The recursion is here.
22892     if test -n "$ac_sub_configure"; then
22893       # Make the cache file name correct relative to the subdirectory.
22894       case $cache_file in
22895       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22896       *) # Relative name.
22897         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22898       esac
22899
22900       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22901 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22902       # The eval makes quoting arguments work.
22903       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22904            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22905         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22906 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22907    { (exit 1); exit 1; }; }
22908     fi
22909
22910     cd "$ac_popdir"
22911   done
22912 fi
22913