Build script changes for R600/SI Codegen v6
[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.2svn.
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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
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 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_EXPENSIVE_CHECKS
691 EXPENSIVE_CHECKS
692 DEBUG_RUNTIME
693 DEBUG_SYMBOLS
694 JIT
695 TARGET_HAS_JIT
696 ENABLE_DOCS
697 ENABLE_DOXYGEN
698 LLVM_ENABLE_THREADS
699 ENABLE_PTHREADS
700 ENABLE_PIC
701 ENABLE_SHARED
702 ENABLE_EMBED_STDCXX
703 ENABLE_TIMESTAMPS
704 TARGETS_TO_BUILD
705 LLVM_ENUM_TARGETS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
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 PDFROFF
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 USE_UDIS86
764 USE_OPROFILE
765 USE_INTEL_JITEVENTS
766 INTEL_JITEVENTS_INCDIR
767 INTEL_JITEVENTS_LIBDIR
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-libcpp         Use libc++ if available (default is NO)
1393   --enable-optimized      Compile with optimizations enabled (default is NO)
1394   --enable-profiling      Compile with profiling enabled (default is NO)
1395   --enable-assertions     Compile with assertion checks enabled (default is
1396                           YES)
1397   --enable-expensive-checks
1398                           Compile with expensive debug checks enabled (default
1399                           is NO)
1400   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1401                           NO)
1402   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1403                           optimization is on and YES if it's off)
1404   --enable-jit            Enable Just In Time Compiling (default is YES)
1405   --enable-docs           Build documents (default is YES)
1406   --enable-doxygen        Build doxygen documentation (default is NO)
1407   --enable-threads        Use threads if available (default is YES)
1408   --enable-pthreads       Use pthreads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1414                           Win32 DLL (default is NO)
1415   --enable-timestamps     Enable embedding timestamp information in build
1416                           (default is YES)
1417   --enable-targets        Build specific host targets: all or
1418                           target1,target2,... Valid targets are: host, x86,
1419                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1420                           xcore, msp430, nvptx, r600, and cpp (default=all)
1421   --enable-bindings       Build specific language bindings:
1422                           all,auto,none,{binding-name} (default=auto)
1423   --enable-libffi         Check for the presence of libffi (default is NO)
1424   --enable-ltdl-install   install libltdl
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-optimize-option  Select the compiler options to use for optimized
1430                           builds
1431   --with-extra-options    Specify additional options to compile LLVM with
1432   --with-extra-ld-options Specify additional options to link LLVM with
1433   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1434                           is stdlib)
1435   --with-clang-srcdir     Directory to the out-of-tree Clang source
1436   --with-clang-resource-dir
1437                           Relative directory from the Clang binary for
1438                           resource files
1439   --with-c-include-dirs   Colon separated list of directories clang will
1440                           search for headers
1441   --with-gcc-toolchain    Directory where gcc is installed.
1442   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1443   --with-binutils-include Specify path to binutils/include/ containing
1444                           plugin-api.h file for gold plugin.
1445   --with-bug-report-url   Specify the URL where bug reports should be
1446                           submitted (default=http://llvm.org/bugs/)
1447   --with-internal-prefix  Installation directory for internal files
1448   --with-udis86=<path>    Use udis86 external x86 disassembler library
1449   --with-oprofile=<prefix>
1450                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1451   --with-intel-jitevents=<vtune-amplifier-dir>
1452                           Specify location of run-time support library for
1453                           Intel JIT API
1454                           (default=/opt/intel/vtune_amplifier_xe_2011)
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CXX         C++ compiler command
1464   CXXFLAGS    C++ compiler flags
1465   CPP         C preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://llvm.org/bugs/>.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476   # If there are subdirs, report their specific --help.
1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478     test -d "$ac_dir" || continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 LLVM configure 3.2svn
1532 generated by GNU Autoconf 2.60
1533
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538
1539 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1540 _ACEOF
1541   exit
1542 fi
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1546
1547 It was created by LLVM $as_me 3.2svn, which was
1548 generated by GNU Autoconf 2.60.  Invocation command line was
1549
1550   $ $0 $@
1551
1552 _ACEOF
1553 exec 5>>config.log
1554 {
1555 cat <<_ASUNAME
1556 ## --------- ##
1557 ## Platform. ##
1558 ## --------- ##
1559
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1568
1569 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1570 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1573 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1574 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1575 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1576
1577 _ASUNAME
1578
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   echo "PATH: $as_dir"
1585 done
1586 IFS=$as_save_IFS
1587
1588 } >&5
1589
1590 cat >&5 <<_ACEOF
1591
1592
1593 ## ----------- ##
1594 ## Core tests. ##
1595 ## ----------- ##
1596
1597 _ACEOF
1598
1599
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1605 ac_configure_args=
1606 ac_configure_args0=
1607 ac_configure_args1=
1608 ac_must_keep_next=false
1609 for ac_pass in 1 2
1610 do
1611   for ac_arg
1612   do
1613     case $ac_arg in
1614     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616     | -silent | --silent | --silen | --sile | --sil)
1617       continue ;;
1618     *\'*)
1619       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1620     esac
1621     case $ac_pass in
1622     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623     2)
1624       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625       if test $ac_must_keep_next = true; then
1626         ac_must_keep_next=false # Got value, back to normal.
1627       else
1628         case $ac_arg in
1629           *=* | --config-cache | -C | -disable-* | --disable-* \
1630           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632           | -with-* | --with-* | -without-* | --without-* | --x)
1633             case "$ac_configure_args0 " in
1634               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635             esac
1636             ;;
1637           -* ) ac_must_keep_next=true ;;
1638         esac
1639       fi
1640       ac_configure_args="$ac_configure_args '$ac_arg'"
1641       ;;
1642     esac
1643   done
1644 done
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log.  We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654   # Save into config.log some information that might help in debugging.
1655   {
1656     echo
1657
1658     cat <<\_ASBOX
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1662 _ASBOX
1663     echo
1664     # The following way of writing the cache mishandles newlines in values,
1665 (
1666   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667     eval ac_val=\$$ac_var
1668     case $ac_val in #(
1669     *${as_nl}*)
1670       case $ac_var in #(
1671       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1673       esac
1674       case $ac_var in #(
1675       _ | IFS | as_nl) ;; #(
1676       *) $as_unset $ac_var ;;
1677       esac ;;
1678     esac
1679   done
1680   (set) 2>&1 |
1681     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682     *${as_nl}ac_space=\ *)
1683       sed -n \
1684         "s/'\''/'\''\\\\'\'''\''/g;
1685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686       ;; #(
1687     *)
1688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689       ;;
1690     esac |
1691     sort
1692 )
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1699 _ASBOX
1700     echo
1701     for ac_var in $ac_subst_vars
1702     do
1703       eval ac_val=\$$ac_var
1704       case $ac_val in
1705       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706       esac
1707       echo "$ac_var='\''$ac_val'\''"
1708     done | sort
1709     echo
1710
1711     if test -n "$ac_subst_files"; then
1712       cat <<\_ASBOX
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1716 _ASBOX
1717       echo
1718       for ac_var in $ac_subst_files
1719       do
1720         eval ac_val=\$$ac_var
1721         case $ac_val in
1722         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723         esac
1724         echo "$ac_var='\''$ac_val'\''"
1725       done | sort
1726       echo
1727     fi
1728
1729     if test -s confdefs.h; then
1730       cat <<\_ASBOX
1731 ## ----------- ##
1732 ## confdefs.h. ##
1733 ## ----------- ##
1734 _ASBOX
1735       echo
1736       cat confdefs.h
1737       echo
1738     fi
1739     test "$ac_signal" != 0 &&
1740       echo "$as_me: caught signal $ac_signal"
1741     echo "$as_me: exit $exit_status"
1742   } >&5
1743   rm -f core *.core core.conftest.* &&
1744     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745     exit $exit_status
1746 ' 0
1747 for ac_signal in 1 2 13 15; do
1748   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1749 done
1750 ac_signal=0
1751
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1754
1755 # Predefined preprocessor variables.
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779 _ACEOF
1780
1781
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785   set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 else
1789   set x "$ac_default_prefix/share/config.site" \
1790         "$ac_default_prefix/etc/config.site"
1791 fi
1792 shift
1793 for ac_site_file
1794 do
1795   if test -r "$ac_site_file"; then
1796     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798     sed 's/^/| /' "$ac_site_file" >&5
1799     . "$ac_site_file"
1800   fi
1801 done
1802
1803 if test -r "$cache_file"; then
1804   # Some versions of bash will fail to source /dev/null (special
1805   # files actually), so we avoid doing that.
1806   if test -f "$cache_file"; then
1807     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1809     case $cache_file in
1810       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811       *)                      . "./$cache_file";;
1812     esac
1813   fi
1814 else
1815   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1817   >$cache_file
1818 fi
1819
1820 # Check that the precious variables saved in the cache have kept the same
1821 # value.
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825   eval ac_new_set=\$ac_env_${ac_var}_set
1826   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827   eval ac_new_val=\$ac_env_${ac_var}_value
1828   case $ac_old_set,$ac_new_set in
1829     set,)
1830       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832       ac_cache_corrupted=: ;;
1833     ,set)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,);;
1838     *)
1839       if test "x$ac_old_val" != "x$ac_new_val"; then
1840         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1843 echo "$as_me:   former value:  $ac_old_val" >&2;}
1844         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1845 echo "$as_me:   current value: $ac_new_val" >&2;}
1846         ac_cache_corrupted=:
1847       fi;;
1848   esac
1849   # Pass precious variables to config.status.
1850   if test "$ac_new_set" = set; then
1851     case $ac_new_val in
1852     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853     *) ac_arg=$ac_var=$ac_new_val ;;
1854     esac
1855     case " $ac_configure_args " in
1856       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1857       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1858     esac
1859   fi
1860 done
1861 if $ac_cache_corrupted; then
1862   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 ac_ext=c
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
1901 cat >>confdefs.h <<\_ACEOF
1902 #define LLVM_VERSION_MAJOR 3
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MINOR 2
1908 _ACEOF
1909
1910
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1912
1913
1914
1915
1916
1917
1918
1919 ac_aux_dir=
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921   if test -f "$ac_dir/install-sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install-sh -c"
1924     break
1925   elif test -f "$ac_dir/install.sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install.sh -c"
1928     break
1929   elif test -f "$ac_dir/shtool"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/shtool install -c"
1932     break
1933   fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
1950
1951 if test ${srcdir} != "." ; then
1952   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955    { (exit 1); exit 1; }; }
1956   fi
1957 fi
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   for ac_prog in clang llvm-gcc gcc
1966   do
1967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999   { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2001 fi
2002
2003
2004     test -n "$CC" && break
2005   done
2006 fi
2007 if test -z "$CC"; then
2008   ac_ct_CC=$CC
2009   for ac_prog in clang llvm-gcc gcc
2010 do
2011   # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048   test -n "$ac_ct_CC" && break
2049 done
2050
2051   if test "x$ac_ct_CC" = x; then
2052     CC=""
2053   else
2054     case $cross_compiling:$ac_tool_warned in
2055 yes:)
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet.  If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2063 esac
2064     CC=$ac_ct_CC
2065   fi
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084   (eval "$ac_compiler --version >&5") 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler -v >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -V >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2128 # of exeext.
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 #
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort.  b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137 #
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions.  Remove them first so a
2140 # subsequent execution test works.
2141 ac_rmfiles=
2142 for ac_file in $ac_files
2143 do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147   esac
2148 done
2149 rm -f $ac_rmfiles
2150
2151 if { (ac_try="$ac_link_default"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157   (eval "$ac_link_default") 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2165 # Autoconf.
2166 for ac_file in $ac_files
2167 do
2168   test -f "$ac_file" || continue
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2171         ;;
2172     [ab].out )
2173         # We found the default executable, but exeext='' is most
2174         # certainly right.
2175         break;;
2176     *.* )
2177         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178         then :; else
2179            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180         fi
2181         # We set ac_cv_exeext here because the later test for it is not
2182         # safe: cross compilers may not add the suffix if given an `-o'
2183         # argument, so we may need to know it at that point already.
2184         # Even if this section looks crufty: it has the advantage of
2185         # actually working.
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2207
2208 # Check that the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221   (eval "$ac_try") 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225     cross_compiling=no
2226   else
2227     if test "$cross_compiling" = maybe; then
2228         cross_compiling=yes
2229     else
2230         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236    { (exit 1); exit 1; }; }
2237     fi
2238   fi
2239 fi
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_link") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269   test -f "$ac_file" || continue
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273           break;;
2274     * ) break;;
2275   esac
2276 done
2277 else
2278   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2288
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2314 case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_compile") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in conftest.o conftest.obj conftest.*; do
2324   test -f "$ac_file" || continue;
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_compile") 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386   { (case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391   (eval "$ac_try") 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_compiler_gnu=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410         ac_compiler_gnu=no
2411 fi
2412
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2415
2416 fi
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   ac_save_c_werror_flag=$ac_c_werror_flag
2428    ac_c_werror_flag=yes
2429    ac_cv_prog_cc_g=no
2430    CFLAGS="-g"
2431    cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453   (eval "$ac_compile") 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461   { (case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_try") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_prog_cc_g=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485         CFLAGS=""
2486       cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516   { (case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521   (eval "$ac_try") 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   :
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540         ac_c_werror_flag=$ac_save_c_werror_flag
2541          CFLAGS="-g"
2542          cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_cc_g=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
2597 fi
2598
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606    ac_c_werror_flag=$ac_save_c_werror_flag
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611   CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613   if test "$GCC" = yes; then
2614     CFLAGS="-g -O2"
2615   else
2616     CFLAGS="-g"
2617   fi
2618 else
2619   if test "$GCC" = yes; then
2620     CFLAGS="-O2"
2621   else
2622     CFLAGS=
2623   fi
2624 fi
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_cv_prog_cc_c89=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646      char **p;
2647      int i;
2648 {
2649   return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653   char *s;
2654   va_list v;
2655   va_start (v,p);
2656   s = g (p, va_arg (v,int));
2657   va_end (v);
2658   return s;
2659 }
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2662    function prototypes and stuff, but not '\xHH' hex character constants.
2663    These don't provoke an error unfortunately, instead are silently treated
2664    as 'x'.  The following induces an error, until -std is added to get
2665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2666    array size at least.  It's necessary to write '\x00'==0 to get something
2667    that's true only with -std.  */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671    inside strings and character constants.  */
2672 #define FOO(x) 'x'
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 int argc;
2680 char **argv;
2681 int
2682 main ()
2683 {
2684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 do
2692   CC="$ac_save_CC $ac_arg"
2693   rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708   { (case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cc_c89=$ac_arg
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext
2736   test "x$ac_cv_prog_cc_c89" != "xno" && break
2737 done
2738 rm -f conftest.$ac_ext
2739 CC=$ac_save_CC
2740
2741 fi
2742 # AC_CACHE_VAL
2743 case "x$ac_cv_prog_cc_c89" in
2744   x)
2745     { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2747   xno)
2748     { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2750   *)
2751     CC="$CC $ac_cv_prog_cc_c89"
2752     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2754 esac
2755
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763 ac_ext=cpp
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769   if test -n "$CCC"; then
2770     CXX=$CCC
2771   else
2772     if test -n "$ac_tool_prefix"; then
2773   for ac_prog in clang++ llvm-g++ g++
2774   do
2775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$CXX"; then
2783   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CXX=$ac_cv_prog_CXX
2803 if test -n "$CXX"; then
2804   { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2806 else
2807   { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811
2812     test -n "$CXX" && break
2813   done
2814 fi
2815 if test -z "$CXX"; then
2816   ac_ct_CXX=$CXX
2817   for ac_prog in clang++ llvm-g++ g++
2818 do
2819   # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$ac_ct_CXX"; then
2827   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_ac_ct_CXX="$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856   test -n "$ac_ct_CXX" && break
2857 done
2858
2859   if test "x$ac_ct_CXX" = x; then
2860     CXX="g++"
2861   else
2862     case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet.  If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872     CXX=$ac_ct_CXX
2873   fi
2874 fi
2875
2876   fi
2877 fi
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compiler --version >&5") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler -v >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -V >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927 #ifndef __GNUC__
2928        choke me
2929 #endif
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950   { (case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_try") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; }; then
2969   ac_compiler_gnu=yes
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974         ac_compiler_gnu=no
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992    ac_cxx_werror_flag=yes
2993    ac_cv_prog_cxx_g=no
2994    CXXFLAGS="-g"
2995    cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_cv_prog_cxx_g=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049         CXXFLAGS=""
3050       cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057 int
3058 main ()
3059 {
3060
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_compile") 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080   { (case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_try") 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   :
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105          CXXFLAGS="-g"
3106          cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cxx_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161 fi
3162
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 fi
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175   CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177   if test "$GXX" = yes; then
3178     CXXFLAGS="-g -O2"
3179   else
3180     CXXFLAGS="-g"
3181   fi
3182 else
3183   if test "$GXX" = yes; then
3184     CXXFLAGS="-O2"
3185   else
3186     CXXFLAGS=
3187   fi
3188 fi
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194
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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3204   CPP=
3205 fi
3206 if test -z "$CPP"; then
3207   if test "${ac_cv_prog_CPP+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210       # Double quotes because CPP needs to be expanded
3211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212     do
3213       ac_preproc_ok=false
3214 for ac_c_preproc_warn_flag in '' yes
3215 do
3216   # Use a header file that comes with gcc, so configuring glibc
3217   # with a fresh cross-compiler works.
3218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219   # <limits.h> exists even on freestanding compilers.
3220   # On the NeXT, cc -E runs the code through the compiler's parser,
3221   # not just through cpp. "Syntax error" is here to catch this case.
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #ifdef __STDC__
3229 # include <limits.h>
3230 #else
3231 # include <assert.h>
3232 #endif
3233                      Syntax error
3234 _ACEOF
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   :
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Broken: fails on valid input.
3264 continue
3265 fi
3266
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether nonexistent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   # Broken: success on invalid input.
3303 continue
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308   # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312
3313 rm -f conftest.err conftest.$ac_ext
3314
3315 done
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3319   break
3320 fi
3321
3322     done
3323     ac_cv_prog_CPP=$CPP
3324
3325 fi
3326   CPP=$ac_cv_prog_CPP
3327 else
3328   ac_cv_prog_CPP=$CPP
3329 fi
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   :
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388   # OK, works on sane cases.  Now check whether nonexistent headers
3389   # can be detected and how.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   :
3439 else
3440   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454
3455
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457   subdirs="$subdirs projects/llvm-gcc"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/test-suite ; then
3462   subdirs="$subdirs projects/test-suite"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467   subdirs="$subdirs projects/llvm-test"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472   subdirs="$subdirs projects/poolalloc"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477   subdirs="$subdirs projects/llvm-poolalloc"
3478
3479 fi
3480
3481 for i in `ls ${srcdir}/projects`
3482 do
3483   if test -d ${srcdir}/projects/${i} ; then
3484     case ${i} in
3485       sample)       subdirs="$subdirs projects/sample"
3486     ;;
3487       privbracket)  subdirs="$subdirs projects/privbracket"
3488  ;;
3489       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490  ;;
3491       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3492 ;;
3493       llvm-java)    subdirs="$subdirs projects/llvm-java"
3494  ;;
3495       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3496    ;;
3497       safecode)     subdirs="$subdirs projects/safecode"
3498  ;;
3499       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3500  ;;
3501       compiler-rt)       ;;
3502       llvm-gcc)       ;;
3503       test-suite)     ;;
3504       llvm-test)      ;;
3505       poolalloc)      ;;
3506       llvm-poolalloc) ;;
3507       *)
3508         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510         ;;
3511     esac
3512   fi
3513 done
3514
3515 # Check whether --enable-polly was given.
3516 if test "${enable_polly+set}" = set; then
3517   enableval=$enable_polly;
3518 else
3519   enableval=default
3520 fi
3521
3522 case "$enableval" in
3523   yes) ENABLE_POLLY=1
3524  ;;
3525   no)  ENABLE_POLLY=0
3526  ;;
3527   default) ENABLE_POLLY=1
3528  ;;
3529   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531    { (exit 1); exit 1; }; } ;;
3532 esac
3533
3534
3535 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536   LLVM_HAS_POLLY=1
3537
3538   subdirs="$subdirs tools/polly"
3539
3540 fi
3541
3542
3543 # Make sure we can run config.sub.
3544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547    { (exit 1); exit 1; }; }
3548
3549 { echo "$as_me:$LINENO: checking build system type" >&5
3550 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551 if test "${ac_cv_build+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_build_alias=$build_alias
3555 test "x$ac_build_alias" = x &&
3556   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557 test "x$ac_build_alias" = x &&
3558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560    { (exit 1); exit 1; }; }
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564    { (exit 1); exit 1; }; }
3565
3566 fi
3567 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568 echo "${ECHO_T}$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3570 *-*-*) ;;
3571 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572 echo "$as_me: error: invalid value of canonical build" >&2;}
3573    { (exit 1); exit 1; }; };;
3574 esac
3575 build=$ac_cv_build
3576 ac_save_IFS=$IFS; IFS='-'
3577 set x $ac_cv_build
3578 shift
3579 build_cpu=$1
3580 build_vendor=$2
3581 shift; shift
3582 # Remember, the first character of IFS is used to create $*,
3583 # except with old shells:
3584 build_os=$*
3585 IFS=$ac_save_IFS
3586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587
3588
3589 { echo "$as_me:$LINENO: checking host system type" >&5
3590 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591 if test "${ac_cv_host+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   if test "x$host_alias" = x; then
3595   ac_cv_host=$ac_cv_build
3596 else
3597   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600    { (exit 1); exit 1; }; }
3601 fi
3602
3603 fi
3604 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605 echo "${ECHO_T}$ac_cv_host" >&6; }
3606 case $ac_cv_host in
3607 *-*-*) ;;
3608 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609 echo "$as_me: error: invalid value of canonical host" >&2;}
3610    { (exit 1); exit 1; }; };;
3611 esac
3612 host=$ac_cv_host
3613 ac_save_IFS=$IFS; IFS='-'
3614 set x $ac_cv_host
3615 shift
3616 host_cpu=$1
3617 host_vendor=$2
3618 shift; shift
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3621 host_os=$*
3622 IFS=$ac_save_IFS
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626 { echo "$as_me:$LINENO: checking target system type" >&5
3627 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628 if test "${ac_cv_target+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   if test "x$target_alias" = x; then
3632   ac_cv_target=$ac_cv_host
3633 else
3634   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 fi
3641 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642 echo "${ECHO_T}$ac_cv_target" >&6; }
3643 case $ac_cv_target in
3644 *-*-*) ;;
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646 echo "$as_me: error: invalid value of canonical target" >&2;}
3647    { (exit 1); exit 1; }; };;
3648 esac
3649 target=$ac_cv_target
3650 ac_save_IFS=$IFS; IFS='-'
3651 set x $ac_cv_target
3652 shift
3653 target_cpu=$1
3654 target_vendor=$2
3655 shift; shift
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3658 target_os=$*
3659 IFS=$ac_save_IFS
3660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663 # The aliases save the names the user supplied, while $host etc.
3664 # will get canonicalized.
3665 test -n "$target_alias" &&
3666   test "$program_prefix$program_suffix$program_transform_name" = \
3667     NONENONEs,x,x, &&
3668   program_prefix=${target_alias}-
3669
3670 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672 if test "${llvm_cv_os_type+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $host in
3676   *-*-aix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="AIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-irix*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="IRIX"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-cygwin*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="Cygwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-darwin*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Darwin"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-minix*)
3697     llvm_cv_link_all_option="-Wl,-all_load"
3698     llvm_cv_no_link_all_option="-Wl,-noall_load"
3699     llvm_cv_os_type="Minix"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-freebsd* | *-*-kfreebsd-gnu)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="FreeBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-openbsd*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="OpenBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-netbsd*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="NetBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-dragonfly*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="DragonFly"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-hpux*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="HP-UX"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-interix*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="Interix"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-linux*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="Linux"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-gnu*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="GNU"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-solaris*)
3742     llvm_cv_link_all_option="-Wl,-z,allextract"
3743     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744     llvm_cv_os_type="SunOS"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-auroraux*)
3747     llvm_cv_link_all_option="-Wl,-z,allextract"
3748     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749     llvm_cv_os_type="AuroraUX"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-win32*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Win32"
3755     llvm_cv_platform_type="Win32" ;;
3756   *-*-mingw*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="MingW"
3760     llvm_cv_platform_type="Win32" ;;
3761   *-*-haiku*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Haiku"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-unknown-eabi*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Freestanding"
3770     llvm_cv_platform_type="Unix" ;;
3771   *-unknown-elf*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="Freestanding"
3775     llvm_cv_platform_type="Unix" ;;
3776   *)
3777     llvm_cv_link_all_option=""
3778     llvm_cv_no_link_all_option=""
3779     llvm_cv_os_type="Unknown"
3780     llvm_cv_platform_type="Unknown" ;;
3781 esac
3782 fi
3783 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788 if test "${llvm_cv_target_os_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $target in
3792   *-*-aix*)
3793     llvm_cv_target_os_type="AIX" ;;
3794   *-*-irix*)
3795     llvm_cv_target_os_type="IRIX" ;;
3796   *-*-cygwin*)
3797     llvm_cv_target_os_type="Cygwin" ;;
3798   *-*-darwin*)
3799     llvm_cv_target_os_type="Darwin" ;;
3800   *-*-minix*)
3801     llvm_cv_target_os_type="Minix" ;;
3802   *-*-freebsd* | *-*-kfreebsd-gnu)
3803     llvm_cv_target_os_type="FreeBSD" ;;
3804   *-*-openbsd*)
3805     llvm_cv_target_os_type="OpenBSD" ;;
3806   *-*-netbsd*)
3807     llvm_cv_target_os_type="NetBSD" ;;
3808   *-*-dragonfly*)
3809     llvm_cv_target_os_type="DragonFly" ;;
3810   *-*-hpux*)
3811     llvm_cv_target_os_type="HP-UX" ;;
3812   *-*-interix*)
3813     llvm_cv_target_os_type="Interix" ;;
3814   *-*-linux*)
3815     llvm_cv_target_os_type="Linux" ;;
3816   *-*-gnu*)
3817     llvm_cv_target_os_type="GNU" ;;
3818   *-*-solaris*)
3819     llvm_cv_target_os_type="SunOS" ;;
3820   *-*-auroraux*)
3821     llvm_cv_target_os_type="AuroraUX" ;;
3822   *-*-win32*)
3823     llvm_cv_target_os_type="Win32" ;;
3824   *-*-mingw*)
3825     llvm_cv_target_os_type="MingW" ;;
3826   *-*-haiku*)
3827     llvm_cv_target_os_type="Haiku" ;;
3828   *-*-rtems*)
3829     llvm_cv_target_os_type="RTEMS" ;;
3830   *-*-nacl*)
3831     llvm_cv_target_os_type="NativeClient" ;;
3832   *-unknown-eabi*)
3833     llvm_cv_target_os_type="Freestanding" ;;
3834   *)
3835     llvm_cv_target_os_type="Unknown" ;;
3836 esac
3837 fi
3838 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3839 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3840
3841 if test "$llvm_cv_os_type" = "Unknown" ; then
3842   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3843 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3844    { (exit 1); exit 1; }; }
3845 fi
3846
3847 OS=$llvm_cv_os_type
3848
3849 HOST_OS=$llvm_cv_os_type
3850
3851 TARGET_OS=$llvm_cv_target_os_type
3852
3853
3854 LINKALL=$llvm_cv_link_all_option
3855
3856 NOLINKALL=$llvm_cv_no_link_all_option
3857
3858
3859 case $llvm_cv_platform_type in
3860   Unix)
3861
3862 cat >>confdefs.h <<\_ACEOF
3863 #define LLVM_ON_UNIX 1
3864 _ACEOF
3865
3866     LLVM_ON_UNIX=1
3867
3868     LLVM_ON_WIN32=0
3869
3870     ;;
3871   Win32)
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_WIN32 1
3875 _ACEOF
3876
3877     LLVM_ON_UNIX=0
3878
3879     LLVM_ON_WIN32=1
3880
3881     ;;
3882 esac
3883
3884 { echo "$as_me:$LINENO: checking target architecture" >&5
3885 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3886 if test "${llvm_cv_target_arch+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   case $target in
3890   i?86-*)                 llvm_cv_target_arch="x86" ;;
3891   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3892   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3893   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3894   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3895   mips-*)                 llvm_cv_target_arch="Mips" ;;
3896   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3897   xcore-*)                llvm_cv_target_arch="XCore" ;;
3898   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3899   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3900   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3901   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3902   *)                      llvm_cv_target_arch="Unknown" ;;
3903 esac
3904 fi
3905 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3906 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3907
3908 if test "$llvm_cv_target_arch" = "Unknown" ; then
3909   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3910 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3911 fi
3912
3913 case "$llvm_cv_target_arch" in
3914     x86)     LLVM_NATIVE_ARCH="X86" ;;
3915     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3916     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3917 esac
3918
3919 ARCH=$llvm_cv_target_arch
3920
3921
3922 case $host in
3923   i?86-*)                 host_arch="x86" ;;
3924   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3925   sparc*-*)               host_arch="Sparc" ;;
3926   powerpc*-*)             host_arch="PowerPC" ;;
3927   arm*-*)                 host_arch="ARM" ;;
3928   mips-*)                 host_arch="Mips" ;;
3929   mipsel-*)               host_arch="Mips" ;;
3930   xcore-*)                host_arch="XCore" ;;
3931   msp430-*)               host_arch="MSP430" ;;
3932   hexagon-*)              host_arch="Hexagon" ;;
3933   mblaze-*)               host_arch="MBlaze" ;;
3934   *)                      host_arch="Unknown" ;;
3935 esac
3936
3937 if test "$host_arch" = "Unknown" ; then
3938   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3939 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3940 fi
3941
3942 HOST_ARCH=$host_arch
3943
3944
3945
3946
3947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   # Extract the first word of "grep ggrep" to use in msg output
3953 if test -z "$GREP"; then
3954 set dummy grep ggrep; ac_prog_name=$2
3955 if test "${ac_cv_path_GREP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_prog in grep ggrep; do
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3969     # Check for GNU ac_path_GREP and select it if it is found.
3970   # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3972 *GNU*)
3973   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974 *)
3975   ac_count=0
3976   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977   while :
3978   do
3979     cat "conftest.in" "conftest.in" >"conftest.tmp"
3980     mv "conftest.tmp" "conftest.in"
3981     cp "conftest.in" "conftest.nl"
3982     echo 'GREP' >> "conftest.nl"
3983     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985     ac_count=`expr $ac_count + 1`
3986     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987       # Best one so far, save it but keep looking for a better one
3988       ac_cv_path_GREP="$ac_path_GREP"
3989       ac_path_GREP_max=$ac_count
3990     fi
3991     # 10*(2^10) chars as input seems more than enough
3992     test $ac_count -gt 10 && break
3993   done
3994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997
3998     $ac_path_GREP_found && break 3
3999   done
4000 done
4001
4002 done
4003 IFS=$as_save_IFS
4004
4005
4006 fi
4007
4008 GREP="$ac_cv_path_GREP"
4009 if test -z "$GREP"; then
4010   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012    { (exit 1); exit 1; }; }
4013 fi
4014
4015 else
4016   ac_cv_path_GREP=$GREP
4017 fi
4018
4019
4020 fi
4021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4023  GREP="$ac_cv_path_GREP"
4024
4025
4026 { echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032    then ac_cv_path_EGREP="$GREP -E"
4033    else
4034      # Extract the first word of "egrep" to use in msg output
4035 if test -z "$EGREP"; then
4036 set dummy egrep; ac_prog_name=$2
4037 if test "${ac_cv_path_EGREP+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   ac_path_EGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_prog in egrep; do
4048   for ac_exec_ext in '' $ac_executable_extensions; do
4049     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4051     # Check for GNU ac_path_EGREP and select it if it is found.
4052   # Check for GNU $ac_path_EGREP
4053 case `"$ac_path_EGREP" --version 2>&1` in
4054 *GNU*)
4055   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056 *)
4057   ac_count=0
4058   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4059   while :
4060   do
4061     cat "conftest.in" "conftest.in" >"conftest.tmp"
4062     mv "conftest.tmp" "conftest.in"
4063     cp "conftest.in" "conftest.nl"
4064     echo 'EGREP' >> "conftest.nl"
4065     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067     ac_count=`expr $ac_count + 1`
4068     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069       # Best one so far, save it but keep looking for a better one
4070       ac_cv_path_EGREP="$ac_path_EGREP"
4071       ac_path_EGREP_max=$ac_count
4072     fi
4073     # 10*(2^10) chars as input seems more than enough
4074     test $ac_count -gt 10 && break
4075   done
4076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077 esac
4078
4079
4080     $ac_path_EGREP_found && break 3
4081   done
4082 done
4083
4084 done
4085 IFS=$as_save_IFS
4086
4087
4088 fi
4089
4090 EGREP="$ac_cv_path_EGREP"
4091 if test -z "$EGREP"; then
4092   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094    { (exit 1); exit 1; }; }
4095 fi
4096
4097 else
4098   ac_cv_path_EGREP=$EGREP
4099 fi
4100
4101
4102    fi
4103 fi
4104 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4105 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4106  EGREP="$ac_cv_path_EGREP"
4107
4108
4109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4111 if test "${ac_cv_header_stdc+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <stdlib.h>
4121 #include <stdarg.h>
4122 #include <string.h>
4123 #include <float.h>
4124
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148   { (case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_try") 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; } &&
4157          { ac_try='test -s conftest.$ac_objext'
4158   { (case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163   (eval "$ac_try") 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_cv_header_stdc=yes
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172         ac_cv_header_stdc=no
4173 fi
4174
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176
4177 if test $ac_cv_header_stdc = yes; then
4178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4179   cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h.  */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h.  */
4185 #include <string.h>
4186
4187 _ACEOF
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189   $EGREP "memchr" >/dev/null 2>&1; then
4190   :
4191 else
4192   ac_cv_header_stdc=no
4193 fi
4194 rm -f conftest*
4195
4196 fi
4197
4198 if test $ac_cv_header_stdc = yes; then
4199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #include <stdlib.h>
4207
4208 _ACEOF
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210   $EGREP "free" >/dev/null 2>&1; then
4211   :
4212 else
4213   ac_cv_header_stdc=no
4214 fi
4215 rm -f conftest*
4216
4217 fi
4218
4219 if test $ac_cv_header_stdc = yes; then
4220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4221   if test "$cross_compiling" = yes; then
4222   :
4223 else
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230 #include <ctype.h>
4231 #include <stdlib.h>
4232 #if ((' ' & 0x0FF) == 0x020)
4233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235 #else
4236 # define ISLOWER(c) \
4237                    (('a' <= (c) && (c) <= 'i') \
4238                      || ('j' <= (c) && (c) <= 'r') \
4239                      || ('s' <= (c) && (c) <= 'z'))
4240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241 #endif
4242
4243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244 int
4245 main ()
4246 {
4247   int i;
4248   for (i = 0; i < 256; i++)
4249     if (XOR (islower (i), ISLOWER (i))
4250         || toupper (i) != TOUPPER (i))
4251       return 2;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_link") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266   { (case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_try") 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   :
4276 else
4277   echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ( exit $ac_status )
4282 ac_cv_header_stdc=no
4283 fi
4284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4285 fi
4286
4287
4288 fi
4289 fi
4290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4292 if test $ac_cv_header_stdc = yes; then
4293
4294 cat >>confdefs.h <<\_ACEOF
4295 #define STDC_HEADERS 1
4296 _ACEOF
4297
4298 fi
4299
4300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4311                   inttypes.h stdint.h unistd.h
4312 do
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 $ac_includes_default
4326
4327 #include <$ac_header>
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_compile") 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4344   { (case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_try") 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; } &&
4353          { ac_try='test -s conftest.$ac_objext'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   eval "$as_ac_Header=yes"
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368         eval "$as_ac_Header=no"
4369 fi
4370
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 ac_res=`eval echo '${'$as_ac_Header'}'`
4374                { echo "$as_me:$LINENO: result: $ac_res" >&5
4375 echo "${ECHO_T}$ac_res" >&6; }
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377   cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379 _ACEOF
4380
4381 fi
4382
4383 done
4384
4385
4386 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4388 if test "${ac_cv_c_bigendian+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   # See if sys/param.h defines the BYTE_ORDER macro.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 #include <sys/types.h>
4399 #include <sys/param.h>
4400
4401 int
4402 main ()
4403 {
4404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4405  bogus endian macros
4406 #endif
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_compile") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } &&
4426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427   { (case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432   (eval "$ac_try") 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; } &&
4436          { ac_try='test -s conftest.$ac_objext'
4437   { (case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442   (eval "$ac_try") 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   # It does; now see whether it defined to BIG_ENDIAN or not.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 #include <sys/types.h>
4454 #include <sys/param.h>
4455
4456 int
4457 main ()
4458 {
4459 #if BYTE_ORDER != BIG_ENDIAN
4460  not big endian
4461 #endif
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_compile") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } &&
4481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4482   { (case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487   (eval "$ac_try") 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; } &&
4491          { ac_try='test -s conftest.$ac_objext'
4492   { (case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_try") 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   ac_cv_c_bigendian=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506         ac_cv_c_bigendian=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516   # try to guess the endianness by grepping values into an object file
4517   ac_cv_c_bigendian=unknown
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4530 int
4531 main ()
4532 {
4533  _ascii (); _ebcdic ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545   (eval "$ac_compile") 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; } &&
4562          { ac_try='test -s conftest.$ac_objext'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_try") 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; }; then
4572   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4573   ac_cv_c_bigendian=yes
4574 fi
4575 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4576   if test "$ac_cv_c_bigendian" = unknown; then
4577     ac_cv_c_bigendian=no
4578   else
4579     # finding both strings is unlikely to happen, but who knows?
4580     ac_cv_c_bigendian=unknown
4581   fi
4582 fi
4583 else
4584   echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587
4588 fi
4589
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 else
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602
4603   /* Are we little or big endian?  From Harbison&Steele.  */
4604   union
4605   {
4606     long int l;
4607     char c[sizeof (long int)];
4608   } u;
4609   u.l = 1;
4610   return u.c[sizeof (long int) - 1] == 1;
4611
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest$ac_exeext
4617 if { (ac_try="$ac_link"
4618 case "(($ac_try" in
4619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620   *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623   (eval "$ac_link") 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627   { (case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632   (eval "$ac_try") 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636   ac_cv_c_bigendian=no
4637 else
4638   echo "$as_me: program exited with status $ac_status" >&5
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ( exit $ac_status )
4643 ac_cv_c_bigendian=yes
4644 fi
4645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4646 fi
4647
4648
4649 fi
4650
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4655 case $ac_cv_c_bigendian in
4656   yes)
4657     ENDIAN=big
4658  ;;
4659   no)
4660     ENDIAN=little
4661  ;;
4662   *)
4663     { { echo "$as_me:$LINENO: error: unknown endianness
4664 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4665 echo "$as_me: error: unknown endianness
4666 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4667    { (exit 1); exit 1; }; } ;;
4668 esac
4669
4670
4671 if test "$cross_compiling" = yes; then
4672   LLVM_CROSS_COMPILING=1
4673
4674
4675 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4676 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4677 if test "${ac_cv_build_exeext+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4681   ac_cv_build_exeext=.exe
4682 else
4683   ac_build_prefix=${build_alias}-
4684
4685   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4686 set dummy ${ac_build_prefix}gcc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   if test -n "$BUILD_CC"; then
4693   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 BUILD_CC=$ac_cv_prog_BUILD_CC
4713 if test -n "$BUILD_CC"; then
4714   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722   if test -z "$BUILD_CC"; then
4723      # Extract the first word of "gcc", so it can be a program name with args.
4724 set dummy gcc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   if test -n "$BUILD_CC"; then
4731   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_BUILD_CC="gcc"
4741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 BUILD_CC=$ac_cv_prog_BUILD_CC
4751 if test -n "$BUILD_CC"; then
4752   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4753 echo "${ECHO_T}$BUILD_CC" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760      if test -z "$BUILD_CC"; then
4761        # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   if test -n "$BUILD_CC"; then
4769   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4770 else
4771   ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780        ac_prog_rejected=yes
4781        continue
4782      fi
4783     ac_cv_prog_BUILD_CC="cc"
4784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 if test $ac_prog_rejected = yes; then
4792   # We found a bogon in the path, so make sure we never use it.
4793   set dummy $ac_cv_prog_BUILD_CC
4794   shift
4795   if test $# != 0; then
4796     # We chose a different compiler from the bogus one.
4797     # However, it has the same basename, so the bogon will be chosen
4798     # first if we set BUILD_CC to just the basename; use the full file name.
4799     shift
4800     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4801   fi
4802 fi
4803 fi
4804 fi
4805 BUILD_CC=$ac_cv_prog_BUILD_CC
4806 if test -n "$BUILD_CC"; then
4807   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4808 echo "${ECHO_T}$BUILD_CC" >&6; }
4809 else
4810   { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 fi
4813
4814
4815      fi
4816   fi
4817   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4818 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4819    { (exit 1); exit 1; }; }
4820   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4821   rm -f conftest*
4822   echo 'int main () { return 0; }' > conftest.$ac_ext
4823   ac_cv_build_exeext=
4824   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4825   (eval $ac_build_link) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; then
4829     for file in conftest.*; do
4830       case $file in
4831       *.c | *.o | *.obj | *.dSYM) ;;
4832       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4833       esac
4834     done
4835   else
4836     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4837 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4838    { (exit 1); exit 1; }; }
4839   fi
4840   rm -f conftest*
4841   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4842 fi
4843 fi
4844
4845 BUILD_EXEEXT=""
4846 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4847 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4848 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4849 ac_build_exeext=$BUILD_EXEEXT
4850
4851   ac_build_prefix=${build_alias}-
4852   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4853 set dummy ${ac_build_prefix}g++; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test -n "$BUILD_CXX"; then
4860   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880 if test -n "$BUILD_CXX"; then
4881   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888
4889   if test -z "$BUILD_CXX"; then
4890      # Extract the first word of "g++", so it can be a program name with args.
4891 set dummy g++; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   if test -n "$BUILD_CXX"; then
4898   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     ac_cv_prog_BUILD_CXX="g++"
4908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4918 if test -n "$BUILD_CXX"; then
4919   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4920 echo "${ECHO_T}$BUILD_CXX" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927      if test -z "$BUILD_CXX"; then
4928        # Extract the first word of "c++", so it can be a program name with args.
4929 set dummy c++; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   if test -n "$BUILD_CXX"; then
4936   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4937 else
4938   ac_prog_rejected=no
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4947        ac_prog_rejected=yes
4948        continue
4949      fi
4950     ac_cv_prog_BUILD_CXX="c++"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 if test $ac_prog_rejected = yes; then
4959   # We found a bogon in the path, so make sure we never use it.
4960   set dummy $ac_cv_prog_BUILD_CXX
4961   shift
4962   if test $# != 0; then
4963     # We chose a different compiler from the bogus one.
4964     # However, it has the same basename, so the bogon will be chosen
4965     # first if we set BUILD_CXX to just the basename; use the full file name.
4966     shift
4967     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4968   fi
4969 fi
4970 fi
4971 fi
4972 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4973 if test -n "$BUILD_CXX"; then
4974   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4975 echo "${ECHO_T}$BUILD_CXX" >&6; }
4976 else
4977   { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 fi
4980
4981
4982      fi
4983   fi
4984 else
4985   LLVM_CROSS_COMPILING=0
4986
4987 fi
4988
4989 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4990   cvsbuild="yes"
4991   optimize="no"
4992   CVSBUILD=CVSBUILD=1
4993
4994 else
4995   cvsbuild="no"
4996   optimize="yes"
4997 fi
4998
4999
5000 # Check whether --enable-libcpp was given.
5001 if test "${enable_libcpp+set}" = set; then
5002   enableval=$enable_libcpp;
5003 else
5004   enableval=default
5005 fi
5006
5007 case "$enableval" in
5008   yes) ENABLE_LIBCPP=1
5009  ;;
5010   no)  ENABLE_LIBCPP=0
5011  ;;
5012   default) ENABLE_LIBCPP=0
5013 ;;
5014   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5016    { (exit 1); exit 1; }; } ;;
5017 esac
5018
5019 # Check whether --enable-optimized was given.
5020 if test "${enable_optimized+set}" = set; then
5021   enableval=$enable_optimized;
5022 else
5023   enableval=$optimize
5024 fi
5025
5026 if test ${enableval} = "no" ; then
5027   ENABLE_OPTIMIZED=
5028
5029 else
5030   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5031
5032 fi
5033
5034 # Check whether --enable-profiling was given.
5035 if test "${enable_profiling+set}" = set; then
5036   enableval=$enable_profiling;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "no" ; then
5042   ENABLE_PROFILING=
5043
5044 else
5045   ENABLE_PROFILING=ENABLE_PROFILING=1
5046
5047 fi
5048
5049 # Check whether --enable-assertions was given.
5050 if test "${enable_assertions+set}" = set; then
5051   enableval=$enable_assertions;
5052 else
5053   enableval="yes"
5054 fi
5055
5056 if test ${enableval} = "yes" ; then
5057   DISABLE_ASSERTIONS=
5058
5059 else
5060   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5061
5062 fi
5063
5064 # Check whether --enable-expensive-checks was given.
5065 if test "${enable_expensive_checks+set}" = set; then
5066   enableval=$enable_expensive_checks;
5067 else
5068   enableval="no"
5069 fi
5070
5071 if test ${enableval} = "yes" ; then
5072   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5073
5074   EXPENSIVE_CHECKS=yes
5075
5076 else
5077   ENABLE_EXPENSIVE_CHECKS=
5078
5079   EXPENSIVE_CHECKS=no
5080
5081 fi
5082
5083 # Check whether --enable-debug-runtime was given.
5084 if test "${enable_debug_runtime+set}" = set; then
5085   enableval=$enable_debug_runtime;
5086 else
5087   enableval=no
5088 fi
5089
5090 if test ${enableval} = "no" ; then
5091   DEBUG_RUNTIME=
5092
5093 else
5094   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5095
5096 fi
5097
5098 # Check whether --enable-debug-symbols was given.
5099 if test "${enable_debug_symbols+set}" = set; then
5100   enableval=$enable_debug_symbols;
5101 else
5102   enableval=no
5103 fi
5104
5105 if test ${enableval} = "no" ; then
5106   DEBUG_SYMBOLS=
5107
5108 else
5109   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5110
5111 fi
5112
5113 # Check whether --enable-jit was given.
5114 if test "${enable_jit+set}" = set; then
5115   enableval=$enable_jit;
5116 else
5117   enableval=default
5118 fi
5119
5120 if test ${enableval} = "no"
5121 then
5122   JIT=
5123
5124 else
5125   case "$llvm_cv_target_arch" in
5126     x86)         TARGET_HAS_JIT=1
5127  ;;
5128     Sparc)       TARGET_HAS_JIT=0
5129  ;;
5130     PowerPC)     TARGET_HAS_JIT=1
5131  ;;
5132     x86_64)      TARGET_HAS_JIT=1
5133  ;;
5134     ARM)         TARGET_HAS_JIT=1
5135  ;;
5136     Mips)        TARGET_HAS_JIT=1
5137  ;;
5138     XCore)       TARGET_HAS_JIT=0
5139  ;;
5140     MSP430)      TARGET_HAS_JIT=0
5141  ;;
5142     Hexagon)     TARGET_HAS_JIT=0
5143  ;;
5144     MBlaze)      TARGET_HAS_JIT=0
5145  ;;
5146     NVPTX)       TARGET_HAS_JIT=0
5147  ;;
5148     *)           TARGET_HAS_JIT=0
5149  ;;
5150   esac
5151 fi
5152
5153 # Check whether --enable-docs was given.
5154 if test "${enable_docs+set}" = set; then
5155   enableval=$enable_docs;
5156 else
5157   enableval=default
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_DOCS=1
5162  ;;
5163   no)  ENABLE_DOCS=0
5164  ;;
5165   default) ENABLE_DOCS=1
5166  ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 # Check whether --enable-doxygen was given.
5173 if test "${enable_doxygen+set}" = set; then
5174   enableval=$enable_doxygen;
5175 else
5176   enableval=default
5177 fi
5178
5179 case "$enableval" in
5180   yes) ENABLE_DOXYGEN=1
5181  ;;
5182   no)  ENABLE_DOXYGEN=0
5183  ;;
5184   default) ENABLE_DOXYGEN=0
5185  ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191 # Check whether --enable-threads was given.
5192 if test "${enable_threads+set}" = set; then
5193   enableval=$enable_threads;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) LLVM_ENABLE_THREADS=1
5200  ;;
5201   no)  LLVM_ENABLE_THREADS=0
5202  ;;
5203   default) LLVM_ENABLE_THREADS=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5212 _ACEOF
5213
5214
5215 # Check whether --enable-pthreads was given.
5216 if test "${enable_pthreads+set}" = set; then
5217   enableval=$enable_pthreads;
5218 else
5219   enableval=default
5220 fi
5221
5222 case "$enableval" in
5223   yes) ENABLE_PTHREADS=1
5224  ;;
5225   no)  ENABLE_PTHREADS=0
5226  ;;
5227   default) ENABLE_PTHREADS=1
5228  ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236   enableval=$enable_pic;
5237 else
5238   enableval=default
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_PIC=1
5243  ;;
5244   no)  ENABLE_PIC=0
5245  ;;
5246   default) ENABLE_PIC=1
5247  ;;
5248   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250    { (exit 1); exit 1; }; } ;;
5251 esac
5252
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5255 _ACEOF
5256
5257
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260   enableval=$enable_shared;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_SHARED=1
5267  ;;
5268   no)  ENABLE_SHARED=0
5269  ;;
5270   default) ENABLE_SHARED=0
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279   enableval=$enable_embed_stdcxx;
5280 else
5281   enableval=default
5282 fi
5283
5284 case "$enableval" in
5285   yes) ENABLE_EMBED_STDCXX=1
5286  ;;
5287   no)  ENABLE_EMBED_STDCXX=0
5288  ;;
5289   default) ENABLE_EMBED_STDCXX=0
5290  ;;
5291   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298   enableval=$enable_timestamps;
5299 else
5300   enableval=default
5301 fi
5302
5303 case "$enableval" in
5304   yes) ENABLE_TIMESTAMPS=1
5305  ;;
5306   no)  ENABLE_TIMESTAMPS=0
5307  ;;
5308   default) ENABLE_TIMESTAMPS=1
5309  ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317 _ACEOF
5318
5319
5320 TARGETS_TO_BUILD=""
5321 # Check whether --enable-targets was given.
5322 if test "${enable_targets+set}" = set; then
5323   enableval=$enable_targets;
5324 else
5325   enableval=all
5326 fi
5327
5328 if test "$enableval" = host-only ; then
5329   enableval=host
5330 fi
5331 case "$enableval" in
5332   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon AMDGPU" ;;
5333   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5334       case "$a_target" in
5335         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5346         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5347         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5348         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5349         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5350         host) case "$llvm_cv_target_arch" in
5351             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5354             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5355             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5358             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5359             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5364 echo "$as_me: error: Can not set target to build" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366           esac ;;
5367         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5368 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5369    { (exit 1); exit 1; }; } ;;
5370       esac
5371   done
5372   ;;
5373 esac
5374 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5375
5376
5377 for a_target in $TARGETS_TO_BUILD; do
5378   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5382 _ACEOF
5383
5384     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5385     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5386     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5387     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5388     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5390     fi
5391     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5392       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5393     fi
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5397 _ACEOF
5398
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5402 _ACEOF
5403
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5407 _ACEOF
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5412 _ACEOF
5413
5414     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5418 _ACEOF
5419
5420     fi
5421     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5425 _ACEOF
5426
5427     fi
5428   fi
5429 done
5430
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5439   fi
5440   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5442   fi
5443   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5445   fi
5446 done
5447
5448
5449
5450
5451
5452
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455   withval=$with_optimize_option;
5456 else
5457   withval=default
5458 fi
5459
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5462 case "$withval" in
5463   default)
5464     case "$llvm_cv_os_type" in
5465     FreeBSD) optimize_option=-O2 ;;
5466     MingW) optimize_option=-O2 ;;
5467     *)     optimize_option=-O3 ;;
5468     esac ;;
5469   *) optimize_option="$withval" ;;
5470 esac
5471 OPTIMIZE_OPTION=$optimize_option
5472
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5475
5476
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479   withval=$with_extra_options;
5480 else
5481   withval=default
5482 fi
5483
5484 case "$withval" in
5485   default) EXTRA_OPTIONS= ;;
5486   *) EXTRA_OPTIONS=$withval ;;
5487 esac
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5489
5490
5491
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494   withval=$with_extra_ld_options;
5495 else
5496   withval=default
5497 fi
5498
5499 case "$withval" in
5500   default) EXTRA_LD_OPTIONS= ;;
5501   *) EXTRA_LD_OPTIONS=$withval ;;
5502 esac
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5504
5505
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508   enableval=$enable_bindings;
5509 else
5510   enableval=default
5511 fi
5512
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516   all ) BINDINGS_TO_BUILD="ocaml" ;;
5517   none | no) BINDINGS_TO_BUILD="" ;;
5518   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519       case "$a_binding" in
5520         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524       esac
5525   done
5526   ;;
5527 esac
5528
5529
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532   withval=$with_ocaml_libdir;
5533 else
5534   withval=auto
5535 fi
5536
5537 case "$withval" in
5538   auto) with_ocaml_libdir="$withval" ;;
5539   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542    { (exit 1); exit 1; }; } ;;
5543 esac
5544
5545
5546 # Check whether --with-clang-srcdir was given.
5547 if test "${with_clang_srcdir+set}" = set; then
5548   withval=$with_clang_srcdir;
5549 else
5550   withval="-"
5551 fi
5552
5553 case "$withval" in
5554   -) clang_src_root="" ;;
5555   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5556   *) clang_src_root="$ac_pwd/$withval" ;;
5557 esac
5558 CLANG_SRC_ROOT=$clang_src_root
5559
5560
5561
5562 # Check whether --with-clang-resource-dir was given.
5563 if test "${with_clang_resource_dir+set}" = set; then
5564   withval=$with_clang_resource_dir;
5565 else
5566   withval=""
5567 fi
5568
5569
5570 cat >>confdefs.h <<_ACEOF
5571 #define CLANG_RESOURCE_DIR "$withval"
5572 _ACEOF
5573
5574
5575
5576 # Check whether --with-c-include-dirs was given.
5577 if test "${with_c_include_dirs+set}" = set; then
5578   withval=$with_c_include_dirs;
5579 else
5580   withval=""
5581 fi
5582
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define C_INCLUDE_DIRS "$withval"
5586 _ACEOF
5587
5588
5589 # Clang normally uses the system c++ headers and libraries. With this option,
5590 # clang will use the ones provided by a gcc installation instead. This option should
5591 # be passed the same value that was used with --prefix when configuring gcc.
5592
5593 # Check whether --with-gcc-toolchain was given.
5594 if test "${with_gcc_toolchain+set}" = set; then
5595   withval=$with_gcc_toolchain;
5596 else
5597   withval=""
5598 fi
5599
5600
5601 cat >>confdefs.h <<_ACEOF
5602 #define GCC_INSTALL_PREFIX "$withval"
5603 _ACEOF
5604
5605
5606
5607 # Check whether --with-default-sysroot was given.
5608 if test "${with_default_sysroot+set}" = set; then
5609   withval=$with_default_sysroot;
5610 else
5611   withval=""
5612 fi
5613
5614
5615 cat >>confdefs.h <<_ACEOF
5616 #define DEFAULT_SYSROOT "$withval"
5617 _ACEOF
5618
5619
5620
5621 # Check whether --with-binutils-include was given.
5622 if test "${with_binutils_include+set}" = set; then
5623   withval=$with_binutils_include;
5624 else
5625   withval=default
5626 fi
5627
5628 case "$withval" in
5629   default) WITH_BINUTILS_INCDIR=default ;;
5630   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5631   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5632 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5633    { (exit 1); exit 1; }; } ;;
5634 esac
5635 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5636   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5637
5638   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5639      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5640      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5641 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5642    { (exit 1); exit 1; }; };
5643   fi
5644 fi
5645
5646
5647 # Check whether --with-bug-report-url was given.
5648 if test "${with_bug_report_url+set}" = set; then
5649   withval=$with_bug_report_url;
5650 else
5651   withval="http://llvm.org/bugs/"
5652 fi
5653
5654
5655 cat >>confdefs.h <<_ACEOF
5656 #define BUG_REPORT_URL "$withval"
5657 _ACEOF
5658
5659
5660 # Check whether --enable-libffi was given.
5661 if test "${enable_libffi+set}" = set; then
5662   enableval=$enable_libffi; case "$enableval" in
5663     yes) llvm_cv_enable_libffi="yes" ;;
5664     no)  llvm_cv_enable_libffi="no"  ;;
5665     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5666 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5667    { (exit 1); exit 1; }; } ;;
5668   esac
5669 else
5670   llvm_cv_enable_libffi=no
5671 fi
5672
5673
5674
5675 # Check whether --with-internal-prefix was given.
5676 if test "${with_internal_prefix+set}" = set; then
5677   withval=$with_internal_prefix;
5678 else
5679   withval=""
5680 fi
5681
5682 INTERNAL_PREFIX=$withval
5683
5684
5685
5686 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5687 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5688 if test "${lt_cv_path_NM+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   if test -n "$NM"; then
5692   # Let the user override the test.
5693   lt_cv_path_NM="$NM"
5694 else
5695   lt_nm_to_check="${ac_tool_prefix}nm"
5696   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5697     lt_nm_to_check="$lt_nm_to_check nm"
5698   fi
5699   for lt_tmp_nm in $lt_nm_to_check; do
5700     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5702       IFS="$lt_save_ifs"
5703       test -z "$ac_dir" && ac_dir=.
5704       tmp_nm="$ac_dir/$lt_tmp_nm"
5705       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5706         # Check to see if the nm accepts a BSD-compat flag.
5707         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5708         #   nm: unknown option "B" ignored
5709         # Tru64's nm complains that /dev/null is an invalid object file
5710         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5711         */dev/null* | *'Invalid file or object type'*)
5712           lt_cv_path_NM="$tmp_nm -B"
5713           break
5714           ;;
5715         *)
5716           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5717           */dev/null*)
5718             lt_cv_path_NM="$tmp_nm -p"
5719             break
5720             ;;
5721           *)
5722             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723             continue # so that we can try to find one that supports BSD flags
5724             ;;
5725           esac
5726           ;;
5727         esac
5728       fi
5729     done
5730     IFS="$lt_save_ifs"
5731   done
5732   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5733 fi
5734 fi
5735 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5736 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5737 NM="$lt_cv_path_NM"
5738
5739
5740
5741 { echo "$as_me:$LINENO: checking for GNU make" >&5
5742 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5743 if test "${llvm_cv_gnu_make_command+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   llvm_cv_gnu_make_command=''
5747  for a in "$MAKE" make gmake gnumake ; do
5748   if test -z "$a" ; then continue ; fi ;
5749   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5750   then
5751    llvm_cv_gnu_make_command=$a ;
5752    break;
5753   fi
5754  done
5755 fi
5756 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5757 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5758  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5759    ifGNUmake='' ;
5760  else
5761    ifGNUmake='#' ;
5762    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5763 echo "${ECHO_T}\"Not found\"" >&6; };
5764  fi
5765
5766
5767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5769 LN_S=$as_ln_s
5770 if test "$LN_S" = "ln -s"; then
5771   { echo "$as_me:$LINENO: result: yes" >&5
5772 echo "${ECHO_T}yes" >&6; }
5773 else
5774   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5775 echo "${ECHO_T}no, using $LN_S" >&6; }
5776 fi
5777
5778 # Extract the first word of "cmp", so it can be a program name with args.
5779 set dummy cmp; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_CMP+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   case $CMP in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5806   ;;
5807 esac
5808 fi
5809 CMP=$ac_cv_path_CMP
5810 if test -n "$CMP"; then
5811   { echo "$as_me:$LINENO: result: $CMP" >&5
5812 echo "${ECHO_T}$CMP" >&6; }
5813 else
5814   { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5816 fi
5817
5818
5819 # Extract the first word of "cp", so it can be a program name with args.
5820 set dummy cp; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_CP+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   case $CP in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836   for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5847   ;;
5848 esac
5849 fi
5850 CP=$ac_cv_path_CP
5851 if test -n "$CP"; then
5852   { echo "$as_me:$LINENO: result: $CP" >&5
5853 echo "${ECHO_T}$CP" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859
5860 # Extract the first word of "date", so it can be a program name with args.
5861 set dummy date; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_DATE+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   case $DATE in
5868   [\\/]* | ?:[\\/]*)
5869   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5870   ;;
5871   *)
5872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5888   ;;
5889 esac
5890 fi
5891 DATE=$ac_cv_path_DATE
5892 if test -n "$DATE"; then
5893   { echo "$as_me:$LINENO: result: $DATE" >&5
5894 echo "${ECHO_T}$DATE" >&6; }
5895 else
5896   { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5898 fi
5899
5900
5901 # Extract the first word of "find", so it can be a program name with args.
5902 set dummy find; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_FIND+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   case $FIND in
5909   [\\/]* | ?:[\\/]*)
5910   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5911   ;;
5912   *)
5913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5929   ;;
5930 esac
5931 fi
5932 FIND=$ac_cv_path_FIND
5933 if test -n "$FIND"; then
5934   { echo "$as_me:$LINENO: result: $FIND" >&5
5935 echo "${ECHO_T}$FIND" >&6; }
5936 else
5937   { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5939 fi
5940
5941
5942 # Extract the first word of "grep", so it can be a program name with args.
5943 set dummy grep; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_path_GREP+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   case $GREP in
5950   [\\/]* | ?:[\\/]*)
5951   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5952   ;;
5953   *)
5954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5970   ;;
5971 esac
5972 fi
5973 GREP=$ac_cv_path_GREP
5974 if test -n "$GREP"; then
5975   { echo "$as_me:$LINENO: result: $GREP" >&5
5976 echo "${ECHO_T}$GREP" >&6; }
5977 else
5978   { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5980 fi
5981
5982
5983 # Extract the first word of "mkdir", so it can be a program name with args.
5984 set dummy mkdir; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MKDIR+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   case $MKDIR in
5991   [\\/]* | ?:[\\/]*)
5992   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5993   ;;
5994   *)
5995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6011   ;;
6012 esac
6013 fi
6014 MKDIR=$ac_cv_path_MKDIR
6015 if test -n "$MKDIR"; then
6016   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6017 echo "${ECHO_T}$MKDIR" >&6; }
6018 else
6019   { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021 fi
6022
6023
6024 # Extract the first word of "mv", so it can be a program name with args.
6025 set dummy mv; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_path_MV+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   case $MV in
6032   [\\/]* | ?:[\\/]*)
6033   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6034   ;;
6035   *)
6036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6043     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6052   ;;
6053 esac
6054 fi
6055 MV=$ac_cv_path_MV
6056 if test -n "$MV"; then
6057   { echo "$as_me:$LINENO: result: $MV" >&5
6058 echo "${ECHO_T}$MV" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6062 fi
6063
6064
6065 if test -n "$ac_tool_prefix"; then
6066   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -n "$RANLIB"; then
6074   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 RANLIB=$ac_cv_prog_RANLIB
6094 if test -n "$RANLIB"; then
6095   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6096 echo "${ECHO_T}$RANLIB" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6100 fi
6101
6102
6103 fi
6104 if test -z "$ac_cv_prog_RANLIB"; then
6105   ac_ct_RANLIB=$RANLIB
6106   # Extract the first word of "ranlib", so it can be a program name with args.
6107 set dummy ranlib; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   if test -n "$ac_ct_RANLIB"; then
6114   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_prog_ac_ct_RANLIB="ranlib"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6134 if test -n "$ac_ct_RANLIB"; then
6135   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141
6142   if test "x$ac_ct_RANLIB" = x; then
6143     RANLIB=":"
6144   else
6145     case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet.  If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet.  If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     RANLIB=$ac_ct_RANLIB
6156   fi
6157 else
6158   RANLIB="$ac_cv_prog_RANLIB"
6159 fi
6160
6161 if test -n "$ac_tool_prefix"; then
6162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   if test -n "$AR"; then
6170   ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177   for ac_exec_ext in '' $ac_executable_extensions; do
6178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6179     ac_cv_prog_AR="${ac_tool_prefix}ar"
6180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191   { echo "$as_me:$LINENO: result: $AR" >&5
6192 echo "${ECHO_T}$AR" >&6; }
6193 else
6194   { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_AR"; then
6201   ac_ct_AR=$AR
6202   # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   if test -n "$ac_ct_AR"; then
6210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217   for ac_exec_ext in '' $ac_executable_extensions; do
6218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6219     ac_cv_prog_ac_ct_AR="ar"
6220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 echo "${ECHO_T}$ac_ct_AR" >&6; }
6233 else
6234   { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6236 fi
6237
6238   if test "x$ac_ct_AR" = x; then
6239     AR="false"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet.  If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&5
6246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6247 whose name does not start with the host triplet.  If you think this
6248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251     AR=$ac_ct_AR
6252   fi
6253 else
6254   AR="$ac_cv_prog_AR"
6255 fi
6256
6257 # Extract the first word of "rm", so it can be a program name with args.
6258 set dummy rm; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_RM+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $RM in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6285   ;;
6286 esac
6287 fi
6288 RM=$ac_cv_path_RM
6289 if test -n "$RM"; then
6290   { echo "$as_me:$LINENO: result: $RM" >&5
6291 echo "${ECHO_T}$RM" >&6; }
6292 else
6293   { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6295 fi
6296
6297
6298 # Extract the first word of "sed", so it can be a program name with args.
6299 set dummy sed; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_SED+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $SED in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6308   ;;
6309   *)
6310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6326   ;;
6327 esac
6328 fi
6329 SED=$ac_cv_path_SED
6330 if test -n "$SED"; then
6331   { echo "$as_me:$LINENO: result: $SED" >&5
6332 echo "${ECHO_T}$SED" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 # Extract the first word of "tar", so it can be a program name with args.
6340 set dummy tar; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_TAR+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   case $TAR in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6367   ;;
6368 esac
6369 fi
6370 TAR=$ac_cv_path_TAR
6371 if test -n "$TAR"; then
6372   { echo "$as_me:$LINENO: result: $TAR" >&5
6373 echo "${ECHO_T}$TAR" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379
6380 # Extract the first word of "pwd", so it can be a program name with args.
6381 set dummy pwd; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_BINPWD+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   case $BINPWD in
6388   [\\/]* | ?:[\\/]*)
6389   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6390   ;;
6391   *)
6392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6408   ;;
6409 esac
6410 fi
6411 BINPWD=$ac_cv_path_BINPWD
6412 if test -n "$BINPWD"; then
6413   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6414 echo "${ECHO_T}$BINPWD" >&6; }
6415 else
6416   { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420
6421
6422 # Extract the first word of "Graphviz", so it can be a program name with args.
6423 set dummy Graphviz; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   case $GRAPHVIZ in
6430   [\\/]* | ?:[\\/]*)
6431   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6432   ;;
6433   *)
6434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6450   ;;
6451 esac
6452 fi
6453 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6454 if test -n "$GRAPHVIZ"; then
6455   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6456 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6457 else
6458   { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6460 fi
6461
6462
6463 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6464
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_GRAPHVIZ 1
6467 _ACEOF
6468
6469     if test "$llvm_cv_os_type" = "MingW" ; then
6470     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6471   fi
6472
6473 cat >>confdefs.h <<_ACEOF
6474 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6475 _ACEOF
6476
6477 fi
6478 # Extract the first word of "dot", so it can be a program name with args.
6479 set dummy dot; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_DOT+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   case $DOT in
6486   [\\/]* | ?:[\\/]*)
6487   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6488   ;;
6489   *)
6490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6506   ;;
6507 esac
6508 fi
6509 DOT=$ac_cv_path_DOT
6510 if test -n "$DOT"; then
6511   { echo "$as_me:$LINENO: result: $DOT" >&5
6512 echo "${ECHO_T}$DOT" >&6; }
6513 else
6514   { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6516 fi
6517
6518
6519 if test "$DOT" != "echo dot" ; then
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_DOT 1
6523 _ACEOF
6524
6525     if test "$llvm_cv_os_type" = "MingW" ; then
6526     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6527   fi
6528
6529 cat >>confdefs.h <<_ACEOF
6530 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6531 _ACEOF
6532
6533 fi
6534 # Extract the first word of "fdp", so it can be a program name with args.
6535 set dummy fdp; ac_word=$2
6536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538 if test "${ac_cv_path_FDP+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   case $FDP in
6542   [\\/]* | ?:[\\/]*)
6543   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6544   ;;
6545   *)
6546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6562   ;;
6563 esac
6564 fi
6565 FDP=$ac_cv_path_FDP
6566 if test -n "$FDP"; then
6567   { echo "$as_me:$LINENO: result: $FDP" >&5
6568 echo "${ECHO_T}$FDP" >&6; }
6569 else
6570   { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6572 fi
6573
6574
6575 if test "$FDP" != "echo fdp" ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_FDP 1
6579 _ACEOF
6580
6581     if test "$llvm_cv_os_type" = "MingW" ; then
6582     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6583   fi
6584
6585 cat >>confdefs.h <<_ACEOF
6586 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6587 _ACEOF
6588
6589 fi
6590 # Extract the first word of "neato", so it can be a program name with args.
6591 set dummy neato; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_path_NEATO+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   case $NEATO in
6598   [\\/]* | ?:[\\/]*)
6599   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6600   ;;
6601   *)
6602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607   for ac_exec_ext in '' $ac_executable_extensions; do
6608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6609     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6618   ;;
6619 esac
6620 fi
6621 NEATO=$ac_cv_path_NEATO
6622 if test -n "$NEATO"; then
6623   { echo "$as_me:$LINENO: result: $NEATO" >&5
6624 echo "${ECHO_T}$NEATO" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 if test "$NEATO" != "echo neato" ; then
6632
6633 cat >>confdefs.h <<\_ACEOF
6634 #define HAVE_NEATO 1
6635 _ACEOF
6636
6637     if test "$llvm_cv_os_type" = "MingW" ; then
6638     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6639   fi
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6643 _ACEOF
6644
6645 fi
6646 # Extract the first word of "twopi", so it can be a program name with args.
6647 set dummy twopi; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_TWOPI+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   case $TWOPI in
6654   [\\/]* | ?:[\\/]*)
6655   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6656   ;;
6657   *)
6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6674   ;;
6675 esac
6676 fi
6677 TWOPI=$ac_cv_path_TWOPI
6678 if test -n "$TWOPI"; then
6679   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6680 echo "${ECHO_T}$TWOPI" >&6; }
6681 else
6682   { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686
6687 if test "$TWOPI" != "echo twopi" ; then
6688
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_TWOPI 1
6691 _ACEOF
6692
6693     if test "$llvm_cv_os_type" = "MingW" ; then
6694     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6695   fi
6696
6697 cat >>confdefs.h <<_ACEOF
6698 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6699 _ACEOF
6700
6701 fi
6702 # Extract the first word of "circo", so it can be a program name with args.
6703 set dummy circo; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CIRCO+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   case $CIRCO in
6710   [\\/]* | ?:[\\/]*)
6711   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6712   ;;
6713   *)
6714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6730   ;;
6731 esac
6732 fi
6733 CIRCO=$ac_cv_path_CIRCO
6734 if test -n "$CIRCO"; then
6735   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6736 echo "${ECHO_T}$CIRCO" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 if test "$CIRCO" != "echo circo" ; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_CIRCO 1
6747 _ACEOF
6748
6749     if test "$llvm_cv_os_type" = "MingW" ; then
6750     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6751   fi
6752
6753 cat >>confdefs.h <<_ACEOF
6754 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6755 _ACEOF
6756
6757 fi
6758 for ac_prog in gv gsview32
6759 do
6760   # Extract the first word of "$ac_prog", so it can be a program name with args.
6761 set dummy $ac_prog; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_GV+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   case $GV in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787   ;;
6788 esac
6789 fi
6790 GV=$ac_cv_path_GV
6791 if test -n "$GV"; then
6792   { echo "$as_me:$LINENO: result: $GV" >&5
6793 echo "${ECHO_T}$GV" >&6; }
6794 else
6795   { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799
6800   test -n "$GV" && break
6801 done
6802 test -n "$GV" || GV="echo gv"
6803
6804 if test "$GV" != "echo gv" ; then
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_GV 1
6808 _ACEOF
6809
6810     if test "$llvm_cv_os_type" = "MingW" ; then
6811     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812   fi
6813
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_GV "$GV${EXEEXT}"
6816 _ACEOF
6817
6818 fi
6819 # Extract the first word of "dotty", so it can be a program name with args.
6820 set dummy dotty; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_DOTTY+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   case $DOTTY in
6827   [\\/]* | ?:[\\/]*)
6828   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6829   ;;
6830   *)
6831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6847   ;;
6848 esac
6849 fi
6850 DOTTY=$ac_cv_path_DOTTY
6851 if test -n "$DOTTY"; then
6852   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6853 echo "${ECHO_T}$DOTTY" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 if test "$DOTTY" != "echo dotty" ; then
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DOTTY 1
6864 _ACEOF
6865
6866     if test "$llvm_cv_os_type" = "MingW" ; then
6867     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6868   fi
6869
6870 cat >>confdefs.h <<_ACEOF
6871 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6872 _ACEOF
6873
6874 fi
6875 # Extract the first word of "xdot.py", so it can be a program name with args.
6876 set dummy xdot.py; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   case $XDOT_PY in
6883   [\\/]* | ?:[\\/]*)
6884   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6885   ;;
6886   *)
6887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6903   ;;
6904 esac
6905 fi
6906 XDOT_PY=$ac_cv_path_XDOT_PY
6907 if test -n "$XDOT_PY"; then
6908   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6909 echo "${ECHO_T}$XDOT_PY" >&6; }
6910 else
6911   { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6913 fi
6914
6915
6916 if test "$XDOT_PY" != "echo xdot.py" ; then
6917
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_XDOT_PY 1
6920 _ACEOF
6921
6922     if test "$llvm_cv_os_type" = "MingW" ; then
6923     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6924   fi
6925
6926 cat >>confdefs.h <<_ACEOF
6927 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6928 _ACEOF
6929
6930 fi
6931
6932 # Find a good install program.  We prefer a C program (faster),
6933 # so one script is as good as another.  But avoid the broken or
6934 # incompatible versions:
6935 # SysV /etc/install, /usr/sbin/install
6936 # SunOS /usr/etc/install
6937 # IRIX /sbin/install
6938 # AIX /bin/install
6939 # AmigaOS /C/install, which installs bootblocks on floppy discs
6940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6943 # OS/2's system install, which has a completely different semantic
6944 # ./install, which can be erroneously created by make from ./install.sh.
6945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6947 if test -z "$INSTALL"; then
6948 if test "${ac_cv_path_install+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956   # Account for people who put trailing slashes in PATH elements.
6957 case $as_dir/ in
6958   ./ | .// | /cC/* | \
6959   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6960   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6961   /usr/ucb/* ) ;;
6962   *)
6963     # OSF1 and SCO ODT 3.0 have their own names for install.
6964     # Don't use installbsd from OSF since it installs stuff as root
6965     # by default.
6966     for ac_prog in ginstall scoinst install; do
6967       for ac_exec_ext in '' $ac_executable_extensions; do
6968         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6969           if test $ac_prog = install &&
6970             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6971             # AIX install.  It has an incompatible calling convention.
6972             :
6973           elif test $ac_prog = install &&
6974             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975             # program-specific install script used by HP pwplus--don't use.
6976             :
6977           else
6978             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6979             break 3
6980           fi
6981         fi
6982       done
6983     done
6984     ;;
6985 esac
6986 done
6987 IFS=$as_save_IFS
6988
6989
6990 fi
6991   if test "${ac_cv_path_install+set}" = set; then
6992     INSTALL=$ac_cv_path_install
6993   else
6994     # As a last resort, use the slow shell script.  Don't cache a
6995     # value for INSTALL within a source directory, because that will
6996     # break other packages using the cache if that directory is
6997     # removed, or if the value is a relative name.
6998     INSTALL=$ac_install_sh
6999   fi
7000 fi
7001 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7002 echo "${ECHO_T}$INSTALL" >&6; }
7003
7004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7005 # It thinks the first close brace ends the variable substitution.
7006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7007
7008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7009
7010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7011
7012 case "$INSTALL" in
7013  [\\/$]* | ?:[\\/]* ) ;;
7014  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7015 esac
7016
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $BZIP2 in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   ;;
7045 esac
7046 fi
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 # Extract the first word of "cat", so it can be a program name with args.
7058 set dummy cat; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_CAT+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $CAT in
7065   [\\/]* | ?:[\\/]*)
7066   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7067   ;;
7068   *)
7069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084   ;;
7085 esac
7086 fi
7087 CAT=$ac_cv_path_CAT
7088 if test -n "$CAT"; then
7089   { echo "$as_me:$LINENO: result: $CAT" >&5
7090 echo "${ECHO_T}$CAT" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097 # Extract the first word of "doxygen", so it can be a program name with args.
7098 set dummy doxygen; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $DOXYGEN in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   ;;
7125 esac
7126 fi
7127 DOXYGEN=$ac_cv_path_DOXYGEN
7128 if test -n "$DOXYGEN"; then
7129   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7130 echo "${ECHO_T}$DOXYGEN" >&6; }
7131 else
7132   { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136
7137 # Extract the first word of "groff", so it can be a program name with args.
7138 set dummy groff; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GROFF+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   case $GROFF in
7145   [\\/]* | ?:[\\/]*)
7146   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7147   ;;
7148   *)
7149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154   for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164   ;;
7165 esac
7166 fi
7167 GROFF=$ac_cv_path_GROFF
7168 if test -n "$GROFF"; then
7169   { echo "$as_me:$LINENO: result: $GROFF" >&5
7170 echo "${ECHO_T}$GROFF" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176
7177 # Extract the first word of "gzip", so it can be a program name with args.
7178 set dummy gzip; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $GZIPBIN in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7187   ;;
7188   *)
7189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204   ;;
7205 esac
7206 fi
7207 GZIPBIN=$ac_cv_path_GZIPBIN
7208 if test -n "$GZIPBIN"; then
7209   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7210 echo "${ECHO_T}$GZIPBIN" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216
7217 # Extract the first word of "pdfroff", so it can be a program name with args.
7218 set dummy pdfroff; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_PDFROFF+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   case $PDFROFF in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244   ;;
7245 esac
7246 fi
7247 PDFROFF=$ac_cv_path_PDFROFF
7248 if test -n "$PDFROFF"; then
7249   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7250 echo "${ECHO_T}$PDFROFF" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256
7257 # Extract the first word of "zip", so it can be a program name with args.
7258 set dummy zip; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_ZIP+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   case $ZIP in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284   ;;
7285 esac
7286 fi
7287 ZIP=$ac_cv_path_ZIP
7288 if test -n "$ZIP"; then
7289   { echo "$as_me:$LINENO: result: $ZIP" >&5
7290 echo "${ECHO_T}$ZIP" >&6; }
7291 else
7292   { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7294 fi
7295
7296
7297 for ac_prog in ocamlc
7298 do
7299   # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_OCAMLC+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $OCAMLC in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 OCAMLC=$ac_cv_path_OCAMLC
7330 if test -n "$OCAMLC"; then
7331   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7332 echo "${ECHO_T}$OCAMLC" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339   test -n "$OCAMLC" && break
7340 done
7341
7342 for ac_prog in ocamlopt
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $OCAMLOPT in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371   ;;
7372 esac
7373 fi
7374 OCAMLOPT=$ac_cv_path_OCAMLOPT
7375 if test -n "$OCAMLOPT"; then
7376   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7377 echo "${ECHO_T}$OCAMLOPT" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384   test -n "$OCAMLOPT" && break
7385 done
7386
7387 for ac_prog in ocamldep
7388 do
7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $OCAMLDEP in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416   ;;
7417 esac
7418 fi
7419 OCAMLDEP=$ac_cv_path_OCAMLDEP
7420 if test -n "$OCAMLDEP"; then
7421   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7422 echo "${ECHO_T}$OCAMLDEP" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428
7429   test -n "$OCAMLDEP" && break
7430 done
7431
7432 for ac_prog in ocamldoc
7433 do
7434   # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   case $OCAMLDOC in
7442   [\\/]* | ?:[\\/]*)
7443   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7444   ;;
7445   *)
7446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461   ;;
7462 esac
7463 fi
7464 OCAMLDOC=$ac_cv_path_OCAMLDOC
7465 if test -n "$OCAMLDOC"; then
7466   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7467 echo "${ECHO_T}$OCAMLDOC" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474   test -n "$OCAMLDOC" && break
7475 done
7476
7477 for ac_prog in gas as
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GAS+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   case $GAS in
7487   [\\/]* | ?:[\\/]*)
7488   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7489   ;;
7490   *)
7491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506   ;;
7507 esac
7508 fi
7509 GAS=$ac_cv_path_GAS
7510 if test -n "$GAS"; then
7511   { echo "$as_me:$LINENO: result: $GAS" >&5
7512 echo "${ECHO_T}$GAS" >&6; }
7513 else
7514   { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7516 fi
7517
7518
7519   test -n "$GAS" && break
7520 done
7521
7522
7523 { echo "$as_me:$LINENO: checking for linker version" >&5
7524 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7525 if test "${llvm_cv_link_version+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528
7529    version_string="$(ld -v 2>&1 | head -1)"
7530
7531    # Check for ld64.
7532    if (echo "$version_string" | grep -q "ld64"); then
7533      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7534    else
7535      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7536    fi
7537
7538 fi
7539 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7540 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7544 _ACEOF
7545
7546
7547
7548 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7549 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7550 if test "${llvm_cv_link_use_r+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553    ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559   oldcflags="$CFLAGS"
7560   CFLAGS="$CFLAGS -Wl,-R."
7561   cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567
7568 int
7569 main ()
7570 {
7571
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7578 case "(($ac_try" in
7579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580   *) ac_try_echo=$ac_try;;
7581 esac
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583   (eval "$ac_link") 2>conftest.er1
7584   ac_status=$?
7585   grep -v '^ *+' conftest.er1 >conftest.err
7586   rm -f conftest.er1
7587   cat conftest.err >&5
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); } &&
7590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591   { (case "(($ac_try" in
7592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593   *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596   (eval "$ac_try") 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (case "(($ac_try" in
7602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603   *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606   (eval "$ac_try") 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   llvm_cv_link_use_r=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615         llvm_cv_link_use_r=no
7616 fi
7617
7618 rm -f core conftest.err conftest.$ac_objext \
7619       conftest$ac_exeext conftest.$ac_ext
7620   CFLAGS="$oldcflags"
7621   ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628 fi
7629 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7630 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7631 if test "$llvm_cv_link_use_r" = yes ; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_LINK_R 1
7635 _ACEOF
7636
7637   fi
7638
7639
7640 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7641 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7642 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645    ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651   oldcflags="$CFLAGS"
7652   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7653   cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659
7660 int
7661 main ()
7662 {
7663
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7670 case "(($ac_try" in
7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672   *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675   (eval "$ac_link") 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683   { (case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_try") 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; } &&
7692          { ac_try='test -s conftest$ac_exeext'
7693   { (case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_try") 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   llvm_cv_link_use_export_dynamic=yes
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707         llvm_cv_link_use_export_dynamic=no
7708 fi
7709
7710 rm -f core conftest.err conftest.$ac_objext \
7711       conftest$ac_exeext conftest.$ac_ext
7712   CFLAGS="$oldcflags"
7713   ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719
7720 fi
7721 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7722 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7723 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7724
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_LINK_EXPORT_DYNAMIC 1
7727 _ACEOF
7728
7729   fi
7730
7731
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_version_script+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737    ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743   oldcflags="$CFLAGS"
7744
7745   # The following code is from the autoconf manual,
7746   # "11.13: Limitations of Usual Tools".
7747   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7748   # Use mktemp if possible; otherwise fall back on mkdir,
7749   # with $RANDOM to make collisions less likely.
7750   : ${TMPDIR=/tmp}
7751   {
7752     tmp=`
7753       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7754     ` &&
7755     test -n "$tmp" && test -d "$tmp"
7756   } || {
7757     tmp=$TMPDIR/foo$$-$RANDOM
7758     (umask 077 && mkdir "$tmp")
7759   } || exit $?
7760
7761   echo "{" > "$tmp/export.map"
7762   echo "  global: main;" >> "$tmp/export.map"
7763   echo "  local: *;" >> "$tmp/export.map"
7764   echo "};" >> "$tmp/export.map"
7765
7766   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7767   cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 int
7775 main ()
7776 {
7777
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7784 case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_link") 2>conftest.er1
7790   ac_status=$?
7791   grep -v '^ *+' conftest.er1 >conftest.err
7792   rm -f conftest.er1
7793   cat conftest.err >&5
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); } &&
7796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797   { (case "(($ac_try" in
7798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799   *) ac_try_echo=$ac_try;;
7800 esac
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802   (eval "$ac_try") 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest$ac_exeext'
7807   { (case "(($ac_try" in
7808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809   *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812   (eval "$ac_try") 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; }; then
7816   llvm_cv_link_use_version_script=yes
7817 else
7818   echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821         llvm_cv_link_use_version_script=no
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext \
7825       conftest$ac_exeext conftest.$ac_ext
7826   rm "$tmp/export.map"
7827   rmdir "$tmp"
7828   CFLAGS="$oldcflags"
7829   ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836 fi
7837 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7838 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7839 if test "$llvm_cv_link_use_version_script" = yes ; then
7840   HAVE_LINK_VERSION_SCRIPT=1
7841
7842   fi
7843
7844
7845
7846
7847 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7849 if test "${ac_cv_c_const+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 int
7860 main ()
7861 {
7862 /* FIXME: Include the comments suggested by Paul. */
7863 #ifndef __cplusplus
7864   /* Ultrix mips cc rejects this.  */
7865   typedef int charset[2];
7866   const charset x;
7867   /* SunOS 4.1.1 cc rejects this.  */
7868   char const *const *ccp;
7869   char **p;
7870   /* NEC SVR4.0.2 mips cc rejects this.  */
7871   struct point {int x, y;};
7872   static struct point const zero = {0,0};
7873   /* AIX XL C 1.02.0.0 rejects this.
7874      It does not let you subtract one const X* pointer from another in
7875      an arm of an if-expression whose if-part is not a constant
7876      expression */
7877   const char *g = "string";
7878   ccp = &g + (g ? g-g : 0);
7879   /* HPUX 7.0 cc rejects these. */
7880   ++ccp;
7881   p = (char**) ccp;
7882   ccp = (char const *const *) p;
7883   { /* SCO 3.2v4 cc rejects this.  */
7884     char *t;
7885     char const *s = 0 ? (char *) 0 : (char const *) 0;
7886
7887     *t++ = 0;
7888     if (s) return 0;
7889   }
7890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7891     int x[] = {25, 17};
7892     const int *foo = &x[0];
7893     ++foo;
7894   }
7895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7896     typedef const int *iptr;
7897     iptr p = 0;
7898     ++p;
7899   }
7900   { /* AIX XL C 1.02.0.0 rejects this saying
7901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7902     struct s { int j; const int *ap[3]; };
7903     struct s *b; b->j = 5;
7904   }
7905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7906     const int foo = 10;
7907     if (!foo) return 0;
7908   }
7909   return !x[0] && !zero.x;
7910 #endif
7911
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923   (eval "$ac_compile") 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } &&
7930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931   { (case "(($ac_try" in
7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933   *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936   (eval "$ac_try") 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_try") 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_c_const=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955         ac_cv_c_const=no
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7962 if test $ac_cv_c_const = no; then
7963
7964 cat >>confdefs.h <<\_ACEOF
7965 #define const
7966 _ACEOF
7967
7968 fi
7969
7970
7971
7972
7973
7974
7975 ac_header_dirent=no
7976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7977   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <sys/types.h>
7990 #include <$ac_hdr>
7991
7992 int
7993 main ()
7994 {
7995 if ((DIR *) 0)
7996 return 0;
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005   *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008   (eval "$ac_compile") 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8016   { (case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_try") 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; } &&
8025          { ac_try='test -s conftest.$ac_objext'
8026   { (case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031   (eval "$ac_try") 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   eval "$as_ac_Header=yes"
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040         eval "$as_ac_Header=no"
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 ac_res=`eval echo '${'$as_ac_Header'}'`
8046                { echo "$as_me:$LINENO: result: $ac_res" >&5
8047 echo "${ECHO_T}$ac_res" >&6; }
8048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8049   cat >>confdefs.h <<_ACEOF
8050 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8051 _ACEOF
8052
8053 ac_header_dirent=$ac_hdr; break
8054 fi
8055
8056 done
8057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8058 if test $ac_header_dirent = dirent.h; then
8059   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061 if test "${ac_cv_search_opendir+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   ac_func_search_save_LIBS=$LIBS
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071
8072 /* Override any GCC internal prototype to avoid an error.
8073    Use char because int might match the return type of a GCC
8074    builtin and then its argument prototype would still apply.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 char opendir ();
8079 int
8080 main ()
8081 {
8082 return opendir ();
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 for ac_lib in '' dir; do
8088   if test -z "$ac_lib"; then
8089     ac_res="none required"
8090   else
8091     ac_res=-l$ac_lib
8092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8093   fi
8094   rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8096 case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_link") 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_try") 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_search_opendir=$ac_res
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
8134 fi
8135
8136 rm -f core conftest.err conftest.$ac_objext \
8137       conftest$ac_exeext
8138   if test "${ac_cv_search_opendir+set}" = set; then
8139   break
8140 fi
8141 done
8142 if test "${ac_cv_search_opendir+set}" = set; then
8143   :
8144 else
8145   ac_cv_search_opendir=no
8146 fi
8147 rm conftest.$ac_ext
8148 LIBS=$ac_func_search_save_LIBS
8149 fi
8150 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8151 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8152 ac_res=$ac_cv_search_opendir
8153 if test "$ac_res" != no; then
8154   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8155
8156 fi
8157
8158 else
8159   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8160 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8161 if test "${ac_cv_search_opendir+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_func_search_save_LIBS=$LIBS
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 /* Override any GCC internal prototype to avoid an error.
8173    Use char because int might match the return type of a GCC
8174    builtin and then its argument prototype would still apply.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 char opendir ();
8179 int
8180 main ()
8181 {
8182 return opendir ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 for ac_lib in '' x; do
8188   if test -z "$ac_lib"; then
8189     ac_res="none required"
8190   else
8191     ac_res=-l$ac_lib
8192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8193   fi
8194   rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_link") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_search_opendir=$ac_res
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext \
8237       conftest$ac_exeext
8238   if test "${ac_cv_search_opendir+set}" = set; then
8239   break
8240 fi
8241 done
8242 if test "${ac_cv_search_opendir+set}" = set; then
8243   :
8244 else
8245   ac_cv_search_opendir=no
8246 fi
8247 rm conftest.$ac_ext
8248 LIBS=$ac_func_search_save_LIBS
8249 fi
8250 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8251 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8252 ac_res=$ac_cv_search_opendir
8253 if test "$ac_res" != no; then
8254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8255
8256 fi
8257
8258 fi
8259
8260
8261 for ac_header in dlfcn.h
8262 do
8263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 fi
8270 ac_res=`eval echo '${'$as_ac_Header'}'`
8271                { echo "$as_me:$LINENO: result: $ac_res" >&5
8272 echo "${ECHO_T}$ac_res" >&6; }
8273 else
8274   # Is the header compilable?
8275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 $ac_includes_default
8284 #include <$ac_header>
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290   *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293   (eval "$ac_compile") 2>conftest.er1
8294   ac_status=$?
8295   grep -v '^ *+' conftest.er1 >conftest.err
8296   rm -f conftest.er1
8297   cat conftest.err >&5
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } &&
8300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301   { (case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_try") 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; } &&
8310          { ac_try='test -s conftest.$ac_objext'
8311   { (case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_header_compiler=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325         ac_header_compiler=no
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330 echo "${ECHO_T}$ac_header_compiler" >&6; }
8331
8332 # Is the header present?
8333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 #include <$ac_header>
8342 _ACEOF
8343 if { (ac_try="$ac_cpp conftest.$ac_ext"
8344 case "(($ac_try" in
8345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346   *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } >/dev/null; then
8356   if test -s conftest.err; then
8357     ac_cpp_err=$ac_c_preproc_warn_flag
8358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8359   else
8360     ac_cpp_err=
8361   fi
8362 else
8363   ac_cpp_err=yes
8364 fi
8365 if test -z "$ac_cpp_err"; then
8366   ac_header_preproc=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371   ac_header_preproc=no
8372 fi
8373
8374 rm -f conftest.err conftest.$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376 echo "${ECHO_T}$ac_header_preproc" >&6; }
8377
8378 # So?  What about this header?
8379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8380   yes:no: )
8381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8385     ac_header_preproc=yes
8386     ;;
8387   no:yes:* )
8388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8400     ( cat <<\_ASBOX
8401 ## ------------------------------------ ##
8402 ## Report this to http://llvm.org/bugs/ ##
8403 ## ------------------------------------ ##
8404 _ASBOX
8405      ) | sed "s/^/$as_me: WARNING:     /" >&2
8406     ;;
8407 esac
8408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   eval "$as_ac_Header=\$ac_header_preproc"
8414 fi
8415 ac_res=`eval echo '${'$as_ac_Header'}'`
8416                { echo "$as_me:$LINENO: result: $ac_res" >&5
8417 echo "${ECHO_T}$ac_res" >&6; }
8418
8419 fi
8420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421   cat >>confdefs.h <<_ACEOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 _ACEOF
8424
8425 fi
8426
8427 done
8428
8429 # Check whether --enable-ltdl-install was given.
8430 if test "${enable_ltdl_install+set}" = set; then
8431   enableval=$enable_ltdl_install;
8432 fi
8433
8434
8435
8436
8437 if test x"${enable_ltdl_install-no}" != xno; then
8438   INSTALL_LTDL_TRUE=
8439   INSTALL_LTDL_FALSE='#'
8440 else
8441   INSTALL_LTDL_TRUE='#'
8442   INSTALL_LTDL_FALSE=
8443 fi
8444
8445
8446
8447 if test x"${enable_ltdl_convenience-no}" != xno; then
8448   CONVENIENCE_LTDL_TRUE=
8449   CONVENIENCE_LTDL_FALSE='#'
8450 else
8451   CONVENIENCE_LTDL_TRUE='#'
8452   CONVENIENCE_LTDL_FALSE=
8453 fi
8454
8455
8456 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8458 library_names_spec=
8459 libname_spec='lib$name'
8460 soname_spec=
8461 shrext_cmds=".so"
8462 postinstall_cmds=
8463 postuninstall_cmds=
8464 finish_cmds=
8465 finish_eval=
8466 shlibpath_var=
8467 shlibpath_overrides_runpath=unknown
8468 version_type=none
8469 dynamic_linker="$host_os ld.so"
8470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471 if test "$GCC" = yes; then
8472   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8474     # if the path contains ";" then we assume it to be the separator
8475     # otherwise default to the standard path separator (i.e. ":") - it is
8476     # assumed that no part of a normal pathname contains ";" but that should
8477     # okay in the real world where ";" in dirpaths is itself problematic.
8478     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8479   else
8480     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8481   fi
8482 else
8483   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8484 fi
8485 need_lib_prefix=unknown
8486 hardcode_into_libs=no
8487
8488 # when you set need_version to no, make sure it does not cause -set_version
8489 # flags to be left without arguments
8490 need_version=unknown
8491
8492 case $host_os in
8493 aix3*)
8494   version_type=linux
8495   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496   shlibpath_var=LIBPATH
8497
8498   # AIX 3 has no versioning support, so we append a major version to the name.
8499   soname_spec='${libname}${release}${shared_ext}$major'
8500   ;;
8501
8502 aix4* | aix5*)
8503   version_type=linux
8504   need_lib_prefix=no
8505   need_version=no
8506   hardcode_into_libs=yes
8507   if test "$host_cpu" = ia64; then
8508     # AIX 5 supports IA64
8509     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510     shlibpath_var=LD_LIBRARY_PATH
8511   else
8512     # With GCC up to 2.95.x, collect2 would create an import file
8513     # for dependence libraries.  The import file would start with
8514     # the line `#! .'.  This would cause the generated library to
8515     # depend on `.', always an invalid library.  This was fixed in
8516     # development snapshots of GCC prior to 3.0.
8517     case $host_os in
8518       aix4 | aix4.[01] | aix4.[01].*)
8519       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8520            echo ' yes '
8521            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8522         :
8523       else
8524         can_build_shared=no
8525       fi
8526       ;;
8527     esac
8528     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529     # soname into executable. Probably we can add versioning support to
8530     # collect2, so additional links can be useful in future.
8531     if test "$aix_use_runtimelinking" = yes; then
8532       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533       # instead of lib<name>.a to let people know that these are not
8534       # typical AIX shared libraries.
8535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536     else
8537       # We preserve .a as extension for shared libraries through AIX4.2
8538       # and later when we are not doing run time linking.
8539       library_names_spec='${libname}${release}.a $libname.a'
8540       soname_spec='${libname}${release}${shared_ext}$major'
8541     fi
8542     shlibpath_var=LIBPATH
8543   fi
8544   ;;
8545
8546 amigaos*)
8547   library_names_spec='$libname.ixlibrary $libname.a'
8548   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8549   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'
8550   ;;
8551
8552 beos*)
8553   library_names_spec='${libname}${shared_ext}'
8554   dynamic_linker="$host_os ld.so"
8555   shlibpath_var=LIBRARY_PATH
8556   ;;
8557
8558 bsdi[45]*)
8559   version_type=linux
8560   need_version=no
8561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562   soname_spec='${libname}${release}${shared_ext}$major'
8563   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8564   shlibpath_var=LD_LIBRARY_PATH
8565   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8566   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8567   # the default ld.so.conf also contains /usr/contrib/lib and
8568   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8569   # libtool to hard-code these into programs
8570   ;;
8571
8572 cygwin* | mingw* | pw32*)
8573   version_type=windows
8574   shrext_cmds=".dll"
8575   need_version=no
8576   need_lib_prefix=no
8577
8578   case $GCC,$host_os in
8579   yes,cygwin* | yes,mingw* | yes,pw32*)
8580     library_names_spec='$libname.dll.a'
8581     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8582     postinstall_cmds='base_file=`basename \${file}`~
8583       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8584       dldir=$destdir/`dirname \$dlpath`~
8585       test -d \$dldir || mkdir -p \$dldir~
8586       $install_prog $dir/$dlname \$dldir/$dlname~
8587       chmod a+x \$dldir/$dlname'
8588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8589       dlpath=$dir/\$dldll~
8590        $rm \$dlpath'
8591     shlibpath_overrides_runpath=yes
8592
8593     case $host_os in
8594     cygwin*)
8595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8598       ;;
8599     mingw*)
8600       # MinGW DLLs use traditional 'lib' prefix
8601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8603       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8604         # It is most probably a Windows format PATH printed by
8605         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8606         # path with ; separators, and with drive letters. We can handle the
8607         # drive letters (cygwin fileutils understands them), so leave them,
8608         # especially as we might pass files found there to a mingw objdump,
8609         # which wouldn't understand a cygwinified path. Ahh.
8610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611       else
8612         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8613       fi
8614       ;;
8615     pw32*)
8616       # pw32 DLLs use 'pw' prefix rather than 'lib'
8617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8618       ;;
8619     esac
8620     ;;
8621
8622   *)
8623     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8624     ;;
8625   esac
8626   dynamic_linker='Win32 ld.exe'
8627   # FIXME: first we should search . and the directory the executable is in
8628   shlibpath_var=PATH
8629   ;;
8630
8631 darwin* | rhapsody*)
8632   dynamic_linker="$host_os dyld"
8633   version_type=darwin
8634   need_lib_prefix=no
8635   need_version=no
8636   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8637   soname_spec='${libname}${release}${major}$shared_ext'
8638   shlibpath_overrides_runpath=yes
8639   shlibpath_var=DYLD_LIBRARY_PATH
8640   shrext_cmds='.dylib'
8641   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8642   if test "$GCC" = yes; then
8643     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"`
8644   else
8645     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8646   fi
8647   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8648   ;;
8649
8650 dgux*)
8651   version_type=linux
8652   need_lib_prefix=no
8653   need_version=no
8654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8655   soname_spec='${libname}${release}${shared_ext}$major'
8656   shlibpath_var=LD_LIBRARY_PATH
8657   ;;
8658
8659 freebsd1.*)
8660   dynamic_linker=no
8661   ;;
8662
8663 kfreebsd*-gnu)
8664   version_type=linux
8665   need_lib_prefix=no
8666   need_version=no
8667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8668   soname_spec='${libname}${release}${shared_ext}$major'
8669   shlibpath_var=LD_LIBRARY_PATH
8670   shlibpath_overrides_runpath=no
8671   hardcode_into_libs=yes
8672   dynamic_linker='GNU ld.so'
8673   ;;
8674
8675 freebsd* | dragonfly*)
8676   # DragonFly does not have aout.  When/if they implement a new
8677   # versioning mechanism, adjust this.
8678   if test -x /usr/bin/objformat; then
8679     objformat=`/usr/bin/objformat`
8680   else
8681     case $host_os in
8682     freebsd[123].*) objformat=aout ;;
8683     *) objformat=elf ;;
8684     esac
8685   fi
8686   version_type=freebsd-$objformat
8687   case $version_type in
8688     freebsd-elf*)
8689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8690       need_version=no
8691       need_lib_prefix=no
8692       ;;
8693     freebsd-*)
8694       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8695       need_version=yes
8696       ;;
8697   esac
8698   shlibpath_var=LD_LIBRARY_PATH
8699   case $host_os in
8700   freebsd2.*)
8701     shlibpath_overrides_runpath=yes
8702     ;;
8703   freebsd3.[01]* | freebsdelf3.[01]*)
8704     shlibpath_overrides_runpath=yes
8705     hardcode_into_libs=yes
8706     ;;
8707   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8708   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8709     shlibpath_overrides_runpath=no
8710     hardcode_into_libs=yes
8711     ;;
8712   freebsd*) # from 4.6 on
8713     shlibpath_overrides_runpath=yes
8714     hardcode_into_libs=yes
8715     ;;
8716   esac
8717   ;;
8718
8719 gnu*)
8720   version_type=linux
8721   need_lib_prefix=no
8722   need_version=no
8723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8724   soname_spec='${libname}${release}${shared_ext}$major'
8725   shlibpath_var=LD_LIBRARY_PATH
8726   hardcode_into_libs=yes
8727   ;;
8728
8729 hpux9* | hpux10* | hpux11*)
8730   # Give a soname corresponding to the major version so that dld.sl refuses to
8731   # link against other versions.
8732   version_type=sunos
8733   need_lib_prefix=no
8734   need_version=no
8735   case $host_cpu in
8736   ia64*)
8737     shrext_cmds='.so'
8738     hardcode_into_libs=yes
8739     dynamic_linker="$host_os dld.so"
8740     shlibpath_var=LD_LIBRARY_PATH
8741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743     soname_spec='${libname}${release}${shared_ext}$major'
8744     if test "X$HPUX_IA64_MODE" = X32; then
8745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8746     else
8747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8748     fi
8749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8750     ;;
8751    hppa*64*)
8752      shrext_cmds='.sl'
8753      hardcode_into_libs=yes
8754      dynamic_linker="$host_os dld.sl"
8755      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8756      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758      soname_spec='${libname}${release}${shared_ext}$major'
8759      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8760      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8761      ;;
8762    *)
8763     shrext_cmds='.sl'
8764     dynamic_linker="$host_os dld.sl"
8765     shlibpath_var=SHLIB_PATH
8766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768     soname_spec='${libname}${release}${shared_ext}$major'
8769     ;;
8770   esac
8771   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8772   postinstall_cmds='chmod 555 $lib'
8773   ;;
8774
8775 interix3*)
8776   version_type=linux
8777   need_lib_prefix=no
8778   need_version=no
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780   soname_spec='${libname}${release}${shared_ext}$major'
8781   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8782   shlibpath_var=LD_LIBRARY_PATH
8783   shlibpath_overrides_runpath=no
8784   hardcode_into_libs=yes
8785   ;;
8786
8787 irix5* | irix6* | nonstopux*)
8788   case $host_os in
8789     nonstopux*) version_type=nonstopux ;;
8790     *)
8791         if test "$lt_cv_prog_gnu_ld" = yes; then
8792                 version_type=linux
8793         else
8794                 version_type=irix
8795         fi ;;
8796   esac
8797   need_lib_prefix=no
8798   need_version=no
8799   soname_spec='${libname}${release}${shared_ext}$major'
8800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8801   case $host_os in
8802   irix5* | nonstopux*)
8803     libsuff= shlibsuff=
8804     ;;
8805   *)
8806     case $LD in # libtool.m4 will add one of these switches to LD
8807     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8808       libsuff= shlibsuff= libmagic=32-bit;;
8809     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8810       libsuff=32 shlibsuff=N32 libmagic=N32;;
8811     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8812       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8813     *) libsuff= shlibsuff= libmagic=never-match;;
8814     esac
8815     ;;
8816   esac
8817   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8818   shlibpath_overrides_runpath=no
8819   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8820   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8821   hardcode_into_libs=yes
8822   ;;
8823
8824 # No shared lib support for Linux oldld, aout, or coff.
8825 linux*oldld* | linux*aout* | linux*coff*)
8826   dynamic_linker=no
8827   ;;
8828
8829 # This must be Linux ELF.
8830 linux*)
8831   version_type=linux
8832   need_lib_prefix=no
8833   need_version=no
8834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835   soname_spec='${libname}${release}${shared_ext}$major'
8836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8837   shlibpath_var=LD_LIBRARY_PATH
8838   shlibpath_overrides_runpath=no
8839   # This implies no fast_install, which is unacceptable.
8840   # Some rework will be needed to allow for fast_install
8841   # before this can be enabled.
8842   hardcode_into_libs=yes
8843
8844   # Append ld.so.conf contents to the search path
8845   if test -f /etc/ld.so.conf; then
8846     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' ' '`
8847     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8848   fi
8849
8850   # We used to test for /lib/ld.so.1 and disable shared libraries on
8851   # powerpc, because MkLinux only supported shared libraries with the
8852   # GNU dynamic linker.  Since this was broken with cross compilers,
8853   # most powerpc-linux boxes support dynamic linking these days and
8854   # people can always --disable-shared, the test was removed, and we
8855   # assume the GNU/Linux dynamic linker is in use.
8856   dynamic_linker='GNU/Linux ld.so'
8857   ;;
8858
8859 knetbsd*-gnu)
8860   version_type=linux
8861   need_lib_prefix=no
8862   need_version=no
8863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8864   soname_spec='${libname}${release}${shared_ext}$major'
8865   shlibpath_var=LD_LIBRARY_PATH
8866   shlibpath_overrides_runpath=no
8867   hardcode_into_libs=yes
8868   dynamic_linker='GNU ld.so'
8869   ;;
8870
8871 netbsd*)
8872   version_type=sunos
8873   need_lib_prefix=no
8874   need_version=no
8875   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8877     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8878     dynamic_linker='NetBSD (a.out) ld.so'
8879   else
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     dynamic_linker='NetBSD ld.elf_so'
8883   fi
8884   shlibpath_var=LD_LIBRARY_PATH
8885   shlibpath_overrides_runpath=yes
8886   hardcode_into_libs=yes
8887   ;;
8888
8889 newsos6)
8890   version_type=linux
8891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892   shlibpath_var=LD_LIBRARY_PATH
8893   shlibpath_overrides_runpath=yes
8894   ;;
8895
8896 nto-qnx*)
8897   version_type=linux
8898   need_lib_prefix=no
8899   need_version=no
8900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   shlibpath_var=LD_LIBRARY_PATH
8903   shlibpath_overrides_runpath=yes
8904   ;;
8905
8906 openbsd*)
8907   version_type=sunos
8908   sys_lib_dlsearch_path_spec="/usr/lib"
8909   need_lib_prefix=no
8910   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8911   case $host_os in
8912     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8913     *)                         need_version=no  ;;
8914   esac
8915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917   shlibpath_var=LD_LIBRARY_PATH
8918   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8919     case $host_os in
8920       openbsd2.[89] | openbsd2.[89].*)
8921         shlibpath_overrides_runpath=no
8922         ;;
8923       *)
8924         shlibpath_overrides_runpath=yes
8925         ;;
8926       esac
8927   else
8928     shlibpath_overrides_runpath=yes
8929   fi
8930   ;;
8931
8932 os2*)
8933   libname_spec='$name'
8934   shrext_cmds=".dll"
8935   need_lib_prefix=no
8936   library_names_spec='$libname${shared_ext} $libname.a'
8937   dynamic_linker='OS/2 ld.exe'
8938   shlibpath_var=LIBPATH
8939   ;;
8940
8941 osf3* | osf4* | osf5*)
8942   version_type=osf
8943   need_lib_prefix=no
8944   need_version=no
8945   soname_spec='${libname}${release}${shared_ext}$major'
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8949   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8950   ;;
8951
8952 solaris*)
8953   version_type=linux
8954   need_lib_prefix=no
8955   need_version=no
8956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957   soname_spec='${libname}${release}${shared_ext}$major'
8958   shlibpath_var=LD_LIBRARY_PATH
8959   shlibpath_overrides_runpath=yes
8960   hardcode_into_libs=yes
8961   # ldd complains unless libraries are executable
8962   postinstall_cmds='chmod +x $lib'
8963   ;;
8964
8965 sunos4*)
8966   version_type=sunos
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8968   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=yes
8971   if test "$with_gnu_ld" = yes; then
8972     need_lib_prefix=no
8973   fi
8974   need_version=yes
8975   ;;
8976
8977 sysv4 | sysv4.3*)
8978   version_type=linux
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   case $host_vendor in
8983     sni)
8984       shlibpath_overrides_runpath=no
8985       need_lib_prefix=no
8986       export_dynamic_flag_spec='${wl}-Blargedynsym'
8987       runpath_var=LD_RUN_PATH
8988       ;;
8989     siemens)
8990       need_lib_prefix=no
8991       ;;
8992     motorola)
8993       need_lib_prefix=no
8994       need_version=no
8995       shlibpath_overrides_runpath=no
8996       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8997       ;;
8998   esac
8999   ;;
9000
9001 sysv4*MP*)
9002   if test -d /usr/nec ;then
9003     version_type=linux
9004     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9005     soname_spec='$libname${shared_ext}.$major'
9006     shlibpath_var=LD_LIBRARY_PATH
9007   fi
9008   ;;
9009
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9011   version_type=freebsd-elf
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   hardcode_into_libs=yes
9018   if test "$with_gnu_ld" = yes; then
9019     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9020     shlibpath_overrides_runpath=no
9021   else
9022     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9023     shlibpath_overrides_runpath=yes
9024     case $host_os in
9025       sco3.2v5*)
9026         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9027         ;;
9028     esac
9029   fi
9030   sys_lib_dlsearch_path_spec='/usr/lib'
9031   ;;
9032
9033 uts4*)
9034   version_type=linux
9035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036   soname_spec='${libname}${release}${shared_ext}$major'
9037   shlibpath_var=LD_LIBRARY_PATH
9038   ;;
9039
9040 *)
9041   dynamic_linker=no
9042   ;;
9043 esac
9044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9045 echo "${ECHO_T}$dynamic_linker" >&6; }
9046 test "$dynamic_linker" = no && can_build_shared=no
9047
9048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9049 if test "$GCC" = yes; then
9050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9051 fi
9052
9053
9054 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9055 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9056 if test "${libltdl_cv_shlibext+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059
9060 module=yes
9061 eval libltdl_cv_shlibext=$shrext_cmds
9062
9063 fi
9064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9066 if test -n "$libltdl_cv_shlibext"; then
9067
9068 cat >>confdefs.h <<_ACEOF
9069 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9070 _ACEOF
9071
9072 fi
9073
9074
9075 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9076 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9077 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   libltdl_cv_shlibpath_var="$shlibpath_var"
9081 fi
9082 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9083 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9084 if test -n "$libltdl_cv_shlibpath_var"; then
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9088 _ACEOF
9089
9090 fi
9091
9092
9093 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9094 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9095 if test "${libltdl_cv_sys_search_path+set}" = set; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9099 fi
9100 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9101 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9102 if test -n "$libltdl_cv_sys_search_path"; then
9103   sys_search_path=
9104   for dir in $libltdl_cv_sys_search_path; do
9105     if test -z "$sys_search_path"; then
9106       sys_search_path="$dir"
9107     else
9108       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9109     fi
9110   done
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9114 _ACEOF
9115
9116 fi
9117
9118 { echo "$as_me:$LINENO: checking for objdir" >&5
9119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9120 if test "${libltdl_cv_objdir+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   libltdl_cv_objdir="$objdir"
9124   if test -n "$objdir"; then
9125     :
9126   else
9127     rm -f .libs 2>/dev/null
9128     mkdir .libs 2>/dev/null
9129     if test -d .libs; then
9130       libltdl_cv_objdir=.libs
9131     else
9132       # MS-DOS does not allow filenames that begin with a dot.
9133       libltdl_cv_objdir=_libs
9134     fi
9135   rmdir .libs 2>/dev/null
9136   fi
9137
9138 fi
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9140 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9144 _ACEOF
9145
9146
9147
9148
9149
9150
9151 # Check for command to grab the raw symbol name followed by C symbol from nm.
9152 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9153 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157
9158 # These are sane defaults that work on at least a few old systems.
9159 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9160
9161 # Character class describing NM global symbol codes.
9162 symcode='[BCDEGRST]'
9163
9164 # Regexp to match symbols that can be accessed directly from C.
9165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9166
9167 # Transform an extracted symbol line into a proper C declaration
9168 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9169
9170 # Transform an extracted symbol line into symbol name and symbol address
9171 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'"
9172
9173 # Define system-specific variables.
9174 case $host_os in
9175 aix*)
9176   symcode='[BCDT]'
9177   ;;
9178 cygwin* | mingw* | pw32*)
9179   symcode='[ABCDGISTW]'
9180   ;;
9181 hpux*) # Its linker distinguishes data from code symbols
9182   if test "$host_cpu" = ia64; then
9183     symcode='[ABCDEGRST]'
9184   fi
9185   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9186   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'"
9187   ;;
9188 linux*)
9189   if test "$host_cpu" = ia64; then
9190     symcode='[ABCDGIRSTW]'
9191     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9192     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'"
9193   fi
9194   ;;
9195 irix* | nonstopux*)
9196   symcode='[BCDEGRST]'
9197   ;;
9198 osf*)
9199   symcode='[BCDEGQRST]'
9200   ;;
9201 solaris*)
9202   symcode='[BDRT]'
9203   ;;
9204 sco3.2v5*)
9205   symcode='[DT]'
9206   ;;
9207 sysv4.2uw2*)
9208   symcode='[DT]'
9209   ;;
9210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9211   symcode='[ABDT]'
9212   ;;
9213 sysv4)
9214   symcode='[DFNSTU]'
9215   ;;
9216 esac
9217
9218 # Handle CRLF in mingw tool chain
9219 opt_cr=
9220 case $build_os in
9221 mingw*)
9222   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9223   ;;
9224 esac
9225
9226 # If we're using GNU nm, then use its standard symbol codes.
9227 case `$NM -V 2>&1` in
9228 *GNU* | *'with BFD'*)
9229   symcode='[ABCDGIRSTW]' ;;
9230 esac
9231
9232 # Try without a prefix undercore, then with it.
9233 for ac_symprfx in "" "_"; do
9234
9235   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236   symxfrm="\\1 $ac_symprfx\\2 \\2"
9237
9238   # Write the raw and C identifiers.
9239   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9240
9241   # Check to see that the pipe works correctly.
9242   pipe_works=no
9243
9244   rm -f conftest*
9245   cat > conftest.$ac_ext <<EOF
9246 #ifdef __cplusplus
9247 extern "C" {
9248 #endif
9249 char nm_test_var;
9250 void nm_test_func(){}
9251 #ifdef __cplusplus
9252 }
9253 #endif
9254 int main(){nm_test_var='a';nm_test_func();return(0);}
9255 EOF
9256
9257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258   (eval $ac_compile) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; then
9262     # Now try to grab the symbols.
9263     nlist=conftest.nm
9264     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9265   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } && test -s "$nlist"; then
9269       # Try sorting and uniquifying the output.
9270       if sort "$nlist" | uniq > "$nlist"T; then
9271         mv -f "$nlist"T "$nlist"
9272       else
9273         rm -f "$nlist"T
9274       fi
9275
9276       # Make sure that we snagged all the symbols we need.
9277       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9278         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9279           cat <<EOF > conftest.$ac_ext
9280 #ifdef __cplusplus
9281 extern "C" {
9282 #endif
9283
9284 EOF
9285           # Now generate the symbol file.
9286           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9287
9288           cat <<EOF >> conftest.$ac_ext
9289 #if defined (__STDC__) && __STDC__
9290 # define lt_ptr_t void *
9291 #else
9292 # define lt_ptr_t char *
9293 # define const
9294 #endif
9295
9296 /* The mapping between symbol names and symbols. */
9297 const struct {
9298   const char *name;
9299   lt_ptr_t address;
9300 }
9301 lt_preloaded_symbols[] =
9302 {
9303 EOF
9304           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9305           cat <<\EOF >> conftest.$ac_ext
9306   {0, (lt_ptr_t) 0}
9307 };
9308
9309 #ifdef __cplusplus
9310 }
9311 #endif
9312 EOF
9313           # Now try linking the two files.
9314           mv conftest.$ac_objext conftstm.$ac_objext
9315           lt_save_LIBS="$LIBS"
9316           lt_save_CFLAGS="$CFLAGS"
9317           LIBS="conftstm.$ac_objext"
9318           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9319           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9324             pipe_works=yes
9325           fi
9326           LIBS="$lt_save_LIBS"
9327           CFLAGS="$lt_save_CFLAGS"
9328         else
9329           echo "cannot find nm_test_func in $nlist" >&5
9330         fi
9331       else
9332         echo "cannot find nm_test_var in $nlist" >&5
9333       fi
9334     else
9335       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9336     fi
9337   else
9338     echo "$progname: failed program was:" >&5
9339     cat conftest.$ac_ext >&5
9340   fi
9341   rm -f conftest* conftst*
9342
9343   # Do not use the global_symbol_pipe unless it works.
9344   if test "$pipe_works" = yes; then
9345     break
9346   else
9347     lt_cv_sys_global_symbol_pipe=
9348   fi
9349 done
9350
9351 fi
9352
9353 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9354   lt_cv_sys_global_symbol_to_cdecl=
9355 fi
9356 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9357   { echo "$as_me:$LINENO: result: failed" >&5
9358 echo "${ECHO_T}failed" >&6; }
9359 else
9360   { echo "$as_me:$LINENO: result: ok" >&5
9361 echo "${ECHO_T}ok" >&6; }
9362 fi
9363
9364
9365 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9366 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9371     libltdl_cv_preloaded_symbols=yes
9372   else
9373     libltdl_cv_preloaded_symbols=no
9374   fi
9375
9376 fi
9377 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9378 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9379 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_PRELOADED_SYMBOLS 1
9383 _ACEOF
9384
9385 fi
9386
9387 LIBADD_DL=
9388
9389 ac_ext=c
9390 ac_cpp='$CPP $CPPFLAGS'
9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9394
9395
9396 { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9409 #define shl_load innocuous_shl_load
9410
9411 /* System header to define __stub macros and hopefully few prototypes,
9412     which can conflict with char shl_load (); below.
9413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414     <limits.h> exists even on freestanding compilers.  */
9415
9416 #ifdef __STDC__
9417 # include <limits.h>
9418 #else
9419 # include <assert.h>
9420 #endif
9421
9422 #undef shl_load
9423
9424 /* Override any GCC internal prototype to avoid an error.
9425    Use char because int might match the return type of a GCC
9426    builtin and then its argument prototype would still apply.  */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char shl_load ();
9431 /* The GNU C library defines this for functions which it implements
9432     to always fail with ENOSYS.  Some functions are actually named
9433     something starting with __ and the normal name is an alias.  */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9435 choke me
9436 #endif
9437
9438 int
9439 main ()
9440 {
9441 return shl_load ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461   { (case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_try") 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_try") 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_func_shl_load=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485         ac_cv_func_shl_load=no
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext \
9489       conftest$ac_exeext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493 if test $ac_cv_func_shl_load = yes; then
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_SHL_LOAD 1
9497 _ACEOF
9498
9499 else
9500   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9501 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9502 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-ldld  $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515    Use char because int might match the return type of a GCC
9516    builtin and then its argument prototype would still apply.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char shl_load ();
9521 int
9522 main ()
9523 {
9524 return shl_load ();
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_link") 2>conftest.er1
9537   ac_status=$?
9538   grep -v '^ *+' conftest.er1 >conftest.err
9539   rm -f conftest.er1
9540   cat conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544   { (case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; } &&
9553          { ac_try='test -s conftest$ac_exeext'
9554   { (case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_try") 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_lib_dld_shl_load=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568         ac_cv_lib_dld_shl_load=no
9569 fi
9570
9571 rm -f core conftest.err conftest.$ac_objext \
9572       conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9574 fi
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9581 _ACEOF
9582
9583         LIBADD_DL="$LIBADD_DL -ldld"
9584 else
9585   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-ldl  $LIBS"
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
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char dlopen ();
9606 int
9607 main ()
9608 {
9609 return dlopen ();
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_link") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629   { (case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634   (eval "$ac_try") 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   ac_cv_lib_dl_dlopen=yes
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653         ac_cv_lib_dl_dlopen=no
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext \
9657       conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662 if test $ac_cv_lib_dl_dlopen = yes; then
9663
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_LIBDL 1
9666 _ACEOF
9667
9668                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9669 else
9670   cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676 #if HAVE_DLFCN_H
9677 #  include <dlfcn.h>
9678 #endif
9679
9680 int
9681 main ()
9682 {
9683 dlopen(0, 0);
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_link") 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703   { (case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_try") 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; } &&
9712          { ac_try='test -s conftest$ac_exeext'
9713   { (case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_try") 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_LIBDL 1
9725 _ACEOF
9726  libltdl_cv_func_dlopen="yes"
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9732 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9733 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   ac_check_lib_save_LIBS=$LIBS
9737 LIBS="-lsvld  $LIBS"
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h.  */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h.  */
9744
9745 /* Override any GCC internal prototype to avoid an error.
9746    Use char because int might match the return type of a GCC
9747    builtin and then its argument prototype would still apply.  */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 char dlopen ();
9752 int
9753 main ()
9754 {
9755 return dlopen ();
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_link") 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } &&
9774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775   { (case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_try") 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; } &&
9784          { ac_try='test -s conftest$ac_exeext'
9785   { (case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_try") 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_lib_svld_dlopen=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         ac_cv_lib_svld_dlopen=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext \
9803       conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9808 if test $ac_cv_lib_svld_dlopen = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9812 _ACEOF
9813
9814                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9815 else
9816   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-ldld  $LIBS"
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char dld_link ();
9837 int
9838 main ()
9839 {
9840 return dld_link ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_link") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860   { (case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865   (eval "$ac_try") 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_try") 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   ac_cv_lib_dld_dld_link=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884         ac_cv_lib_dld_dld_link=no
9885 fi
9886
9887 rm -f core conftest.err conftest.$ac_objext \
9888       conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9890 fi
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9892 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9893 if test $ac_cv_lib_dld_dld_link = yes; then
9894
9895 cat >>confdefs.h <<\_ACEOF
9896 #define HAVE_DLD 1
9897 _ACEOF
9898
9899                 LIBADD_DL="$LIBADD_DL -ldld"
9900 else
9901   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9902 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9903 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9914 #define _dyld_func_lookup innocuous__dyld_func_lookup
9915
9916 /* System header to define __stub macros and hopefully few prototypes,
9917     which can conflict with char _dyld_func_lookup (); below.
9918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919     <limits.h> exists even on freestanding compilers.  */
9920
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926
9927 #undef _dyld_func_lookup
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930    Use char because int might match the return type of a GCC
9931    builtin and then its argument prototype would still apply.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char _dyld_func_lookup ();
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9940 choke me
9941 #endif
9942
9943 int
9944 main ()
9945 {
9946 return _dyld_func_lookup ();
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_func__dyld_func_lookup=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_func__dyld_func_lookup=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 fi
9996 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9997 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9998 if test $ac_cv_func__dyld_func_lookup = yes; then
9999
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_DYLD 1
10002 _ACEOF
10003
10004 fi
10005
10006
10007 fi
10008
10009
10010 fi
10011
10012
10013 fi
10014
10015 rm -f core conftest.err conftest.$ac_objext \
10016       conftest$ac_exeext conftest.$ac_ext
10017
10018 fi
10019
10020
10021 fi
10022
10023
10024 fi
10025
10026
10027 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10028 then
10029   lt_save_LIBS="$LIBS"
10030   LIBS="$LIBS $LIBADD_DL"
10031
10032 for ac_func in dlerror
10033 do
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10048 #define $ac_func innocuous_$ac_func
10049
10050 /* System header to define __stub macros and hopefully few prototypes,
10051     which can conflict with char $ac_func (); below.
10052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053     <limits.h> exists even on freestanding compilers.  */
10054
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060
10061 #undef $ac_func
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064    Use char because int might match the return type of a GCC
10065    builtin and then its argument prototype would still apply.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071     to always fail with ENOSYS.  Some functions are actually named
10072     something starting with __ and the normal name is an alias.  */
10073 #if defined __stub_$ac_func || defined __stub___$ac_func
10074 choke me
10075 #endif
10076
10077 int
10078 main ()
10079 {
10080 return $ac_func ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_link") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; } &&
10109          { ac_try='test -s conftest$ac_exeext'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   eval "$as_ac_var=yes"
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124         eval "$as_ac_var=no"
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext \
10128       conftest$ac_exeext conftest.$ac_ext
10129 fi
10130 ac_res=`eval echo '${'$as_ac_var'}'`
10131                { echo "$as_me:$LINENO: result: $ac_res" >&5
10132 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_var'}'` = yes; then
10134   cat >>confdefs.h <<_ACEOF
10135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10136 _ACEOF
10137
10138 fi
10139 done
10140
10141   LIBS="$lt_save_LIBS"
10142 fi
10143 ac_ext=c
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10148
10149
10150
10151 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10152 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10153 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_cv_sys_symbol_underscore=no
10157   cat > conftest.$ac_ext <<EOF
10158 void nm_test_func(){}
10159 int main(){nm_test_func;return 0;}
10160 EOF
10161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162   (eval $ac_compile) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; then
10166     # Now try to grab the symbols.
10167     ac_nlist=conftest.nm
10168     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10169   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && test -s "$ac_nlist"; then
10173       # See whether the symbols have a leading underscore.
10174       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10175         ac_cv_sys_symbol_underscore=yes
10176       else
10177         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10178           :
10179         else
10180           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10181         fi
10182       fi
10183     else
10184       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10185     fi
10186   else
10187     echo "configure: failed program was:" >&5
10188     cat conftest.c >&5
10189   fi
10190   rm -rf conftest*
10191
10192 fi
10193 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10194 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10195
10196
10197 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10198   if test x"$libltdl_cv_func_dlopen" = xyes ||
10199      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10200         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10201 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_need_uscore+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   libltdl_cv_need_uscore=unknown
10206           save_LIBS="$LIBS"
10207           LIBS="$LIBS $LIBADD_DL"
10208           if test "$cross_compiling" = yes; then :
10209   libltdl_cv_need_uscore=cross
10210 else
10211   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212   lt_status=$lt_dlunknown
10213   cat > conftest.$ac_ext <<EOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10216
10217 #if HAVE_DLFCN_H
10218 #include <dlfcn.h>
10219 #endif
10220
10221 #include <stdio.h>
10222
10223 #ifdef RTLD_GLOBAL
10224 #  define LT_DLGLOBAL           RTLD_GLOBAL
10225 #else
10226 #  ifdef DL_GLOBAL
10227 #    define LT_DLGLOBAL         DL_GLOBAL
10228 #  else
10229 #    define LT_DLGLOBAL         0
10230 #  endif
10231 #endif
10232
10233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234    find out it does not work in some platform. */
10235 #ifndef LT_DLLAZY_OR_NOW
10236 #  ifdef RTLD_LAZY
10237 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10238 #  else
10239 #    ifdef DL_LAZY
10240 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10241 #    else
10242 #      ifdef RTLD_NOW
10243 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10244 #      else
10245 #        ifdef DL_NOW
10246 #          define LT_DLLAZY_OR_NOW      DL_NOW
10247 #        else
10248 #          define LT_DLLAZY_OR_NOW      0
10249 #        endif
10250 #      endif
10251 #    endif
10252 #  endif
10253 #endif
10254
10255 #ifdef __cplusplus
10256 extern "C" void exit (int);
10257 #endif
10258
10259 void fnord() { int i=42;}
10260 int main ()
10261 {
10262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263   int status = $lt_dlunknown;
10264
10265   if (self)
10266     {
10267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269       /* dlclose (self); */
10270     }
10271   else
10272     puts (dlerror ());
10273
10274     exit (status);
10275 }
10276 EOF
10277   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278   (eval $ac_link) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10282     (./conftest; exit; ) >&5 2>/dev/null
10283     lt_status=$?
10284     case x$lt_status in
10285       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10286       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10287       x$lt_dlunknown|x*)  ;;
10288     esac
10289   else :
10290     # compilation failed
10291
10292   fi
10293 fi
10294 rm -fr conftest*
10295
10296           LIBS="$save_LIBS"
10297
10298 fi
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10300 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10301   fi
10302 fi
10303
10304 if test x"$libltdl_cv_need_uscore" = xyes; then
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define NEED_USCORE 1
10308 _ACEOF
10309
10310 fi
10311
10312
10313 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10314 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   # PORTME does your system automatically load deplibs for dlopen?
10319   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10320   # For now, we just catch OSes we know something about -- in the
10321   # future, we'll try test this programmatically.
10322   libltdl_cv_sys_dlopen_deplibs=unknown
10323   case "$host_os" in
10324   aix3*|aix4.1.*|aix4.2.*)
10325     # Unknown whether this is true for these versions of AIX, but
10326     # we want this `case' here to explicitly catch those versions.
10327     libltdl_cv_sys_dlopen_deplibs=unknown
10328     ;;
10329   aix[45]*)
10330     libltdl_cv_sys_dlopen_deplibs=yes
10331     ;;
10332   darwin*)
10333     # Assuming the user has installed a libdl from somewhere, this is true
10334     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10335     libltdl_cv_sys_dlopen_deplibs=yes
10336     ;;
10337   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10338     # GNU and its variants, using gnu ld.so (Glibc)
10339     libltdl_cv_sys_dlopen_deplibs=yes
10340     ;;
10341   hpux10*|hpux11*)
10342     libltdl_cv_sys_dlopen_deplibs=yes
10343     ;;
10344   interix*)
10345     libltdl_cv_sys_dlopen_deplibs=yes
10346     ;;
10347   irix[12345]*|irix6.[01]*)
10348     # Catch all versions of IRIX before 6.2, and indicate that we don't
10349     # know how it worked for any of those versions.
10350     libltdl_cv_sys_dlopen_deplibs=unknown
10351     ;;
10352   irix*)
10353     # The case above catches anything before 6.2, and it's known that
10354     # at 6.2 and later dlopen does load deplibs.
10355     libltdl_cv_sys_dlopen_deplibs=yes
10356     ;;
10357   netbsd*)
10358     libltdl_cv_sys_dlopen_deplibs=yes
10359     ;;
10360   openbsd*)
10361     libltdl_cv_sys_dlopen_deplibs=yes
10362     ;;
10363   osf[1234]*)
10364     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10365     # it did *not* use an RPATH in a shared library to find objects the
10366     # library depends on, so we explicitly say `no'.
10367     libltdl_cv_sys_dlopen_deplibs=no
10368     ;;
10369   osf5.0|osf5.0a|osf5.1)
10370     # dlopen *does* load deplibs and with the right loader patch applied
10371     # it even uses RPATH in a shared library to search for shared objects
10372     # that the library depends on, but there's no easy way to know if that
10373     # patch is installed.  Since this is the case, all we can really
10374     # say is unknown -- it depends on the patch being installed.  If
10375     # it is, this changes to `yes'.  Without it, it would be `no'.
10376     libltdl_cv_sys_dlopen_deplibs=unknown
10377     ;;
10378   osf*)
10379     # the two cases above should catch all versions of osf <= 5.1.  Read
10380     # the comments above for what we know about them.
10381     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10382     # is used to find them so we can finally say `yes'.
10383     libltdl_cv_sys_dlopen_deplibs=yes
10384     ;;
10385   solaris*)
10386     libltdl_cv_sys_dlopen_deplibs=yes
10387     ;;
10388   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389     libltdl_cv_sys_dlopen_deplibs=yes
10390     ;;
10391   esac
10392
10393 fi
10394 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10395 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10396 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10397
10398 cat >>confdefs.h <<\_ACEOF
10399 #define LTDL_DLOPEN_DEPLIBS 1
10400 _ACEOF
10401
10402 fi
10403
10404
10405 for ac_header in argz.h
10406 do
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 fi
10414 ac_res=`eval echo '${'$as_ac_Header'}'`
10415                { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 else
10418   # Is the header compilable?
10419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h.  */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h.  */
10427 $ac_includes_default
10428 #include <$ac_header>
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_compile") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest.$ac_objext'
10455   { (case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_try") 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_header_compiler=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_header_compiler=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474 echo "${ECHO_T}$ac_header_compiler" >&6; }
10475
10476 # Is the header present?
10477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 #include <$ac_header>
10486 _ACEOF
10487 if { (ac_try="$ac_cpp conftest.$ac_ext"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } >/dev/null; then
10500   if test -s conftest.err; then
10501     ac_cpp_err=$ac_c_preproc_warn_flag
10502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10503   else
10504     ac_cpp_err=
10505   fi
10506 else
10507   ac_cpp_err=yes
10508 fi
10509 if test -z "$ac_cpp_err"; then
10510   ac_header_preproc=yes
10511 else
10512   echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515   ac_header_preproc=no
10516 fi
10517
10518 rm -f conftest.err conftest.$ac_ext
10519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521
10522 # So?  What about this header?
10523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10524   yes:no: )
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529     ac_header_preproc=yes
10530     ;;
10531   no:yes:* )
10532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544     ( cat <<\_ASBOX
10545 ## ------------------------------------ ##
10546 ## Report this to http://llvm.org/bugs/ ##
10547 ## ------------------------------------ ##
10548 _ASBOX
10549      ) | sed "s/^/$as_me: WARNING:     /" >&2
10550     ;;
10551 esac
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   eval "$as_ac_Header=\$ac_header_preproc"
10558 fi
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560                { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10562
10563 fi
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565   cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 _ACEOF
10568
10569 fi
10570
10571 done
10572
10573
10574 { echo "$as_me:$LINENO: checking for error_t" >&5
10575 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10576 if test "${ac_cv_type_error_t+set}" = set; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #if HAVE_ARGZ_H
10586 #  include <argz.h>
10587 #endif
10588
10589 typedef error_t ac__type_new_;
10590 int
10591 main ()
10592 {
10593 if ((ac__type_new_ *) 0)
10594   return 0;
10595 if (sizeof (ac__type_new_))
10596   return 0;
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_compile") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616   { (case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_try") 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_type_error_t=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_cv_type_error_t=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 fi
10645 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10646 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10647 if test $ac_cv_type_error_t = yes; then
10648
10649 cat >>confdefs.h <<_ACEOF
10650 #define HAVE_ERROR_T 1
10651 _ACEOF
10652
10653
10654 else
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define error_t int
10658 _ACEOF
10659
10660 fi
10661
10662
10663
10664
10665
10666
10667
10668 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10669 do
10670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10684 #define $ac_func innocuous_$ac_func
10685
10686 /* System header to define __stub macros and hopefully few prototypes,
10687     which can conflict with char $ac_func (); below.
10688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689     <limits.h> exists even on freestanding compilers.  */
10690
10691 #ifdef __STDC__
10692 # include <limits.h>
10693 #else
10694 # include <assert.h>
10695 #endif
10696
10697 #undef $ac_func
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700    Use char because int might match the return type of a GCC
10701    builtin and then its argument prototype would still apply.  */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char $ac_func ();
10706 /* The GNU C library defines this for functions which it implements
10707     to always fail with ENOSYS.  Some functions are actually named
10708     something starting with __ and the normal name is an alias.  */
10709 #if defined __stub_$ac_func || defined __stub___$ac_func
10710 choke me
10711 #endif
10712
10713 int
10714 main ()
10715 {
10716 return $ac_func ();
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_link") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_try") 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; } &&
10745          { ac_try='test -s conftest$ac_exeext'
10746   { (case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_try") 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); }; }; then
10755   eval "$as_ac_var=yes"
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         eval "$as_ac_var=no"
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext \
10764       conftest$ac_exeext conftest.$ac_ext
10765 fi
10766 ac_res=`eval echo '${'$as_ac_var'}'`
10767                { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_var'}'` = yes; then
10770   cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10772 _ACEOF
10773
10774 fi
10775 done
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10805                   stdio.h unistd.h
10806 do
10807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 fi
10814 ac_res=`eval echo '${'$as_ac_Header'}'`
10815                { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10817 else
10818   # Is the header compilable?
10819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h.  */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h.  */
10827 $ac_includes_default
10828 #include <$ac_header>
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_compile") 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845   { (case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_try") 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; } &&
10854          { ac_try='test -s conftest.$ac_objext'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_header_compiler=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869         ac_header_compiler=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10875
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <$ac_header>
10886 _ACEOF
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890   *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } >/dev/null; then
10900   if test -s conftest.err; then
10901     ac_cpp_err=$ac_c_preproc_warn_flag
10902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10903   else
10904     ac_cpp_err=
10905   fi
10906 else
10907   ac_cpp_err=yes
10908 fi
10909 if test -z "$ac_cpp_err"; then
10910   ac_header_preproc=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915   ac_header_preproc=no
10916 fi
10917
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10921
10922 # So?  What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924   yes:no: )
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929     ac_header_preproc=yes
10930     ;;
10931   no:yes:* )
10932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944     ( cat <<\_ASBOX
10945 ## ------------------------------------ ##
10946 ## Report this to http://llvm.org/bugs/ ##
10947 ## ------------------------------------ ##
10948 _ASBOX
10949      ) | sed "s/^/$as_me: WARNING:     /" >&2
10950     ;;
10951 esac
10952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957   eval "$as_ac_Header=\$ac_header_preproc"
10958 fi
10959 ac_res=`eval echo '${'$as_ac_Header'}'`
10960                { echo "$as_me:$LINENO: result: $ac_res" >&5
10961 echo "${ECHO_T}$ac_res" >&6; }
10962
10963 fi
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970
10971 done
10972
10973
10974
10975
10976
10977 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10978 do
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984   echo $ECHO_N "(cached) $ECHO_C" >&6
10985 fi
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987                { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 else
10990   # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 $ac_includes_default
11000 #include <$ac_header>
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_compile") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } &&
11016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017   { (case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_try") 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_try") 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   ac_header_compiler=yes
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041         ac_header_compiler=no
11042 fi
11043
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11047
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 #include <$ac_header>
11058 _ACEOF
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066   ac_status=$?
11067   grep -v '^ *+' conftest.er1 >conftest.err
11068   rm -f conftest.er1
11069   cat conftest.err >&5
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } >/dev/null; then
11072   if test -s conftest.err; then
11073     ac_cpp_err=$ac_c_preproc_warn_flag
11074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075   else
11076     ac_cpp_err=
11077   fi
11078 else
11079   ac_cpp_err=yes
11080 fi
11081 if test -z "$ac_cpp_err"; then
11082   ac_header_preproc=yes
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087   ac_header_preproc=no
11088 fi
11089
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093
11094 # So?  What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096   yes:no: )
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101     ac_header_preproc=yes
11102     ;;
11103   no:yes:* )
11104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116     ( cat <<\_ASBOX
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11120 _ASBOX
11121      ) | sed "s/^/$as_me: WARNING:     /" >&2
11122     ;;
11123 esac
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129   eval "$as_ac_Header=\$ac_header_preproc"
11130 fi
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132                { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11134
11135 fi
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137   cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139 _ACEOF
11140
11141 fi
11142
11143 done
11144
11145
11146
11147 for ac_header in string.h strings.h
11148 do
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 fi
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157                { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 else
11160   # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_compile") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_try") 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_header_compiler=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211         ac_header_compiler=no
11212 fi
11213
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <$ac_header>
11228 _ACEOF
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } >/dev/null; then
11242   if test -s conftest.err; then
11243     ac_cpp_err=$ac_c_preproc_warn_flag
11244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11245   else
11246     ac_cpp_err=
11247   fi
11248 else
11249   ac_cpp_err=yes
11250 fi
11251 if test -z "$ac_cpp_err"; then
11252   ac_header_preproc=yes
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257   ac_header_preproc=no
11258 fi
11259
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11263
11264 # So?  What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266   yes:no: )
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271     ac_header_preproc=yes
11272     ;;
11273   no:yes:* )
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286     ( cat <<\_ASBOX
11287 ## ------------------------------------ ##
11288 ## Report this to http://llvm.org/bugs/ ##
11289 ## ------------------------------------ ##
11290 _ASBOX
11291      ) | sed "s/^/$as_me: WARNING:     /" >&2
11292     ;;
11293 esac
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   eval "$as_ac_Header=\$ac_header_preproc"
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304
11305 fi
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307   cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11309 _ACEOF
11310  break
11311 fi
11312
11313 done
11314
11315
11316
11317
11318 for ac_func in strchr index
11319 do
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11334 #define $ac_func innocuous_$ac_func
11335
11336 /* System header to define __stub macros and hopefully few prototypes,
11337     which can conflict with char $ac_func (); below.
11338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339     <limits.h> exists even on freestanding compilers.  */
11340
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11346
11347 #undef $ac_func
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 choke me
11361 #endif
11362
11363 int
11364 main ()
11365 {
11366 return $ac_func ();
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_link") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386   { (case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_try") 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest$ac_exeext'
11396   { (case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_try") 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   eval "$as_ac_var=yes"
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410         eval "$as_ac_var=no"
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext \
11414       conftest$ac_exeext conftest.$ac_ext
11415 fi
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417                { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422 _ACEOF
11423  break
11424 fi
11425 done
11426
11427
11428
11429 for ac_func in strrchr rindex
11430 do
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11445 #define $ac_func innocuous_$ac_func
11446
11447 /* System header to define __stub macros and hopefully few prototypes,
11448     which can conflict with char $ac_func (); below.
11449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450     <limits.h> exists even on freestanding compilers.  */
11451
11452 #ifdef __STDC__
11453 # include <limits.h>
11454 #else
11455 # include <assert.h>
11456 #endif
11457
11458 #undef $ac_func
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461    Use char because int might match the return type of a GCC
11462    builtin and then its argument prototype would still apply.  */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char $ac_func ();
11467 /* The GNU C library defines this for functions which it implements
11468     to always fail with ENOSYS.  Some functions are actually named
11469     something starting with __ and the normal name is an alias.  */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 choke me
11472 #endif
11473
11474 int
11475 main ()
11476 {
11477 return $ac_func ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_link") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } &&
11496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497   { (case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_try") 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_try") 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   eval "$as_ac_var=yes"
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521         eval "$as_ac_var=no"
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526 fi
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528                { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531   cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 _ACEOF
11534  break
11535 fi
11536 done
11537
11538
11539
11540 for ac_func in memcpy bcopy
11541 do
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11556 #define $ac_func innocuous_$ac_func
11557
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.
11560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561     <limits.h> exists even on freestanding compilers.  */
11562
11563 #ifdef __STDC__
11564 # include <limits.h>
11565 #else
11566 # include <assert.h>
11567 #endif
11568
11569 #undef $ac_func
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572    Use char because int might match the return type of a GCC
11573    builtin and then its argument prototype would still apply.  */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char $ac_func ();
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11582 choke me
11583 #endif
11584
11585 int
11586 main ()
11587 {
11588 return $ac_func ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_link") 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608   { (case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; } &&
11617          { ac_try='test -s conftest$ac_exeext'
11618   { (case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   eval "$as_ac_var=yes"
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632         eval "$as_ac_var=no"
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext \
11636       conftest$ac_exeext conftest.$ac_ext
11637 fi
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639                { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642   cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11644 _ACEOF
11645  break
11646 fi
11647 done
11648
11649
11650
11651 for ac_func in memmove strcmp
11652 do
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11667 #define $ac_func innocuous_$ac_func
11668
11669 /* System header to define __stub macros and hopefully few prototypes,
11670     which can conflict with char $ac_func (); below.
11671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672     <limits.h> exists even on freestanding compilers.  */
11673
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11679
11680 #undef $ac_func
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11695
11696 int
11697 main ()
11698 {
11699 return $ac_func ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_link") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; } &&
11728          { ac_try='test -s conftest$ac_exeext'
11729   { (case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_try") 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   eval "$as_ac_var=yes"
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743         eval "$as_ac_var=no"
11744 fi
11745
11746 rm -f core conftest.err conftest.$ac_objext \
11747       conftest$ac_exeext conftest.$ac_ext
11748 fi
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750                { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753   cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 _ACEOF
11756
11757 fi
11758 done
11759
11760
11761
11762
11763 for ac_func in closedir opendir readdir
11764 do
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11779 #define $ac_func innocuous_$ac_func
11780
11781 /* System header to define __stub macros and hopefully few prototypes,
11782     which can conflict with char $ac_func (); below.
11783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784     <limits.h> exists even on freestanding compilers.  */
11785
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791
11792 #undef $ac_func
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802     to always fail with ENOSYS.  Some functions are actually named
11803     something starting with __ and the normal name is an alias.  */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11807
11808 int
11809 main ()
11810 {
11811 return $ac_func ();
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_link") 2>conftest.er1
11824   ac_status=$?
11825   grep -v '^ *+' conftest.er1 >conftest.err
11826   rm -f conftest.er1
11827   cat conftest.err >&5
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   eval "$as_ac_var=yes"
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855         eval "$as_ac_var=no"
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext \
11859       conftest$ac_exeext conftest.$ac_ext
11860 fi
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862                { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865   cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868
11869 fi
11870 done
11871
11872
11873
11874 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11875 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11876
11877 ICC=no
11878 IXX=no
11879 case $CC in
11880   icc*|icpc*)
11881     ICC=yes
11882     IXX=yes
11883     ;;
11884    *)
11885     ;;
11886 esac
11887
11888 if test "$GCC" != "yes" && test "$ICC" != "yes"
11889 then
11890   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11891 echo "$as_me: error: gcc|icc required but not found" >&2;}
11892    { (exit 1); exit 1; }; }
11893 fi
11894
11895 if test "$GXX" != "yes" && test "$IXX" != "yes"
11896 then
11897   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11898 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11899    { (exit 1); exit 1; }; }
11900 fi
11901
11902 if test "$GCC" = "yes"
11903 then
11904   cat >conftest.$ac_ext <<_ACEOF
11905 #if !defined(__GNUC__) || __GNUC__ < 3
11906 #error Unsupported GCC version
11907 #endif
11908
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_compile") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925   { (case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_try") 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   :
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11950 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11951    { (exit 1); exit 1; }; }
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 fi
11956
11957 if test -z "$llvm_cv_gnu_make_command"
11958 then
11959   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11960 echo "$as_me: error: GNU Make required but not found" >&2;}
11961    { (exit 1); exit 1; }; }
11962 fi
11963
11964 { echo "$as_me:$LINENO: result: ok" >&5
11965 echo "${ECHO_T}ok" >&6; }
11966
11967 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11968 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11969 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11970
11971 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11972
11973 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11974
11975 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11976 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11977
11978
11979
11980 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11981 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11982 if test "${ac_cv_lib_m_sin+set}" = set; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-lm  $LIBS"
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993
11994 /* Override any GCC internal prototype to avoid an error.
11995    Use char because int might match the return type of a GCC
11996    builtin and then its argument prototype would still apply.  */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char sin ();
12001 int
12002 main ()
12003 {
12004 return sin ();
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_link") 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024   { (case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_try") 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; } &&
12033          { ac_try='test -s conftest$ac_exeext'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   ac_cv_lib_m_sin=yes
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048         ac_cv_lib_m_sin=no
12049 fi
12050
12051 rm -f core conftest.err conftest.$ac_objext \
12052       conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12054 fi
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12056 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12057 if test $ac_cv_lib_m_sin = yes; then
12058   cat >>confdefs.h <<_ACEOF
12059 #define HAVE_LIBM 1
12060 _ACEOF
12061
12062   LIBS="-lm $LIBS"
12063
12064 fi
12065
12066 if test "$llvm_cv_os_type" = "MingW" ; then
12067
12068 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12069 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12070 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-limagehlp  $LIBS"
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081
12082
12083 int
12084 main ()
12085 {
12086 return main ();
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_link") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; } &&
12115          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12125   ac_cv_lib_imagehlp_main=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130         ac_cv_lib_imagehlp_main=no
12131 fi
12132
12133 rm -f core conftest.err conftest.$ac_objext \
12134       conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12138 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12139 if test $ac_cv_lib_imagehlp_main = yes; then
12140   cat >>confdefs.h <<_ACEOF
12141 #define HAVE_LIBIMAGEHLP 1
12142 _ACEOF
12143
12144   LIBS="-limagehlp $LIBS"
12145
12146 fi
12147
12148
12149 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12150 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_psapi_main+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lpsapi  $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162
12163
12164 int
12165 main ()
12166 {
12167 return main ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_link") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } &&
12186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest$ac_exeext'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_cv_lib_psapi_main=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211         ac_cv_lib_psapi_main=no
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext \
12215       conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12217 fi
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12219 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12220 if test $ac_cv_lib_psapi_main = yes; then
12221   cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBPSAPI 1
12223 _ACEOF
12224
12225   LIBS="-lpsapi $LIBS"
12226
12227 fi
12228
12229 fi
12230
12231 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12232 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12233 if test "${ac_cv_search_dlopen+set}" = set; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   ac_func_search_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243
12244 /* Override any GCC internal prototype to avoid an error.
12245    Use char because int might match the return type of a GCC
12246    builtin and then its argument prototype would still apply.  */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char dlopen ();
12251 int
12252 main ()
12253 {
12254 return dlopen ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 for ac_lib in '' dl; do
12260   if test -z "$ac_lib"; then
12261     ac_res="none required"
12262   else
12263     ac_res=-l$ac_lib
12264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12265   fi
12266   rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_link") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } &&
12280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281   { (case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_try") 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_try") 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; }; then
12300   ac_cv_search_dlopen=$ac_res
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305
12306 fi
12307
12308 rm -f core conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext
12310   if test "${ac_cv_search_dlopen+set}" = set; then
12311   break
12312 fi
12313 done
12314 if test "${ac_cv_search_dlopen+set}" = set; then
12315   :
12316 else
12317   ac_cv_search_dlopen=no
12318 fi
12319 rm conftest.$ac_ext
12320 LIBS=$ac_func_search_save_LIBS
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12323 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12324 ac_res=$ac_cv_search_dlopen
12325 if test "$ac_res" != no; then
12326   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12327
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DLOPEN 1
12330 _ACEOF
12331
12332 else
12333   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12334 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12335 fi
12336
12337
12338 if test "$llvm_cv_enable_libffi" = "yes" ; then
12339   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12340 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12341 if test "${ac_cv_search_ffi_call+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   ac_func_search_save_LIBS=$LIBS
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h.  */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h.  */
12351
12352 /* Override any GCC internal prototype to avoid an error.
12353    Use char because int might match the return type of a GCC
12354    builtin and then its argument prototype would still apply.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char ffi_call ();
12359 int
12360 main ()
12361 {
12362 return ffi_call ();
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 for ac_lib in '' ffi; do
12368   if test -z "$ac_lib"; then
12369     ac_res="none required"
12370   else
12371     ac_res=-l$ac_lib
12372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12373   fi
12374   rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389   { (case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_try") 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_search_ffi_call=$ac_res
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext
12418   if test "${ac_cv_search_ffi_call+set}" = set; then
12419   break
12420 fi
12421 done
12422 if test "${ac_cv_search_ffi_call+set}" = set; then
12423   :
12424 else
12425   ac_cv_search_ffi_call=no
12426 fi
12427 rm conftest.$ac_ext
12428 LIBS=$ac_func_search_save_LIBS
12429 fi
12430 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12431 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12432 ac_res=$ac_cv_search_ffi_call
12433 if test "$ac_res" != no; then
12434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12435
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_FFI_CALL 1
12438 _ACEOF
12439
12440 else
12441   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12442 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12443    { (exit 1); exit 1; }; }
12444 fi
12445
12446 fi
12447
12448 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12449 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12450 if test "${ac_cv_search_mallinfo+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   ac_func_search_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char mallinfo ();
12468 int
12469 main ()
12470 {
12471 return mallinfo ();
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 for ac_lib in '' malloc; do
12477   if test -z "$ac_lib"; then
12478     ac_res="none required"
12479   else
12480     ac_res=-l$ac_lib
12481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12482   fi
12483   rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_link") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest$ac_exeext'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_cv_search_mallinfo=$ac_res
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext \
12526       conftest$ac_exeext
12527   if test "${ac_cv_search_mallinfo+set}" = set; then
12528   break
12529 fi
12530 done
12531 if test "${ac_cv_search_mallinfo+set}" = set; then
12532   :
12533 else
12534   ac_cv_search_mallinfo=no
12535 fi
12536 rm conftest.$ac_ext
12537 LIBS=$ac_func_search_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12540 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12541 ac_res=$ac_cv_search_mallinfo
12542 if test "$ac_res" != no; then
12543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12544
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_MALLINFO 1
12547 _ACEOF
12548
12549 fi
12550
12551
12552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12553
12554 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12555 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12556 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lpthread  $LIBS"
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567
12568 /* Override any GCC internal prototype to avoid an error.
12569    Use char because int might match the return type of a GCC
12570    builtin and then its argument prototype would still apply.  */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 char pthread_mutex_init ();
12575 int
12576 main ()
12577 {
12578 return pthread_mutex_init ();
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (ac_try="$ac_link"
12585 case "(($ac_try" in
12586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587   *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590   (eval "$ac_link") 2>conftest.er1
12591   ac_status=$?
12592   grep -v '^ *+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12598   { (case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_try") 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; } &&
12607          { ac_try='test -s conftest$ac_exeext'
12608   { (case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_try") 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); }; }; then
12617   ac_cv_lib_pthread_pthread_mutex_init=yes
12618 else
12619   echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622         ac_cv_lib_pthread_pthread_mutex_init=no
12623 fi
12624
12625 rm -f core conftest.err conftest.$ac_objext \
12626       conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12630 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12631 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12632   cat >>confdefs.h <<_ACEOF
12633 #define HAVE_LIBPTHREAD 1
12634 _ACEOF
12635
12636   LIBS="-lpthread $LIBS"
12637
12638 fi
12639
12640   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12641 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12642 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645   ac_func_search_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654    Use char because int might match the return type of a GCC
12655    builtin and then its argument prototype would still apply.  */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char pthread_mutex_lock ();
12660 int
12661 main ()
12662 {
12663 return pthread_mutex_lock ();
12664   ;
12665   return 0;
12666 }
12667 _ACEOF
12668 for ac_lib in '' pthread; do
12669   if test -z "$ac_lib"; then
12670     ac_res="none required"
12671   else
12672     ac_res=-l$ac_lib
12673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12674   fi
12675   rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_link") 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } &&
12689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690   { (case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695   (eval "$ac_try") 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; } &&
12699          { ac_try='test -s conftest$ac_exeext'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; }; then
12709   ac_cv_search_pthread_mutex_lock=$ac_res
12710 else
12711   echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
12715 fi
12716
12717 rm -f core conftest.err conftest.$ac_objext \
12718       conftest$ac_exeext
12719   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12720   break
12721 fi
12722 done
12723 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12724   :
12725 else
12726   ac_cv_search_pthread_mutex_lock=no
12727 fi
12728 rm conftest.$ac_ext
12729 LIBS=$ac_func_search_save_LIBS
12730 fi
12731 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12732 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12733 ac_res=$ac_cv_search_pthread_mutex_lock
12734 if test "$ac_res" != no; then
12735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12736
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_PTHREAD_MUTEX_LOCK 1
12739 _ACEOF
12740
12741 fi
12742
12743   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12744 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757    Use char because int might match the return type of a GCC
12758    builtin and then its argument prototype would still apply.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char pthread_rwlock_init ();
12763 int
12764 main ()
12765 {
12766 return pthread_rwlock_init ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 for ac_lib in '' pthread; do
12772   if test -z "$ac_lib"; then
12773     ac_res="none required"
12774   else
12775     ac_res=-l$ac_lib
12776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12777   fi
12778   rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_cv_search_pthread_rwlock_init=$ac_res
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext
12822   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12823   break
12824 fi
12825 done
12826 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12827   :
12828 else
12829   ac_cv_search_pthread_rwlock_init=no
12830 fi
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12833 fi
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12836 ac_res=$ac_cv_search_pthread_rwlock_init
12837 if test "$ac_res" != no; then
12838   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_RWLOCK_INIT 1
12842 _ACEOF
12843
12844 fi
12845
12846   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12847 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860    Use char because int might match the return type of a GCC
12861    builtin and then its argument prototype would still apply.  */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char pthread_getspecific ();
12866 int
12867 main ()
12868 {
12869 return pthread_getspecific ();
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 for ac_lib in '' pthread; do
12875   if test -z "$ac_lib"; then
12876     ac_res="none required"
12877   else
12878     ac_res=-l$ac_lib
12879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12880   fi
12881   rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_link") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; } &&
12905          { ac_try='test -s conftest$ac_exeext'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_cv_search_pthread_getspecific=$ac_res
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext \
12924       conftest$ac_exeext
12925   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12926   break
12927 fi
12928 done
12929 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12930   :
12931 else
12932   ac_cv_search_pthread_getspecific=no
12933 fi
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12936 fi
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12939 ac_res=$ac_cv_search_pthread_getspecific
12940 if test "$ac_res" != no; then
12941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_GETSPECIFIC 1
12945 _ACEOF
12946
12947 fi
12948
12949 fi
12950
12951
12952 # Check whether --with-udis86 was given.
12953 if test "${with_udis86+set}" = set; then
12954   withval=$with_udis86;
12955       USE_UDIS86=1
12956
12957       case "$withval" in
12958         /usr/lib|yes) ;;
12959         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12960       esac
12961
12962 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12963 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12964 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ludis86  $LIBS"
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975
12976 /* Override any GCC internal prototype to avoid an error.
12977    Use char because int might match the return type of a GCC
12978    builtin and then its argument prototype would still apply.  */
12979 #ifdef __cplusplus
12980 extern "C"
12981 #endif
12982 char ud_init ();
12983 int
12984 main ()
12985 {
12986 return ud_init ();
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998   (eval "$ac_link") 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006   { (case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_try") 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; } &&
13015          { ac_try='test -s conftest$ac_exeext'
13016   { (case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_try") 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   ac_cv_lib_udis86_ud_init=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         ac_cv_lib_udis86_ud_init=no
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext \
13034       conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13036 fi
13037 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13038 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13039 if test $ac_cv_lib_udis86_ud_init = yes; then
13040   cat >>confdefs.h <<_ACEOF
13041 #define HAVE_LIBUDIS86 1
13042 _ACEOF
13043
13044   LIBS="-ludis86 $LIBS"
13045
13046 else
13047
13048         echo "Error! You need to have libudis86 around."
13049         exit -1
13050
13051 fi
13052
13053
13054 else
13055   USE_UDIS86=0
13056
13057 fi
13058
13059
13060 cat >>confdefs.h <<_ACEOF
13061 #define USE_UDIS86 $USE_UDIS86
13062 _ACEOF
13063
13064
13065
13066 # Check whether --with-oprofile was given.
13067 if test "${with_oprofile+set}" = set; then
13068   withval=$with_oprofile;
13069       USE_OPROFILE=1
13070
13071       case "$withval" in
13072         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13073         no) llvm_cv_oppath=
13074             USE_OPROFILE=0
13075  ;;
13076         *) llvm_cv_oppath="${withval}/lib/oprofile"
13077            CPPFLAGS="-I${withval}/include";;
13078       esac
13079       case $llvm_cv_os_type in
13080         Linux)
13081           if test -n "$llvm_cv_oppath" ; then
13082             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13083                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13084 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13085 if test "${ac_cv_search_bfd_init+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   ac_func_search_save_LIBS=$LIBS
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any GCC internal prototype to avoid an error.
13097    Use char because int might match the return type of a GCC
13098    builtin and then its argument prototype would still apply.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char bfd_init ();
13103 int
13104 main ()
13105 {
13106 return bfd_init ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 for ac_lib in '' bfd; do
13112   if test -z "$ac_lib"; then
13113     ac_res="none required"
13114   else
13115     ac_res=-l$ac_lib
13116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13117   fi
13118   rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_link") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } &&
13132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133   { (case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_try") 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_try") 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_cv_search_bfd_init=$ac_res
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157
13158 fi
13159
13160 rm -f core conftest.err conftest.$ac_objext \
13161       conftest$ac_exeext
13162   if test "${ac_cv_search_bfd_init+set}" = set; then
13163   break
13164 fi
13165 done
13166 if test "${ac_cv_search_bfd_init+set}" = set; then
13167   :
13168 else
13169   ac_cv_search_bfd_init=no
13170 fi
13171 rm conftest.$ac_ext
13172 LIBS=$ac_func_search_save_LIBS
13173 fi
13174 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13175 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13176 ac_res=$ac_cv_search_bfd_init
13177 if test "$ac_res" != no; then
13178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13179
13180 fi
13181
13182             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13183 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13184 if test "${ac_cv_search_op_open_agent+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   ac_func_search_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196    Use char because int might match the return type of a GCC
13197    builtin and then its argument prototype would still apply.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char op_open_agent ();
13202 int
13203 main ()
13204 {
13205 return op_open_agent ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 for ac_lib in '' opagent; do
13211   if test -z "$ac_lib"; then
13212     ac_res="none required"
13213   else
13214     ac_res=-l$ac_lib
13215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13216   fi
13217   rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224   (eval "$ac_link") 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest$ac_exeext'
13242   { (case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_try") 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_cv_search_op_open_agent=$ac_res
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256
13257 fi
13258
13259 rm -f core conftest.err conftest.$ac_objext \
13260       conftest$ac_exeext
13261   if test "${ac_cv_search_op_open_agent+set}" = set; then
13262   break
13263 fi
13264 done
13265 if test "${ac_cv_search_op_open_agent+set}" = set; then
13266   :
13267 else
13268   ac_cv_search_op_open_agent=no
13269 fi
13270 rm conftest.$ac_ext
13271 LIBS=$ac_func_search_save_LIBS
13272 fi
13273 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13274 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13275 ac_res=$ac_cv_search_op_open_agent
13276 if test "$ac_res" != no; then
13277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13278
13279 else
13280
13281               echo "Error! You need to have libopagent around."
13282               exit -1
13283
13284 fi
13285
13286             if test "${ac_cv_header_opagent_h+set}" = set; then
13287   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13288 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_opagent_h+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 fi
13292 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13293 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13294 else
13295   # Is the header compilable?
13296 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13297 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 $ac_includes_default
13305 #include <opagent.h>
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314   (eval "$ac_compile") 2>conftest.er1
13315   ac_status=$?
13316   grep -v '^ *+' conftest.er1 >conftest.err
13317   rm -f conftest.er1
13318   cat conftest.err >&5
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322   { (case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_try") 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest.$ac_objext'
13332   { (case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_try") 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; }; then
13341   ac_header_compiler=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346         ac_header_compiler=no
13347 fi
13348
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13355 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 #include <opagent.h>
13363 _ACEOF
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } >/dev/null; then
13377   if test -s conftest.err; then
13378     ac_cpp_err=$ac_c_preproc_warn_flag
13379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13380   else
13381     ac_cpp_err=
13382   fi
13383 else
13384   ac_cpp_err=yes
13385 fi
13386 if test -z "$ac_cpp_err"; then
13387   ac_header_preproc=yes
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392   ac_header_preproc=no
13393 fi
13394
13395 rm -f conftest.err conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13398
13399 # So?  What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401   yes:no: )
13402     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13406     ac_header_preproc=yes
13407     ;;
13408   no:yes:* )
13409     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13413     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13415     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13417     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13419     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13421     ( cat <<\_ASBOX
13422 ## ------------------------------------ ##
13423 ## Report this to http://llvm.org/bugs/ ##
13424 ## ------------------------------------ ##
13425 _ASBOX
13426      ) | sed "s/^/$as_me: WARNING:     /" >&2
13427     ;;
13428 esac
13429 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13430 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_opagent_h+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   ac_cv_header_opagent_h=$ac_header_preproc
13435 fi
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13438
13439 fi
13440 if test $ac_cv_header_opagent_h = yes; then
13441   :
13442 else
13443
13444               echo "Error! You need to have opagent.h around."
13445               exit -1
13446
13447 fi
13448
13449
13450           fi ;;
13451         *)
13452           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13453 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13454    { (exit 1); exit 1; }; } ;;
13455       esac
13456
13457 else
13458
13459       USE_OPROFILE=0
13460
13461
13462 fi
13463
13464
13465 cat >>confdefs.h <<_ACEOF
13466 #define LLVM_USE_OPROFILE $USE_OPROFILE
13467 _ACEOF
13468
13469
13470
13471 # Check whether --with-intel-jitevents was given.
13472 if test "${with_intel_jitevents+set}" = set; then
13473   withval=$with_intel_jitevents;
13474       case $llvm_cv_os_type in
13475         Linux|Win32|Cygwin|MingW) ;;
13476         *)
13477           { { echo "$as_me:$LINENO: error:
13478             Intel JIT API support is available on Linux and Windows only.\"" >&5
13479 echo "$as_me: error:
13480             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13481    { (exit 1); exit 1; }; } ;;
13482       esac
13483
13484       USE_INTEL_JITEVENTS=1
13485
13486       case "$llvm_cv_target_arch" in
13487         x86)    llvm_intel_jitevents_archdir="lib32";;
13488         x86_64) llvm_intel_jitevents_archdir="lib64";;
13489         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13490                 exit -1;;
13491       esac
13492       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13493       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13494       case "$withval" in
13495         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13496                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13497         *) ;;
13498       esac
13499
13500
13501
13502
13503       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13504       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13505
13506       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13507 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13508 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511   ac_func_search_save_LIBS=$LIBS
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518
13519 /* Override any GCC internal prototype to avoid an error.
13520    Use char because int might match the return type of a GCC
13521    builtin and then its argument prototype would still apply.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char iJIT_IsProfilingActive ();
13526 int
13527 main ()
13528 {
13529 return iJIT_IsProfilingActive ();
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 for ac_lib in '' jitprofiling; do
13535   if test -z "$ac_lib"; then
13536     ac_res="none required"
13537   else
13538     ac_res=-l$ac_lib
13539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13540   fi
13541   rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545   *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548   (eval "$ac_link") 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; } &&
13565          { ac_try='test -s conftest$ac_exeext'
13566   { (case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571   (eval "$ac_try") 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; }; then
13575   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext \
13584       conftest$ac_exeext
13585   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13586   break
13587 fi
13588 done
13589 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13590   :
13591 else
13592   ac_cv_search_iJIT_IsProfilingActive=no
13593 fi
13594 rm conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13596 fi
13597 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13598 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13599 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13600 if test "$ac_res" != no; then
13601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13602
13603 else
13604
13605         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13606         exit -1
13607
13608 fi
13609
13610       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13611   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13612 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 fi
13616 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13617 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13618 else
13619   # Is the header compilable?
13620 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13621 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628 $ac_includes_default
13629 #include <jitprofiling.h>
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635   *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638   (eval "$ac_compile") 2>conftest.er1
13639   ac_status=$?
13640   grep -v '^ *+' conftest.er1 >conftest.err
13641   rm -f conftest.er1
13642   cat conftest.err >&5
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } &&
13645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646   { (case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_try") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; } &&
13655          { ac_try='test -s conftest.$ac_objext'
13656   { (case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_try") 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_header_compiler=yes
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670         ac_header_compiler=no
13671 fi
13672
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675 echo "${ECHO_T}$ac_header_compiler" >&6; }
13676
13677 # Is the header present?
13678 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13679 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 #include <jitprofiling.h>
13687 _ACEOF
13688 if { (ac_try="$ac_cpp conftest.$ac_ext"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } >/dev/null; then
13701   if test -s conftest.err; then
13702     ac_cpp_err=$ac_c_preproc_warn_flag
13703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13704   else
13705     ac_cpp_err=
13706   fi
13707 else
13708   ac_cpp_err=yes
13709 fi
13710 if test -z "$ac_cpp_err"; then
13711   ac_header_preproc=yes
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716   ac_header_preproc=no
13717 fi
13718
13719 rm -f conftest.err conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 echo "${ECHO_T}$ac_header_preproc" >&6; }
13722
13723 # So?  What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725   yes:no: )
13726     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13729 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13730     ac_header_preproc=yes
13731     ;;
13732   no:yes:* )
13733     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13734 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13735     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13736 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13737     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13738 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13739     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13740 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13741     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13743     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13744 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13745     ( cat <<\_ASBOX
13746 ## ------------------------------------ ##
13747 ## Report this to http://llvm.org/bugs/ ##
13748 ## ------------------------------------ ##
13749 _ASBOX
13750      ) | sed "s/^/$as_me: WARNING:     /" >&2
13751     ;;
13752 esac
13753 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13754 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13755 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   ac_cv_header_jitprofiling_h=$ac_header_preproc
13759 fi
13760 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13761 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13762
13763 fi
13764 if test $ac_cv_header_jitprofiling_h = yes; then
13765   :
13766 else
13767
13768         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13769         exit -1
13770
13771 fi
13772
13773
13774
13775
13776 else
13777
13778       USE_INTEL_JITEVENTS=0
13779
13780
13781 fi
13782
13783
13784 cat >>confdefs.h <<_ACEOF
13785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13786 _ACEOF
13787
13788
13789
13790
13791
13792
13793
13794
13795 ac_header_dirent=no
13796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13797   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13798 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801   echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13803   cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 #include <sys/types.h>
13810 #include <$ac_hdr>
13811
13812 int
13813 main ()
13814 {
13815 if ((DIR *) 0)
13816 return 0;
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 rm -f conftest.$ac_objext
13822 if { (ac_try="$ac_compile"
13823 case "(($ac_try" in
13824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825   *) ac_try_echo=$ac_try;;
13826 esac
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828   (eval "$ac_compile") 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836   { (case "(($ac_try" in
13837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838   *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841   (eval "$ac_try") 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } &&
13845          { ac_try='test -s conftest.$ac_objext'
13846   { (case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851   (eval "$ac_try") 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }; then
13855   eval "$as_ac_Header=yes"
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860         eval "$as_ac_Header=no"
13861 fi
13862
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 fi
13865 ac_res=`eval echo '${'$as_ac_Header'}'`
13866                { echo "$as_me:$LINENO: result: $ac_res" >&5
13867 echo "${ECHO_T}$ac_res" >&6; }
13868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13869   cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13871 _ACEOF
13872
13873 ac_header_dirent=$ac_hdr; break
13874 fi
13875
13876 done
13877 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13878 if test $ac_header_dirent = dirent.h; then
13879   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13881 if test "${ac_cv_search_opendir+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   ac_func_search_save_LIBS=$LIBS
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h.  */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h.  */
13891
13892 /* Override any GCC internal prototype to avoid an error.
13893    Use char because int might match the return type of a GCC
13894    builtin and then its argument prototype would still apply.  */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 char opendir ();
13899 int
13900 main ()
13901 {
13902 return opendir ();
13903   ;
13904   return 0;
13905 }
13906 _ACEOF
13907 for ac_lib in '' dir; do
13908   if test -z "$ac_lib"; then
13909     ac_res="none required"
13910   else
13911     ac_res=-l$ac_lib
13912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13913   fi
13914   rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_link") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929   { (case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_try") 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; } &&
13938          { ac_try='test -s conftest$ac_exeext'
13939   { (case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_try") 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_cv_search_opendir=$ac_res
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext \
13957       conftest$ac_exeext
13958   if test "${ac_cv_search_opendir+set}" = set; then
13959   break
13960 fi
13961 done
13962 if test "${ac_cv_search_opendir+set}" = set; then
13963   :
13964 else
13965   ac_cv_search_opendir=no
13966 fi
13967 rm conftest.$ac_ext
13968 LIBS=$ac_func_search_save_LIBS
13969 fi
13970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13972 ac_res=$ac_cv_search_opendir
13973 if test "$ac_res" != no; then
13974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975
13976 fi
13977
13978 else
13979   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13981 if test "${ac_cv_search_opendir+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   ac_func_search_save_LIBS=$LIBS
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991
13992 /* Override any GCC internal prototype to avoid an error.
13993    Use char because int might match the return type of a GCC
13994    builtin and then its argument prototype would still apply.  */
13995 #ifdef __cplusplus
13996 extern "C"
13997 #endif
13998 char opendir ();
13999 int
14000 main ()
14001 {
14002 return opendir ();
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 for ac_lib in '' x; do
14008   if test -z "$ac_lib"; then
14009     ac_res="none required"
14010   else
14011     ac_res=-l$ac_lib
14012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14013   fi
14014   rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018   *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021   (eval "$ac_link") 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029   { (case "(($ac_try" in
14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031   *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034   (eval "$ac_try") 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_try") 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }; then
14048   ac_cv_search_opendir=$ac_res
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext \
14057       conftest$ac_exeext
14058   if test "${ac_cv_search_opendir+set}" = set; then
14059   break
14060 fi
14061 done
14062 if test "${ac_cv_search_opendir+set}" = set; then
14063   :
14064 else
14065   ac_cv_search_opendir=no
14066 fi
14067 rm conftest.$ac_ext
14068 LIBS=$ac_func_search_save_LIBS
14069 fi
14070 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14071 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14072 ac_res=$ac_cv_search_opendir
14073 if test "$ac_res" != no; then
14074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14075
14076 fi
14077
14078 fi
14079
14080 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14081 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14082 if test "${ac_cv_header_mmap_anon+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085    ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091   cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 #include <sys/mman.h>
14098 #include <unistd.h>
14099 #include <fcntl.h>
14100 int
14101 main ()
14102 {
14103 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115   (eval "$ac_compile") 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123   { (case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_try") 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (case "(($ac_try" in
14134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135   *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138   (eval "$ac_try") 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_cv_header_mmap_anon=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_cv_header_mmap_anon=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151   ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157
14158 fi
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14160 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14161 if test "$ac_cv_header_mmap_anon" = yes; then
14162
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_MMAP_ANONYMOUS 1
14165 _ACEOF
14166
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14170 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_stat_broken+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 #include <sys/types.h>
14181 #include <sys/stat.h>
14182
14183 #if defined S_ISBLK && defined S_IFDIR
14184 # if S_ISBLK (S_IFDIR)
14185 You lose.
14186 # endif
14187 #endif
14188
14189 #if defined S_ISBLK && defined S_IFCHR
14190 # if S_ISBLK (S_IFCHR)
14191 You lose.
14192 # endif
14193 #endif
14194
14195 #if defined S_ISLNK && defined S_IFREG
14196 # if S_ISLNK (S_IFREG)
14197 You lose.
14198 # endif
14199 #endif
14200
14201 #if defined S_ISSOCK && defined S_IFREG
14202 # if S_ISSOCK (S_IFREG)
14203 You lose.
14204 # endif
14205 #endif
14206
14207 _ACEOF
14208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14209   $EGREP "You lose" >/dev/null 2>&1; then
14210   ac_cv_header_stat_broken=yes
14211 else
14212   ac_cv_header_stat_broken=no
14213 fi
14214 rm -f conftest*
14215
14216 fi
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14218 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14219 if test $ac_cv_header_stat_broken = yes; then
14220
14221 cat >>confdefs.h <<\_ACEOF
14222 #define STAT_MACROS_BROKEN 1
14223 _ACEOF
14224
14225 fi
14226
14227 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14228 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #include <sys/types.h>
14239 #include <sys/wait.h>
14240 #ifndef WEXITSTATUS
14241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14242 #endif
14243 #ifndef WIFEXITED
14244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14245 #endif
14246
14247 int
14248 main ()
14249 {
14250   int s;
14251   wait (&s);
14252   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_compile") 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_cv_header_sys_wait_h=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296         ac_cv_header_sys_wait_h=no
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14303 if test $ac_cv_header_sys_wait_h = yes; then
14304
14305 cat >>confdefs.h <<\_ACEOF
14306 #define HAVE_SYS_WAIT_H 1
14307 _ACEOF
14308
14309 fi
14310
14311 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14313 if test "${ac_cv_header_time+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 #include <sys/types.h>
14323 #include <sys/time.h>
14324 #include <time.h>
14325
14326 int
14327 main ()
14328 {
14329 if ((struct tm *) 0)
14330 return 0;
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339   *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342   (eval "$ac_compile") 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350   { (case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_try") 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; } &&
14359          { ac_try='test -s conftest.$ac_objext'
14360   { (case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_try") 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369   ac_cv_header_time=yes
14370 else
14371   echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374         ac_cv_header_time=no
14375 fi
14376
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14381 if test $ac_cv_header_time = yes; then
14382
14383 cat >>confdefs.h <<\_ACEOF
14384 #define TIME_WITH_SYS_TIME 1
14385 _ACEOF
14386
14387 fi
14388
14389
14390
14391
14392
14393
14394
14395
14396 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14397 do
14398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 fi
14405 ac_res=`eval echo '${'$as_ac_Header'}'`
14406                { echo "$as_me:$LINENO: result: $ac_res" >&5
14407 echo "${ECHO_T}$ac_res" >&6; }
14408 else
14409   # Is the header compilable?
14410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 $ac_includes_default
14419 #include <$ac_header>
14420 _ACEOF
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_compile") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436   { (case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_try") 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest.$ac_objext'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_header_compiler=yes
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460         ac_header_compiler=no
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466
14467 # Is the header present?
14468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 #include <$ac_header>
14477 _ACEOF
14478 if { (ac_try="$ac_cpp conftest.$ac_ext"
14479 case "(($ac_try" in
14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481   *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } >/dev/null; then
14491   if test -s conftest.err; then
14492     ac_cpp_err=$ac_c_preproc_warn_flag
14493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14494   else
14495     ac_cpp_err=
14496   fi
14497 else
14498   ac_cpp_err=yes
14499 fi
14500 if test -z "$ac_cpp_err"; then
14501   ac_header_preproc=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506   ac_header_preproc=no
14507 fi
14508
14509 rm -f conftest.err conftest.$ac_ext
14510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512
14513 # So?  What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515   yes:no: )
14516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520     ac_header_preproc=yes
14521     ;;
14522   no:yes:* )
14523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535     ( cat <<\_ASBOX
14536 ## ------------------------------------ ##
14537 ## Report this to http://llvm.org/bugs/ ##
14538 ## ------------------------------------ ##
14539 _ASBOX
14540      ) | sed "s/^/$as_me: WARNING:     /" >&2
14541     ;;
14542 esac
14543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   eval "$as_ac_Header=\$ac_header_preproc"
14549 fi
14550 ac_res=`eval echo '${'$as_ac_Header'}'`
14551                { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14553
14554 fi
14555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14556   cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14558 _ACEOF
14559
14560 fi
14561
14562 done
14563
14564
14565
14566
14567
14568
14569
14570 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14571 do
14572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14574   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 fi
14579 ac_res=`eval echo '${'$as_ac_Header'}'`
14580                { echo "$as_me:$LINENO: result: $ac_res" >&5
14581 echo "${ECHO_T}$ac_res" >&6; }
14582 else
14583   # Is the header compilable?
14584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 $ac_includes_default
14593 #include <$ac_header>
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_compile") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610   { (case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_try") 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest.$ac_objext'
14620   { (case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_try") 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   ac_header_compiler=yes
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634         ac_header_compiler=no
14635 fi
14636
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14639 echo "${ECHO_T}$ac_header_compiler" >&6; }
14640
14641 # Is the header present?
14642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650 #include <$ac_header>
14651 _ACEOF
14652 if { (ac_try="$ac_cpp conftest.$ac_ext"
14653 case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } >/dev/null; then
14665   if test -s conftest.err; then
14666     ac_cpp_err=$ac_c_preproc_warn_flag
14667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14668   else
14669     ac_cpp_err=
14670   fi
14671 else
14672   ac_cpp_err=yes
14673 fi
14674 if test -z "$ac_cpp_err"; then
14675   ac_header_preproc=yes
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680   ac_header_preproc=no
14681 fi
14682
14683 rm -f conftest.err conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6; }
14686
14687 # So?  What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689   yes:no: )
14690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694     ac_header_preproc=yes
14695     ;;
14696   no:yes:* )
14697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14709     ( cat <<\_ASBOX
14710 ## ------------------------------------ ##
14711 ## Report this to http://llvm.org/bugs/ ##
14712 ## ------------------------------------ ##
14713 _ASBOX
14714      ) | sed "s/^/$as_me: WARNING:     /" >&2
14715     ;;
14716 esac
14717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   eval "$as_ac_Header=\$ac_header_preproc"
14723 fi
14724 ac_res=`eval echo '${'$as_ac_Header'}'`
14725                { echo "$as_me:$LINENO: result: $ac_res" >&5
14726 echo "${ECHO_T}$ac_res" >&6; }
14727
14728 fi
14729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14730   cat >>confdefs.h <<_ACEOF
14731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14732 _ACEOF
14733
14734 fi
14735
14736 done
14737
14738
14739
14740 for ac_header in utime.h windows.h
14741 do
14742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14744   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14747   echo $ECHO_N "(cached) $ECHO_C" >&6
14748 fi
14749 ac_res=`eval echo '${'$as_ac_Header'}'`
14750                { echo "$as_me:$LINENO: result: $ac_res" >&5
14751 echo "${ECHO_T}$ac_res" >&6; }
14752 else
14753   # Is the header compilable?
14754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h.  */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h.  */
14762 $ac_includes_default
14763 #include <$ac_header>
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769   *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772   (eval "$ac_compile") 2>conftest.er1
14773   ac_status=$?
14774   grep -v '^ *+' conftest.er1 >conftest.err
14775   rm -f conftest.er1
14776   cat conftest.err >&5
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14780   { (case "(($ac_try" in
14781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782   *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785   (eval "$ac_try") 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; } &&
14789          { ac_try='test -s conftest.$ac_objext'
14790   { (case "(($ac_try" in
14791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792   *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795   (eval "$ac_try") 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   ac_header_compiler=yes
14800 else
14801   echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14803
14804         ac_header_compiler=no
14805 fi
14806
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14809 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810
14811 # Is the header present?
14812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14814 cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h.  */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h.  */
14820 #include <$ac_header>
14821 _ACEOF
14822 if { (ac_try="$ac_cpp conftest.$ac_ext"
14823 case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } >/dev/null; then
14835   if test -s conftest.err; then
14836     ac_cpp_err=$ac_c_preproc_warn_flag
14837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14838   else
14839     ac_cpp_err=
14840   fi
14841 else
14842   ac_cpp_err=yes
14843 fi
14844 if test -z "$ac_cpp_err"; then
14845   ac_header_preproc=yes
14846 else
14847   echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850   ac_header_preproc=no
14851 fi
14852
14853 rm -f conftest.err conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14855 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856
14857 # So?  What about this header?
14858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859   yes:no: )
14860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14864     ac_header_preproc=yes
14865     ;;
14866   no:yes:* )
14867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14879     ( cat <<\_ASBOX
14880 ## ------------------------------------ ##
14881 ## Report this to http://llvm.org/bugs/ ##
14882 ## ------------------------------------ ##
14883 _ASBOX
14884      ) | sed "s/^/$as_me: WARNING:     /" >&2
14885     ;;
14886 esac
14887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892   eval "$as_ac_Header=\$ac_header_preproc"
14893 fi
14894 ac_res=`eval echo '${'$as_ac_Header'}'`
14895                { echo "$as_me:$LINENO: result: $ac_res" >&5
14896 echo "${ECHO_T}$ac_res" >&6; }
14897
14898 fi
14899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14900   cat >>confdefs.h <<_ACEOF
14901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 _ACEOF
14903
14904 fi
14905
14906 done
14907
14908
14909
14910
14911
14912
14913 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14914 do
14915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 fi
14922 ac_res=`eval echo '${'$as_ac_Header'}'`
14923                { echo "$as_me:$LINENO: result: $ac_res" >&5
14924 echo "${ECHO_T}$ac_res" >&6; }
14925 else
14926   # Is the header compilable?
14927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 #include <$ac_header>
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (ac_try="$ac_compile"
14940 case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_compile") 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953   { (case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_try") 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; } &&
14962          { ac_try='test -s conftest.$ac_objext'
14963   { (case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_try") 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; }; then
14972   ac_header_compiler=yes
14973 else
14974   echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977         ac_header_compiler=no
14978 fi
14979
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14982 echo "${ECHO_T}$ac_header_compiler" >&6; }
14983
14984 # Is the header present?
14985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993 #include <$ac_header>
14994 _ACEOF
14995 if { (ac_try="$ac_cpp conftest.$ac_ext"
14996 case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } >/dev/null; then
15008   if test -s conftest.err; then
15009     ac_cpp_err=$ac_c_preproc_warn_flag
15010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15011   else
15012     ac_cpp_err=
15013   fi
15014 else
15015   ac_cpp_err=yes
15016 fi
15017 if test -z "$ac_cpp_err"; then
15018   ac_header_preproc=yes
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023   ac_header_preproc=no
15024 fi
15025
15026 rm -f conftest.err conftest.$ac_ext
15027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15028 echo "${ECHO_T}$ac_header_preproc" >&6; }
15029
15030 # So?  What about this header?
15031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15032   yes:no: )
15033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15037     ac_header_preproc=yes
15038     ;;
15039   no:yes:* )
15040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15052     ( cat <<\_ASBOX
15053 ## ------------------------------------ ##
15054 ## Report this to http://llvm.org/bugs/ ##
15055 ## ------------------------------------ ##
15056 _ASBOX
15057      ) | sed "s/^/$as_me: WARNING:     /" >&2
15058     ;;
15059 esac
15060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   eval "$as_ac_Header=\$ac_header_preproc"
15066 fi
15067 ac_res=`eval echo '${'$as_ac_Header'}'`
15068                { echo "$as_me:$LINENO: result: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15070
15071 fi
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073   cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078
15079 done
15080
15081
15082
15083
15084
15085 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15086 do
15087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15092   echo $ECHO_N "(cached) $ECHO_C" >&6
15093 fi
15094 ac_res=`eval echo '${'$as_ac_Header'}'`
15095                { echo "$as_me:$LINENO: result: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15097 else
15098   # Is the header compilable?
15099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107 $ac_includes_default
15108 #include <$ac_header>
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (ac_try="$ac_compile"
15112 case "(($ac_try" in
15113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114   *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117   (eval "$ac_compile") 2>conftest.er1
15118   ac_status=$?
15119   grep -v '^ *+' conftest.er1 >conftest.err
15120   rm -f conftest.er1
15121   cat conftest.err >&5
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } &&
15124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15125   { (case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_try") 2>&5
15131   ac_status=$?
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); }; } &&
15134          { ac_try='test -s conftest.$ac_objext'
15135   { (case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_try") 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   ac_header_compiler=yes
15145 else
15146   echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149         ac_header_compiler=no
15150 fi
15151
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15154 echo "${ECHO_T}$ac_header_compiler" >&6; }
15155
15156 # Is the header present?
15157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165 #include <$ac_header>
15166 _ACEOF
15167 if { (ac_try="$ac_cpp conftest.$ac_ext"
15168 case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15174   ac_status=$?
15175   grep -v '^ *+' conftest.er1 >conftest.err
15176   rm -f conftest.er1
15177   cat conftest.err >&5
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); } >/dev/null; then
15180   if test -s conftest.err; then
15181     ac_cpp_err=$ac_c_preproc_warn_flag
15182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15183   else
15184     ac_cpp_err=
15185   fi
15186 else
15187   ac_cpp_err=yes
15188 fi
15189 if test -z "$ac_cpp_err"; then
15190   ac_header_preproc=yes
15191 else
15192   echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195   ac_header_preproc=no
15196 fi
15197
15198 rm -f conftest.err conftest.$ac_ext
15199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 echo "${ECHO_T}$ac_header_preproc" >&6; }
15201
15202 # So?  What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15204   yes:no: )
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15209     ac_header_preproc=yes
15210     ;;
15211   no:yes:* )
15212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15224     ( cat <<\_ASBOX
15225 ## ------------------------------------ ##
15226 ## Report this to http://llvm.org/bugs/ ##
15227 ## ------------------------------------ ##
15228 _ASBOX
15229      ) | sed "s/^/$as_me: WARNING:     /" >&2
15230     ;;
15231 esac
15232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   eval "$as_ac_Header=\$ac_header_preproc"
15238 fi
15239 ac_res=`eval echo '${'$as_ac_Header'}'`
15240                { echo "$as_me:$LINENO: result: $ac_res" >&5
15241 echo "${ECHO_T}$ac_res" >&6; }
15242
15243 fi
15244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15245   cat >>confdefs.h <<_ACEOF
15246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15247 _ACEOF
15248
15249 fi
15250
15251 done
15252
15253
15254 for ac_header in valgrind/valgrind.h
15255 do
15256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15261   echo $ECHO_N "(cached) $ECHO_C" >&6
15262 fi
15263 ac_res=`eval echo '${'$as_ac_Header'}'`
15264                { echo "$as_me:$LINENO: result: $ac_res" >&5
15265 echo "${ECHO_T}$ac_res" >&6; }
15266 else
15267   # Is the header compilable?
15268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 $ac_includes_default
15277 #include <$ac_header>
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (ac_try="$ac_compile"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_compile") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294   { (case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299   (eval "$ac_try") 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; } &&
15303          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313   ac_header_compiler=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318         ac_header_compiler=no
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6; }
15324
15325 # Is the header present?
15326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 #include <$ac_header>
15335 _ACEOF
15336 if { (ac_try="$ac_cpp conftest.$ac_ext"
15337 case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } >/dev/null; then
15349   if test -s conftest.err; then
15350     ac_cpp_err=$ac_c_preproc_warn_flag
15351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15352   else
15353     ac_cpp_err=
15354   fi
15355 else
15356   ac_cpp_err=yes
15357 fi
15358 if test -z "$ac_cpp_err"; then
15359   ac_header_preproc=yes
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364   ac_header_preproc=no
15365 fi
15366
15367 rm -f conftest.err conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369 echo "${ECHO_T}$ac_header_preproc" >&6; }
15370
15371 # So?  What about this header?
15372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373   yes:no: )
15374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15378     ac_header_preproc=yes
15379     ;;
15380   no:yes:* )
15381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15393     ( cat <<\_ASBOX
15394 ## ------------------------------------ ##
15395 ## Report this to http://llvm.org/bugs/ ##
15396 ## ------------------------------------ ##
15397 _ASBOX
15398      ) | sed "s/^/$as_me: WARNING:     /" >&2
15399     ;;
15400 esac
15401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15404   echo $ECHO_N "(cached) $ECHO_C" >&6
15405 else
15406   eval "$as_ac_Header=\$ac_header_preproc"
15407 fi
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409                { echo "$as_me:$LINENO: result: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15411
15412 fi
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414   cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 _ACEOF
15417
15418 fi
15419
15420 done
15421
15422
15423 for ac_header in fenv.h
15424 do
15425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 fi
15432 ac_res=`eval echo '${'$as_ac_Header'}'`
15433                { echo "$as_me:$LINENO: result: $ac_res" >&5
15434 echo "${ECHO_T}$ac_res" >&6; }
15435 else
15436   # Is the header compilable?
15437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445 $ac_includes_default
15446 #include <$ac_header>
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_compile") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } &&
15462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463   { (case "(($ac_try" in
15464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465   *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468   (eval "$ac_try") 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; } &&
15472          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }; then
15482   ac_header_compiler=yes
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487         ac_header_compiler=no
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15492 echo "${ECHO_T}$ac_header_compiler" >&6; }
15493
15494 # Is the header present?
15495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503 #include <$ac_header>
15504 _ACEOF
15505 if { (ac_try="$ac_cpp conftest.$ac_ext"
15506 case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } >/dev/null; then
15518   if test -s conftest.err; then
15519     ac_cpp_err=$ac_c_preproc_warn_flag
15520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15521   else
15522     ac_cpp_err=
15523   fi
15524 else
15525   ac_cpp_err=yes
15526 fi
15527 if test -z "$ac_cpp_err"; then
15528   ac_header_preproc=yes
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533   ac_header_preproc=no
15534 fi
15535
15536 rm -f conftest.err conftest.$ac_ext
15537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6; }
15539
15540 # So?  What about this header?
15541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542   yes:no: )
15543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15547     ac_header_preproc=yes
15548     ;;
15549   no:yes:* )
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15562     ( cat <<\_ASBOX
15563 ## ------------------------------------ ##
15564 ## Report this to http://llvm.org/bugs/ ##
15565 ## ------------------------------------ ##
15566 _ASBOX
15567      ) | sed "s/^/$as_me: WARNING:     /" >&2
15568     ;;
15569 esac
15570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   eval "$as_ac_Header=\$ac_header_preproc"
15576 fi
15577 ac_res=`eval echo '${'$as_ac_Header'}'`
15578                { echo "$as_me:$LINENO: result: $ac_res" >&5
15579 echo "${ECHO_T}$ac_res" >&6; }
15580
15581 fi
15582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15583   cat >>confdefs.h <<_ACEOF
15584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15585 _ACEOF
15586
15587 fi
15588
15589 done
15590
15591 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15592
15593 for ac_header in pthread.h
15594 do
15595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600   echo $ECHO_N "(cached) $ECHO_C" >&6
15601 fi
15602 ac_res=`eval echo '${'$as_ac_Header'}'`
15603                { echo "$as_me:$LINENO: result: $ac_res" >&5
15604 echo "${ECHO_T}$ac_res" >&6; }
15605 else
15606   # Is the header compilable?
15607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615 $ac_includes_default
15616 #include <$ac_header>
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (ac_try="$ac_compile"
15620 case "(($ac_try" in
15621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622   *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625   (eval "$ac_compile") 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } &&
15632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15633   { (case "(($ac_try" in
15634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635   *) ac_try_echo=$ac_try;;
15636 esac
15637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15638   (eval "$ac_try") 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); }; } &&
15642          { ac_try='test -s conftest.$ac_objext'
15643   { (case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_try") 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   ac_header_compiler=yes
15653 else
15654   echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657         ac_header_compiler=no
15658 fi
15659
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15662 echo "${ECHO_T}$ac_header_compiler" >&6; }
15663
15664 # Is the header present?
15665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15667 cat >conftest.$ac_ext <<_ACEOF
15668 /* confdefs.h.  */
15669 _ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h.  */
15673 #include <$ac_header>
15674 _ACEOF
15675 if { (ac_try="$ac_cpp conftest.$ac_ext"
15676 case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15682   ac_status=$?
15683   grep -v '^ *+' conftest.er1 >conftest.err
15684   rm -f conftest.er1
15685   cat conftest.err >&5
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); } >/dev/null; then
15688   if test -s conftest.err; then
15689     ac_cpp_err=$ac_c_preproc_warn_flag
15690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15691   else
15692     ac_cpp_err=
15693   fi
15694 else
15695   ac_cpp_err=yes
15696 fi
15697 if test -z "$ac_cpp_err"; then
15698   ac_header_preproc=yes
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703   ac_header_preproc=no
15704 fi
15705
15706 rm -f conftest.err conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15708 echo "${ECHO_T}$ac_header_preproc" >&6; }
15709
15710 # So?  What about this header?
15711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15712   yes:no: )
15713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15717     ac_header_preproc=yes
15718     ;;
15719   no:yes:* )
15720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15732     ( cat <<\_ASBOX
15733 ## ------------------------------------ ##
15734 ## Report this to http://llvm.org/bugs/ ##
15735 ## ------------------------------------ ##
15736 _ASBOX
15737      ) | sed "s/^/$as_me: WARNING:     /" >&2
15738     ;;
15739 esac
15740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   eval "$as_ac_Header=\$ac_header_preproc"
15746 fi
15747 ac_res=`eval echo '${'$as_ac_Header'}'`
15748                { echo "$as_me:$LINENO: result: $ac_res" >&5
15749 echo "${ECHO_T}$ac_res" >&6; }
15750
15751 fi
15752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15753   cat >>confdefs.h <<_ACEOF
15754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15755 _ACEOF
15756  HAVE_PTHREAD=1
15757
15758 else
15759   HAVE_PTHREAD=0
15760
15761 fi
15762
15763 done
15764
15765 else
15766   HAVE_PTHREAD=0
15767
15768 fi
15769
15770 if test "$llvm_cv_enable_libffi" = "yes" ; then
15771
15772
15773 for ac_header in ffi.h ffi/ffi.h
15774 do
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 fi
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783                { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15785 else
15786   # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 $ac_includes_default
15796 #include <$ac_header>
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_compile") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15813   { (case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_try") 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; } &&
15822          { ac_try='test -s conftest.$ac_objext'
15823   { (case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_try") 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; }; then
15832   ac_header_compiler=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837         ac_header_compiler=no
15838 fi
15839
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15842 echo "${ECHO_T}$ac_header_compiler" >&6; }
15843
15844 # Is the header present?
15845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 #include <$ac_header>
15854 _ACEOF
15855 if { (ac_try="$ac_cpp conftest.$ac_ext"
15856 case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } >/dev/null; then
15868   if test -s conftest.err; then
15869     ac_cpp_err=$ac_c_preproc_warn_flag
15870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15871   else
15872     ac_cpp_err=
15873   fi
15874 else
15875   ac_cpp_err=yes
15876 fi
15877 if test -z "$ac_cpp_err"; then
15878   ac_header_preproc=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883   ac_header_preproc=no
15884 fi
15885
15886 rm -f conftest.err conftest.$ac_ext
15887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15888 echo "${ECHO_T}$ac_header_preproc" >&6; }
15889
15890 # So?  What about this header?
15891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15892   yes:no: )
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15897     ac_header_preproc=yes
15898     ;;
15899   no:yes:* )
15900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15912     ( cat <<\_ASBOX
15913 ## ------------------------------------ ##
15914 ## Report this to http://llvm.org/bugs/ ##
15915 ## ------------------------------------ ##
15916 _ASBOX
15917      ) | sed "s/^/$as_me: WARNING:     /" >&2
15918     ;;
15919 esac
15920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925   eval "$as_ac_Header=\$ac_header_preproc"
15926 fi
15927 ac_res=`eval echo '${'$as_ac_Header'}'`
15928                { echo "$as_me:$LINENO: result: $ac_res" >&5
15929 echo "${ECHO_T}$ac_res" >&6; }
15930
15931 fi
15932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933   cat >>confdefs.h <<_ACEOF
15934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935 _ACEOF
15936
15937 fi
15938
15939 done
15940
15941 fi
15942
15943
15944 for ac_header in CrashReporterClient.h
15945 do
15946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 fi
15953 ac_res=`eval echo '${'$as_ac_Header'}'`
15954                { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15956 else
15957   # Is the header compilable?
15958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 $ac_includes_default
15967 #include <$ac_header>
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973   *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976   (eval "$ac_compile") 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15984   { (case "(($ac_try" in
15985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986   *) ac_try_echo=$ac_try;;
15987 esac
15988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989   (eval "$ac_try") 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; } &&
15993          { ac_try='test -s conftest.$ac_objext'
15994   { (case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_try") 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; }; then
16003   ac_header_compiler=yes
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008         ac_header_compiler=no
16009 fi
16010
16011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16013 echo "${ECHO_T}$ac_header_compiler" >&6; }
16014
16015 # Is the header present?
16016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 #include <$ac_header>
16025 _ACEOF
16026 if { (ac_try="$ac_cpp conftest.$ac_ext"
16027 case "(($ac_try" in
16028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029   *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } >/dev/null; then
16039   if test -s conftest.err; then
16040     ac_cpp_err=$ac_c_preproc_warn_flag
16041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16042   else
16043     ac_cpp_err=
16044   fi
16045 else
16046   ac_cpp_err=yes
16047 fi
16048 if test -z "$ac_cpp_err"; then
16049   ac_header_preproc=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054   ac_header_preproc=no
16055 fi
16056
16057 rm -f conftest.err conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16059 echo "${ECHO_T}$ac_header_preproc" >&6; }
16060
16061 # So?  What about this header?
16062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16063   yes:no: )
16064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16068     ac_header_preproc=yes
16069     ;;
16070   no:yes:* )
16071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16083     ( cat <<\_ASBOX
16084 ## ------------------------------------ ##
16085 ## Report this to http://llvm.org/bugs/ ##
16086 ## ------------------------------------ ##
16087 _ASBOX
16088      ) | sed "s/^/$as_me: WARNING:     /" >&2
16089     ;;
16090 esac
16091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16094   echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16096   eval "$as_ac_Header=\$ac_header_preproc"
16097 fi
16098 ac_res=`eval echo '${'$as_ac_Header'}'`
16099                { echo "$as_me:$LINENO: result: $ac_res" >&5
16100 echo "${ECHO_T}$ac_res" >&6; }
16101
16102 fi
16103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16104   cat >>confdefs.h <<_ACEOF
16105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16106 _ACEOF
16107
16108 fi
16109
16110 done
16111
16112
16113 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16114 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 extern const char *__crashreporter_info__;
16122       int main() {
16123         __crashreporter_info__ = "test";
16124         return 0;
16125       }
16126
16127 _ACEOF
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (ac_try="$ac_link"
16130 case "(($ac_try" in
16131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132   *) ac_try_echo=$ac_try;;
16133 esac
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135   (eval "$ac_link") 2>conftest.er1
16136   ac_status=$?
16137   grep -v '^ *+' conftest.er1 >conftest.err
16138   rm -f conftest.er1
16139   cat conftest.err >&5
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); } &&
16142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16143   { (case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_try") 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; } &&
16152          { ac_try='test -s conftest$ac_exeext'
16153   { (case "(($ac_try" in
16154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155   *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158   (eval "$ac_try") 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   { echo "$as_me:$LINENO: result: yes" >&5
16163 echo "${ECHO_T}yes" >&6; }
16164
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_CRASHREPORTER_INFO 1
16167 _ACEOF
16168
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173         { echo "$as_me:$LINENO: result: no" >&5
16174 echo "${ECHO_T}no" >&6; }
16175
16176 cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_CRASHREPORTER_INFO 0
16178 _ACEOF
16179
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext \
16183       conftest$ac_exeext conftest.$ac_ext
16184
16185
16186
16187
16188   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16189 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16190 if test "${ac_cv_huge_val_sanity+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193
16194     ac_ext=cpp
16195 ac_cpp='$CXXCPP $CPPFLAGS'
16196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16199
16200     ac_save_CXXFLAGS=$CXXFLAGS
16201     CXXFLAGS="$CXXFLAGS -pedantic"
16202     if test "$cross_compiling" = yes; then
16203   ac_cv_huge_val_sanity=yes
16204 else
16205   cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211 #include <math.h>
16212 int
16213 main ()
16214 {
16215 double x = HUGE_VAL; return x != x;
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 rm -f conftest$ac_exeext
16221 if { (ac_try="$ac_link"
16222 case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_link") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16231   { (case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_try") 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; }; then
16240   ac_cv_huge_val_sanity=yes
16241 else
16242   echo "$as_me: program exited with status $ac_status" >&5
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ( exit $ac_status )
16247 ac_cv_huge_val_sanity=no
16248 fi
16249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16250 fi
16251
16252
16253     CXXFLAGS=$ac_save_CXXFLAGS
16254     ac_ext=c
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16259
16260
16261 fi
16262 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16263 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16264   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16265
16266
16267 { echo "$as_me:$LINENO: checking for pid_t" >&5
16268 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16269 if test "${ac_cv_type_pid_t+set}" = set; then
16270   echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272   cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278 $ac_includes_default
16279 typedef pid_t ac__type_new_;
16280 int
16281 main ()
16282 {
16283 if ((ac__type_new_ *) 0)
16284   return 0;
16285 if (sizeof (ac__type_new_))
16286   return 0;
16287   ;
16288   return 0;
16289 }
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (ac_try="$ac_compile"
16293 case "(($ac_try" in
16294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295   *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298   (eval "$ac_compile") 2>conftest.er1
16299   ac_status=$?
16300   grep -v '^ *+' conftest.er1 >conftest.err
16301   rm -f conftest.er1
16302   cat conftest.err >&5
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); } &&
16305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306   { (case "(($ac_try" in
16307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308   *) ac_try_echo=$ac_try;;
16309 esac
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311   (eval "$ac_try") 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); }; } &&
16315          { ac_try='test -s conftest.$ac_objext'
16316   { (case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_try") 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   ac_cv_type_pid_t=yes
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330         ac_cv_type_pid_t=no
16331 fi
16332
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16336 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16337 if test $ac_cv_type_pid_t = yes; then
16338   :
16339 else
16340
16341 cat >>confdefs.h <<_ACEOF
16342 #define pid_t int
16343 _ACEOF
16344
16345 fi
16346
16347 { echo "$as_me:$LINENO: checking for size_t" >&5
16348 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16349 if test "${ac_cv_type_size_t+set}" = set; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352   cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h.  */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h.  */
16358 $ac_includes_default
16359 typedef size_t ac__type_new_;
16360 int
16361 main ()
16362 {
16363 if ((ac__type_new_ *) 0)
16364   return 0;
16365 if (sizeof (ac__type_new_))
16366   return 0;
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375   *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378   (eval "$ac_compile") 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16386   { (case "(($ac_try" in
16387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388   *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391   (eval "$ac_try") 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest.$ac_objext'
16396   { (case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_try") 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   ac_cv_type_size_t=yes
16406 else
16407   echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16409
16410         ac_cv_type_size_t=no
16411 fi
16412
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 fi
16415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16417 if test $ac_cv_type_size_t = yes; then
16418   :
16419 else
16420
16421 cat >>confdefs.h <<_ACEOF
16422 #define size_t unsigned int
16423 _ACEOF
16424
16425 fi
16426
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define RETSIGTYPE void
16430 _ACEOF
16431
16432 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16433 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16434 if test "${ac_cv_struct_tm+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 #include <sys/types.h>
16444 #include <time.h>
16445
16446 int
16447 main ()
16448 {
16449 struct tm *tp; tp->tm_sec;
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458   *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461   (eval "$ac_compile") 2>conftest.er1
16462   ac_status=$?
16463   grep -v '^ *+' conftest.er1 >conftest.err
16464   rm -f conftest.er1
16465   cat conftest.err >&5
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469   { (case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_try") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_try") 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_struct_tm=time.h
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493         ac_cv_struct_tm=sys/time.h
16494 fi
16495
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 fi
16498 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16499 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16500 if test $ac_cv_struct_tm = sys/time.h; then
16501
16502 cat >>confdefs.h <<\_ACEOF
16503 #define TM_IN_SYS_TIME 1
16504 _ACEOF
16505
16506 fi
16507
16508 { echo "$as_me:$LINENO: checking for int64_t" >&5
16509 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16510 if test "${ac_cv_type_int64_t+set}" = set; then
16511   echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513   cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h.  */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h.  */
16519 $ac_includes_default
16520 typedef int64_t ac__type_new_;
16521 int
16522 main ()
16523 {
16524 if ((ac__type_new_ *) 0)
16525   return 0;
16526 if (sizeof (ac__type_new_))
16527   return 0;
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext
16533 if { (ac_try="$ac_compile"
16534 case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_compile") 2>conftest.er1
16540   ac_status=$?
16541   grep -v '^ *+' conftest.er1 >conftest.err
16542   rm -f conftest.er1
16543   cat conftest.err >&5
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } &&
16546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547   { (case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_try") 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; } &&
16556          { ac_try='test -s conftest.$ac_objext'
16557   { (case "(($ac_try" in
16558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559   *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562   (eval "$ac_try") 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_type_int64_t=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571         ac_cv_type_int64_t=no
16572 fi
16573
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 fi
16576 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16577 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16578 if test $ac_cv_type_int64_t = yes; then
16579
16580 cat >>confdefs.h <<_ACEOF
16581 #define HAVE_INT64_T 1
16582 _ACEOF
16583
16584
16585 else
16586   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16587 echo "$as_me: error: Type int64_t required but not found" >&2;}
16588    { (exit 1); exit 1; }; }
16589 fi
16590
16591 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16592 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16593 if test "${ac_cv_type_uint64_t+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h.  */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h.  */
16602 $ac_includes_default
16603 typedef uint64_t ac__type_new_;
16604 int
16605 main ()
16606 {
16607 if ((ac__type_new_ *) 0)
16608   return 0;
16609 if (sizeof (ac__type_new_))
16610   return 0;
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_compile") 2>conftest.er1
16623   ac_status=$?
16624   grep -v '^ *+' conftest.er1 >conftest.err
16625   rm -f conftest.er1
16626   cat conftest.err >&5
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } &&
16629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630   { (case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_try") 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_try") 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_cv_type_uint64_t=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654         ac_cv_type_uint64_t=no
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16660 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16661 if test $ac_cv_type_uint64_t = yes; then
16662
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_UINT64_T 1
16665 _ACEOF
16666
16667
16668 else
16669   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16670 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16671 if test "${ac_cv_type_u_int64_t+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 $ac_includes_default
16681 typedef u_int64_t ac__type_new_;
16682 int
16683 main ()
16684 {
16685 if ((ac__type_new_ *) 0)
16686   return 0;
16687 if (sizeof (ac__type_new_))
16688   return 0;
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (ac_try="$ac_compile"
16695 case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_compile") 2>conftest.er1
16701   ac_status=$?
16702   grep -v '^ *+' conftest.er1 >conftest.err
16703   rm -f conftest.er1
16704   cat conftest.err >&5
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } &&
16707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16708   { (case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_try") 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } &&
16717          { ac_try='test -s conftest.$ac_objext'
16718   { (case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723   (eval "$ac_try") 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727   ac_cv_type_u_int64_t=yes
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732         ac_cv_type_u_int64_t=no
16733 fi
16734
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 fi
16737 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16738 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16739 if test $ac_cv_type_u_int64_t = yes; then
16740
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_U_INT64_T 1
16743 _ACEOF
16744
16745
16746 else
16747   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16748 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16749    { (exit 1); exit 1; }; }
16750 fi
16751
16752 fi
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16764 do
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16779 #define $ac_func innocuous_$ac_func
16780
16781 /* System header to define __stub macros and hopefully few prototypes,
16782     which can conflict with char $ac_func (); below.
16783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784     <limits.h> exists even on freestanding compilers.  */
16785
16786 #ifdef __STDC__
16787 # include <limits.h>
16788 #else
16789 # include <assert.h>
16790 #endif
16791
16792 #undef $ac_func
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795    Use char because int might match the return type of a GCC
16796    builtin and then its argument prototype would still apply.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char $ac_func ();
16801 /* The GNU C library defines this for functions which it implements
16802     to always fail with ENOSYS.  Some functions are actually named
16803     something starting with __ and the normal name is an alias.  */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16805 choke me
16806 #endif
16807
16808 int
16809 main ()
16810 {
16811 return $ac_func ();
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_link") 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } &&
16830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831   { (case "(($ac_try" in
16832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833   *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836   (eval "$ac_try") 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; } &&
16840          { ac_try='test -s conftest$ac_exeext'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; }; then
16850   eval "$as_ac_var=yes"
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855         eval "$as_ac_var=no"
16856 fi
16857
16858 rm -f core conftest.err conftest.$ac_objext \
16859       conftest$ac_exeext conftest.$ac_ext
16860 fi
16861 ac_res=`eval echo '${'$as_ac_var'}'`
16862                { echo "$as_me:$LINENO: result: $ac_res" >&5
16863 echo "${ECHO_T}$ac_res" >&6; }
16864 if test `eval echo '${'$as_ac_var'}'` = yes; then
16865   cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16867 _ACEOF
16868
16869 fi
16870 done
16871
16872
16873
16874
16875
16876 for ac_func in powf fmodf strtof round
16877 do
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16892 #define $ac_func innocuous_$ac_func
16893
16894 /* System header to define __stub macros and hopefully few prototypes,
16895     which can conflict with char $ac_func (); below.
16896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897     <limits.h> exists even on freestanding compilers.  */
16898
16899 #ifdef __STDC__
16900 # include <limits.h>
16901 #else
16902 # include <assert.h>
16903 #endif
16904
16905 #undef $ac_func
16906
16907 /* Override any GCC internal prototype to avoid an error.
16908    Use char because int might match the return type of a GCC
16909    builtin and then its argument prototype would still apply.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char $ac_func ();
16914 /* The GNU C library defines this for functions which it implements
16915     to always fail with ENOSYS.  Some functions are actually named
16916     something starting with __ and the normal name is an alias.  */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16918 choke me
16919 #endif
16920
16921 int
16922 main ()
16923 {
16924 return $ac_func ();
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_link") 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_try") 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   eval "$as_ac_var=yes"
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968         eval "$as_ac_var=no"
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext \
16972       conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975                { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978   cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 fi
16983 done
16984
16985
16986
16987
16988
16989
16990 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16991 do
16992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17006 #define $ac_func innocuous_$ac_func
17007
17008 /* System header to define __stub macros and hopefully few prototypes,
17009     which can conflict with char $ac_func (); below.
17010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011     <limits.h> exists even on freestanding compilers.  */
17012
17013 #ifdef __STDC__
17014 # include <limits.h>
17015 #else
17016 # include <assert.h>
17017 #endif
17018
17019 #undef $ac_func
17020
17021 /* Override any GCC internal prototype to avoid an error.
17022    Use char because int might match the return type of a GCC
17023    builtin and then its argument prototype would still apply.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 char $ac_func ();
17028 /* The GNU C library defines this for functions which it implements
17029     to always fail with ENOSYS.  Some functions are actually named
17030     something starting with __ and the normal name is an alias.  */
17031 #if defined __stub_$ac_func || defined __stub___$ac_func
17032 choke me
17033 #endif
17034
17035 int
17036 main ()
17037 {
17038 return $ac_func ();
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
17045 case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_link") 2>conftest.er1
17051   ac_status=$?
17052   grep -v '^ *+' conftest.er1 >conftest.err
17053   rm -f conftest.er1
17054   cat conftest.err >&5
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } &&
17057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17058   { (case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_try") 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; } &&
17067          { ac_try='test -s conftest$ac_exeext'
17068   { (case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_try") 2>&5
17074   ac_status=$?
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); }; }; then
17077   eval "$as_ac_var=yes"
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         eval "$as_ac_var=no"
17083 fi
17084
17085 rm -f core conftest.err conftest.$ac_objext \
17086       conftest$ac_exeext conftest.$ac_ext
17087 fi
17088 ac_res=`eval echo '${'$as_ac_var'}'`
17089                { echo "$as_me:$LINENO: result: $ac_res" >&5
17090 echo "${ECHO_T}$ac_res" >&6; }
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092   cat >>confdefs.h <<_ACEOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17094 _ACEOF
17095
17096 fi
17097 done
17098
17099
17100
17101
17102 for ac_func in isatty mkdtemp mkstemp
17103 do
17104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17118 #define $ac_func innocuous_$ac_func
17119
17120 /* System header to define __stub macros and hopefully few prototypes,
17121     which can conflict with char $ac_func (); below.
17122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123     <limits.h> exists even on freestanding compilers.  */
17124
17125 #ifdef __STDC__
17126 # include <limits.h>
17127 #else
17128 # include <assert.h>
17129 #endif
17130
17131 #undef $ac_func
17132
17133 /* Override any GCC internal prototype to avoid an error.
17134    Use char because int might match the return type of a GCC
17135    builtin and then its argument prototype would still apply.  */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 char $ac_func ();
17140 /* The GNU C library defines this for functions which it implements
17141     to always fail with ENOSYS.  Some functions are actually named
17142     something starting with __ and the normal name is an alias.  */
17143 #if defined __stub_$ac_func || defined __stub___$ac_func
17144 choke me
17145 #endif
17146
17147 int
17148 main ()
17149 {
17150 return $ac_func ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_link") 2>conftest.er1
17163   ac_status=$?
17164   grep -v '^ *+' conftest.er1 >conftest.err
17165   rm -f conftest.er1
17166   cat conftest.err >&5
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17170   { (case "(($ac_try" in
17171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172   *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175   (eval "$ac_try") 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; } &&
17179          { ac_try='test -s conftest$ac_exeext'
17180   { (case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_try") 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; }; then
17189   eval "$as_ac_var=yes"
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194         eval "$as_ac_var=no"
17195 fi
17196
17197 rm -f core conftest.err conftest.$ac_objext \
17198       conftest$ac_exeext conftest.$ac_ext
17199 fi
17200 ac_res=`eval echo '${'$as_ac_var'}'`
17201                { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203 if test `eval echo '${'$as_ac_var'}'` = yes; then
17204   cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17206 _ACEOF
17207
17208 fi
17209 done
17210
17211
17212
17213
17214
17215
17216
17217
17218 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17219 do
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17234 #define $ac_func innocuous_$ac_func
17235
17236 /* System header to define __stub macros and hopefully few prototypes,
17237     which can conflict with char $ac_func (); below.
17238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239     <limits.h> exists even on freestanding compilers.  */
17240
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17246
17247 #undef $ac_func
17248
17249 /* Override any GCC internal prototype to avoid an error.
17250    Use char because int might match the return type of a GCC
17251    builtin and then its argument prototype would still apply.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char $ac_func ();
17256 /* The GNU C library defines this for functions which it implements
17257     to always fail with ENOSYS.  Some functions are actually named
17258     something starting with __ and the normal name is an alias.  */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 choke me
17261 #endif
17262
17263 int
17264 main ()
17265 {
17266 return $ac_func ();
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_link") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } &&
17285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286   { (case "(($ac_try" in
17287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288   *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291   (eval "$ac_try") 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; } &&
17295          { ac_try='test -s conftest$ac_exeext'
17296   { (case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_try") 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305   eval "$as_ac_var=yes"
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310         eval "$as_ac_var=no"
17311 fi
17312
17313 rm -f core conftest.err conftest.$ac_objext \
17314       conftest$ac_exeext conftest.$ac_ext
17315 fi
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317                { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320   cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 _ACEOF
17323
17324 fi
17325 done
17326
17327
17328
17329
17330
17331 for ac_func in strerror strerror_r setenv arc4random
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17347 #define $ac_func innocuous_$ac_func
17348
17349 /* System header to define __stub macros and hopefully few prototypes,
17350     which can conflict with char $ac_func (); below.
17351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352     <limits.h> exists even on freestanding compilers.  */
17353
17354 #ifdef __STDC__
17355 # include <limits.h>
17356 #else
17357 # include <assert.h>
17358 #endif
17359
17360 #undef $ac_func
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363    Use char because int might match the return type of a GCC
17364    builtin and then its argument prototype would still apply.  */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370     to always fail with ENOSYS.  Some functions are actually named
17371     something starting with __ and the normal name is an alias.  */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 choke me
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 return $ac_func ();
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_link") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } &&
17398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399   { (case "(($ac_try" in
17400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401   *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404   (eval "$ac_try") 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; } &&
17408          { ac_try='test -s conftest$ac_exeext'
17409   { (case "(($ac_try" in
17410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411   *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414   (eval "$ac_try") 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; }; then
17418   eval "$as_ac_var=yes"
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423         eval "$as_ac_var=no"
17424 fi
17425
17426 rm -f core conftest.err conftest.$ac_objext \
17427       conftest$ac_exeext conftest.$ac_ext
17428 fi
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430                { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433   cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17435 _ACEOF
17436
17437 fi
17438 done
17439
17440
17441
17442
17443
17444 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17445 do
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17460 #define $ac_func innocuous_$ac_func
17461
17462 /* System header to define __stub macros and hopefully few prototypes,
17463     which can conflict with char $ac_func (); below.
17464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465     <limits.h> exists even on freestanding compilers.  */
17466
17467 #ifdef __STDC__
17468 # include <limits.h>
17469 #else
17470 # include <assert.h>
17471 #endif
17472
17473 #undef $ac_func
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char $ac_func ();
17482 /* The GNU C library defines this for functions which it implements
17483     to always fail with ENOSYS.  Some functions are actually named
17484     something starting with __ and the normal name is an alias.  */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 choke me
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return $ac_func ();
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_link") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; } &&
17521          { ac_try='test -s conftest$ac_exeext'
17522   { (case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_try") 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   eval "$as_ac_var=yes"
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536         eval "$as_ac_var=no"
17537 fi
17538
17539 rm -f core conftest.err conftest.$ac_objext \
17540       conftest$ac_exeext conftest.$ac_ext
17541 fi
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543                { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546   cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17548 _ACEOF
17549
17550 fi
17551 done
17552
17553
17554
17555
17556
17557
17558 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17559 do
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17574 #define $ac_func innocuous_$ac_func
17575
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char $ac_func (); below.
17578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579     <limits.h> exists even on freestanding compilers.  */
17580
17581 #ifdef __STDC__
17582 # include <limits.h>
17583 #else
17584 # include <assert.h>
17585 #endif
17586
17587 #undef $ac_func
17588
17589 /* Override any GCC internal prototype to avoid an error.
17590    Use char because int might match the return type of a GCC
17591    builtin and then its argument prototype would still apply.  */
17592 #ifdef __cplusplus
17593 extern "C"
17594 #endif
17595 char $ac_func ();
17596 /* The GNU C library defines this for functions which it implements
17597     to always fail with ENOSYS.  Some functions are actually named
17598     something starting with __ and the normal name is an alias.  */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 choke me
17601 #endif
17602
17603 int
17604 main ()
17605 {
17606 return $ac_func ();
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_link") 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626   { (case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_try") 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; } &&
17635          { ac_try='test -s conftest$ac_exeext'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; }; then
17645   eval "$as_ac_var=yes"
17646 else
17647   echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650         eval "$as_ac_var=no"
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext \
17654       conftest$ac_exeext conftest.$ac_ext
17655 fi
17656 ac_res=`eval echo '${'$as_ac_var'}'`
17657                { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_var'}'` = yes; then
17660   cat >>confdefs.h <<_ACEOF
17661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17662 _ACEOF
17663
17664 fi
17665 done
17666
17667 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17668 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17669 if test "${llvm_cv_c_printf_a+set}" = set; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672   ac_ext=c
17673 ac_cpp='$CPP $CPPFLAGS'
17674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17677
17678  if test "$cross_compiling" = yes; then
17679   llvmac_cv_c_printf_a=no
17680 else
17681   cat >conftest.$ac_ext <<_ACEOF
17682
17683   /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 #include <stdio.h>
17690 #include <stdlib.h>
17691
17692 int
17693 main ()
17694 {
17695
17696 volatile double A, B;
17697 char Buffer[100];
17698 A = 1;
17699 A /= 10.0;
17700 sprintf(Buffer, "%a", A);
17701 B = atof(Buffer);
17702 if (A != B)
17703   return (1);
17704 if (A != 0x1.999999999999ap-4)
17705   return (1);
17706 return (0);
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest$ac_exeext
17712 if { (ac_try="$ac_link"
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_link") 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; }; then
17731   llvm_cv_c_printf_a=yes
17732 else
17733   echo "$as_me: program exited with status $ac_status" >&5
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ( exit $ac_status )
17738 llvmac_cv_c_printf_a=no
17739 fi
17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17741 fi
17742
17743
17744  ac_ext=c
17745 ac_cpp='$CPP $CPPFLAGS'
17746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17749
17750 fi
17751 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17752 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17753  if test "$llvm_cv_c_printf_a" = "yes"; then
17754
17755 cat >>confdefs.h <<\_ACEOF
17756 #define HAVE_PRINTF_A 1
17757 _ACEOF
17758
17759  fi
17760
17761
17762 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17763 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17764 if test "${ac_cv_func_rand48+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   ac_ext=cpp
17768 ac_cpp='$CXXCPP $CPPFLAGS'
17769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17772
17773    cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779 #include <stdlib.h>
17780 int
17781 main ()
17782 {
17783 srand48(0);lrand48();drand48();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_compile") 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17803   { (case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_try") 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest.$ac_objext'
17813   { (case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818   (eval "$ac_try") 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   ac_cv_func_rand48=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827         ac_cv_func_rand48=no
17828 fi
17829
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831   ac_ext=c
17832 ac_cpp='$CPP $CPPFLAGS'
17833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17836
17837 fi
17838 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17839 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17840
17841 if test "$ac_cv_func_rand48" = "yes" ; then
17842
17843 cat >>confdefs.h <<\_ACEOF
17844 #define HAVE_RAND48 1
17845 _ACEOF
17846
17847 fi
17848
17849
17850 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17851 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17852 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17853   echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855   cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h.  */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h.  */
17861 $ac_includes_default
17862 int
17863 main ()
17864 {
17865 #ifndef strerror_s
17866   char *p = (char *) strerror_s;
17867   return !p;
17868 #endif
17869
17870   ;
17871   return 0;
17872 }
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (ac_try="$ac_compile"
17876 case "(($ac_try" in
17877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878   *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881   (eval "$ac_compile") 2>conftest.er1
17882   ac_status=$?
17883   grep -v '^ *+' conftest.er1 >conftest.err
17884   rm -f conftest.er1
17885   cat conftest.err >&5
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889   { (case "(($ac_try" in
17890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891   *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894   (eval "$ac_try") 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; } &&
17898          { ac_try='test -s conftest.$ac_objext'
17899   { (case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904   (eval "$ac_try") 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }; then
17908   ac_cv_have_decl_strerror_s=yes
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913         ac_cv_have_decl_strerror_s=no
17914 fi
17915
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 fi
17918 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17919 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17920 if test $ac_cv_have_decl_strerror_s = yes; then
17921
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_DECL_STRERROR_S 1
17924 _ACEOF
17925
17926
17927 else
17928   cat >>confdefs.h <<_ACEOF
17929 #define HAVE_DECL_STRERROR_S 0
17930 _ACEOF
17931
17932
17933 fi
17934
17935
17936
17937 if test "$llvm_cv_os_type" = "MingW" ; then
17938   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17939 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17940 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17941   echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943   ac_check_lib_save_LIBS=$LIBS
17944 LIBS="-lgcc  $LIBS"
17945 cat >conftest.$ac_ext <<_ACEOF
17946 /* confdefs.h.  */
17947 _ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h.  */
17951
17952 /* Override any GCC internal prototype to avoid an error.
17953    Use char because int might match the return type of a GCC
17954    builtin and then its argument prototype would still apply.  */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 char _alloca ();
17959 int
17960 main ()
17961 {
17962 return _alloca ();
17963   ;
17964   return 0;
17965 }
17966 _ACEOF
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (ac_try="$ac_link"
17969 case "(($ac_try" in
17970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971   *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974   (eval "$ac_link") 2>conftest.er1
17975   ac_status=$?
17976   grep -v '^ *+' conftest.er1 >conftest.err
17977   rm -f conftest.er1
17978   cat conftest.err >&5
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); } &&
17981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17982   { (case "(($ac_try" in
17983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984   *) ac_try_echo=$ac_try;;
17985 esac
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987   (eval "$ac_try") 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest$ac_exeext'
17992   { (case "(($ac_try" in
17993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994   *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997   (eval "$ac_try") 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; }; then
18001   ac_cv_lib_gcc__alloca=yes
18002 else
18003   echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006         ac_cv_lib_gcc__alloca=no
18007 fi
18008
18009 rm -f core conftest.err conftest.$ac_objext \
18010       conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18012 fi
18013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18014 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18015 if test $ac_cv_lib_gcc__alloca = yes; then
18016
18017 cat >>confdefs.h <<\_ACEOF
18018 #define HAVE__ALLOCA 1
18019 _ACEOF
18020
18021 fi
18022
18023   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18024 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18025 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-lgcc  $LIBS"
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036
18037 /* Override any GCC internal prototype to avoid an error.
18038    Use char because int might match the return type of a GCC
18039    builtin and then its argument prototype would still apply.  */
18040 #ifdef __cplusplus
18041 extern "C"
18042 #endif
18043 char __alloca ();
18044 int
18045 main ()
18046 {
18047 return __alloca ();
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (ac_try="$ac_link"
18054 case "(($ac_try" in
18055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056   *) ac_try_echo=$ac_try;;
18057 esac
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059   (eval "$ac_link") 2>conftest.er1
18060   ac_status=$?
18061   grep -v '^ *+' conftest.er1 >conftest.err
18062   rm -f conftest.er1
18063   cat conftest.err >&5
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } &&
18066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; } &&
18076          { ac_try='test -s conftest$ac_exeext'
18077   { (case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_try") 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; }; then
18086   ac_cv_lib_gcc___alloca=yes
18087 else
18088   echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18090
18091         ac_cv_lib_gcc___alloca=no
18092 fi
18093
18094 rm -f core conftest.err conftest.$ac_objext \
18095       conftest$ac_exeext conftest.$ac_ext
18096 LIBS=$ac_check_lib_save_LIBS
18097 fi
18098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18099 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18100 if test $ac_cv_lib_gcc___alloca = yes; then
18101
18102 cat >>confdefs.h <<\_ACEOF
18103 #define HAVE___ALLOCA 1
18104 _ACEOF
18105
18106 fi
18107
18108   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18109 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18110 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18111   echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113   ac_check_lib_save_LIBS=$LIBS
18114 LIBS="-lgcc  $LIBS"
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121
18122 /* Override any GCC internal prototype to avoid an error.
18123    Use char because int might match the return type of a GCC
18124    builtin and then its argument prototype would still apply.  */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char __chkstk ();
18129 int
18130 main ()
18131 {
18132 return __chkstk ();
18133   ;
18134   return 0;
18135 }
18136 _ACEOF
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141   *) ac_try_echo=$ac_try;;
18142 esac
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144   (eval "$ac_link") 2>conftest.er1
18145   ac_status=$?
18146   grep -v '^ *+' conftest.er1 >conftest.err
18147   rm -f conftest.er1
18148   cat conftest.err >&5
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); } &&
18151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18152   { (case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_try") 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; } &&
18161          { ac_try='test -s conftest$ac_exeext'
18162   { (case "(($ac_try" in
18163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164   *) ac_try_echo=$ac_try;;
18165 esac
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167   (eval "$ac_try") 2>&5
18168   ac_status=$?
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); }; }; then
18171   ac_cv_lib_gcc___chkstk=yes
18172 else
18173   echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176         ac_cv_lib_gcc___chkstk=no
18177 fi
18178
18179 rm -f core conftest.err conftest.$ac_objext \
18180       conftest$ac_exeext conftest.$ac_ext
18181 LIBS=$ac_check_lib_save_LIBS
18182 fi
18183 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18184 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18185 if test $ac_cv_lib_gcc___chkstk = yes; then
18186
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE___CHKSTK 1
18189 _ACEOF
18190
18191 fi
18192
18193   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18194 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18195 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198   ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-lgcc  $LIBS"
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 /* Override any GCC internal prototype to avoid an error.
18208    Use char because int might match the return type of a GCC
18209    builtin and then its argument prototype would still apply.  */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char ___chkstk ();
18214 int
18215 main ()
18216 {
18217 return ___chkstk ();
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229   (eval "$ac_link") 2>conftest.er1
18230   ac_status=$?
18231   grep -v '^ *+' conftest.er1 >conftest.err
18232   rm -f conftest.er1
18233   cat conftest.err >&5
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); } &&
18236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237   { (case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; } &&
18246          { ac_try='test -s conftest$ac_exeext'
18247   { (case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_try") 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   ac_cv_lib_gcc____chkstk=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261         ac_cv_lib_gcc____chkstk=no
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext \
18265       conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18267 fi
18268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18269 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18270 if test $ac_cv_lib_gcc____chkstk = yes; then
18271
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE____CHKSTK 1
18274 _ACEOF
18275
18276 fi
18277
18278
18279   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18280 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18281 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   ac_check_lib_save_LIBS=$LIBS
18285 LIBS="-lgcc  $LIBS"
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h.  */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h.  */
18292
18293 /* Override any GCC internal prototype to avoid an error.
18294    Use char because int might match the return type of a GCC
18295    builtin and then its argument prototype would still apply.  */
18296 #ifdef __cplusplus
18297 extern "C"
18298 #endif
18299 char __ashldi3 ();
18300 int
18301 main ()
18302 {
18303 return __ashldi3 ();
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest.$ac_objext conftest$ac_exeext
18309 if { (ac_try="$ac_link"
18310 case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_link") 2>conftest.er1
18316   ac_status=$?
18317   grep -v '^ *+' conftest.er1 >conftest.err
18318   rm -f conftest.er1
18319   cat conftest.err >&5
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); } &&
18322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18323   { (case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_try") 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); }; } &&
18332          { ac_try='test -s conftest$ac_exeext'
18333   { (case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_try") 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; }; then
18342   ac_cv_lib_gcc___ashldi3=yes
18343 else
18344   echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347         ac_cv_lib_gcc___ashldi3=no
18348 fi
18349
18350 rm -f core conftest.err conftest.$ac_objext \
18351       conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18353 fi
18354 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18355 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18356 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18357
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE___ASHLDI3 1
18360 _ACEOF
18361
18362 fi
18363
18364   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18365 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18366 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lgcc  $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377
18378 /* Override any GCC internal prototype to avoid an error.
18379    Use char because int might match the return type of a GCC
18380    builtin and then its argument prototype would still apply.  */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char __ashrdi3 ();
18385 int
18386 main ()
18387 {
18388 return __ashrdi3 ();
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397   *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400   (eval "$ac_link") 2>conftest.er1
18401   ac_status=$?
18402   grep -v '^ *+' conftest.er1 >conftest.err
18403   rm -f conftest.er1
18404   cat conftest.err >&5
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); } &&
18407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18408   { (case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_try") 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); }; } &&
18417          { ac_try='test -s conftest$ac_exeext'
18418   { (case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423   (eval "$ac_try") 2>&5
18424   ac_status=$?
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); }; }; then
18427   ac_cv_lib_gcc___ashrdi3=yes
18428 else
18429   echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432         ac_cv_lib_gcc___ashrdi3=no
18433 fi
18434
18435 rm -f core conftest.err conftest.$ac_objext \
18436       conftest$ac_exeext conftest.$ac_ext
18437 LIBS=$ac_check_lib_save_LIBS
18438 fi
18439 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18440 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18441 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18442
18443 cat >>confdefs.h <<\_ACEOF
18444 #define HAVE___ASHRDI3 1
18445 _ACEOF
18446
18447 fi
18448
18449   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18450 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18451 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18452   echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454   ac_check_lib_save_LIBS=$LIBS
18455 LIBS="-lgcc  $LIBS"
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462
18463 /* Override any GCC internal prototype to avoid an error.
18464    Use char because int might match the return type of a GCC
18465    builtin and then its argument prototype would still apply.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char __divdi3 ();
18470 int
18471 main ()
18472 {
18473 return __divdi3 ();
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (ac_try="$ac_link"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_link") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } &&
18492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493   { (case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_try") 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; } &&
18502          { ac_try='test -s conftest$ac_exeext'
18503   { (case "(($ac_try" in
18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505   *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508   (eval "$ac_try") 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; }; then
18512   ac_cv_lib_gcc___divdi3=yes
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517         ac_cv_lib_gcc___divdi3=no
18518 fi
18519
18520 rm -f core conftest.err conftest.$ac_objext \
18521       conftest$ac_exeext conftest.$ac_ext
18522 LIBS=$ac_check_lib_save_LIBS
18523 fi
18524 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18525 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18526 if test $ac_cv_lib_gcc___divdi3 = yes; then
18527
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE___DIVDI3 1
18530 _ACEOF
18531
18532 fi
18533
18534   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18535 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18536 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   ac_check_lib_save_LIBS=$LIBS
18540 LIBS="-lgcc  $LIBS"
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547
18548 /* Override any GCC internal prototype to avoid an error.
18549    Use char because int might match the return type of a GCC
18550    builtin and then its argument prototype would still apply.  */
18551 #ifdef __cplusplus
18552 extern "C"
18553 #endif
18554 char __fixdfdi ();
18555 int
18556 main ()
18557 {
18558 return __fixdfdi ();
18559   ;
18560   return 0;
18561 }
18562 _ACEOF
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (ac_try="$ac_link"
18565 case "(($ac_try" in
18566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567   *) ac_try_echo=$ac_try;;
18568 esac
18569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570   (eval "$ac_link") 2>conftest.er1
18571   ac_status=$?
18572   grep -v '^ *+' conftest.er1 >conftest.err
18573   rm -f conftest.er1
18574   cat conftest.err >&5
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } &&
18577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18578   { (case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_try") 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; } &&
18587          { ac_try='test -s conftest$ac_exeext'
18588   { (case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593   (eval "$ac_try") 2>&5
18594   ac_status=$?
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); }; }; then
18597   ac_cv_lib_gcc___fixdfdi=yes
18598 else
18599   echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18601
18602         ac_cv_lib_gcc___fixdfdi=no
18603 fi
18604
18605 rm -f core conftest.err conftest.$ac_objext \
18606       conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18608 fi
18609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18610 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18611 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18612
18613 cat >>confdefs.h <<\_ACEOF
18614 #define HAVE___FIXDFDI 1
18615 _ACEOF
18616
18617 fi
18618
18619   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18620 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18621 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18622   echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624   ac_check_lib_save_LIBS=$LIBS
18625 LIBS="-lgcc  $LIBS"
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 /* Override any GCC internal prototype to avoid an error.
18634    Use char because int might match the return type of a GCC
18635    builtin and then its argument prototype would still apply.  */
18636 #ifdef __cplusplus
18637 extern "C"
18638 #endif
18639 char __fixsfdi ();
18640 int
18641 main ()
18642 {
18643 return __fixsfdi ();
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_link") 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } &&
18662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18663   { (case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668   (eval "$ac_try") 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; } &&
18672          { ac_try='test -s conftest$ac_exeext'
18673   { (case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_try") 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; }; then
18682   ac_cv_lib_gcc___fixsfdi=yes
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687         ac_cv_lib_gcc___fixsfdi=no
18688 fi
18689
18690 rm -f core conftest.err conftest.$ac_objext \
18691       conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18693 fi
18694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18695 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18696 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18697
18698 cat >>confdefs.h <<\_ACEOF
18699 #define HAVE___FIXSFDI 1
18700 _ACEOF
18701
18702 fi
18703
18704   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18705 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18706 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lgcc  $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 /* Override any GCC internal prototype to avoid an error.
18719    Use char because int might match the return type of a GCC
18720    builtin and then its argument prototype would still apply.  */
18721 #ifdef __cplusplus
18722 extern "C"
18723 #endif
18724 char __floatdidf ();
18725 int
18726 main ()
18727 {
18728 return __floatdidf ();
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_link") 2>conftest.er1
18741   ac_status=$?
18742   grep -v '^ *+' conftest.er1 >conftest.err
18743   rm -f conftest.er1
18744   cat conftest.err >&5
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18748   { (case "(($ac_try" in
18749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750   *) ac_try_echo=$ac_try;;
18751 esac
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753   (eval "$ac_try") 2>&5
18754   ac_status=$?
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); }; } &&
18757          { ac_try='test -s conftest$ac_exeext'
18758   { (case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_try") 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   ac_cv_lib_gcc___floatdidf=yes
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772         ac_cv_lib_gcc___floatdidf=no
18773 fi
18774
18775 rm -f core conftest.err conftest.$ac_objext \
18776       conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18778 fi
18779 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18780 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18781 if test $ac_cv_lib_gcc___floatdidf = yes; then
18782
18783 cat >>confdefs.h <<\_ACEOF
18784 #define HAVE___FLOATDIDF 1
18785 _ACEOF
18786
18787 fi
18788
18789   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18790 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18791 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   ac_check_lib_save_LIBS=$LIBS
18795 LIBS="-lgcc  $LIBS"
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h.  */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h.  */
18802
18803 /* Override any GCC internal prototype to avoid an error.
18804    Use char because int might match the return type of a GCC
18805    builtin and then its argument prototype would still apply.  */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 char __lshrdi3 ();
18810 int
18811 main ()
18812 {
18813 return __lshrdi3 ();
18814   ;
18815   return 0;
18816 }
18817 _ACEOF
18818 rm -f conftest.$ac_objext conftest$ac_exeext
18819 if { (ac_try="$ac_link"
18820 case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_link") 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } &&
18832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18833   { (case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_try") 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; } &&
18842          { ac_try='test -s conftest$ac_exeext'
18843   { (case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_try") 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; }; then
18852   ac_cv_lib_gcc___lshrdi3=yes
18853 else
18854   echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857         ac_cv_lib_gcc___lshrdi3=no
18858 fi
18859
18860 rm -f core conftest.err conftest.$ac_objext \
18861       conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18863 fi
18864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18865 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18866 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18867
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE___LSHRDI3 1
18870 _ACEOF
18871
18872 fi
18873
18874   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18875 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18876 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18877   echo $ECHO_N "(cached) $ECHO_C" >&6
18878 else
18879   ac_check_lib_save_LIBS=$LIBS
18880 LIBS="-lgcc  $LIBS"
18881 cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h.  */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h.  */
18887
18888 /* Override any GCC internal prototype to avoid an error.
18889    Use char because int might match the return type of a GCC
18890    builtin and then its argument prototype would still apply.  */
18891 #ifdef __cplusplus
18892 extern "C"
18893 #endif
18894 char __moddi3 ();
18895 int
18896 main ()
18897 {
18898 return __moddi3 ();
18899   ;
18900   return 0;
18901 }
18902 _ACEOF
18903 rm -f conftest.$ac_objext conftest$ac_exeext
18904 if { (ac_try="$ac_link"
18905 case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_link") 2>conftest.er1
18911   ac_status=$?
18912   grep -v '^ *+' conftest.er1 >conftest.err
18913   rm -f conftest.er1
18914   cat conftest.err >&5
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); } &&
18917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918   { (case "(($ac_try" in
18919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920   *) ac_try_echo=$ac_try;;
18921 esac
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923   (eval "$ac_try") 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; } &&
18927          { ac_try='test -s conftest$ac_exeext'
18928   { (case "(($ac_try" in
18929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930   *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_try") 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; }; then
18937   ac_cv_lib_gcc___moddi3=yes
18938 else
18939   echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942         ac_cv_lib_gcc___moddi3=no
18943 fi
18944
18945 rm -f core conftest.err conftest.$ac_objext \
18946       conftest$ac_exeext conftest.$ac_ext
18947 LIBS=$ac_check_lib_save_LIBS
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18950 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18951 if test $ac_cv_lib_gcc___moddi3 = yes; then
18952
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE___MODDI3 1
18955 _ACEOF
18956
18957 fi
18958
18959   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18960 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18961 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18962   echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964   ac_check_lib_save_LIBS=$LIBS
18965 LIBS="-lgcc  $LIBS"
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972
18973 /* Override any GCC internal prototype to avoid an error.
18974    Use char because int might match the return type of a GCC
18975    builtin and then its argument prototype would still apply.  */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char __udivdi3 ();
18980 int
18981 main ()
18982 {
18983 return __udivdi3 ();
18984   ;
18985   return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_link") 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } &&
19002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19003   { (case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_try") 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; } &&
19012          { ac_try='test -s conftest$ac_exeext'
19013   { (case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018   (eval "$ac_try") 2>&5
19019   ac_status=$?
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); }; }; then
19022   ac_cv_lib_gcc___udivdi3=yes
19023 else
19024   echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19026
19027         ac_cv_lib_gcc___udivdi3=no
19028 fi
19029
19030 rm -f core conftest.err conftest.$ac_objext \
19031       conftest$ac_exeext conftest.$ac_ext
19032 LIBS=$ac_check_lib_save_LIBS
19033 fi
19034 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19035 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19036 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19037
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE___UDIVDI3 1
19040 _ACEOF
19041
19042 fi
19043
19044   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19045 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19046 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   ac_check_lib_save_LIBS=$LIBS
19050 LIBS="-lgcc  $LIBS"
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057
19058 /* Override any GCC internal prototype to avoid an error.
19059    Use char because int might match the return type of a GCC
19060    builtin and then its argument prototype would still apply.  */
19061 #ifdef __cplusplus
19062 extern "C"
19063 #endif
19064 char __umoddi3 ();
19065 int
19066 main ()
19067 {
19068 return __umoddi3 ();
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_link") 2>conftest.er1
19081   ac_status=$?
19082   grep -v '^ *+' conftest.er1 >conftest.err
19083   rm -f conftest.er1
19084   cat conftest.err >&5
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } &&
19087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088   { (case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_try") 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; } &&
19097          { ac_try='test -s conftest$ac_exeext'
19098   { (case "(($ac_try" in
19099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100   *) ac_try_echo=$ac_try;;
19101 esac
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103   (eval "$ac_try") 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_cv_lib_gcc___umoddi3=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112         ac_cv_lib_gcc___umoddi3=no
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext \
19116       conftest$ac_exeext conftest.$ac_ext
19117 LIBS=$ac_check_lib_save_LIBS
19118 fi
19119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19120 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19121 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19122
19123 cat >>confdefs.h <<\_ACEOF
19124 #define HAVE___UMODDI3 1
19125 _ACEOF
19126
19127 fi
19128
19129
19130   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19131 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19132 if test "${ac_cv_lib_gcc___main+set}" = set; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   ac_check_lib_save_LIBS=$LIBS
19136 LIBS="-lgcc  $LIBS"
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143
19144 /* Override any GCC internal prototype to avoid an error.
19145    Use char because int might match the return type of a GCC
19146    builtin and then its argument prototype would still apply.  */
19147 #ifdef __cplusplus
19148 extern "C"
19149 #endif
19150 char __main ();
19151 int
19152 main ()
19153 {
19154 return __main ();
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_link") 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } &&
19173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19174   { (case "(($ac_try" in
19175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176   *) ac_try_echo=$ac_try;;
19177 esac
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179   (eval "$ac_try") 2>&5
19180   ac_status=$?
19181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182   (exit $ac_status); }; } &&
19183          { ac_try='test -s conftest$ac_exeext'
19184   { (case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_try") 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; }; then
19193   ac_cv_lib_gcc___main=yes
19194 else
19195   echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19197
19198         ac_cv_lib_gcc___main=no
19199 fi
19200
19201 rm -f core conftest.err conftest.$ac_objext \
19202       conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19204 fi
19205 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19206 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19207 if test $ac_cv_lib_gcc___main = yes; then
19208
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE___MAIN 1
19211 _ACEOF
19212
19213 fi
19214
19215   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19216 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19217 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19218   echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220   ac_check_lib_save_LIBS=$LIBS
19221 LIBS="-lgcc  $LIBS"
19222 cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228
19229 /* Override any GCC internal prototype to avoid an error.
19230    Use char because int might match the return type of a GCC
19231    builtin and then its argument prototype would still apply.  */
19232 #ifdef __cplusplus
19233 extern "C"
19234 #endif
19235 char __cmpdi2 ();
19236 int
19237 main ()
19238 {
19239 return __cmpdi2 ();
19240   ;
19241   return 0;
19242 }
19243 _ACEOF
19244 rm -f conftest.$ac_objext conftest$ac_exeext
19245 if { (ac_try="$ac_link"
19246 case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_link") 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } &&
19258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19259   { (case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_try") 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; } &&
19268          { ac_try='test -s conftest$ac_exeext'
19269   { (case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_try") 2>&5
19275   ac_status=$?
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); }; }; then
19278   ac_cv_lib_gcc___cmpdi2=yes
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283         ac_cv_lib_gcc___cmpdi2=no
19284 fi
19285
19286 rm -f core conftest.err conftest.$ac_objext \
19287       conftest$ac_exeext conftest.$ac_ext
19288 LIBS=$ac_check_lib_save_LIBS
19289 fi
19290 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19291 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19292 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19293
19294 cat >>confdefs.h <<\_ACEOF
19295 #define HAVE___CMPDI2 1
19296 _ACEOF
19297
19298 fi
19299
19300 fi
19301
19302 if test "$llvm_cv_os_type" = "MingW" ; then
19303   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19304 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19305   cat >conftest.$ac_ext <<_ACEOF
19306 #include <windows.h>
19307 #include <imagehlp.h>
19308 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19309 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (ac_try="$ac_compile"
19313 case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_compile") 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } &&
19325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19326   { (case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_try") 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; } &&
19335          { ac_try='test -s conftest.$ac_objext'
19336   { (case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_try") 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; }; then
19345
19346   { echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6; }
19348   llvm_cv_win32_elmcb_pcstr="PCSTR"
19349
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354
19355   { echo "$as_me:$LINENO: result: no" >&5
19356 echo "${ECHO_T}no" >&6; }
19357   llvm_cv_win32_elmcb_pcstr="PSTR"
19358
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19365 _ACEOF
19366
19367 fi
19368
19369
19370 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19371 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19372 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19373   echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375   ac_ext=cpp
19376 ac_cpp='$CXXCPP $CPPFLAGS'
19377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380
19381    cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387 #include <math.h>
19388 int
19389 main ()
19390 {
19391 float f; isnan(f);
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (ac_try="$ac_compile"
19398 case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_compile") 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } &&
19410          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19411   { (case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_try") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; } &&
19420          { ac_try='test -s conftest.$ac_objext'
19421   { (case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_try") 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   ac_cv_func_isnan_in_math_h=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435         ac_cv_func_isnan_in_math_h=no
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439   ac_ext=c
19440 ac_cpp='$CPP $CPPFLAGS'
19441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19444
19445 fi
19446 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19447 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19448
19449
19450 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19451
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_ISNAN_IN_MATH_H 1
19454 _ACEOF
19455
19456 fi
19457
19458 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19459 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19460 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   ac_ext=cpp
19464 ac_cpp='$CXXCPP $CPPFLAGS'
19465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19468
19469    cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 #include <cmath>
19476 int
19477 main ()
19478 {
19479 float f; isnan(f);
19480   ;
19481   return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491   (eval "$ac_compile") 2>conftest.er1
19492   ac_status=$?
19493   grep -v '^ *+' conftest.er1 >conftest.err
19494   rm -f conftest.er1
19495   cat conftest.err >&5
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); } &&
19498          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19499   { (case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_try") 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; } &&
19508          { ac_try='test -s conftest.$ac_objext'
19509   { (case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_try") 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   ac_cv_func_isnan_in_cmath=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523         ac_cv_func_isnan_in_cmath=no
19524 fi
19525
19526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527   ac_ext=c
19528 ac_cpp='$CPP $CPPFLAGS'
19529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532
19533 fi
19534 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19535 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19536
19537 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19538
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_ISNAN_IN_CMATH 1
19541 _ACEOF
19542
19543 fi
19544
19545 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19546 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19547 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   ac_ext=cpp
19551 ac_cpp='$CXXCPP $CPPFLAGS'
19552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555
19556    cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562 #include <cmath>
19563 int
19564 main ()
19565 {
19566 float f; std::isnan(f);
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_compile") 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19586   { (case "(($ac_try" in
19587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588   *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591   (eval "$ac_try") 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; } &&
19595          { ac_try='test -s conftest.$ac_objext'
19596   { (case "(($ac_try" in
19597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598   *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601   (eval "$ac_try") 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_func_std_isnan_in_cmath=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         ac_cv_func_std_isnan_in_cmath=no
19611 fi
19612
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614   ac_ext=c
19615 ac_cpp='$CPP $CPPFLAGS'
19616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619
19620 fi
19621 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19622 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19623
19624 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_STD_ISNAN_IN_CMATH 1
19628 _ACEOF
19629
19630 fi
19631
19632
19633 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19634 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19635 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638   ac_ext=cpp
19639 ac_cpp='$CXXCPP $CPPFLAGS'
19640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19643
19644    cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 #include <math.h>
19651 int
19652 main ()
19653 {
19654 float f; isinf(f);
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666   (eval "$ac_compile") 2>conftest.er1
19667   ac_status=$?
19668   grep -v '^ *+' conftest.er1 >conftest.err
19669   rm -f conftest.er1
19670   cat conftest.err >&5
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } &&
19673          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19674   { (case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_try") 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; } &&
19683          { ac_try='test -s conftest.$ac_objext'
19684   { (case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_try") 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; }; then
19693   ac_cv_func_isinf_in_math_h=yes
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698         ac_cv_func_isinf_in_math_h=no
19699 fi
19700
19701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702   ac_ext=c
19703 ac_cpp='$CPP $CPPFLAGS'
19704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19707
19708 fi
19709 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19710 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19711
19712 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19713
19714 cat >>confdefs.h <<\_ACEOF
19715 #define HAVE_ISINF_IN_MATH_H 1
19716 _ACEOF
19717
19718 fi
19719
19720 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19721 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19722 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   ac_ext=cpp
19726 ac_cpp='$CXXCPP $CPPFLAGS'
19727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730
19731    cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 #include <cmath>
19738 int
19739 main ()
19740 {
19741 float f; isinf(f);
19742   ;
19743   return 0;
19744 }
19745 _ACEOF
19746 rm -f conftest.$ac_objext
19747 if { (ac_try="$ac_compile"
19748 case "(($ac_try" in
19749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750   *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753   (eval "$ac_compile") 2>conftest.er1
19754   ac_status=$?
19755   grep -v '^ *+' conftest.er1 >conftest.err
19756   rm -f conftest.er1
19757   cat conftest.err >&5
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); } &&
19760          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19761   { (case "(($ac_try" in
19762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763   *) ac_try_echo=$ac_try;;
19764 esac
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766   (eval "$ac_try") 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); }; } &&
19770          { ac_try='test -s conftest.$ac_objext'
19771   { (case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_try") 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; }; then
19780   ac_cv_func_isinf_in_cmath=yes
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         ac_cv_func_isinf_in_cmath=no
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789   ac_ext=c
19790 ac_cpp='$CPP $CPPFLAGS'
19791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19794
19795 fi
19796 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19797 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19798
19799 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19800
19801 cat >>confdefs.h <<\_ACEOF
19802 #define HAVE_ISINF_IN_CMATH 1
19803 _ACEOF
19804
19805 fi
19806
19807 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19808 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19809 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   ac_ext=cpp
19813 ac_cpp='$CXXCPP $CPPFLAGS'
19814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19817
19818    cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 #include <cmath>
19825 int
19826 main ()
19827 {
19828 float f; std::isinf(f);
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_compile") 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } &&
19847          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848   { (case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_try") 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest.$ac_objext'
19858   { (case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_try") 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   ac_cv_func_std_isinf_in_cmath=yes
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872         ac_cv_func_std_isinf_in_cmath=no
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876   ac_ext=c
19877 ac_cpp='$CPP $CPPFLAGS'
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881
19882 fi
19883 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19884 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19885
19886 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_STD_ISINF_IN_CMATH 1
19890 _ACEOF
19891
19892 fi
19893
19894 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19895 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19896 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   ac_ext=cpp
19900 ac_cpp='$CXXCPP $CPPFLAGS'
19901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19904
19905    cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 #include <ieeefp.h>
19912 int
19913 main ()
19914 {
19915 float f; finite(f);
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_compile") 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } &&
19934          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19935   { (case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_try") 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest.$ac_objext'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   ac_cv_func_finite_in_ieeefp_h=yes
19955 else
19956   echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959         ac_cv_func_finite_in_ieeefp_h=no
19960 fi
19961
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963   ac_ext=c
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19968
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19971 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19972
19973 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19974
19975 cat >>confdefs.h <<\_ACEOF
19976 #define HAVE_FINITE_IN_IEEEFP_H 1
19977 _ACEOF
19978
19979 fi
19980
19981
19982
19983 if test "$llvm_cv_platform_type" = "Unix" ; then
19984
19985
19986 for ac_header in stdlib.h unistd.h
19987 do
19988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 fi
19995 ac_res=`eval echo '${'$as_ac_Header'}'`
19996                { echo "$as_me:$LINENO: result: $ac_res" >&5
19997 echo "${ECHO_T}$ac_res" >&6; }
19998 else
19999   # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 $ac_includes_default
20009 #include <$ac_header>
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_compile") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } &&
20025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; } &&
20035          { ac_try='test -s conftest.$ac_objext'
20036   { (case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_try") 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; }; then
20045   ac_header_compiler=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050         ac_header_compiler=no
20051 fi
20052
20053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6; }
20056
20057 # Is the header present?
20058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 #include <$ac_header>
20067 _ACEOF
20068 if { (ac_try="$ac_cpp conftest.$ac_ext"
20069 case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } >/dev/null; then
20081   if test -s conftest.err; then
20082     ac_cpp_err=$ac_c_preproc_warn_flag
20083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20084   else
20085     ac_cpp_err=
20086   fi
20087 else
20088   ac_cpp_err=yes
20089 fi
20090 if test -z "$ac_cpp_err"; then
20091   ac_header_preproc=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096   ac_header_preproc=no
20097 fi
20098
20099 rm -f conftest.err conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20101 echo "${ECHO_T}$ac_header_preproc" >&6; }
20102
20103 # So?  What about this header?
20104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20105   yes:no: )
20106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20110     ac_header_preproc=yes
20111     ;;
20112   no:yes:* )
20113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20115     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20116 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20117     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20119     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20120 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20123     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20125     ( cat <<\_ASBOX
20126 ## ------------------------------------ ##
20127 ## Report this to http://llvm.org/bugs/ ##
20128 ## ------------------------------------ ##
20129 _ASBOX
20130      ) | sed "s/^/$as_me: WARNING:     /" >&2
20131     ;;
20132 esac
20133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   eval "$as_ac_Header=\$ac_header_preproc"
20139 fi
20140 ac_res=`eval echo '${'$as_ac_Header'}'`
20141                { echo "$as_me:$LINENO: result: $ac_res" >&5
20142 echo "${ECHO_T}$ac_res" >&6; }
20143
20144 fi
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146   cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20148 _ACEOF
20149
20150 fi
20151
20152 done
20153
20154
20155 for ac_func in getpagesize
20156 do
20157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20161   echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20171 #define $ac_func innocuous_$ac_func
20172
20173 /* System header to define __stub macros and hopefully few prototypes,
20174     which can conflict with char $ac_func (); below.
20175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20176     <limits.h> exists even on freestanding compilers.  */
20177
20178 #ifdef __STDC__
20179 # include <limits.h>
20180 #else
20181 # include <assert.h>
20182 #endif
20183
20184 #undef $ac_func
20185
20186 /* Override any GCC internal prototype to avoid an error.
20187    Use char because int might match the return type of a GCC
20188    builtin and then its argument prototype would still apply.  */
20189 #ifdef __cplusplus
20190 extern "C"
20191 #endif
20192 char $ac_func ();
20193 /* The GNU C library defines this for functions which it implements
20194     to always fail with ENOSYS.  Some functions are actually named
20195     something starting with __ and the normal name is an alias.  */
20196 #if defined __stub_$ac_func || defined __stub___$ac_func
20197 choke me
20198 #endif
20199
20200 int
20201 main ()
20202 {
20203 return $ac_func ();
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215   (eval "$ac_link") 2>conftest.er1
20216   ac_status=$?
20217   grep -v '^ *+' conftest.er1 >conftest.err
20218   rm -f conftest.er1
20219   cat conftest.err >&5
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } &&
20222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20223   { (case "(($ac_try" in
20224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225   *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228   (eval "$ac_try") 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest$ac_exeext'
20233   { (case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_try") 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; }; then
20242   eval "$as_ac_var=yes"
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247         eval "$as_ac_var=no"
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext \
20251       conftest$ac_exeext conftest.$ac_ext
20252 fi
20253 ac_res=`eval echo '${'$as_ac_var'}'`
20254                { echo "$as_me:$LINENO: result: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20256 if test `eval echo '${'$as_ac_var'}'` = yes; then
20257   cat >>confdefs.h <<_ACEOF
20258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20259 _ACEOF
20260
20261 fi
20262 done
20263
20264 { echo "$as_me:$LINENO: checking for working mmap" >&5
20265 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   if test "$cross_compiling" = yes; then
20270   ac_cv_func_mmap_fixed_mapped=no
20271 else
20272   cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278 $ac_includes_default
20279 /* malloc might have been renamed as rpl_malloc. */
20280 #undef malloc
20281
20282 /* Thanks to Mike Haertel and Jim Avera for this test.
20283    Here is a matrix of mmap possibilities:
20284         mmap private not fixed
20285         mmap private fixed at somewhere currently unmapped
20286         mmap private fixed at somewhere already mapped
20287         mmap shared not fixed
20288         mmap shared fixed at somewhere currently unmapped
20289         mmap shared fixed at somewhere already mapped
20290    For private mappings, we should verify that changes cannot be read()
20291    back from the file, nor mmap's back from the file at a different
20292    address.  (There have been systems where private was not correctly
20293    implemented like the infamous i386 svr4.0, and systems where the
20294    VM page cache was not coherent with the file system buffer cache
20295    like early versions of FreeBSD and possibly contemporary NetBSD.)
20296    For shared mappings, we should conversely verify that changes get
20297    propagated back to all the places they're supposed to be.
20298
20299    Grep wants private fixed already mapped.
20300    The main things grep needs to know about mmap are:
20301    * does it exist and is it safe to write into the mmap'd area
20302    * how to use it (BSD variants)  */
20303
20304 #include <fcntl.h>
20305 #include <sys/mman.h>
20306
20307 #if !STDC_HEADERS && !HAVE_STDLIB_H
20308 char *malloc ();
20309 #endif
20310
20311 /* This mess was copied from the GNU getpagesize.h.  */
20312 #if !HAVE_GETPAGESIZE
20313 /* Assume that all systems that can run configure have sys/param.h.  */
20314 # if !HAVE_SYS_PARAM_H
20315 #  define HAVE_SYS_PARAM_H 1
20316 # endif
20317
20318 # ifdef _SC_PAGESIZE
20319 #  define getpagesize() sysconf(_SC_PAGESIZE)
20320 # else /* no _SC_PAGESIZE */
20321 #  if HAVE_SYS_PARAM_H
20322 #   include <sys/param.h>
20323 #   ifdef EXEC_PAGESIZE
20324 #    define getpagesize() EXEC_PAGESIZE
20325 #   else /* no EXEC_PAGESIZE */
20326 #    ifdef NBPG
20327 #     define getpagesize() NBPG * CLSIZE
20328 #     ifndef CLSIZE
20329 #      define CLSIZE 1
20330 #     endif /* no CLSIZE */
20331 #    else /* no NBPG */
20332 #     ifdef NBPC
20333 #      define getpagesize() NBPC
20334 #     else /* no NBPC */
20335 #      ifdef PAGESIZE
20336 #       define getpagesize() PAGESIZE
20337 #      endif /* PAGESIZE */
20338 #     endif /* no NBPC */
20339 #    endif /* no NBPG */
20340 #   endif /* no EXEC_PAGESIZE */
20341 #  else /* no HAVE_SYS_PARAM_H */
20342 #   define getpagesize() 8192   /* punt totally */
20343 #  endif /* no HAVE_SYS_PARAM_H */
20344 # endif /* no _SC_PAGESIZE */
20345
20346 #endif /* no HAVE_GETPAGESIZE */
20347
20348 int
20349 main ()
20350 {
20351   char *data, *data2, *data3;
20352   int i, pagesize;
20353   int fd;
20354
20355   pagesize = getpagesize ();
20356
20357   /* First, make a file with some known garbage in it. */
20358   data = (char *) malloc (pagesize);
20359   if (!data)
20360     return 1;
20361   for (i = 0; i < pagesize; ++i)
20362     *(data + i) = rand ();
20363   umask (0);
20364   fd = creat ("conftest.mmap", 0600);
20365   if (fd < 0)
20366     return 1;
20367   if (write (fd, data, pagesize) != pagesize)
20368     return 1;
20369   close (fd);
20370
20371   /* Next, try to mmap the file at a fixed address which already has
20372      something else allocated at it.  If we can, also make sure that
20373      we see the same garbage.  */
20374   fd = open ("conftest.mmap", O_RDWR);
20375   if (fd < 0)
20376     return 1;
20377   data2 = (char *) malloc (2 * pagesize);
20378   if (!data2)
20379     return 1;
20380   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20381   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20382                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20383     return 1;
20384   for (i = 0; i < pagesize; ++i)
20385     if (*(data + i) != *(data2 + i))
20386       return 1;
20387
20388   /* Finally, make sure that changes to the mapped area do not
20389      percolate back to the file as seen by read().  (This is a bug on
20390      some variants of i386 svr4.0.)  */
20391   for (i = 0; i < pagesize; ++i)
20392     *(data2 + i) = *(data2 + i) + 1;
20393   data3 = (char *) malloc (pagesize);
20394   if (!data3)
20395     return 1;
20396   if (read (fd, data3, pagesize) != pagesize)
20397     return 1;
20398   for (i = 0; i < pagesize; ++i)
20399     if (*(data + i) != *(data3 + i))
20400       return 1;
20401   close (fd);
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest$ac_exeext
20406 if { (ac_try="$ac_link"
20407 case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_link") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416   { (case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_try") 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   ac_cv_func_mmap_fixed_mapped=yes
20426 else
20427   echo "$as_me: program exited with status $ac_status" >&5
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431 ( exit $ac_status )
20432 ac_cv_func_mmap_fixed_mapped=no
20433 fi
20434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20435 fi
20436
20437
20438 fi
20439 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20440 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20441 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20442
20443 cat >>confdefs.h <<\_ACEOF
20444 #define HAVE_MMAP 1
20445 _ACEOF
20446
20447 fi
20448 rm -f conftest.mmap
20449
20450   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20451 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20452 if test "${ac_cv_func_mmap_file+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455    ac_ext=c
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461   if test "$cross_compiling" = yes; then
20462   ac_cv_func_mmap_file=no
20463 else
20464   cat >conftest.$ac_ext <<_ACEOF
20465
20466     /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471
20472 #include <sys/types.h>
20473 #include <sys/mman.h>
20474 #include <fcntl.h>
20475
20476 int
20477 main ()
20478 {
20479
20480   int fd;
20481   fd = creat ("foo",0777);
20482   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20483   unlink ("foo");
20484   return (fd != (int) MAP_FAILED);
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_link") 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20500   { (case "(($ac_try" in
20501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502   *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505   (eval "$ac_try") 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; }; then
20509   ac_cv_func_mmap_file=yes
20510 else
20511   echo "$as_me: program exited with status $ac_status" >&5
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ( exit $ac_status )
20516 ac_cv_func_mmap_file=no
20517 fi
20518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20519 fi
20520
20521
20522   ac_ext=c
20523 ac_cpp='$CPP $CPPFLAGS'
20524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20527
20528
20529 fi
20530 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20531 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20532 if test "$ac_cv_func_mmap_file" = yes; then
20533
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_MMAP_FILE
20536 _ACEOF
20537
20538    MMAP_FILE=yes
20539
20540 fi
20541
20542   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20543 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20544 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   if test "$llvm_cv_os_type" = "Interix" ; then
20548    ac_cv_need_dev_zero_for_mmap=yes
20549  else
20550    ac_cv_need_dev_zero_for_mmap=no
20551  fi
20552
20553 fi
20554 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20555 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20556 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20557
20558 cat >>confdefs.h <<\_ACEOF
20559 #define NEED_DEV_ZERO_FOR_MMAP 1
20560 _ACEOF
20561
20562 fi
20563
20564   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20565   then
20566     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20567 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20568   fi
20569   if test "$ac_cv_func_mmap_file" = "no"
20570   then
20571     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20572 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20573   fi
20574 fi
20575
20576 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20577 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20578 ac_ext=cpp
20579 ac_cpp='$CXXCPP $CPPFLAGS'
20580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20583
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 int main() {
20591         volatile unsigned long val = 1;
20592         __sync_synchronize();
20593         __sync_val_compare_and_swap(&val, 1, 0);
20594         __sync_add_and_fetch(&val, 1);
20595         __sync_sub_and_fetch(&val, 1);
20596         return 0;
20597       }
20598
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_link") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615   { (case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_try") 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; } &&
20624          { ac_try='test -s conftest$ac_exeext'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_ext=c
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
20640   { echo "$as_me:$LINENO: result: yes" >&5
20641 echo "${ECHO_T}yes" >&6; }
20642
20643 cat >>confdefs.h <<\_ACEOF
20644 #define LLVM_HAS_ATOMICS 1
20645 _ACEOF
20646
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651         { echo "$as_me:$LINENO: result: no" >&5
20652 echo "${ECHO_T}no" >&6; }
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define LLVM_HAS_ATOMICS 0
20656 _ACEOF
20657
20658   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20659 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext \
20663       conftest$ac_exeext conftest.$ac_ext
20664
20665
20666 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20667   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20668 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20669 if test "${llvm_cv_linux_mixed+set}" = set; then
20670   echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672    ac_ext=c
20673 ac_cpp='$CPP $CPPFLAGS'
20674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #ifndef __x86_64__
20685        error: Not x86-64 even if uname says so!
20686       #endif
20687
20688 int
20689 main ()
20690 {
20691
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } &&
20710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20711   { (case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_try") 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; } &&
20720          { ac_try='test -s conftest.$ac_objext'
20721   { (case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_try") 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   llvm_cv_linux_mixed=no
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735         llvm_cv_linux_mixed=yes
20736 fi
20737
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739   ac_ext=c
20740 ac_cpp='$CPP $CPPFLAGS'
20741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20744
20745
20746 fi
20747 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20748 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20749
20750   if test "$llvm_cv_linux_mixed" = "yes"; then
20751     llvm_cv_target_arch="x86"
20752     ARCH="x86"
20753   fi
20754 fi
20755
20756
20757 for ac_func in __dso_handle
20758 do
20759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20773 #define $ac_func innocuous_$ac_func
20774
20775 /* System header to define __stub macros and hopefully few prototypes,
20776     which can conflict with char $ac_func (); below.
20777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778     <limits.h> exists even on freestanding compilers.  */
20779
20780 #ifdef __STDC__
20781 # include <limits.h>
20782 #else
20783 # include <assert.h>
20784 #endif
20785
20786 #undef $ac_func
20787
20788 /* Override any GCC internal prototype to avoid an error.
20789    Use char because int might match the return type of a GCC
20790    builtin and then its argument prototype would still apply.  */
20791 #ifdef __cplusplus
20792 extern "C"
20793 #endif
20794 char $ac_func ();
20795 /* The GNU C library defines this for functions which it implements
20796     to always fail with ENOSYS.  Some functions are actually named
20797     something starting with __ and the normal name is an alias.  */
20798 #if defined __stub_$ac_func || defined __stub___$ac_func
20799 choke me
20800 #endif
20801
20802 int
20803 main ()
20804 {
20805 return $ac_func ();
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_link") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } &&
20824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20825   { (case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_try") 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; } &&
20834          { ac_try='test -s conftest$ac_exeext'
20835   { (case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_try") 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   eval "$as_ac_var=yes"
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849         eval "$as_ac_var=no"
20850 fi
20851
20852 rm -f core conftest.err conftest.$ac_objext \
20853       conftest$ac_exeext conftest.$ac_ext
20854 fi
20855 ac_res=`eval echo '${'$as_ac_var'}'`
20856                { echo "$as_me:$LINENO: result: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20858 if test `eval echo '${'$as_ac_var'}'` = yes; then
20859   cat >>confdefs.h <<_ACEOF
20860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20861 _ACEOF
20862
20863 fi
20864 done
20865
20866
20867 SHLIBEXT=$libltdl_cv_shlibext
20868
20869
20870 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20871
20872
20873 if test "${prefix}" = "NONE" ; then
20874   prefix="/usr/local"
20875 fi
20876 eval LLVM_PREFIX="${prefix}";
20877 eval LLVM_BINDIR="${prefix}/bin";
20878 eval LLVM_LIBDIR="${prefix}/lib";
20879 eval LLVM_DATADIR="${prefix}/share/llvm";
20880 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20881 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20882 eval LLVM_INCLUDEDIR="${prefix}/include";
20883 eval LLVM_INFODIR="${prefix}/info";
20884 eval LLVM_MANDIR="${prefix}/man";
20885 LLVM_CONFIGTIME=`date`
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20898   LLVM_CONFIGTIME="(timestamp not enabled)"
20899 fi
20900
20901
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_PREFIX "$LLVM_PREFIX"
20904 _ACEOF
20905
20906
20907 cat >>confdefs.h <<_ACEOF
20908 #define LLVM_BINDIR "$LLVM_BINDIR"
20909 _ACEOF
20910
20911
20912 cat >>confdefs.h <<_ACEOF
20913 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20914 _ACEOF
20915
20916
20917 cat >>confdefs.h <<_ACEOF
20918 #define LLVM_DATADIR "$LLVM_DATADIR"
20919 _ACEOF
20920
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20924 _ACEOF
20925
20926
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20929 _ACEOF
20930
20931
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20934 _ACEOF
20935
20936
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_INFODIR "$LLVM_INFODIR"
20939 _ACEOF
20940
20941
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_MANDIR "$LLVM_MANDIR"
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20949 _ACEOF
20950
20951
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20954 _ACEOF
20955
20956
20957 if test "$BINDINGS_TO_BUILD" = auto ; then
20958   BINDINGS_TO_BUILD=""
20959   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20960     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20961   fi
20962 fi
20963 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20964
20965
20966 ALL_BINDINGS=ocaml
20967
20968
20969 binding_prereqs_failed=0
20970 for a_binding in $BINDINGS_TO_BUILD ; do
20971   case "$a_binding" in
20972   ocaml)
20973     if test "x$OCAMLC" = x ; then
20974       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20975 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20976       binding_prereqs_failed=1
20977     fi
20978     if test "x$OCAMLDEP" = x ; then
20979       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20980 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20981       binding_prereqs_failed=1
20982     fi
20983     if test "x$OCAMLOPT" = x ; then
20984       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20985 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20986           fi
20987     if test "x$with_ocaml_libdir" != xauto ; then
20988       OCAML_LIBDIR=$with_ocaml_libdir
20989
20990     else
20991       ocaml_stdlib="`"$OCAMLC" -where`"
20992       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20993       then
20994         # ocaml stdlib is beneath our prefix; use stdlib
20995         OCAML_LIBDIR=$ocaml_stdlib
20996
20997       else
20998         # ocaml stdlib is outside our prefix; use libdir/ocaml
20999         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21000
21001       fi
21002     fi
21003     ;;
21004   esac
21005 done
21006 if test "$binding_prereqs_failed" = 1 ; then
21007   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21008 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21009    { (exit 1); exit 1; }; }
21010 fi
21011
21012 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21013 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21014 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017    ac_ext=cpp
21018 ac_cpp='$CXXCPP $CPPFLAGS'
21019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022
21023   oldcxxflags="$CXXFLAGS"
21024   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21025   cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21032 int
21033 main ()
21034 {
21035 X<int>().f();
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_compile") 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } &&
21054          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21055   { (case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_try") 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; } &&
21064          { ac_try='test -s conftest.$ac_objext'
21065   { (case "(($ac_try" in
21066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067   *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070   (eval "$ac_try") 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; }; then
21074   llvm_cv_cxx_visibility_inlines_hidden=yes
21075 else
21076   echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079         llvm_cv_cxx_visibility_inlines_hidden=no
21080 fi
21081
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083   CXXFLAGS="$oldcxxflags"
21084   ac_ext=c
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090
21091 fi
21092 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21093 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21094 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21095   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21096
21097 else
21098   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21099
21100 fi
21101
21102
21103 if test "$llvm_cv_link_use_r" = "yes" ; then
21104   RPATH="-Wl,-R"
21105 else
21106   RPATH="-Wl,-rpath"
21107 fi
21108
21109
21110 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21111   RDYNAMIC="-Wl,-export-dynamic"
21112 else
21113   RDYNAMIC=""
21114 fi
21115
21116
21117
21118 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21119
21120
21121
21122
21123
21124
21125 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21126
21127 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21128
21129 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21130
21131 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21132
21133 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21134
21135
21136 ac_config_files="$ac_config_files Makefile.config"
21137
21138
21139 ac_config_files="$ac_config_files llvm.spec"
21140
21141
21142 ac_config_files="$ac_config_files docs/doxygen.cfg"
21143
21144
21145 if test "${clang_src_root}" = ""; then
21146   clang_src_root="$srcdir/tools/clang"
21147 fi
21148 if test -f ${clang_src_root}/README.txt; then
21149     configh="include/clang/Config/config.h"
21150   doxy="docs/doxygen.cfg"
21151   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21152
21153   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21154
21155 fi
21156
21157 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21158
21159
21160 ac_config_commands="$ac_config_commands setup"
21161
21162 ac_config_commands="$ac_config_commands Makefile"
21163
21164
21165 ac_config_commands="$ac_config_commands Makefile.common"
21166
21167
21168 ac_config_commands="$ac_config_commands examples/Makefile"
21169
21170
21171 ac_config_commands="$ac_config_commands lib/Makefile"
21172
21173
21174 ac_config_commands="$ac_config_commands runtime/Makefile"
21175
21176
21177 ac_config_commands="$ac_config_commands test/Makefile"
21178
21179
21180 ac_config_commands="$ac_config_commands test/Makefile.tests"
21181
21182
21183 ac_config_commands="$ac_config_commands unittests/Makefile"
21184
21185
21186 ac_config_commands="$ac_config_commands tools/Makefile"
21187
21188
21189 ac_config_commands="$ac_config_commands utils/Makefile"
21190
21191
21192 ac_config_commands="$ac_config_commands projects/Makefile"
21193
21194
21195 ac_config_commands="$ac_config_commands bindings/Makefile"
21196
21197
21198 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21199
21200
21201
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems.  If it contains results you don't
21207 # want to keep, you may remove or edit it.
21208 #
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21211 #
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21215
21216 _ACEOF
21217
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, we kill variables containing newlines.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21223 (
21224   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21225     eval ac_val=\$$ac_var
21226     case $ac_val in #(
21227     *${as_nl}*)
21228       case $ac_var in #(
21229       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21230 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21231       esac
21232       case $ac_var in #(
21233       _ | IFS | as_nl) ;; #(
21234       *) $as_unset $ac_var ;;
21235       esac ;;
21236     esac
21237   done
21238
21239   (set) 2>&1 |
21240     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21241     *${as_nl}ac_space=\ *)
21242       # `set' does not quote correctly, so add quotes (double-quote
21243       # substitution turns \\\\ into \\, and sed turns \\ into \).
21244       sed -n \
21245         "s/'/'\\\\''/g;
21246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21247       ;; #(
21248     *)
21249       # `set' quotes correctly as required by POSIX, so do not add quotes.
21250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21251       ;;
21252     esac |
21253     sort
21254 ) |
21255   sed '
21256      /^ac_cv_env_/b end
21257      t clear
21258      :clear
21259      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21260      t end
21261      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21262      :end' >>confcache
21263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21264   if test -w "$cache_file"; then
21265     test "x$cache_file" != "x/dev/null" &&
21266       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21267 echo "$as_me: updating cache $cache_file" >&6;}
21268     cat confcache >$cache_file
21269   else
21270     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21271 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21272   fi
21273 fi
21274 rm -f confcache
21275
21276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21277 # Let make expand exec_prefix.
21278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21279
21280 DEFS=-DHAVE_CONFIG_H
21281
21282 ac_libobjs=
21283 ac_ltlibobjs=
21284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21285   # 1. Remove the extension, and $U if already installed.
21286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21287   ac_i=`echo "$ac_i" | sed "$ac_script"`
21288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21289   #    will be set to the directory where LIBOBJS objects are built.
21290   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21291   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21292 done
21293 LIBOBJS=$ac_libobjs
21294
21295 LTLIBOBJS=$ac_ltlibobjs
21296
21297
21298 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21299   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&5
21301 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&2;}
21303    { (exit 1); exit 1; }; }
21304 fi
21305 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21306   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310    { (exit 1); exit 1; }; }
21311 fi
21312
21313 : ${CONFIG_STATUS=./config.status}
21314 ac_clean_files_save=$ac_clean_files
21315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21318 cat >$CONFIG_STATUS <<_ACEOF
21319 #! $SHELL
21320 # Generated by $as_me.
21321 # Run this file to recreate the current configuration.
21322 # Compiler output produced by configure, useful for debugging
21323 # configure, is in config.log if it exists.
21324
21325 debug=false
21326 ac_cs_recheck=false
21327 ac_cs_silent=false
21328 SHELL=\${CONFIG_SHELL-$SHELL}
21329 _ACEOF
21330
21331 cat >>$CONFIG_STATUS <<\_ACEOF
21332 ## --------------------- ##
21333 ## M4sh Initialization.  ##
21334 ## --------------------- ##
21335
21336 # Be Bourne compatible
21337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21338   emulate sh
21339   NULLCMD=:
21340   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21341   # is contrary to our usage.  Disable this feature.
21342   alias -g '${1+"$@"}'='"$@"'
21343   setopt NO_GLOB_SUBST
21344 else
21345   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21346 fi
21347 BIN_SH=xpg4; export BIN_SH # for Tru64
21348 DUALCASE=1; export DUALCASE # for MKS sh
21349
21350
21351 # PATH needs CR
21352 # Avoid depending upon Character Ranges.
21353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21356 as_cr_digits='0123456789'
21357 as_cr_alnum=$as_cr_Letters$as_cr_digits
21358
21359 # The user is always right.
21360 if test "${PATH_SEPARATOR+set}" != set; then
21361   echo "#! /bin/sh" >conf$$.sh
21362   echo  "exit 0"   >>conf$$.sh
21363   chmod +x conf$$.sh
21364   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21365     PATH_SEPARATOR=';'
21366   else
21367     PATH_SEPARATOR=:
21368   fi
21369   rm -f conf$$.sh
21370 fi
21371
21372 # Support unset when possible.
21373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21374   as_unset=unset
21375 else
21376   as_unset=false
21377 fi
21378
21379
21380 # IFS
21381 # We need space, tab and new line, in precisely that order.  Quoting is
21382 # there to prevent editors from complaining about space-tab.
21383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21384 # splitting by setting IFS to empty value.)
21385 as_nl='
21386 '
21387 IFS=" ""        $as_nl"
21388
21389 # Find who we are.  Look in the path if we contain no directory separator.
21390 case $0 in
21391   *[\\/]* ) as_myself=$0 ;;
21392   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393 for as_dir in $PATH
21394 do
21395   IFS=$as_save_IFS
21396   test -z "$as_dir" && as_dir=.
21397   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21398 done
21399 IFS=$as_save_IFS
21400
21401      ;;
21402 esac
21403 # We did not find ourselves, most probably we were run as `sh COMMAND'
21404 # in which case we are not to be found in the path.
21405 if test "x$as_myself" = x; then
21406   as_myself=$0
21407 fi
21408 if test ! -f "$as_myself"; then
21409   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21410   { (exit 1); exit 1; }
21411 fi
21412
21413 # Work around bugs in pre-3.0 UWIN ksh.
21414 for as_var in ENV MAIL MAILPATH
21415 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21416 done
21417 PS1='$ '
21418 PS2='> '
21419 PS4='+ '
21420
21421 # NLS nuisances.
21422 for as_var in \
21423   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21424   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21425   LC_TELEPHONE LC_TIME
21426 do
21427   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21428     eval $as_var=C; export $as_var
21429   else
21430     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21431   fi
21432 done
21433
21434 # Required to use basename.
21435 if expr a : '\(a\)' >/dev/null 2>&1 &&
21436    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21437   as_expr=expr
21438 else
21439   as_expr=false
21440 fi
21441
21442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21443   as_basename=basename
21444 else
21445   as_basename=false
21446 fi
21447
21448
21449 # Name of the executable.
21450 as_me=`$as_basename -- "$0" ||
21451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21452          X"$0" : 'X\(//\)$' \| \
21453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21454 echo X/"$0" |
21455     sed '/^.*\/\([^/][^/]*\)\/*$/{
21456             s//\1/
21457             q
21458           }
21459           /^X\/\(\/\/\)$/{
21460             s//\1/
21461             q
21462           }
21463           /^X\/\(\/\).*/{
21464             s//\1/
21465             q
21466           }
21467           s/.*/./; q'`
21468
21469 # CDPATH.
21470 $as_unset CDPATH
21471
21472
21473
21474   as_lineno_1=$LINENO
21475   as_lineno_2=$LINENO
21476   test "x$as_lineno_1" != "x$as_lineno_2" &&
21477   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21478
21479   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21480   # uniformly replaced by the line number.  The first 'sed' inserts a
21481   # line-number line after each line using $LINENO; the second 'sed'
21482   # does the real work.  The second script uses 'N' to pair each
21483   # line-number line with the line containing $LINENO, and appends
21484   # trailing '-' during substitution so that $LINENO is not a special
21485   # case at line end.
21486   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21487   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21488   # E. McMahon (1931-1989) for sed's syntax.  :-)
21489   sed -n '
21490     p
21491     /[$]LINENO/=
21492   ' <$as_myself |
21493     sed '
21494       s/[$]LINENO.*/&-/
21495       t lineno
21496       b
21497       :lineno
21498       N
21499       :loop
21500       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21501       t loop
21502       s/-\n.*//
21503     ' >$as_me.lineno &&
21504   chmod +x "$as_me.lineno" ||
21505     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21506    { (exit 1); exit 1; }; }
21507
21508   # Don't try to exec as it changes $[0], causing all sort of problems
21509   # (the dirname of $[0] is not the place where we might find the
21510   # original and so on.  Autoconf is especially sensitive to this).
21511   . "./$as_me.lineno"
21512   # Exit status is that of the last command.
21513   exit
21514 }
21515
21516
21517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21518   as_dirname=dirname
21519 else
21520   as_dirname=false
21521 fi
21522
21523 ECHO_C= ECHO_N= ECHO_T=
21524 case `echo -n x` in
21525 -n*)
21526   case `echo 'x\c'` in
21527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21528   *)   ECHO_C='\c';;
21529   esac;;
21530 *)
21531   ECHO_N='-n';;
21532 esac
21533
21534 if expr a : '\(a\)' >/dev/null 2>&1 &&
21535    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21536   as_expr=expr
21537 else
21538   as_expr=false
21539 fi
21540
21541 rm -f conf$$ conf$$.exe conf$$.file
21542 if test -d conf$$.dir; then
21543   rm -f conf$$.dir/conf$$.file
21544 else
21545   rm -f conf$$.dir
21546   mkdir conf$$.dir
21547 fi
21548 echo >conf$$.file
21549 if ln -s conf$$.file conf$$ 2>/dev/null; then
21550   as_ln_s='ln -s'
21551   # ... but there are two gotchas:
21552   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21553   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21554   # In both cases, we have to default to `cp -p'.
21555   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21556     as_ln_s='cp -p'
21557 elif ln conf$$.file conf$$ 2>/dev/null; then
21558   as_ln_s=ln
21559 else
21560   as_ln_s='cp -p'
21561 fi
21562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21563 rmdir conf$$.dir 2>/dev/null
21564
21565 if mkdir -p . 2>/dev/null; then
21566   as_mkdir_p=:
21567 else
21568   test -d ./-p && rmdir ./-p
21569   as_mkdir_p=false
21570 fi
21571
21572 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21573 # systems may use methods other than mode bits to determine executability.
21574 cat >conf$$.file <<_ASEOF
21575 #! /bin/sh
21576 exit 0
21577 _ASEOF
21578 chmod +x conf$$.file
21579 if test -x conf$$.file >/dev/null 2>&1; then
21580   as_executable_p="test -x"
21581 else
21582   as_executable_p=:
21583 fi
21584 rm -f conf$$.file
21585
21586 # Sed expression to map a string onto a valid CPP name.
21587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21588
21589 # Sed expression to map a string onto a valid variable name.
21590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21591
21592
21593 exec 6>&1
21594
21595 # Save the log message, to keep $[0] and so on meaningful, and to
21596 # report actual input values of CONFIG_FILES etc. instead of their
21597 # values after options handling.
21598 ac_log="
21599 This file was extended by LLVM $as_me 3.2svn, which was
21600 generated by GNU Autoconf 2.60.  Invocation command line was
21601
21602   CONFIG_FILES    = $CONFIG_FILES
21603   CONFIG_HEADERS  = $CONFIG_HEADERS
21604   CONFIG_LINKS    = $CONFIG_LINKS
21605   CONFIG_COMMANDS = $CONFIG_COMMANDS
21606   $ $0 $@
21607
21608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21609 "
21610
21611 _ACEOF
21612
21613 cat >>$CONFIG_STATUS <<_ACEOF
21614 # Files that config.status was made for.
21615 config_files="$ac_config_files"
21616 config_headers="$ac_config_headers"
21617 config_commands="$ac_config_commands"
21618
21619 _ACEOF
21620
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21622 ac_cs_usage="\
21623 \`$as_me' instantiates files from templates according to the
21624 current configuration.
21625
21626 Usage: $0 [OPTIONS] [FILE]...
21627
21628   -h, --help       print this help, then exit
21629   -V, --version    print version number, then exit
21630   -q, --quiet      do not print progress messages
21631   -d, --debug      don't remove temporary files
21632       --recheck    update $as_me by reconfiguring in the same conditions
21633   --file=FILE[:TEMPLATE]
21634                    instantiate the configuration file FILE
21635   --header=FILE[:TEMPLATE]
21636                    instantiate the configuration header FILE
21637
21638 Configuration files:
21639 $config_files
21640
21641 Configuration headers:
21642 $config_headers
21643
21644 Configuration commands:
21645 $config_commands
21646
21647 Report bugs to <bug-autoconf@gnu.org>."
21648
21649 _ACEOF
21650 cat >>$CONFIG_STATUS <<_ACEOF
21651 ac_cs_version="\\
21652 LLVM config.status 3.2svn
21653 configured by $0, generated by GNU Autoconf 2.60,
21654   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21655
21656 Copyright (C) 2006 Free Software Foundation, Inc.
21657 This config.status script is free software; the Free Software Foundation
21658 gives unlimited permission to copy, distribute and modify it."
21659
21660 ac_pwd='$ac_pwd'
21661 srcdir='$srcdir'
21662 INSTALL='$INSTALL'
21663 _ACEOF
21664
21665 cat >>$CONFIG_STATUS <<\_ACEOF
21666 # If no file are specified by the user, then we need to provide default
21667 # value.  By we need to know if files were specified by the user.
21668 ac_need_defaults=:
21669 while test $# != 0
21670 do
21671   case $1 in
21672   --*=*)
21673     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21674     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21675     ac_shift=:
21676     ;;
21677   *)
21678     ac_option=$1
21679     ac_optarg=$2
21680     ac_shift=shift
21681     ;;
21682   esac
21683
21684   case $ac_option in
21685   # Handling of the options.
21686   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21687     ac_cs_recheck=: ;;
21688   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21689     echo "$ac_cs_version"; exit ;;
21690   --debug | --debu | --deb | --de | --d | -d )
21691     debug=: ;;
21692   --file | --fil | --fi | --f )
21693     $ac_shift
21694     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21695     ac_need_defaults=false;;
21696   --header | --heade | --head | --hea )
21697     $ac_shift
21698     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21699     ac_need_defaults=false;;
21700   --he | --h)
21701     # Conflict between --help and --header
21702     { echo "$as_me: error: ambiguous option: $1
21703 Try \`$0 --help' for more information." >&2
21704    { (exit 1); exit 1; }; };;
21705   --help | --hel | -h )
21706     echo "$ac_cs_usage"; exit ;;
21707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21709     ac_cs_silent=: ;;
21710
21711   # This is an error.
21712   -*) { echo "$as_me: error: unrecognized option: $1
21713 Try \`$0 --help' for more information." >&2
21714    { (exit 1); exit 1; }; } ;;
21715
21716   *) ac_config_targets="$ac_config_targets $1"
21717      ac_need_defaults=false ;;
21718
21719   esac
21720   shift
21721 done
21722
21723 ac_configure_extra_args=
21724
21725 if $ac_cs_silent; then
21726   exec 6>/dev/null
21727   ac_configure_extra_args="$ac_configure_extra_args --silent"
21728 fi
21729
21730 _ACEOF
21731 cat >>$CONFIG_STATUS <<_ACEOF
21732 if \$ac_cs_recheck; then
21733   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21734   CONFIG_SHELL=$SHELL
21735   export CONFIG_SHELL
21736   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21737 fi
21738
21739 _ACEOF
21740 cat >>$CONFIG_STATUS <<\_ACEOF
21741 exec 5>>config.log
21742 {
21743   echo
21744   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21745 ## Running $as_me. ##
21746 _ASBOX
21747   echo "$ac_log"
21748 } >&5
21749
21750 _ACEOF
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 #
21753 # INIT-COMMANDS
21754 #
21755 llvm_src="${srcdir}"
21756
21757 _ACEOF
21758
21759 cat >>$CONFIG_STATUS <<\_ACEOF
21760
21761 # Handling of arguments.
21762 for ac_config_target in $ac_config_targets
21763 do
21764   case $ac_config_target in
21765     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21766     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21767     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21768     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21769     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21770     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21771     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21772     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21773     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21774     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21775     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21776     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21777     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21778     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21779     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21780     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21781     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21782     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21783     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21784     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21785     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21786     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21787     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21788     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21789     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21790     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21791     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21792
21793   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21794 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21795    { (exit 1); exit 1; }; };;
21796   esac
21797 done
21798
21799
21800 # If the user did not use the arguments to specify the items to instantiate,
21801 # then the envvar interface is used.  Set only those that are not.
21802 # We use the long form for the default assignment because of an extremely
21803 # bizarre bug on SunOS 4.1.3.
21804 if $ac_need_defaults; then
21805   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21806   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21807   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21808 fi
21809
21810 # Have a temporary directory for convenience.  Make it in the build tree
21811 # simply because there is no reason against having it here, and in addition,
21812 # creating and moving files from /tmp can sometimes cause problems.
21813 # Hook for its removal unless debugging.
21814 # Note that there is a small window in which the directory will not be cleaned:
21815 # after its creation but before its name has been assigned to `$tmp'.
21816 $debug ||
21817 {
21818   tmp=
21819   trap 'exit_status=$?
21820   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21821 ' 0
21822   trap '{ (exit 1); exit 1; }' 1 2 13 15
21823 }
21824 # Create a (secure) tmp directory for tmp files.
21825
21826 {
21827   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21828   test -n "$tmp" && test -d "$tmp"
21829 }  ||
21830 {
21831   tmp=./conf$$-$RANDOM
21832   (umask 077 && mkdir "$tmp")
21833 } ||
21834 {
21835    echo "$me: cannot create a temporary directory in ." >&2
21836    { (exit 1); exit 1; }
21837 }
21838
21839 #
21840 # Set up the sed scripts for CONFIG_FILES section.
21841 #
21842
21843 # No need to generate the scripts if there are no CONFIG_FILES.
21844 # This happens for instance when ./config.status config.h
21845 if test -n "$CONFIG_FILES"; then
21846
21847 _ACEOF
21848
21849
21850
21851 ac_delim='%!_!# '
21852 for ac_last_try in false false false false false :; do
21853   cat >conf$$subs.sed <<_ACEOF
21854 SHELL!$SHELL$ac_delim
21855 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21856 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21857 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21858 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21859 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21860 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21861 exec_prefix!$exec_prefix$ac_delim
21862 prefix!$prefix$ac_delim
21863 program_transform_name!$program_transform_name$ac_delim
21864 bindir!$bindir$ac_delim
21865 sbindir!$sbindir$ac_delim
21866 libexecdir!$libexecdir$ac_delim
21867 datarootdir!$datarootdir$ac_delim
21868 datadir!$datadir$ac_delim
21869 sysconfdir!$sysconfdir$ac_delim
21870 sharedstatedir!$sharedstatedir$ac_delim
21871 localstatedir!$localstatedir$ac_delim
21872 includedir!$includedir$ac_delim
21873 oldincludedir!$oldincludedir$ac_delim
21874 docdir!$docdir$ac_delim
21875 infodir!$infodir$ac_delim
21876 htmldir!$htmldir$ac_delim
21877 dvidir!$dvidir$ac_delim
21878 pdfdir!$pdfdir$ac_delim
21879 psdir!$psdir$ac_delim
21880 libdir!$libdir$ac_delim
21881 localedir!$localedir$ac_delim
21882 mandir!$mandir$ac_delim
21883 DEFS!$DEFS$ac_delim
21884 ECHO_C!$ECHO_C$ac_delim
21885 ECHO_N!$ECHO_N$ac_delim
21886 ECHO_T!$ECHO_T$ac_delim
21887 LIBS!$LIBS$ac_delim
21888 build_alias!$build_alias$ac_delim
21889 host_alias!$host_alias$ac_delim
21890 target_alias!$target_alias$ac_delim
21891 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21892 CC!$CC$ac_delim
21893 CFLAGS!$CFLAGS$ac_delim
21894 LDFLAGS!$LDFLAGS$ac_delim
21895 CPPFLAGS!$CPPFLAGS$ac_delim
21896 ac_ct_CC!$ac_ct_CC$ac_delim
21897 EXEEXT!$EXEEXT$ac_delim
21898 OBJEXT!$OBJEXT$ac_delim
21899 CXX!$CXX$ac_delim
21900 CXXFLAGS!$CXXFLAGS$ac_delim
21901 ac_ct_CXX!$ac_ct_CXX$ac_delim
21902 CPP!$CPP$ac_delim
21903 subdirs!$subdirs$ac_delim
21904 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21905 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21906 build!$build$ac_delim
21907 build_cpu!$build_cpu$ac_delim
21908 build_vendor!$build_vendor$ac_delim
21909 build_os!$build_os$ac_delim
21910 host!$host$ac_delim
21911 host_cpu!$host_cpu$ac_delim
21912 host_vendor!$host_vendor$ac_delim
21913 host_os!$host_os$ac_delim
21914 target!$target$ac_delim
21915 target_cpu!$target_cpu$ac_delim
21916 target_vendor!$target_vendor$ac_delim
21917 target_os!$target_os$ac_delim
21918 OS!$OS$ac_delim
21919 HOST_OS!$HOST_OS$ac_delim
21920 TARGET_OS!$TARGET_OS$ac_delim
21921 LINKALL!$LINKALL$ac_delim
21922 NOLINKALL!$NOLINKALL$ac_delim
21923 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21924 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21925 ARCH!$ARCH$ac_delim
21926 HOST_ARCH!$HOST_ARCH$ac_delim
21927 ENDIAN!$ENDIAN$ac_delim
21928 GREP!$GREP$ac_delim
21929 EGREP!$EGREP$ac_delim
21930 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21931 BUILD_CC!$BUILD_CC$ac_delim
21932 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21933 BUILD_CXX!$BUILD_CXX$ac_delim
21934 CVSBUILD!$CVSBUILD$ac_delim
21935 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21936 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21937 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21938 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21939 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21940 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21941 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21942 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21943 JIT!$JIT$ac_delim
21944 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21945 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21946 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21947 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21948 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21949 ENABLE_PIC!$ENABLE_PIC$ac_delim
21950 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21951 _ACEOF
21952
21953   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21954     break
21955   elif $ac_last_try; then
21956     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21957 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21958    { (exit 1); exit 1; }; }
21959   else
21960     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21961   fi
21962 done
21963
21964 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21965 if test -n "$ac_eof"; then
21966   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21967   ac_eof=`expr $ac_eof + 1`
21968 fi
21969
21970 cat >>$CONFIG_STATUS <<_ACEOF
21971 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21973 _ACEOF
21974 sed '
21975 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21976 s/^/s,@/; s/!/@,|#_!!_#|/
21977 :n
21978 t n
21979 s/'"$ac_delim"'$/,g/; t
21980 s/$/\\/; p
21981 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21982 ' >>$CONFIG_STATUS <conf$$subs.sed
21983 rm -f conf$$subs.sed
21984 cat >>$CONFIG_STATUS <<_ACEOF
21985 CEOF$ac_eof
21986 _ACEOF
21987
21988
21989 ac_delim='%!_!# '
21990 for ac_last_try in false false false false false :; do
21991   cat >conf$$subs.sed <<_ACEOF
21992 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21993 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21994 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21995 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21996 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21997 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21998 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21999 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22000 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22001 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22002 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22003 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22004 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22005 NM!$NM$ac_delim
22006 ifGNUmake!$ifGNUmake$ac_delim
22007 LN_S!$LN_S$ac_delim
22008 CMP!$CMP$ac_delim
22009 CP!$CP$ac_delim
22010 DATE!$DATE$ac_delim
22011 FIND!$FIND$ac_delim
22012 MKDIR!$MKDIR$ac_delim
22013 MV!$MV$ac_delim
22014 RANLIB!$RANLIB$ac_delim
22015 AR!$AR$ac_delim
22016 RM!$RM$ac_delim
22017 SED!$SED$ac_delim
22018 TAR!$TAR$ac_delim
22019 BINPWD!$BINPWD$ac_delim
22020 GRAPHVIZ!$GRAPHVIZ$ac_delim
22021 DOT!$DOT$ac_delim
22022 FDP!$FDP$ac_delim
22023 NEATO!$NEATO$ac_delim
22024 TWOPI!$TWOPI$ac_delim
22025 CIRCO!$CIRCO$ac_delim
22026 GV!$GV$ac_delim
22027 DOTTY!$DOTTY$ac_delim
22028 XDOT_PY!$XDOT_PY$ac_delim
22029 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22030 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22031 INSTALL_DATA!$INSTALL_DATA$ac_delim
22032 BZIP2!$BZIP2$ac_delim
22033 CAT!$CAT$ac_delim
22034 DOXYGEN!$DOXYGEN$ac_delim
22035 GROFF!$GROFF$ac_delim
22036 GZIPBIN!$GZIPBIN$ac_delim
22037 PDFROFF!$PDFROFF$ac_delim
22038 ZIP!$ZIP$ac_delim
22039 OCAMLC!$OCAMLC$ac_delim
22040 OCAMLOPT!$OCAMLOPT$ac_delim
22041 OCAMLDEP!$OCAMLDEP$ac_delim
22042 OCAMLDOC!$OCAMLDOC$ac_delim
22043 GAS!$GAS$ac_delim
22044 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22045 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22046 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22047 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22048 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22049 LIBADD_DL!$LIBADD_DL$ac_delim
22050 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22051 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22052 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22053 USE_UDIS86!$USE_UDIS86$ac_delim
22054 USE_OPROFILE!$USE_OPROFILE$ac_delim
22055 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22056 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22057 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22058 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22059 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22060 MMAP_FILE!$MMAP_FILE$ac_delim
22061 SHLIBEXT!$SHLIBEXT$ac_delim
22062 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22063 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22064 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22065 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22066 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22067 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22068 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22069 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22070 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22071 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22072 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22073 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22074 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22075 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22076 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22077 RPATH!$RPATH$ac_delim
22078 RDYNAMIC!$RDYNAMIC$ac_delim
22079 LIBOBJS!$LIBOBJS$ac_delim
22080 LTLIBOBJS!$LTLIBOBJS$ac_delim
22081 _ACEOF
22082
22083   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22084     break
22085   elif $ac_last_try; then
22086     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22088    { (exit 1); exit 1; }; }
22089   else
22090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22091   fi
22092 done
22093
22094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22095 if test -n "$ac_eof"; then
22096   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22097   ac_eof=`expr $ac_eof + 1`
22098 fi
22099
22100 cat >>$CONFIG_STATUS <<_ACEOF
22101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22103 _ACEOF
22104 sed '
22105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22106 s/^/s,@/; s/!/@,|#_!!_#|/
22107 :n
22108 t n
22109 s/'"$ac_delim"'$/,g/; t
22110 s/$/\\/; p
22111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22112 ' >>$CONFIG_STATUS <conf$$subs.sed
22113 rm -f conf$$subs.sed
22114 cat >>$CONFIG_STATUS <<_ACEOF
22115 :end
22116 s/|#_!!_#|//g
22117 CEOF$ac_eof
22118 _ACEOF
22119
22120
22121 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22122 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22123 # trailing colons and then remove the whole line if VPATH becomes empty
22124 # (actually we leave an empty line to preserve line numbers).
22125 if test "x$srcdir" = x.; then
22126   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22127 s/:*\$(srcdir):*/:/
22128 s/:*\${srcdir}:*/:/
22129 s/:*@srcdir@:*/:/
22130 s/^\([^=]*=[     ]*\):*/\1/
22131 s/:*$//
22132 s/^[^=]*=[       ]*$//
22133 }'
22134 fi
22135
22136 cat >>$CONFIG_STATUS <<\_ACEOF
22137 fi # test -n "$CONFIG_FILES"
22138
22139
22140 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22141 do
22142   case $ac_tag in
22143   :[FHLC]) ac_mode=$ac_tag; continue;;
22144   esac
22145   case $ac_mode$ac_tag in
22146   :[FHL]*:*);;
22147   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22148 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22149    { (exit 1); exit 1; }; };;
22150   :[FH]-) ac_tag=-:-;;
22151   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22152   esac
22153   ac_save_IFS=$IFS
22154   IFS=:
22155   set x $ac_tag
22156   IFS=$ac_save_IFS
22157   shift
22158   ac_file=$1
22159   shift
22160
22161   case $ac_mode in
22162   :L) ac_source=$1;;
22163   :[FH])
22164     ac_file_inputs=
22165     for ac_f
22166     do
22167       case $ac_f in
22168       -) ac_f="$tmp/stdin";;
22169       *) # Look for the file first in the build tree, then in the source tree
22170          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22171          # because $ac_f cannot contain `:'.
22172          test -f "$ac_f" ||
22173            case $ac_f in
22174            [\\/$]*) false;;
22175            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22176            esac ||
22177            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22178 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22179    { (exit 1); exit 1; }; };;
22180       esac
22181       ac_file_inputs="$ac_file_inputs $ac_f"
22182     done
22183
22184     # Let's still pretend it is `configure' which instantiates (i.e., don't
22185     # use $as_me), people would be surprised to read:
22186     #    /* config.h.  Generated by config.status.  */
22187     configure_input="Generated from "`IFS=:
22188           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22189     if test x"$ac_file" != x-; then
22190       configure_input="$ac_file.  $configure_input"
22191       { echo "$as_me:$LINENO: creating $ac_file" >&5
22192 echo "$as_me: creating $ac_file" >&6;}
22193     fi
22194
22195     case $ac_tag in
22196     *:-:* | *:-) cat >"$tmp/stdin";;
22197     esac
22198     ;;
22199   esac
22200
22201   ac_dir=`$as_dirname -- "$ac_file" ||
22202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22203          X"$ac_file" : 'X\(//\)[^/]' \| \
22204          X"$ac_file" : 'X\(//\)$' \| \
22205          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22206 echo X"$ac_file" |
22207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22208             s//\1/
22209             q
22210           }
22211           /^X\(\/\/\)[^/].*/{
22212             s//\1/
22213             q
22214           }
22215           /^X\(\/\/\)$/{
22216             s//\1/
22217             q
22218           }
22219           /^X\(\/\).*/{
22220             s//\1/
22221             q
22222           }
22223           s/.*/./; q'`
22224   { as_dir="$ac_dir"
22225   case $as_dir in #(
22226   -*) as_dir=./$as_dir;;
22227   esac
22228   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22229     as_dirs=
22230     while :; do
22231       case $as_dir in #(
22232       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22233       *) as_qdir=$as_dir;;
22234       esac
22235       as_dirs="'$as_qdir' $as_dirs"
22236       as_dir=`$as_dirname -- "$as_dir" ||
22237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22238          X"$as_dir" : 'X\(//\)[^/]' \| \
22239          X"$as_dir" : 'X\(//\)$' \| \
22240          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22241 echo X"$as_dir" |
22242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22243             s//\1/
22244             q
22245           }
22246           /^X\(\/\/\)[^/].*/{
22247             s//\1/
22248             q
22249           }
22250           /^X\(\/\/\)$/{
22251             s//\1/
22252             q
22253           }
22254           /^X\(\/\).*/{
22255             s//\1/
22256             q
22257           }
22258           s/.*/./; q'`
22259       test -d "$as_dir" && break
22260     done
22261     test -z "$as_dirs" || eval "mkdir $as_dirs"
22262   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22263 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22264    { (exit 1); exit 1; }; }; }
22265   ac_builddir=.
22266
22267 case "$ac_dir" in
22268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22269 *)
22270   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22271   # A ".." for each directory in $ac_dir_suffix.
22272   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22273   case $ac_top_builddir_sub in
22274   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22275   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22276   esac ;;
22277 esac
22278 ac_abs_top_builddir=$ac_pwd
22279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22280 # for backward compatibility:
22281 ac_top_builddir=$ac_top_build_prefix
22282
22283 case $srcdir in
22284   .)  # We are building in place.
22285     ac_srcdir=.
22286     ac_top_srcdir=$ac_top_builddir_sub
22287     ac_abs_top_srcdir=$ac_pwd ;;
22288   [\\/]* | ?:[\\/]* )  # Absolute name.
22289     ac_srcdir=$srcdir$ac_dir_suffix;
22290     ac_top_srcdir=$srcdir
22291     ac_abs_top_srcdir=$srcdir ;;
22292   *) # Relative name.
22293     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22294     ac_top_srcdir=$ac_top_build_prefix$srcdir
22295     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22296 esac
22297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22298
22299
22300   case $ac_mode in
22301   :F)
22302   #
22303   # CONFIG_FILE
22304   #
22305
22306   case $INSTALL in
22307   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22308   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22309   esac
22310 _ACEOF
22311
22312 cat >>$CONFIG_STATUS <<\_ACEOF
22313 # If the template does not know about datarootdir, expand it.
22314 # FIXME: This hack should be removed a few years after 2.60.
22315 ac_datarootdir_hack=; ac_datarootdir_seen=
22316
22317 case `sed -n '/datarootdir/ {
22318   p
22319   q
22320 }
22321 /@datadir@/p
22322 /@docdir@/p
22323 /@infodir@/p
22324 /@localedir@/p
22325 /@mandir@/p
22326 ' $ac_file_inputs` in
22327 *datarootdir*) ac_datarootdir_seen=yes;;
22328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22329   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22330 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22331 _ACEOF
22332 cat >>$CONFIG_STATUS <<_ACEOF
22333   ac_datarootdir_hack='
22334   s&@datadir@&$datadir&g
22335   s&@docdir@&$docdir&g
22336   s&@infodir@&$infodir&g
22337   s&@localedir@&$localedir&g
22338   s&@mandir@&$mandir&g
22339     s&\\\${datarootdir}&$datarootdir&g' ;;
22340 esac
22341 _ACEOF
22342
22343 # Neutralize VPATH when `$srcdir' = `.'.
22344 # Shell code in configure.ac might set extrasub.
22345 # FIXME: do we really want to maintain this feature?
22346 cat >>$CONFIG_STATUS <<_ACEOF
22347   sed "$ac_vpsub
22348 $extrasub
22349 _ACEOF
22350 cat >>$CONFIG_STATUS <<\_ACEOF
22351 :t
22352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22353 s&@configure_input@&$configure_input&;t t
22354 s&@top_builddir@&$ac_top_builddir_sub&;t t
22355 s&@srcdir@&$ac_srcdir&;t t
22356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22357 s&@top_srcdir@&$ac_top_srcdir&;t t
22358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22359 s&@builddir@&$ac_builddir&;t t
22360 s&@abs_builddir@&$ac_abs_builddir&;t t
22361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22362 s&@INSTALL@&$ac_INSTALL&;t t
22363 $ac_datarootdir_hack
22364 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22365
22366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22367   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22368   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22369   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22370 which seems to be undefined.  Please make sure it is defined." >&5
22371 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22372 which seems to be undefined.  Please make sure it is defined." >&2;}
22373
22374   rm -f "$tmp/stdin"
22375   case $ac_file in
22376   -) cat "$tmp/out"; rm -f "$tmp/out";;
22377   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22378   esac
22379  ;;
22380   :H)
22381   #
22382   # CONFIG_HEADER
22383   #
22384 _ACEOF
22385
22386 # Transform confdefs.h into a sed script `conftest.defines', that
22387 # substitutes the proper values into config.h.in to produce config.h.
22388 rm -f conftest.defines conftest.tail
22389 # First, append a space to every undef/define line, to ease matching.
22390 echo 's/$/ /' >conftest.defines
22391 # Then, protect against being on the right side of a sed subst, or in
22392 # an unquoted here document, in config.status.  If some macros were
22393 # called several times there might be several #defines for the same
22394 # symbol, which is useless.  But do not sort them, since the last
22395 # AC_DEFINE must be honored.
22396 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22397 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22398 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22399 # PARAMS is the parameter list in the macro definition--in most cases, it's
22400 # just an empty string.
22401 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22402 ac_dB='\\)[      (].*,\\1define\\2'
22403 ac_dC=' '
22404 ac_dD=' ,'
22405
22406 uniq confdefs.h |
22407   sed -n '
22408         t rset
22409         :rset
22410         s/^[     ]*#[    ]*define[       ][      ]*//
22411         t ok
22412         d
22413         :ok
22414         s/[\\&,]/\\&/g
22415         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22416         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22417   ' >>conftest.defines
22418
22419 # Remove the space that was appended to ease matching.
22420 # Then replace #undef with comments.  This is necessary, for
22421 # example, in the case of _POSIX_SOURCE, which is predefined and required
22422 # on some systems where configure will not decide to define it.
22423 # (The regexp can be short, since the line contains either #define or #undef.)
22424 echo 's/ $//
22425 s,^[     #]*u.*,/* & */,' >>conftest.defines
22426
22427 # Break up conftest.defines:
22428 ac_max_sed_lines=50
22429
22430 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22431 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22432 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22433 # et cetera.
22434 ac_in='$ac_file_inputs'
22435 ac_out='"$tmp/out1"'
22436 ac_nxt='"$tmp/out2"'
22437
22438 while :
22439 do
22440   # Write a here document:
22441     cat >>$CONFIG_STATUS <<_ACEOF
22442     # First, check the format of the line:
22443     cat >"\$tmp/defines.sed" <<\\CEOF
22444 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22445 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22446 b
22447 :def
22448 _ACEOF
22449   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22450   echo 'CEOF
22451     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22452   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22453   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22454   grep . conftest.tail >/dev/null || break
22455   rm -f conftest.defines
22456   mv conftest.tail conftest.defines
22457 done
22458 rm -f conftest.defines conftest.tail
22459
22460 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22461 cat >>$CONFIG_STATUS <<\_ACEOF
22462   if test x"$ac_file" != x-; then
22463     echo "/* $configure_input  */" >"$tmp/config.h"
22464     cat "$ac_result" >>"$tmp/config.h"
22465     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22466       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22467 echo "$as_me: $ac_file is unchanged" >&6;}
22468     else
22469       rm -f $ac_file
22470       mv "$tmp/config.h" $ac_file
22471     fi
22472   else
22473     echo "/* $configure_input  */"
22474     cat "$ac_result"
22475   fi
22476   rm -f "$tmp/out12"
22477  ;;
22478
22479   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22480 echo "$as_me: executing $ac_file commands" >&6;}
22481  ;;
22482   esac
22483
22484
22485   case $ac_file$ac_mode in
22486     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22487    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22488     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22489    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22490     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22491    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22492     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22493    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22494     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22495    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22496     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22497    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22498     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22500     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22501    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22502     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22503    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22504     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22505    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22506     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22507    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22508     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22509    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22510     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22511    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22512
22513   esac
22514 done # for ac_tag
22515
22516
22517 { (exit 0); exit 0; }
22518 _ACEOF
22519 chmod +x $CONFIG_STATUS
22520 ac_clean_files=$ac_clean_files_save
22521
22522
22523 # configure is writing to config.log, and then calls config.status.
22524 # config.status does its own redirection, appending to config.log.
22525 # Unfortunately, on DOS this fails, as config.log is still kept open
22526 # by configure, so config.status won't be able to write to it; its
22527 # output is simply discarded.  So we exec the FD to /dev/null,
22528 # effectively closing config.log, so it can be properly (re)opened and
22529 # appended to by config.status.  When coming back to configure, we
22530 # need to make the FD available again.
22531 if test "$no_create" != yes; then
22532   ac_cs_success=:
22533   ac_config_status_args=
22534   test "$silent" = yes &&
22535     ac_config_status_args="$ac_config_status_args --quiet"
22536   exec 5>/dev/null
22537   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22538   exec 5>>config.log
22539   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22540   # would make configure fail if this is the last instruction.
22541   $ac_cs_success || { (exit 1); exit 1; }
22542 fi
22543
22544 #
22545 # CONFIG_SUBDIRS section.
22546 #
22547 if test "$no_recursion" != yes; then
22548
22549   # Remove --cache-file and --srcdir arguments so they do not pile up.
22550   ac_sub_configure_args=
22551   ac_prev=
22552   eval "set x $ac_configure_args"
22553   shift
22554   for ac_arg
22555   do
22556     if test -n "$ac_prev"; then
22557       ac_prev=
22558       continue
22559     fi
22560     case $ac_arg in
22561     -cache-file | --cache-file | --cache-fil | --cache-fi \
22562     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22563       ac_prev=cache_file ;;
22564     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22565     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22566     | --c=*)
22567       ;;
22568     --config-cache | -C)
22569       ;;
22570     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22571       ac_prev=srcdir ;;
22572     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22573       ;;
22574     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22575       ac_prev=prefix ;;
22576     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22577       ;;
22578     *)
22579       case $ac_arg in
22580       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22581       esac
22582       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22583     esac
22584   done
22585
22586   # Always prepend --prefix to ensure using the same prefix
22587   # in subdir configurations.
22588   ac_arg="--prefix=$prefix"
22589   case $ac_arg in
22590   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22591   esac
22592   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22593
22594   ac_popdir=`pwd`
22595   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22596
22597     # Do not complain, so a configure script can configure whichever
22598     # parts of a large source tree are present.
22599     test -d "$srcdir/$ac_dir" || continue
22600
22601     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22602     echo "$as_me:$LINENO: $ac_msg" >&5
22603     echo "$ac_msg" >&6
22604     { as_dir="$ac_dir"
22605   case $as_dir in #(
22606   -*) as_dir=./$as_dir;;
22607   esac
22608   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22609     as_dirs=
22610     while :; do
22611       case $as_dir in #(
22612       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22613       *) as_qdir=$as_dir;;
22614       esac
22615       as_dirs="'$as_qdir' $as_dirs"
22616       as_dir=`$as_dirname -- "$as_dir" ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618          X"$as_dir" : 'X\(//\)[^/]' \| \
22619          X"$as_dir" : 'X\(//\)$' \| \
22620          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22621 echo X"$as_dir" |
22622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22623             s//\1/
22624             q
22625           }
22626           /^X\(\/\/\)[^/].*/{
22627             s//\1/
22628             q
22629           }
22630           /^X\(\/\/\)$/{
22631             s//\1/
22632             q
22633           }
22634           /^X\(\/\).*/{
22635             s//\1/
22636             q
22637           }
22638           s/.*/./; q'`
22639       test -d "$as_dir" && break
22640     done
22641     test -z "$as_dirs" || eval "mkdir $as_dirs"
22642   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22643 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22644    { (exit 1); exit 1; }; }; }
22645     ac_builddir=.
22646
22647 case "$ac_dir" in
22648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22649 *)
22650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22651   # A ".." for each directory in $ac_dir_suffix.
22652   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22653   case $ac_top_builddir_sub in
22654   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22655   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22656   esac ;;
22657 esac
22658 ac_abs_top_builddir=$ac_pwd
22659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22660 # for backward compatibility:
22661 ac_top_builddir=$ac_top_build_prefix
22662
22663 case $srcdir in
22664   .)  # We are building in place.
22665     ac_srcdir=.
22666     ac_top_srcdir=$ac_top_builddir_sub
22667     ac_abs_top_srcdir=$ac_pwd ;;
22668   [\\/]* | ?:[\\/]* )  # Absolute name.
22669     ac_srcdir=$srcdir$ac_dir_suffix;
22670     ac_top_srcdir=$srcdir
22671     ac_abs_top_srcdir=$srcdir ;;
22672   *) # Relative name.
22673     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22674     ac_top_srcdir=$ac_top_build_prefix$srcdir
22675     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22676 esac
22677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22678
22679
22680     cd "$ac_dir"
22681
22682     # Check for guested configure; otherwise get Cygnus style configure.
22683     if test -f "$ac_srcdir/configure.gnu"; then
22684       ac_sub_configure=$ac_srcdir/configure.gnu
22685     elif test -f "$ac_srcdir/configure"; then
22686       ac_sub_configure=$ac_srcdir/configure
22687     elif test -f "$ac_srcdir/configure.in"; then
22688       # This should be Cygnus configure.
22689       ac_sub_configure=$ac_aux_dir/configure
22690     else
22691       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22693       ac_sub_configure=
22694     fi
22695
22696     # The recursion is here.
22697     if test -n "$ac_sub_configure"; then
22698       # Make the cache file name correct relative to the subdirectory.
22699       case $cache_file in
22700       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22701       *) # Relative name.
22702         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22703       esac
22704
22705       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22706 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22707       # The eval makes quoting arguments work.
22708       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22709            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22710         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22712    { (exit 1); exit 1; }; }
22713     fi
22714
22715     cd "$ac_popdir"
22716   done
22717 fi
22718